scanbot-web-sdk 8.1.0-rc.8 → 8.1.0

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.
Files changed (24) hide show
  1. package/bundle/ScanbotSDK.min.js +1 -1
  2. package/bundle/ScanbotSDK.ui2.min.js +1 -1
  3. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  4. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  5. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  6. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
  7. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  8. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
  9. package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
  10. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
  11. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  12. package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
  13. package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
  14. package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
  15. package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
  16. package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
  17. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  18. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  19. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  20. package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
  21. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  22. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
  23. package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
  24. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see ScanbotSDK.min.js.LICENSE.txt */
2
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,(()=>(()=>{var e={10:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var i=n(1173),r=n(525),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.DocumentClassifier.create(new i.hq(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.DocumentClassifier.run(this.objectId,e);return{result:new i.g$(o.result),originalImage:new r._(o.originalImage)}}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.DocumentClassifier.destroy(this.objectId)}))}}},61:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(4751),r=n(6302);class o{static convertLinesToViewportLines(e,t){if(t&&e)return t.map((t=>({start:new r.b(t.start.x*e.width,t.start.y*e.height),end:new r.b(t.end.x*e.width,t.end.y*e.height)})))}static convertToViewportPointsFromParentSize(e,t){return t?i.o.isEmpty(e)?void 0:t.map((t=>r.b.scaleUpTo(t,e))):i.o.toPolygon(e)}static calculateScale(e){let t,n=0,i=0;return 1>e.width/e.height?(t=e.height/1,n=(1-e.width/t)/2):(t=e.width/1,i=(1-e.height/t)/2),{x:n,y:i,containerScale:t}}static findScale(e,t){let n,i=0,r=0;return t.ratio(!0)>e.ratio(!0)?(n=e.width/t.width,r=(t.height-e.height/n)/2):(n=e.height/t.height,i=(t.width-e.width/n)/2),{x:i,y:r,scale:n}}static preventDefaultCallback(e){e.preventDefault()}static disableScreenMovement(){document.addEventListener("touchmove",o.preventDefaultCallback,{passive:!1}),document.body.scrollTop=document.documentElement.scrollTop=0,document.documentElement.style.overflow="hidden"}static enableScreenMovement(){document.removeEventListener("touchmove",o.preventDefaultCallback),document.documentElement.style.overflow="auto"}static findContainerOrThrow(e){var t;const n=null!==(t=e.container)&&void 0!==t?t:document.getElementById(e.containerId);if(!n)throw Error("Unable to initialize scanner: Cannot find container element either from 'container' property or with the containerId property provided.");return n}static unmountSafely(e){window.setTimeout((()=>{e.unmount()}),0)}}},73:(e,t,n)=>{"use strict";n.d(t,{$e:()=>r,X:()=>o,hZ:()=>i});const i=["EXACT","INTERPOLATE"];class r{constructor(e={}){this.confirmationMethod="EXACT",this.minConfirmations=3,this.minConfidenceForStableField=.8,this.autoClearThreshold=4,void 0!==e.confirmationMethod&&(this.confirmationMethod=e.confirmationMethod),void 0!==e.minConfirmations&&(this.minConfirmations=e.minConfirmations),void 0!==e.minConfidenceForStableField&&(this.minConfidenceForStableField=e.minConfidenceForStableField),void 0!==e.autoClearThreshold&&(this.autoClearThreshold=e.autoClearThreshold)}}class o{constructor(e={}){this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualScanningResult=2,void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualScanningResult&&(this.minimumNumberOfRequiredFramesWithEqualScanningResult=e.minimumNumberOfRequiredFramesWithEqualScanningResult)}}},170:(e,t,n)=>{"use strict";n.d(t,{Fc:()=>a,RX:()=>r,dn:()=>o,mN:()=>s});var i=n(6244);const r=["SUCCESS","BARCODE_WITHOUT_VIN","NO_BARCODE_FOUND","BARCODE_EXTRACTION_DISABLED"];class o{constructor(e={}){if(void 0===e.extractedVIN)throw new Error("extractedVIN must be present in constructor argument");if(this.extractedVIN=e.extractedVIN,void 0===e.rectangle)throw new Error("rectangle must be present in constructor argument");if(this.rectangle=e.rectangle.map((e=>({x:e.x,y:e.y}))),void 0===e.status)throw new Error("status must be present in constructor argument");this.status=e.status}}class a{constructor(e={}){if(void 0===e.textResult)throw new Error("textResult must be present in constructor argument");if(this.textResult=new i.n_(e.textResult),void 0===e.barcodeResult)throw new Error("barcodeResult must be present in constructor argument");this.barcodeResult=new o(e.barcodeResult)}}class s{constructor(e={}){this.optimizeSingleLine=!0,this.extractVINFromBarcode=!1,this.ocrResolutionLimit=0,this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualScanningResult=2,void 0!==e.optimizeSingleLine&&(this.optimizeSingleLine=e.optimizeSingleLine),void 0!==e.extractVINFromBarcode&&(this.extractVINFromBarcode=e.extractVINFromBarcode),void 0!==e.ocrResolutionLimit&&(this.ocrResolutionLimit=e.ocrResolutionLimit),void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualScanningResult&&(this.minimumNumberOfRequiredFramesWithEqualScanningResult=e.minimumNumberOfRequiredFramesWithEqualScanningResult)}}},177:(e,t,n)=>{"use strict";n.d(t,{An:()=>a,Ni:()=>i,Oc:()=>r,Xb:()=>s,Y8:()=>c,YF:()=>d,f8:()=>p,hI:()=>o,hJ:()=>l,t:()=>u,vd:()=>m,w:()=>h,yH:()=>E});const i=["BINARY","ANTIALIASED"],r=["PRESET_1","PRESET_2","PRESET_3","PRESET_4","PRESET_5"];var o;!function(e){e.from=function(e){const t=e._type;switch(t){case"LegacyFilter":return new a(e);case"ScanbotBinarizationFilter":return new s(e);case"CustomBinarizationFilter":return new c(e);case"ColorDocumentFilter":return new l(e);case"ColorDocumentShadowRemovalFilter":return new u(e);case"BrightnessFilter":return new d(e);case"ContrastFilter":return new m(e);case"GrayscaleFilter":return new h(e);case"WhiteBlackPointFilter":return new p(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(o||(o={}));class a{constructor(e={}){this._type="LegacyFilter",this.filterType=0,void 0!==e.filterType&&(this.filterType=e.filterType)}}class s{constructor(e={}){this._type="ScanbotBinarizationFilter",this.outputMode="BINARY",void 0!==e.outputMode&&(this.outputMode=e.outputMode)}}class c{constructor(e={}){this._type="CustomBinarizationFilter",this.outputMode="BINARY",this.denoise=.5,this.radius=32,this.preset="PRESET_4",void 0!==e.outputMode&&(this.outputMode=e.outputMode),void 0!==e.denoise&&(this.denoise=e.denoise),void 0!==e.radius&&(this.radius=e.radius),void 0!==e.preset&&(this.preset=e.preset)}}class l{constructor(e={}){this._type="ColorDocumentFilter",this.contrastEnhancement=.5,this.colorEnhancement=.5,this.paperWhitening=1,this.paperWhiteningBias=0,void 0!==e.contrastEnhancement&&(this.contrastEnhancement=e.contrastEnhancement),void 0!==e.colorEnhancement&&(this.colorEnhancement=e.colorEnhancement),void 0!==e.paperWhitening&&(this.paperWhitening=e.paperWhitening),void 0!==e.paperWhiteningBias&&(this.paperWhiteningBias=e.paperWhiteningBias)}}class u{constructor(e={}){this._type="ColorDocumentShadowRemovalFilter",this.contrastEnhancement=.5,this.colorEnhancement=.5,this.paperSaturation=.5,this.paperLightness=.5,void 0!==e.contrastEnhancement&&(this.contrastEnhancement=e.contrastEnhancement),void 0!==e.colorEnhancement&&(this.colorEnhancement=e.colorEnhancement),void 0!==e.paperSaturation&&(this.paperSaturation=e.paperSaturation),void 0!==e.paperLightness&&(this.paperLightness=e.paperLightness)}}class d{constructor(e={}){this._type="BrightnessFilter",this.brightness=0,void 0!==e.brightness&&(this.brightness=e.brightness)}}class m{constructor(e={}){this._type="ContrastFilter",this.contrast=0,void 0!==e.contrast&&(this.contrast=e.contrast)}}class h{constructor(e={}){this._type="GrayscaleFilter",this.borderWidthFraction=.06,this.blackOutliersFraction=0,this.whiteOutliersFraction=.02,void 0!==e.borderWidthFraction&&(this.borderWidthFraction=e.borderWidthFraction),void 0!==e.blackOutliersFraction&&(this.blackOutliersFraction=e.blackOutliersFraction),void 0!==e.whiteOutliersFraction&&(this.whiteOutliersFraction=e.whiteOutliersFraction)}}class p{constructor(e={}){this._type="WhiteBlackPointFilter",this.blackPoint=0,this.whitePoint=1,void 0!==e.blackPoint&&(this.blackPoint=e.blackPoint),void 0!==e.whitePoint&&(this.whitePoint=e.whitePoint)}}const E=["DISABLED","ENABLED","ENABLED_IF_BINARIZATION_FILTER_SET"]},376:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var i=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class r extends Error{constructor(e,t,n){super(t),this.name="",this.name=e,this.message=t,this.webApiError=n}static mediaDevicesUndefined(){return new r(this.MESSAGE.DEVICES_UNDEFINED,"Does your device even have a camera? If so, please use a secure context (HTTPS) or use 'localhost' explicitly.")}static enumerateDevicesFailed(){return new r(this.MESSAGE.DEVICES_UNDEFINED,"Does your device even have a camera? Because we're unable to query query navigator.mediaDevices?.enumerateDevices")}static mediaDeviceNotFound(e){return new r(this.MESSAGE.ENUMERATE_FAILED,"Does your device even have a camera? Because we were unable to query navigator.mediaDevices?.getUserMedia().",e)}static permissionDenied(e){return new r(this.MESSAGE.PERMISSION_DENIED,"Camera permission has not been granted. Please prompt your users again to grant permission.",e)}static unknown(e){return new r(this.MESSAGE.UNKNOWN,"\n Unfortunately we were unable to query navigator.mediaDevices.getUserMedia, \n and unable to determine the reason why. This may be caused by the user to denied the permission prompt. \n Or you may be using an in-app browser that itself has not been granted permission to use the camera.\n Or your users may be using a niche browser that does not support the media API at all!\n ",e)}static tryCheckPermission(){return i(this,void 0,void 0,(function*(){if(!this.permissionState)try{const e=yield navigator.permissions.query({name:"camera"});this.permissionState=e.state}catch(e){this.permissionState=this.PERMISSION_STATE.UNKNOWN}}))}static hasDeniedPermission(){return this.permissionState===this.PERMISSION_STATE.DENIED}static hasCheckedPermission(){return!!this.permissionState}static createFromDOMException(e){return e instanceof DOMException?"NotAllowedError"===e.name?r.permissionDenied("Specifically, the native 'NotAllowedError' was thrown."):"NotFoundError"===e.name?r.mediaDeviceNotFound("Specifically, the native 'NotFoundError' was thrown."):void 0:r.unknown(null==e?void 0:e.message)}}r.PERMISSION_STATE={GRANTED:"granted",DENIED:"denied",PROMPT:"prompt",UNKNOWN:"unknown"},r.MESSAGE={DEVICES_UNDEFINED:"MediaError_DevicesUndefined",DEVICE_NOT_FOUND:"MediaError_DeviceNotFound",ENUMERATE_FAILED:"MediaError_EnumerateFailed",PERMISSION_DENIED:"MediaError_PermissionDenied",UNKNOWN:"MediaError_Unknown"}},500:(e,t,n)=>{"use strict";n.d(t,{D7:()=>a,E_:()=>o});var i=n(8763),r=n(8382);function o(e){return{color:r.dI.getColorValue(e.color),textShadow:e.useShadow?"1px 1px 2px":""}}function a(e){var t;if(!e.config.visible)return null;const n=Object.assign(Object.assign({},e.style),o(e.config)),a=r.dI.getLocalizedText(e.config.text,e.replacementArgs),s={["data-sb-text-"+(null!==(t=e.debugName)&&void 0!==t?t:"default")]:!0};return e.asHtml?i.Ay.createElement("span",Object.assign({ref:e.innerRef,style:n,dangerouslySetInnerHTML:e.asHtml&&{__html:a}},s)):i.Ay.createElement("span",Object.assign({ref:e.innerRef,style:n},s),a)}},525:(e,t,n)=>{"use strict";n.d(t,{_:()=>s});var i=n(3221),r=n(718),o=n(5296),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class s extends i.pR{constructor(e){super(),this.___image_data="___image_data"in e?e.___image_data:function(e){if(!e)throw(0,o.$5)("InvalidImageRef","null image data or buffer");if("format"in e&&"string"==typeof e.format)return e;if("width"in e&&"number"==typeof e.width)return{data:e.data,width:e.width,height:e.height,format:"",step:0};return{data:ArrayBuffer.isView(e)?e:new Uint8Array(e),width:-1,height:-1,format:"",step:0}}(e)}get __image_data(){return this.___image_data}static fromUrl(e){return a(this,void 0,void 0,(function*(){const t=yield fetch(e);return new s(yield t.arrayBuffer())}))}static fromImageData(e){return new s(e)}static fromEncodedBinaryData(e){return new s(e)}static fromWrappedImage(e){return new s({___image_data:e})}toJpeg(e=80,t="COPY_IMAGE"){return a(this,void 0,void 0,(function*(){const n=r._.SINGLETON;return("COPY_IMAGE"===t?n.copyArgs:n.transferArgs).encodeJpeg(this,e)}))}}},586:(e,t,n)=>{"use strict";n.d(t,{gl:()=>o,pk:()=>i,sw:()=>r});class i{constructor(e={}){if(void 0===e.start)throw new Error("start must be present in constructor argument");if(this.start={x:e.start.x,y:e.start.y},void 0===e.end)throw new Error("end must be present in constructor argument");this.end={x:e.end.x,y:e.end.y}}}class r{constructor(e={}){if(void 0===e.start)throw new Error("start must be present in constructor argument");if(this.start={x:e.start.x,y:e.start.y},void 0===e.end)throw new Error("end must be present in constructor argument");this.end={x:e.end.x,y:e.end.y}}}class o{constructor(e={}){this.width=1,this.height=1,void 0!==e.width&&(this.width=e.width),void 0!==e.height&&(this.height=e.height)}}},681:(e,t,n)=>{"use strict";n.d(t,{TM:()=>i.TM,Zf:()=>i.Zf});var i=n(8627)},718:(e,t,n)=>{"use strict";n.d(t,{_:()=>a});var i=n(3575),r=n(5581),o=n(5296);class a{constructor(e,t){this.errorInWorker=null,this.createProxy=e=>new Proxy({},{get:(t,n,i)=>new Proxy((()=>{}),{apply:(t,i,r)=>this.post(n,r,e),get:(t,i,r)=>(...t)=>this.post(n+"."+i,t,e)})}),this.handleUnrecoverableError=e=>{this.errorInWorker=e;for(const t in this.continuations)this.continuations[t].reject(e),delete this.continuations[t]},this.copyArgs=this.createProxy("copy"),this.transferArgs=this.createProxy("transfer"),this.api=new r.u(this),a.SINGLETON=this;const{requestSuffix:n=""}=t||{},s=(0,i.Jk)(t),c=`${e}${e.endsWith("/")?"":"/"}ScanbotSDK.Core${s}.js${n}`;if((0,i.Vx)(c)){const e=new Blob([`importScripts("${c}")`]);this.instance=new Worker(URL.createObjectURL(e))}else this.instance=new Worker(c);this.continuations={},this.nextTicketId=1,this.instance.onmessage=e=>{const{log:t,logError:n}=e.data;if(t)return void console.log(...t);if(n)return void console.error(...n);const{ticket:i,result:r,recoverableError:a,unrecoverableError:s}=e.data,c=this.continuations[i];if(!c)return;const{resolve:l,reject:u,command:d}=c;if(delete this.continuations[i],s)u(s),this.handleUnrecoverableError(s);else if(a){u("errorType"in e.data?(0,o.$5)(e.data.errorType,`Error in worker while running command '${d}'`,a):a)}else l(r)},this.instance.onerror=e=>{this.handleUnrecoverableError(e.error)}}post(e,t,n){return this.errorInWorker?Promise.reject(this.errorInWorker):new Promise(((r,o)=>{const a=(0,i.ef)(t,"copy"==n),s=this.nextTicketId++;this.continuations[s]={resolve:r,reject:o,command:e},this.instance.postMessage({command:e,args:t,ticket:s},a)}))}destroy(){this.instance.terminate()}}a.SINGLETON=null},780:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>Ht,i7:()=>Gt});var i=n(5215),r=n(8763),o=n(2833),a=n.n(o),s="-ms-",c="-moz-",l="-webkit-",u="comm",d="rule",m="decl",h="@keyframes",p=Math.abs,E=String.fromCharCode,A=Object.assign;function g(e){return e.trim()}function f(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,n){return e.replace(t,n)}function _(e,t,n){return e.indexOf(t,n)}function D(e,t){return 0|e.charCodeAt(t)}function y(e,t,n){return e.slice(t,n)}function I(e){return e.length}function v(e){return e.length}function N(e,t){return t.push(e),e}function S(e,t){return e.filter((function(e){return!f(e,t)}))}var b=1,M=1,L=0,R=0,T=0,O="";function w(e,t,n,i,r,o,a,s){return{value:e,root:t,parent:n,type:i,props:r,children:o,line:b,column:M,length:a,return:"",siblings:s}}function F(e,t){return A(w("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function B(e){for(;e.root;)e=F(e.root,{children:[e]});N(e,e.siblings)}function P(){return T=R>0?D(O,--R):0,M--,10===T&&(M=1,b--),T}function x(){return T=R<L?D(O,R++):0,M++,10===T&&(M=1,b++),T}function k(){return D(O,R)}function V(){return R}function U(e,t){return y(O,e,t)}function Z(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function W(e){return b=M=1,L=I(O=e),R=0,[]}function H(e){return O="",e}function G(e){return g(U(R-1,q(91===e?e+2:40===e?e+1:e)))}function z(e){for(;(T=k())&&T<33;)x();return Z(e)>2||Z(T)>3?"":" "}function Y(e,t){for(;--t&&x()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return U(e,V()+(t<6&&32==k()&&32==x()))}function q(e){for(;x();)switch(T){case e:return R;case 34:case 39:34!==e&&39!==e&&q(T);break;case 40:41===e&&q(e);break;case 92:x()}return R}function X(e,t){for(;x()&&e+T!==57&&(e+T!==84||47!==k()););return"/*"+U(t,R-1)+"*"+E(47===e?e:x())}function j(e){for(;!Z(k());)x();return U(e,R)}function Q(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function J(e,t,n,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case m:return e.return=e.return||e.value;case u:return"";case h:return e.return=e.value+"{"+Q(e.children,i)+"}";case d:if(!I(e.value=e.props.join(",")))return""}return I(n=Q(e.children,i))?e.return=e.value+"{"+n+"}":""}function K(e,t,n){switch(function(e,t){return 45^D(e,0)?(((t<<2^D(e,0))<<2^D(e,1))<<2^D(e,2))<<2^D(e,3):0}(e,t)){case 5103:return l+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return l+e+e;case 4789:return c+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return l+e+c+e+s+e+e;case 5936:switch(D(e,t+11)){case 114:return l+e+s+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return l+e+s+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return l+e+s+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return l+e+s+e+e;case 6165:return l+e+s+"flex-"+e+e;case 5187:return l+e+C(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return l+e+s+"flex-item-"+C(e,/flex-|-self/g,"")+(f(e,/flex-|baseline/)?"":s+"grid-row-"+C(e,/flex-|-self/g,""))+e;case 4675:return l+e+s+"flex-line-pack"+C(e,/align-content|flex-|-self/g,"")+e;case 5548:return l+e+s+C(e,"shrink","negative")+e;case 5292:return l+e+s+C(e,"basis","preferred-size")+e;case 6060:return l+"box-"+C(e,"-grow","")+l+e+s+C(e,"grow","positive")+e;case 4554:return l+C(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,l+"$1"),/(image-set)/,l+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,l+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+l+e+e;case 4200:if(!f(e,/flex-|baseline/))return s+"grid-column-align"+y(e,t)+e;break;case 2592:case 3360:return s+C(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,f(e.props,/grid-\w+-end/)}))?~_(e+(n=n[t].value),"span",0)?e:s+C(e,"-start","")+e+s+"grid-row-span:"+(~_(n,"span",0)?f(n,/\d+/):+f(n,/\d+/)-+f(e,/\d+/))+";":s+C(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return f(e.props,/grid-\w+-start/)}))?e:s+C(C(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,l+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(I(e)-1-t>6)switch(D(e,t+1)){case 109:if(45!==D(e,t+4))break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+c+(108==D(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_(e,"stretch",0)?K(C(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return C(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,i,r,o,a,c){return s+n+":"+i+c+(r?s+n+"-span:"+(o?a:+a-+i)+c:"")+e}));case 4949:if(121===D(e,t+6))return C(e,":",":"+l)+e;break;case 6444:switch(D(e,45===D(e,14)?18:11)){case 120:return C(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+l+(45===D(e,14)?"inline-":"")+"box$3$1"+l+"$2$3$1"+s+"$2box$3")+e;case 100:return C(e,":",":"+s)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return C(e,"scroll-","scroll-snap-")+e}return e}function $(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case m:return void(e.return=K(e.value,e.length,n));case h:return Q([F(e,{value:C(e.value,"@","@"+l)})],i);case d:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(f(t,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":B(F(e,{props:[C(t,/:(read-\w+)/,":-moz-$1")]})),B(F(e,{props:[t]})),A(e,{props:S(n,i)});break;case"::placeholder":B(F(e,{props:[C(t,/:(plac\w+)/,":-webkit-input-$1")]})),B(F(e,{props:[C(t,/:(plac\w+)/,":-moz-$1")]})),B(F(e,{props:[C(t,/:(plac\w+)/,s+"input-$1")]})),B(F(e,{props:[t]})),A(e,{props:S(n,i)})}return""}))}}function ee(e){return H(te("",null,null,null,[""],e=W(e),0,[0],e))}function te(e,t,n,i,r,o,a,s,c){for(var l=0,u=0,d=a,m=0,h=0,A=0,g=1,f=1,y=1,v=0,S="",b=r,M=o,L=i,R=S;f;)switch(A=v,v=x()){case 40:if(108!=A&&58==D(R,d-1)){-1!=_(R+=C(G(v),"&","&\f"),"&\f",p(l?s[l-1]:0))&&(y=-1);break}case 34:case 39:case 91:R+=G(v);break;case 9:case 10:case 13:case 32:R+=z(A);break;case 92:R+=Y(V()-1,7);continue;case 47:switch(k()){case 42:case 47:N(ie(X(x(),V()),t,n,c),c);break;default:R+="/"}break;case 123*g:s[l++]=I(R)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:f=0;case 59+u:-1==y&&(R=C(R,/\f/g,"")),h>0&&I(R)-d&&N(h>32?re(R+";",i,n,d-1,c):re(C(R," ","")+";",i,n,d-2,c),c);break;case 59:R+=";";default:if(N(L=ne(R,t,n,l,u,r,s,S,b=[],M=[],d,o),o),123===v)if(0===u)te(R,t,L,L,b,o,d,s,M);else switch(99===m&&110===D(R,3)?100:m){case 100:case 108:case 109:case 115:te(e,L,L,i&&N(ne(e,L,L,0,0,r,s,S,r,b=[],d,M),M),r,M,d,s,i?b:M);break;default:te(R,L,L,L,[""],M,0,s,M)}}l=u=h=0,g=y=1,S=R="",d=a;break;case 58:d=1+I(R),h=A;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==P())continue;switch(R+=E(v),v*g){case 38:y=u>0?1:(R+="\f",-1);break;case 44:s[l++]=(I(R)-1)*y,y=1;break;case 64:45===k()&&(R+=G(x())),m=k(),u=d=I(S=R+=j(V())),v++;break;case 45:45===A&&2==I(R)&&(g=0)}}return o}function ne(e,t,n,i,r,o,a,s,c,l,u,m){for(var h=r-1,E=0===r?o:[""],A=v(E),f=0,_=0,D=0;f<i;++f)for(var I=0,N=y(e,h+1,h=p(_=a[f])),S=e;I<A;++I)(S=g(_>0?E[I]+" "+N:C(N,/&\f/g,E[I])))&&(c[D++]=S);return w(e,t,n,0===r?d:s,c,l,u,m)}function ie(e,t,n,i){return w(e,t,n,u,E(T),y(e,2,-2),0,i)}function re(e,t,n,i,r){return w(e,t,n,m,y(e,0,i),y(e,i+1,-1),i,r)}const oe={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ae="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",se="active",ce="data-styled-version",le="6.1.8",ue="/*!sc*/\n",de="undefined"!=typeof window&&"HTMLElement"in window,me=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),he=(new Set,Object.freeze([])),pe=Object.freeze({});function Ee(e,t,n){return void 0===n&&(n=pe),e.theme!==n.theme&&e.theme||t||n.theme}var Ae=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,fe=/(^-|-$)/g;function Ce(e){return e.replace(ge,"-").replace(fe,"")}var _e=/(a)(d)/gi,De=function(e){return String.fromCharCode(e+(e>25?39:97))};function ye(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=De(t%52)+n;return(De(t%52)+n).replace(_e,"$1-$2")}var Ie,ve=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ne=function(e){return ve(5381,e)};function Se(e){return ye(Ne(e)>>>0)}function be(e){return e.displayName||e.name||"Component"}function Me(e){return"string"==typeof e&&!0}var Le="function"==typeof Symbol&&Symbol.for,Re=Le?Symbol.for("react.memo"):60115,Te=Le?Symbol.for("react.forward_ref"):60112,Oe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},we={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Be=((Ie={})[Te]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ie[Re]=Fe,Ie);function Pe(e){return("type"in(t=e)&&t.type.$$typeof)===Re?Fe:"$$typeof"in e?Be[e.$$typeof]:Oe;var t}var xe=Object.defineProperty,ke=Object.getOwnPropertyNames,Ve=Object.getOwnPropertySymbols,Ue=Object.getOwnPropertyDescriptor,Ze=Object.getPrototypeOf,We=Object.prototype;function He(e,t,n){if("string"!=typeof t){if(We){var i=Ze(t);i&&i!==We&&He(e,i,n)}var r=ke(t);Ve&&(r=r.concat(Ve(t)));for(var o=Pe(e),a=Pe(t),s=0;s<r.length;++s){var c=r[s];if(!(c in we||n&&n[c]||a&&c in a||o&&c in o)){var l=Ue(t,c);try{xe(e,c,l)}catch(e){}}}}return e}function Ge(e){return"function"==typeof e}function ze(e){return"object"==typeof e&&"styledComponentId"in e}function Ye(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qe(e,t){if(0===e.length)return"";for(var n=e[0],i=1;i<e.length;i++)n+=t?t+e[i]:e[i];return n}function Xe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function je(e,t,n){if(void 0===n&&(n=!1),!n&&!Xe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=je(e[i],t[i]);else if(Xe(t))for(var i in t)e[i]=je(e[i],t[i]);return e}function Qe(e,t){Object.defineProperty(e,"toString",{value:t})}function Je(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ke=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,r=i;e>=r;)if((r<<=1)<0)throw Je(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var o=i;o<r;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),i=n+t;this.groupSizes[e]=0;for(var r=n;r<i;r++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],i=this.indexOfGroup(e),r=i+n,o=i;o<r;o++)t+="".concat(this.tag.getRule(o)).concat(ue);return t},e}(),$e=new Map,et=new Map,tt=1,nt=function(e){if($e.has(e))return $e.get(e);for(;et.has(tt);)tt++;var t=tt++;return $e.set(e,t),et.set(t,e),t},it=function(e,t){tt=t+1,$e.set(e,t),et.set(t,e)},rt="style[".concat(ae,"][").concat(ce,'="').concat(le,'"]'),ot=new RegExp("^".concat(ae,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),at=function(e,t,n){for(var i,r=n.split(","),o=0,a=r.length;o<a;o++)(i=r[o])&&e.registerName(t,i)},st=function(e,t){for(var n,i=(null!==(n=t.textContent)&&void 0!==n?n:"").split(ue),r=[],o=0,a=i.length;o<a;o++){var s=i[o].trim();if(s){var c=s.match(ot);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(it(u,l),at(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(s)}}};function ct(){return n.nc}var lt=function(e){var t=document.head,n=e||t,i=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ae,"]")));return t[t.length-1]}(n),o=void 0!==r?r.nextSibling:null;i.setAttribute(ae,se),i.setAttribute(ce,le);var a=ct();return a&&i.setAttribute("nonce",a),n.insertBefore(i,o),i},ut=function(){function e(e){this.element=lt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,i=t.length;n<i;n++){var r=t[n];if(r.ownerNode===e)return r}throw Je(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),dt=function(){function e(e){this.element=lt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),mt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ht=de,pt={isServer:!de,useCSSOMInjection:!me},Et=function(){function e(e,t,n){void 0===e&&(e=pe),void 0===t&&(t={});var r=this;this.options=(0,i.Cl)((0,i.Cl)({},pt),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&de&&ht&&(ht=!1,function(e){for(var t=document.querySelectorAll(rt),n=0,i=t.length;n<i;n++){var r=t[n];r&&r.getAttribute(ae)!==se&&(st(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this)),Qe(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,i="",r=function(n){var r=function(e){return et.get(e)}(n);if(void 0===r)return"continue";var o=e.names.get(r),a=t.getGroup(n);if(void 0===o||0===a.length)return"continue";var s="".concat(ae,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==o&&o.forEach((function(e){e.length>0&&(c+="".concat(e,","))})),i+="".concat(a).concat(s,'{content:"').concat(c,'"}').concat(ue)},o=0;o<n;o++)r(o);return i}(r)}))}return e.registerId=function(e){return nt(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e((0,i.Cl)((0,i.Cl)({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new mt(n):t?new ut(n):new dt(n)}(this.options),new Ke(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(nt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(nt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(nt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),At=/&/g,gt=/^\s*\/\/.*$/gm;function ft(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=ft(e.children,t)),e}))}function Ct(e){var t,n,i,r=void 0===e?pe:e,o=r.options,a=void 0===o?pe:o,s=r.plugins,c=void 0===s?he:s,l=function(e,i,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push((function(e){e.type===d&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(At,n).replace(i,l))})),a.prefix&&u.push($),u.push(J);var m=function(e,r,o,s){void 0===r&&(r=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,n=r,i=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(gt,""),l=ee(o||r?"".concat(o," ").concat(r," { ").concat(c," }"):c);a.namespace&&(l=ft(l,a.namespace));var d,m,h,p=[];return Q(l,(d=u.concat((h=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&h(e)})),m=v(d),function(e,t,n,i){for(var r="",o=0;o<m;o++)r+=d[o](e,t,n,i)||"";return r})),p};return m.hash=c.length?c.reduce((function(e,t){return t.name||Je(15),ve(e,t.name)}),5381).toString():"",m}var _t=new Et,Dt=Ct(),yt=r.Ay.createContext({shouldForwardProp:void 0,styleSheet:_t,stylis:Dt}),It=(yt.Consumer,r.Ay.createContext(void 0));function vt(){return(0,r.NT)(yt)}function Nt(e){var t=(0,r.J0)(e.stylisPlugins),n=t[0],i=t[1],o=vt().styleSheet,s=(0,r.Kr)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),c=(0,r.Kr)((function(){return Ct({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);(0,r.vJ)((function(){a()(n,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]);var l=(0,r.Kr)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:c}}),[e.shouldForwardProp,s,c]);return r.Ay.createElement(yt.Provider,{value:l},r.Ay.createElement(It.Provider,{value:c},e.children))}var St=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Dt);var i=n.name+t.hash;e.hasNameForId(n.id,i)||e.insertRules(n.id,i,t(n.rules,i,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Qe(this,(function(){throw Je(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Dt),this.name+e.hash},e}(),bt=function(e){return e>="A"&&e<="Z"};function Mt(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(1===n&&"-"===i&&"-"===e[0])return e;bt(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Lt=function(e){return null==e||!1===e||""===e},Rt=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Lt(a)&&(Array.isArray(a)&&a.isCss||Ge(a)?r.push("".concat(Mt(o),":"),a,";"):Xe(a)?r.push.apply(r,(0,i.fX)((0,i.fX)(["".concat(o," {")],Rt(a),!1),["}"],!1)):r.push("".concat(Mt(o),": ").concat((t=o,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in oe||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Tt(e,t,n,i){return Lt(e)?[]:ze(e)?[".".concat(e.styledComponentId)]:Ge(e)?!Ge(r=e)||r.prototype&&r.prototype.isReactComponent||!t?[e]:Tt(e(t),t,n,i):e instanceof St?n?(e.inject(n,i),[e.getName(i)]):[e]:Xe(e)?Rt(e):Array.isArray(e)?Array.prototype.concat.apply(he,e.map((function(e){return Tt(e,t,n,i)}))):[e.toString()];var r}function Ot(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ge(n)&&!ze(n))return!1}return!0}var wt=Ne(le),Ft=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ot(e),this.componentId=t,this.baseHash=ve(wt,t),this.baseStyle=n,Et.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))i=Ye(i,this.staticRulesId);else{var r=qe(Tt(this.rules,e,t,n)),o=ye(ve(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=n(r,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}i=Ye(i,o),this.staticRulesId=o}else{for(var s=ve(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u;else if(u){var d=qe(Tt(u,e,t,n));s=ve(s,d+l),c+=d}}if(c){var m=ye(s>>>0);t.hasNameForId(this.componentId,m)||t.insertRules(this.componentId,m,n(c,".".concat(m),void 0,this.componentId)),i=Ye(i,m)}}return i},e}(),Bt=r.Ay.createContext(void 0);Bt.Consumer;var Pt={};new Set;function xt(e,t,n){var o=ze(e),a=e,s=!Me(e),c=t.attrs,l=void 0===c?he:c,u=t.componentId,d=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Ce(e);Pt[n]=(Pt[n]||0)+1;var i="".concat(n,"-").concat(Se(le+n+Pt[n]));return t?"".concat(t,"-").concat(i):i}(t.displayName,t.parentComponentId):u,m=t.displayName,h=void 0===m?function(e){return Me(e)?"styled.".concat(e):"Styled(".concat(be(e),")")}(e):m,p=t.displayName&&t.componentId?"".concat(Ce(t.displayName),"-").concat(t.componentId):t.componentId||d,E=o&&a.attrs?a.attrs.concat(l).filter(Boolean):l,A=t.shouldForwardProp;if(o&&a.shouldForwardProp){var g=a.shouldForwardProp;if(t.shouldForwardProp){var f=t.shouldForwardProp;A=function(e,t){return g(e,t)&&f(e,t)}}else A=g}var C=new Ft(n,p,o?a.componentStyle:void 0);function _(e,t){return function(e,t,n){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.styledComponentId,u=e.target,d=r.Ay.useContext(Bt),m=vt(),h=e.shouldForwardProp||m.shouldForwardProp,p=Ee(t,d,s)||pe,E=function(e,t,n){for(var r,o=(0,i.Cl)((0,i.Cl)({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=Ge(r=e[a])?r(o):r;for(var c in s)o[c]="className"===c?Ye(o[c],s[c]):"style"===c?(0,i.Cl)((0,i.Cl)({},o[c]),s[c]):s[c]}return t.className&&(o.className=Ye(o.className,t.className)),o}(o,t,p),A=E.as||u,g={};for(var f in E)void 0===E[f]||"$"===f[0]||"as"===f||"theme"===f&&E.theme===p||("forwardedAs"===f?g.as=E.forwardedAs:h&&!h(f,A)||(g[f]=E[f]));var C=function(e,t){var n=vt();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(a,E),_=Ye(c,l);return C&&(_+=" "+C),E.className&&(_+=" "+E.className),g[Me(A)&&!Ae.has(A)?"class":"className"]=_,g.ref=n,(0,r.n)(A,g)}(D,e,t)}_.displayName=h;var D=r.Ay.forwardRef(_);return D.attrs=E,D.componentStyle=C,D.displayName=h,D.shouldForwardProp=A,D.foldedComponentIds=o?Ye(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=p,D.target=o?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0,r=t;i<r.length;i++)je(e,r[i],!0);return e}({},a.defaultProps,e):e}}),Qe(D,(function(){return".".concat(D.styledComponentId)})),s&&He(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function kt(e,t){for(var n=[e[0]],i=0,r=t.length;i<r;i+=1)n.push(t[i],e[i+1]);return n}var Vt=function(e){return Object.assign(e,{isCss:!0})};function Ut(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ge(e)||Xe(e))return Vt(Tt(kt(he,(0,i.fX)([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Tt(r):Vt(Tt(kt(r,t)))}function Zt(e,t,n){if(void 0===n&&(n=pe),!t)throw Je(1,t);var r=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,Ut.apply(void 0,(0,i.fX)([r],o,!1)))};return r.attrs=function(r){return Zt(e,t,(0,i.Cl)((0,i.Cl)({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Zt(e,t,(0,i.Cl)((0,i.Cl)({},n),r))},r}var Wt=function(e){return Zt(xt,e)},Ht=Wt;Ae.forEach((function(e){Ht[e]=Wt(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ot(e),Et.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,n,i){var r=i(qe(Tt(this.rules,t,n,i)),""),o=this.componentId+e;n.insertRules(o,o,r)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,i){e>2&&Et.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,i)}}();function Gt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=qe(Ut.apply(void 0,(0,i.fX)([e],t,!1))),o=Se(r);return new St(o,r)}(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=ct(),i=qe([n&&'nonce="'.concat(n,'"'),"".concat(ae,'="true"'),"".concat(ce,'="').concat(le,'"')].filter(Boolean)," ");return"<style ".concat(i,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Je(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Je(2);var n=((t={})[ae]="",t[ce]=le,t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=ct();return o&&(n.nonce=o),[r.Ay.createElement("style",(0,i.Cl)({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Et({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Je(2);return r.Ay.createElement(Nt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Je(3)}})(),"__sc-".concat(ae,"__")},930:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var i=n(4896),r=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class o{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=i.ix.all){return r(this,void 0,void 0,(function*(){const n=yield e.copyArgs.BarcodeDocumentParser.create(t.map((e=>e)));return new o(e,n)}))}parse(e){return r(this,void 0,void 0,(function*(){const t=this.workerBridge.copyArgs;return yield t.BarcodeDocumentParser.parse(this.objectId,e)}))}destroy(){return r(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.BarcodeDocumentParser.destroy(this.objectId)}))}}},952:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var i=n(8763),r=n(6437),o=n(8382),a=n(500);class s extends i.Ay.Component{get style(){return this.props.configuration.style}get holeRect(){return this.holePosition}constructor(e){super(e),this.holePosition=r.w.empty(),this.resizeObserver=new ResizeObserver((()=>{this.updateWindowSize()})),this.componentDidUpdate=e=>{var t,n,i,r;(null===(t=this.props.configuration.minimumInsets)||void 0===t?void 0:t.top)===(null===(n=e.configuration.minimumInsets)||void 0===n?void 0:n.top)&&(null===(i=this.props.configuration)||void 0===i?void 0:i.minimumInsets.bottom)===(null===(r=e.configuration)||void 0===r?void 0:r.minimumInsets.bottom)&&this.props.configuration===e.configuration&&this.props.guidanceConfiguration===e.guidanceConfiguration||this.setState({shouldUpdateCanvas:!0}),this.updateCanvas()},this.updateWindowSize=()=>{this.setState({shouldUpdateCanvas:!0})},this.getVideoSize=()=>{var e;return null!==(e=this.holeCanvas.getBoundingClientRect())&&void 0!==e?e:new DOMRect},this.scaleForRetinaDisplay=e=>{if(window.devicePixelRatio>1){const t=e.width,n=e.height;e.width=t*window.devicePixelRatio,e.height=n*window.devicePixelRatio,e.style.width=t+"px",e.style.height=n+"px",e.getContext("2d").scale(window.devicePixelRatio,window.devicePixelRatio)}},this.updateCanvas=()=>{var e,t,n;if(!this.state.shouldUpdateCanvas)return;this.setState({shouldUpdateCanvas:!1});const i=this.getVideoSize().width,r=this.getVideoSize().height;this.holeCanvas.width=i,this.holeCanvas.height=r,this.crosshairCanvas.width=i,this.crosshairCanvas.height=r,this.scaleForRetinaDisplay(this.crosshairCanvas);const o=this.props.configuration.minimumInsets,a=i-(2*this.props.configuration.style.strokeWidth+o.left+o.right),s=null!==(e=null==o?void 0:o.top)&&void 0!==e?e:0,c=null!==(t=null==o?void 0:o.bottom)&&void 0!==t?t:0,l=Math.min(a,i-(o.left+o.right)),u=this.props.configuration.aspectRatio.width/this.props.configuration.aspectRatio.height;if(-1!==this.props.configuration.preferredHeight){const e=this.props.configuration.preferredHeight,t=e*u;t>a?(this.holePosition.width=a,this.holePosition.height=a/u):(this.holePosition.width=t,this.holePosition.height=e)}else this.holePosition.width=l,this.holePosition.height=this.holePosition.width/u;const d=(i-this.holePosition.width)/2;o.left>d||o.right>d?(o.left>d&&(this.holePosition.x=o.left),o.right>d&&(this.holePosition.x=i-this.holePosition.width-o.right)):this.holePosition.x=d;const m=r-s-c-((null===(n=this.guidanceText)||void 0===n?void 0:n.clientHeight)+this.guidanceTextTopPadding||0);this.holePosition.height>m?(this.holePosition.height=m,this.holePosition.width=this.holePosition.height*u,this.holePosition.x=i/2-this.holePosition.width/2,this.holePosition.y=s):this.holePosition.y=s+(m-this.holePosition.height)/1.9;const h=this.holeCanvas.getContext("2d");h.save(),this.drawBackground(h),h.globalCompositeOperation="destination-out",this.drawHole();const p=this.crosshairCanvas.getContext("2d");p.globalCompositeOperation="source-over","FinderStrokedStyle"===this.props.configuration.style._type?this.drawHoleOutline():"FinderCorneredStyle"===this.props.configuration.style._type&&this.drawHoleCorners(),h.restore(),p.restore()},this.drawBackground=e=>{const{width:t,height:n}=this.getVideoSize();e.clearRect(0,0,t,n),e.beginPath(),e.rect(0,0,t,n),e.fillStyle=o.dI.getColorValue(this.props.configuration.overlayColor),e.fill()},this.drawHole=()=>{const e=this.holeCanvas.getContext("2d"),t=this.cornerRadius(),n=this.holePosition.x,i=this.holePosition.y,r=this.holePosition.width,o=this.holePosition.height;e.beginPath(),e.fillStyle="black",e.moveTo(n+t,i),e.arcTo(n+r,i,n+r,i+o,t),e.arcTo(n+r,i+o,n,i+o,t),e.arcTo(n,i+o,n,i,t),e.arcTo(n,i,n+r,i,t),e.closePath(),e.fill()},this.drawCrosshair=()=>{const e=this.crosshairCanvas.getContext("2d"),t=this.holePosition.x+this.holePosition.width/2,n=this.holePosition.y+this.holePosition.height/2;e.beginPath(),e.moveTo(t-10,n),e.lineTo(t+10,n),e.moveTo(t,n-10),e.lineTo(t,n+10),e.strokeStyle="white",e.fillStyle="white",e.lineWidth=1,e.stroke()},this.drawHoleCorners=()=>{const e=this.crosshairCanvas.getContext("2d"),t=this.holePosition.x,n=this.holePosition.y,i=this.holePosition.width,r=this.holePosition.height,a=15,s=this.style.strokeWidth,c=this.cornerRadius();e.beginPath(),e.moveTo(t,n+a),e.arcTo(t,n,t+i,n,c),e.lineTo(t+a,n),e.moveTo(t+i-a,n),e.arcTo(t+i,n,t+i,n+r,c),e.lineTo(t+i,n+a),e.moveTo(t+i,n+r-a),e.arcTo(t+i,n+r,t,n+r,c),e.lineTo(t+i-a,n+r),e.moveTo(t,n+r-a),e.arcTo(t,n+r,t+i,n+r,c),e.lineTo(t+a,n+r),e.strokeStyle=o.dI.getColorValue(this.style.strokeColor),e.lineWidth=s,e.stroke()},this.drawHoleOutline=()=>{const e=this.crosshairCanvas.getContext("2d"),t=this.holePosition.x,n=this.holePosition.y,i=this.holePosition.width,r=this.holePosition.height,a=this.cornerRadius(),s=this.style.strokeWidth;e.beginPath(),e.moveTo(t+a,n),e.arcTo(t+i,n,t+i,n+r,a),e.moveTo(t+i,n+a),e.arcTo(t+i,n+r,t,n+r,a),e.moveTo(t+i-a,n+r),e.arcTo(t,n+r,t,n,a),e.moveTo(t,n+r-a),e.arcTo(t,n,t+i,n,a),e.strokeStyle=o.dI.getColorValue(this.style.strokeColor),e.lineWidth=s,e.stroke()},this.guidanceTextTopPadding=20,this.render=()=>i.Ay.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",textAlign:"left"},onClick:e=>{const t=this.holePosition;e.clientX>this.holePosition.x&&e.clientX<t.x+t.width&&e.clientY>t.y&&e.clientY<t.y+t.height&&console.log("Clicked inside hole, possibly click events need to be diverted")}},i.Ay.createElement("canvas",{ref:e=>{this.holeCanvas=e},style:{position:"absolute",width:"100%",height:"100%"}}),i.Ay.createElement("canvas",{ref:e=>{this.crosshairCanvas=e},style:{position:"absolute",width:"100%",height:"100%"}}),this.guidance.visible&&i.Ay.createElement("div",{ref:e=>{this.guidanceText=e},style:{position:"absolute",display:"block",top:this.holePosition.y+this.holePosition.height+this.guidanceTextTopPadding,left:0,width:"100%",textAlign:"center"}},i.Ay.createElement(a.D7,{style:{display:"inline-block",backgroundColor:o.dI.getColorValue(this.guidance.background.fillColor),borderStyle:"solid",borderColor:o.dI.getColorValue(this.guidance.background.strokeColor),borderWidth:this.style.strokeWidth,borderRadius:4,padding:"4px 8px",flex:1,maxWidth:"94%",wordWrap:"break-word"},config:this.guidance.title}))),this.state={shouldUpdateCanvas:!0}}componentDidMount(){this.updateWindowSize(),this.resizeObserver.observe(this.holeCanvas)}componentWillUnmount(){this.resizeObserver.disconnect()}bottomOfGuidanceText(){var e,t;return this.holeRect.bottom()+(null!==(t=null===(e=this.guidanceText)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0)+this.guidanceTextTopPadding}get guidance(){return this.props.guidanceConfiguration}cornerRadius(){const e=this.holePosition;return Math.max(0,Math.min(this.style.cornerRadius,e.width/2,e.height/2))}}},982:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var i=n(2381);class r extends i.m{constructor(e){super(),this.mirrored=!1,this.spinnerColor="black",this.backgroundColor="black",this.previewMode="FILL_IN",this.videoConstraints={width:{ideal:e.width},height:{ideal:e.height},facingMode:"environment",resizeMode:"none",experimental:{focusMode:"continous",focusDistance:0}}}static mapVideoConstraints(e,t){e.videoConstraints&&this.mapValues(e.videoConstraints,t.videoConstraints)}}r.DEFAULT_VIDEO_RESOLUTION_4K={width:3840,height:2160},r.DEFAULT_VIDEO_RESOLUTION_HD={width:1920,height:1080},r.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE=0,r.DEFAULT_ACCEPTED_ANGLE_SCORE=75,r.DEFAULT_ACCEPTED_SIZE_SCORE=75},1173:(e,t,n)=>{"use strict";n.d(t,{g$:()=>s,hq:()=>r,jJ:()=>o,wO:()=>a});var i=n(7828);class r{constructor(e={}){this.crop=!0,void 0!==e.crop&&(this.crop=e.crop)}}const o=["SUCCESS","FAILURE_SCANNING"],a=["UNKNOWN","BILL_OF_LADING","PAY_SHEET","SCALE_TICKET","TOLL_RECEIPT","WASH_RECEIPT"];class s{constructor(e={}){if(void 0===e.documentType)throw new Error("documentType must be present in constructor argument");if(this.documentType=e.documentType,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.status)throw new Error("status must be present in constructor argument");if(this.status=e.status,void 0===e.documentScanningResult)throw new Error("documentScanningResult must be present in constructor argument");this.documentScanningResult=new i.EU(e.documentScanningResult)}}},1304:(e,t,n)=>{"use strict";var i;n.d(t,{GF:()=>i,ID:()=>o,JK:()=>s,KH:()=>a,a8:()=>c,bl:()=>u,qQ:()=>r,tn:()=>l}),function(e){e.from=function(e){const t=e._type;switch(t){case"DateValidationConfiguration":return new r(e);case"EuropeanHealthInsuranceCardConfiguration":return new a(e);case"MRZFallbackConfiguration":return new s(e);case"AutoFocusConfiguration":return new c(e);case"GlareDetectionConfiguration":return new l(e);case"DocumentDataExtractorCommonConfiguration":return new u(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(i||(i={}));class r{constructor(e={}){if(this._type="DateValidationConfiguration",this.minYear=0,this.maxYear=2999,void 0!==e.minYear&&(this.minYear=e.minYear),void 0!==e.maxYear&&(this.maxYear=e.maxYear),void 0===e.fieldTypeName)throw new Error("fieldTypeName must be present in constructor argument");this.fieldTypeName=e.fieldTypeName}}const o=["AUSTRIA","BELGIUM","BULGARIA","CROATIA","CYPRUS","CZECH_REPUBLIC","DENMARK","ESTONIA","FINLAND","FRANCE","GERMANY","GREECE","HUNGARY","IRELAND","ITALY","LATVIA","LITHUANIA","LUXEMBOURG","MALTA","NETHERLANDS","POLAND","PORTUGAL","ROMANIA","SLOVAKIA","SLOVENIA","SPAIN","SWEDEN","SWITZERLAND"];class a{constructor(e={}){this._type="EuropeanHealthInsuranceCardConfiguration",this.expectedCountry=null,void 0!==e.expectedCountry&&(this.expectedCountry=null!=e.expectedCountry&&o.includes(e.expectedCountry)?e.expectedCountry:null)}}class s{constructor(e={}){this._type="MRZFallbackConfiguration",this.acceptedCountries=[],this.acceptedMRZTypes=[],void 0!==e.acceptedCountries&&(this.acceptedCountries=e.acceptedCountries.map((e=>e))),void 0!==e.acceptedMRZTypes&&(this.acceptedMRZTypes=e.acceptedMRZTypes.map((e=>e)))}}class c{constructor(e={}){this._type="AutoFocusConfiguration",this.sensitivityThreshold=.02,void 0!==e.sensitivityThreshold&&(this.sensitivityThreshold=e.sensitivityThreshold)}}class l{constructor(e={}){this._type="GlareDetectionConfiguration",this.glareDetectionThreshold=.5,void 0!==e.glareDetectionThreshold&&(this.glareDetectionThreshold=e.glareDetectionThreshold)}}class u{constructor(e={}){this._type="DocumentDataExtractorCommonConfiguration",this.acceptedDocumentTypes=["DeIdCardFront","DeIdCardBack","DeHealthInsuranceCardFront","DePassport","DeResidencePermitFront","DeResidencePermitBack","EuropeanHealthInsuranceCard","EuropeanDriverLicenseFront","EuropeanDriverLicenseBack"],void 0!==e.acceptedDocumentTypes&&(this.acceptedDocumentTypes=e.acceptedDocumentTypes.map((e=>e)))}}},1374:(e,t,n)=>{"use strict";n.d(t,{Uo:()=>s,Wy:()=>c,jO:()=>l,pR:()=>a,zm:()=>o});var i=n(73),r=n(6396);const o=["UNKNOWN","CREW_MEMBER_CERTIFICATE","ID_CARD","PASSPORT","VISA","CH_DRIVING_LICENSE"];class a{constructor(e={}){if(this.success=!1,void 0!==e.success&&(this.success=e.success),void 0===e.rawMRZ)throw new Error("rawMRZ must be present in constructor argument");if(this.rawMRZ=e.rawMRZ,void 0===e.document)throw new Error("document must be present in constructor argument");this.document=null!=e.document?new r.$G(e.document):null}}const s=["ACCEPT","REJECT"];class c{constructor(e={}){this.frameAccumulationConfiguration=new i.X({}),this.enableDetection=!0,this.incompleteResultHandling="REJECT",this.returnCrops=!1,this.processingMode="AUTO",void 0!==e.frameAccumulationConfiguration&&(this.frameAccumulationConfiguration=new i.X(e.frameAccumulationConfiguration)),void 0!==e.enableDetection&&(this.enableDetection=e.enableDetection),void 0!==e.incompleteResultHandling&&(this.incompleteResultHandling=e.incompleteResultHandling),void 0!==e.returnCrops&&(this.returnCrops=e.returnCrops),void 0!==e.processingMode&&(this.processingMode=e.processingMode)}}class l{constructor(e={}){this.incompleteResultHandling="ACCEPT",void 0!==e.incompleteResultHandling&&(this.incompleteResultHandling=e.incompleteResultHandling)}}},1427:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var i=n(2880),r=n(525),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new i.kY({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.CreditCardScanner.create(new i.kY(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.CreditCardScanner.run(this.objectId,e);return{result:new i.S4(o.result),originalImage:new r._(o.originalImage)}}))}clearResult(){return o(this,void 0,void 0,(function*(){const e=this.workerBridge.copyArgs;return yield e.CreditCardScanner.clearResult(this.objectId)}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.CreditCardScanner.destroy(this.objectId)}))}}},1521:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});const i="data:application/javascript;charset=utf-8;base64,Y29uc3QgREJfTkFNRSA9ICJTQlNES0Jhc2UiOwpjb25zdCBTVE9SRVMgPSB7CiAgRE9DVU1FTlRfU0NBTk5FUl9SRVNQT05TRVM6ICJkb2N1bWVudFNjYW5uZXJSZXN1bHRzIiwKICBTQl9ET0NVTUVOVFM6ICJTQkRvY3VtZW50cyIsCiAgSU1BR0VTOiAiaW1hZ2VzIgp9OwoKLyoqCiAqIEBwYXJhbSB7c3RyaW5nfSB0b2tlbgogKiBAcGFyYW0ge3sgdHlwZTogc3RyaW5nLCBkYXRhOiBhbnkgfX0gcXVlcnkKICogQHBhcmFtIHtFdmVudH0gZXZlbnQKICogKi8KCnNlbGYuYWRkRXZlbnRMaXN0ZW5lcigndW5oYW5kbGVkcmVqZWN0aW9uJywgZnVuY3Rpb24gKGV2ZW50KSB7CiAgLy8gVGhlIHdheSB0byBwcm9wZXJseSB0cmlnZ2VyIHdvcmtlciBlcnJvcnMgaXMgdG8gY2F0Y2ggdGhlIHVuaGFuZGxlZCByZWplY3Rpb24gZmlyc3QsIHRoZW4gdGhyb3c6CiAgLy8gaHR0cHM6Ly9zdGFja292ZXJmbG93LmNvbS9xdWVzdGlvbnMvMjgwMDE3MjIvaG93LXRvLWNhdGNoLXVuY2F1Z2h0LWV4Y2VwdGlvbi1pbi1wcm9taXNlCiAgLy8gVGhpcyBldmVudCBvYmplY3QgaGFzIHR3byBzcGVjaWFsIHByb3BlcnRpZXM6CiAgLy8gZXZlbnQucHJvbWlzZSAtIHRoZSBwcm9taXNlIHRoYXQgZ2VuZXJhdGVkIHRoZSBlcnJvcgogIC8vIGV2ZW50LnJlYXNvbiAgLSB0aGUgdW5oYW5kbGVkIGVycm9yIG9iamVjdAogIHRocm93IGV2ZW50LnJlYXNvbjsKfSk7CmZ1bmN0aW9uIHBvc3RSZXN1bHRPblN1Y2Nlc3ModG9rZW4sIHF1ZXJ5LCBldmVudCkgewogIGV2ZW50Lm9uc3VjY2VzcyA9IGV2ZW50ID0+IHsKICAgIHNlbGYucG9zdE1lc3NhZ2UoewogICAgICB0b2tlbjogdG9rZW4sCiAgICAgIGRhdGE6IGV2ZW50LnRhcmdldC5yZXN1bHQKICAgIH0pOwogIH07CiAgZXZlbnQub25lcnJvciA9IGV2ZW50ID0+IHsKICAgIHRocm93RXhjZXB0aW9uKHRva2VuLCBxdWVyeSwgIkVycm9yIGluIEluZGV4ZWREQiByZXF1ZXN0OiAiICsgZXZlbnQudGFyZ2V0LmVycm9yKTsKICB9Owp9CgovKioKICogQHJldHVybnMge1Byb21pc2U8SURCRGF0YWJhc2U+fQogKi8KZnVuY3Rpb24gb3BlbkRCKCkgewogIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSwgcmVqZWN0KSA9PiB7CiAgICAvKiogTkIhIFVwZGF0ZSB2ZXJzaW9uIHdoZW4gREIgbW9kZWwgY2hhbmdlcyAqLwogICAgY29uc3QgREJfVkVSU0lPTiA9IDY7CiAgICBjb25zdCByZXF1ZXN0ID0gaW5kZXhlZERCLm9wZW4oREJfTkFNRSwgREJfVkVSU0lPTik7CiAgICByZXF1ZXN0Lm9uc3VjY2VzcyA9IGV2ZW50ID0+IHsKICAgICAgcmVzb2x2ZShldmVudC50YXJnZXRbInJlc3VsdCJdKTsKICAgIH07CiAgICByZXF1ZXN0Lm9uZXJyb3IgPSBldmVudCA9PiB7CiAgICAgIGNvbnN0IGNvZGUgPSBldmVudC50YXJnZXQgPyBldmVudC50YXJnZXRbImVycm9yQ29kZSJdIDogIlVua25vd24gZXJyb3IgY29kZSI7CiAgICAgIHRocm93IG5ldyBFcnJvcigiRXJyb3Igb3BlbmluZyBkYXRhYmFzZTogIiArIGNvZGUpOwogICAgfTsKICAgIHJlcXVlc3Qub251cGdyYWRlbmVlZGVkID0gZXZlbnQgPT4gewogICAgICAvLyBUT0RPOiAnb251cGdyYWRlbmVlZGVkJyBpcyBvbmx5IGNhbGxlZCB3aGVuIEZJUlNUIG9wZW5pbmcgdGhlIGRhdGFiYXNlCiAgICAgIC8vICBBTkQgd2hlbiB0aGUgdmVyc2lvbiBudW1iZXIgaXMgaW5jcmVhc2VkLiBXaGF0IGVsc2UgbmVlZHMgdG8gYmUgZG9uZSBoZXJlPwogICAgICBjb25zdCBkYiA9IGV2ZW50LnRhcmdldCAvKiBhcyBJREJPcGVuREJSZXF1ZXN0Ki8ucmVzdWx0OwogICAgICBmb3IgKGNvbnN0IGtleSBpbiBTVE9SRVMpIHsKICAgICAgICBjb25zdCBuYW1lID0gU1RPUkVTW2tleV07CiAgICAgICAgLy8gVE9ETyBjYW4ndCBqdXN0IGRlbGV0ZSBpbiBwcm9kdWN0aW9uLCBuZWVkIHRvIG1pZ3JhdGUgZGF0YQogICAgICAgIHRyeSB7CiAgICAgICAgICBkYi5kZWxldGVPYmplY3RTdG9yZShuYW1lKTsKICAgICAgICB9IGNhdGNoIChlcnJvcikgewogICAgICAgICAgLy8gQ2FuJ3QgZGVsZXRlIG9iamVjdCBzdG9yZSB0aGF0IGRvZXNuJ3QgZXhpc3QKICAgICAgICAgIGNvbnNvbGUubG9nKCJFcnJvciBkZWxldGluZyBvYmplY3Qgc3RvcmU6ICIsIG5hbWUpOwogICAgICAgIH0KICAgICAgICBkYi5jcmVhdGVPYmplY3RTdG9yZShuYW1lLCB7CiAgICAgICAgICBrZXlQYXRoOiAiaWQiLAogICAgICAgICAgYXV0b0luY3JlbWVudDogdHJ1ZQogICAgICAgIH0pOwogICAgICB9CiAgICB9OwogIH0pOwp9CgovKioKICogQHBhcmFtIHtzdHJpbmdbXX0gc3RvcmVOYW1lcwogKiBAcmV0dXJucyB7UHJvbWlzZTxJREJUcmFuc2FjdGlvbj59CiAqLwphc3luYyBmdW5jdGlvbiBnZXRUcmFuc2FjdGlvbihzdG9yZU5hbWVzKSB7CiAgY29uc3QgZGIgPSBhd2FpdCBvcGVuREIoKTsKICAvLyBUT0RPIGlzIGl0IGV2ZXIgYWN0dWFsbHkgbmVjZXNzYXJ5IHRvIHdhaXQgZm9yIGEgdHJhbnNhY3Rpb24ncyAnb25jb21wbGV0ZScgZXZlbnQ/CiAgcmV0dXJuIGRiLnRyYW5zYWN0aW9uKHN0b3JlTmFtZXMsICJyZWFkd3JpdGUiKTsKfQoKLyoqCiAqIEBwYXJhbSB7c3RyaW5nfSBuYW1lCiAqIEByZXR1cm5zIHtQcm9taXNlPElEQk9iamVjdFN0b3JlPn0KICovCmFzeW5jIGZ1bmN0aW9uIGdldFN0b3JlKG5hbWUpIHsKICBjb25zdCB0cmFuc2FjdGlvbiA9IGF3YWl0IGdldFRyYW5zYWN0aW9uKFtuYW1lXSk7CiAgcmV0dXJuIHRyYW5zYWN0aW9uLm9iamVjdFN0b3JlKG5hbWUpOwp9CgovKioKICogQHJldHVybnMge1Byb21pc2U8SURCT2JqZWN0U3RvcmU+fQogKi8KYXN5bmMgZnVuY3Rpb24gZ2V0RG9jdW1lbnRTY2FubmVyUmVzcG9uc2VTdG9yZSgpIHsKICByZXR1cm4gZ2V0U3RvcmUoU1RPUkVTLkRPQ1VNRU5UX1NDQU5ORVJfUkVTUE9OU0VTKTsKfQoKLyoqCiAqIEByZXR1cm5zIHtQcm9taXNlPElEQk9iamVjdFN0b3JlPn0KICovCmFzeW5jIGZ1bmN0aW9uIGdldEltYWdlc1N0b3JlKCkgewogIHJldHVybiBnZXRTdG9yZShTVE9SRVMuSU1BR0VTKTsKfQphc3luYyBmdW5jdGlvbiBjbGVhcigpIHsKICBmb3IgKGNvbnN0IGtleSBpbiBTVE9SRVMpIHsKICAgIGNvbnN0IG5hbWUgPSBTVE9SRVNba2V5XTsKICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0U3RvcmUobmFtZSk7CiAgICBzdG9yZS5jbGVhcigpOwogIH0KfQphc3luYyBmdW5jdGlvbiBkZWxldGVEQigpIHsKICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4gewogICAgY29uc3QgcmVxdWVzdCA9IGluZGV4ZWREQi5kZWxldGVEYXRhYmFzZShEQl9OQU1FKTsKICAgIHJlcXVlc3Qub25zdWNjZXNzID0gZXZlbnQgPT4gewogICAgICByZXNvbHZlKGV2ZW50KTsKICAgIH07CiAgICByZXF1ZXN0Lm9uZXJyb3IgPSBldmVudCA9PiB7CiAgICAgIHJlamVjdChldmVudCk7CiAgICB9OwogIH0pOwp9CgovKioKICogQHBhcmFtIHtzdHJpbmd9IHRva2VuCiAqIEBwYXJhbSB7eyB0eXBlOiBzdHJpbmcsIGRhdGE6IGFueSB9fSBxdWVyeQogKiBAcGFyYW0ge3N0cmluZz99IG1lc3NhZ2UKICovCmZ1bmN0aW9uIHRocm93RXhjZXB0aW9uKHRva2VuLCBxdWVyeSwgbWVzc2FnZSkgewogIGNvbnN0IHBheWxvYWQgPSB7CiAgICB0b2tlbjogdG9rZW4sCiAgICBxdWVyeTogcXVlcnksCiAgICBtZXNzYWdlOiBtZXNzYWdlCiAgfTsKICBjb25zb2xlLmxvZygiRXJyb3IgaW4gU0JJbmRleGVkREIgd29ya2VyOiAiLCBwYXlsb2FkKTsKICB0aHJvdyBuZXcgRXJyb3IoSlNPTi5zdHJpbmdpZnkocGF5bG9hZCkpOwp9CgovKioKICogQHBhcmFtIHtNZXNzYWdlRXZlbnR9IGV2ZW50CiAqIEByZXR1cm5zIHtQcm9taXNlPHZvaWQ+fQogKi8Kc2VsZi5vbm1lc3NhZ2UgPSBhc3luYyBldmVudCA9PiB7CiAgY29uc3QgdG9rZW4gPSBldmVudC5kYXRhLnRva2VuOwogIGNvbnN0IHF1ZXJ5ID0gZXZlbnQuZGF0YS5xdWVyeTsKICBpZiAocXVlcnkudHlwZSA9PT0gJ2NsZWFyJykgewogICAgYXdhaXQgY2xlYXIoKTsKICAgIHNlbGYucG9zdE1lc3NhZ2UoewogICAgICB0b2tlbjogdG9rZW4sCiAgICAgIGRhdGE6IHRydWUKICAgIH0pOwogIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gJ2RlbGV0ZScpIHsKICAgIGF3YWl0IGRlbGV0ZURCKCk7CiAgICBzZWxmLnBvc3RNZXNzYWdlKHsKICAgICAgdG9rZW46IHRva2VuLAogICAgICBkYXRhOiB0cnVlCiAgICB9KTsKICB9IGVsc2UgaWYgKHF1ZXJ5LnR5cGUgPT09ICdzdG9yZURvY3VtZW50U2Nhbm5lclJlc3BvbnNlJykgewogICAgY29uc3Qgc3RvcmUgPSBhd2FpdCBnZXREb2N1bWVudFNjYW5uZXJSZXNwb25zZVN0b3JlKCk7CiAgICBjb25zdCByZXF1ZXN0ID0gc3RvcmUucHV0KHF1ZXJ5LmRhdGEpOwogICAgcG9zdFJlc3VsdE9uU3VjY2Vzcyh0b2tlbiwgcXVlcnksIHJlcXVlc3QpOwogIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gJ2dldERvY3VtZW50U2Nhbm5lclJlc3BvbnNlcycpIHsKICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0RG9jdW1lbnRTY2FubmVyUmVzcG9uc2VTdG9yZSgpOwogICAgY29uc3QgcmVxdWVzdCA9IHN0b3JlLmdldEFsbCgpOwogICAgcG9zdFJlc3VsdE9uU3VjY2Vzcyh0b2tlbiwgcXVlcnksIHJlcXVlc3QpOwogIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gJ2dldERvY3VtZW50U2Nhbm5lclJlc3BvbnNlJykgewogICAgY29uc3Qgc3RvcmUgPSBhd2FpdCBnZXREb2N1bWVudFNjYW5uZXJSZXNwb25zZVN0b3JlKCk7CiAgICBjb25zdCByZXF1ZXN0ID0gc3RvcmUuZ2V0KHF1ZXJ5LmRhdGEpOwogICAgcG9zdFJlc3VsdE9uU3VjY2Vzcyh0b2tlbiwgcXVlcnksIHJlcXVlc3QpOwogIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gJ3N0b3JlSW1hZ2VzJykgewogICAgY29uc3QgaW1hZ2VzID0gcXVlcnkuZGF0YTsKICAgIGNvbnN0IHRyYW5zYWN0aW9uID0gYXdhaXQgZ2V0VHJhbnNhY3Rpb24oW1NUT1JFUy5JTUFHRVNdKTsKICAgIGZvciAoY29uc3QgaW1hZ2Ugb2YgaW1hZ2VzKSB7CiAgICAgIHRyYW5zYWN0aW9uLm9iamVjdFN0b3JlKFNUT1JFUy5JTUFHRVMpLmFkZChpbWFnZSk7CiAgICB9CiAgICB0cmFuc2FjdGlvbi5vbmNvbXBsZXRlID0gZXZlbnQgPT4gewogICAgICBzZWxmLnBvc3RNZXNzYWdlKHsKICAgICAgICB0b2tlbjogdG9rZW4sCiAgICAgICAgZGF0YTogdHJ1ZQogICAgICB9KTsKICAgIH07CiAgICB0cmFuc2FjdGlvbi5vbmVycm9yID0gKCkgPT4gewogICAgICB0aHJvd0V4Y2VwdGlvbih0b2tlbiwgcXVlcnksICJFcnJvciBzdG9yaW5nIGltYWdlcyIpOwogICAgfTsKICB9IGVsc2UgaWYgKHF1ZXJ5LnR5cGUgPT09ICdnZXRJbWFnZXMnKSB7CiAgICBjb25zdCBzdG9yZSA9IGF3YWl0IGdldEltYWdlc1N0b3JlKCk7CiAgICBjb25zdCBkb2N1bWVudElkcyA9IHF1ZXJ5LmRhdGE7CiAgICBjb25zdCByZXF1ZXN0ID0gc3RvcmUuZ2V0QWxsKCk7CgogICAgLy8gVE9ETzogSWYgdGhlcmUgYXJlIG1hbnkgaW1hZ2VzLCBjdXJzb3ItYmFzZWQgaXRlcmF0aW9uIG1pZ2h0IGJlIG1vcmUgZWZmaWNpZW50CiAgICByZXF1ZXN0Lm9uc3VjY2VzcyA9IGV2ZW50ID0+IHsKICAgICAgY29uc3QgaW1hZ2VzID0gZXZlbnQudGFyZ2V0WyJyZXN1bHQiXTsKICAgICAgY29uc3QgZmlsdGVyZWRJbWFnZXMgPSBpbWFnZXMuZmlsdGVyKGltYWdlID0+IGRvY3VtZW50SWRzLmluY2x1ZGVzKGltYWdlLmRvY3VtZW50SWQpKTsKICAgICAgc2VsZi5wb3N0TWVzc2FnZSh7CiAgICAgICAgdG9rZW46IHRva2VuLAogICAgICAgIGRhdGE6IGZpbHRlcmVkSW1hZ2VzCiAgICAgIH0pOwogICAgfTsKICAgIHJlcXVlc3Qub25lcnJvciA9IGV2ZW50ID0+IHsKICAgICAgdGhyb3dFeGNlcHRpb24odG9rZW4sIHF1ZXJ5LCAiRXJyb3IgZ2V0dGluZyBpbWFnZXMiKTsKICAgIH07CiAgfSBlbHNlIGlmIChxdWVyeS50eXBlID09PSAiZGVsZXRlSW1hZ2VzIikgewogICAgY29uc3Qgc3RvcmUgPSBhd2FpdCBnZXRJbWFnZXNTdG9yZSgpOwogICAgY29uc3QgZG9jdW1lbnRJZCA9IHF1ZXJ5LmRhdGEuZG9jdW1lbnRJZDsKICAgIGNvbnN0IHJlcXVlc3QgPSBzdG9yZS5nZXRBbGwoKTsKICAgIHJlcXVlc3Qub25zdWNjZXNzID0gZXZlbnQgPT4gewogICAgICBjb25zdCBpbWFnZXMgPSBldmVudC50YXJnZXRbInJlc3VsdCJdOwogICAgICBjb25zdCBpbWFnZXNUb0RlbGV0ZSA9IGltYWdlcy5maWx0ZXIoaW1hZ2UgPT4gaW1hZ2UuZG9jdW1lbnRJZCA9PT0gZG9jdW1lbnRJZCk7CiAgICAgIGxldCBjb3VudGVyID0gMDsKICAgICAgZm9yIChjb25zdCBpbWFnZSBvZiBpbWFnZXNUb0RlbGV0ZSkgewogICAgICAgIGNvbnN0IGNoaWxkID0gc3RvcmUuZGVsZXRlKGltYWdlLmlkKTsKICAgICAgICBjaGlsZC5vbnN1Y2Nlc3MgPSAoKSA9PiB7CiAgICAgICAgICBjb3VudGVyKys7CiAgICAgICAgICBpZiAoY291bnRlciA9PT0gaW1hZ2VzVG9EZWxldGUubGVuZ3RoKSB7CiAgICAgICAgICAgIHNlbGYucG9zdE1lc3NhZ2UoewogICAgICAgICAgICAgIHRva2VuOiB0b2tlbiwKICAgICAgICAgICAgICBkYXRhOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgfQogICAgICAgIH07CiAgICAgIH0KICAgIH07CiAgfSBlbHNlIGlmIChxdWVyeS50eXBlID09PSAiZ2V0U0JEb2N1bWVudElkcyIpIHsKICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0U3RvcmUoU1RPUkVTLlNCX0RPQ1VNRU5UUyk7CiAgICBjb25zdCByZXF1ZXN0ID0gc3RvcmUuZ2V0QWxsS2V5cygpOwogICAgcG9zdFJlc3VsdE9uU3VjY2Vzcyh0b2tlbiwgcXVlcnksIHJlcXVlc3QpOwogIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gImluc2VydFNCRG9jdW1lbnQiKSB7CiAgICBjb25zdCBzdG9yZSA9IGF3YWl0IGdldFN0b3JlKFNUT1JFUy5TQl9ET0NVTUVOVFMpOwogICAgY29uc3QgcmVxdWVzdCA9IHN0b3JlLnB1dChxdWVyeS5kYXRhKTsKICAgIHBvc3RSZXN1bHRPblN1Y2Nlc3ModG9rZW4sIHF1ZXJ5LCByZXF1ZXN0KTsKICB9IGVsc2UgaWYgKHF1ZXJ5LnR5cGUgPT09ICJkZWxldGVTQkRvY3VtZW50IikgewogICAgY29uc3Qgc3RvcmUgPSBhd2FpdCBnZXRTdG9yZShTVE9SRVMuU0JfRE9DVU1FTlRTKTsKICAgIGNvbnN0IHJlcXVlc3QgPSBzdG9yZS5kZWxldGUocXVlcnkuZGF0YSk7CiAgICByZXF1ZXN0Lm9uc3VjY2VzcyA9IGV2ZW50ID0+IHsKICAgICAgc2VsZi5wb3N0TWVzc2FnZSh7CiAgICAgICAgdG9rZW46IHRva2VuLAogICAgICAgIGRhdGE6IHRydWUKICAgICAgfSk7CiAgICB9OwogICAgcmVxdWVzdC5vbmVycm9yID0gZXZlbnQgPT4gewogICAgICB0aHJvd0V4Y2VwdGlvbih0b2tlbiwgcXVlcnksICJFcnJvciBkZWxldGluZyBTQiBkb2N1bWVudCIpOwogICAgfTsKICB9IGVsc2UgaWYgKHF1ZXJ5LnR5cGUgPT09ICJnZXRTQkRvY3VtZW50IikgewogICAgY29uc3Qgc3RvcmUgPSBhd2FpdCBnZXRTdG9yZShTVE9SRVMuU0JfRE9DVU1FTlRTKTsKICAgIGNvbnN0IHJlcXVlc3QgPSBzdG9yZS5nZXQocXVlcnkuZGF0YSk7CiAgICBwb3N0UmVzdWx0T25TdWNjZXNzKHRva2VuLCBxdWVyeSwgcmVxdWVzdCk7CiAgfSBlbHNlIGlmIChxdWVyeS50eXBlID09PSAiaW5zZXJ0U0JQYWdlSW1hZ2UiIHx8IHF1ZXJ5LnR5cGUgPT09ICJpbnNlcnRJbWFnZUJ1ZmZlciIpIHsKICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0U3RvcmUoU1RPUkVTLklNQUdFUyk7CiAgICBjb25zdCByZXF1ZXN0ID0gc3RvcmUucHV0KHF1ZXJ5LmRhdGEpOwogICAgcG9zdFJlc3VsdE9uU3VjY2Vzcyh0b2tlbiwgcXVlcnksIHJlcXVlc3QpOwogIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gImdldFNCUGFnZUltYWdlIiB8fCBxdWVyeS50eXBlID09PSAiZ2V0SW1hZ2VCdWZmZXIiKSB7CiAgICBjb25zdCBzdG9yZSA9IGF3YWl0IGdldFN0b3JlKFNUT1JFUy5JTUFHRVMpOwogICAgY29uc3QgcmVxdWVzdCA9IHN0b3JlLmdldChxdWVyeS5kYXRhKTsKICAgIHBvc3RSZXN1bHRPblN1Y2Nlc3ModG9rZW4sIHF1ZXJ5LCByZXF1ZXN0KTsKICB9IGVsc2UgaWYgKHF1ZXJ5LnR5cGUgPT09ICJkZWxldGVTQlBhZ2VJbWFnZXMiKSB7CiAgICBjb25zdCBzdG9yZSA9IGF3YWl0IGdldFN0b3JlKFNUT1JFUy5JTUFHRVMpOwogICAgY29uc3QgaWRzID0gcXVlcnkuZGF0YTsKICAgIGZvciAoY29uc3QgaWQgb2YgaWRzKSB7CiAgICAgIHN0b3JlLmRlbGV0ZShpZCk7CiAgICB9CiAgICAvLyBXZSBjYW4ndCByZWFsbHkgZG8gYW55dGhpbmcgaWYgdGhlIGRlbGV0ZSBmYWlscywgc28gaXQgZG9lc24ndCBtYWtlIHNlbnNlIHRvIGF3YWl0IHRoZSByZXN1bHQuCiAgICAvLyBKdXN0IGFzc3VtZSBpdCB3b3JrZWQgYW5kIHJldHVybiB0aGUgcmVzdWx0IGltbWVkaWF0ZWx5LgogICAgc2VsZi5wb3N0TWVzc2FnZSh7CiAgICAgIHRva2VuOiB0b2tlbiwKICAgICAgZGF0YTogdHJ1ZQogICAgfSk7CiAgfSBlbHNlIHsKICAgIHRocm93RXhjZXB0aW9uKHRva2VuLCBxdWVyeSwgIlVua25vd24gcXVlcnkgdHlwZSIpOwogIH0KfTs="},1671:(e,t,n)=>{"use strict";n.d(t,{JH:()=>i,YJ:()=>l,bd:()=>u,bh:()=>s,fZ:()=>c,i3:()=>a,tb:()=>r,ux:()=>o});const i=["UNKNOWN","ASCII","ISO_8859_PART1","ISO_8859_PART2","ISO_8859_PART3","ISO_8859_PART4","ISO_8859_PART5","ISO_8859_PART6","ISO_8859_PART7","ISO_8859_PART8","ISO_8859_PART9","ISO_8859_PART10","ISO_8859_PART11","ISO_8859_PART13","ISO_8859_PART14","ISO_8859_PART15","ISO_8859_PART16","CP_437","CP_1250","CP_1251","CP_1252","CP_1256","SHIFT_JIS","BIG_5","GB_2312","GB_18030","EUC_JP","EUC_KR","UTF_16_BE","UTF_8","UTF_16_LE","UTF_32_BE","UTF_32_LE","BINARY"];class r{constructor(e={}){if(void 0===e.start)throw new Error("start must be present in constructor argument");if(this.start=e.start,void 0===e.end)throw new Error("end must be present in constructor argument");if(this.end=e.end,void 0===e.encoding)throw new Error("encoding must be present in constructor argument");this.encoding=e.encoding}}class o{constructor(e={}){if(void 0===e.count)throw new Error("count must be present in constructor argument");if(this.count=e.count,void 0===e.index)throw new Error("index must be present in constructor argument");if(this.index=e.index,void 0===e.id)throw new Error("id must be present in constructor argument");this.id=e.id}}const a=["NONE","AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","EAN_8","EAN_13","ITF","MAXI_CODE","PDF_417","QR_CODE","DATABAR","DATABAR_EXPANDED","UPC_A","UPC_E","MSI_PLESSEY","IATA_2_OF_5","INDUSTRIAL_2_OF_5","CODE_25","MICRO_QR_CODE","USPS_INTELLIGENT_MAIL","ROYAL_MAIL","JAPAN_POST","ROYAL_TNT_POST","AUSTRALIA_POST","DATABAR_LIMITED","MICRO_PDF_417","GS1_COMPOSITE","RMQR_CODE","CODE_11","CODE_32","PHARMA_CODE","PHARMA_CODE_TWO_TRACK","PZN_7","PZN_8"];class s{constructor(e={}){}}!function(e){e.oned=["CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_8","EAN_13","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","MSI_PLESSEY","PHARMA_CODE","PZN_7","PZN_8","UPC_A","UPC_E"],e.twod=["AZTEC","DATA_MATRIX","MAXI_CODE","MICRO_QR_CODE","MICRO_PDF_417","PDF_417","QR_CODE","RMQR_CODE"],e.postal=["AUSTRALIA_POST","JAPAN_POST","ROYAL_MAIL","ROYAL_TNT_POST","USPS_INTELLIGENT_MAIL"],e.pharma=["CODE_32","PHARMA_CODE","PHARMA_CODE_TWO_TRACK","PZN_7","PZN_8"],e.common=["AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","ITF","PDF_417","QR_CODE","UPC_A","UPC_E"],e.all=["AUSTRALIA_POST","AZTEC","CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","GS1_COMPOSITE","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","JAPAN_POST","MAXI_CODE","MICRO_PDF_417","MICRO_QR_CODE","MSI_PLESSEY","PDF_417","PHARMA_CODE","PHARMA_CODE_TWO_TRACK","PZN_7","PZN_8","QR_CODE","RMQR_CODE","ROYAL_MAIL","ROYAL_TNT_POST","UPC_A","UPC_E","USPS_INTELLIGENT_MAIL"]}(s||(s={}));const c=["PARSE","VALIDATE_STRUCTURE","DECODE_STRUCTURE","VALIDATE_FULL","DECODE_FULL"],l=["REQUIRE_2","REQUIRE_5","REQUIRE_ANY","IGNORE","ALLOW_2","ALLOW_5","ALLOW_ANY"],u=["NONE","MINIMAL","MODERATE","THOROUGH"]},1815:(e,t,n)=>{"use strict";n.d(t,{I:()=>a,W:()=>s});var i=n(982),r=n(5291),o=n(8382);function a(){const e=new r.BarcodeScannerScreenConfiguration;return e.viewFinder.overlayColor=(0,o.FH)(e.viewFinder.overlayColor,e.palette),e.viewFinder.style.strokeColor=(0,o.FH)(e.viewFinder.style.strokeColor,e.palette),e.viewFinder}class s extends i.J{constructor(e){super(e),this.finder=a(),this.userGuidance=function(){const e=new r.BarcodeScannerScreenConfiguration;return e.userGuidance.background.fillColor=(0,o.FH)(e.userGuidance.background.fillColor,e.palette),e.userGuidance.title.color=(0,o.FH)(e.userGuidance.title.color,e.palette),e.userGuidance.title.text=(0,o.PC)(e.userGuidance.title.text,[],e.localization),e.userGuidance}()}static mapFinderConfiguration(e,t){var n,r;i.J.mapValuesDeep(null!==(n=t.finder)&&void 0!==n?n:{},e.finder),i.J.mapValuesDeep(null!==(r=t.userGuidance)&&void 0!==r?r:{},e.userGuidance)}}},1855:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var i=n(525),r=n(170),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new r.mN({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.VinScanner.create(new r.mN(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.VinScanner.run(this.objectId,e);return{result:new r.Fc(o.result),originalImage:new i._(o.originalImage)}}))}cleanRecognitionQueue(){return o(this,void 0,void 0,(function*(){const e=this.workerBridge.copyArgs;return yield e.VinScanner.cleanRecognitionQueue(this.objectId)}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.VinScanner.destroy(this.objectId)}))}}},2176:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var i=n(8350);class r{constructor(e={}){if(void 0===e.rawMRZ)throw new Error("rawMRZ must be present in constructor argument");if(this.rawMRZ=e.rawMRZ,void 0===e.mrzDocument)throw new Error("mrzDocument must be present in constructor argument");this.mrzDocument=null!=e.mrzDocument?new i.$G(e.mrzDocument):null}}},2177:(e,t,n)=>{"use strict";n.d(t,{s:()=>a,z:()=>s});var i=n(525),r=n(1374),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new r.Wy({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.MrzScanner.create(new r.Wy(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.MrzScanner.run(this.objectId,e);return{result:new r.pR(o.result),originalImage:new i._(o.originalImage)}}))}clearResult(){return o(this,void 0,void 0,(function*(){const e=this.workerBridge.copyArgs;return yield e.MrzScanner.clearResult(this.objectId)}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.MrzScanner.destroy(this.objectId)}))}}class s{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new r.jO({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.MrzParser.create(new r.jO(t));return new s(e,n)}))}parse(e){return o(this,void 0,void 0,(function*(){const t=this.workerBridge.copyArgs;return yield t.MrzParser.parse(this.objectId,e)}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.MrzParser.destroy(this.objectId)}))}}},2381:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});class i{constructor(){this.container=void 0,this.containerId=void 0}static mapValues(e,t,n){Object.keys(e).forEach((i=>{(null==n?void 0:n.includes(i))||(t[i]=e[i])}))}static mapValuesDeep(e,t){const n=e=>e&&"object"==typeof e&&!Array.isArray(e);Object.keys(e).forEach((r=>{r in t&&n(e[r])&&n(t[r])?i.mapValuesDeep(e[r],t[r]):t[r]=e[r]}))}static _fromJson(e,t){return this.mapValuesDeep(t,e),e}}},2485:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)i.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},2504:(e,t,n)=>{"use strict";n.d(t,{t:()=>a});var i=n(8627),r=n(525),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new i.TM({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.DocumentQualityAnalyzer.create(new i.TM(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.DocumentQualityAnalyzer.run(this.objectId,e);return{result:new i.A_(o.result),originalImage:new r._(o.originalImage)}}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.DocumentQualityAnalyzer.destroy(this.objectId)}))}}},2635:(e,t,n)=>{"use strict";var i;n.d(t,{N1:()=>a,YW:()=>c,eB:()=>s,lm:()=>i,vZ:()=>o,zr:()=>r}),function(e){e.from=function(e){const t=e._type;switch(t){case"Glyph":return new r(e);case"Word":return new o(e);case"Line":return new a(e);case"Block":return new s(e);case"Page":return new c(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(i||(i={}));class r{constructor(e={}){if(this._type="Glyph",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");this.roi=e.roi.map((e=>({x:e.x,y:e.y})))}}class o{constructor(e={}){if(this._type="Word",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.glyphs)throw new Error("glyphs must be present in constructor argument");this.glyphs=e.glyphs.map((e=>new r(e)))}}class a{constructor(e={}){if(this._type="Line",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.words)throw new Error("words must be present in constructor argument");this.words=e.words.map((e=>new o(e)))}}class s{constructor(e={}){if(this._type="Block",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.lines)throw new Error("lines must be present in constructor argument");this.lines=e.lines.map((e=>new a(e)))}}class c{constructor(e={}){if(this._type="Page",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.blocks)throw new Error("blocks must be present in constructor argument");this.blocks=e.blocks.map((e=>new s(e)))}}},2833:e=>{e.exports=function(e,t,n,i){var r=n?n.call(i,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var l=o[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(r=n?n.call(i,u,d,l):void 0)||void 0===r&&u!==d)return!1}return!0}},2880:(e,t,n)=>{"use strict";n.d(t,{DZ:()=>o,S4:()=>a,kY:()=>s});var i=n(6396),r=n(73);const o=["SUCCESS","ERROR_NOTHING_FOUND","INCOMPLETE"];class a{constructor(e={}){if(void 0===e.detectionStatus)throw new Error("detectionStatus must be present in constructor argument");if(this.detectionStatus=e.detectionStatus,void 0===e.scanningStatus)throw new Error("scanningStatus must be present in constructor argument");if(this.scanningStatus=e.scanningStatus,void 0===e.creditCard)throw new Error("creditCard must be present in constructor argument");if(this.creditCard=null!=e.creditCard?new i.$G(e.creditCard):null,void 0===e.quad)throw new Error("quad must be present in constructor argument");if(this.quad=e.quad.map((e=>({x:e.x,y:e.y}))),void 0===e.quadNormalized)throw new Error("quadNormalized must be present in constructor argument");this.quadNormalized=e.quadNormalized.map((e=>({x:e.x,y:e.y})))}}class s{constructor(e={}){this.useDocumentDetector=!0,this.requireExpiryDate=!0,this.requireCardholderName=!0,this.resultAccumulationConfig=new r.$e({}),this.returnCreditCardImage=!1,this.processingMode="AUTO",void 0!==e.useDocumentDetector&&(this.useDocumentDetector=e.useDocumentDetector),void 0!==e.requireExpiryDate&&(this.requireExpiryDate=e.requireExpiryDate),void 0!==e.requireCardholderName&&(this.requireCardholderName=e.requireCardholderName),void 0!==e.resultAccumulationConfig&&(this.resultAccumulationConfig=new r.$e(e.resultAccumulationConfig)),void 0!==e.returnCreditCardImage&&(this.returnCreditCardImage=e.returnCreditCardImage),void 0!==e.processingMode&&(this.processingMode=e.processingMode)}}},3195:(e,t,n)=>{"use strict";var i,r;n.d(t,{Ay:()=>S,BI:()=>s,D$:()=>C,Dh:()=>D,Eq:()=>F,Ev:()=>L,HL:()=>O,I0:()=>R,JJ:()=>u,OK:()=>A,QP:()=>_,RC:()=>d,TG:()=>i,UC:()=>f,Uh:()=>v,Zb:()=>P,_l:()=>M,dV:()=>r,er:()=>b,ew:()=>y,f:()=>a,fb:()=>c,gH:()=>g,j9:()=>p,j_:()=>E,jj:()=>k,k6:()=>m,kp:()=>l,nx:()=>N,qY:()=>I,r$:()=>B,ty:()=>h,uW:()=>o,uY:()=>x,zH:()=>T,zX:()=>w}),function(e){e.from=function(e){const t=e._type;switch(t){case"BarcodeFormatCodabarConfiguration":return new o(e);case"BarcodeFormatCode11Configuration":return new a(e);case"BarcodeFormatCode39Configuration":return new s(e);case"BarcodeFormatCode93Configuration":return new c(e);case"BarcodeFormatCode128Configuration":return new l(e);case"BarcodeFormatCode2Of5Configuration":return new u(e);case"BarcodeFormatDataBarConfiguration":return new d(e);case"BarcodeFormatDataBarExpandedConfiguration":return new m(e);case"BarcodeFormatDataBarLimitedConfiguration":return new h(e);case"BarcodeFormatITFConfiguration":return new p(e);case"BarcodeFormatMSIPlesseyConfiguration":return new A(e);case"BarcodeFormatUpcEanConfiguration":return new g(e);case"BarcodeFormatPharmaCodeConfiguration":return new f(e);case"BarcodeFormatAztecConfiguration":return new D(e);case"BarcodeFormatQRCodeConfiguration":return new y(e);case"BarcodeFormatPDF417Configuration":return new I(e);case"BarcodeFormatMicroPDF417Configuration":return new v(e);case"BarcodeFormatDataMatrixConfiguration":return new N(e);case"BarcodeFormatMaxiCodeConfiguration":return new S(e);case"BarcodeFormatAustraliaPostConfiguration":return new M(e);case"BarcodeFormatJapanPostConfiguration":return new L(e);case"BarcodeFormatRoyalMailConfiguration":return new R(e);case"BarcodeFormatRoyalTNTPostConfiguration":return new T(e);case"BarcodeFormatUSPSIntelligentMailConfiguration":return new O(e);case"BarcodeFormatPharmaCodeTwoTrackConfiguration":return new w(e);case"BarcodeFormatGS1CompositeConfiguration":return new F(e);case"BarcodeFormatCommonOneDConfiguration":return new B(e);case"BarcodeFormatCommonTwoDConfiguration":return new P(e);case"BarcodeFormatCommonFourStateConfiguration":return new x(e);case"BarcodeFormatCommonConfiguration":return new k(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(i||(i={})),function(e){e.from=function(e){const t=e._type;switch(t){case"BarcodeFormatCodabarConfiguration":return new o(e);case"BarcodeFormatCode11Configuration":return new a(e);case"BarcodeFormatCode39Configuration":return new s(e);case"BarcodeFormatCode93Configuration":return new c(e);case"BarcodeFormatCode128Configuration":return new l(e);case"BarcodeFormatCode2Of5Configuration":return new u(e);case"BarcodeFormatDataBarConfiguration":return new d(e);case"BarcodeFormatDataBarExpandedConfiguration":return new m(e);case"BarcodeFormatDataBarLimitedConfiguration":return new h(e);case"BarcodeFormatITFConfiguration":return new p(e);case"BarcodeFormatMSIPlesseyConfiguration":return new A(e);case"BarcodeFormatUpcEanConfiguration":return new g(e);case"BarcodeFormatPharmaCodeConfiguration":return new f(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(r||(r={}));class o{constructor(e={}){this._type="BarcodeFormatCodabarConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,this.returnStartEnd=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner),void 0!==e.returnStartEnd&&(this.returnStartEnd=e.returnStartEnd)}}class a{constructor(e={}){this._type="BarcodeFormatCode11Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.checksum=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.checksum&&(this.checksum=e.checksum)}}class s{constructor(e={}){this._type="BarcodeFormatCode39Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,this.code32=!1,this.code39=!0,this.pzn7=!0,this.pzn8=!0,this.tryCode39ExtendedMode=!1,this.useCode39CheckDigit=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner),void 0!==e.code32&&(this.code32=e.code32),void 0!==e.code39&&(this.code39=e.code39),void 0!==e.pzn7&&(this.pzn7=e.pzn7),void 0!==e.pzn8&&(this.pzn8=e.pzn8),void 0!==e.tryCode39ExtendedMode&&(this.tryCode39ExtendedMode=e.tryCode39ExtendedMode),void 0!==e.useCode39CheckDigit&&(this.useCode39CheckDigit=e.useCode39CheckDigit)}}class c{constructor(e={}){this._type="BarcodeFormatCode93Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner)}}class l{constructor(e={}){this._type="BarcodeFormatCode128Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.gs1Handling="PARSE",this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner)}}class u{constructor(e={}){this._type="BarcodeFormatCode2Of5Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.iata2of5=!0,this.code25=!1,this.industrial2of5=!0,this.useIATA2OF5Checksum=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.iata2of5&&(this.iata2of5=e.iata2of5),void 0!==e.code25&&(this.code25=e.code25),void 0!==e.industrial2of5&&(this.industrial2of5=e.industrial2of5),void 0!==e.useIATA2OF5Checksum&&(this.useIATA2OF5Checksum=e.useIATA2OF5Checksum)}}class d{constructor(e={}){this._type="BarcodeFormatDataBarConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class m{constructor(e={}){this._type="BarcodeFormatDataBarExpandedConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class h{constructor(e={}){this._type="BarcodeFormatDataBarLimitedConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class p{constructor(e={}){this._type="BarcodeFormatITFConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner)}}const E=["MOD_10","MOD_11_IBM","MOD_11_NCR","MOD_10_10","MOD_11_10_IBM","MOD_11_10_NCR"];class A{constructor(e={}){this._type="BarcodeFormatMSIPlesseyConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,this.checksumAlgorithms=["MOD_10"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner),void 0!==e.checksumAlgorithms&&(this.checksumAlgorithms=e.checksumAlgorithms.map((e=>e)))}}class g{constructor(e={}){this._type="BarcodeFormatUpcEanConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.enableOneDBlurScanner=!1,this.ean8=!0,this.ean13=!0,this.upca=!0,this.upce=!0,this.extensions="ALLOW_ANY",this.minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless=1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner),void 0!==e.ean8&&(this.ean8=e.ean8),void 0!==e.ean13&&(this.ean13=e.ean13),void 0!==e.upca&&(this.upca=e.upca),void 0!==e.upce&&(this.upce=e.upce),void 0!==e.extensions&&(this.extensions=e.extensions),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless=e.minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless)}}class f{constructor(e={}){this._type="BarcodeFormatPharmaCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.minimumValue=16,this.allowNarrowBarsOnly=!1,this.allowWideBarsOnly=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.minimumValue&&(this.minimumValue=e.minimumValue),void 0!==e.allowNarrowBarsOnly&&(this.allowNarrowBarsOnly=e.allowNarrowBarsOnly),void 0!==e.allowWideBarsOnly&&(this.allowWideBarsOnly=e.allowWideBarsOnly)}}var C,_;!function(e){e.from=function(e){const t=e._type;switch(t){case"BarcodeFormatAztecConfiguration":return new D(e);case"BarcodeFormatQRCodeConfiguration":return new y(e);case"BarcodeFormatPDF417Configuration":return new I(e);case"BarcodeFormatMicroPDF417Configuration":return new v(e);case"BarcodeFormatDataMatrixConfiguration":return new N(e);case"BarcodeFormatMaxiCodeConfiguration":return new S(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(C||(C={}));class D{constructor(e={}){this._type="BarcodeFormatAztecConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class y{constructor(e={}){this._type="BarcodeFormatQRCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,this.qr=!0,this.microQr=!1,this.rmqr=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.qr&&(this.qr=e.qr),void 0!==e.microQr&&(this.microQr=e.microQr),void 0!==e.rmqr&&(this.rmqr=e.rmqr)}}class I{constructor(e={}){this._type="BarcodeFormatPDF417Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class v{constructor(e={}){this._type="BarcodeFormatMicroPDF417Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class N{constructor(e={}){this._type="BarcodeFormatDataMatrixConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class S{constructor(e={}){this._type="BarcodeFormatMaxiCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}!function(e){e.from=function(e){const t=e._type;switch(t){case"BarcodeFormatAustraliaPostConfiguration":return new M(e);case"BarcodeFormatJapanPostConfiguration":return new L(e);case"BarcodeFormatRoyalMailConfiguration":return new R(e);case"BarcodeFormatRoyalTNTPostConfiguration":return new T(e);case"BarcodeFormatUSPSIntelligentMailConfiguration":return new O(e);case"BarcodeFormatPharmaCodeTwoTrackConfiguration":return new w(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(_||(_={}));const b=["NUMERIC","ALPHA_NUMERIC"];class M{constructor(e={}){this._type="BarcodeFormatAustraliaPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.australiaPostCustomerFormat="ALPHA_NUMERIC",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.australiaPostCustomerFormat&&(this.australiaPostCustomerFormat=e.australiaPostCustomerFormat)}}class L{constructor(e={}){this._type="BarcodeFormatJapanPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class R{constructor(e={}){this._type="BarcodeFormatRoyalMailConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.stripCheckDigits=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits)}}class T{constructor(e={}){this._type="BarcodeFormatRoyalTNTPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class O{constructor(e={}){this._type="BarcodeFormatUSPSIntelligentMailConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class w{constructor(e={}){this._type="BarcodeFormatPharmaCodeTwoTrackConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimumValue=364,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimumValue&&(this.minimumValue=e.minimumValue)}}class F{constructor(e={}){this._type="BarcodeFormatGS1CompositeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class B{constructor(e={}){this._type="BarcodeFormatCommonOneDConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.gs1Handling="PARSE",this.oneDConfirmationMode="THOROUGH",this.formats=["CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_8","EAN_13","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","MSI_PLESSEY","PHARMA_CODE","PZN_7","PZN_8","UPC_A","UPC_E"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class P{constructor(e={}){this._type="BarcodeFormatCommonTwoDConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["AZTEC","DATA_MATRIX","MAXI_CODE","MICRO_QR_CODE","MICRO_PDF_417","PDF_417","QR_CODE","RMQR_CODE"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class x{constructor(e={}){this._type="BarcodeFormatCommonFourStateConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.formats=["AUSTRALIA_POST","JAPAN_POST","ROYAL_MAIL","ROYAL_TNT_POST","USPS_INTELLIGENT_MAIL"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class k{constructor(e={}){this._type="BarcodeFormatCommonConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.gs1Handling="PARSE",this.strictMode=!0,this.oneDConfirmationMode="THOROUGH",this.formats=["AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","ITF","PDF_417","QR_CODE","UPC_A","UPC_E"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}},3221:(e,t,n)=>{"use strict";n.d(t,{Ou:()=>s,Vr:()=>r,gf:()=>a,pR:()=>o});var i=n(5296);class r{constructor(e){this.id=e}}class o{_nonPartiallyConstructibleMarker(){}}class a{constructor(){this._map=new Map,this._nextId=0,this._unique=Math.random().toString(36)}add(e){const t=this._nextId.toString()+"_"+this._unique;return this._map.set(t,e),this._nextId++,new r(t)}get(e){return this._map.get(e.id)}delete(e){this.get(e).delete(),this._map.delete(e.id)}}function s(e){if(e.errorMessage)throw(0,i.$5)(e.errorType,e.errorMessage);return e.result}},3296:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AAMVA:()=>Ie,AUSCheck:()=>Te,AccumulatedResultsVerifierConfiguration:()=>O.X,AspectRatio:()=>E.gl,AustraliaPostCustomerFormatValues:()=>i.er,AutoFocusConfiguration:()=>m.a8,BarcodeAccumulationConfiguration:()=>r.Q,BarcodeAccumulationMethodValues:()=>r.bC,BarcodeDocumentFormatValues:()=>a.b2,BarcodeDocumentFormats:()=>a.ix,BarcodeDocumentParser:()=>Ke.v,BarcodeDocumentParserResult:()=>a.w5,BarcodeFormatAustraliaPostConfiguration:()=>i._l,BarcodeFormatAztecConfiguration:()=>i.Dh,BarcodeFormatCodabarConfiguration:()=>i.uW,BarcodeFormatCode11Configuration:()=>i.f,BarcodeFormatCode128Configuration:()=>i.kp,BarcodeFormatCode2Of5Configuration:()=>i.JJ,BarcodeFormatCode39Configuration:()=>i.BI,BarcodeFormatCode93Configuration:()=>i.fb,BarcodeFormatCommonConfiguration:()=>i.jj,BarcodeFormatCommonFourStateConfiguration:()=>i.uY,BarcodeFormatCommonOneDConfiguration:()=>i.r$,BarcodeFormatCommonTwoDConfiguration:()=>i.Zb,BarcodeFormatConfigurationBase:()=>i.TG,BarcodeFormatDataBarConfiguration:()=>i.RC,BarcodeFormatDataBarExpandedConfiguration:()=>i.k6,BarcodeFormatDataBarLimitedConfiguration:()=>i.ty,BarcodeFormatDataMatrixConfiguration:()=>i.nx,BarcodeFormatFourStateConfigurationBase:()=>i.QP,BarcodeFormatGs1CompositeConfiguration:()=>i.Eq,BarcodeFormatItfConfiguration:()=>i.j9,BarcodeFormatJapanPostConfiguration:()=>i.Ev,BarcodeFormatMaxiCodeConfiguration:()=>i.Ay,BarcodeFormatMicroPdf417Configuration:()=>i.Uh,BarcodeFormatMsiPlesseyConfiguration:()=>i.OK,BarcodeFormatOneDConfigurationBase:()=>i.dV,BarcodeFormatPdf417Configuration:()=>i.qY,BarcodeFormatPharmaCodeConfiguration:()=>i.UC,BarcodeFormatPharmaCodeTwoTrackConfiguration:()=>i.zX,BarcodeFormatQrCodeConfiguration:()=>i.ew,BarcodeFormatRoyalMailConfiguration:()=>i.I0,BarcodeFormatRoyalTntPostConfiguration:()=>i.zH,BarcodeFormatTwoDConfigurationBase:()=>i.D$,BarcodeFormatUpcEanConfiguration:()=>i.gH,BarcodeFormatUspsIntelligentMailConfiguration:()=>i.HL,BarcodeFormatValues:()=>o.i3,BarcodeFormats:()=>o.bh,BarcodeItem:()=>r.Ou,BarcodeScanner:()=>je.v,BarcodeScannerConfiguration:()=>r.zQ,BarcodeScannerEngineModeValues:()=>r.MD,BarcodeScannerResult:()=>r.AG,BinarizationFilterPresetValues:()=>f.Oc,Block:()=>g.eB,BoardingPass:()=>pe,BrIdCardBack:()=>Q,BrIdCardFront:()=>j,BrIdCardFrontPhotoOnly:()=>J,BridgeApiEntrypoint:()=>et.u,BrightnessFilter:()=>f.YF,BritishColumbiaDriverLicense:()=>ye,CANCheck:()=>we,CharacterEncodingValues:()=>o.JH,Check:()=>Ne,CheckDocumentDetectionModeValues:()=>s.EJ,CheckMagneticInkStripScanningStatusValues:()=>s.k7,CheckScanner:()=>Qe.p,CheckScannerConfiguration:()=>s.Bp,CheckScanningResult:()=>s.fn,CheckStandardValues:()=>s.kh,CnEntryAndExitPermitBack:()=>K,CnEntryAndExitPermitFront:()=>$,CnPermanentResidentCardFront:()=>ee,ColorDocumentFilter:()=>f.hJ,ColorDocumentShadowRemovalFilter:()=>f.t,CommonFieldTypeValues:()=>c.W,CompositeFieldValueSemantics:()=>h.a5,CompressionModeValues:()=>N,ConfirmationMethodValues:()=>O.hZ,ConsistencyVerificationReport:()=>h.W9,ContentValidator:()=>p.Ib,ContrastFilter:()=>f.vd,CreditCard:()=>Be,CreditCardScanner:()=>$e.g,CreditCardScannerConfiguration:()=>P.kY,CreditCardScanningResult:()=>P.S4,CreditCardScanningStatusValues:()=>P.DZ,CustomBinarizationFilter:()=>f.Y8,DEMedicalPlan:()=>Ae,DateValidationConfiguration:()=>m.qQ,DeHealthInsuranceCardFront:()=>X,DeIdCardBack:()=>Z,DeIdCardFront:()=>U,DePassport:()=>W,DeResidencePermitBack:()=>Y,DeResidencePermitFront:()=>z,DefaultContentValidator:()=>p.RT,DeviceDeregistrationError:()=>xe,DocumentClassifier:()=>tt.x,DocumentClassifierConfiguration:()=>Ze.hq,DocumentClassifierResult:()=>Ze.g$,DocumentClassifierStatusValues:()=>Ze.jJ,DocumentDataExtractionResult:()=>h.qc,DocumentDataExtractionStatusValues:()=>h.Vi,DocumentDataExtractor:()=>ze.M,DocumentDataExtractorCommonConfiguration:()=>m.bl,DocumentDataExtractorConfiguration:()=>h.sO,DocumentDataExtractorConfigurationElement:()=>m.GF,DocumentDetectionResult:()=>l.aJ,DocumentDetectionScores:()=>l.Qz,DocumentDetectionStatusValues:()=>l.Bt,DocumentDisplacementValues:()=>l.zP,DocumentQualityAnalyzer:()=>qe.t,DocumentQualityAnalyzerConfiguration:()=>u.TM,DocumentQualityAnalyzerResult:()=>u.A_,DocumentQualityThreshold:()=>u.Yb,DocumentQualityValues:()=>u.Zf,DocumentScanner:()=>Xe.A,DocumentScannerConfiguration:()=>l.A9,DocumentScannerEngineModeValues:()=>l.tC,DocumentScannerParameters:()=>l.AE,DocumentScanningResult:()=>l.EU,DocumentTrustModeValues:()=>h.x3,DocumentTypeValues:()=>Ze.wO,DocumentVerificationReport:()=>h.vv,DocumentVerificationStatusValues:()=>h.XI,EuropeanDriverLicenseBack:()=>G,EuropeanDriverLicenseFront:()=>H,EuropeanHealthInsuranceCard:()=>q,EuropeanHealthInsuranceCardConfiguration:()=>m.KH,EuropeanHealthInsuranceCardIssuingCountryValues:()=>m.ID,FRACheck:()=>Me,FeatureValues:()=>Ve,Field:()=>d.D0,FieldConsistencyVerificationReport:()=>h.Ed,FieldDataFormatValues:()=>d.yJ,FieldInvalidDataVerificationReport:()=>h.Zx,FieldParsedData:()=>d.YA,FieldSuspiciousDataVerificationReport:()=>h.Zs,FieldType:()=>d.PU,FieldValidationStatusValues:()=>d.oB,FieldValueSemantics:()=>h.VY,GS1:()=>fe,GenericDocument:()=>d.$G,GenericDocumentType:()=>d.Dq,GlareDetectionConfiguration:()=>m.tn,Glyph:()=>g.zr,GrayscaleFilter:()=>f.w,Gs1HandlingValues:()=>o.fZ,HIBC:()=>ve,HkIdentityCardFront:()=>te,IDCardPDF417:()=>ge,INDCheck:()=>Oe,ISRCheck:()=>Le,Image:()=>ot._,ImageManipulator:()=>nt.S,ImageOriginValues:()=>F,ImageProcessor:()=>Ge.C,ImageRotationValues:()=>w,InvalidDataVerificationReport:()=>h.pS,ItIdCardBack:()=>se,ItIdCardFront:()=>ae,KWTCheck:()=>Re,LegacyFilter:()=>f.An,LicenseInfo:()=>ke,LicenseStatusValues:()=>Pe,Line:()=>g.N1,LineSegmentFloat:()=>E.sw,LineSegmentInt:()=>E.pk,MRZ:()=>k,MedicalCertificate:()=>_e,Metadata:()=>x,MoIdentityCardBack:()=>ie,MoIdentityCardFront:()=>re,MrzDocumentTypeValues:()=>A.zm,MrzFallbackConfiguration:()=>m.JK,MrzIncompleteResultHandlingValues:()=>A.Uo,MrzParser:()=>Je.z,MrzParserConfiguration:()=>A.jO,MrzScanner:()=>Je.s,MrzScannerConfiguration:()=>A.Wy,MrzScannerResult:()=>A.pR,MsiPlesseyChecksumAlgorithmValues:()=>i.j_,NonPartiallyConstructible:()=>at.pR,ObjectId:()=>at.Vr,OcrElement:()=>g.lm,OcrEngine:()=>Ye.x,OcrResult:()=>d.S5,OneDConfirmationModeValues:()=>o.bd,OutputModeValues:()=>f.Ni,Page:()=>g.YW,PageBinarizationValues:()=>f.yH,PageDirectionValues:()=>D,PageFitValues:()=>y,PageSizeValues:()=>_,ParametricFilter:()=>f.hI,ParsedDeAddress:()=>V,PartiallyVisibleDocumentConfiguration:()=>l.mb,PatternContentValidator:()=>p.Cq,PatternGrammarValues:()=>p.sr,PdfAttributes:()=>C,PdfConfiguration:()=>v,PoIdCardBack:()=>de,PoIdCardFront:()=>ce,ProcessByTileConfiguration:()=>u.Fb,ProcessingModeValues:()=>Ue,RangeEncoding:()=>o.tb,ResamplingMethodValues:()=>I,ResultAccumulationConfiguration:()=>O.$e,RoIdCardBack:()=>le,RoIdCardFront:()=>ue,RoIdCardTD3:()=>oe,SEPA:()=>Ce,ScanbotBinarizationFilter:()=>f.Xb,SemanticsVerificationReport:()=>h.tl,StructuredAppendInfo:()=>o.ux,SuspiciousDataVerificationReport:()=>h.Fl,SwissQR:()=>Ee,SymbolBox:()=>p.se,TextPatternScanner:()=>We.g,TextPatternScannerConfiguration:()=>p.Qr,TextPatternScannerResult:()=>p.n_,TiffGeneratorParameters:()=>T,TrIdCardBack:()=>me,TrIdCardFront:()=>he,TwEntryAndExitPermit:()=>ne,UAECheck:()=>be,USACheck:()=>Se,UnknownCheck:()=>Fe,UpcEanExtensionBehaviorValues:()=>o.YJ,UserField:()=>R,UserFieldDoubleValue:()=>b,UserFieldIntValue:()=>L,UserFieldStringValue:()=>M,UserFieldValue:()=>S,VCard:()=>De,ValueConsistencyValues:()=>h.ey,ValueSemanticsValues:()=>h.Re,VinBarcodeExtractionStatusValues:()=>B.RX,VinBarcodeResult:()=>B.dn,VinScanner:()=>He.g,VinScannerConfiguration:()=>B.mN,VinScannerResult:()=>B.Fc,WasmObjectMap:()=>at.gf,WhiteBlackPointFilter:()=>f.f8,Word:()=>g.vZ,WordBox:()=>p.S7,WorkerBridge:()=>rt._,areThreadsAvailable:()=>it.jz,consumeResult:()=>at.Ou,gatherTransferables:()=>it.ef,getBuildType:()=>it.Jk,isRemote:()=>it.Vx});var i=n(3195),r=n(4151),o=n(1671),a=n(4896),s=n(8667),c=n(3415),l=n(7828),u=n(8627),d=n(6396),m=n(1304),h=n(9338),p=n(6244),E=n(586),A=n(1374),g=n(2635),f=n(177);class C{constructor(e={}){this.author="Created with Scanbot SDK",this.creator="",this.title="",this.subject="",this.keywords="",void 0!==e.author&&(this.author=e.author),void 0!==e.creator&&(this.creator=e.creator),void 0!==e.title&&(this.title=e.title),void 0!==e.subject&&(this.subject=e.subject),void 0!==e.keywords&&(this.keywords=e.keywords)}}const _=["LETTER","LEGAL","A3","A4","A5","B4","B5","EXECUTIVE","US4x6","US4x8","US5x7","COMM10","CUSTOM"],D=["PORTRAIT","LANDSCAPE","AUTO"],y=["FIT_IN","FILL_IN","STRETCH","NONE"],I=["NONE","NEAREST","LINEAR","CUBIC","LANCZOS4","AREA"];class v{constructor(e={}){this.attributes=new C({}),this.pageSize="A4",this.pageDirection="PORTRAIT",this.pageFit="FIT_IN",this.dpi=72,this.jpegQuality=80,this.resamplingMethod="NONE",this.binarizationFilter=null,void 0!==e.attributes&&(this.attributes=new C(e.attributes)),void 0!==e.pageSize&&(this.pageSize=e.pageSize),void 0!==e.pageDirection&&(this.pageDirection=e.pageDirection),void 0!==e.pageFit&&(this.pageFit=e.pageFit),void 0!==e.dpi&&(this.dpi=e.dpi),void 0!==e.jpegQuality&&(this.jpegQuality=e.jpegQuality),void 0!==e.resamplingMethod&&(this.resamplingMethod=e.resamplingMethod),void 0!==e.binarizationFilter&&(this.binarizationFilter=null!=e.binarizationFilter?f.hI.from(e.binarizationFilter):null)}}const N=["NONE","CCITTRLE","CCITT_T4","CCITT_T6","LZW","JPEG","CCITTRLEW","PACKBITS","DEFLATE","ADOBE_DEFLATE"];var S;!function(e){e.from=function(e){const t=e._type;switch(t){case"UserFieldDoubleValue":return new b(e);case"UserFieldStringValue":return new M(e);case"UserFieldIntValue":return new L(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(S||(S={}));class b{constructor(e={}){if(this._type="UserFieldDoubleValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class M{constructor(e={}){if(this._type="UserFieldStringValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class L{constructor(e={}){if(this._type="UserFieldIntValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class R{constructor(e={}){if(void 0===e.tag)throw new Error("tag must be present in constructor argument");if(this.tag=e.tag,void 0===e.name)throw new Error("name must be present in constructor argument");if(this.name=e.name,void 0===e.value)throw new Error("value must be present in constructor argument");this.value=S.from(e.value)}}class T{constructor(e={}){this.compression="LZW",this.jpegQuality=80,this.zipCompressionLevel=6,this.dpi=72,this.userFields=[],this.binarizationFilter=null,void 0!==e.compression&&(this.compression=e.compression),void 0!==e.jpegQuality&&(this.jpegQuality=e.jpegQuality),void 0!==e.zipCompressionLevel&&(this.zipCompressionLevel=e.zipCompressionLevel),void 0!==e.dpi&&(this.dpi=e.dpi),void 0!==e.userFields&&(this.userFields=e.userFields.map((e=>new R(e)))),void 0!==e.binarizationFilter&&(this.binarizationFilter=null!=e.binarizationFilter?f.hI.from(e.binarizationFilter):null)}}!function(e){e.defaultCompression="LZW",e.binaryDocumentOptimizedCompression="CCITT_T6"}(T||(T={}));var O=n(73);const w=["NONE","CLOCKWISE_90","CLOCKWISE_180","COUNTERCLOCKWISE_90"],F=["TOP_LEFT","TOP_RIGHT","BOTTOM_LEFT","BOTTOM_RIGHT"];var B=n(170),P=n(2880);class x{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return x.DOCUMENT_TYPE}get country(){return this.document.fields.find((e=>"Country"===e.type.name))}get documentSide(){return this.document.fields.find((e=>"DocumentSide"===e.type.name))}get printingFormat(){return this.document.fields.find((e=>"PrintingFormat"===e.type.name))}get tagss(){return this.document.fields.filter((e=>"Tags"===e.type.name))}}x.DOCUMENT_TYPE="Metadata",x.COUNTRY_FIELD_NAME="Country",x.COUNTRY_FIELD_NAME_NORMALIZED="Metadata.Country",x.DOCUMENT_SIDE_FIELD_NAME="DocumentSide",x.DOCUMENT_SIDE_FIELD_NAME_NORMALIZED="Metadata.DocumentSide",x.PRINTING_FORMAT_FIELD_NAME="PrintingFormat",x.PRINTING_FORMAT_FIELD_NAME_NORMALIZED="Metadata.PrintingFormat",x.TAGS_FIELD_NAME="Tags",x.TAGS_FIELD_NAME_NORMALIZED="Metadata.Tags";class k{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return k.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get checkDigitBirthDate(){return this.document.fields.find((e=>"CheckDigitBirthDate"===e.type.name))}get checkDigitDocumentNumber(){return this.document.fields.find((e=>"CheckDigitDocumentNumber"===e.type.name))}get checkDigitExpiryDate(){return this.document.fields.find((e=>"CheckDigitExpiryDate"===e.type.name))}get checkDigitGeneral(){return this.document.fields.find((e=>"CheckDigitGeneral"===e.type.name))}get checkDigitPersonalNumber(){return this.document.fields.find((e=>"CheckDigitPersonalNumber"===e.type.name))}get dateOfIssuance(){return this.document.fields.find((e=>"DateOfIssuance"===e.type.name))}get documentNumber(){return this.document.fields.find((e=>"DocumentNumber"===e.type.name))}get documentType(){return this.document.fields.find((e=>"DocumentType"===e.type.name))}get documentTypeCode(){return this.document.fields.find((e=>"DocumentTypeCode"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get languageCode(){return this.document.fields.find((e=>"LanguageCode"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get officeOfIssuance(){return this.document.fields.find((e=>"OfficeOfIssuance"===e.type.name))}get optional1(){return this.document.fields.find((e=>"Optional1"===e.type.name))}get optional2(){return this.document.fields.find((e=>"Optional2"===e.type.name))}get pinCode(){return this.document.fields.find((e=>"PINCode"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get travelDocType(){return this.document.fields.find((e=>"TravelDocType"===e.type.name))}get travelDocTypeVariant(){return this.document.fields.find((e=>"TravelDocTypeVariant"===e.type.name))}get unknown(){return this.document.fields.find((e=>"Unknown"===e.type.name))}get versionNumber(){return this.document.fields.find((e=>"VersionNumber"===e.type.name))}get visaOptional(){return this.document.fields.find((e=>"VisaOptional"===e.type.name))}}k.DOCUMENT_TYPE="MRZ",k.BIRTH_DATE_FIELD_NAME="BirthDate",k.BIRTH_DATE_FIELD_NAME_NORMALIZED="MRZ.BirthDate",k.CHECK_DIGIT_BIRTH_DATE_FIELD_NAME="CheckDigitBirthDate",k.CHECK_DIGIT_BIRTH_DATE_FIELD_NAME_NORMALIZED="MRZ.CheckDigitBirthDate",k.CHECK_DIGIT_DOCUMENT_NUMBER_FIELD_NAME="CheckDigitDocumentNumber",k.CHECK_DIGIT_DOCUMENT_NUMBER_FIELD_NAME_NORMALIZED="MRZ.CheckDigitDocumentNumber",k.CHECK_DIGIT_EXPIRY_DATE_FIELD_NAME="CheckDigitExpiryDate",k.CHECK_DIGIT_EXPIRY_DATE_FIELD_NAME_NORMALIZED="MRZ.CheckDigitExpiryDate",k.CHECK_DIGIT_GENERAL_FIELD_NAME="CheckDigitGeneral",k.CHECK_DIGIT_GENERAL_FIELD_NAME_NORMALIZED="MRZ.CheckDigitGeneral",k.CHECK_DIGIT_PERSONAL_NUMBER_FIELD_NAME="CheckDigitPersonalNumber",k.CHECK_DIGIT_PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="MRZ.CheckDigitPersonalNumber",k.DATE_OF_ISSUANCE_FIELD_NAME="DateOfIssuance",k.DATE_OF_ISSUANCE_FIELD_NAME_NORMALIZED="MRZ.DateOfIssuance",k.DOCUMENT_NUMBER_FIELD_NAME="DocumentNumber",k.DOCUMENT_NUMBER_FIELD_NAME_NORMALIZED="MRZ.DocumentNumber",k.DOCUMENT_TYPE_FIELD_NAME="DocumentType",k.DOCUMENT_TYPE_FIELD_NAME_NORMALIZED="MRZ.DocumentType",k.DOCUMENT_TYPE_CODE_FIELD_NAME="DocumentTypeCode",k.DOCUMENT_TYPE_CODE_FIELD_NAME_NORMALIZED="MRZ.DocumentTypeCode",k.EXPIRY_DATE_FIELD_NAME="ExpiryDate",k.EXPIRY_DATE_FIELD_NAME_NORMALIZED="MRZ.ExpiryDate",k.GENDER_FIELD_NAME="Gender",k.GENDER_FIELD_NAME_NORMALIZED="MRZ.Gender",k.GIVEN_NAMES_FIELD_NAME="GivenNames",k.GIVEN_NAMES_FIELD_NAME_NORMALIZED="MRZ.GivenNames",k.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",k.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="MRZ.IssuingAuthority",k.LANGUAGE_CODE_FIELD_NAME="LanguageCode",k.LANGUAGE_CODE_FIELD_NAME_NORMALIZED="MRZ.LanguageCode",k.NATIONALITY_FIELD_NAME="Nationality",k.NATIONALITY_FIELD_NAME_NORMALIZED="MRZ.Nationality",k.OFFICE_OF_ISSUANCE_FIELD_NAME="OfficeOfIssuance",k.OFFICE_OF_ISSUANCE_FIELD_NAME_NORMALIZED="MRZ.OfficeOfIssuance",k.OPTIONAL_1_FIELD_NAME="Optional1",k.OPTIONAL_1_FIELD_NAME_NORMALIZED="MRZ.Optional1",k.OPTIONAL_2_FIELD_NAME="Optional2",k.OPTIONAL_2_FIELD_NAME_NORMALIZED="MRZ.Optional2",k.PIN_CODE_FIELD_NAME="PINCode",k.PIN_CODE_FIELD_NAME_NORMALIZED="MRZ.PINCode",k.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",k.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="MRZ.PersonalNumber",k.SURNAME_FIELD_NAME="Surname",k.SURNAME_FIELD_NAME_NORMALIZED="MRZ.Surname",k.TRAVEL_DOC_TYPE_FIELD_NAME="TravelDocType",k.TRAVEL_DOC_TYPE_FIELD_NAME_NORMALIZED="MRZ.TravelDocType",k.TRAVEL_DOC_TYPE_VARIANT_FIELD_NAME="TravelDocTypeVariant",k.TRAVEL_DOC_TYPE_VARIANT_FIELD_NAME_NORMALIZED="MRZ.TravelDocTypeVariant",k.UNKNOWN_FIELD_NAME="Unknown",k.UNKNOWN_FIELD_NAME_NORMALIZED="MRZ.Unknown",k.VERSION_NUMBER_FIELD_NAME="VersionNumber",k.VERSION_NUMBER_FIELD_NAME_NORMALIZED="MRZ.VersionNumber",k.VISA_OPTIONAL_FIELD_NAME="VisaOptional",k.VISA_OPTIONAL_FIELD_NAME_NORMALIZED="MRZ.VisaOptional";class V{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return V.DOCUMENT_TYPE}get district(){return this.document.fields.find((e=>"District"===e.type.name))}get districtAddition(){return this.document.fields.find((e=>"DistrictAddition"===e.type.name))}get houseNumber(){return this.document.fields.find((e=>"HouseNumber"===e.type.name))}get postalCode(){return this.document.fields.find((e=>"PostalCode"===e.type.name))}get streetName(){return this.document.fields.find((e=>"StreetName"===e.type.name))}}V.DOCUMENT_TYPE="ParsedDeAddress",V.DISTRICT_FIELD_NAME="District",V.DISTRICT_FIELD_NAME_NORMALIZED="ParsedDeAddress.District",V.DISTRICT_ADDITION_FIELD_NAME="DistrictAddition",V.DISTRICT_ADDITION_FIELD_NAME_NORMALIZED="ParsedDeAddress.DistrictAddition",V.HOUSE_NUMBER_FIELD_NAME="HouseNumber",V.HOUSE_NUMBER_FIELD_NAME_NORMALIZED="ParsedDeAddress.HouseNumber",V.POSTAL_CODE_FIELD_NAME="PostalCode",V.POSTAL_CODE_FIELD_NAME_NORMALIZED="ParsedDeAddress.PostalCode",V.STREET_NAME_FIELD_NAME="StreetName",V.STREET_NAME_FIELD_NAME_NORMALIZED="ParsedDeAddress.StreetName";class U{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return U.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get maidenName(){return this.document.fields.find((e=>"MaidenName"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get series(){return this.document.fields.find((e=>"Series"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}U.DOCUMENT_TYPE="DeIdCardFront",U.BIRTH_DATE_FIELD_NAME="BirthDate",U.BIRTH_DATE_FIELD_NAME_NORMALIZED="DeIdCardFront.BirthDate",U.BIRTHPLACE_FIELD_NAME="Birthplace",U.BIRTHPLACE_FIELD_NAME_NORMALIZED="DeIdCardFront.Birthplace",U.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",U.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="DeIdCardFront.CardAccessNumber",U.EXPIRY_DATE_FIELD_NAME="ExpiryDate",U.EXPIRY_DATE_FIELD_NAME_NORMALIZED="DeIdCardFront.ExpiryDate",U.GIVEN_NAMES_FIELD_NAME="GivenNames",U.GIVEN_NAMES_FIELD_NAME_NORMALIZED="DeIdCardFront.GivenNames",U.ID_FIELD_NAME="ID",U.ID_FIELD_NAME_NORMALIZED="DeIdCardFront.ID",U.MAIDEN_NAME_FIELD_NAME="MaidenName",U.MAIDEN_NAME_FIELD_NAME_NORMALIZED="DeIdCardFront.MaidenName",U.NATIONALITY_FIELD_NAME="Nationality",U.NATIONALITY_FIELD_NAME_NORMALIZED="DeIdCardFront.Nationality",U.PHOTO_FIELD_NAME="Photo",U.PHOTO_FIELD_NAME_NORMALIZED="DeIdCardFront.Photo",U.SERIES_FIELD_NAME="Series",U.SERIES_FIELD_NAME_NORMALIZED="DeIdCardFront.Series",U.SIGNATURE_FIELD_NAME="Signature",U.SIGNATURE_FIELD_NAME_NORMALIZED="DeIdCardFront.Signature",U.SURNAME_FIELD_NAME="Surname",U.SURNAME_FIELD_NAME_NORMALIZED="DeIdCardFront.Surname";class Z{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Z.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get eyeColor(){return this.document.fields.find((e=>"EyeColor"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get pseudonym(){return this.document.fields.find((e=>"Pseudonym"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get series(){return this.document.fields.find((e=>"Series"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get parsedDeAddress(){const e=this.document.children.find((e=>"ParsedDeAddress"===e.type.name));return new V(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}Z.DOCUMENT_TYPE="DeIdCardBack",Z.ADDRESS_FIELD_NAME="Address",Z.ADDRESS_FIELD_NAME_NORMALIZED="DeIdCardBack.Address",Z.EYE_COLOR_FIELD_NAME="EyeColor",Z.EYE_COLOR_FIELD_NAME_NORMALIZED="DeIdCardBack.EyeColor",Z.HEIGHT_FIELD_NAME="Height",Z.HEIGHT_FIELD_NAME_NORMALIZED="DeIdCardBack.Height",Z.ISSUE_DATE_FIELD_NAME="IssueDate",Z.ISSUE_DATE_FIELD_NAME_NORMALIZED="DeIdCardBack.IssueDate",Z.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",Z.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="DeIdCardBack.IssuingAuthority",Z.PSEUDONYM_FIELD_NAME="Pseudonym",Z.PSEUDONYM_FIELD_NAME_NORMALIZED="DeIdCardBack.Pseudonym",Z.RAW_MRZ_FIELD_NAME="RawMRZ",Z.RAW_MRZ_FIELD_NAME_NORMALIZED="DeIdCardBack.RawMRZ",Z.SERIES_FIELD_NAME="Series",Z.SERIES_FIELD_NAME_NORMALIZED="DeIdCardBack.Series";class W{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return W.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get countryCode(){return this.document.fields.find((e=>"CountryCode"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get maidenName(){return this.document.fields.find((e=>"MaidenName"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get passportType(){return this.document.fields.find((e=>"PassportType"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}W.DOCUMENT_TYPE="DePassport",W.BIRTH_DATE_FIELD_NAME="BirthDate",W.BIRTH_DATE_FIELD_NAME_NORMALIZED="DePassport.BirthDate",W.BIRTHPLACE_FIELD_NAME="Birthplace",W.BIRTHPLACE_FIELD_NAME_NORMALIZED="DePassport.Birthplace",W.COUNTRY_CODE_FIELD_NAME="CountryCode",W.COUNTRY_CODE_FIELD_NAME_NORMALIZED="DePassport.CountryCode",W.EXPIRY_DATE_FIELD_NAME="ExpiryDate",W.EXPIRY_DATE_FIELD_NAME_NORMALIZED="DePassport.ExpiryDate",W.GENDER_FIELD_NAME="Gender",W.GENDER_FIELD_NAME_NORMALIZED="DePassport.Gender",W.GIVEN_NAMES_FIELD_NAME="GivenNames",W.GIVEN_NAMES_FIELD_NAME_NORMALIZED="DePassport.GivenNames",W.ID_FIELD_NAME="ID",W.ID_FIELD_NAME_NORMALIZED="DePassport.ID",W.ISSUE_DATE_FIELD_NAME="IssueDate",W.ISSUE_DATE_FIELD_NAME_NORMALIZED="DePassport.IssueDate",W.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",W.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="DePassport.IssuingAuthority",W.MAIDEN_NAME_FIELD_NAME="MaidenName",W.MAIDEN_NAME_FIELD_NAME_NORMALIZED="DePassport.MaidenName",W.NATIONALITY_FIELD_NAME="Nationality",W.NATIONALITY_FIELD_NAME_NORMALIZED="DePassport.Nationality",W.PASSPORT_TYPE_FIELD_NAME="PassportType",W.PASSPORT_TYPE_FIELD_NAME_NORMALIZED="DePassport.PassportType",W.PHOTO_FIELD_NAME="Photo",W.PHOTO_FIELD_NAME_NORMALIZED="DePassport.Photo",W.RAW_MRZ_FIELD_NAME="RawMRZ",W.RAW_MRZ_FIELD_NAME_NORMALIZED="DePassport.RawMRZ",W.SIGNATURE_FIELD_NAME="Signature",W.SIGNATURE_FIELD_NAME_NORMALIZED="DePassport.Signature",W.SURNAME_FIELD_NAME="Surname",W.SURNAME_FIELD_NAME_NORMALIZED="DePassport.Surname";class H{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return H.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get administrativeNumber(){return this.document.fields.find((e=>"AdministrativeNumber"===e.type.name))}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get citizenship(){return this.document.fields.find((e=>"Citizenship"===e.type.name))}get country(){return this.document.fields.find((e=>"Country"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get licenseCategories(){return this.document.fields.find((e=>"LicenseCategories"===e.type.name))}get mrz(){return this.document.fields.find((e=>"MRZ"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get restrictions(){return this.document.fields.find((e=>"Restrictions"===e.type.name))}get serialNumber(){return this.document.fields.find((e=>"SerialNumber"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}H.DOCUMENT_TYPE="EuropeanDriverLicenseFront",H.ADDRESS_FIELD_NAME="Address",H.ADDRESS_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Address",H.ADMINISTRATIVE_NUMBER_FIELD_NAME="AdministrativeNumber",H.ADMINISTRATIVE_NUMBER_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.AdministrativeNumber",H.BARCODE_FIELD_NAME="Barcode",H.BARCODE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Barcode",H.BIRTH_DATE_FIELD_NAME="BirthDate",H.BIRTH_DATE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.BirthDate",H.BIRTHPLACE_FIELD_NAME="Birthplace",H.BIRTHPLACE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Birthplace",H.CITIZENSHIP_FIELD_NAME="Citizenship",H.CITIZENSHIP_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Citizenship",H.COUNTRY_FIELD_NAME="Country",H.COUNTRY_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Country",H.EXPIRY_DATE_FIELD_NAME="ExpiryDate",H.EXPIRY_DATE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.ExpiryDate",H.GENDER_FIELD_NAME="Gender",H.GENDER_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Gender",H.GIVEN_NAMES_FIELD_NAME="GivenNames",H.GIVEN_NAMES_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.GivenNames",H.ID_FIELD_NAME="ID",H.ID_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.ID",H.ISSUE_DATE_FIELD_NAME="IssueDate",H.ISSUE_DATE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.IssueDate",H.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",H.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.IssuingAuthority",H.LICENSE_CATEGORIES_FIELD_NAME="LicenseCategories",H.LICENSE_CATEGORIES_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.LicenseCategories",H.MRZ_FIELD_NAME="MRZ",H.MRZ_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.MRZ",H.PHOTO_FIELD_NAME="Photo",H.PHOTO_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Photo",H.RESTRICTIONS_FIELD_NAME="Restrictions",H.RESTRICTIONS_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Restrictions",H.SERIAL_NUMBER_FIELD_NAME="SerialNumber",H.SERIAL_NUMBER_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.SerialNumber",H.SIGNATURE_FIELD_NAME="Signature",H.SIGNATURE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Signature",H.SURNAME_FIELD_NAME="Surname",H.SURNAME_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Surname";class G{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return G.DOCUMENT_TYPE}get country(){return this.document.fields.find((e=>"Country"===e.type.name))}get restrictions(){return this.document.fields.find((e=>"Restrictions"===e.type.name))}get categories(){const e=this.document.children.find((e=>"Categories"===e.type.name));return new G.Categories(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}G.DOCUMENT_TYPE="EuropeanDriverLicenseBack",G.COUNTRY_FIELD_NAME="Country",G.COUNTRY_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Country",G.RESTRICTIONS_FIELD_NAME="Restrictions",G.RESTRICTIONS_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Restrictions",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get restrictions(){return this.document.fields.find((e=>"Restrictions"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get validUntil(){return this.document.fields.find((e=>"ValidUntil"===e.type.name))}}t.RESTRICTIONS_FIELD_NAME="Restrictions",t.RESTRICTIONS_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Category.Restrictions",t.VALID_FROM_FIELD_NAME="ValidFrom",t.VALID_FROM_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Category.ValidFrom",t.VALID_UNTIL_FIELD_NAME="ValidUntil",t.VALID_UNTIL_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Category.ValidUntil",e.Category=t;class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Categories.DOCUMENT_TYPE}get a(){const t=this.document.children.find((e=>"A"===e.type.name));return new e.Categories.A(t)}get a1(){const t=this.document.children.find((e=>"A1"===e.type.name));return new e.Categories.A1(t)}get a2(){const t=this.document.children.find((e=>"A2"===e.type.name));return new e.Categories.A2(t)}get am(){const t=this.document.children.find((e=>"AM"===e.type.name));return new e.Categories.AM(t)}get b(){const t=this.document.children.find((e=>"B"===e.type.name));return new e.Categories.B(t)}get b1(){const t=this.document.children.find((e=>"B1"===e.type.name));return t?new e.Categories.B1(t):void 0}get be(){const t=this.document.children.find((e=>"BE"===e.type.name));return new e.Categories.BE(t)}get c(){const t=this.document.children.find((e=>"C"===e.type.name));return new e.Categories.C(t)}get c1(){const t=this.document.children.find((e=>"C1"===e.type.name));return new e.Categories.C1(t)}get c1E(){const t=this.document.children.find((e=>"C1E"===e.type.name));return new e.Categories.C1E(t)}get ce(){const t=this.document.children.find((e=>"CE"===e.type.name));return new e.Categories.CE(t)}get d(){const t=this.document.children.find((e=>"D"===e.type.name));return new e.Categories.D(t)}get d1(){const t=this.document.children.find((e=>"D1"===e.type.name));return new e.Categories.D1(t)}get d1E(){const t=this.document.children.find((e=>"D1E"===e.type.name));return new e.Categories.D1E(t)}get de(){const t=this.document.children.find((e=>"DE"===e.type.name));return new e.Categories.DE(t)}get l(){const t=this.document.children.find((e=>"L"===e.type.name));return new e.Categories.L(t)}get t(){const t=this.document.children.find((e=>"T"===e.type.name));return new e.Categories.T(t)}}n.DOCUMENT_TYPE="Categories",e.Categories=n,function(n){class i extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.A.DOCUMENT_TYPE}}i.DOCUMENT_TYPE="A",n.A=i;class r extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.A1.DOCUMENT_TYPE}}r.DOCUMENT_TYPE="A1",n.A1=r;class o extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.A2.DOCUMENT_TYPE}}o.DOCUMENT_TYPE="A2",n.A2=o;class a extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.AM.DOCUMENT_TYPE}}a.DOCUMENT_TYPE="AM",n.AM=a;class s extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.B.DOCUMENT_TYPE}}s.DOCUMENT_TYPE="B",n.B=s;class c extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.B1.DOCUMENT_TYPE}}c.DOCUMENT_TYPE="B1",n.B1=c;class l extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.BE.DOCUMENT_TYPE}}l.DOCUMENT_TYPE="BE",n.BE=l;class u extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.C.DOCUMENT_TYPE}}u.DOCUMENT_TYPE="C",n.C=u;class d extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.C1.DOCUMENT_TYPE}}d.DOCUMENT_TYPE="C1",n.C1=d;class m extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.C1E.DOCUMENT_TYPE}}m.DOCUMENT_TYPE="C1E",n.C1E=m;class h extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.CE.DOCUMENT_TYPE}}h.DOCUMENT_TYPE="CE",n.CE=h;class p extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.D.DOCUMENT_TYPE}}p.DOCUMENT_TYPE="D",n.D=p;class E extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.D1.DOCUMENT_TYPE}}E.DOCUMENT_TYPE="D1",n.D1=E;class A extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.D1E.DOCUMENT_TYPE}}A.DOCUMENT_TYPE="D1E",n.D1E=A;class g extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.DE.DOCUMENT_TYPE}}g.DOCUMENT_TYPE="DE",n.DE=g;class f extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.L.DOCUMENT_TYPE}}f.DOCUMENT_TYPE="L",n.L=f;class C extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.T.DOCUMENT_TYPE}}C.DOCUMENT_TYPE="T",n.T=C}(n=e.Categories||(e.Categories={}))}(G||(G={}));class z{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return z.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get remarks(){return this.document.fields.find((e=>"Remarks"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get titleType(){return this.document.fields.find((e=>"TitleType"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}z.DOCUMENT_TYPE="DeResidencePermitFront",z.BIRTH_DATE_FIELD_NAME="BirthDate",z.BIRTH_DATE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.BirthDate",z.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",z.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="DeResidencePermitFront.CardAccessNumber",z.EXPIRY_DATE_FIELD_NAME="ExpiryDate",z.EXPIRY_DATE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.ExpiryDate",z.GENDER_FIELD_NAME="Gender",z.GENDER_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Gender",z.GIVEN_NAMES_FIELD_NAME="GivenNames",z.GIVEN_NAMES_FIELD_NAME_NORMALIZED="DeResidencePermitFront.GivenNames",z.ID_FIELD_NAME="ID",z.ID_FIELD_NAME_NORMALIZED="DeResidencePermitFront.ID",z.NATIONALITY_FIELD_NAME="Nationality",z.NATIONALITY_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Nationality",z.PHOTO_FIELD_NAME="Photo",z.PHOTO_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Photo",z.PLACE_OF_ISSUE_FIELD_NAME="PlaceOfIssue",z.PLACE_OF_ISSUE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.PlaceOfIssue",z.REMARKS_FIELD_NAME="Remarks",z.REMARKS_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Remarks",z.SIGNATURE_FIELD_NAME="Signature",z.SIGNATURE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Signature",z.SURNAME_FIELD_NAME="Surname",z.SURNAME_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Surname",z.TITLE_TYPE_FIELD_NAME="TitleType",z.TITLE_TYPE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.TitleType",z.VALID_FROM_FIELD_NAME="ValidFrom",z.VALID_FROM_FIELD_NAME_NORMALIZED="DeResidencePermitFront.ValidFrom";class Y{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Y.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get eyeColor(){return this.document.fields.find((e=>"EyeColor"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get remarks(){return this.document.fields.find((e=>"Remarks"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get parsedDeAddress(){const e=this.document.children.find((e=>"ParsedDeAddress"===e.type.name));return new V(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}Y.DOCUMENT_TYPE="DeResidencePermitBack",Y.ADDRESS_FIELD_NAME="Address",Y.ADDRESS_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Address",Y.BIRTH_DATE_FIELD_NAME="BirthDate",Y.BIRTH_DATE_FIELD_NAME_NORMALIZED="DeResidencePermitBack.BirthDate",Y.BIRTHPLACE_FIELD_NAME="Birthplace",Y.BIRTHPLACE_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Birthplace",Y.EYE_COLOR_FIELD_NAME="EyeColor",Y.EYE_COLOR_FIELD_NAME_NORMALIZED="DeResidencePermitBack.EyeColor",Y.GENDER_FIELD_NAME="Gender",Y.GENDER_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Gender",Y.HEIGHT_FIELD_NAME="Height",Y.HEIGHT_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Height",Y.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",Y.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="DeResidencePermitBack.IssuingAuthority",Y.NATIONALITY_FIELD_NAME="Nationality",Y.NATIONALITY_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Nationality",Y.RAW_MRZ_FIELD_NAME="RawMRZ",Y.RAW_MRZ_FIELD_NAME_NORMALIZED="DeResidencePermitBack.RawMRZ",Y.REMARKS_FIELD_NAME="Remarks",Y.REMARKS_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Remarks";class q{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return q.DOCUMENT_TYPE}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardNumber(){return this.document.fields.find((e=>"CardNumber"===e.type.name))}get countryCode(){return this.document.fields.find((e=>"CountryCode"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get issuerName(){return this.document.fields.find((e=>"IssuerName"===e.type.name))}get issuerNumber(){return this.document.fields.find((e=>"IssuerNumber"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}q.DOCUMENT_TYPE="EuropeanHealthInsuranceCard",q.BARCODE_FIELD_NAME="Barcode",q.BARCODE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.Barcode",q.BIRTH_DATE_FIELD_NAME="BirthDate",q.BIRTH_DATE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.BirthDate",q.CARD_NUMBER_FIELD_NAME="CardNumber",q.CARD_NUMBER_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.CardNumber",q.COUNTRY_CODE_FIELD_NAME="CountryCode",q.COUNTRY_CODE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.CountryCode",q.EXPIRY_DATE_FIELD_NAME="ExpiryDate",q.EXPIRY_DATE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.ExpiryDate",q.GIVEN_NAMES_FIELD_NAME="GivenNames",q.GIVEN_NAMES_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.GivenNames",q.ISSUER_NAME_FIELD_NAME="IssuerName",q.ISSUER_NAME_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.IssuerName",q.ISSUER_NUMBER_FIELD_NAME="IssuerNumber",q.ISSUER_NUMBER_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.IssuerNumber",q.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",q.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.PersonalNumber",q.SIGNATURE_FIELD_NAME="Signature",q.SIGNATURE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.Signature",q.SURNAME_FIELD_NAME="Surname",q.SURNAME_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.Surname";class X{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return X.DOCUMENT_TYPE}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get issuerName(){return this.document.fields.find((e=>"IssuerName"===e.type.name))}get issuerNumber(){return this.document.fields.find((e=>"IssuerNumber"===e.type.name))}get name(){return this.document.fields.find((e=>"Name"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}X.DOCUMENT_TYPE="DeHealthInsuranceCardFront",X.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",X.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.CardAccessNumber",X.ISSUER_NAME_FIELD_NAME="IssuerName",X.ISSUER_NAME_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.IssuerName",X.ISSUER_NUMBER_FIELD_NAME="IssuerNumber",X.ISSUER_NUMBER_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.IssuerNumber",X.NAME_FIELD_NAME="Name",X.NAME_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.Name",X.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",X.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.PersonalNumber";class j{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return j.DOCUMENT_TYPE}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get bloodType(){return this.document.fields.find((e=>"BloodType"===e.type.name))}get civilRegistryDetails(){return this.document.fields.find((e=>"CivilRegistryDetails"===e.type.name))}get driverLicenseNumber(){return this.document.fields.find((e=>"DriverLicenseNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get fingerprint(){return this.document.fields.find((e=>"Fingerprint"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get healthCardNumber(){return this.document.fields.find((e=>"HealthCardNumber"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get issuingAuthoritySignature(){return this.document.fields.find((e=>"IssuingAuthoritySignature"===e.type.name))}get militaryCertificateNumber(){return this.document.fields.find((e=>"MilitaryCertificateNumber"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get observations(){return this.document.fields.find((e=>"Observations"===e.type.name))}get parents(){return this.document.fields.find((e=>"Parents"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get professionalIdentityNumber(){return this.document.fields.find((e=>"ProfessionalIdentityNumber"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get socialSecurityNumber(){return this.document.fields.find((e=>"SocialSecurityNumber"===e.type.name))}get stateCode(){return this.document.fields.find((e=>"StateCode"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get taxpayerNumber(){return this.document.fields.find((e=>"TaxpayerNumber"===e.type.name))}get voterRegistrationNumber(){return this.document.fields.find((e=>"VoterRegistrationNumber"===e.type.name))}get workCardNumber(){return this.document.fields.find((e=>"WorkCardNumber"===e.type.name))}get workCardSeries(){return this.document.fields.find((e=>"WorkCardSeries"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}j.DOCUMENT_TYPE="BrIdCardFront",j.BARCODE_FIELD_NAME="Barcode",j.BARCODE_FIELD_NAME_NORMALIZED="BrIdCardFront.Barcode",j.BIRTH_DATE_FIELD_NAME="BirthDate",j.BIRTH_DATE_FIELD_NAME_NORMALIZED="BrIdCardFront.BirthDate",j.BIRTHPLACE_FIELD_NAME="Birthplace",j.BIRTHPLACE_FIELD_NAME_NORMALIZED="BrIdCardFront.Birthplace",j.BLOOD_TYPE_FIELD_NAME="BloodType",j.BLOOD_TYPE_FIELD_NAME_NORMALIZED="BrIdCardFront.BloodType",j.CIVIL_REGISTRY_DETAILS_FIELD_NAME="CivilRegistryDetails",j.CIVIL_REGISTRY_DETAILS_FIELD_NAME_NORMALIZED="BrIdCardFront.CivilRegistryDetails",j.DRIVER_LICENSE_NUMBER_FIELD_NAME="DriverLicenseNumber",j.DRIVER_LICENSE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.DriverLicenseNumber",j.EXPIRY_DATE_FIELD_NAME="ExpiryDate",j.EXPIRY_DATE_FIELD_NAME_NORMALIZED="BrIdCardFront.ExpiryDate",j.FINGERPRINT_FIELD_NAME="Fingerprint",j.FINGERPRINT_FIELD_NAME_NORMALIZED="BrIdCardFront.Fingerprint",j.GENDER_FIELD_NAME="Gender",j.GENDER_FIELD_NAME_NORMALIZED="BrIdCardFront.Gender",j.GIVEN_NAMES_FIELD_NAME="GivenNames",j.GIVEN_NAMES_FIELD_NAME_NORMALIZED="BrIdCardFront.GivenNames",j.HEALTH_CARD_NUMBER_FIELD_NAME="HealthCardNumber",j.HEALTH_CARD_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.HealthCardNumber",j.ID_FIELD_NAME="ID",j.ID_FIELD_NAME_NORMALIZED="BrIdCardFront.ID",j.ISSUE_DATE_FIELD_NAME="IssueDate",j.ISSUE_DATE_FIELD_NAME_NORMALIZED="BrIdCardFront.IssueDate",j.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",j.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="BrIdCardFront.IssuingAuthority",j.ISSUING_AUTHORITY_SIGNATURE_FIELD_NAME="IssuingAuthoritySignature",j.ISSUING_AUTHORITY_SIGNATURE_FIELD_NAME_NORMALIZED="BrIdCardFront.IssuingAuthoritySignature",j.MILITARY_CERTIFICATE_NUMBER_FIELD_NAME="MilitaryCertificateNumber",j.MILITARY_CERTIFICATE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.MilitaryCertificateNumber",j.NATIONALITY_FIELD_NAME="Nationality",j.NATIONALITY_FIELD_NAME_NORMALIZED="BrIdCardFront.Nationality",j.OBSERVATIONS_FIELD_NAME="Observations",j.OBSERVATIONS_FIELD_NAME_NORMALIZED="BrIdCardFront.Observations",j.PARENTS_FIELD_NAME="Parents",j.PARENTS_FIELD_NAME_NORMALIZED="BrIdCardFront.Parents",j.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",j.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.PersonalNumber",j.PHOTO_FIELD_NAME="Photo",j.PHOTO_FIELD_NAME_NORMALIZED="BrIdCardFront.Photo",j.PLACE_OF_ISSUE_FIELD_NAME="PlaceOfIssue",j.PLACE_OF_ISSUE_FIELD_NAME_NORMALIZED="BrIdCardFront.PlaceOfIssue",j.PROFESSIONAL_IDENTITY_NUMBER_FIELD_NAME="ProfessionalIdentityNumber",j.PROFESSIONAL_IDENTITY_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.ProfessionalIdentityNumber",j.SIGNATURE_FIELD_NAME="Signature",j.SIGNATURE_FIELD_NAME_NORMALIZED="BrIdCardFront.Signature",j.SOCIAL_SECURITY_NUMBER_FIELD_NAME="SocialSecurityNumber",j.SOCIAL_SECURITY_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.SocialSecurityNumber",j.STATE_CODE_FIELD_NAME="StateCode",j.STATE_CODE_FIELD_NAME_NORMALIZED="BrIdCardFront.StateCode",j.SURNAME_FIELD_NAME="Surname",j.SURNAME_FIELD_NAME_NORMALIZED="BrIdCardFront.Surname",j.TAXPAYER_NUMBER_FIELD_NAME="TaxpayerNumber",j.TAXPAYER_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.TaxpayerNumber",j.VOTER_REGISTRATION_NUMBER_FIELD_NAME="VoterRegistrationNumber",j.VOTER_REGISTRATION_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.VoterRegistrationNumber",j.WORK_CARD_NUMBER_FIELD_NAME="WorkCardNumber",j.WORK_CARD_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.WorkCardNumber",j.WORK_CARD_SERIES_FIELD_NAME="WorkCardSeries",j.WORK_CARD_SERIES_FIELD_NAME_NORMALIZED="BrIdCardFront.WorkCardSeries";class Q{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Q.DOCUMENT_TYPE}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get civilRegistryDetails(){return this.document.fields.find((e=>"CivilRegistryDetails"===e.type.name))}get driverLicenseNumber(){return this.document.fields.find((e=>"DriverLicenseNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get fingerprint(){return this.document.fields.find((e=>"Fingerprint"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get healthCardNumber(){return this.document.fields.find((e=>"HealthCardNumber"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get militaryCertificateNumber(){return this.document.fields.find((e=>"MilitaryCertificateNumber"===e.type.name))}get pageNumber(){return this.document.fields.find((e=>"PageNumber"===e.type.name))}get parents(){return this.document.fields.find((e=>"Parents"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get placeOfOrigin(){return this.document.fields.find((e=>"PlaceOfOrigin"===e.type.name))}get professionalIdentityNumber(){return this.document.fields.find((e=>"ProfessionalIdentityNumber"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get socialSecurityNumber(){return this.document.fields.find((e=>"SocialSecurityNumber"===e.type.name))}get stateCode(){return this.document.fields.find((e=>"StateCode"===e.type.name))}get taxpayerNumber(){return this.document.fields.find((e=>"TaxpayerNumber"===e.type.name))}get voterRegistrationNumber(){return this.document.fields.find((e=>"VoterRegistrationNumber"===e.type.name))}get workCardNumber(){return this.document.fields.find((e=>"WorkCardNumber"===e.type.name))}get workCardSeries(){return this.document.fields.find((e=>"WorkCardSeries"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}Q.DOCUMENT_TYPE="BrIdCardBack",Q.BARCODE_FIELD_NAME="Barcode",Q.BARCODE_FIELD_NAME_NORMALIZED="BrIdCardBack.Barcode",Q.BIRTH_DATE_FIELD_NAME="BirthDate",Q.BIRTH_DATE_FIELD_NAME_NORMALIZED="BrIdCardBack.BirthDate",Q.BIRTHPLACE_FIELD_NAME="Birthplace",Q.BIRTHPLACE_FIELD_NAME_NORMALIZED="BrIdCardBack.Birthplace",Q.CIVIL_REGISTRY_DETAILS_FIELD_NAME="CivilRegistryDetails",Q.CIVIL_REGISTRY_DETAILS_FIELD_NAME_NORMALIZED="BrIdCardBack.CivilRegistryDetails",Q.DRIVER_LICENSE_NUMBER_FIELD_NAME="DriverLicenseNumber",Q.DRIVER_LICENSE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.DriverLicenseNumber",Q.EXPIRY_DATE_FIELD_NAME="ExpiryDate",Q.EXPIRY_DATE_FIELD_NAME_NORMALIZED="BrIdCardBack.ExpiryDate",Q.FINGERPRINT_FIELD_NAME="Fingerprint",Q.FINGERPRINT_FIELD_NAME_NORMALIZED="BrIdCardBack.Fingerprint",Q.GIVEN_NAMES_FIELD_NAME="GivenNames",Q.GIVEN_NAMES_FIELD_NAME_NORMALIZED="BrIdCardBack.GivenNames",Q.HEALTH_CARD_NUMBER_FIELD_NAME="HealthCardNumber",Q.HEALTH_CARD_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.HealthCardNumber",Q.ID_FIELD_NAME="ID",Q.ID_FIELD_NAME_NORMALIZED="BrIdCardBack.ID",Q.ISSUE_DATE_FIELD_NAME="IssueDate",Q.ISSUE_DATE_FIELD_NAME_NORMALIZED="BrIdCardBack.IssueDate",Q.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",Q.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="BrIdCardBack.IssuingAuthority",Q.MILITARY_CERTIFICATE_NUMBER_FIELD_NAME="MilitaryCertificateNumber",Q.MILITARY_CERTIFICATE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.MilitaryCertificateNumber",Q.PAGE_NUMBER_FIELD_NAME="PageNumber",Q.PAGE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.PageNumber",Q.PARENTS_FIELD_NAME="Parents",Q.PARENTS_FIELD_NAME_NORMALIZED="BrIdCardBack.Parents",Q.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",Q.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.PersonalNumber",Q.PHOTO_FIELD_NAME="Photo",Q.PHOTO_FIELD_NAME_NORMALIZED="BrIdCardBack.Photo",Q.PLACE_OF_ISSUE_FIELD_NAME="PlaceOfIssue",Q.PLACE_OF_ISSUE_FIELD_NAME_NORMALIZED="BrIdCardBack.PlaceOfIssue",Q.PLACE_OF_ORIGIN_FIELD_NAME="PlaceOfOrigin",Q.PLACE_OF_ORIGIN_FIELD_NAME_NORMALIZED="BrIdCardBack.PlaceOfOrigin",Q.PROFESSIONAL_IDENTITY_NUMBER_FIELD_NAME="ProfessionalIdentityNumber",Q.PROFESSIONAL_IDENTITY_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.ProfessionalIdentityNumber",Q.RAW_MRZ_FIELD_NAME="RawMRZ",Q.RAW_MRZ_FIELD_NAME_NORMALIZED="BrIdCardBack.RawMRZ",Q.SIGNATURE_FIELD_NAME="Signature",Q.SIGNATURE_FIELD_NAME_NORMALIZED="BrIdCardBack.Signature",Q.SOCIAL_SECURITY_NUMBER_FIELD_NAME="SocialSecurityNumber",Q.SOCIAL_SECURITY_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.SocialSecurityNumber",Q.STATE_CODE_FIELD_NAME="StateCode",Q.STATE_CODE_FIELD_NAME_NORMALIZED="BrIdCardBack.StateCode",Q.TAXPAYER_NUMBER_FIELD_NAME="TaxpayerNumber",Q.TAXPAYER_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.TaxpayerNumber",Q.VOTER_REGISTRATION_NUMBER_FIELD_NAME="VoterRegistrationNumber",Q.VOTER_REGISTRATION_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.VoterRegistrationNumber",Q.WORK_CARD_NUMBER_FIELD_NAME="WorkCardNumber",Q.WORK_CARD_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.WorkCardNumber",Q.WORK_CARD_SERIES_FIELD_NAME="WorkCardSeries",Q.WORK_CARD_SERIES_FIELD_NAME_NORMALIZED="BrIdCardBack.WorkCardSeries";class J{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return J.DOCUMENT_TYPE}get fingerprint(){return this.document.fields.find((e=>"Fingerprint"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}J.DOCUMENT_TYPE="BrIdCardFrontPhotoOnly",J.FINGERPRINT_FIELD_NAME="Fingerprint",J.FINGERPRINT_FIELD_NAME_NORMALIZED="BrIdCardFrontPhotoOnly.Fingerprint",J.PHOTO_FIELD_NAME="Photo",J.PHOTO_FIELD_NAME_NORMALIZED="BrIdCardFrontPhotoOnly.Photo";class K{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return K.DOCUMENT_TYPE}get barcodeBottom(){return this.document.fields.find((e=>"BarcodeBottom"===e.type.name))}get barcodeTop(){return this.document.fields.find((e=>"BarcodeTop"===e.type.name))}get hongKongValidFrom(){return this.document.fields.find((e=>"HongKongValidFrom"===e.type.name))}get hongKongValidUntil(){return this.document.fields.find((e=>"HongKongValidUntil"===e.type.name))}get macaoValidFrom(){return this.document.fields.find((e=>"MacaoValidFrom"===e.type.name))}get macaoValidUntil(){return this.document.fields.find((e=>"MacaoValidUntil"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get taiwanIDNumber(){return this.document.fields.find((e=>"TaiwanIDNumber"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}K.DOCUMENT_TYPE="CnEntryAndExitPermitBack",K.BARCODE_BOTTOM_FIELD_NAME="BarcodeBottom",K.BARCODE_BOTTOM_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.BarcodeBottom",K.BARCODE_TOP_FIELD_NAME="BarcodeTop",K.BARCODE_TOP_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.BarcodeTop",K.HONG_KONG_VALID_FROM_FIELD_NAME="HongKongValidFrom",K.HONG_KONG_VALID_FROM_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.HongKongValidFrom",K.HONG_KONG_VALID_UNTIL_FIELD_NAME="HongKongValidUntil",K.HONG_KONG_VALID_UNTIL_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.HongKongValidUntil",K.MACAO_VALID_FROM_FIELD_NAME="MacaoValidFrom",K.MACAO_VALID_FROM_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.MacaoValidFrom",K.MACAO_VALID_UNTIL_FIELD_NAME="MacaoValidUntil",K.MACAO_VALID_UNTIL_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.MacaoValidUntil",K.RAW_MRZ_FIELD_NAME="RawMRZ",K.RAW_MRZ_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.RawMRZ",K.TAIWAN_ID_NUMBER_FIELD_NAME="TaiwanIDNumber",K.TAIWAN_ID_NUMBER_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.TaiwanIDNumber";class ${get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return $.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get business(){return this.document.fields.find((e=>"Business"===e.type.name))}get destinations(){return this.document.fields.find((e=>"Destinations"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get mrzLine(){return this.document.fields.find((e=>"MRZLine"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get portsOfExitAndEntry(){return this.document.fields.find((e=>"PortsOfExitAndEntry"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get timesOfExitAndEntry(){return this.document.fields.find((e=>"TimesOfExitAndEntry"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get validUntil(){return this.document.fields.find((e=>"ValidUntil"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}$.DOCUMENT_TYPE="CnEntryAndExitPermitFront",$.BIRTH_DATE_FIELD_NAME="BirthDate",$.BIRTH_DATE_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.BirthDate",$.BUSINESS_FIELD_NAME="Business",$.BUSINESS_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.Business",$.DESTINATIONS_FIELD_NAME="Destinations",$.DESTINATIONS_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.Destinations",$.GENDER_FIELD_NAME="Gender",$.GENDER_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.Gender",$.GIVEN_NAMES_FIELD_NAME="GivenNames",$.GIVEN_NAMES_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.GivenNames",$.ID_FIELD_NAME="ID",$.ID_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.ID",$.ISSUE_DATE_FIELD_NAME="IssueDate",$.ISSUE_DATE_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.IssueDate",$.MRZ_LINE_FIELD_NAME="MRZLine",$.MRZ_LINE_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.MRZLine",$.PHOTO_FIELD_NAME="Photo",$.PHOTO_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.Photo",$.PLACE_OF_ISSUE_FIELD_NAME="PlaceOfIssue",$.PLACE_OF_ISSUE_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.PlaceOfIssue",$.PORTS_OF_EXIT_AND_ENTRY_FIELD_NAME="PortsOfExitAndEntry",$.PORTS_OF_EXIT_AND_ENTRY_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.PortsOfExitAndEntry",$.RAW_MRZ_FIELD_NAME="RawMRZ",$.RAW_MRZ_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.RawMRZ",$.TIMES_OF_EXIT_AND_ENTRY_FIELD_NAME="TimesOfExitAndEntry",$.TIMES_OF_EXIT_AND_ENTRY_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.TimesOfExitAndEntry",$.VALID_FROM_FIELD_NAME="ValidFrom",$.VALID_FROM_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.ValidFrom",$.VALID_UNTIL_FIELD_NAME="ValidUntil",$.VALID_UNTIL_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.ValidUntil";class ee{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ee.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get validUntil(){return this.document.fields.find((e=>"ValidUntil"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}ee.DOCUMENT_TYPE="CnPermanentResidentCardFront",ee.BIRTH_DATE_FIELD_NAME="BirthDate",ee.BIRTH_DATE_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.BirthDate",ee.GENDER_FIELD_NAME="Gender",ee.GENDER_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.Gender",ee.GIVEN_NAMES_FIELD_NAME="GivenNames",ee.GIVEN_NAMES_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.GivenNames",ee.ID_FIELD_NAME="ID",ee.ID_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.ID",ee.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",ee.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.IssuingAuthority",ee.NATIONALITY_FIELD_NAME="Nationality",ee.NATIONALITY_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.Nationality",ee.PHOTO_FIELD_NAME="Photo",ee.PHOTO_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.Photo",ee.VALID_FROM_FIELD_NAME="ValidFrom",ee.VALID_FROM_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.ValidFrom",ee.VALID_UNTIL_FIELD_NAME="ValidUntil",ee.VALID_UNTIL_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.ValidUntil";class te{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return te.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get givenNamesInChineseCode(){return this.document.fields.find((e=>"GivenNamesInChineseCode"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get idSymbols(){return this.document.fields.find((e=>"IDSymbols"===e.type.name))}get initialRegistrationDate(){return this.document.fields.find((e=>"InitialRegistrationDate"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}te.DOCUMENT_TYPE="HkIdentityCardFront",te.BIRTH_DATE_FIELD_NAME="BirthDate",te.BIRTH_DATE_FIELD_NAME_NORMALIZED="HkIdentityCardFront.BirthDate",te.GENDER_FIELD_NAME="Gender",te.GENDER_FIELD_NAME_NORMALIZED="HkIdentityCardFront.Gender",te.GIVEN_NAMES_FIELD_NAME="GivenNames",te.GIVEN_NAMES_FIELD_NAME_NORMALIZED="HkIdentityCardFront.GivenNames",te.GIVEN_NAMES_IN_CHINESE_CODE_FIELD_NAME="GivenNamesInChineseCode",te.GIVEN_NAMES_IN_CHINESE_CODE_FIELD_NAME_NORMALIZED="HkIdentityCardFront.GivenNamesInChineseCode",te.ID_FIELD_NAME="ID",te.ID_FIELD_NAME_NORMALIZED="HkIdentityCardFront.ID",te.ID_SYMBOLS_FIELD_NAME="IDSymbols",te.ID_SYMBOLS_FIELD_NAME_NORMALIZED="HkIdentityCardFront.IDSymbols",te.INITIAL_REGISTRATION_DATE_FIELD_NAME="InitialRegistrationDate",te.INITIAL_REGISTRATION_DATE_FIELD_NAME_NORMALIZED="HkIdentityCardFront.InitialRegistrationDate",te.ISSUE_DATE_FIELD_NAME="IssueDate",te.ISSUE_DATE_FIELD_NAME_NORMALIZED="HkIdentityCardFront.IssueDate",te.PHOTO_FIELD_NAME="Photo",te.PHOTO_FIELD_NAME_NORMALIZED="HkIdentityCardFront.Photo";class ne{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ne.DOCUMENT_TYPE}get barcodeLeft(){return this.document.fields.find((e=>"BarcodeLeft"===e.type.name))}get barcodeRight(){return this.document.fields.find((e=>"BarcodeRight"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get countryCode(){return this.document.fields.find((e=>"CountryCode"===e.type.name))}get countryOfResidency(){return this.document.fields.find((e=>"CountryOfResidency"===e.type.name))}get documentType(){return this.document.fields.find((e=>"DocumentType"===e.type.name))}get entryInspection(){return this.document.fields.find((e=>"EntryInspection"===e.type.name))}get exitInspection(){return this.document.fields.find((e=>"ExitInspection"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get passportNumber(){return this.document.fields.find((e=>"PassportNumber"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get remarks(){return this.document.fields.find((e=>"Remarks"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}ne.DOCUMENT_TYPE="TwEntryAndExitPermit",ne.BARCODE_LEFT_FIELD_NAME="BarcodeLeft",ne.BARCODE_LEFT_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.BarcodeLeft",ne.BARCODE_RIGHT_FIELD_NAME="BarcodeRight",ne.BARCODE_RIGHT_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.BarcodeRight",ne.BIRTH_DATE_FIELD_NAME="BirthDate",ne.BIRTH_DATE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.BirthDate",ne.COUNTRY_CODE_FIELD_NAME="CountryCode",ne.COUNTRY_CODE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.CountryCode",ne.COUNTRY_OF_RESIDENCY_FIELD_NAME="CountryOfResidency",ne.COUNTRY_OF_RESIDENCY_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.CountryOfResidency",ne.DOCUMENT_TYPE_FIELD_NAME="DocumentType",ne.DOCUMENT_TYPE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.DocumentType",ne.ENTRY_INSPECTION_FIELD_NAME="EntryInspection",ne.ENTRY_INSPECTION_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.EntryInspection",ne.EXIT_INSPECTION_FIELD_NAME="ExitInspection",ne.EXIT_INSPECTION_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.ExitInspection",ne.EXPIRY_DATE_FIELD_NAME="ExpiryDate",ne.EXPIRY_DATE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.ExpiryDate",ne.GENDER_FIELD_NAME="Gender",ne.GENDER_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.Gender",ne.GIVEN_NAMES_FIELD_NAME="GivenNames",ne.GIVEN_NAMES_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.GivenNames",ne.ID_FIELD_NAME="ID",ne.ID_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.ID",ne.ISSUE_DATE_FIELD_NAME="IssueDate",ne.ISSUE_DATE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.IssueDate",ne.PASSPORT_NUMBER_FIELD_NAME="PassportNumber",ne.PASSPORT_NUMBER_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.PassportNumber",ne.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",ne.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.PersonalNumber",ne.PHOTO_FIELD_NAME="Photo",ne.PHOTO_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.Photo",ne.RAW_MRZ_FIELD_NAME="RawMRZ",ne.RAW_MRZ_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.RawMRZ",ne.REMARKS_FIELD_NAME="Remarks",ne.REMARKS_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.Remarks";class ie{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ie.DOCUMENT_TYPE}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get validationPhoto(){return this.document.fields.find((e=>"ValidationPhoto"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}ie.DOCUMENT_TYPE="MoIdentityCardBack",ie.RAW_MRZ_FIELD_NAME="RawMRZ",ie.RAW_MRZ_FIELD_NAME_NORMALIZED="MoIdentityCardBack.RawMRZ",ie.VALIDATION_PHOTO_FIELD_NAME="ValidationPhoto",ie.VALIDATION_PHOTO_FIELD_NAME_NORMALIZED="MoIdentityCardBack.ValidationPhoto";class re{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return re.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get validUntil(){return this.document.fields.find((e=>"ValidUntil"===e.type.name))}get validationPhoto(){return this.document.fields.find((e=>"ValidationPhoto"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}re.DOCUMENT_TYPE="MoIdentityCardFront",re.BIRTH_DATE_FIELD_NAME="BirthDate",re.BIRTH_DATE_FIELD_NAME_NORMALIZED="MoIdentityCardFront.BirthDate",re.GENDER_FIELD_NAME="Gender",re.GENDER_FIELD_NAME_NORMALIZED="MoIdentityCardFront.Gender",re.GIVEN_NAMES_FIELD_NAME="GivenNames",re.GIVEN_NAMES_FIELD_NAME_NORMALIZED="MoIdentityCardFront.GivenNames",re.ID_FIELD_NAME="ID",re.ID_FIELD_NAME_NORMALIZED="MoIdentityCardFront.ID",re.PHOTO_FIELD_NAME="Photo",re.PHOTO_FIELD_NAME_NORMALIZED="MoIdentityCardFront.Photo",re.SIGNATURE_FIELD_NAME="Signature",re.SIGNATURE_FIELD_NAME_NORMALIZED="MoIdentityCardFront.Signature",re.SURNAME_FIELD_NAME="Surname",re.SURNAME_FIELD_NAME_NORMALIZED="MoIdentityCardFront.Surname",re.VALID_FROM_FIELD_NAME="ValidFrom",re.VALID_FROM_FIELD_NAME_NORMALIZED="MoIdentityCardFront.ValidFrom",re.VALID_UNTIL_FIELD_NAME="ValidUntil",re.VALID_UNTIL_FIELD_NAME_NORMALIZED="MoIdentityCardFront.ValidUntil",re.VALIDATION_PHOTO_FIELD_NAME="ValidationPhoto",re.VALIDATION_PHOTO_FIELD_NAME_NORMALIZED="MoIdentityCardFront.ValidationPhoto";class oe{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return oe.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get validFromDate(){return this.document.fields.find((e=>"ValidFromDate"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}oe.DOCUMENT_TYPE="RoIdCardTD3",oe.ADDRESS_FIELD_NAME="Address",oe.ADDRESS_FIELD_NAME_NORMALIZED="RoIdCardTD3.Address",oe.BIRTHPLACE_FIELD_NAME="Birthplace",oe.BIRTHPLACE_FIELD_NAME_NORMALIZED="RoIdCardTD3.Birthplace",oe.EXPIRY_DATE_FIELD_NAME="ExpiryDate",oe.EXPIRY_DATE_FIELD_NAME_NORMALIZED="RoIdCardTD3.ExpiryDate",oe.GENDER_FIELD_NAME="Gender",oe.GENDER_FIELD_NAME_NORMALIZED="RoIdCardTD3.Gender",oe.GIVEN_NAMES_FIELD_NAME="GivenNames",oe.GIVEN_NAMES_FIELD_NAME_NORMALIZED="RoIdCardTD3.GivenNames",oe.ID_FIELD_NAME="ID",oe.ID_FIELD_NAME_NORMALIZED="RoIdCardTD3.ID",oe.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",oe.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="RoIdCardTD3.IssuingAuthority",oe.NATIONALITY_FIELD_NAME="Nationality",oe.NATIONALITY_FIELD_NAME_NORMALIZED="RoIdCardTD3.Nationality",oe.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",oe.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="RoIdCardTD3.PersonalNumber",oe.PHOTO_FIELD_NAME="Photo",oe.PHOTO_FIELD_NAME_NORMALIZED="RoIdCardTD3.Photo",oe.RAW_MRZ_FIELD_NAME="RawMRZ",oe.RAW_MRZ_FIELD_NAME_NORMALIZED="RoIdCardTD3.RawMRZ",oe.SURNAME_FIELD_NAME="Surname",oe.SURNAME_FIELD_NAME_NORMALIZED="RoIdCardTD3.Surname",oe.VALID_FROM_DATE_FIELD_NAME="ValidFromDate",oe.VALID_FROM_DATE_FIELD_NAME_NORMALIZED="RoIdCardTD3.ValidFromDate";class ae{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ae.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}ae.DOCUMENT_TYPE="ItIdCardFront",ae.BIRTH_DATE_FIELD_NAME="BirthDate",ae.BIRTH_DATE_FIELD_NAME_NORMALIZED="ItIdCardFront.BirthDate",ae.BIRTHPLACE_FIELD_NAME="Birthplace",ae.BIRTHPLACE_FIELD_NAME_NORMALIZED="ItIdCardFront.Birthplace",ae.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",ae.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="ItIdCardFront.CardAccessNumber",ae.EXPIRY_DATE_FIELD_NAME="ExpiryDate",ae.EXPIRY_DATE_FIELD_NAME_NORMALIZED="ItIdCardFront.ExpiryDate",ae.GENDER_FIELD_NAME="Gender",ae.GENDER_FIELD_NAME_NORMALIZED="ItIdCardFront.Gender",ae.GIVEN_NAMES_FIELD_NAME="GivenNames",ae.GIVEN_NAMES_FIELD_NAME_NORMALIZED="ItIdCardFront.GivenNames",ae.HEIGHT_FIELD_NAME="Height",ae.HEIGHT_FIELD_NAME_NORMALIZED="ItIdCardFront.Height",ae.ID_FIELD_NAME="ID",ae.ID_FIELD_NAME_NORMALIZED="ItIdCardFront.ID",ae.ISSUE_DATE_FIELD_NAME="IssueDate",ae.ISSUE_DATE_FIELD_NAME_NORMALIZED="ItIdCardFront.IssueDate",ae.NATIONALITY_FIELD_NAME="Nationality",ae.NATIONALITY_FIELD_NAME_NORMALIZED="ItIdCardFront.Nationality",ae.PHOTO_FIELD_NAME="Photo",ae.PHOTO_FIELD_NAME_NORMALIZED="ItIdCardFront.Photo",ae.PLACE_OF_ISSUE_FIELD_NAME="PlaceOfIssue",ae.PLACE_OF_ISSUE_FIELD_NAME_NORMALIZED="ItIdCardFront.PlaceOfIssue",ae.SIGNATURE_FIELD_NAME="Signature",ae.SIGNATURE_FIELD_NAME_NORMALIZED="ItIdCardFront.Signature",ae.SURNAME_FIELD_NAME="Surname",ae.SURNAME_FIELD_NAME_NORMALIZED="ItIdCardFront.Surname";class se{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return se.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get fiscalCode(){return this.document.fields.find((e=>"FiscalCode"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get parents(){return this.document.fields.find((e=>"Parents"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get remarks(){return this.document.fields.find((e=>"Remarks"===e.type.name))}get validationPhoto(){return this.document.fields.find((e=>"ValidationPhoto"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}se.DOCUMENT_TYPE="ItIdCardBack",se.ADDRESS_FIELD_NAME="Address",se.ADDRESS_FIELD_NAME_NORMALIZED="ItIdCardBack.Address",se.BARCODE_FIELD_NAME="Barcode",se.BARCODE_FIELD_NAME_NORMALIZED="ItIdCardBack.Barcode",se.FISCAL_CODE_FIELD_NAME="FiscalCode",se.FISCAL_CODE_FIELD_NAME_NORMALIZED="ItIdCardBack.FiscalCode",se.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",se.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="ItIdCardBack.IssuingAuthority",se.PARENTS_FIELD_NAME="Parents",se.PARENTS_FIELD_NAME_NORMALIZED="ItIdCardBack.Parents",se.RAW_MRZ_FIELD_NAME="RawMRZ",se.RAW_MRZ_FIELD_NAME_NORMALIZED="ItIdCardBack.RawMRZ",se.REMARKS_FIELD_NAME="Remarks",se.REMARKS_FIELD_NAME_NORMALIZED="ItIdCardBack.Remarks",se.VALIDATION_PHOTO_FIELD_NAME="ValidationPhoto",se.VALIDATION_PHOTO_FIELD_NAME_NORMALIZED="ItIdCardBack.ValidationPhoto";class ce{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ce.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get familyName(){return this.document.fields.find((e=>"FamilyName"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get parentsGivenNames(){return this.document.fields.find((e=>"ParentsGivenNames"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}ce.DOCUMENT_TYPE="PoIdCardFront",ce.BIRTH_DATE_FIELD_NAME="BirthDate",ce.BIRTH_DATE_FIELD_NAME_NORMALIZED="PoIdCardFront.BirthDate",ce.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",ce.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="PoIdCardFront.CardAccessNumber",ce.EXPIRY_DATE_FIELD_NAME="ExpiryDate",ce.EXPIRY_DATE_FIELD_NAME_NORMALIZED="PoIdCardFront.ExpiryDate",ce.FAMILY_NAME_FIELD_NAME="FamilyName",ce.FAMILY_NAME_FIELD_NAME_NORMALIZED="PoIdCardFront.FamilyName",ce.GENDER_FIELD_NAME="Gender",ce.GENDER_FIELD_NAME_NORMALIZED="PoIdCardFront.Gender",ce.GIVEN_NAMES_FIELD_NAME="GivenNames",ce.GIVEN_NAMES_FIELD_NAME_NORMALIZED="PoIdCardFront.GivenNames",ce.ID_FIELD_NAME="ID",ce.ID_FIELD_NAME_NORMALIZED="PoIdCardFront.ID",ce.NATIONALITY_FIELD_NAME="Nationality",ce.NATIONALITY_FIELD_NAME_NORMALIZED="PoIdCardFront.Nationality",ce.PARENTS_GIVEN_NAMES_FIELD_NAME="ParentsGivenNames",ce.PARENTS_GIVEN_NAMES_FIELD_NAME_NORMALIZED="PoIdCardFront.ParentsGivenNames",ce.PHOTO_FIELD_NAME="Photo",ce.PHOTO_FIELD_NAME_NORMALIZED="PoIdCardFront.Photo",ce.SIGNATURE_FIELD_NAME="Signature",ce.SIGNATURE_FIELD_NAME_NORMALIZED="PoIdCardFront.Signature",ce.SURNAME_FIELD_NAME="Surname",ce.SURNAME_FIELD_NAME_NORMALIZED="PoIdCardFront.Surname";class le{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return le.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}le.DOCUMENT_TYPE="RoIdCardBack",le.ADDRESS_FIELD_NAME="Address",le.ADDRESS_FIELD_NAME_NORMALIZED="RoIdCardBack.Address",le.ISSUE_DATE_FIELD_NAME="IssueDate",le.ISSUE_DATE_FIELD_NAME_NORMALIZED="RoIdCardBack.IssueDate",le.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",le.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="RoIdCardBack.IssuingAuthority",le.RAW_MRZ_FIELD_NAME="RawMRZ",le.RAW_MRZ_FIELD_NAME_NORMALIZED="RoIdCardBack.RawMRZ";class ue{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ue.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}ue.DOCUMENT_TYPE="RoIdCardFront",ue.BIRTH_DATE_FIELD_NAME="BirthDate",ue.BIRTH_DATE_FIELD_NAME_NORMALIZED="RoIdCardFront.BirthDate",ue.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",ue.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="RoIdCardFront.CardAccessNumber",ue.EXPIRY_DATE_FIELD_NAME="ExpiryDate",ue.EXPIRY_DATE_FIELD_NAME_NORMALIZED="RoIdCardFront.ExpiryDate",ue.GENDER_FIELD_NAME="Gender",ue.GENDER_FIELD_NAME_NORMALIZED="RoIdCardFront.Gender",ue.GIVEN_NAMES_FIELD_NAME="GivenNames",ue.GIVEN_NAMES_FIELD_NAME_NORMALIZED="RoIdCardFront.GivenNames",ue.ID_FIELD_NAME="ID",ue.ID_FIELD_NAME_NORMALIZED="RoIdCardFront.ID",ue.NATIONALITY_FIELD_NAME="Nationality",ue.NATIONALITY_FIELD_NAME_NORMALIZED="RoIdCardFront.Nationality",ue.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",ue.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="RoIdCardFront.PersonalNumber",ue.PHOTO_FIELD_NAME="Photo",ue.PHOTO_FIELD_NAME_NORMALIZED="RoIdCardFront.Photo",ue.SIGNATURE_FIELD_NAME="Signature",ue.SIGNATURE_FIELD_NAME_NORMALIZED="RoIdCardFront.Signature",ue.SURNAME_FIELD_NAME="Surname",ue.SURNAME_FIELD_NAME_NORMALIZED="RoIdCardFront.Surname";class de{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return de.DOCUMENT_TYPE}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get parentsGivenNames(){return this.document.fields.find((e=>"ParentsGivenNames"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}de.DOCUMENT_TYPE="PoIdCardBack",de.BARCODE_FIELD_NAME="Barcode",de.BARCODE_FIELD_NAME_NORMALIZED="PoIdCardBack.Barcode",de.BIRTHPLACE_FIELD_NAME="Birthplace",de.BIRTHPLACE_FIELD_NAME_NORMALIZED="PoIdCardBack.Birthplace",de.EXPIRY_DATE_FIELD_NAME="ExpiryDate",de.EXPIRY_DATE_FIELD_NAME_NORMALIZED="PoIdCardBack.ExpiryDate",de.ID_FIELD_NAME="ID",de.ID_FIELD_NAME_NORMALIZED="PoIdCardBack.ID",de.ISSUE_DATE_FIELD_NAME="IssueDate",de.ISSUE_DATE_FIELD_NAME_NORMALIZED="PoIdCardBack.IssueDate",de.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",de.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="PoIdCardBack.IssuingAuthority",de.NATIONALITY_FIELD_NAME="Nationality",de.NATIONALITY_FIELD_NAME_NORMALIZED="PoIdCardBack.Nationality",de.PARENTS_GIVEN_NAMES_FIELD_NAME="ParentsGivenNames",de.PARENTS_GIVEN_NAMES_FIELD_NAME_NORMALIZED="PoIdCardBack.ParentsGivenNames",de.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",de.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="PoIdCardBack.PersonalNumber",de.RAW_MRZ_FIELD_NAME="RawMRZ",de.RAW_MRZ_FIELD_NAME_NORMALIZED="PoIdCardBack.RawMRZ",de.SURNAME_FIELD_NAME="Surname",de.SURNAME_FIELD_NAME_NORMALIZED="PoIdCardBack.Surname";class me{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return me.DOCUMENT_TYPE}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get fathersName(){return this.document.fields.find((e=>"FathersName"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get mothersName(){return this.document.fields.find((e=>"MothersName"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}me.DOCUMENT_TYPE="TrIdCardBack",me.BARCODE_FIELD_NAME="Barcode",me.BARCODE_FIELD_NAME_NORMALIZED="TrIdCardBack.Barcode",me.FATHERS_NAME_FIELD_NAME="FathersName",me.FATHERS_NAME_FIELD_NAME_NORMALIZED="TrIdCardBack.FathersName",me.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",me.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="TrIdCardBack.IssuingAuthority",me.MOTHERS_NAME_FIELD_NAME="MothersName",me.MOTHERS_NAME_FIELD_NAME_NORMALIZED="TrIdCardBack.MothersName",me.RAW_MRZ_FIELD_NAME="RawMRZ",me.RAW_MRZ_FIELD_NAME_NORMALIZED="TrIdCardBack.RawMRZ";class he{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return he.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}he.DOCUMENT_TYPE="TrIdCardFront",he.BIRTH_DATE_FIELD_NAME="BirthDate",he.BIRTH_DATE_FIELD_NAME_NORMALIZED="TrIdCardFront.BirthDate",he.EXPIRY_DATE_FIELD_NAME="ExpiryDate",he.EXPIRY_DATE_FIELD_NAME_NORMALIZED="TrIdCardFront.ExpiryDate",he.GENDER_FIELD_NAME="Gender",he.GENDER_FIELD_NAME_NORMALIZED="TrIdCardFront.Gender",he.GIVEN_NAMES_FIELD_NAME="GivenNames",he.GIVEN_NAMES_FIELD_NAME_NORMALIZED="TrIdCardFront.GivenNames",he.ID_FIELD_NAME="ID",he.ID_FIELD_NAME_NORMALIZED="TrIdCardFront.ID",he.NATIONALITY_FIELD_NAME="Nationality",he.NATIONALITY_FIELD_NAME_NORMALIZED="TrIdCardFront.Nationality",he.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",he.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="TrIdCardFront.PersonalNumber",he.SIGNATURE_FIELD_NAME="Signature",he.SIGNATURE_FIELD_NAME_NORMALIZED="TrIdCardFront.Signature",he.SURNAME_FIELD_NAME="Surname",he.SURNAME_FIELD_NAME_NORMALIZED="TrIdCardFront.Surname";class pe{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return pe.DOCUMENT_TYPE}get electronicTicketIndicator(){return this.document.fields.find((e=>"ElectronicTicketIndicator"===e.type.name))}get formatCode(){return this.document.fields.find((e=>"FormatCode"===e.type.name))}get numberOfLegs(){return this.document.fields.find((e=>"NumberOfLegs"===e.type.name))}get passengerName(){return this.document.fields.find((e=>"PassengerName"===e.type.name))}get securityData(){return this.document.fields.find((e=>"SecurityData"===e.type.name))}get securityDataType(){return this.document.fields.find((e=>"SecurityDataType"===e.type.name))}get legs(){return this.document.children.filter((e=>"Leg"===e.type.name)).map((e=>new pe.Leg(e)))}}pe.DOCUMENT_TYPE="BoardingPass",pe.ELECTRONIC_TICKET_INDICATOR_FIELD_NAME="ElectronicTicketIndicator",pe.ELECTRONIC_TICKET_INDICATOR_FIELD_NAME_NORMALIZED="BoardingPass.ElectronicTicketIndicator",pe.FORMAT_CODE_FIELD_NAME="FormatCode",pe.FORMAT_CODE_FIELD_NAME_NORMALIZED="BoardingPass.FormatCode",pe.NUMBER_OF_LEGS_FIELD_NAME="NumberOfLegs",pe.NUMBER_OF_LEGS_FIELD_NAME_NORMALIZED="BoardingPass.NumberOfLegs",pe.PASSENGER_NAME_FIELD_NAME="PassengerName",pe.PASSENGER_NAME_FIELD_NAME_NORMALIZED="BoardingPass.PassengerName",pe.SECURITY_DATA_FIELD_NAME="SecurityData",pe.SECURITY_DATA_FIELD_NAME_NORMALIZED="BoardingPass.SecurityData",pe.SECURITY_DATA_TYPE_FIELD_NAME="SecurityDataType",pe.SECURITY_DATA_TYPE_FIELD_NAME_NORMALIZED="BoardingPass.SecurityDataType",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Leg.DOCUMENT_TYPE}get airlineDesignatorOfBoardingPassIssuer(){return this.document.fields.find((e=>"AirlineDesignatorOfBoardingPassIssuer"===e.type.name))}get airlineNumericCode(){return this.document.fields.find((e=>"AirlineNumericCode"===e.type.name))}get baggageTagLicensePlateNumbers(){return this.document.fields.find((e=>"BaggageTagLicensePlateNumbers"===e.type.name))}get checkInSequenceNumber(){return this.document.fields.find((e=>"CheckInSequenceNumber"===e.type.name))}get compartmentCode(){return this.document.fields.find((e=>"CompartmentCode"===e.type.name))}get dateOfBoardingPassIssuanceJulian(){return this.document.fields.find((e=>"DateOfBoardingPassIssuanceJulian"===e.type.name))}get dateOfFlightJulian(){return this.document.fields.find((e=>"DateOfFlightJulian"===e.type.name))}get departureAirportCode(){return this.document.fields.find((e=>"DepartureAirportCode"===e.type.name))}get destinationAirportCode(){return this.document.fields.find((e=>"DestinationAirportCode"===e.type.name))}get documentFormSerialNumber(){return this.document.fields.find((e=>"DocumentFormSerialNumber"===e.type.name))}get documentType(){return this.document.fields.find((e=>"DocumentType"===e.type.name))}get fastTrack(){return this.document.fields.find((e=>"FastTrack"===e.type.name))}get firstNonConsecutiveBaggageTagLicensePlateNumber(){return this.document.fields.find((e=>"FirstNonConsecutiveBaggageTagLicensePlateNumber"===e.type.name))}get flightNumber(){return this.document.fields.find((e=>"FlightNumber"===e.type.name))}get forIndividualAirlineUse(){return this.document.fields.find((e=>"ForIndividualAirlineUse"===e.type.name))}get freeBaggageAllowance(){return this.document.fields.find((e=>"FreeBaggageAllowance"===e.type.name))}get frequentFlyerAirlineDesignator(){return this.document.fields.find((e=>"FrequentFlyerAirlineDesignator"===e.type.name))}get frequentFlyerNumber(){return this.document.fields.find((e=>"FrequentFlyerNumber"===e.type.name))}get idadIndicator(){return this.document.fields.find((e=>"IDADIndicator"===e.type.name))}get internationalDocumentationVerification(){return this.document.fields.find((e=>"InternationalDocumentationVerification"===e.type.name))}get marketingCarrierDesignator(){return this.document.fields.find((e=>"MarketingCarrierDesignator"===e.type.name))}get operatingCarrierDesignator(){return this.document.fields.find((e=>"OperatingCarrierDesignator"===e.type.name))}get operatingCarrierPNRCode(){return this.document.fields.find((e=>"OperatingCarrierPNRCode"===e.type.name))}get passengerDescription(){return this.document.fields.find((e=>"PassengerDescription"===e.type.name))}get passengerStatus(){return this.document.fields.find((e=>"PassengerStatus"===e.type.name))}get seatNumber(){return this.document.fields.find((e=>"SeatNumber"===e.type.name))}get secondNonConsecutiveBaggageTagLicensePlateNumber(){return this.document.fields.find((e=>"SecondNonConsecutiveBaggageTagLicensePlateNumber"===e.type.name))}get selecteeIndicator(){return this.document.fields.find((e=>"SelecteeIndicator"===e.type.name))}get sourceOfBoardingPassIssuance(){return this.document.fields.find((e=>"SourceOfBoardingPassIssuance"===e.type.name))}get sourceOfCheckIn(){return this.document.fields.find((e=>"SourceOfCheckIn"===e.type.name))}get versionNumber(){return this.document.fields.find((e=>"VersionNumber"===e.type.name))}}t.DOCUMENT_TYPE="Leg",t.AIRLINE_DESIGNATOR_OF_BOARDING_PASS_ISSUER_FIELD_NAME="AirlineDesignatorOfBoardingPassIssuer",t.AIRLINE_DESIGNATOR_OF_BOARDING_PASS_ISSUER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.AirlineDesignatorOfBoardingPassIssuer",t.AIRLINE_NUMERIC_CODE_FIELD_NAME="AirlineNumericCode",t.AIRLINE_NUMERIC_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.AirlineNumericCode",t.BAGGAGE_TAG_LICENSE_PLATE_NUMBERS_FIELD_NAME="BaggageTagLicensePlateNumbers",t.BAGGAGE_TAG_LICENSE_PLATE_NUMBERS_FIELD_NAME_NORMALIZED="BoardingPass.Leg.BaggageTagLicensePlateNumbers",t.CHECK_IN_SEQUENCE_NUMBER_FIELD_NAME="CheckInSequenceNumber",t.CHECK_IN_SEQUENCE_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.CheckInSequenceNumber",t.COMPARTMENT_CODE_FIELD_NAME="CompartmentCode",t.COMPARTMENT_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.CompartmentCode",t.DATE_OF_BOARDING_PASS_ISSUANCE_JULIAN_FIELD_NAME="DateOfBoardingPassIssuanceJulian",t.DATE_OF_BOARDING_PASS_ISSUANCE_JULIAN_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DateOfBoardingPassIssuanceJulian",t.DATE_OF_FLIGHT_JULIAN_FIELD_NAME="DateOfFlightJulian",t.DATE_OF_FLIGHT_JULIAN_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DateOfFlightJulian",t.DEPARTURE_AIRPORT_CODE_FIELD_NAME="DepartureAirportCode",t.DEPARTURE_AIRPORT_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DepartureAirportCode",t.DESTINATION_AIRPORT_CODE_FIELD_NAME="DestinationAirportCode",t.DESTINATION_AIRPORT_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DestinationAirportCode",t.DOCUMENT_FORM_SERIAL_NUMBER_FIELD_NAME="DocumentFormSerialNumber",t.DOCUMENT_FORM_SERIAL_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DocumentFormSerialNumber",t.DOCUMENT_TYPE_FIELD_NAME="DocumentType",t.DOCUMENT_TYPE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DocumentType",t.FAST_TRACK_FIELD_NAME="FastTrack",t.FAST_TRACK_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FastTrack",t.FIRST_NON_CONSECUTIVE_BAGGAGE_TAG_LICENSE_PLATE_NUMBER_FIELD_NAME="FirstNonConsecutiveBaggageTagLicensePlateNumber",t.FIRST_NON_CONSECUTIVE_BAGGAGE_TAG_LICENSE_PLATE_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FirstNonConsecutiveBaggageTagLicensePlateNumber",t.FLIGHT_NUMBER_FIELD_NAME="FlightNumber",t.FLIGHT_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FlightNumber",t.FOR_INDIVIDUAL_AIRLINE_USE_FIELD_NAME="ForIndividualAirlineUse",t.FOR_INDIVIDUAL_AIRLINE_USE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.ForIndividualAirlineUse",t.FREE_BAGGAGE_ALLOWANCE_FIELD_NAME="FreeBaggageAllowance",t.FREE_BAGGAGE_ALLOWANCE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FreeBaggageAllowance",t.FREQUENT_FLYER_AIRLINE_DESIGNATOR_FIELD_NAME="FrequentFlyerAirlineDesignator",t.FREQUENT_FLYER_AIRLINE_DESIGNATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FrequentFlyerAirlineDesignator",t.FREQUENT_FLYER_NUMBER_FIELD_NAME="FrequentFlyerNumber",t.FREQUENT_FLYER_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FrequentFlyerNumber",t.IDAD_INDICATOR_FIELD_NAME="IDADIndicator",t.IDAD_INDICATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.IDADIndicator",t.INTERNATIONAL_DOCUMENTATION_VERIFICATION_FIELD_NAME="InternationalDocumentationVerification",t.INTERNATIONAL_DOCUMENTATION_VERIFICATION_FIELD_NAME_NORMALIZED="BoardingPass.Leg.InternationalDocumentationVerification",t.MARKETING_CARRIER_DESIGNATOR_FIELD_NAME="MarketingCarrierDesignator",t.MARKETING_CARRIER_DESIGNATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.MarketingCarrierDesignator",t.OPERATING_CARRIER_DESIGNATOR_FIELD_NAME="OperatingCarrierDesignator",t.OPERATING_CARRIER_DESIGNATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.OperatingCarrierDesignator",t.OPERATING_CARRIER_PNR_CODE_FIELD_NAME="OperatingCarrierPNRCode",t.OPERATING_CARRIER_PNR_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.OperatingCarrierPNRCode",t.PASSENGER_DESCRIPTION_FIELD_NAME="PassengerDescription",t.PASSENGER_DESCRIPTION_FIELD_NAME_NORMALIZED="BoardingPass.Leg.PassengerDescription",t.PASSENGER_STATUS_FIELD_NAME="PassengerStatus",t.PASSENGER_STATUS_FIELD_NAME_NORMALIZED="BoardingPass.Leg.PassengerStatus",t.SEAT_NUMBER_FIELD_NAME="SeatNumber",t.SEAT_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SeatNumber",t.SECOND_NON_CONSECUTIVE_BAGGAGE_TAG_LICENSE_PLATE_NUMBER_FIELD_NAME="SecondNonConsecutiveBaggageTagLicensePlateNumber",t.SECOND_NON_CONSECUTIVE_BAGGAGE_TAG_LICENSE_PLATE_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SecondNonConsecutiveBaggageTagLicensePlateNumber",t.SELECTEE_INDICATOR_FIELD_NAME="SelecteeIndicator",t.SELECTEE_INDICATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SelecteeIndicator",t.SOURCE_OF_BOARDING_PASS_ISSUANCE_FIELD_NAME="SourceOfBoardingPassIssuance",t.SOURCE_OF_BOARDING_PASS_ISSUANCE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SourceOfBoardingPassIssuance",t.SOURCE_OF_CHECK_IN_FIELD_NAME="SourceOfCheckIn",t.SOURCE_OF_CHECK_IN_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SourceOfCheckIn",t.VERSION_NUMBER_FIELD_NAME="VersionNumber",t.VERSION_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.VersionNumber",e.Leg=t}(pe||(pe={}));class Ee{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Ee.DOCUMENT_TYPE}get additionalBillingInformation(){return this.document.fields.find((e=>"AdditionalBillingInformation"===e.type.name))}get additionalInfoTrailer(){return this.document.fields.find((e=>"AdditionalInfoTrailer"===e.type.name))}get additionalInfoUnstructured(){return this.document.fields.find((e=>"AdditionalInfoUnstructured"===e.type.name))}get alternativeProcedureParameter(){return this.document.fields.find((e=>"AlternativeProcedureParameter"===e.type.name))}get amount(){return this.document.fields.find((e=>"Amount"===e.type.name))}get currency(){return this.document.fields.find((e=>"Currency"===e.type.name))}get debtorAddressType(){return this.document.fields.find((e=>"DebtorAddressType"===e.type.name))}get debtorBuildingOrAddressLine2(){return this.document.fields.find((e=>"DebtorBuildingOrAddressLine2"===e.type.name))}get debtorCountry(){return this.document.fields.find((e=>"DebtorCountry"===e.type.name))}get debtorName(){return this.document.fields.find((e=>"DebtorName"===e.type.name))}get debtorPlace(){return this.document.fields.find((e=>"DebtorPlace"===e.type.name))}get debtorPostalCode(){return this.document.fields.find((e=>"DebtorPostalCode"===e.type.name))}get debtorStreetOrAddressLine1(){return this.document.fields.find((e=>"DebtorStreetOrAddressLine1"===e.type.name))}get dueDate(){return this.document.fields.find((e=>"DueDate"===e.type.name))}get encoding(){return this.document.fields.find((e=>"Encoding"===e.type.name))}get finalPayeeAddressType(){return this.document.fields.find((e=>"FinalPayeeAddressType"===e.type.name))}get finalPayeeBuildingOrAddressLine2(){return this.document.fields.find((e=>"FinalPayeeBuildingOrAddressLine2"===e.type.name))}get finalPayeeCountry(){return this.document.fields.find((e=>"FinalPayeeCountry"===e.type.name))}get finalPayeeName(){return this.document.fields.find((e=>"FinalPayeeName"===e.type.name))}get finalPayeePlace(){return this.document.fields.find((e=>"FinalPayeePlace"===e.type.name))}get finalPayeePostalCode(){return this.document.fields.find((e=>"FinalPayeePostalCode"===e.type.name))}get finalPayeeStreetOrAddressLine1(){return this.document.fields.find((e=>"FinalPayeeStreetOrAddressLine1"===e.type.name))}get iban(){return this.document.fields.find((e=>"IBAN"===e.type.name))}get majorVersion(){return this.document.fields.find((e=>"MajorVersion"===e.type.name))}get payeeAddressType(){return this.document.fields.find((e=>"PayeeAddressType"===e.type.name))}get payeeBuildingOrAddressLine2(){return this.document.fields.find((e=>"PayeeBuildingOrAddressLine2"===e.type.name))}get payeeCountry(){return this.document.fields.find((e=>"PayeeCountry"===e.type.name))}get payeeName(){return this.document.fields.find((e=>"PayeeName"===e.type.name))}get payeePlace(){return this.document.fields.find((e=>"PayeePlace"===e.type.name))}get payeePostalCode(){return this.document.fields.find((e=>"PayeePostalCode"===e.type.name))}get payeeStreetOrAddressLine1(){return this.document.fields.find((e=>"PayeeStreetOrAddressLine1"===e.type.name))}get paymentReference(){return this.document.fields.find((e=>"PaymentReference"===e.type.name))}get paymentReferenceType(){return this.document.fields.find((e=>"PaymentReferenceType"===e.type.name))}}Ee.DOCUMENT_TYPE="SwissQR",Ee.ADDITIONAL_BILLING_INFORMATION_FIELD_NAME="AdditionalBillingInformation",Ee.ADDITIONAL_BILLING_INFORMATION_FIELD_NAME_NORMALIZED="SwissQR.AdditionalBillingInformation",Ee.ADDITIONAL_INFO_TRAILER_FIELD_NAME="AdditionalInfoTrailer",Ee.ADDITIONAL_INFO_TRAILER_FIELD_NAME_NORMALIZED="SwissQR.AdditionalInfoTrailer",Ee.ADDITIONAL_INFO_UNSTRUCTURED_FIELD_NAME="AdditionalInfoUnstructured",Ee.ADDITIONAL_INFO_UNSTRUCTURED_FIELD_NAME_NORMALIZED="SwissQR.AdditionalInfoUnstructured",Ee.ALTERNATIVE_PROCEDURE_PARAMETER_FIELD_NAME="AlternativeProcedureParameter",Ee.ALTERNATIVE_PROCEDURE_PARAMETER_FIELD_NAME_NORMALIZED="SwissQR.AlternativeProcedureParameter",Ee.AMOUNT_FIELD_NAME="Amount",Ee.AMOUNT_FIELD_NAME_NORMALIZED="SwissQR.Amount",Ee.CURRENCY_FIELD_NAME="Currency",Ee.CURRENCY_FIELD_NAME_NORMALIZED="SwissQR.Currency",Ee.DEBTOR_ADDRESS_TYPE_FIELD_NAME="DebtorAddressType",Ee.DEBTOR_ADDRESS_TYPE_FIELD_NAME_NORMALIZED="SwissQR.DebtorAddressType",Ee.DEBTOR_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME="DebtorBuildingOrAddressLine2",Ee.DEBTOR_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME_NORMALIZED="SwissQR.DebtorBuildingOrAddressLine2",Ee.DEBTOR_COUNTRY_FIELD_NAME="DebtorCountry",Ee.DEBTOR_COUNTRY_FIELD_NAME_NORMALIZED="SwissQR.DebtorCountry",Ee.DEBTOR_NAME_FIELD_NAME="DebtorName",Ee.DEBTOR_NAME_FIELD_NAME_NORMALIZED="SwissQR.DebtorName",Ee.DEBTOR_PLACE_FIELD_NAME="DebtorPlace",Ee.DEBTOR_PLACE_FIELD_NAME_NORMALIZED="SwissQR.DebtorPlace",Ee.DEBTOR_POSTAL_CODE_FIELD_NAME="DebtorPostalCode",Ee.DEBTOR_POSTAL_CODE_FIELD_NAME_NORMALIZED="SwissQR.DebtorPostalCode",Ee.DEBTOR_STREET_OR_ADDRESS_LINE_1_FIELD_NAME="DebtorStreetOrAddressLine1",Ee.DEBTOR_STREET_OR_ADDRESS_LINE_1_FIELD_NAME_NORMALIZED="SwissQR.DebtorStreetOrAddressLine1",Ee.DUE_DATE_FIELD_NAME="DueDate",Ee.DUE_DATE_FIELD_NAME_NORMALIZED="SwissQR.DueDate",Ee.ENCODING_FIELD_NAME="Encoding",Ee.ENCODING_FIELD_NAME_NORMALIZED="SwissQR.Encoding",Ee.FINAL_PAYEE_ADDRESS_TYPE_FIELD_NAME="FinalPayeeAddressType",Ee.FINAL_PAYEE_ADDRESS_TYPE_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeAddressType",Ee.FINAL_PAYEE_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME="FinalPayeeBuildingOrAddressLine2",Ee.FINAL_PAYEE_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeBuildingOrAddressLine2",Ee.FINAL_PAYEE_COUNTRY_FIELD_NAME="FinalPayeeCountry",Ee.FINAL_PAYEE_COUNTRY_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeCountry",Ee.FINAL_PAYEE_NAME_FIELD_NAME="FinalPayeeName",Ee.FINAL_PAYEE_NAME_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeName",Ee.FINAL_PAYEE_PLACE_FIELD_NAME="FinalPayeePlace",Ee.FINAL_PAYEE_PLACE_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeePlace",Ee.FINAL_PAYEE_POSTAL_CODE_FIELD_NAME="FinalPayeePostalCode",Ee.FINAL_PAYEE_POSTAL_CODE_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeePostalCode",Ee.FINAL_PAYEE_STREET_OR_ADDRESS_LINE_1_FIELD_NAME="FinalPayeeStreetOrAddressLine1",Ee.FINAL_PAYEE_STREET_OR_ADDRESS_LINE_1_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeStreetOrAddressLine1",Ee.IBAN_FIELD_NAME="IBAN",Ee.IBAN_FIELD_NAME_NORMALIZED="SwissQR.IBAN",Ee.MAJOR_VERSION_FIELD_NAME="MajorVersion",Ee.MAJOR_VERSION_FIELD_NAME_NORMALIZED="SwissQR.MajorVersion",Ee.PAYEE_ADDRESS_TYPE_FIELD_NAME="PayeeAddressType",Ee.PAYEE_ADDRESS_TYPE_FIELD_NAME_NORMALIZED="SwissQR.PayeeAddressType",Ee.PAYEE_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME="PayeeBuildingOrAddressLine2",Ee.PAYEE_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME_NORMALIZED="SwissQR.PayeeBuildingOrAddressLine2",Ee.PAYEE_COUNTRY_FIELD_NAME="PayeeCountry",Ee.PAYEE_COUNTRY_FIELD_NAME_NORMALIZED="SwissQR.PayeeCountry",Ee.PAYEE_NAME_FIELD_NAME="PayeeName",Ee.PAYEE_NAME_FIELD_NAME_NORMALIZED="SwissQR.PayeeName",Ee.PAYEE_PLACE_FIELD_NAME="PayeePlace",Ee.PAYEE_PLACE_FIELD_NAME_NORMALIZED="SwissQR.PayeePlace",Ee.PAYEE_POSTAL_CODE_FIELD_NAME="PayeePostalCode",Ee.PAYEE_POSTAL_CODE_FIELD_NAME_NORMALIZED="SwissQR.PayeePostalCode",Ee.PAYEE_STREET_OR_ADDRESS_LINE_1_FIELD_NAME="PayeeStreetOrAddressLine1",Ee.PAYEE_STREET_OR_ADDRESS_LINE_1_FIELD_NAME_NORMALIZED="SwissQR.PayeeStreetOrAddressLine1",Ee.PAYMENT_REFERENCE_FIELD_NAME="PaymentReference",Ee.PAYMENT_REFERENCE_FIELD_NAME_NORMALIZED="SwissQR.PaymentReference",Ee.PAYMENT_REFERENCE_TYPE_FIELD_NAME="PaymentReferenceType",Ee.PAYMENT_REFERENCE_TYPE_FIELD_NAME_NORMALIZED="SwissQR.PaymentReferenceType";class Ae{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Ae.DOCUMENT_TYPE}get currentPage(){return this.document.fields.find((e=>"CurrentPage"===e.type.name))}get documentVersionNumber(){return this.document.fields.find((e=>"DocumentVersionNumber"===e.type.name))}get guid(){return this.document.fields.find((e=>"GUID"===e.type.name))}get languageCountryCode(){return this.document.fields.find((e=>"LanguageCountryCode"===e.type.name))}get patchVersionNumber(){return this.document.fields.find((e=>"PatchVersionNumber"===e.type.name))}get totalNumberOfPages(){return this.document.fields.find((e=>"TotalNumberOfPages"===e.type.name))}get patient(){const e=this.document.children.find((e=>"Patient"===e.type.name));return new Ae.Patient(e)}get doctor(){const e=this.document.children.find((e=>"Doctor"===e.type.name));return new Ae.Doctor(e)}get subheadings(){return this.document.children.filter((e=>"Subheading"===e.type.name)).map((e=>new Ae.Subheading(e)))}}Ae.DOCUMENT_TYPE="DEMedicalPlan",Ae.CURRENT_PAGE_FIELD_NAME="CurrentPage",Ae.CURRENT_PAGE_FIELD_NAME_NORMALIZED="DEMedicalPlan.CurrentPage",Ae.DOCUMENT_VERSION_NUMBER_FIELD_NAME="DocumentVersionNumber",Ae.DOCUMENT_VERSION_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.DocumentVersionNumber",Ae.GUID_FIELD_NAME="GUID",Ae.GUID_FIELD_NAME_NORMALIZED="DEMedicalPlan.GUID",Ae.LANGUAGE_COUNTRY_CODE_FIELD_NAME="LanguageCountryCode",Ae.LANGUAGE_COUNTRY_CODE_FIELD_NAME_NORMALIZED="DEMedicalPlan.LanguageCountryCode",Ae.PATCH_VERSION_NUMBER_FIELD_NAME="PatchVersionNumber",Ae.PATCH_VERSION_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.PatchVersionNumber",Ae.TOTAL_NUMBER_OF_PAGES_FIELD_NAME="TotalNumberOfPages",Ae.TOTAL_NUMBER_OF_PAGES_FIELD_NAME_NORMALIZED="DEMedicalPlan.TotalNumberOfPages",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Patient.DOCUMENT_TYPE}get allergiesAndIntolerances(){return this.document.fields.find((e=>"AllergiesAndIntolerances"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get breastFeeding(){return this.document.fields.find((e=>"BreastFeeding"===e.type.name))}get creatinineValue(){return this.document.fields.find((e=>"CreatinineValue"===e.type.name))}get firstName(){return this.document.fields.find((e=>"FirstName"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get patientFreeText(){return this.document.fields.find((e=>"PatientFreeText"===e.type.name))}get patientID(){return this.document.fields.find((e=>"PatientID"===e.type.name))}get preName(){return this.document.fields.find((e=>"PreName"===e.type.name))}get pregnant(){return this.document.fields.find((e=>"Pregnant"===e.type.name))}get suffix(){return this.document.fields.find((e=>"Suffix"===e.type.name))}get title(){return this.document.fields.find((e=>"Title"===e.type.name))}get weight(){return this.document.fields.find((e=>"Weight"===e.type.name))}}t.DOCUMENT_TYPE="Patient",t.ALLERGIES_AND_INTOLERANCES_FIELD_NAME="AllergiesAndIntolerances",t.ALLERGIES_AND_INTOLERANCES_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.AllergiesAndIntolerances",t.BIRTH_DATE_FIELD_NAME="BirthDate",t.BIRTH_DATE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.BirthDate",t.BREAST_FEEDING_FIELD_NAME="BreastFeeding",t.BREAST_FEEDING_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.BreastFeeding",t.CREATININE_VALUE_FIELD_NAME="CreatinineValue",t.CREATININE_VALUE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.CreatinineValue",t.FIRST_NAME_FIELD_NAME="FirstName",t.FIRST_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.FirstName",t.GENDER_FIELD_NAME="Gender",t.GENDER_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Gender",t.HEIGHT_FIELD_NAME="Height",t.HEIGHT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Height",t.LAST_NAME_FIELD_NAME="LastName",t.LAST_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.LastName",t.PATIENT_FREE_TEXT_FIELD_NAME="PatientFreeText",t.PATIENT_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.PatientFreeText",t.PATIENT_ID_FIELD_NAME="PatientID",t.PATIENT_ID_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.PatientID",t.PRE_NAME_FIELD_NAME="PreName",t.PRE_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.PreName",t.PREGNANT_FIELD_NAME="Pregnant",t.PREGNANT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Pregnant",t.SUFFIX_FIELD_NAME="Suffix",t.SUFFIX_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Suffix",t.TITLE_FIELD_NAME="Title",t.TITLE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Title",t.WEIGHT_FIELD_NAME="Weight",t.WEIGHT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Weight",e.Patient=t;class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Doctor.DOCUMENT_TYPE}get doctorNumber(){return this.document.fields.find((e=>"DoctorNumber"===e.type.name))}get email(){return this.document.fields.find((e=>"Email"===e.type.name))}get hospitalID(){return this.document.fields.find((e=>"HospitalID"===e.type.name))}get issuerName(){return this.document.fields.find((e=>"IssuerName"===e.type.name))}get issuingDateAndTime(){return this.document.fields.find((e=>"IssuingDateAndTime"===e.type.name))}get pharmacyID(){return this.document.fields.find((e=>"PharmacyID"===e.type.name))}get place(){return this.document.fields.find((e=>"Place"===e.type.name))}get postalCode(){return this.document.fields.find((e=>"PostalCode"===e.type.name))}get street(){return this.document.fields.find((e=>"Street"===e.type.name))}get telephoneNumber(){return this.document.fields.find((e=>"TelephoneNumber"===e.type.name))}}n.DOCUMENT_TYPE="Doctor",n.DOCTOR_NUMBER_FIELD_NAME="DoctorNumber",n.DOCTOR_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.DoctorNumber",n.EMAIL_FIELD_NAME="Email",n.EMAIL_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.Email",n.HOSPITAL_ID_FIELD_NAME="HospitalID",n.HOSPITAL_ID_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.HospitalID",n.ISSUER_NAME_FIELD_NAME="IssuerName",n.ISSUER_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.IssuerName",n.ISSUING_DATE_AND_TIME_FIELD_NAME="IssuingDateAndTime",n.ISSUING_DATE_AND_TIME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.IssuingDateAndTime",n.PHARMACY_ID_FIELD_NAME="PharmacyID",n.PHARMACY_ID_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.PharmacyID",n.PLACE_FIELD_NAME="Place",n.PLACE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.Place",n.POSTAL_CODE_FIELD_NAME="PostalCode",n.POSTAL_CODE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.PostalCode",n.STREET_FIELD_NAME="Street",n.STREET_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.Street",n.TELEPHONE_NUMBER_FIELD_NAME="TelephoneNumber",n.TELEPHONE_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.TelephoneNumber",e.Doctor=n;class i{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Subheading.DOCUMENT_TYPE}get generalNotes(){return this.document.fields.filter((e=>"GeneralNote"===e.type.name))}get keyWords(){return this.document.fields.find((e=>"KeyWords"===e.type.name))}get subheadingFreeText(){return this.document.fields.find((e=>"SubheadingFreeText"===e.type.name))}get medicines(){return this.document.children.filter((e=>"Medicine"===e.type.name)).map((t=>new e.Subheading.Medicine(t)))}get prescriptions(){return this.document.children.filter((e=>"Prescription"===e.type.name)).map((t=>new e.Subheading.Prescription(t)))}}i.DOCUMENT_TYPE="Subheading",i.GENERAL_NOTE_FIELD_NAME="GeneralNote",i.GENERAL_NOTE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.GeneralNote",i.KEY_WORDS_FIELD_NAME="KeyWords",i.KEY_WORDS_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.KeyWords",i.SUBHEADING_FREE_TEXT_FIELD_NAME="SubheadingFreeText",i.SUBHEADING_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.SubheadingFreeText",e.Subheading=i,function(t){class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Subheading.Medicine.DOCUMENT_TYPE}get dosageForm(){return this.document.fields.find((e=>"DosageForm"===e.type.name))}get dosageFormFreeText(){return this.document.fields.find((e=>"DosageFormFreeText"===e.type.name))}get dosageFreeText(){return this.document.fields.find((e=>"DosageFreeText"===e.type.name))}get dosingUnit(){return this.document.fields.find((e=>"DosingUnit"===e.type.name))}get dosingUnitFreeText(){return this.document.fields.find((e=>"DosingUnitFreeText"===e.type.name))}get drugName(){return this.document.fields.find((e=>"DrugName"===e.type.name))}get evening(){return this.document.fields.find((e=>"Evening"===e.type.name))}get generalNotes(){return this.document.fields.find((e=>"GeneralNotes"===e.type.name))}get midday(){return this.document.fields.find((e=>"Midday"===e.type.name))}get morning(){return this.document.fields.find((e=>"Morning"===e.type.name))}get night(){return this.document.fields.find((e=>"Night"===e.type.name))}get pharmaceuticalNumber(){return this.document.fields.find((e=>"PharmaceuticalNumber"===e.type.name))}get reasonForTreatment(){return this.document.fields.find((e=>"ReasonForTreatment"===e.type.name))}get relevantInfo(){return this.document.fields.find((e=>"RelevantInfo"===e.type.name))}get substances(){return this.document.children.filter((e=>"Substance"===e.type.name)).map((t=>new e.Subheading.Medicine.Substance(t)))}}n.DOCUMENT_TYPE="Medicine",n.DOSAGE_FORM_FIELD_NAME="DosageForm",n.DOSAGE_FORM_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosageForm",n.DOSAGE_FORM_FREE_TEXT_FIELD_NAME="DosageFormFreeText",n.DOSAGE_FORM_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosageFormFreeText",n.DOSAGE_FREE_TEXT_FIELD_NAME="DosageFreeText",n.DOSAGE_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosageFreeText",n.DOSING_UNIT_FIELD_NAME="DosingUnit",n.DOSING_UNIT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosingUnit",n.DOSING_UNIT_FREE_TEXT_FIELD_NAME="DosingUnitFreeText",n.DOSING_UNIT_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosingUnitFreeText",n.DRUG_NAME_FIELD_NAME="DrugName",n.DRUG_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DrugName",n.EVENING_FIELD_NAME="Evening",n.EVENING_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Evening",n.GENERAL_NOTES_FIELD_NAME="GeneralNotes",n.GENERAL_NOTES_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.GeneralNotes",n.MIDDAY_FIELD_NAME="Midday",n.MIDDAY_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Midday",n.MORNING_FIELD_NAME="Morning",n.MORNING_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Morning",n.NIGHT_FIELD_NAME="Night",n.NIGHT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Night",n.PHARMACEUTICAL_NUMBER_FIELD_NAME="PharmaceuticalNumber",n.PHARMACEUTICAL_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.PharmaceuticalNumber",n.REASON_FOR_TREATMENT_FIELD_NAME="ReasonForTreatment",n.REASON_FOR_TREATMENT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.ReasonForTreatment",n.RELEVANT_INFO_FIELD_NAME="RelevantInfo",n.RELEVANT_INFO_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.RelevantInfo",t.Medicine=n,function(t){class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Subheading.Medicine.Substance.DOCUMENT_TYPE}get activeSubstance(){return this.document.fields.find((e=>"ActiveSubstance"===e.type.name))}get potency(){return this.document.fields.find((e=>"Potency"===e.type.name))}}n.DOCUMENT_TYPE="Substance",n.ACTIVE_SUBSTANCE_FIELD_NAME="ActiveSubstance",n.ACTIVE_SUBSTANCE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Substance.ActiveSubstance",n.POTENCY_FIELD_NAME="Potency",n.POTENCY_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Substance.Potency",t.Substance=n}(n=t.Medicine||(t.Medicine={}));class i{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Subheading.Prescription.DOCUMENT_TYPE}get generalInformation(){return this.document.fields.find((e=>"GeneralInformation"===e.type.name))}get prescriptionFreeText(){return this.document.fields.find((e=>"PrescriptionFreeText"===e.type.name))}}i.DOCUMENT_TYPE="Prescription",i.GENERAL_INFORMATION_FIELD_NAME="GeneralInformation",i.GENERAL_INFORMATION_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Prescription.GeneralInformation",i.PRESCRIPTION_FREE_TEXT_FIELD_NAME="PrescriptionFreeText",i.PRESCRIPTION_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Prescription.PrescriptionFreeText",t.Prescription=i}(i=e.Subheading||(e.Subheading={}))}(Ae||(Ae={}));class ge{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ge.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get dateExpired(){return this.document.fields.find((e=>"DateExpired"===e.type.name))}get dateIssued(){return this.document.fields.find((e=>"DateIssued"===e.type.name))}get documentCode(){return this.document.fields.find((e=>"DocumentCode"===e.type.name))}get firstName(){return this.document.fields.find((e=>"FirstName"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get optional(){return this.document.fields.find((e=>"Optional"===e.type.name))}}ge.DOCUMENT_TYPE="IDCardPDF417",ge.BIRTH_DATE_FIELD_NAME="BirthDate",ge.BIRTH_DATE_FIELD_NAME_NORMALIZED="IDCardPDF417.BirthDate",ge.DATE_EXPIRED_FIELD_NAME="DateExpired",ge.DATE_EXPIRED_FIELD_NAME_NORMALIZED="IDCardPDF417.DateExpired",ge.DATE_ISSUED_FIELD_NAME="DateIssued",ge.DATE_ISSUED_FIELD_NAME_NORMALIZED="IDCardPDF417.DateIssued",ge.DOCUMENT_CODE_FIELD_NAME="DocumentCode",ge.DOCUMENT_CODE_FIELD_NAME_NORMALIZED="IDCardPDF417.DocumentCode",ge.FIRST_NAME_FIELD_NAME="FirstName",ge.FIRST_NAME_FIELD_NAME_NORMALIZED="IDCardPDF417.FirstName",ge.LAST_NAME_FIELD_NAME="LastName",ge.LAST_NAME_FIELD_NAME_NORMALIZED="IDCardPDF417.LastName",ge.OPTIONAL_FIELD_NAME="Optional",ge.OPTIONAL_FIELD_NAME_NORMALIZED="IDCardPDF417.Optional";class fe{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return fe.DOCUMENT_TYPE}get elements(){return this.document.children.filter((e=>"Element"===e.type.name)).map((e=>new fe.Element(e)))}}fe.DOCUMENT_TYPE="GS1",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Element.DOCUMENT_TYPE}get applicationIdentifier(){return this.document.fields.find((e=>"ApplicationIdentifier"===e.type.name))}get dataTitle(){return this.document.fields.find((e=>"DataTitle"===e.type.name))}get elementDescription(){return this.document.fields.find((e=>"ElementDescription"===e.type.name))}get rawValue(){return this.document.fields.find((e=>"RawValue"===e.type.name))}get validationErrors(){return this.document.children.filter((e=>"ValidationError"===e.type.name)).map((t=>new e.Element.ValidationError(t)))}}t.DOCUMENT_TYPE="Element",t.APPLICATION_IDENTIFIER_FIELD_NAME="ApplicationIdentifier",t.APPLICATION_IDENTIFIER_FIELD_NAME_NORMALIZED="GS1.Element.ApplicationIdentifier",t.DATA_TITLE_FIELD_NAME="DataTitle",t.DATA_TITLE_FIELD_NAME_NORMALIZED="GS1.Element.DataTitle",t.ELEMENT_DESCRIPTION_FIELD_NAME="ElementDescription",t.ELEMENT_DESCRIPTION_FIELD_NAME_NORMALIZED="GS1.Element.ElementDescription",t.RAW_VALUE_FIELD_NAME="RawValue",t.RAW_VALUE_FIELD_NAME_NORMALIZED="GS1.Element.RawValue",e.Element=t,function(t){class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Element.ValidationError.DOCUMENT_TYPE}get code(){return this.document.fields.find((e=>"Code"===e.type.name))}get reason(){return this.document.fields.find((e=>"Reason"===e.type.name))}}n.DOCUMENT_TYPE="ValidationError",n.CODE_FIELD_NAME="Code",n.CODE_FIELD_NAME_NORMALIZED="GS1.Element.ValidationError.Code",n.REASON_FIELD_NAME="Reason",n.REASON_FIELD_NAME_NORMALIZED="GS1.Element.ValidationError.Reason",t.ValidationError=n}(t=e.Element||(e.Element={}))}(fe||(fe={}));class Ce{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Ce.DOCUMENT_TYPE}get amount(){return this.document.fields.find((e=>"Amount"===e.type.name))}get characterSet(){return this.document.fields.find((e=>"CharacterSet"===e.type.name))}get identification(){return this.document.fields.find((e=>"Identification"===e.type.name))}get information(){return this.document.fields.find((e=>"Information"===e.type.name))}get purpose(){return this.document.fields.find((e=>"Purpose"===e.type.name))}get receiverBIC(){return this.document.fields.find((e=>"ReceiverBIC"===e.type.name))}get receiverIBAN(){return this.document.fields.find((e=>"ReceiverIBAN"===e.type.name))}get receiverName(){return this.document.fields.find((e=>"ReceiverName"===e.type.name))}get remittance(){return this.document.fields.find((e=>"Remittance"===e.type.name))}get serviceTag(){return this.document.fields.find((e=>"ServiceTag"===e.type.name))}get version(){return this.document.fields.find((e=>"Version"===e.type.name))}}Ce.DOCUMENT_TYPE="SEPA",Ce.AMOUNT_FIELD_NAME="Amount",Ce.AMOUNT_FIELD_NAME_NORMALIZED="SEPA.Amount",Ce.CHARACTER_SET_FIELD_NAME="CharacterSet",Ce.CHARACTER_SET_FIELD_NAME_NORMALIZED="SEPA.CharacterSet",Ce.IDENTIFICATION_FIELD_NAME="Identification",Ce.IDENTIFICATION_FIELD_NAME_NORMALIZED="SEPA.Identification",Ce.INFORMATION_FIELD_NAME="Information",Ce.INFORMATION_FIELD_NAME_NORMALIZED="SEPA.Information",Ce.PURPOSE_FIELD_NAME="Purpose",Ce.PURPOSE_FIELD_NAME_NORMALIZED="SEPA.Purpose",Ce.RECEIVER_BIC_FIELD_NAME="ReceiverBIC",Ce.RECEIVER_BIC_FIELD_NAME_NORMALIZED="SEPA.ReceiverBIC",Ce.RECEIVER_IBAN_FIELD_NAME="ReceiverIBAN",Ce.RECEIVER_IBAN_FIELD_NAME_NORMALIZED="SEPA.ReceiverIBAN",Ce.RECEIVER_NAME_FIELD_NAME="ReceiverName",Ce.RECEIVER_NAME_FIELD_NAME_NORMALIZED="SEPA.ReceiverName",Ce.REMITTANCE_FIELD_NAME="Remittance",Ce.REMITTANCE_FIELD_NAME_NORMALIZED="SEPA.Remittance",Ce.SERVICE_TAG_FIELD_NAME="ServiceTag",Ce.SERVICE_TAG_FIELD_NAME_NORMALIZED="SEPA.ServiceTag",Ce.VERSION_FIELD_NAME="Version",Ce.VERSION_FIELD_NAME_NORMALIZED="SEPA.Version";class _e{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return _e.DOCUMENT_TYPE}get accident(){return this.document.fields.find((e=>"Accident"===e.type.name))}get assignedToAccidentInsuranceDoctor(){return this.document.fields.find((e=>"AssignedToAccidentInsuranceDoctor"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get childNeedsCareFrom(){return this.document.fields.find((e=>"ChildNeedsCareFrom"===e.type.name))}get childNeedsCareUntil(){return this.document.fields.find((e=>"ChildNeedsCareUntil"===e.type.name))}get diagnose(){return this.document.fields.find((e=>"Diagnose"===e.type.name))}get diagnosedOn(){return this.document.fields.find((e=>"DiagnosedOn"===e.type.name))}get doctorNumber(){return this.document.fields.find((e=>"DoctorNumber"===e.type.name))}get documentDate(){return this.document.fields.find((e=>"DocumentDate"===e.type.name))}get firstName(){return this.document.fields.find((e=>"FirstName"===e.type.name))}get healthInsuranceNumber(){return this.document.fields.find((e=>"HealthInsuranceNumber"===e.type.name))}get incapableOfWorkSince(){return this.document.fields.find((e=>"IncapableOfWorkSince"===e.type.name))}get incapableOfWorkUntil(){return this.document.fields.find((e=>"IncapableOfWorkUntil"===e.type.name))}get initialCertificate(){return this.document.fields.find((e=>"InitialCertificate"===e.type.name))}get insuredPersonNumber(){return this.document.fields.find((e=>"InsuredPersonNumber"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get placeOfOperationNumber(){return this.document.fields.find((e=>"PlaceOfOperationNumber"===e.type.name))}get renewedCertificate(){return this.document.fields.find((e=>"RenewedCertificate"===e.type.name))}get requiresCare(){return this.document.fields.find((e=>"RequiresCare"===e.type.name))}get status(){return this.document.fields.find((e=>"Status"===e.type.name))}get workAccident(){return this.document.fields.find((e=>"WorkAccident"===e.type.name))}}_e.DOCUMENT_TYPE="MedicalCertificate",_e.ACCIDENT_FIELD_NAME="Accident",_e.ACCIDENT_FIELD_NAME_NORMALIZED="MedicalCertificate.Accident",_e.ASSIGNED_TO_ACCIDENT_INSURANCE_DOCTOR_FIELD_NAME="AssignedToAccidentInsuranceDoctor",_e.ASSIGNED_TO_ACCIDENT_INSURANCE_DOCTOR_FIELD_NAME_NORMALIZED="MedicalCertificate.AssignedToAccidentInsuranceDoctor",_e.BIRTH_DATE_FIELD_NAME="BirthDate",_e.BIRTH_DATE_FIELD_NAME_NORMALIZED="MedicalCertificate.BirthDate",_e.CHILD_NEEDS_CARE_FROM_FIELD_NAME="ChildNeedsCareFrom",_e.CHILD_NEEDS_CARE_FROM_FIELD_NAME_NORMALIZED="MedicalCertificate.ChildNeedsCareFrom",_e.CHILD_NEEDS_CARE_UNTIL_FIELD_NAME="ChildNeedsCareUntil",_e.CHILD_NEEDS_CARE_UNTIL_FIELD_NAME_NORMALIZED="MedicalCertificate.ChildNeedsCareUntil",_e.DIAGNOSE_FIELD_NAME="Diagnose",_e.DIAGNOSE_FIELD_NAME_NORMALIZED="MedicalCertificate.Diagnose",_e.DIAGNOSED_ON_FIELD_NAME="DiagnosedOn",_e.DIAGNOSED_ON_FIELD_NAME_NORMALIZED="MedicalCertificate.DiagnosedOn",_e.DOCTOR_NUMBER_FIELD_NAME="DoctorNumber",_e.DOCTOR_NUMBER_FIELD_NAME_NORMALIZED="MedicalCertificate.DoctorNumber",_e.DOCUMENT_DATE_FIELD_NAME="DocumentDate",_e.DOCUMENT_DATE_FIELD_NAME_NORMALIZED="MedicalCertificate.DocumentDate",_e.FIRST_NAME_FIELD_NAME="FirstName",_e.FIRST_NAME_FIELD_NAME_NORMALIZED="MedicalCertificate.FirstName",_e.HEALTH_INSURANCE_NUMBER_FIELD_NAME="HealthInsuranceNumber",_e.HEALTH_INSURANCE_NUMBER_FIELD_NAME_NORMALIZED="MedicalCertificate.HealthInsuranceNumber",_e.INCAPABLE_OF_WORK_SINCE_FIELD_NAME="IncapableOfWorkSince",_e.INCAPABLE_OF_WORK_SINCE_FIELD_NAME_NORMALIZED="MedicalCertificate.IncapableOfWorkSince",_e.INCAPABLE_OF_WORK_UNTIL_FIELD_NAME="IncapableOfWorkUntil",_e.INCAPABLE_OF_WORK_UNTIL_FIELD_NAME_NORMALIZED="MedicalCertificate.IncapableOfWorkUntil",_e.INITIAL_CERTIFICATE_FIELD_NAME="InitialCertificate",_e.INITIAL_CERTIFICATE_FIELD_NAME_NORMALIZED="MedicalCertificate.InitialCertificate",_e.INSURED_PERSON_NUMBER_FIELD_NAME="InsuredPersonNumber",_e.INSURED_PERSON_NUMBER_FIELD_NAME_NORMALIZED="MedicalCertificate.InsuredPersonNumber",_e.LAST_NAME_FIELD_NAME="LastName",_e.LAST_NAME_FIELD_NAME_NORMALIZED="MedicalCertificate.LastName",_e.PLACE_OF_OPERATION_NUMBER_FIELD_NAME="PlaceOfOperationNumber",_e.PLACE_OF_OPERATION_NUMBER_FIELD_NAME_NORMALIZED="MedicalCertificate.PlaceOfOperationNumber",_e.RENEWED_CERTIFICATE_FIELD_NAME="RenewedCertificate",_e.RENEWED_CERTIFICATE_FIELD_NAME_NORMALIZED="MedicalCertificate.RenewedCertificate",_e.REQUIRES_CARE_FIELD_NAME="RequiresCare",_e.REQUIRES_CARE_FIELD_NAME_NORMALIZED="MedicalCertificate.RequiresCare",_e.STATUS_FIELD_NAME="Status",_e.STATUS_FIELD_NAME_NORMALIZED="MedicalCertificate.Status",_e.WORK_ACCIDENT_FIELD_NAME="WorkAccident",_e.WORK_ACCIDENT_FIELD_NAME_NORMALIZED="MedicalCertificate.WorkAccident";class De{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return De.DOCUMENT_TYPE}get version(){const e=this.document.children.find((e=>"Version"===e.type.name));return new De.Version(e)}get sources(){return this.document.children.filter((e=>"Source"===e.type.name)).map((e=>new De.Source(e)))}get kind(){const e=this.document.children.find((e=>"Kind"===e.type.name));return e?new De.Kind(e):void 0}get xmls(){return this.document.children.filter((e=>"XML"===e.type.name)).map((e=>new De.XML(e)))}get name(){const e=this.document.children.find((e=>"Name"===e.type.name));return e?new De.Name(e):void 0}get formattedName(){const e=this.document.children.find((e=>"FormattedName"===e.type.name));return e?new De.FormattedName(e):void 0}get nicknames(){return this.document.children.filter((e=>"Nickname"===e.type.name)).map((e=>new De.Nickname(e)))}get birthday(){const e=this.document.children.find((e=>"Birthday"===e.type.name));return e?new De.Birthday(e):void 0}get anniversary(){const e=this.document.children.find((e=>"Anniversary"===e.type.name));return e?new De.Anniversary(e):void 0}get gender(){const e=this.document.children.find((e=>"Gender"===e.type.name));return e?new De.Gender(e):void 0}get deliveryAddresses(){return this.document.children.filter((e=>"DeliveryAddress"===e.type.name)).map((e=>new De.DeliveryAddress(e)))}get labels(){return this.document.children.filter((e=>"Label"===e.type.name)).map((e=>new De.Label(e)))}get photos(){return this.document.children.filter((e=>"Photo"===e.type.name)).map((e=>new De.Photo(e)))}get telephoneNumbers(){return this.document.children.filter((e=>"TelephoneNumber"===e.type.name)).map((e=>new De.TelephoneNumber(e)))}get emails(){return this.document.children.filter((e=>"Email"===e.type.name)).map((e=>new De.Email(e)))}get impps(){return this.document.children.filter((e=>"IMPP"===e.type.name)).map((e=>new De.IMPP(e)))}get languages(){return this.document.children.filter((e=>"Language"===e.type.name)).map((e=>new De.Language(e)))}get timeZones(){return this.document.children.filter((e=>"TimeZone"===e.type.name)).map((e=>new De.TimeZone(e)))}get geoLocations(){return this.document.children.filter((e=>"GeoLocation"===e.type.name)).map((e=>new De.GeoLocation(e)))}get titles(){return this.document.children.filter((e=>"Title"===e.type.name)).map((e=>new De.Title(e)))}get roles(){return this.document.children.filter((e=>"Role"===e.type.name)).map((e=>new De.Role(e)))}get logos(){return this.document.children.filter((e=>"Logo"===e.type.name)).map((e=>new De.Logo(e)))}get agents(){return this.document.children.filter((e=>"Agent"===e.type.name)).map((e=>new De.Agent(e)))}get organisations(){return this.document.children.filter((e=>"Organisation"===e.type.name)).map((e=>new De.Organisation(e)))}get members(){return this.document.children.filter((e=>"Member"===e.type.name)).map((e=>new De.Member(e)))}get relateds(){return this.document.children.filter((e=>"Related"===e.type.name)).map((e=>new De.Related(e)))}get categories(){return this.document.children.filter((e=>"Category"===e.type.name)).map((e=>new De.Category(e)))}get notes(){return this.document.children.filter((e=>"Note"===e.type.name)).map((e=>new De.Note(e)))}get productId(){const e=this.document.children.find((e=>"ProductId"===e.type.name));return e?new De.ProductId(e):void 0}get revision(){const e=this.document.children.find((e=>"Revision"===e.type.name));return e?new De.Revision(e):void 0}get sounds(){return this.document.children.filter((e=>"Sound"===e.type.name)).map((e=>new De.Sound(e)))}get uid(){const e=this.document.children.find((e=>"UID"===e.type.name));return e?new De.UID(e):void 0}get clientPIDMaps(){return this.document.children.filter((e=>"ClientPIDMap"===e.type.name)).map((e=>new De.ClientPIDMap(e)))}get urls(){return this.document.children.filter((e=>"URL"===e.type.name)).map((e=>new De.URL(e)))}get publicKeys(){return this.document.children.filter((e=>"PublicKey"===e.type.name)).map((e=>new De.PublicKey(e)))}get busyTimeURLs(){return this.document.children.filter((e=>"BusyTimeURL"===e.type.name)).map((e=>new De.BusyTimeURL(e)))}get calendarURIForRequestss(){return this.document.children.filter((e=>"CalendarURIForRequests"===e.type.name)).map((e=>new De.CalendarURIForRequests(e)))}get calendarURIs(){return this.document.children.filter((e=>"CalendarURI"===e.type.name)).map((e=>new De.CalendarURI(e)))}get sortString(){const e=this.document.children.find((e=>"SortString"===e.type.name));return e?new De.SortString(e):void 0}get classification(){const e=this.document.children.find((e=>"Classification"===e.type.name));return e?new De.Classification(e):void 0}get customs(){return this.document.children.filter((e=>"Custom"===e.type.name)).map((e=>new De.Custom(e)))}}De.DOCUMENT_TYPE="VCard",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get rawValue(){return this.document.fields.find((e=>"RawValue"===e.type.name))}get typeModifiers(){return this.document.fields.filter((e=>"TypeModifier"===e.type.name))}get values(){return this.document.fields.filter((e=>"Value"===e.type.name))}}t.RAW_VALUE_FIELD_NAME="RawValue",t.RAW_VALUE_FIELD_NAME_NORMALIZED="VCard.Entry.RawValue",t.TYPE_MODIFIER_FIELD_NAME="TypeModifier",t.TYPE_MODIFIER_FIELD_NAME_NORMALIZED="VCard.Entry.TypeModifier",t.VALUE_FIELD_NAME="Value",t.VALUE_FIELD_NAME_NORMALIZED="VCard.Entry.Value",e.Entry=t;class n extends t{constructor(e){super(e)}requiredDocumentType(){return e.Version.DOCUMENT_TYPE}}n.DOCUMENT_TYPE="Version",e.Version=n;class i extends t{constructor(e){super(e)}requiredDocumentType(){return e.Source.DOCUMENT_TYPE}}i.DOCUMENT_TYPE="Source",e.Source=i;class r extends t{constructor(e){super(e)}requiredDocumentType(){return e.Kind.DOCUMENT_TYPE}}r.DOCUMENT_TYPE="Kind",e.Kind=r;class o extends t{constructor(e){super(e)}requiredDocumentType(){return e.XML.DOCUMENT_TYPE}}o.DOCUMENT_TYPE="XML",e.XML=o;class a extends t{constructor(e){super(e)}requiredDocumentType(){return e.Name.DOCUMENT_TYPE}}a.DOCUMENT_TYPE="Name",e.Name=a;class s extends t{constructor(e){super(e)}requiredDocumentType(){return e.FormattedName.DOCUMENT_TYPE}}s.DOCUMENT_TYPE="FormattedName",e.FormattedName=s;class c extends t{constructor(e){super(e)}requiredDocumentType(){return e.Nickname.DOCUMENT_TYPE}}c.DOCUMENT_TYPE="Nickname",e.Nickname=c;class l extends t{constructor(e){super(e)}requiredDocumentType(){return e.Birthday.DOCUMENT_TYPE}}l.DOCUMENT_TYPE="Birthday",e.Birthday=l;class u extends t{constructor(e){super(e)}requiredDocumentType(){return e.Anniversary.DOCUMENT_TYPE}}u.DOCUMENT_TYPE="Anniversary",e.Anniversary=u;class d extends t{constructor(e){super(e)}requiredDocumentType(){return e.Gender.DOCUMENT_TYPE}}d.DOCUMENT_TYPE="Gender",e.Gender=d;class m extends t{constructor(e){super(e)}requiredDocumentType(){return e.DeliveryAddress.DOCUMENT_TYPE}}m.DOCUMENT_TYPE="DeliveryAddress",e.DeliveryAddress=m;class h extends t{constructor(e){super(e)}requiredDocumentType(){return e.Label.DOCUMENT_TYPE}}h.DOCUMENT_TYPE="Label",e.Label=h;class p extends t{constructor(e){super(e)}requiredDocumentType(){return e.Photo.DOCUMENT_TYPE}}p.DOCUMENT_TYPE="Photo",e.Photo=p;class E extends t{constructor(e){super(e)}requiredDocumentType(){return e.TelephoneNumber.DOCUMENT_TYPE}}E.DOCUMENT_TYPE="TelephoneNumber",e.TelephoneNumber=E;class A extends t{constructor(e){super(e)}requiredDocumentType(){return e.Email.DOCUMENT_TYPE}}A.DOCUMENT_TYPE="Email",e.Email=A;class g extends t{constructor(e){super(e)}requiredDocumentType(){return e.IMPP.DOCUMENT_TYPE}}g.DOCUMENT_TYPE="IMPP",e.IMPP=g;class f extends t{constructor(e){super(e)}requiredDocumentType(){return e.Language.DOCUMENT_TYPE}}f.DOCUMENT_TYPE="Language",e.Language=f;class C extends t{constructor(e){super(e)}requiredDocumentType(){return e.TimeZone.DOCUMENT_TYPE}}C.DOCUMENT_TYPE="TimeZone",e.TimeZone=C;class _ extends t{constructor(e){super(e)}requiredDocumentType(){return e.GeoLocation.DOCUMENT_TYPE}}_.DOCUMENT_TYPE="GeoLocation",e.GeoLocation=_;class D extends t{constructor(e){super(e)}requiredDocumentType(){return e.Title.DOCUMENT_TYPE}}D.DOCUMENT_TYPE="Title",e.Title=D;class y extends t{constructor(e){super(e)}requiredDocumentType(){return e.Role.DOCUMENT_TYPE}}y.DOCUMENT_TYPE="Role",e.Role=y;class I extends t{constructor(e){super(e)}requiredDocumentType(){return e.Logo.DOCUMENT_TYPE}}I.DOCUMENT_TYPE="Logo",e.Logo=I;class v extends t{constructor(e){super(e)}requiredDocumentType(){return e.Agent.DOCUMENT_TYPE}}v.DOCUMENT_TYPE="Agent",e.Agent=v;class N extends t{constructor(e){super(e)}requiredDocumentType(){return e.Organisation.DOCUMENT_TYPE}}N.DOCUMENT_TYPE="Organisation",e.Organisation=N;class S extends t{constructor(e){super(e)}requiredDocumentType(){return e.Member.DOCUMENT_TYPE}}S.DOCUMENT_TYPE="Member",e.Member=S;class b extends t{constructor(e){super(e)}requiredDocumentType(){return e.Related.DOCUMENT_TYPE}}b.DOCUMENT_TYPE="Related",e.Related=b;class M extends t{constructor(e){super(e)}requiredDocumentType(){return e.Category.DOCUMENT_TYPE}}M.DOCUMENT_TYPE="Category",e.Category=M;class L extends t{constructor(e){super(e)}requiredDocumentType(){return e.Note.DOCUMENT_TYPE}}L.DOCUMENT_TYPE="Note",e.Note=L;class R extends t{constructor(e){super(e)}requiredDocumentType(){return e.ProductId.DOCUMENT_TYPE}}R.DOCUMENT_TYPE="ProductId",e.ProductId=R;class T extends t{constructor(e){super(e)}requiredDocumentType(){return e.Revision.DOCUMENT_TYPE}}T.DOCUMENT_TYPE="Revision",e.Revision=T;class O extends t{constructor(e){super(e)}requiredDocumentType(){return e.Sound.DOCUMENT_TYPE}}O.DOCUMENT_TYPE="Sound",e.Sound=O;class w extends t{constructor(e){super(e)}requiredDocumentType(){return e.UID.DOCUMENT_TYPE}}w.DOCUMENT_TYPE="UID",e.UID=w;class F extends t{constructor(e){super(e)}requiredDocumentType(){return e.ClientPIDMap.DOCUMENT_TYPE}}F.DOCUMENT_TYPE="ClientPIDMap",e.ClientPIDMap=F;class B extends t{constructor(e){super(e)}requiredDocumentType(){return e.URL.DOCUMENT_TYPE}}B.DOCUMENT_TYPE="URL",e.URL=B;class P extends t{constructor(e){super(e)}requiredDocumentType(){return e.PublicKey.DOCUMENT_TYPE}}P.DOCUMENT_TYPE="PublicKey",e.PublicKey=P;class x extends t{constructor(e){super(e)}requiredDocumentType(){return e.BusyTimeURL.DOCUMENT_TYPE}}x.DOCUMENT_TYPE="BusyTimeURL",e.BusyTimeURL=x;class k extends t{constructor(e){super(e)}requiredDocumentType(){return e.CalendarURIForRequests.DOCUMENT_TYPE}}k.DOCUMENT_TYPE="CalendarURIForRequests",e.CalendarURIForRequests=k;class V extends t{constructor(e){super(e)}requiredDocumentType(){return e.CalendarURI.DOCUMENT_TYPE}}V.DOCUMENT_TYPE="CalendarURI",e.CalendarURI=V;class U extends t{constructor(e){super(e)}requiredDocumentType(){return e.SortString.DOCUMENT_TYPE}}U.DOCUMENT_TYPE="SortString",e.SortString=U;class Z extends t{constructor(e){super(e)}requiredDocumentType(){return e.Classification.DOCUMENT_TYPE}}Z.DOCUMENT_TYPE="Classification",e.Classification=Z;class W extends t{constructor(e){super(e)}requiredDocumentType(){return e.Custom.DOCUMENT_TYPE}}W.DOCUMENT_TYPE="Custom",e.Custom=W}(De||(De={}));class ye{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ye.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardExpiry(){return this.document.fields.find((e=>"CardExpiry"===e.type.name))}get cardNumber(){return this.document.fields.find((e=>"CardNumber"===e.type.name))}get city(){return this.document.fields.find((e=>"City"===e.type.name))}get errorControlCode(){return this.document.fields.find((e=>"ErrorControlCode"===e.type.name))}get eyeColor(){return this.document.fields.find((e=>"EyeColor"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get hairColor(){return this.document.fields.find((e=>"HairColor"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get personalHealthNumber(){return this.document.fields.find((e=>"PersonalHealthNumber"===e.type.name))}get postalCode(){return this.document.fields.find((e=>"PostalCode"===e.type.name))}get province(){return this.document.fields.find((e=>"Province"===e.type.name))}get provinceCode(){return this.document.fields.find((e=>"ProvinceCode"===e.type.name))}get securityFunction(){return this.document.fields.find((e=>"SecurityFunction"===e.type.name))}get securityVersion(){return this.document.fields.find((e=>"SecurityVersion"===e.type.name))}get sex(){return this.document.fields.find((e=>"Sex"===e.type.name))}get version(){return this.document.fields.find((e=>"Version"===e.type.name))}get weight(){return this.document.fields.find((e=>"Weight"===e.type.name))}}ye.DOCUMENT_TYPE="BritishColumbiaDriverLicense",ye.ADDRESS_FIELD_NAME="Address",ye.ADDRESS_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Address",ye.BIRTH_DATE_FIELD_NAME="BirthDate",ye.BIRTH_DATE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.BirthDate",ye.CARD_EXPIRY_FIELD_NAME="CardExpiry",ye.CARD_EXPIRY_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.CardExpiry",ye.CARD_NUMBER_FIELD_NAME="CardNumber",ye.CARD_NUMBER_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.CardNumber",ye.CITY_FIELD_NAME="City",ye.CITY_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.City",ye.ERROR_CONTROL_CODE_FIELD_NAME="ErrorControlCode",ye.ERROR_CONTROL_CODE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.ErrorControlCode",ye.EYE_COLOR_FIELD_NAME="EyeColor",ye.EYE_COLOR_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.EyeColor",ye.GIVEN_NAMES_FIELD_NAME="GivenNames",ye.GIVEN_NAMES_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.GivenNames",ye.HAIR_COLOR_FIELD_NAME="HairColor",ye.HAIR_COLOR_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.HairColor",ye.HEIGHT_FIELD_NAME="Height",ye.HEIGHT_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Height",ye.LAST_NAME_FIELD_NAME="LastName",ye.LAST_NAME_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.LastName",ye.PERSONAL_HEALTH_NUMBER_FIELD_NAME="PersonalHealthNumber",ye.PERSONAL_HEALTH_NUMBER_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.PersonalHealthNumber",ye.POSTAL_CODE_FIELD_NAME="PostalCode",ye.POSTAL_CODE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.PostalCode",ye.PROVINCE_FIELD_NAME="Province",ye.PROVINCE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Province",ye.PROVINCE_CODE_FIELD_NAME="ProvinceCode",ye.PROVINCE_CODE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.ProvinceCode",ye.SECURITY_FUNCTION_FIELD_NAME="SecurityFunction",ye.SECURITY_FUNCTION_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.SecurityFunction",ye.SECURITY_VERSION_FIELD_NAME="SecurityVersion",ye.SECURITY_VERSION_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.SecurityVersion",ye.SEX_FIELD_NAME="Sex",ye.SEX_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Sex",ye.VERSION_FIELD_NAME="Version",ye.VERSION_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Version",ye.WEIGHT_FIELD_NAME="Weight",ye.WEIGHT_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Weight";class Ie{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Ie.DOCUMENT_TYPE}get issuerIdentificationNumber(){return this.document.fields.find((e=>"IssuerIdentificationNumber"===e.type.name))}get jurisdictionVersionNumber(){return this.document.fields.find((e=>"JurisdictionVersionNumber"===e.type.name))}get version(){return this.document.fields.find((e=>"Version"===e.type.name))}get titleData(){const e=this.document.children.find((e=>"TitleData"===e.type.name));return e?new Ie.TitleData(e):void 0}get registrationData(){const e=this.document.children.find((e=>"RegistrationData"===e.type.name));return e?new Ie.RegistrationData(e):void 0}get motorCarrierData(){const e=this.document.children.find((e=>"MotorCarrierData"===e.type.name));return e?new Ie.MotorCarrierData(e):void 0}get registrantAndVehicleData(){const e=this.document.children.find((e=>"RegistrantAndVehicleData"===e.type.name));return e?new Ie.RegistrantAndVehicleData(e):void 0}get vehicleOwnerData(){const e=this.document.children.find((e=>"VehicleOwnerData"===e.type.name));return e?new Ie.VehicleOwnerData(e):void 0}get vehicleData(){const e=this.document.children.find((e=>"VehicleData"===e.type.name));return e?new Ie.VehicleData(e):void 0}get vehicleSafetyInspectionData(){const e=this.document.children.find((e=>"VehicleSafetyInspectionData"===e.type.name));return e?new Ie.VehicleSafetyInspectionData(e):void 0}get driverLicense(){const e=this.document.children.find((e=>"DriverLicense"===e.type.name));return e?new Ie.DriverLicense(e):void 0}get idCard(){const e=this.document.children.find((e=>"IDCard"===e.type.name));return e?new Ie.IDCard(e):void 0}get enhancedDriverLicense(){const e=this.document.children.find((e=>"EnhancedDriverLicense"===e.type.name));return e?new Ie.EnhancedDriverLicense(e):void 0}get rawDocument(){const e=this.document.children.find((e=>"RawDocument"===e.type.name));return new Ie.RawDocument(e)}}Ie.DOCUMENT_TYPE="AAMVA",Ie.ISSUER_IDENTIFICATION_NUMBER_FIELD_NAME="IssuerIdentificationNumber",Ie.ISSUER_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.IssuerIdentificationNumber",Ie.JURISDICTION_VERSION_NUMBER_FIELD_NAME="JurisdictionVersionNumber",Ie.JURISDICTION_VERSION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.JurisdictionVersionNumber",Ie.VERSION_FIELD_NAME="Version",Ie.VERSION_FIELD_NAME_NORMALIZED="AAMVA.Version",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.TitleData.DOCUMENT_TYPE}get addressCity(){return this.document.fields.find((e=>"AddressCity"===e.type.name))}get addressJurisdictionCode(){return this.document.fields.find((e=>"AddressJurisdictionCode"===e.type.name))}get addressStreet(){return this.document.fields.find((e=>"AddressStreet"===e.type.name))}get addressZipCode(){return this.document.fields.find((e=>"AddressZipCode"===e.type.name))}get businessName(){return this.document.fields.find((e=>"BusinessName"===e.type.name))}get familyName(){return this.document.fields.find((e=>"FamilyName"===e.type.name))}get firstLienHolderId(){return this.document.fields.find((e=>"FirstLienHolderId"===e.type.name))}get firstLienHolderName(){return this.document.fields.find((e=>"FirstLienHolderName"===e.type.name))}get givenName(){return this.document.fields.find((e=>"GivenName"===e.type.name))}get newUsedIndicator(){return this.document.fields.find((e=>"NewUsedIndicator"===e.type.name))}get odometerDate(){return this.document.fields.find((e=>"OdometerDate"===e.type.name))}get odometerDisclosure(){return this.document.fields.find((e=>"OdometerDisclosure"===e.type.name))}get odometerReadingKilometers(){return this.document.fields.find((e=>"OdometerReadingKilometers"===e.type.name))}get odometerReadingMileage(){return this.document.fields.find((e=>"OdometerReadingMileage"===e.type.name))}get previousTitleNumber(){return this.document.fields.find((e=>"PreviousTitleNumber"===e.type.name))}get previousTitlingJurisdiction(){return this.document.fields.find((e=>"PreviousTitlingJurisdiction"===e.type.name))}get titleBrand(){return this.document.fields.find((e=>"TitleBrand"===e.type.name))}get titleIssueDate(){return this.document.fields.find((e=>"TitleIssueDate"===e.type.name))}get titleNumber(){return this.document.fields.find((e=>"TitleNumber"===e.type.name))}get titlingJurisdiction(){return this.document.fields.find((e=>"TitlingJurisdiction"===e.type.name))}get vehicleBodyStyle(){return this.document.fields.find((e=>"VehicleBodyStyle"===e.type.name))}get vehicleColor(){return this.document.fields.find((e=>"VehicleColor"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModel(){return this.document.fields.find((e=>"VehicleModel"===e.type.name))}get vehicleModelYear(){return this.document.fields.find((e=>"VehicleModelYear"===e.type.name))}get vehiclePurchaseDate(){return this.document.fields.find((e=>"VehiclePurchaseDate"===e.type.name))}}t.DOCUMENT_TYPE="TitleData",t.ADDRESS_CITY_FIELD_NAME="AddressCity",t.ADDRESS_CITY_FIELD_NAME_NORMALIZED="AAMVA.TitleData.AddressCity",t.ADDRESS_JURISDICTION_CODE_FIELD_NAME="AddressJurisdictionCode",t.ADDRESS_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.AddressJurisdictionCode",t.ADDRESS_STREET_FIELD_NAME="AddressStreet",t.ADDRESS_STREET_FIELD_NAME_NORMALIZED="AAMVA.TitleData.AddressStreet",t.ADDRESS_ZIP_CODE_FIELD_NAME="AddressZipCode",t.ADDRESS_ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.AddressZipCode",t.BUSINESS_NAME_FIELD_NAME="BusinessName",t.BUSINESS_NAME_FIELD_NAME_NORMALIZED="AAMVA.TitleData.BusinessName",t.FAMILY_NAME_FIELD_NAME="FamilyName",t.FAMILY_NAME_FIELD_NAME_NORMALIZED="AAMVA.TitleData.FamilyName",t.FIRST_LIEN_HOLDER_ID_FIELD_NAME="FirstLienHolderId",t.FIRST_LIEN_HOLDER_ID_FIELD_NAME_NORMALIZED="AAMVA.TitleData.FirstLienHolderId",t.FIRST_LIEN_HOLDER_NAME_FIELD_NAME="FirstLienHolderName",t.FIRST_LIEN_HOLDER_NAME_FIELD_NAME_NORMALIZED="AAMVA.TitleData.FirstLienHolderName",t.GIVEN_NAME_FIELD_NAME="GivenName",t.GIVEN_NAME_FIELD_NAME_NORMALIZED="AAMVA.TitleData.GivenName",t.NEW_USED_INDICATOR_FIELD_NAME="NewUsedIndicator",t.NEW_USED_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.TitleData.NewUsedIndicator",t.ODOMETER_DATE_FIELD_NAME="OdometerDate",t.ODOMETER_DATE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.OdometerDate",t.ODOMETER_DISCLOSURE_FIELD_NAME="OdometerDisclosure",t.ODOMETER_DISCLOSURE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.OdometerDisclosure",t.ODOMETER_READING_KILOMETERS_FIELD_NAME="OdometerReadingKilometers",t.ODOMETER_READING_KILOMETERS_FIELD_NAME_NORMALIZED="AAMVA.TitleData.OdometerReadingKilometers",t.ODOMETER_READING_MILEAGE_FIELD_NAME="OdometerReadingMileage",t.ODOMETER_READING_MILEAGE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.OdometerReadingMileage",t.PREVIOUS_TITLE_NUMBER_FIELD_NAME="PreviousTitleNumber",t.PREVIOUS_TITLE_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.TitleData.PreviousTitleNumber",t.PREVIOUS_TITLING_JURISDICTION_FIELD_NAME="PreviousTitlingJurisdiction",t.PREVIOUS_TITLING_JURISDICTION_FIELD_NAME_NORMALIZED="AAMVA.TitleData.PreviousTitlingJurisdiction",t.TITLE_BRAND_FIELD_NAME="TitleBrand",t.TITLE_BRAND_FIELD_NAME_NORMALIZED="AAMVA.TitleData.TitleBrand",t.TITLE_ISSUE_DATE_FIELD_NAME="TitleIssueDate",t.TITLE_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.TitleIssueDate",t.TITLE_NUMBER_FIELD_NAME="TitleNumber",t.TITLE_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.TitleData.TitleNumber",t.TITLING_JURISDICTION_FIELD_NAME="TitlingJurisdiction",t.TITLING_JURISDICTION_FIELD_NAME_NORMALIZED="AAMVA.TitleData.TitlingJurisdiction",t.VEHICLE_BODY_STYLE_FIELD_NAME="VehicleBodyStyle",t.VEHICLE_BODY_STYLE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleBodyStyle",t.VEHICLE_COLOR_FIELD_NAME="VehicleColor",t.VEHICLE_COLOR_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleColor",t.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME="VehicleIdentificationNumber",t.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleIdentificationNumber",t.VEHICLE_MAKE_FIELD_NAME="VehicleMake",t.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleMake",t.VEHICLE_MODEL_FIELD_NAME="VehicleModel",t.VEHICLE_MODEL_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleModel",t.VEHICLE_MODEL_YEAR_FIELD_NAME="VehicleModelYear",t.VEHICLE_MODEL_YEAR_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleModelYear",t.VEHICLE_PURCHASE_DATE_FIELD_NAME="VehiclePurchaseDate",t.VEHICLE_PURCHASE_DATE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehiclePurchaseDate",e.TitleData=t;class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.RegistrationData.DOCUMENT_TYPE}get addressCity(){return this.document.fields.find((e=>"AddressCity"===e.type.name))}get addressJurisdictionCode(){return this.document.fields.find((e=>"AddressJurisdictionCode"===e.type.name))}get addressStreet(){return this.document.fields.find((e=>"AddressStreet"===e.type.name))}get addressZipCode(){return this.document.fields.find((e=>"AddressZipCode"===e.type.name))}get axles(){return this.document.fields.find((e=>"Axles"===e.type.name))}get businessName(){return this.document.fields.find((e=>"BusinessName"===e.type.name))}get fuel(){return this.document.fields.find((e=>"Fuel"===e.type.name))}get grossVehicleWeight(){return this.document.fields.find((e=>"GrossVehicleWeight"===e.type.name))}get registrantFamilyName(){return this.document.fields.find((e=>"RegistrantFamilyName"===e.type.name))}get registrantGivenName(){return this.document.fields.find((e=>"RegistrantGivenName"===e.type.name))}get registrationExpiryDate(){return this.document.fields.find((e=>"RegistrationExpiryDate"===e.type.name))}get registrationIssueDate(){return this.document.fields.find((e=>"RegistrationIssueDate"===e.type.name))}get registrationPlateNumber(){return this.document.fields.find((e=>"RegistrationPlateNumber"===e.type.name))}get registrationWindowStickerDecal(){return this.document.fields.find((e=>"RegistrationWindowStickerDecal"===e.type.name))}get registrationYear(){return this.document.fields.find((e=>"RegistrationYear"===e.type.name))}get vehicleBodyStyle(){return this.document.fields.find((e=>"VehicleBodyStyle"===e.type.name))}get vehicleColor(){return this.document.fields.find((e=>"VehicleColor"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModel(){return this.document.fields.find((e=>"VehicleModel"===e.type.name))}get vehicleModelYear(){return this.document.fields.find((e=>"VehicleModelYear"===e.type.name))}get vehicleUse(){return this.document.fields.find((e=>"VehicleUse"===e.type.name))}}n.DOCUMENT_TYPE="RegistrationData",n.ADDRESS_CITY_FIELD_NAME="AddressCity",n.ADDRESS_CITY_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.AddressCity",n.ADDRESS_JURISDICTION_CODE_FIELD_NAME="AddressJurisdictionCode",n.ADDRESS_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.AddressJurisdictionCode",n.ADDRESS_STREET_FIELD_NAME="AddressStreet",n.ADDRESS_STREET_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.AddressStreet",n.ADDRESS_ZIP_CODE_FIELD_NAME="AddressZipCode",n.ADDRESS_ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.AddressZipCode",n.AXLES_FIELD_NAME="Axles",n.AXLES_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.Axles",n.BUSINESS_NAME_FIELD_NAME="BusinessName",n.BUSINESS_NAME_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.BusinessName",n.FUEL_FIELD_NAME="Fuel",n.FUEL_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.Fuel",n.GROSS_VEHICLE_WEIGHT_FIELD_NAME="GrossVehicleWeight",n.GROSS_VEHICLE_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.GrossVehicleWeight",n.REGISTRANT_FAMILY_NAME_FIELD_NAME="RegistrantFamilyName",n.REGISTRANT_FAMILY_NAME_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrantFamilyName",n.REGISTRANT_GIVEN_NAME_FIELD_NAME="RegistrantGivenName",n.REGISTRANT_GIVEN_NAME_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrantGivenName",n.REGISTRATION_EXPIRY_DATE_FIELD_NAME="RegistrationExpiryDate",n.REGISTRATION_EXPIRY_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationExpiryDate",n.REGISTRATION_ISSUE_DATE_FIELD_NAME="RegistrationIssueDate",n.REGISTRATION_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationIssueDate",n.REGISTRATION_PLATE_NUMBER_FIELD_NAME="RegistrationPlateNumber",n.REGISTRATION_PLATE_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationPlateNumber",n.REGISTRATION_WINDOW_STICKER_DECAL_FIELD_NAME="RegistrationWindowStickerDecal",n.REGISTRATION_WINDOW_STICKER_DECAL_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationWindowStickerDecal",n.REGISTRATION_YEAR_FIELD_NAME="RegistrationYear",n.REGISTRATION_YEAR_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationYear",n.VEHICLE_BODY_STYLE_FIELD_NAME="VehicleBodyStyle",n.VEHICLE_BODY_STYLE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleBodyStyle",n.VEHICLE_COLOR_FIELD_NAME="VehicleColor",n.VEHICLE_COLOR_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleColor",n.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME="VehicleIdentificationNumber",n.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleIdentificationNumber",n.VEHICLE_MAKE_FIELD_NAME="VehicleMake",n.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleMake",n.VEHICLE_MODEL_FIELD_NAME="VehicleModel",n.VEHICLE_MODEL_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleModel",n.VEHICLE_MODEL_YEAR_FIELD_NAME="VehicleModelYear",n.VEHICLE_MODEL_YEAR_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleModelYear",n.VEHICLE_USE_FIELD_NAME="VehicleUse",n.VEHICLE_USE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleUse",e.RegistrationData=n;class i{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.MotorCarrierData.DOCUMENT_TYPE}get carrierName(){return this.document.fields.find((e=>"CarrierName"===e.type.name))}get city(){return this.document.fields.find((e=>"City"===e.type.name))}get jurisdiction(){return this.document.fields.find((e=>"Jurisdiction"===e.type.name))}get streetAddress(){return this.document.fields.find((e=>"StreetAddress"===e.type.name))}get usdotNumber(){return this.document.fields.find((e=>"USDOTNumber"===e.type.name))}get zip(){return this.document.fields.find((e=>"Zip"===e.type.name))}}i.DOCUMENT_TYPE="MotorCarrierData",i.CARRIER_NAME_FIELD_NAME="CarrierName",i.CARRIER_NAME_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.CarrierName",i.CITY_FIELD_NAME="City",i.CITY_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.City",i.JURISDICTION_FIELD_NAME="Jurisdiction",i.JURISDICTION_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.Jurisdiction",i.STREET_ADDRESS_FIELD_NAME="StreetAddress",i.STREET_ADDRESS_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.StreetAddress",i.USDOT_NUMBER_FIELD_NAME="USDOTNumber",i.USDOT_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.USDOTNumber",i.ZIP_FIELD_NAME="Zip",i.ZIP_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.Zip",e.MotorCarrierData=i;class r{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.RegistrantAndVehicleData.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get baseJurisdictionRegisteredWeight(){return this.document.fields.find((e=>"BaseJurisdictionRegisteredWeight"===e.type.name))}get carrierNameRegistrant(){return this.document.fields.find((e=>"CarrierNameRegistrant"===e.type.name))}get city(){return this.document.fields.find((e=>"City"===e.type.name))}get grossVehicleWeight(){return this.document.fields.find((e=>"GrossVehicleWeight"===e.type.name))}get jurisdiction(){return this.document.fields.find((e=>"Jurisdiction"===e.type.name))}get modelYear(){return this.document.fields.find((e=>"ModelYear"===e.type.name))}get numberOfSeats(){return this.document.fields.find((e=>"NumberOfSeats"===e.type.name))}get registrationDecalNumber(){return this.document.fields.find((e=>"RegistrationDecalNumber"===e.type.name))}get registrationEnforcementDate(){return this.document.fields.find((e=>"RegistrationEnforcementDate"===e.type.name))}get registrationExpirationDate(){return this.document.fields.find((e=>"RegistrationExpirationDate"===e.type.name))}get registrationIssueDate(){return this.document.fields.find((e=>"RegistrationIssueDate"===e.type.name))}get registrationPlateNumber(){return this.document.fields.find((e=>"RegistrationPlateNumber"===e.type.name))}get registrationYear(){return this.document.fields.find((e=>"RegistrationYear"===e.type.name))}get typeOfVehicle(){return this.document.fields.find((e=>"TypeOfVehicle"===e.type.name))}get unitNumber(){return this.document.fields.find((e=>"UnitNumber"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get zipCode(){return this.document.fields.find((e=>"ZipCode"===e.type.name))}}r.DOCUMENT_TYPE="RegistrantAndVehicleData",r.ADDRESS_FIELD_NAME="Address",r.ADDRESS_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.Address",r.BASE_JURISDICTION_REGISTERED_WEIGHT_FIELD_NAME="BaseJurisdictionRegisteredWeight",r.BASE_JURISDICTION_REGISTERED_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.BaseJurisdictionRegisteredWeight",r.CARRIER_NAME_REGISTRANT_FIELD_NAME="CarrierNameRegistrant",r.CARRIER_NAME_REGISTRANT_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.CarrierNameRegistrant",r.CITY_FIELD_NAME="City",r.CITY_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.City",r.GROSS_VEHICLE_WEIGHT_FIELD_NAME="GrossVehicleWeight",r.GROSS_VEHICLE_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.GrossVehicleWeight",r.JURISDICTION_FIELD_NAME="Jurisdiction",r.JURISDICTION_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.Jurisdiction",r.MODEL_YEAR_FIELD_NAME="ModelYear",r.MODEL_YEAR_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.ModelYear",r.NUMBER_OF_SEATS_FIELD_NAME="NumberOfSeats",r.NUMBER_OF_SEATS_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.NumberOfSeats",r.REGISTRATION_DECAL_NUMBER_FIELD_NAME="RegistrationDecalNumber",r.REGISTRATION_DECAL_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationDecalNumber",r.REGISTRATION_ENFORCEMENT_DATE_FIELD_NAME="RegistrationEnforcementDate",r.REGISTRATION_ENFORCEMENT_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationEnforcementDate",r.REGISTRATION_EXPIRATION_DATE_FIELD_NAME="RegistrationExpirationDate",r.REGISTRATION_EXPIRATION_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationExpirationDate",r.REGISTRATION_ISSUE_DATE_FIELD_NAME="RegistrationIssueDate",r.REGISTRATION_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationIssueDate",r.REGISTRATION_PLATE_NUMBER_FIELD_NAME="RegistrationPlateNumber",r.REGISTRATION_PLATE_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationPlateNumber",r.REGISTRATION_YEAR_FIELD_NAME="RegistrationYear",r.REGISTRATION_YEAR_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationYear",r.TYPE_OF_VEHICLE_FIELD_NAME="TypeOfVehicle",r.TYPE_OF_VEHICLE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.TypeOfVehicle",r.UNIT_NUMBER_FIELD_NAME="UnitNumber",r.UNIT_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.UnitNumber",r.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME="VehicleIdentificationNumber",r.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.VehicleIdentificationNumber",r.VEHICLE_MAKE_FIELD_NAME="VehicleMake",r.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.VehicleMake",r.ZIP_CODE_FIELD_NAME="ZipCode",r.ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.ZipCode",e.RegistrantAndVehicleData=r;class o{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.VehicleOwnerData.DOCUMENT_TYPE}get firstOwnerIdNumber(){return this.document.fields.find((e=>"FirstOwnerIdNumber"===e.type.name))}get firstOwnerLastName(){return this.document.fields.find((e=>"FirstOwnerLastName"===e.type.name))}get firstOwnerLegalStatus(){return this.document.fields.find((e=>"FirstOwnerLegalStatus"===e.type.name))}get firstOwnerMiddleName(){return this.document.fields.find((e=>"FirstOwnerMiddleName"===e.type.name))}get firstOwnerName(){return this.document.fields.find((e=>"FirstOwnerName"===e.type.name))}get firstOwnerTotalName(){return this.document.fields.find((e=>"FirstOwnerTotalName"===e.type.name))}get mailingAddress1(){return this.document.fields.find((e=>"MailingAddress1"===e.type.name))}get mailingAddress2(){return this.document.fields.find((e=>"MailingAddress2"===e.type.name))}get mailingCity(){return this.document.fields.find((e=>"MailingCity"===e.type.name))}get mailingJurisdictionCode(){return this.document.fields.find((e=>"MailingJurisdictionCode"===e.type.name))}get mailingZipCode(){return this.document.fields.find((e=>"MailingZipCode"===e.type.name))}get residenceAddress1(){return this.document.fields.find((e=>"ResidenceAddress1"===e.type.name))}get residenceAddress2(){return this.document.fields.find((e=>"ResidenceAddress2"===e.type.name))}get residenceCity(){return this.document.fields.find((e=>"ResidenceCity"===e.type.name))}get residenceJurisdictionCode(){return this.document.fields.find((e=>"ResidenceJurisdictionCode"===e.type.name))}get residenceZipCode(){return this.document.fields.find((e=>"ResidenceZipCode"===e.type.name))}get secondOwnerIdNumber(){return this.document.fields.find((e=>"SecondOwnerIdNumber"===e.type.name))}get secondOwnerLastName(){return this.document.fields.find((e=>"SecondOwnerLastName"===e.type.name))}get secondOwnerLegalStatus(){return this.document.fields.find((e=>"SecondOwnerLegalStatus"===e.type.name))}get secondOwnerMiddleName(){return this.document.fields.find((e=>"SecondOwnerMiddleName"===e.type.name))}get secondOwnerName(){return this.document.fields.find((e=>"SecondOwnerName"===e.type.name))}get secondOwnerTotalName(){return this.document.fields.find((e=>"SecondOwnerTotalName"===e.type.name))}}o.DOCUMENT_TYPE="VehicleOwnerData",o.FIRST_OWNER_ID_NUMBER_FIELD_NAME="FirstOwnerIdNumber",o.FIRST_OWNER_ID_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerIdNumber",o.FIRST_OWNER_LAST_NAME_FIELD_NAME="FirstOwnerLastName",o.FIRST_OWNER_LAST_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerLastName",o.FIRST_OWNER_LEGAL_STATUS_FIELD_NAME="FirstOwnerLegalStatus",o.FIRST_OWNER_LEGAL_STATUS_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerLegalStatus",o.FIRST_OWNER_MIDDLE_NAME_FIELD_NAME="FirstOwnerMiddleName",o.FIRST_OWNER_MIDDLE_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerMiddleName",o.FIRST_OWNER_NAME_FIELD_NAME="FirstOwnerName",o.FIRST_OWNER_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerName",o.FIRST_OWNER_TOTAL_NAME_FIELD_NAME="FirstOwnerTotalName",o.FIRST_OWNER_TOTAL_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerTotalName",o.MAILING_ADDRESS_1_FIELD_NAME="MailingAddress1",o.MAILING_ADDRESS_1_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingAddress1",o.MAILING_ADDRESS_2_FIELD_NAME="MailingAddress2",o.MAILING_ADDRESS_2_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingAddress2",o.MAILING_CITY_FIELD_NAME="MailingCity",o.MAILING_CITY_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingCity",o.MAILING_JURISDICTION_CODE_FIELD_NAME="MailingJurisdictionCode",o.MAILING_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingJurisdictionCode",o.MAILING_ZIP_CODE_FIELD_NAME="MailingZipCode",o.MAILING_ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingZipCode",o.RESIDENCE_ADDRESS_1_FIELD_NAME="ResidenceAddress1",o.RESIDENCE_ADDRESS_1_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceAddress1",o.RESIDENCE_ADDRESS_2_FIELD_NAME="ResidenceAddress2",o.RESIDENCE_ADDRESS_2_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceAddress2",o.RESIDENCE_CITY_FIELD_NAME="ResidenceCity",o.RESIDENCE_CITY_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceCity",o.RESIDENCE_JURISDICTION_CODE_FIELD_NAME="ResidenceJurisdictionCode",o.RESIDENCE_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceJurisdictionCode",o.RESIDENCE_ZIP_CODE_FIELD_NAME="ResidenceZipCode",o.RESIDENCE_ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceZipCode",o.SECOND_OWNER_ID_NUMBER_FIELD_NAME="SecondOwnerIdNumber",o.SECOND_OWNER_ID_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerIdNumber",o.SECOND_OWNER_LAST_NAME_FIELD_NAME="SecondOwnerLastName",o.SECOND_OWNER_LAST_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerLastName",o.SECOND_OWNER_LEGAL_STATUS_FIELD_NAME="SecondOwnerLegalStatus",o.SECOND_OWNER_LEGAL_STATUS_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerLegalStatus",o.SECOND_OWNER_MIDDLE_NAME_FIELD_NAME="SecondOwnerMiddleName",o.SECOND_OWNER_MIDDLE_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerMiddleName",o.SECOND_OWNER_NAME_FIELD_NAME="SecondOwnerName",o.SECOND_OWNER_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerName",o.SECOND_OWNER_TOTAL_NAME_FIELD_NAME="SecondOwnerTotalName",o.SECOND_OWNER_TOTAL_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerTotalName",e.VehicleOwnerData=o;class a{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.VehicleData.DOCUMENT_TYPE}get bodyStyle(){return this.document.fields.find((e=>"BodyStyle"===e.type.name))}get dateJunked(){return this.document.fields.find((e=>"DateJunked"===e.type.name))}get dateRecovered(){return this.document.fields.find((e=>"DateRecovered"===e.type.name))}get dateStolen(){return this.document.fields.find((e=>"DateStolen"===e.type.name))}get engineDisplacement(){return this.document.fields.find((e=>"EngineDisplacement"===e.type.name))}get engineSize(){return this.document.fields.find((e=>"EngineSize"===e.type.name))}get fuelType(){return this.document.fields.find((e=>"FuelType"===e.type.name))}get horsepower(){return this.document.fields.find((e=>"Horsepower"===e.type.name))}get iftaIndicator(){return this.document.fields.find((e=>"IFTAIndicator"===e.type.name))}get irpIndicator(){return this.document.fields.find((e=>"IRPIndicator"===e.type.name))}get junkedIndicator(){return this.document.fields.find((e=>"JunkedIndicator"===e.type.name))}get msrp(){return this.document.fields.find((e=>"MSRP"===e.type.name))}get majorCode(){return this.document.fields.find((e=>"MajorCode"===e.type.name))}get makeYear(){return this.document.fields.find((e=>"MakeYear"===e.type.name))}get manufactureGrossWeight(){return this.document.fields.find((e=>"ManufactureGrossWeight"===e.type.name))}get minorCode(){return this.document.fields.find((e=>"MinorCode"===e.type.name))}get numberOfAxles(){return this.document.fields.find((e=>"NumberOfAxles"===e.type.name))}get numberOfCylinders(){return this.document.fields.find((e=>"NumberOfCylinders"===e.type.name))}get numberOfDoors(){return this.document.fields.find((e=>"NumberOfDoors"===e.type.name))}get stolenIndicator(){return this.document.fields.find((e=>"StolenIndicator"===e.type.name))}get transmissionCode(){return this.document.fields.find((e=>"TransmissionCode"===e.type.name))}get unladenWeight(){return this.document.fields.find((e=>"UnladenWeight"===e.type.name))}get vltClacFromDate(){return this.document.fields.find((e=>"VLTClacFromDate"===e.type.name))}get vehicleIdNumber(){return this.document.fields.find((e=>"VehicleIdNumber"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModel(){return this.document.fields.find((e=>"VehicleModel"===e.type.name))}get vehicleStatusCode(){return this.document.fields.find((e=>"VehicleStatusCode"===e.type.name))}get vehicleTypeCode(){return this.document.fields.find((e=>"VehicleTypeCode"===e.type.name))}}a.DOCUMENT_TYPE="VehicleData",a.BODY_STYLE_FIELD_NAME="BodyStyle",a.BODY_STYLE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.BodyStyle",a.DATE_JUNKED_FIELD_NAME="DateJunked",a.DATE_JUNKED_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.DateJunked",a.DATE_RECOVERED_FIELD_NAME="DateRecovered",a.DATE_RECOVERED_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.DateRecovered",a.DATE_STOLEN_FIELD_NAME="DateStolen",a.DATE_STOLEN_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.DateStolen",a.ENGINE_DISPLACEMENT_FIELD_NAME="EngineDisplacement",a.ENGINE_DISPLACEMENT_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.EngineDisplacement",a.ENGINE_SIZE_FIELD_NAME="EngineSize",a.ENGINE_SIZE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.EngineSize",a.FUEL_TYPE_FIELD_NAME="FuelType",a.FUEL_TYPE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.FuelType",a.HORSEPOWER_FIELD_NAME="Horsepower",a.HORSEPOWER_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.Horsepower",a.IFTA_INDICATOR_FIELD_NAME="IFTAIndicator",a.IFTA_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.IFTAIndicator",a.IRP_INDICATOR_FIELD_NAME="IRPIndicator",a.IRP_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.IRPIndicator",a.JUNKED_INDICATOR_FIELD_NAME="JunkedIndicator",a.JUNKED_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.JunkedIndicator",a.MSRP_FIELD_NAME="MSRP",a.MSRP_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.MSRP",a.MAJOR_CODE_FIELD_NAME="MajorCode",a.MAJOR_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.MajorCode",a.MAKE_YEAR_FIELD_NAME="MakeYear",a.MAKE_YEAR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.MakeYear",a.MANUFACTURE_GROSS_WEIGHT_FIELD_NAME="ManufactureGrossWeight",a.MANUFACTURE_GROSS_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.ManufactureGrossWeight",a.MINOR_CODE_FIELD_NAME="MinorCode",a.MINOR_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.MinorCode",a.NUMBER_OF_AXLES_FIELD_NAME="NumberOfAxles",a.NUMBER_OF_AXLES_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.NumberOfAxles",a.NUMBER_OF_CYLINDERS_FIELD_NAME="NumberOfCylinders",a.NUMBER_OF_CYLINDERS_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.NumberOfCylinders",a.NUMBER_OF_DOORS_FIELD_NAME="NumberOfDoors",a.NUMBER_OF_DOORS_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.NumberOfDoors",a.STOLEN_INDICATOR_FIELD_NAME="StolenIndicator",a.STOLEN_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.StolenIndicator",a.TRANSMISSION_CODE_FIELD_NAME="TransmissionCode",a.TRANSMISSION_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.TransmissionCode",a.UNLADEN_WEIGHT_FIELD_NAME="UnladenWeight",a.UNLADEN_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.UnladenWeight",a.VLT_CLAC_FROM_DATE_FIELD_NAME="VLTClacFromDate",a.VLT_CLAC_FROM_DATE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VLTClacFromDate",a.VEHICLE_ID_NUMBER_FIELD_NAME="VehicleIdNumber",a.VEHICLE_ID_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleIdNumber",a.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME="VehicleIdentificationNumber",a.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleIdentificationNumber",a.VEHICLE_MAKE_FIELD_NAME="VehicleMake",a.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleMake",a.VEHICLE_MODEL_FIELD_NAME="VehicleModel",a.VEHICLE_MODEL_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleModel",a.VEHICLE_STATUS_CODE_FIELD_NAME="VehicleStatusCode",a.VEHICLE_STATUS_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleStatusCode",a.VEHICLE_TYPE_CODE_FIELD_NAME="VehicleTypeCode",a.VEHICLE_TYPE_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleTypeCode",e.VehicleData=a;class s{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.VehicleSafetyInspectionData.DOCUMENT_TYPE}get inspectionAddress(){return this.document.fields.find((e=>"InspectionAddress"===e.type.name))}get inspectionAirPollutionDeviceConditions(){return this.document.fields.find((e=>"InspectionAirPollutionDeviceConditions"===e.type.name))}get inspectionFacilityIdentifier(){return this.document.fields.find((e=>"InspectionFacilityIdentifier"===e.type.name))}get inspectionFormOrStickerNumberCurrent(){return this.document.fields.find((e=>"InspectionFormOrStickerNumberCurrent"===e.type.name))}get inspectionFormOrStickerNumberPrevious(){return this.document.fields.find((e=>"InspectionFormOrStickerNumberPrevious"===e.type.name))}get inspectionSmogCertificateIndicator(){return this.document.fields.find((e=>"InspectionSmogCertificateIndicator"===e.type.name))}get inspectionStationNumber(){return this.document.fields.find((e=>"InspectionStationNumber"===e.type.name))}get inspectorIdentificationNumber(){return this.document.fields.find((e=>"InspectorIdentificationNumber"===e.type.name))}get odometerReadingAtInspection(){return this.document.fields.find((e=>"OdometerReadingAtInspection"===e.type.name))}get vehicleBodyType(){return this.document.fields.find((e=>"VehicleBodyType"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModelYear(){return this.document.fields.find((e=>"VehicleModelYear"===e.type.name))}}s.DOCUMENT_TYPE="VehicleSafetyInspectionData",s.INSPECTION_ADDRESS_FIELD_NAME="InspectionAddress",s.INSPECTION_ADDRESS_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionAddress",s.INSPECTION_AIR_POLLUTION_DEVICE_CONDITIONS_FIELD_NAME="InspectionAirPollutionDeviceConditions",s.INSPECTION_AIR_POLLUTION_DEVICE_CONDITIONS_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionAirPollutionDeviceConditions",s.INSPECTION_FACILITY_IDENTIFIER_FIELD_NAME="InspectionFacilityIdentifier",s.INSPECTION_FACILITY_IDENTIFIER_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionFacilityIdentifier",s.INSPECTION_FORM_OR_STICKER_NUMBER_CURRENT_FIELD_NAME="InspectionFormOrStickerNumberCurrent",s.INSPECTION_FORM_OR_STICKER_NUMBER_CURRENT_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionFormOrStickerNumberCurrent",s.INSPECTION_FORM_OR_STICKER_NUMBER_PREVIOUS_FIELD_NAME="InspectionFormOrStickerNumberPrevious",s.INSPECTION_FORM_OR_STICKER_NUMBER_PREVIOUS_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionFormOrStickerNumberPrevious",s.INSPECTION_SMOG_CERTIFICATE_INDICATOR_FIELD_NAME="InspectionSmogCertificateIndicator",s.INSPECTION_SMOG_CERTIFICATE_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionSmogCertificateIndicator",s.INSPECTION_STATION_NUMBER_FIELD_NAME="InspectionStationNumber",s.INSPECTION_STATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionStationNumber",s.INSPECTOR_IDENTIFICATION_NUMBER_FIELD_NAME="InspectorIdentificationNumber",s.INSPECTOR_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectorIdentificationNumber",s.ODOMETER_READING_AT_INSPECTION_FIELD_NAME="OdometerReadingAtInspection",s.ODOMETER_READING_AT_INSPECTION_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.OdometerReadingAtInspection",s.VEHICLE_BODY_TYPE_FIELD_NAME="VehicleBodyType",s.VEHICLE_BODY_TYPE_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.VehicleBodyType",s.VEHICLE_MAKE_FIELD_NAME="VehicleMake",s.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.VehicleMake",s.VEHICLE_MODEL_YEAR_FIELD_NAME="VehicleModelYear",s.VEHICLE_MODEL_YEAR_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.VehicleModelYear",e.VehicleSafetyInspectionData=s;class c{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get addressCity(){return this.document.fields.find((e=>"AddressCity"===e.type.name))}get addressJurisdictionCode(){return this.document.fields.find((e=>"AddressJurisdictionCode"===e.type.name))}get addressPostalCode(){return this.document.fields.find((e=>"AddressPostalCode"===e.type.name))}get addressStreet1(){return this.document.fields.find((e=>"AddressStreet1"===e.type.name))}get addressStreet2(){return this.document.fields.find((e=>"AddressStreet2"===e.type.name))}get adultInformation(){return this.document.fields.find((e=>"AdultInformation"===e.type.name))}get aliasFamilyName(){return this.document.fields.find((e=>"AliasFamilyName"===e.type.name))}get aliasGivenName(){return this.document.fields.find((e=>"AliasGivenName"===e.type.name))}get aliasMiddleName(){return this.document.fields.find((e=>"AliasMiddleName"===e.type.name))}get aliasPrefixName(){return this.document.fields.find((e=>"AliasPrefixName"===e.type.name))}get aliasSuffixName(){return this.document.fields.find((e=>"AliasSuffixName"===e.type.name))}get cardRevisionDate(){return this.document.fields.find((e=>"CardRevisionDate"===e.type.name))}get complianceType(){return this.document.fields.find((e=>"ComplianceType"===e.type.name))}get countryIdentification(){return this.document.fields.find((e=>"CountryIdentification"===e.type.name))}get customerFamilyName(){return this.document.fields.find((e=>"CustomerFamilyName"===e.type.name))}get customerFirstName(){return this.document.fields.find((e=>"CustomerFirstName"===e.type.name))}get customerGivenNames(){return this.document.fields.find((e=>"CustomerGivenNames"===e.type.name))}get customerIdNumber(){return this.document.fields.find((e=>"CustomerIdNumber"===e.type.name))}get customerMiddleName(){return this.document.fields.find((e=>"CustomerMiddleName"===e.type.name))}get dateOfBirth(){return this.document.fields.find((e=>"DateOfBirth"===e.type.name))}get documentDiscriminator(){return this.document.fields.find((e=>"DocumentDiscriminator"===e.type.name))}get documentExpirationDate(){return this.document.fields.find((e=>"DocumentExpirationDate"===e.type.name))}get documentIssueDate(){return this.document.fields.find((e=>"DocumentIssueDate"===e.type.name))}get driverAliasDateOfBirthField(){return this.document.fields.find((e=>"DriverAliasDateOfBirthField"===e.type.name))}get driverAliasFirstName(){return this.document.fields.find((e=>"DriverAliasFirstName"===e.type.name))}get driverAliasLastName(){return this.document.fields.find((e=>"DriverAliasLastName"===e.type.name))}get driverAliasSocialSecurityNumber(){return this.document.fields.find((e=>"DriverAliasSocialSecurityNumber"===e.type.name))}get driverLastName(){return this.document.fields.find((e=>"DriverLastName"===e.type.name))}get driverLicenseClassificationCode(){return this.document.fields.find((e=>"DriverLicenseClassificationCode"===e.type.name))}get driverLicenseEndorsementsCode(){return this.document.fields.find((e=>"DriverLicenseEndorsementsCode"===e.type.name))}get driverLicenseName(){return this.document.fields.find((e=>"DriverLicenseName"===e.type.name))}get driverLicenseRestrictionCode(){return this.document.fields.find((e=>"DriverLicenseRestrictionCode"===e.type.name))}get driverNamePrefix(){return this.document.fields.find((e=>"DriverNamePrefix"===e.type.name))}get driverNameSuffix(){return this.document.fields.find((e=>"DriverNameSuffix"===e.type.name))}get driverPermitClassificationCode(){return this.document.fields.find((e=>"DriverPermitClassificationCode"===e.type.name))}get driverPermitEndorsementCode(){return this.document.fields.find((e=>"DriverPermitEndorsementCode"===e.type.name))}get driverPermitIssueDate(){return this.document.fields.find((e=>"DriverPermitIssueDate"===e.type.name))}get driverPermitRestrictionCode(){return this.document.fields.find((e=>"DriverPermitRestrictionCode"===e.type.name))}get driverResidenceCity(){return this.document.fields.find((e=>"DriverResidenceCity"===e.type.name))}get driverResidenceJurisdictionCode(){return this.document.fields.find((e=>"DriverResidenceJurisdictionCode"===e.type.name))}get driverResidencePostalCode(){return this.document.fields.find((e=>"DriverResidencePostalCode"===e.type.name))}get driverResidenceStreetAddress1(){return this.document.fields.find((e=>"DriverResidenceStreetAddress1"===e.type.name))}get driverResidenceStreetAddress2(){return this.document.fields.find((e=>"DriverResidenceStreetAddress2"===e.type.name))}get familyNameTruncation(){return this.document.fields.find((e=>"FamilyNameTruncation"===e.type.name))}get federalCommercialVehicleCodes(){return this.document.fields.find((e=>"FederalCommercialVehicleCodes"===e.type.name))}get firstNameTruncation(){return this.document.fields.find((e=>"FirstNameTruncation"===e.type.name))}get hazmatEndorsementExpirationDate(){return this.document.fields.find((e=>"HAZMATEndorsementExpirationDate"===e.type.name))}get hairColor(){return this.document.fields.find((e=>"HairColor"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get inventoryControlNumber(){return this.document.fields.find((e=>"InventoryControlNumber"===e.type.name))}get issueTimeStamp(){return this.document.fields.find((e=>"IssueTimeStamp"===e.type.name))}get jurisdictionSpecificEndorsementCodeDescription(){return this.document.fields.find((e=>"JurisdictionSpecificEndorsementCodeDescription"===e.type.name))}get jurisdictionSpecificEndorsementCodes(){return this.document.fields.find((e=>"JurisdictionSpecificEndorsementCodes"===e.type.name))}get jurisdictionSpecificRestrictionCodeDescription(){return this.document.fields.find((e=>"JurisdictionSpecificRestrictionCodeDescription"===e.type.name))}get jurisdictionSpecificRestrictionCodes(){return this.document.fields.find((e=>"JurisdictionSpecificRestrictionCodes"===e.type.name))}get jurisdictionSpecificVehicleClass(){return this.document.fields.find((e=>"JurisdictionSpecificVehicleClass"===e.type.name))}get jurisdictionSpecificVehicleClassificationDescription(){return this.document.fields.find((e=>"JurisdictionSpecificVehicleClassificationDescription"===e.type.name))}get limitedDurationDocumentIndicator(){return this.document.fields.find((e=>"LimitedDurationDocumentIndicator"===e.type.name))}get middleNameTruncation(){return this.document.fields.find((e=>"MiddleNameTruncation"===e.type.name))}get nameSuffix(){return this.document.fields.find((e=>"NameSuffix"===e.type.name))}get nonResidentIndicator(){return this.document.fields.find((e=>"NonResidentIndicator"===e.type.name))}get numberOfDuplicates(){return this.document.fields.find((e=>"NumberOfDuplicates"===e.type.name))}get organDonor(){return this.document.fields.find((e=>"OrganDonor"===e.type.name))}get organDonorIndicator(){return this.document.fields.find((e=>"OrganDonorIndicator"===e.type.name))}get permitExpirationDate(){return this.document.fields.find((e=>"PermitExpirationDate"===e.type.name))}get permitIdentifier(){return this.document.fields.find((e=>"PermitIdentifier"===e.type.name))}get physicalDescriptionEyeColor(){return this.document.fields.find((e=>"PhysicalDescriptionEyeColor"===e.type.name))}get physicalDescriptionHeight(){return this.document.fields.find((e=>"PhysicalDescriptionHeight"===e.type.name))}get physicalDescriptionSex(){return this.document.fields.find((e=>"PhysicalDescriptionSex"===e.type.name))}get physicalDescriptionWeightRange(){return this.document.fields.find((e=>"PhysicalDescriptionWeightRange"===e.type.name))}get placeOfBirth(){return this.document.fields.find((e=>"PlaceOfBirth"===e.type.name))}get raceEthnicity(){return this.document.fields.find((e=>"RaceEthnicity"===e.type.name))}get socialSecurityNumber(){return this.document.fields.find((e=>"SocialSecurityNumber"===e.type.name))}get standardEndorsementCode(){return this.document.fields.find((e=>"StandardEndorsementCode"===e.type.name))}get standardRestrictionCode(){return this.document.fields.find((e=>"StandardRestrictionCode"===e.type.name))}get standardVehicleClassification(){return this.document.fields.find((e=>"StandardVehicleClassification"===e.type.name))}get under18Until(){return this.document.fields.find((e=>"Under18Until"===e.type.name))}get under19Until(){return this.document.fields.find((e=>"Under19Until"===e.type.name))}get under21Until(){return this.document.fields.find((e=>"Under21Until"===e.type.name))}get uniqueCustomerIdentifier(){return this.document.fields.find((e=>"UniqueCustomerIdentifier"===e.type.name))}get veteranIndicator(){return this.document.fields.find((e=>"VeteranIndicator"===e.type.name))}get weightKilograms(){return this.document.fields.find((e=>"WeightKilograms"===e.type.name))}get weightPounds(){return this.document.fields.find((e=>"WeightPounds"===e.type.name))}}c.ADDRESS_CITY_FIELD_NAME="AddressCity",c.ADDRESS_CITY_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressCity",c.ADDRESS_JURISDICTION_CODE_FIELD_NAME="AddressJurisdictionCode",c.ADDRESS_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressJurisdictionCode",c.ADDRESS_POSTAL_CODE_FIELD_NAME="AddressPostalCode",c.ADDRESS_POSTAL_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressPostalCode",c.ADDRESS_STREET_1_FIELD_NAME="AddressStreet1",c.ADDRESS_STREET_1_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressStreet1",c.ADDRESS_STREET_2_FIELD_NAME="AddressStreet2",c.ADDRESS_STREET_2_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressStreet2",c.ADULT_INFORMATION_FIELD_NAME="AdultInformation",c.ADULT_INFORMATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.AdultInformation",c.ALIAS_FAMILY_NAME_FIELD_NAME="AliasFamilyName",c.ALIAS_FAMILY_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasFamilyName",c.ALIAS_GIVEN_NAME_FIELD_NAME="AliasGivenName",c.ALIAS_GIVEN_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasGivenName",c.ALIAS_MIDDLE_NAME_FIELD_NAME="AliasMiddleName",c.ALIAS_MIDDLE_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasMiddleName",c.ALIAS_PREFIX_NAME_FIELD_NAME="AliasPrefixName",c.ALIAS_PREFIX_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasPrefixName",c.ALIAS_SUFFIX_NAME_FIELD_NAME="AliasSuffixName",c.ALIAS_SUFFIX_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasSuffixName",c.CARD_REVISION_DATE_FIELD_NAME="CardRevisionDate",c.CARD_REVISION_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.CardRevisionDate",c.COMPLIANCE_TYPE_FIELD_NAME="ComplianceType",c.COMPLIANCE_TYPE_FIELD_NAME_NORMALIZED="AAMVA.DLID.ComplianceType",c.COUNTRY_IDENTIFICATION_FIELD_NAME="CountryIdentification",c.COUNTRY_IDENTIFICATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.CountryIdentification",c.CUSTOMER_FAMILY_NAME_FIELD_NAME="CustomerFamilyName",c.CUSTOMER_FAMILY_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerFamilyName",c.CUSTOMER_FIRST_NAME_FIELD_NAME="CustomerFirstName",c.CUSTOMER_FIRST_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerFirstName",c.CUSTOMER_GIVEN_NAMES_FIELD_NAME="CustomerGivenNames",c.CUSTOMER_GIVEN_NAMES_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerGivenNames",c.CUSTOMER_ID_NUMBER_FIELD_NAME="CustomerIdNumber",c.CUSTOMER_ID_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerIdNumber",c.CUSTOMER_MIDDLE_NAME_FIELD_NAME="CustomerMiddleName",c.CUSTOMER_MIDDLE_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerMiddleName",c.DATE_OF_BIRTH_FIELD_NAME="DateOfBirth",c.DATE_OF_BIRTH_FIELD_NAME_NORMALIZED="AAMVA.DLID.DateOfBirth",c.DOCUMENT_DISCRIMINATOR_FIELD_NAME="DocumentDiscriminator",c.DOCUMENT_DISCRIMINATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.DocumentDiscriminator",c.DOCUMENT_EXPIRATION_DATE_FIELD_NAME="DocumentExpirationDate",c.DOCUMENT_EXPIRATION_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DocumentExpirationDate",c.DOCUMENT_ISSUE_DATE_FIELD_NAME="DocumentIssueDate",c.DOCUMENT_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DocumentIssueDate",c.DRIVER_ALIAS_DATE_OF_BIRTH_FIELD_FIELD_NAME="DriverAliasDateOfBirthField",c.DRIVER_ALIAS_DATE_OF_BIRTH_FIELD_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverAliasDateOfBirthField",c.DRIVER_ALIAS_FIRST_NAME_FIELD_NAME="DriverAliasFirstName",c.DRIVER_ALIAS_FIRST_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverAliasFirstName",c.DRIVER_ALIAS_LAST_NAME_FIELD_NAME="DriverAliasLastName",c.DRIVER_ALIAS_LAST_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverAliasLastName",c.DRIVER_ALIAS_SOCIAL_SECURITY_NUMBER_FIELD_NAME="DriverAliasSocialSecurityNumber",c.DRIVER_ALIAS_SOCIAL_SECURITY_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverAliasSocialSecurityNumber",c.DRIVER_LAST_NAME_FIELD_NAME="DriverLastName",c.DRIVER_LAST_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLastName",c.DRIVER_LICENSE_CLASSIFICATION_CODE_FIELD_NAME="DriverLicenseClassificationCode",c.DRIVER_LICENSE_CLASSIFICATION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLicenseClassificationCode",c.DRIVER_LICENSE_ENDORSEMENTS_CODE_FIELD_NAME="DriverLicenseEndorsementsCode",c.DRIVER_LICENSE_ENDORSEMENTS_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLicenseEndorsementsCode",c.DRIVER_LICENSE_NAME_FIELD_NAME="DriverLicenseName",c.DRIVER_LICENSE_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLicenseName",c.DRIVER_LICENSE_RESTRICTION_CODE_FIELD_NAME="DriverLicenseRestrictionCode",c.DRIVER_LICENSE_RESTRICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLicenseRestrictionCode",c.DRIVER_NAME_PREFIX_FIELD_NAME="DriverNamePrefix",c.DRIVER_NAME_PREFIX_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverNamePrefix",c.DRIVER_NAME_SUFFIX_FIELD_NAME="DriverNameSuffix",c.DRIVER_NAME_SUFFIX_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverNameSuffix",c.DRIVER_PERMIT_CLASSIFICATION_CODE_FIELD_NAME="DriverPermitClassificationCode",c.DRIVER_PERMIT_CLASSIFICATION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverPermitClassificationCode",c.DRIVER_PERMIT_ENDORSEMENT_CODE_FIELD_NAME="DriverPermitEndorsementCode",c.DRIVER_PERMIT_ENDORSEMENT_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverPermitEndorsementCode",c.DRIVER_PERMIT_ISSUE_DATE_FIELD_NAME="DriverPermitIssueDate",c.DRIVER_PERMIT_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverPermitIssueDate",c.DRIVER_PERMIT_RESTRICTION_CODE_FIELD_NAME="DriverPermitRestrictionCode",c.DRIVER_PERMIT_RESTRICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverPermitRestrictionCode",c.DRIVER_RESIDENCE_CITY_FIELD_NAME="DriverResidenceCity",c.DRIVER_RESIDENCE_CITY_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidenceCity",c.DRIVER_RESIDENCE_JURISDICTION_CODE_FIELD_NAME="DriverResidenceJurisdictionCode",c.DRIVER_RESIDENCE_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidenceJurisdictionCode",c.DRIVER_RESIDENCE_POSTAL_CODE_FIELD_NAME="DriverResidencePostalCode",c.DRIVER_RESIDENCE_POSTAL_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidencePostalCode",c.DRIVER_RESIDENCE_STREET_ADDRESS_1_FIELD_NAME="DriverResidenceStreetAddress1",c.DRIVER_RESIDENCE_STREET_ADDRESS_1_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidenceStreetAddress1",c.DRIVER_RESIDENCE_STREET_ADDRESS_2_FIELD_NAME="DriverResidenceStreetAddress2",c.DRIVER_RESIDENCE_STREET_ADDRESS_2_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidenceStreetAddress2",c.FAMILY_NAME_TRUNCATION_FIELD_NAME="FamilyNameTruncation",c.FAMILY_NAME_TRUNCATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.FamilyNameTruncation",c.FEDERAL_COMMERCIAL_VEHICLE_CODES_FIELD_NAME="FederalCommercialVehicleCodes",c.FEDERAL_COMMERCIAL_VEHICLE_CODES_FIELD_NAME_NORMALIZED="AAMVA.DLID.FederalCommercialVehicleCodes",c.FIRST_NAME_TRUNCATION_FIELD_NAME="FirstNameTruncation",c.FIRST_NAME_TRUNCATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.FirstNameTruncation",c.HAZMAT_ENDORSEMENT_EXPIRATION_DATE_FIELD_NAME="HAZMATEndorsementExpirationDate",c.HAZMAT_ENDORSEMENT_EXPIRATION_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.HAZMATEndorsementExpirationDate",c.HAIR_COLOR_FIELD_NAME="HairColor",c.HAIR_COLOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.HairColor",c.HEIGHT_FIELD_NAME="Height",c.HEIGHT_FIELD_NAME_NORMALIZED="AAMVA.DLID.Height",c.INVENTORY_CONTROL_NUMBER_FIELD_NAME="InventoryControlNumber",c.INVENTORY_CONTROL_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.DLID.InventoryControlNumber",c.ISSUE_TIME_STAMP_FIELD_NAME="IssueTimeStamp",c.ISSUE_TIME_STAMP_FIELD_NAME_NORMALIZED="AAMVA.DLID.IssueTimeStamp",c.JURISDICTION_SPECIFIC_ENDORSEMENT_CODE_DESCRIPTION_FIELD_NAME="JurisdictionSpecificEndorsementCodeDescription",c.JURISDICTION_SPECIFIC_ENDORSEMENT_CODE_DESCRIPTION_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificEndorsementCodeDescription",c.JURISDICTION_SPECIFIC_ENDORSEMENT_CODES_FIELD_NAME="JurisdictionSpecificEndorsementCodes",c.JURISDICTION_SPECIFIC_ENDORSEMENT_CODES_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificEndorsementCodes",c.JURISDICTION_SPECIFIC_RESTRICTION_CODE_DESCRIPTION_FIELD_NAME="JurisdictionSpecificRestrictionCodeDescription",c.JURISDICTION_SPECIFIC_RESTRICTION_CODE_DESCRIPTION_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificRestrictionCodeDescription",c.JURISDICTION_SPECIFIC_RESTRICTION_CODES_FIELD_NAME="JurisdictionSpecificRestrictionCodes",c.JURISDICTION_SPECIFIC_RESTRICTION_CODES_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificRestrictionCodes",c.JURISDICTION_SPECIFIC_VEHICLE_CLASS_FIELD_NAME="JurisdictionSpecificVehicleClass",c.JURISDICTION_SPECIFIC_VEHICLE_CLASS_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificVehicleClass",c.JURISDICTION_SPECIFIC_VEHICLE_CLASSIFICATION_DESCRIPTION_FIELD_NAME="JurisdictionSpecificVehicleClassificationDescription",c.JURISDICTION_SPECIFIC_VEHICLE_CLASSIFICATION_DESCRIPTION_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificVehicleClassificationDescription",c.LIMITED_DURATION_DOCUMENT_INDICATOR_FIELD_NAME="LimitedDurationDocumentIndicator",c.LIMITED_DURATION_DOCUMENT_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.LimitedDurationDocumentIndicator",c.MIDDLE_NAME_TRUNCATION_FIELD_NAME="MiddleNameTruncation",c.MIDDLE_NAME_TRUNCATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.MiddleNameTruncation",c.NAME_SUFFIX_FIELD_NAME="NameSuffix",c.NAME_SUFFIX_FIELD_NAME_NORMALIZED="AAMVA.DLID.NameSuffix",c.NON_RESIDENT_INDICATOR_FIELD_NAME="NonResidentIndicator",c.NON_RESIDENT_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.NonResidentIndicator",c.NUMBER_OF_DUPLICATES_FIELD_NAME="NumberOfDuplicates",c.NUMBER_OF_DUPLICATES_FIELD_NAME_NORMALIZED="AAMVA.DLID.NumberOfDuplicates",c.ORGAN_DONOR_FIELD_NAME="OrganDonor",c.ORGAN_DONOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.OrganDonor",c.ORGAN_DONOR_INDICATOR_FIELD_NAME="OrganDonorIndicator",c.ORGAN_DONOR_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.OrganDonorIndicator",c.PERMIT_EXPIRATION_DATE_FIELD_NAME="PermitExpirationDate",c.PERMIT_EXPIRATION_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.PermitExpirationDate",c.PERMIT_IDENTIFIER_FIELD_NAME="PermitIdentifier",c.PERMIT_IDENTIFIER_FIELD_NAME_NORMALIZED="AAMVA.DLID.PermitIdentifier",c.PHYSICAL_DESCRIPTION_EYE_COLOR_FIELD_NAME="PhysicalDescriptionEyeColor",c.PHYSICAL_DESCRIPTION_EYE_COLOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.PhysicalDescriptionEyeColor",c.PHYSICAL_DESCRIPTION_HEIGHT_FIELD_NAME="PhysicalDescriptionHeight",c.PHYSICAL_DESCRIPTION_HEIGHT_FIELD_NAME_NORMALIZED="AAMVA.DLID.PhysicalDescriptionHeight",c.PHYSICAL_DESCRIPTION_SEX_FIELD_NAME="PhysicalDescriptionSex",c.PHYSICAL_DESCRIPTION_SEX_FIELD_NAME_NORMALIZED="AAMVA.DLID.PhysicalDescriptionSex",c.PHYSICAL_DESCRIPTION_WEIGHT_RANGE_FIELD_NAME="PhysicalDescriptionWeightRange",c.PHYSICAL_DESCRIPTION_WEIGHT_RANGE_FIELD_NAME_NORMALIZED="AAMVA.DLID.PhysicalDescriptionWeightRange",c.PLACE_OF_BIRTH_FIELD_NAME="PlaceOfBirth",c.PLACE_OF_BIRTH_FIELD_NAME_NORMALIZED="AAMVA.DLID.PlaceOfBirth",c.RACE_ETHNICITY_FIELD_NAME="RaceEthnicity",c.RACE_ETHNICITY_FIELD_NAME_NORMALIZED="AAMVA.DLID.RaceEthnicity",c.SOCIAL_SECURITY_NUMBER_FIELD_NAME="SocialSecurityNumber",c.SOCIAL_SECURITY_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.DLID.SocialSecurityNumber",c.STANDARD_ENDORSEMENT_CODE_FIELD_NAME="StandardEndorsementCode",c.STANDARD_ENDORSEMENT_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.StandardEndorsementCode",c.STANDARD_RESTRICTION_CODE_FIELD_NAME="StandardRestrictionCode",c.STANDARD_RESTRICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.StandardRestrictionCode",c.STANDARD_VEHICLE_CLASSIFICATION_FIELD_NAME="StandardVehicleClassification",c.STANDARD_VEHICLE_CLASSIFICATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.StandardVehicleClassification",c.UNDER_18_UNTIL_FIELD_NAME="Under18Until",c.UNDER_18_UNTIL_FIELD_NAME_NORMALIZED="AAMVA.DLID.Under18Until",c.UNDER_19_UNTIL_FIELD_NAME="Under19Until",c.UNDER_19_UNTIL_FIELD_NAME_NORMALIZED="AAMVA.DLID.Under19Until",c.UNDER_21_UNTIL_FIELD_NAME="Under21Until",c.UNDER_21_UNTIL_FIELD_NAME_NORMALIZED="AAMVA.DLID.Under21Until",c.UNIQUE_CUSTOMER_IDENTIFIER_FIELD_NAME="UniqueCustomerIdentifier",c.UNIQUE_CUSTOMER_IDENTIFIER_FIELD_NAME_NORMALIZED="AAMVA.DLID.UniqueCustomerIdentifier",c.VETERAN_INDICATOR_FIELD_NAME="VeteranIndicator",c.VETERAN_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.VeteranIndicator",c.WEIGHT_KILOGRAMS_FIELD_NAME="WeightKilograms",c.WEIGHT_KILOGRAMS_FIELD_NAME_NORMALIZED="AAMVA.DLID.WeightKilograms",c.WEIGHT_POUNDS_FIELD_NAME="WeightPounds",c.WEIGHT_POUNDS_FIELD_NAME_NORMALIZED="AAMVA.DLID.WeightPounds",e.DLID=c;class l extends c{constructor(e){super(e)}requiredDocumentType(){return e.DriverLicense.DOCUMENT_TYPE}}l.DOCUMENT_TYPE="DriverLicense",e.DriverLicense=l;class u extends c{constructor(e){super(e)}requiredDocumentType(){return e.IDCard.DOCUMENT_TYPE}}u.DOCUMENT_TYPE="IDCard",e.IDCard=u;class d extends c{constructor(e){super(e)}requiredDocumentType(){return e.EnhancedDriverLicense.DOCUMENT_TYPE}}d.DOCUMENT_TYPE="EnhancedDriverLicense",e.EnhancedDriverLicense=d;class m{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.RawDocument.DOCUMENT_TYPE}}m.DOCUMENT_TYPE="RawDocument",e.RawDocument=m}(Ie||(Ie={}));class ve{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ve.DOCUMENT_TYPE}get dateOfManufacture(){return this.document.fields.find((e=>"DateOfManufacture"===e.type.name))}get expiryDateDay(){return this.document.fields.find((e=>"ExpiryDateDay"===e.type.name))}get expiryDateHour(){return this.document.fields.find((e=>"ExpiryDateHour"===e.type.name))}get expiryDateJulianDay(){return this.document.fields.find((e=>"ExpiryDateJulianDay"===e.type.name))}get expiryDateMonth(){return this.document.fields.find((e=>"ExpiryDateMonth"===e.type.name))}get expiryDateYear(){return this.document.fields.find((e=>"ExpiryDateYear"===e.type.name))}get hasPrimaryData(){return this.document.fields.find((e=>"HasPrimaryData"===e.type.name))}get hasSecondaryData(){return this.document.fields.find((e=>"HasSecondaryData"===e.type.name))}get labelerIdentificationCode(){return this.document.fields.find((e=>"LabelerIdentificationCode"===e.type.name))}get labelersProductOrCatalogNumber(){return this.document.fields.find((e=>"LabelersProductOrCatalogNumber"===e.type.name))}get linkCharacter(){return this.document.fields.find((e=>"LinkCharacter"===e.type.name))}get lotNumber(){return this.document.fields.find((e=>"LotNumber"===e.type.name))}get quantity(){return this.document.fields.find((e=>"Quantity"===e.type.name))}get serialNumber(){return this.document.fields.find((e=>"SerialNumber"===e.type.name))}get unitOfMeasureID(){return this.document.fields.find((e=>"UnitOfMeasureID"===e.type.name))}}ve.DOCUMENT_TYPE="HIBC",ve.DATE_OF_MANUFACTURE_FIELD_NAME="DateOfManufacture",ve.DATE_OF_MANUFACTURE_FIELD_NAME_NORMALIZED="HIBC.DateOfManufacture",ve.EXPIRY_DATE_DAY_FIELD_NAME="ExpiryDateDay",ve.EXPIRY_DATE_DAY_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateDay",ve.EXPIRY_DATE_HOUR_FIELD_NAME="ExpiryDateHour",ve.EXPIRY_DATE_HOUR_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateHour",ve.EXPIRY_DATE_JULIAN_DAY_FIELD_NAME="ExpiryDateJulianDay",ve.EXPIRY_DATE_JULIAN_DAY_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateJulianDay",ve.EXPIRY_DATE_MONTH_FIELD_NAME="ExpiryDateMonth",ve.EXPIRY_DATE_MONTH_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateMonth",ve.EXPIRY_DATE_YEAR_FIELD_NAME="ExpiryDateYear",ve.EXPIRY_DATE_YEAR_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateYear",ve.HAS_PRIMARY_DATA_FIELD_NAME="HasPrimaryData",ve.HAS_PRIMARY_DATA_FIELD_NAME_NORMALIZED="HIBC.HasPrimaryData",ve.HAS_SECONDARY_DATA_FIELD_NAME="HasSecondaryData",ve.HAS_SECONDARY_DATA_FIELD_NAME_NORMALIZED="HIBC.HasSecondaryData",ve.LABELER_IDENTIFICATION_CODE_FIELD_NAME="LabelerIdentificationCode",ve.LABELER_IDENTIFICATION_CODE_FIELD_NAME_NORMALIZED="HIBC.LabelerIdentificationCode",ve.LABELERS_PRODUCT_OR_CATALOG_NUMBER_FIELD_NAME="LabelersProductOrCatalogNumber",ve.LABELERS_PRODUCT_OR_CATALOG_NUMBER_FIELD_NAME_NORMALIZED="HIBC.LabelersProductOrCatalogNumber",ve.LINK_CHARACTER_FIELD_NAME="LinkCharacter",ve.LINK_CHARACTER_FIELD_NAME_NORMALIZED="HIBC.LinkCharacter",ve.LOT_NUMBER_FIELD_NAME="LotNumber",ve.LOT_NUMBER_FIELD_NAME_NORMALIZED="HIBC.LotNumber",ve.QUANTITY_FIELD_NAME="Quantity",ve.QUANTITY_FIELD_NAME_NORMALIZED="HIBC.Quantity",ve.SERIAL_NUMBER_FIELD_NAME="SerialNumber",ve.SERIAL_NUMBER_FIELD_NAME_NORMALIZED="HIBC.SerialNumber",ve.UNIT_OF_MEASURE_ID_FIELD_NAME="UnitOfMeasureID",ve.UNIT_OF_MEASURE_ID_FIELD_NAME_NORMALIZED="HIBC.UnitOfMeasureID";class Ne{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get fontType(){return this.document.fields.find((e=>"FontType"===e.type.name))}get rawString(){return this.document.fields.find((e=>"RawString"===e.type.name))}}Ne.FONT_TYPE_FIELD_NAME="FontType",Ne.FONT_TYPE_FIELD_NAME_NORMALIZED="Check.FontType",Ne.RAW_STRING_FIELD_NAME="RawString",Ne.RAW_STRING_FIELD_NAME_NORMALIZED="Check.RawString";class Se extends Ne{constructor(e){super(e)}requiredDocumentType(){return Se.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get auxiliaryOnUs(){return this.document.fields.find((e=>"AuxiliaryOnUs"===e.type.name))}get checkNumber(){return this.document.fields.find((e=>"CheckNumber"===e.type.name))}get transitNumber(){return this.document.fields.find((e=>"TransitNumber"===e.type.name))}}Se.DOCUMENT_TYPE="USACheck",Se.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",Se.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="USACheck.AccountNumber",Se.AUXILIARY_ON_US_FIELD_NAME="AuxiliaryOnUs",Se.AUXILIARY_ON_US_FIELD_NAME_NORMALIZED="USACheck.AuxiliaryOnUs",Se.CHECK_NUMBER_FIELD_NAME="CheckNumber",Se.CHECK_NUMBER_FIELD_NAME_NORMALIZED="USACheck.CheckNumber",Se.TRANSIT_NUMBER_FIELD_NAME="TransitNumber",Se.TRANSIT_NUMBER_FIELD_NAME_NORMALIZED="USACheck.TransitNumber";class be extends Ne{constructor(e){super(e)}requiredDocumentType(){return be.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get routingNumber(){return this.document.fields.find((e=>"RoutingNumber"===e.type.name))}}be.DOCUMENT_TYPE="UAECheck",be.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",be.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="UAECheck.AccountNumber",be.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",be.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="UAECheck.ChequeNumber",be.ROUTING_NUMBER_FIELD_NAME="RoutingNumber",be.ROUTING_NUMBER_FIELD_NAME_NORMALIZED="UAECheck.RoutingNumber";class Me extends Ne{constructor(e){super(e)}requiredDocumentType(){return Me.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get routingNumber(){return this.document.fields.find((e=>"RoutingNumber"===e.type.name))}}Me.DOCUMENT_TYPE="FRACheck",Me.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",Me.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="FRACheck.AccountNumber",Me.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",Me.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="FRACheck.ChequeNumber",Me.ROUTING_NUMBER_FIELD_NAME="RoutingNumber",Me.ROUTING_NUMBER_FIELD_NAME_NORMALIZED="FRACheck.RoutingNumber";class Le extends Ne{constructor(e){super(e)}requiredDocumentType(){return Le.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get bankNumber(){return this.document.fields.find((e=>"BankNumber"===e.type.name))}get branchNumber(){return this.document.fields.find((e=>"BranchNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}}Le.DOCUMENT_TYPE="ISRCheck",Le.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",Le.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="ISRCheck.AccountNumber",Le.BANK_NUMBER_FIELD_NAME="BankNumber",Le.BANK_NUMBER_FIELD_NAME_NORMALIZED="ISRCheck.BankNumber",Le.BRANCH_NUMBER_FIELD_NAME="BranchNumber",Le.BRANCH_NUMBER_FIELD_NAME_NORMALIZED="ISRCheck.BranchNumber",Le.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",Le.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="ISRCheck.ChequeNumber";class Re extends Ne{constructor(e){super(e)}requiredDocumentType(){return Re.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get sortCode(){return this.document.fields.find((e=>"SortCode"===e.type.name))}}Re.DOCUMENT_TYPE="KWTCheck",Re.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",Re.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="KWTCheck.AccountNumber",Re.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",Re.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="KWTCheck.ChequeNumber",Re.SORT_CODE_FIELD_NAME="SortCode",Re.SORT_CODE_FIELD_NAME_NORMALIZED="KWTCheck.SortCode";class Te extends Ne{constructor(e){super(e)}requiredDocumentType(){return Te.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get auxDomestic(){return this.document.fields.find((e=>"AuxDomestic"===e.type.name))}get bsb(){return this.document.fields.find((e=>"BSB"===e.type.name))}get extraAuxDomestic(){return this.document.fields.find((e=>"ExtraAuxDomestic"===e.type.name))}get transactionCode(){return this.document.fields.find((e=>"TransactionCode"===e.type.name))}}Te.DOCUMENT_TYPE="AUSCheck",Te.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",Te.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="AUSCheck.AccountNumber",Te.AUX_DOMESTIC_FIELD_NAME="AuxDomestic",Te.AUX_DOMESTIC_FIELD_NAME_NORMALIZED="AUSCheck.AuxDomestic",Te.BSB_FIELD_NAME="BSB",Te.BSB_FIELD_NAME_NORMALIZED="AUSCheck.BSB",Te.EXTRA_AUX_DOMESTIC_FIELD_NAME="ExtraAuxDomestic",Te.EXTRA_AUX_DOMESTIC_FIELD_NAME_NORMALIZED="AUSCheck.ExtraAuxDomestic",Te.TRANSACTION_CODE_FIELD_NAME="TransactionCode",Te.TRANSACTION_CODE_FIELD_NAME_NORMALIZED="AUSCheck.TransactionCode";class Oe extends Ne{constructor(e){super(e)}requiredDocumentType(){return Oe.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get serialNumber(){return this.document.fields.find((e=>"SerialNumber"===e.type.name))}get sortNumber(){return this.document.fields.find((e=>"SortNumber"===e.type.name))}get transactionCode(){return this.document.fields.find((e=>"TransactionCode"===e.type.name))}}Oe.DOCUMENT_TYPE="INDCheck",Oe.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",Oe.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="INDCheck.AccountNumber",Oe.SERIAL_NUMBER_FIELD_NAME="SerialNumber",Oe.SERIAL_NUMBER_FIELD_NAME_NORMALIZED="INDCheck.SerialNumber",Oe.SORT_NUMBER_FIELD_NAME="SortNumber",Oe.SORT_NUMBER_FIELD_NAME_NORMALIZED="INDCheck.SortNumber",Oe.TRANSACTION_CODE_FIELD_NAME="TransactionCode",Oe.TRANSACTION_CODE_FIELD_NAME_NORMALIZED="INDCheck.TransactionCode";class we extends Ne{constructor(e){super(e)}requiredDocumentType(){return we.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get bankNumber(){return this.document.fields.find((e=>"BankNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get designationNumber(){return this.document.fields.find((e=>"DesignationNumber"===e.type.name))}get transactionCode(){return this.document.fields.find((e=>"TransactionCode"===e.type.name))}get transitNumber(){return this.document.fields.find((e=>"TransitNumber"===e.type.name))}}we.DOCUMENT_TYPE="CANCheck",we.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",we.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.AccountNumber",we.BANK_NUMBER_FIELD_NAME="BankNumber",we.BANK_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.BankNumber",we.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",we.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.ChequeNumber",we.DESIGNATION_NUMBER_FIELD_NAME="DesignationNumber",we.DESIGNATION_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.DesignationNumber",we.TRANSACTION_CODE_FIELD_NAME="TransactionCode",we.TRANSACTION_CODE_FIELD_NAME_NORMALIZED="CANCheck.TransactionCode",we.TRANSIT_NUMBER_FIELD_NAME="TransitNumber",we.TRANSIT_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.TransitNumber";class Fe extends Ne{constructor(e){super(e)}requiredDocumentType(){return Fe.DOCUMENT_TYPE}}Fe.DOCUMENT_TYPE="UnknownCheck";class Be{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Be.DOCUMENT_TYPE}get cardNumber(){return this.document.fields.find((e=>"CardNumber"===e.type.name))}get cardholderName(){return this.document.fields.find((e=>"CardholderName"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}}Be.DOCUMENT_TYPE="CreditCard",Be.CARD_NUMBER_FIELD_NAME="CardNumber",Be.CARD_NUMBER_FIELD_NAME_NORMALIZED="CreditCard.CardNumber",Be.CARDHOLDER_NAME_FIELD_NAME="CardholderName",Be.CARDHOLDER_NAME_FIELD_NAME_NORMALIZED="CreditCard.CardholderName",Be.EXPIRY_DATE_FIELD_NAME="ExpiryDate",Be.EXPIRY_DATE_FIELD_NAME_NORMALIZED="CreditCard.ExpiryDate";const Pe=["OKAY","TRIAL","OKAY_EXPIRING_SOON","FAILURE_NOT_SET","FAILURE_CORRUPTED","FAILURE_WRONG_OS","FAILURE_APP_ID_MISMATCH","FAILURE_EXPIRED","FAILURE_SERVER","FAILURE_VERSION","FAILURE_INACTIVE"];class xe{constructor(e={}){if(void 0===e.deviceId)throw new Error("deviceId must be present in constructor argument");if(this.deviceId=e.deviceId,void 0===e.errorMessage)throw new Error("errorMessage must be present in constructor argument");this.errorMessage=e.errorMessage}}class ke{constructor(e={}){if(this.devices=null,void 0===e.status)throw new Error("status must be present in constructor argument");if(this.status=e.status,void 0===e.isValid)throw new Error("isValid must be present in constructor argument");if(this.isValid=e.isValid,void 0===e.licenseStatusMessage)throw new Error("licenseStatusMessage must be present in constructor argument");if(this.licenseStatusMessage=e.licenseStatusMessage,void 0===e.expirationTimestamp)throw new Error("expirationTimestamp must be present in constructor argument");if(this.expirationTimestamp=e.expirationTimestamp,void 0===e.expirationDateString)throw new Error("expirationDateString must be present in constructor argument");if(this.expirationDateString=e.expirationDateString,void 0===e.errorMessage)throw new Error("errorMessage must be present in constructor argument");if(this.errorMessage=e.errorMessage,void 0===e.onlineLicenseCheckInProgress)throw new Error("onlineLicenseCheckInProgress must be present in constructor argument");if(this.onlineLicenseCheckInProgress=e.onlineLicenseCheckInProgress,void 0===e.license)throw new Error("license must be present in constructor argument");if(this.license=e.license,void 0!==e.devices&&(this.devices=null!=e.devices?e.devices:null),void 0===e.nextOnlineLicenseCheckInMs)throw new Error("nextOnlineLicenseCheckInMs must be present in constructor argument");if(this.nextOnlineLicenseCheckInMs=e.nextOnlineLicenseCheckInMs,void 0===e.deviceDeregistationErrors)throw new Error("deviceDeregistationErrors must be present in constructor argument");this.deviceDeregistationErrors=e.deviceDeregistationErrors.map((e=>new xe(e)))}}const Ve=["BARCODE_SCANNER","CHECK_SCANNER","CREDIT_CARD_SCANNER","IMAGE_PROCESSING","DOCUMENT_SCANNER","LICENSE_PLATE_SCANNER","MEDICAL_CERTIFICATE_SCANNER","MRZ_SCANNER","OCR","TEXT_PATTERN_SCANNER","PDF_CREATION","ID_CARD_SCANNER","DRIVER_LICENSE_SCANNER","EHIC_SCANNER","DOCUMENT_CLASSIFICATION"],Ue=["LIVE","SINGLE_SHOT","AUTO"];var Ze=n(1173),We=n(5905),He=n(1855),Ge=n(8233),ze=n(5991),Ye=n(5630),qe=n(2504),Xe=n(7049),je=n(7684),Qe=n(4480),Je=n(2177),Ke=n(930),$e=n(1427),et=n(5581),tt=n(10),nt=n(7581),it=n(3575),rt=n(718),ot=n(525),at=n(3221)},3415:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});const i=["ID","SURNAME","MAIDEN_NAME","GIVEN_NAMES","BIRTH_DATE","NATIONALITY","BIRTHPLACE","EXPIRY_DATE","EYE_COLOR","HEIGHT","ISSUE_DATE","ISSUING_AUTHORITY","ADDRESS","PSEUDONYM","MRZ","ISSUING_COUNTRY","GENDER","SIGNATURE","PHOTO","VALID_FROM_DATE","ROUTING_NUMBER","ACCOUNT_NUMBER","PLACE_OF_ISSUE","TITLE_TYPE","REMARKS","NAME","CARD_ACCESS_NUMBER","PERSONAL_ID"]},3575:(e,t,n)=>{"use strict";function i(e,t=!1){const n=[];if(t)return n;return function e(t){if(t)if(t.constructor===ImageData)n.push(t.data.buffer);else if(t.constructor===ArrayBuffer)n.push(t);else if(ArrayBuffer.isView(t))n.push(t.buffer);else if(Array.isArray(t))for(let n=0;n<t.length;++n)e(t[n]);else if("object"==typeof t)for(const n in t)t.hasOwnProperty(n)&&e(t[n])}(e),n}function r(e){return e.startsWith("http:")||e.startsWith("https:")}function o(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}function a(){if("undefined"!=typeof process&&"undefined"!=typeof process.versions&&"undefined"!=typeof process.versions.node)return!1;if(o())return!1;try{return(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))}catch(e){return!1}}function s(){try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))&&function(){if(WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,5,3,1,0,1,11,9,1,0,65,1,65,2,106,11,0])))return!0;if(!o())return!1;const e=navigator.userAgent.match(/OS (\d{1,2})_(\d{1,2})(_(\d{1,3}))?\s/);if(!e)return!1;const t=parseInt(e[1],10),n=parseInt(e[2],10);return 16===t&&n>=7||17===t}()}catch(e){return!1}}function c(e){const{allowSimd:t=!0,allowThreads:n=!0}=e||{};let i="";if(t&&s()){i+="-simd";n&&a()&&(i+="-threads")}return i}n.d(t,{Jk:()=>c,Vx:()=>r,ef:()=>i,jz:()=>a})},3618:(e,t,n)=>{"use strict";n.d(t,{AE:()=>i.AE,Bt:()=>i.Bt});var i=n(7828)},3684:(e,t,n)=>{"use strict";n.d(t,{$E:()=>s,CY:()=>d,Cz:()=>i,Ls:()=>o,ND:()=>c,Nc:()=>a,XJ:()=>h,fk:()=>u,hk:()=>p,t6:()=>m,ue:()=>l});var i,r=n(4169);class o{constructor(e={}){this.image=new a({}),this.text=new r.D7({text:"?cameraIntroDescription",color:"?sbColorOnSurface"}),void 0!==e.image&&(this.image=i.from(e.image)),void 0!==e.text&&(this.text=new r.D7(e.text))}}!function(e){e.from=function(e){const t=e._type;switch(t){case"NoIntroImage":return new a(e);case"CustomImage":return new s(e);case"ReceiptsIntroImage":return new c(e);case"MedicalCertificateIntroImage":return new l(e);case"DocumentIntroImage":return new u(e);case"CheckIntroImage":return new d(e);case"IdCardIntroImage":return new m(e);case"CreditCardIntroImage":return new h(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(i||(i={}));class a{constructor(e={}){this._type="NoIntroImage"}}class s{constructor(e={}){if(this._type="CustomImage",void 0===e.uri)throw new Error("uri must be present in constructor argument");this.uri=e.uri}}class c{constructor(e={}){this._type="ReceiptsIntroImage"}}class l{constructor(e={}){this._type="MedicalCertificateIntroImage"}}class u{constructor(e={}){this._type="DocumentIntroImage"}}class d{constructor(e={}){this._type="CheckIntroImage"}}class m{constructor(e={}){this._type="IdCardIntroImage"}}class h{constructor(e={}){this._type="CreditCardIntroImage"}}class p{constructor(e={}){this.backgroundColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.showAutomatically=!1,this.topBarDoneButton=new r.z1({visible:!0,text:"?cameraIntroDoneButton",accessibilityDescription:"?accessibilityDescriptionCameraIntroDoneButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!0,color:"?sbColorPrimary",useShadow:!1})}),this.title=new r.D7({text:"?cameraIntroTitle",color:"?sbColorOnSurface"}),this.subtitle=new r.D7({text:"?cameraIntroSubtitle",color:"?sbColorOnSurface"}),this.items=[new o({image:new u({}),text:new r.D7({text:"?cameraIntroItem1",color:"?sbColorOnSurface"})}),new o({image:new a({}),text:new r.D7({text:"?cameraIntroItem2",color:"?sbColorOnSurface"})}),new o({image:new a({}),text:new r.D7({text:"?cameraIntroItem3",color:"?sbColorOnSurface"})}),new o({image:new a({}),text:new r.D7({text:"?cameraIntroItem4",color:"?sbColorOnSurface"})})],void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.showAutomatically&&(this.showAutomatically=e.showAutomatically),void 0!==e.topBarDoneButton&&(this.topBarDoneButton=new r.z1(e.topBarDoneButton)),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.subtitle&&(this.subtitle=new r.D7(e.subtitle)),void 0!==e.items&&(this.items=e.items.map((e=>new o(e))))}}},4151:(e,t,n)=>{"use strict";n.d(t,{AG:()=>m,MD:()=>c,Ou:()=>s,Q:()=>u,bC:()=>l,zQ:()=>d});var i=n(3195),r=n(6396),o=n(525),a=n(1671);class s{constructor(e={}){if(this.format="NONE",this.isUpsideDown=!1,this.sourceImage=null,this.isGS1Message=!1,this.isGS1CompositePart=!1,this.dataBarStackSize=1,this.sizeScore=0,this.globalIndex=-1,void 0!==e.format&&(this.format=e.format),void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.rawBytes)throw new Error("rawBytes must be present in constructor argument");if(this.rawBytes=e.rawBytes,void 0===e.rawBytesEncodings)throw new Error("rawBytesEncodings must be present in constructor argument");if(this.rawBytesEncodings=e.rawBytesEncodings.map((e=>new a.tb(e))),void 0===e.structuredAppendInfo)throw new Error("structuredAppendInfo must be present in constructor argument");if(this.structuredAppendInfo=null!=e.structuredAppendInfo?new a.ux(e.structuredAppendInfo):null,void 0===e.quad)throw new Error("quad must be present in constructor argument");if(this.quad=e.quad.map((e=>({x:e.x,y:e.y}))),void 0===e.quadNormalized)throw new Error("quadNormalized must be present in constructor argument");if(this.quadNormalized=e.quadNormalized.map((e=>({x:e.x,y:e.y}))),void 0===e.extendedQuad)throw new Error("extendedQuad must be present in constructor argument");if(this.extendedQuad=e.extendedQuad.map((e=>({x:e.x,y:e.y}))),void 0===e.extendedQuadNormalized)throw new Error("extendedQuadNormalized must be present in constructor argument");if(this.extendedQuadNormalized=e.extendedQuadNormalized.map((e=>({x:e.x,y:e.y}))),void 0!==e.isUpsideDown&&(this.isUpsideDown=e.isUpsideDown),void 0!==e.sourceImage&&(this.sourceImage=null!=e.sourceImage?new o._(e.sourceImage):null),void 0===e.upcEanExtension)throw new Error("upcEanExtension must be present in constructor argument");if(this.upcEanExtension=e.upcEanExtension,void 0!==e.isGS1Message&&(this.isGS1Message=e.isGS1Message),void 0!==e.isGS1CompositePart&&(this.isGS1CompositePart=e.isGS1CompositePart),void 0!==e.dataBarStackSize&&(this.dataBarStackSize=e.dataBarStackSize),void 0!==e.sizeScore&&(this.sizeScore=e.sizeScore),void 0===e.extractedDocument)throw new Error("extractedDocument must be present in constructor argument");this.extractedDocument=null!=e.extractedDocument?new r.$G(e.extractedDocument):null,void 0!==e.globalIndex&&(this.globalIndex=e.globalIndex)}}const c=["LEGACY","NEXT_GEN_LOW_POWER","NEXT_GEN","NEXT_GEN_LOW_POWER_FAR_DISTANCE","NEXT_GEN_FAR_DISTANCE","NEXT_GEN_MAX_DISTANCE"],l=["LAST_VISIBLE","INTERPOLATE_BY_CAMERA"];class u{constructor(e={}){this.accumulationTime=500,this.removeUnconnectedResults=!0,this.method="INTERPOLATE_BY_CAMERA",void 0!==e.accumulationTime&&(this.accumulationTime=e.accumulationTime),void 0!==e.removeUnconnectedResults&&(this.removeUnconnectedResults=e.removeUnconnectedResults),void 0!==e.method&&(this.method=e.method)}}class d{constructor(e={}){this.barcodeFormatConfigurations=[new i.jj({})],this.extractedDocumentFormats=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC","BRITISH_COLUMBIA_DRIVER_LICENSE"],this.onlyAcceptDocuments=!1,this.returnBarcodeImage=!1,this.accumulationConfig=new u({}),this.optimizedForOverlays=!1,this.directAcceptanceAreaFraction=.8,this.engineMode="NEXT_GEN_LOW_POWER",this.processingMode="AUTO",void 0!==e.barcodeFormatConfigurations&&(this.barcodeFormatConfigurations=e.barcodeFormatConfigurations.map((e=>i.TG.from(e)))),void 0!==e.extractedDocumentFormats&&(this.extractedDocumentFormats=e.extractedDocumentFormats.map((e=>e))),void 0!==e.onlyAcceptDocuments&&(this.onlyAcceptDocuments=e.onlyAcceptDocuments),void 0!==e.returnBarcodeImage&&(this.returnBarcodeImage=e.returnBarcodeImage),void 0!==e.accumulationConfig&&(this.accumulationConfig=new u(e.accumulationConfig)),void 0!==e.optimizedForOverlays&&(this.optimizedForOverlays=e.optimizedForOverlays),void 0!==e.directAcceptanceAreaFraction&&(this.directAcceptanceAreaFraction=e.directAcceptanceAreaFraction),void 0!==e.engineMode&&(this.engineMode=e.engineMode),void 0!==e.processingMode&&(this.processingMode=e.processingMode)}}class m{constructor(e={}){if(void 0===e.barcodes)throw new Error("barcodes must be present in constructor argument");if(this.barcodes=e.barcodes.map((e=>new s(e))),void 0===e.success)throw new Error("success must be present in constructor argument");this.success=e.success}}},4165:(e,t,n)=>{"use strict";n.d(t,{BT:()=>c,HQ:()=>u,JA:()=>o,Of:()=>a,WO:()=>s,a7:()=>r,pY:()=>l});var i=n(4169);class r{constructor(e={}){this.visible=!0,this.deselected=new i.Kx({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),this.selected=new i.Kx({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.deselected&&(this.deselected=new i.Kx(e.deselected)),void 0!==e.selected&&(this.selected=new i.Kx(e.selected))}}const o=["DISABLED","STACKED","BELOW","ABOVE"];class a{constructor(e={}){this.imageVisible=!0,this.titleSelected=new i.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleSelected=new i.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.titleDeselected=new i.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleDeselected=new i.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.backgroundSelected=new i.Kx({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:0,cornerRadius:10}),this.backgroundDeselected=new i.Kx({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:0,cornerRadius:10}),void 0!==e.imageVisible&&(this.imageVisible=e.imageVisible),void 0!==e.titleSelected&&(this.titleSelected=new i.D7(e.titleSelected)),void 0!==e.subtitleSelected&&(this.subtitleSelected=new i.D7(e.subtitleSelected)),void 0!==e.titleDeselected&&(this.titleDeselected=new i.D7(e.titleDeselected)),void 0!==e.subtitleDeselected&&(this.subtitleDeselected=new i.D7(e.subtitleDeselected)),void 0!==e.backgroundSelected&&(this.backgroundSelected=new i.Kx(e.backgroundSelected)),void 0!==e.backgroundDeselected&&(this.backgroundDeselected=new i.Kx(e.backgroundDeselected))}}class s{constructor(e={}){this.visible=!1,this.counterBadge=new i.$l({background:new i.se({}),foregroundColor:"?sbColorOnSurface"}),this.automaticSelectionEnabled=!1,this.barcodeItemInfoPosition="DISABLED",this.polygon=new r({visible:!0,deselected:new i.Kx({}),selected:new i.Kx({})}),this.barcodeItemConfiguration=new a({imageVisible:!0,titleSelected:new i.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new i.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new i.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new i.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new i.Kx({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new i.Kx({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.counterBadge&&(this.counterBadge=new i.$l(e.counterBadge)),void 0!==e.automaticSelectionEnabled&&(this.automaticSelectionEnabled=e.automaticSelectionEnabled),void 0!==e.barcodeItemInfoPosition&&(this.barcodeItemInfoPosition=e.barcodeItemInfoPosition),void 0!==e.polygon&&(this.polygon=new r(e.polygon)),void 0!==e.barcodeItemConfiguration&&(this.barcodeItemConfiguration=new a(e.barcodeItemConfiguration))}}class c{constructor(e={}){this.visible=!0,this.partiallyScanned=new i.Kx({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.rejected=new i.Kx({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.completed=new i.Kx({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.partiallyScanned&&(this.partiallyScanned=new i.Kx(e.partiallyScanned)),void 0!==e.rejected&&(this.rejected=new i.Kx(e.rejected)),void 0!==e.completed&&(this.completed=new i.Kx(e.completed))}}class l{constructor(e={}){this.partiallyScanned=new i.$l({visible:!0,background:new i.se({strokeColor:"#FFFFFF30",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.rejected=new i.$l({visible:!0,background:new i.se({strokeColor:"#FFFFFF30",fillColor:"?sbColorNegative",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.completed=new i.$l({visible:!0,background:new i.se({strokeColor:"#FFFFFF30",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),void 0!==e.partiallyScanned&&(this.partiallyScanned=new i.$l(e.partiallyScanned)),void 0!==e.rejected&&(this.rejected=new i.$l(e.rejected)),void 0!==e.completed&&(this.completed=new i.$l(e.completed))}}class u{constructor(e={}){this.visible=!1,this.automaticSelectionEnabled=!0,this.polygon=new c({}),this.badge=new l({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.automaticSelectionEnabled&&(this.automaticSelectionEnabled=e.automaticSelectionEnabled),void 0!==e.polygon&&(this.polygon=new c(e.polygon)),void 0!==e.badge&&(this.badge=new l(e.badge))}}},4169:(e,t,n)=>{"use strict";n.d(t,{$l:()=>u,AB:()=>f,Cp:()=>g,D7:()=>r,DT:()=>p,Hx:()=>C,K0:()=>a,Kx:()=>s,X9:()=>l,cD:()=>m,es:()=>i,pO:()=>o,q:()=>E,se:()=>c,si:()=>D,tp:()=>A,vU:()=>d,z$:()=>_,z1:()=>h});class i{constructor(e={}){this.sbColorPrimary="#C8193C",this.sbColorPrimaryDisabled="#F5F5F5",this.sbColorNegative="#FF3737",this.sbColorPositive="#4EFFB4",this.sbColorWarning="#FFCE5C",this.sbColorSecondary="#FFEDEE",this.sbColorSecondaryDisabled="#F5F5F5",this.sbColorOnPrimary="#FFFFFF",this.sbColorOnSecondary="#C8193C",this.sbColorSurface="#FFFFFF",this.sbColorOutline="#EFEFEF",this.sbColorOnSurfaceVariant="#707070",this.sbColorOnSurface="#000000",this.sbColorSurfaceLow="#00000026",this.sbColorSurfaceHigh="#0000007A",this.sbColorModalOverlay="#000000A3",void 0!==e.sbColorPrimary&&(this.sbColorPrimary=e.sbColorPrimary),void 0!==e.sbColorPrimaryDisabled&&(this.sbColorPrimaryDisabled=e.sbColorPrimaryDisabled),void 0!==e.sbColorNegative&&(this.sbColorNegative=e.sbColorNegative),void 0!==e.sbColorPositive&&(this.sbColorPositive=e.sbColorPositive),void 0!==e.sbColorWarning&&(this.sbColorWarning=e.sbColorWarning),void 0!==e.sbColorSecondary&&(this.sbColorSecondary=e.sbColorSecondary),void 0!==e.sbColorSecondaryDisabled&&(this.sbColorSecondaryDisabled=e.sbColorSecondaryDisabled),void 0!==e.sbColorOnPrimary&&(this.sbColorOnPrimary=e.sbColorOnPrimary),void 0!==e.sbColorOnSecondary&&(this.sbColorOnSecondary=e.sbColorOnSecondary),void 0!==e.sbColorSurface&&(this.sbColorSurface=e.sbColorSurface),void 0!==e.sbColorOutline&&(this.sbColorOutline=e.sbColorOutline),void 0!==e.sbColorOnSurfaceVariant&&(this.sbColorOnSurfaceVariant=e.sbColorOnSurfaceVariant),void 0!==e.sbColorOnSurface&&(this.sbColorOnSurface=e.sbColorOnSurface),void 0!==e.sbColorSurfaceLow&&(this.sbColorSurfaceLow=e.sbColorSurfaceLow),void 0!==e.sbColorSurfaceHigh&&(this.sbColorSurfaceHigh=e.sbColorSurfaceHigh),void 0!==e.sbColorModalOverlay&&(this.sbColorModalOverlay=e.sbColorModalOverlay)}}class r{constructor(e={}){this.visible=!0,this.text="",this.color="#FFFFFF",this.useShadow=!1,void 0!==e.visible&&(this.visible=e.visible),void 0!==e.text&&(this.text=e.text),void 0!==e.color&&(this.color=e.color),void 0!==e.useShadow&&(this.useShadow=e.useShadow)}}class o{constructor(e={}){this.visible=!0,this.color="#FFFFFF",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.color&&(this.color=e.color)}}class a{constructor(e={}){this.visible=!0,this.color="#FFFFFF",this.accessibilityDescription="",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.color&&(this.color=e.color),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription)}}class s{constructor(e={}){this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,this.cornerRadius=0,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.fillColor&&(this.fillColor=e.fillColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class c{constructor(e={}){this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.fillColor&&(this.fillColor=e.fillColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth)}}class l{constructor(e={}){this.iconVisible=!0,this.color="#FFFFFF",this.useShadow=!1,void 0!==e.iconVisible&&(this.iconVisible=e.iconVisible),void 0!==e.color&&(this.color=e.color),void 0!==e.useShadow&&(this.useShadow=e.useShadow)}}class u{constructor(e={}){this.visible=!0,this.background=new c({}),this.foregroundColor="?sbColorOnSurface",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.background&&(this.background=new c(e.background)),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor)}}class d{constructor(e={}){this.visible=!0,this.accessibilityDescription="",this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor),void 0!==e.activeBackgroundColor&&(this.activeBackgroundColor=e.activeBackgroundColor),void 0!==e.activeForegroundColor&&(this.activeForegroundColor=e.activeForegroundColor)}}class m{constructor(e={}){this.badgeBackgroundColor="#FFFFFF",this.badgeForegroundColor="#C8193C",this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==e.badgeBackgroundColor&&(this.badgeBackgroundColor=e.badgeBackgroundColor),void 0!==e.badgeForegroundColor&&(this.badgeForegroundColor=e.badgeForegroundColor),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor),void 0!==e.activeBackgroundColor&&(this.activeBackgroundColor=e.activeBackgroundColor),void 0!==e.activeForegroundColor&&(this.activeForegroundColor=e.activeForegroundColor)}}class h{constructor(e={}){this.visible=!0,this.text="",this.accessibilityDescription="",this.background=new c({}),this.foreground=new l({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.text&&(this.text=e.text),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.background&&(this.background=new c(e.background)),void 0!==e.foreground&&(this.foreground=new l(e.foreground))}}class p{constructor(e={}){this.title=new r({}),this.accessibilityDescription="",this.icon=new o({}),void 0!==e.title&&(this.title=new r(e.title)),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.icon&&(this.icon=new o(e.icon))}}class E{constructor(e={}){this.visible=!0,this.title=new r({}),this.accessibilityDescription="",this.background=new c({}),this.icon=new o({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.title&&(this.title=new r(e.title)),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.background&&(this.background=new c(e.background)),void 0!==e.icon&&(this.icon=new o(e.icon))}}const A=["FIT_IN","FILL_IN"],g=["MODERN_BEEP","CLASSIC_BEEP"];class f{constructor(e={}){this.successBeepEnabled=!0,this.soundType="MODERN_BEEP",void 0!==e.successBeepEnabled&&(this.successBeepEnabled=e.successBeepEnabled),void 0!==e.soundType&&(this.soundType=e.soundType)}}class C{constructor(e={}){this.enabled=!1,void 0!==e.enabled&&(this.enabled=e.enabled)}}class _{constructor(e={}){this.autoCancelTimeout=0,this.initialScanDelay=0,void 0!==e.autoCancelTimeout&&(this.autoCancelTimeout=e.autoCancelTimeout),void 0!==e.initialScanDelay&&(this.initialScanDelay=e.initialScanDelay)}}class D{constructor(e={}){this.top=0,this.left=0,this.bottom=0,this.right=0,void 0!==e.top&&(this.top=e.top),void 0!==e.left&&(this.left=e.left),void 0!==e.bottom&&(this.bottom=e.bottom),void 0!==e.right&&(this.right=e.right)}}},4480:(e,t,n)=>{"use strict";n.d(t,{p:()=>a});var i=n(8667),r=n(525),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new i.Bp({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.CheckScanner.create(new i.Bp(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.CheckScanner.run(this.objectId,e);return{result:new i.fn(o.result),originalImage:new r._(o.originalImage)}}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.CheckScanner.destroy(this.objectId)}))}}},4537:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,q:()=>r});var i=n(6302);function r(e,t,n){return Math.min(Math.max(e,t),n)}function o(e,t,n){return new i.b(r(e.x,-t/2,n.width-t/2),r(e.y,-t/2,n.height-t/2))}},4730:(e,t,n)=>{"use strict";n.d(t,{Hr:()=>r});var i=n(8763);function r(e){return{render(t){(0,i.XX)(t,e)},unmount(){(0,i.xJ)(e)}}}},4751:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var i=n(6302);class r{constructor(e,t){this.width=e,this.height=t}isPortrait(){return this.height>this.width}ratio(e){return e?this.height/this.width:this.width/this.height}ratioDiff(e,t){return this.ratio(t)/e.ratio(t)}static isEmpty(e){return!e||(0===e.width||0===e.height)}static toPolygon(e){return[new i.b(0,0),new i.b(e.width,0),new i.b(e.width,e.height),new i.b(0,e.height)]}static fromHtmlElement(e){return e?new r(e.clientWidth,e.clientHeight):new r(0,0)}static fromJson(e){return new r(e.width,e.height)}static subtractFrom(e,t){return new r(e.width-t,e.height-t)}static empty(){return new r(0,0)}}},4896:(e,t,n)=>{"use strict";n.d(t,{b2:()=>r,ix:()=>o,w5:()=>a});var i=n(6396);const r=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC","BRITISH_COLUMBIA_DRIVER_LICENSE"];class o{constructor(e={}){}}!function(e){e.all=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC","BRITISH_COLUMBIA_DRIVER_LICENSE"],e.documentBarcodeFormats={AAMVA:["PDF_417"],ID_CARD_PDF_417:["PDF_417"],SEPA:["QR_CODE"],MEDICAL_CERTIFICATE:["PDF_417"],DE_MEDICAL_PLAN:["DATA_MATRIX"],BOARDING_PASS:["PDF_417","AZTEC","QR_CODE"],VCARD:["QR_CODE","DATA_MATRIX"],SWISS_QR:["QR_CODE"],GS1:["CODE_128","AZTEC","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","GS1_COMPOSITE","ITF","MICRO_PDF_417","PDF_417","QR_CODE","UPC_A","UPC_E"],HIBC:["CODE_39","CODE_128","AZTEC","DATA_MATRIX","MICRO_PDF_417","PDF_417","QR_CODE"],BRITISH_COLUMBIA_DRIVER_LICENSE:["PDF_417"]}}(o||(o={}));class a{constructor(e={}){if(void 0===e.success)throw new Error("success must be present in constructor argument");if(this.success=e.success,void 0===e.parsedDocument)throw new Error("parsedDocument must be present in constructor argument");this.parsedDocument=null!=e.parsedDocument?new i.$G(e.parsedDocument):null}}},5072:(e,t,n)=>{"use strict";var i,r=function(){return"undefined"==typeof i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var e={};return function(t){if("undefined"==typeof e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},i=[],r=0;r<e.length;r++){var o=e[r],c=t.base?o[0]+t.base:o[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=s(u),m={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(m)):a.push({identifier:u,updater:A(m,t),references:1}),i.push(u)}return i}function l(e){var t=document.createElement("style"),i=e.attributes||{};if("undefined"==typeof i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function m(e,t,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=d(t,r);else{var o=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var p=null,E=0;function A(e,t){var n,i,r;if(t.singleton){var o=E++;n=p||(p=l(t)),i=m.bind(null,n,o,!1),r=m.bind(null,n,o,!0)}else n=l(t),i=h.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var r=s(n[i]);a[r].references--}for(var o=c(e,t),l=0;l<n.length;l++){var u=s(n[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},5189:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,x2:()=>c});var i=n(8763),r=n(9476),o=n(952),a=n(5933),s=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class c extends r.A7{}class l extends r.Ib{constructor(e){super(e),this.paused=!1,Object.assign(this.state,{isFinderVisible:!0})}componentDidMount(){super.componentDidMount(),this.resumeDetection(),this.detect()}componentWillUnmount(){super.componentWillUnmount(),this.pauseDetection()}resumeDetection(){this.paused=!1}pauseDetection(){this.paused=!0}isDetectionPaused(){return this.paused}detect(){return s(this,void 0,void 0,(function*(){throw new Error("'detect' method needs to be overridden.")}))}renderView(e){var t;return i.Ay.createElement("div",{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"black",minHeight:"100px"}},this.renderSpinner(null==e?void 0:e.spinnerColor),i.Ay.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},i.Ay.createElement(a.A,{configuration:e,videoConstraints:e.videoConstraints,mirrored:e.mirrored,preferredCamera:e.preferredCamera,zoom:null!==(t=this.state.zoom)&&void 0!==t?t:e.zoom,onReady:this.onVideoReady,onError:this.onVideoError,ref:e=>{this.camera=e}})),this.state.isFinderVisible&&i.Ay.createElement(o.Ay,{ref:e=>{null!==e&&(this.finder=e)},guidanceConfiguration:e.userGuidance,configuration:e.finder}))}}},5215:(e,t,n)=>{"use strict";n.d(t,{C6:()=>r,Cl:()=>o,Tt:()=>a,fX:()=>c,zs:()=>s});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}Object.create;function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}Object.create},5218:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const r=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},5291:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AcknowledgementBottomBar:()=>H,AcknowledgementModeValues:()=>W,AcknowledgementScreenConfiguration:()=>G,ActionBarConfiguration:()=>N,AnalyticsCategory:()=>Ve,AnalyticsEvent:()=>Ue,AnalyticsEventFactory:()=>We,AnalyticsEventName:()=>Ze,AnalyticsFeature:()=>ke,ArOverlayFindAndPickConfiguration:()=>i.HQ,ArOverlayGeneralConfiguration:()=>i.WO,ArOverlayPolygonConfiguration:()=>i.a7,BackgroundStyle:()=>r.se,BadgeStyle:()=>r.$l,BadgedButton:()=>r.cD,BarButtonConfiguration:()=>r.q,BarcodeAccumulationConfiguration:()=>y.Q,BarcodeAccumulationMethodValues:()=>y.bC,BarcodeInfoMapping:()=>s,BarcodeItem:()=>y.Ou,BarcodeItemConfiguration:()=>i.Of,BarcodeItemErrorState:()=>o,BarcodeItemInfoPositionValues:()=>i.JA,BarcodeMappedData:()=>a,BarcodeScannerConfiguration:()=>y.zQ,BarcodeScannerEngineModeValues:()=>y.MD,BarcodeScannerScreenConfiguration:()=>Z,BarcodeScannerUiItem:()=>I,BarcodeScannerUiResult:()=>v,BarcodeTextLocalization:()=>D,BarcodeUseCase:()=>_,BaseViewFinderConfiguration:()=>T,BottomBarModeValues:()=>Pe,ButtonConfiguration:()=>r.z1,CameraBottomBar:()=>re,CameraConfiguration:()=>L,CameraLiveScannerResolutionValues:()=>xe,CameraModuleValues:()=>M,CameraPermissionScreen:()=>R,CameraPreviewModeValues:()=>r.tp,CameraScreenConfiguration:()=>ue,CaptureFeedback:()=>ce,CheckIntroImage:()=>K.CY,CollapsedVisibleHeightValues:()=>d,CreditCardIntroImage:()=>K.XJ,CroppingBottomBar:()=>de,CroppingScreenConfiguration:()=>me,CustomImage:()=>K.$E,DocumentAnalysisModeValues:()=>Ee,DocumentFlowAppearanceConfiguration:()=>Ie,DocumentIntroImage:()=>K.fk,DocumentPolygonConfiguration:()=>le,DocumentScannerCameraConfiguration:()=>Y,DocumentScannerOutputSettings:()=>Ae,DocumentScannerScreens:()=>De,DocumentScannerTextLocalization:()=>ye,DocumentScannerUserGuidance:()=>j,DocumentScanningFlow:()=>ve,EdgeInsets:()=>r.si,ExpectedBarcode:()=>f,Field:()=>He.D0,FieldDataFormatValues:()=>He.yJ,FieldParsedData:()=>He.YA,FieldType:()=>He.PU,FieldValidationStatusValues:()=>He.oB,FindAndPickArOverlayPolygonConfiguration:()=>i.BT,FindAndPickBadgeConfiguration:()=>i.pY,FindAndPickScanningMode:()=>C,FinderCorneredStyle:()=>B,FinderStrokedStyle:()=>P,FinderStyle:()=>O,ForegroundStyle:()=>r.X9,GenericDocument:()=>He.$G,GenericDocumentType:()=>He.Dq,IconButton:()=>r.K0,IconStyle:()=>r.pO,IconUserGuidanceConfiguration:()=>U.h,IdCardIntroImage:()=>K.t6,IntroImage:()=>K.Cz,IntroListEntry:()=>K.Ls,IntroductionScreenConfiguration:()=>K.hk,ManualCountEditDialog:()=>p,MedicalCertificateIntroImage:()=>K.ue,MrzFinderLayoutPreset:()=>Ne,MrzIntroCustomImage:()=>Re._h,MrzIntroDefaultImage:()=>Re.eE,MrzIntroNoImage:()=>Re.yv,MrzScannerIntroImage:()=>Re.FI,MrzScannerIntroScreenConfiguration:()=>Re.aT,MrzScannerScreenConfiguration:()=>we,MrzScannerScreenTextLocalization:()=>Te,MrzScannerUiResult:()=>Fe.n,MultipleBarcodesScanningModeValues:()=>l,MultipleScanningMode:()=>A,NavigationBarModeValues:()=>Be,NoButtonMode:()=>ie,NoIntroImage:()=>K.Nc,NoLayoutPreset:()=>Me,OcrResult:()=>He.S5,PagePreviewMode:()=>te,PageSnapCheckMarkAnimation:()=>ae,PageSnapFeedbackMode:()=>J,PageSnapFeedbackNone:()=>se,PageSnapFunnelAnimation:()=>oe,Palette:()=>r.es,PermanentViewFinderConfiguration:()=>F,PolygonStyle:()=>r.Kx,PopupMenuItem:()=>r.DT,PreviewButton:()=>Q,ReceiptsIntroImage:()=>K.ND,Resolution:()=>b,ReviewBottomBarConfiguration:()=>ge,ReviewMorePopupMenu:()=>fe,ReviewScreenConfiguration:()=>_e,RoundButton:()=>r.vU,ScanAssistanceOverlay:()=>ee,ScanCompletionOverlay:()=>Oe,ScanbotAlertDialog:()=>g,SelectCameraMenu:()=>x,Sheet:()=>m,SheetContent:()=>E,SheetModeValues:()=>u,ShutterButton:()=>$,SingleScanningMode:()=>c,Sound:()=>r.AB,SoundTypeValues:()=>r.Cp,StyledText:()=>r.D7,SwipeToDelete:()=>h,TextButtonMode:()=>ne,ThreeLineMrzFinderLayoutPreset:()=>be,Timeouts:()=>r.z$,TopBarConfiguration:()=>k,TopBarModeValues:()=>V,TwoLineMrzFinderLayoutPreset:()=>Se,UserGuidanceConfiguration:()=>U.q,UserGuidanceStates:()=>X,UserGuidanceVisibilityValues:()=>he,Vibration:()=>r.Hx,ViewFinderConfiguration:()=>w,ZoomOverlay:()=>Ce});var i=n(4165),r=n(4169);class o{constructor(e={}){this.title=new r.D7({text:"Connection Error!",color:"?sbColorOnSurface"}),this.subtitle=new r.D7({text:"There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",color:"?sbColorOnSurfaceVariant"}),this.retryButton=new r.z1({}),this.cancelButton=new r.z1({}),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.subtitle&&(this.subtitle=new r.D7(e.subtitle)),void 0!==e.retryButton&&(this.retryButton=new r.z1(e.retryButton)),void 0!==e.cancelButton&&(this.cancelButton=new r.z1(e.cancelButton))}}class a{constructor(e={}){if(void 0===e.title)throw new Error("title must be present in constructor argument");if(this.title=e.title,void 0===e.subtitle)throw new Error("subtitle must be present in constructor argument");if(this.subtitle=e.subtitle,void 0===e.barcodeImage)throw new Error("barcodeImage must be present in constructor argument");this.barcodeImage=e.barcodeImage}}class s{constructor(e={}){this.barcodeItemMapper=null,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.loadingMessage=new r.D7({text:"Loading message for barcode info mapping.",color:"?sbColorPrimary"}),this.errorState=new o({}),void 0!==e.barcodeItemMapper&&(this.barcodeItemMapper=null!=e.barcodeItemMapper?e.barcodeItemMapper:null),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.loadingMessage&&(this.loadingMessage=new r.D7(e.loadingMessage)),void 0!==e.errorState&&(this.errorState=new o(e.errorState))}}class c{constructor(e={}){this._type="SingleScanningMode",this.confirmationSheetEnabled=!1,this.barcodeImageVisible=!0,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.barcodeTitle=new r.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.barcodeSubtitle=new r.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.submitButton=new r.z1({visible:!0,text:"?sheetSubmitButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary"})}),this.cancelButton=new r.z1({visible:!0,text:"?singleModeConfirmationCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary"})}),this.barcodeInfoMapping=new s({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new r.D7({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new o({title:new r.D7({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new r.z1({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary"})}),cancelButton:new r.z1({text:"?barcodeInfoMappingErrorStateCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary"})})})}),this.arOverlay=new i.WO({visible:!1,counterBadge:new r.$l({visible:!0,background:new r.se({strokeColor:"#000000FF",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new i.a7({visible:!0,deselected:new r.Kx({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new r.Kx({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new i.Of({imageVisible:!0,titleSelected:new r.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new r.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new r.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new r.D7({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),backgroundSelected:new r.Kx({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new r.Kx({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==e.confirmationSheetEnabled&&(this.confirmationSheetEnabled=e.confirmationSheetEnabled),void 0!==e.barcodeImageVisible&&(this.barcodeImageVisible=e.barcodeImageVisible),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.barcodeTitle&&(this.barcodeTitle=new r.D7(e.barcodeTitle)),void 0!==e.barcodeSubtitle&&(this.barcodeSubtitle=new r.D7(e.barcodeSubtitle)),void 0!==e.submitButton&&(this.submitButton=new r.z1(e.submitButton)),void 0!==e.cancelButton&&(this.cancelButton=new r.z1(e.cancelButton)),void 0!==e.barcodeInfoMapping&&(this.barcodeInfoMapping=new s(e.barcodeInfoMapping)),void 0!==e.arOverlay&&(this.arOverlay=new i.WO(e.arOverlay))}}const l=["COUNTING","UNIQUE"],u=["BUTTON","COLLAPSED_SHEET"],d=["SMALL","LARGE"];class m{constructor(e={}){this.mode="COLLAPSED_SHEET",this.collapsedVisibleHeight="SMALL",this.listButton=new r.cD({}),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.collapsedVisibleHeight&&(this.collapsedVisibleHeight=e.collapsedVisibleHeight),void 0!==e.listButton&&(this.listButton=new r.cD(e.listButton))}}class h{constructor(e={}){this.enabled=!0,this.backgroundColor="?sbColorNegative",this.iconColor="?sbColorOnPrimary",void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.iconColor&&(this.iconColor=e.iconColor)}}class p{constructor(e={}){this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.title=new r.D7({text:"Update count",color:"?sbColorOnSurface"}),this.info=new r.D7({text:"Adjust the number of items you scanned.",color:"?sbColorOnSurfaceVariant"}),this.updateButton=new r.z1({visible:!0,text:"Update",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),this.cancelButton=new r.z1({visible:!0,text:"Cancel",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),this.clearTextButton=new r.pO({visible:!0,color:"?sbColorOnSurfaceVariant"}),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.info&&(this.info=new r.D7(e.info)),void 0!==e.updateButton&&(this.updateButton=new r.z1(e.updateButton)),void 0!==e.cancelButton&&(this.cancelButton=new r.z1(e.cancelButton)),void 0!==e.clearTextButton&&(this.clearTextButton=new r.pO(e.clearTextButton))}}class E{constructor(e={}){this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.manualCountChangeEnabled=!0,this.manualCountOutlineColor="?sbColorOutline",this.manualCountChangeColor="?sbColorPrimary",this.title=new r.D7({text:"%d items",color:"?sbColorOnSurface"}),this.clearAllButton=new r.z1({visible:!0,text:"Clear all",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.barcodeItemTitle=new r.D7({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),this.barcodeItemSubtitle=new r.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.barcodeItemImageVisible=!0,this.submitButton=new r.z1({visible:!0,text:"Submit",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.startScanningButton=new r.z1({visible:!0,text:"Start scanning",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.placeholderTitle=new r.D7({text:"No barcodes here!",color:"?sbColorOnSurface"}),this.placeholderSubtitle=new r.D7({text:"The barcode list is currently empty. Close this sheet and scan your items to add them.",color:"?sbColorOnSurfaceVariant"}),this.placeholderIconBackground="?sbColorOutline",this.placeholderIcon=new r.pO({visible:!0,color:"?sbColorOnSurface"}),this.swipeToDelete=new h({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"}),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.manualCountChangeEnabled&&(this.manualCountChangeEnabled=e.manualCountChangeEnabled),void 0!==e.manualCountOutlineColor&&(this.manualCountOutlineColor=e.manualCountOutlineColor),void 0!==e.manualCountChangeColor&&(this.manualCountChangeColor=e.manualCountChangeColor),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.clearAllButton&&(this.clearAllButton=new r.z1(e.clearAllButton)),void 0!==e.barcodeItemTitle&&(this.barcodeItemTitle=new r.D7(e.barcodeItemTitle)),void 0!==e.barcodeItemSubtitle&&(this.barcodeItemSubtitle=new r.D7(e.barcodeItemSubtitle)),void 0!==e.barcodeItemImageVisible&&(this.barcodeItemImageVisible=e.barcodeItemImageVisible),void 0!==e.submitButton&&(this.submitButton=new r.z1(e.submitButton)),void 0!==e.startScanningButton&&(this.startScanningButton=new r.z1(e.startScanningButton)),void 0!==e.placeholderTitle&&(this.placeholderTitle=new r.D7(e.placeholderTitle)),void 0!==e.placeholderSubtitle&&(this.placeholderSubtitle=new r.D7(e.placeholderSubtitle)),void 0!==e.placeholderIconBackground&&(this.placeholderIconBackground=e.placeholderIconBackground),void 0!==e.placeholderIcon&&(this.placeholderIcon=new r.pO(e.placeholderIcon)),void 0!==e.swipeToDelete&&(this.swipeToDelete=new h(e.swipeToDelete))}}class A{constructor(e={}){this._type="MultipleScanningMode",this.countingRepeatDelay=1e3,this.allowEmptySubmission=!1,this.mode="COUNTING",this.sheet=new m({mode:"COLLAPSED_SHEET",collapsedVisibleHeight:"SMALL",listButton:new r.cD({badgeBackgroundColor:"?sbColorSurface",badgeForegroundColor:"?sbColorPrimary",visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.sheetContent=new E({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",manualCountChangeEnabled:!0,manualCountOutlineColor:"?sbColorOutline",manualCountChangeColor:"?sbColorPrimary",title:new r.D7({text:"?multipleModeSheetTitle",color:"?sbColorOnSurface"}),clearAllButton:new r.z1({visible:!0,text:"?sheetClearAllButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),barcodeItemTitle:new r.D7({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),barcodeItemSubtitle:new r.D7({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),barcodeItemImageVisible:!0,submitButton:new r.z1({visible:!0,text:"?sheetSubmitButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),startScanningButton:new r.z1({visible:!0,text:"?sheetStartScanningButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),placeholderTitle:new r.D7({visible:!0,text:"?sheetPlaceholderTitle",color:"?sbColorOnSurface",useShadow:!1}),placeholderSubtitle:new r.D7({visible:!0,text:"?sheetPlaceholderSubtitle",color:"?sbColorOnSurfaceVariant",useShadow:!1}),placeholderIconBackground:"?sbColorOutline",placeholderIcon:new r.pO({visible:!0,color:"?sbColorOnSurface"}),swipeToDelete:new h({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"})}),this.manualCountEditDialog=new p({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",title:new r.D7({text:"?manualCountEditDialogTitle",color:"?sbColorOnSurface"}),info:new r.D7({text:"?manualCountEditDialogInfo",color:"?sbColorOnSurfaceVariant"}),updateButton:new r.z1({visible:!0,text:"?manualCountEditDialogUpdateButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new r.z1({visible:!0,text:"?manualCountEditDialogCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),clearTextButton:new r.pO({visible:!0,color:"?sbColorOnSurfaceVariant"})}),this.barcodeInfoMapping=new s({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new r.D7({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new o({title:new r.D7({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new r.z1({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new r.z1({visible:!0,text:"?barcodeInfoMappingErrorStateCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})})}),this.arOverlay=new i.WO({visible:!1,counterBadge:new r.$l({visible:!0,background:new r.se({strokeColor:"#FF000000",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new i.a7({visible:!0,deselected:new r.Kx({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new r.Kx({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new i.Of({imageVisible:!0,titleSelected:new r.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new r.D7({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),titleDeselected:new r.D7({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),subtitleDeselected:new r.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new r.Kx({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new r.Kx({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==e.countingRepeatDelay&&(this.countingRepeatDelay=e.countingRepeatDelay),void 0!==e.allowEmptySubmission&&(this.allowEmptySubmission=e.allowEmptySubmission),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.sheet&&(this.sheet=new m(e.sheet)),void 0!==e.sheetContent&&(this.sheetContent=new E(e.sheetContent)),void 0!==e.manualCountEditDialog&&(this.manualCountEditDialog=new p(e.manualCountEditDialog)),void 0!==e.barcodeInfoMapping&&(this.barcodeInfoMapping=new s(e.barcodeInfoMapping)),void 0!==e.arOverlay&&(this.arOverlay=new i.WO(e.arOverlay))}}class g{constructor(e={}){this.title=new r.D7({text:"Title",color:"?sbColorOnSurface"}),this.subtitle=new r.D7({text:"Standard explanation message text.",color:"?sbColorOnSurfaceVariant"}),this.sheetColor="?sbColorSurface",this.modalOverlayColor="?sbColorModalOverlay",this.dividerColor="?sbColorOutline",this.okButton=new r.z1({background:new r.se({fillColor:"?sbColorPrimary"})}),this.actionButton=new r.z1({visible:!1,background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0})}),this.cancelButton=new r.z1({visible:!0,background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0})}),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.subtitle&&(this.subtitle=new r.D7(e.subtitle)),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.okButton&&(this.okButton=new r.z1(e.okButton)),void 0!==e.actionButton&&(this.actionButton=new r.z1(e.actionButton)),void 0!==e.cancelButton&&(this.cancelButton=new r.z1(e.cancelButton))}}class f{constructor(e={}){if(this.title=null,this.image=null,this.count=1,void 0===e.barcodeValue)throw new Error("barcodeValue must be present in constructor argument");this.barcodeValue=e.barcodeValue,void 0!==e.title&&(this.title=null!=e.title?e.title:null),void 0!==e.image&&(this.image=null!=e.image?e.image:null),void 0!==e.count&&(this.count=e.count)}}class C{constructor(e={}){this._type="FindAndPickScanningMode",this.scanningCompletedColor="?sbColorPositive",this.scanningPartiallyColor="?sbColorWarning",this.scanningNotScannedColor="?sbColorOutline",this.allowPartialScan=!1,this.expectedBarcodes=[],this.countingRepeatDelay=1e3,this.sheet=new m({mode:"COLLAPSED_SHEET",collapsedVisibleHeight:"SMALL",listButton:new r.cD({badgeBackgroundColor:"?sbColorSurface",badgeForegroundColor:"?sbColorPrimary",visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.sheetContent=new E({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",manualCountChangeEnabled:!0,manualCountOutlineColor:"?sbColorOutline",manualCountChangeColor:"?sbColorPrimary",title:new r.D7({visible:!0,text:"?findAndPickSheetTitle",color:"?sbColorOnSurface",useShadow:!1}),clearAllButton:new r.z1({visible:!0,text:"?sheetResetButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),barcodeItemTitle:new r.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),barcodeItemSubtitle:new r.D7({text:"?findAndPickSheetBarcodeItemSubtitle",color:"?sbColorOnSurfaceVariant"}),barcodeItemImageVisible:!0,submitButton:new r.z1({visible:!0,text:"?sheetSubmitButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),startScanningButton:new r.z1({visible:!0,text:"?sheetStartScanningButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),placeholderTitle:new r.D7({text:"?sheetPlaceholderTitle",color:"?sbColorOnSurface"}),placeholderSubtitle:new r.D7({text:"?sheetPlaceholderSubtitle",color:"?sbColorOnSurfaceVariant"}),placeholderIconBackground:"?sbColorOutline",placeholderIcon:new r.pO({visible:!0,color:"?sbColorOnSurface"}),swipeToDelete:new h({enabled:!1,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"})}),this.manualCountEditDialog=new p({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",title:new r.D7({text:"?manualCountEditDialogTitle",color:"?sbColorOnSurface"}),info:new r.D7({text:"?manualCountEditDialogInfo",color:"?sbColorOnSurfaceVariant"}),updateButton:new r.z1({visible:!0,text:"?manualCountEditDialogUpdateButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new r.z1({visible:!0,text:"?manualCountEditDialogCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),clearTextButton:new r.pO({visible:!0,color:"?sbColorOnSurfaceVariant"})}),this.arOverlay=new i.HQ({visible:!0,automaticSelectionEnabled:!0,polygon:new i.BT({partiallyScanned:new r.Kx({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),rejected:new r.Kx({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),completed:new r.Kx({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),badge:new i.pY({partiallyScanned:new r.$l({visible:!0,background:new r.se({strokeColor:"#000000FF",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),rejected:new r.$l({visible:!0,background:new r.se({strokeColor:"#000000FF",fillColor:"?sbColorSurface",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),completed:new r.$l({visible:!0,background:new r.se({strokeColor:"#000000FF",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"})})}),this.partialScannedAlertDialogEnabled=!0,this.partialScannedAlertDialog=new g({title:new r.D7({text:"?findAndPickPartialAlertTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?findAndPickPartialAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new r.z1({visible:!0,text:"?findAndPickPartialAlertSubmitButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new r.z1({visible:!0,text:"?findAndPickPartialAlertCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),this.confirmationAlertDialogEnabled=!1,this.confirmationAlertDialog=new g({title:new r.D7({text:"?findAndPickCompleteAlertTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?findAndPickCompleteAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new r.z1({visible:!0,text:"?findAndPickCompleteAlertSubmitButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new r.z1({visible:!0,text:"?findAndPickCompleteAlertCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),void 0!==e.scanningCompletedColor&&(this.scanningCompletedColor=e.scanningCompletedColor),void 0!==e.scanningPartiallyColor&&(this.scanningPartiallyColor=e.scanningPartiallyColor),void 0!==e.scanningNotScannedColor&&(this.scanningNotScannedColor=e.scanningNotScannedColor),void 0!==e.allowPartialScan&&(this.allowPartialScan=e.allowPartialScan),void 0!==e.expectedBarcodes&&(this.expectedBarcodes=e.expectedBarcodes.map((e=>new f(e)))),void 0!==e.countingRepeatDelay&&(this.countingRepeatDelay=e.countingRepeatDelay),void 0!==e.sheet&&(this.sheet=new m(e.sheet)),void 0!==e.sheetContent&&(this.sheetContent=new E(e.sheetContent)),void 0!==e.manualCountEditDialog&&(this.manualCountEditDialog=new p(e.manualCountEditDialog)),void 0!==e.arOverlay&&(this.arOverlay=new i.HQ(e.arOverlay)),void 0!==e.partialScannedAlertDialogEnabled&&(this.partialScannedAlertDialogEnabled=e.partialScannedAlertDialogEnabled),void 0!==e.partialScannedAlertDialog&&(this.partialScannedAlertDialog=new g(e.partialScannedAlertDialog)),void 0!==e.confirmationAlertDialogEnabled&&(this.confirmationAlertDialogEnabled=e.confirmationAlertDialogEnabled),void 0!==e.confirmationAlertDialog&&(this.confirmationAlertDialog=new g(e.confirmationAlertDialog))}}var _;!function(e){e.from=function(e){const t=e._type;switch(t){case"SingleScanningMode":return new c(e);case"MultipleScanningMode":return new A(e);case"FindAndPickScanningMode":return new C(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(_||(_={}));class D{constructor(e={}){this.topBarCancelButton="Cancel",this.topBarTitle="Scan Item",this.userGuidance="Move the finder over a barcode",this.barcodeInfoMappingLoadingMessage="Loading details...",this.barcodeInfoMappingErrorStateTitle="Connection Error!",this.barcodeInfoMappingErrorStateSubtitle="There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",this.barcodeInfoMappingErrorStateRetryButton="Retry",this.barcodeInfoMappingErrorStateCancelButton="Cancel",this.manualCountEditDialogTitle="Update count",this.manualCountEditDialogInfo="Adjust the number of items you scanned.",this.manualCountEditDialogUpdateButton="Update",this.manualCountEditDialogCancelButton="Cancel",this.sheetResetButton="Reset",this.sheetClearAllButton="Clear all",this.sheetSubmitButton="Submit",this.sheetStartScanningButton="Start scanning",this.sheetPlaceholderTitle="No barcodes here!",this.sheetPlaceholderSubtitle="The barcode list is currently empty. Close this sheet and scan your items to add them.",this.singleModeConfirmationCancelButton="Close",this.multipleModeSheetTitle="%d items",this.findAndPickSheetTitle="%d/%d scanned",this.findAndPickSheetBarcodeItemSubtitle="%d/%d added",this.findAndPickPartialAlertTitle="Incomplete scan!",this.findAndPickPartialAlertSubtitle="Some codes are yet to be scanned. Proceed with submission anyway?",this.findAndPickPartialAlertCancelButton="Cancel",this.findAndPickPartialAlertSubmitButton="Yes, Submit",this.findAndPickCompleteAlertTitle="All codes found!",this.findAndPickCompleteAlertSubtitle="You have successfully scanned all codes. Proceed with submission?",this.findAndPickCompleteAlertCancelButton="Dismiss",this.accessibilityDescriptionCancelButton="Cancel",this.accessibilityDescriptionFlashButton="Toggle flash",this.accessibilityDescriptionZoomButton="Toggle camera zoom",this.accessibilityDescriptionFlipCameraButton="Flip camera",this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",this.accessibilityDescriptionCameraSelectButton="Tap to open camera selection menu",this.accessibilityDescriptionCameraSelectMenuItem="Tap to select camera",this.cameraSelectCameraMenuTitle="Select camera",void 0!==e.topBarCancelButton&&(this.topBarCancelButton=e.topBarCancelButton),void 0!==e.topBarTitle&&(this.topBarTitle=e.topBarTitle),void 0!==e.userGuidance&&(this.userGuidance=e.userGuidance),void 0!==e.barcodeInfoMappingLoadingMessage&&(this.barcodeInfoMappingLoadingMessage=e.barcodeInfoMappingLoadingMessage),void 0!==e.barcodeInfoMappingErrorStateTitle&&(this.barcodeInfoMappingErrorStateTitle=e.barcodeInfoMappingErrorStateTitle),void 0!==e.barcodeInfoMappingErrorStateSubtitle&&(this.barcodeInfoMappingErrorStateSubtitle=e.barcodeInfoMappingErrorStateSubtitle),void 0!==e.barcodeInfoMappingErrorStateRetryButton&&(this.barcodeInfoMappingErrorStateRetryButton=e.barcodeInfoMappingErrorStateRetryButton),void 0!==e.barcodeInfoMappingErrorStateCancelButton&&(this.barcodeInfoMappingErrorStateCancelButton=e.barcodeInfoMappingErrorStateCancelButton),void 0!==e.manualCountEditDialogTitle&&(this.manualCountEditDialogTitle=e.manualCountEditDialogTitle),void 0!==e.manualCountEditDialogInfo&&(this.manualCountEditDialogInfo=e.manualCountEditDialogInfo),void 0!==e.manualCountEditDialogUpdateButton&&(this.manualCountEditDialogUpdateButton=e.manualCountEditDialogUpdateButton),void 0!==e.manualCountEditDialogCancelButton&&(this.manualCountEditDialogCancelButton=e.manualCountEditDialogCancelButton),void 0!==e.sheetResetButton&&(this.sheetResetButton=e.sheetResetButton),void 0!==e.sheetClearAllButton&&(this.sheetClearAllButton=e.sheetClearAllButton),void 0!==e.sheetSubmitButton&&(this.sheetSubmitButton=e.sheetSubmitButton),void 0!==e.sheetStartScanningButton&&(this.sheetStartScanningButton=e.sheetStartScanningButton),void 0!==e.sheetPlaceholderTitle&&(this.sheetPlaceholderTitle=e.sheetPlaceholderTitle),void 0!==e.sheetPlaceholderSubtitle&&(this.sheetPlaceholderSubtitle=e.sheetPlaceholderSubtitle),void 0!==e.singleModeConfirmationCancelButton&&(this.singleModeConfirmationCancelButton=e.singleModeConfirmationCancelButton),void 0!==e.multipleModeSheetTitle&&(this.multipleModeSheetTitle=e.multipleModeSheetTitle),void 0!==e.findAndPickSheetTitle&&(this.findAndPickSheetTitle=e.findAndPickSheetTitle),void 0!==e.findAndPickSheetBarcodeItemSubtitle&&(this.findAndPickSheetBarcodeItemSubtitle=e.findAndPickSheetBarcodeItemSubtitle),void 0!==e.findAndPickPartialAlertTitle&&(this.findAndPickPartialAlertTitle=e.findAndPickPartialAlertTitle),void 0!==e.findAndPickPartialAlertSubtitle&&(this.findAndPickPartialAlertSubtitle=e.findAndPickPartialAlertSubtitle),void 0!==e.findAndPickPartialAlertCancelButton&&(this.findAndPickPartialAlertCancelButton=e.findAndPickPartialAlertCancelButton),void 0!==e.findAndPickPartialAlertSubmitButton&&(this.findAndPickPartialAlertSubmitButton=e.findAndPickPartialAlertSubmitButton),void 0!==e.findAndPickCompleteAlertTitle&&(this.findAndPickCompleteAlertTitle=e.findAndPickCompleteAlertTitle),void 0!==e.findAndPickCompleteAlertSubtitle&&(this.findAndPickCompleteAlertSubtitle=e.findAndPickCompleteAlertSubtitle),void 0!==e.findAndPickCompleteAlertCancelButton&&(this.findAndPickCompleteAlertCancelButton=e.findAndPickCompleteAlertCancelButton),void 0!==e.accessibilityDescriptionCancelButton&&(this.accessibilityDescriptionCancelButton=e.accessibilityDescriptionCancelButton),void 0!==e.accessibilityDescriptionFlashButton&&(this.accessibilityDescriptionFlashButton=e.accessibilityDescriptionFlashButton),void 0!==e.accessibilityDescriptionZoomButton&&(this.accessibilityDescriptionZoomButton=e.accessibilityDescriptionZoomButton),void 0!==e.accessibilityDescriptionFlipCameraButton&&(this.accessibilityDescriptionFlipCameraButton=e.accessibilityDescriptionFlipCameraButton),void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraSelectButton&&(this.accessibilityDescriptionCameraSelectButton=e.accessibilityDescriptionCameraSelectButton),void 0!==e.accessibilityDescriptionCameraSelectMenuItem&&(this.accessibilityDescriptionCameraSelectMenuItem=e.accessibilityDescriptionCameraSelectMenuItem),void 0!==e.cameraSelectCameraMenuTitle&&(this.cameraSelectCameraMenuTitle=e.cameraSelectCameraMenuTitle)}}var y=n(4151);class I{constructor(e={}){if(void 0===e.barcode)throw new Error("barcode must be present in constructor argument");if(this.barcode=new y.Ou(e.barcode),void 0===e.count)throw new Error("count must be present in constructor argument");this.count=e.count}}class v{constructor(e={}){this.selectedZoomFactor=1,this.items=[],void 0!==e.selectedZoomFactor&&(this.selectedZoomFactor=e.selectedZoomFactor),void 0!==e.items&&(this.items=e.items.map((e=>new I(e))))}}class N{constructor(e={}){this.flashButton=new r.vU({visible:!0,accessibilityDescription:"?accessibilityDescriptionFlashButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),this.zoomButton=new r.vU({visible:!0,accessibilityDescription:"?accessibilityDescriptionZoomButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),this.flipCameraButton=new r.vU({visible:!0,accessibilityDescription:"?accessibilityDescriptionFlipCameraButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),void 0!==e.flashButton&&(this.flashButton=new r.vU(e.flashButton)),void 0!==e.zoomButton&&(this.zoomButton=new r.vU(e.zoomButton)),void 0!==e.flipCameraButton&&(this.flipCameraButton=new r.vU(e.flipCameraButton))}}var S=n(586);class b{constructor(e={}){if(void 0===e.width)throw new Error("width must be present in constructor argument");if(this.width=e.width,void 0===e.height)throw new Error("height must be present in constructor argument");this.height=e.height}}const M=["FRONT","BACK"];class L{constructor(e={}){this.cameraModule="BACK",this.zoomSteps=[1,2,5],this.defaultZoomFactor=1,this.flashEnabled=!1,this.cameraPreviewMode="FILL_IN",this.idealPreviewResolution=new b({width:1920,height:1080}),this.fpsLimit=20,this.cameraLiveScannerResolution="FULL_HD",void 0!==e.cameraModule&&(this.cameraModule=e.cameraModule),void 0!==e.zoomSteps&&(this.zoomSteps=e.zoomSteps.map((e=>e))),void 0!==e.defaultZoomFactor&&(this.defaultZoomFactor=e.defaultZoomFactor),void 0!==e.flashEnabled&&(this.flashEnabled=e.flashEnabled),void 0!==e.cameraPreviewMode&&(this.cameraPreviewMode=e.cameraPreviewMode),void 0!==e.idealPreviewResolution&&(this.idealPreviewResolution=new b(e.idealPreviewResolution)),void 0!==e.fpsLimit&&(this.fpsLimit=e.fpsLimit),void 0!==e.cameraLiveScannerResolution&&(this.cameraLiveScannerResolution=e.cameraLiveScannerResolution)}}class R{constructor(e={}){this.background="?sbColorSurface",this.iconBackground="?sbColorOutline",this.icon=new r.pO({color:"?sbColorOnSurface"}),this.closeButton=new r.z1({text:"?cameraPermissionCloseButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary"})}),this.enableCameraTitle=new r.D7({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),this.enableCameraExplanation=new r.D7({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"}),void 0!==e.background&&(this.background=e.background),void 0!==e.iconBackground&&(this.iconBackground=e.iconBackground),void 0!==e.icon&&(this.icon=new r.pO(e.icon)),void 0!==e.closeButton&&(this.closeButton=new r.z1(e.closeButton)),void 0!==e.enableCameraTitle&&(this.enableCameraTitle=new r.D7(e.enableCameraTitle)),void 0!==e.enableCameraExplanation&&(this.enableCameraExplanation=new r.D7(e.enableCameraExplanation))}}var T,O;!function(e){e.from=function(e){const t=e._type;switch(t){case"ViewFinderConfiguration":return new w(e);case"PermanentViewFinderConfiguration":return new F(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(T||(T={}));class w{constructor(e={}){this._type="ViewFinderConfiguration",this.style=new B({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),this.overlayColor="?sbColorSurfaceLow",this.aspectRatio=new S.gl({width:1,height:1}),this.minimumInsets=new r.si({top:16,left:16,bottom:16,right:16}),this.preferredHeight=-1,this.visible=!0,void 0!==e.style&&(this.style=O.from(e.style)),void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.aspectRatio&&(this.aspectRatio=new S.gl(e.aspectRatio)),void 0!==e.minimumInsets&&(this.minimumInsets=new r.si(e.minimumInsets)),void 0!==e.preferredHeight&&(this.preferredHeight=e.preferredHeight),void 0!==e.visible&&(this.visible=e.visible)}}class F{constructor(e={}){this._type="PermanentViewFinderConfiguration",this.style=new B({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),this.overlayColor="?sbColorSurfaceLow",this.aspectRatio=new S.gl({width:1,height:1}),this.minimumInsets=new r.si({top:16,left:16,bottom:16,right:16}),this.preferredHeight=-1,void 0!==e.style&&(this.style=O.from(e.style)),void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.aspectRatio&&(this.aspectRatio=new S.gl(e.aspectRatio)),void 0!==e.minimumInsets&&(this.minimumInsets=new r.si(e.minimumInsets)),void 0!==e.preferredHeight&&(this.preferredHeight=e.preferredHeight)}}!function(e){e.from=function(e){const t=e._type;switch(t){case"FinderCorneredStyle":return new B(e);case"FinderStrokedStyle":return new P(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(O||(O={}));class B{constructor(e={}){this._type="FinderCorneredStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class P{constructor(e={}){this._type="FinderStrokedStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class x{constructor(e={}){this.button=new r.K0({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionCameraSelectButton"}),this.backgroundColor="?sbColorSurface",this.title=new r.D7({text:"?cameraSelectCameraMenuTitle",color:"?sbColorOnSurfaceVariant"}),this.dividerColor="?sbColorOutline",this.menuEntry=new r.DT({title:new r.D7({color:"?sbColorOnSurface"}),accessibilityDescription:"?accessibilityDescriptionCameraSelectMenuItem",icon:new r.pO({color:"?sbColorOnSurface"})}),this.menuEntryActive=new r.DT({title:new r.D7({color:"?sbColorPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraSelectMenuItem",icon:new r.pO({color:"?sbColorPrimary"})}),void 0!==e.button&&(this.button=new r.K0(e.button)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.menuEntry&&(this.menuEntry=new r.DT(e.menuEntry)),void 0!==e.menuEntryActive&&(this.menuEntryActive=new r.DT(e.menuEntryActive))}}class k{constructor(e={}){this.title=new r.D7({visible:!1,text:"Scan Item",color:"?sbColorOnPrimary"}),this.mode="SOLID",this.backgroundColor="?sbColorPrimary",this.cancelButton=new r.z1({text:"Cancel",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})}),this.cameraSelect=new x({}),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.cancelButton&&(this.cancelButton=new r.z1(e.cancelButton)),void 0!==e.cameraSelect&&(this.cameraSelect=new x(e.cameraSelect))}}const V=["SOLID","GRADIENT","HIDDEN"];var U=n(7771);class Z{constructor(e={}){this.version="1.0",this.screen="BarcodeScanner",this.palette=new r.es({sbColorPrimary:"#C8193C",sbColorPrimaryDisabled:"#F5F5F5",sbColorNegative:"#FF3737",sbColorPositive:"#4EFFB4",sbColorWarning:"#FFCE5C",sbColorSecondary:"#FFEDEE",sbColorSecondaryDisabled:"#F5F5F5",sbColorOnPrimary:"#FFFFFF",sbColorOnSecondary:"#C8193C",sbColorSurface:"#FFFFFF",sbColorOutline:"#EFEFEF",sbColorOnSurfaceVariant:"#707070",sbColorOnSurface:"#000000",sbColorSurfaceLow:"#00000026",sbColorSurfaceHigh:"#0000007A",sbColorModalOverlay:"#000000A3"}),this.localization=new D({}),this.backgroundColor="?sbColorSurfaceLow",this.topBar=new k({title:new r.D7({text:"?topBarTitle",color:"?sbColorOnPrimary"}),mode:"SOLID",backgroundColor:"?sbColorPrimary",cancelButton:new r.z1({visible:!0,text:"?topBarCancelButton",accessibilityDescription:"?accessibilityDescriptionCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})})}),this.actionBar=new N({flashButton:new r.vU({visible:!0,accessibilityDescription:"?accessibilityDescriptionFlashButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),zoomButton:new r.vU({visible:!0,accessibilityDescription:"?accessibilityDescriptionZoomButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),flipCameraButton:new r.vU({visible:!0,accessibilityDescription:"?accessibilityDescriptionFlipCameraButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"})}),this.viewFinder=new w({style:new B({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),overlayColor:"?sbColorSurfaceLow",aspectRatio:new S.gl({width:1,height:1}),visible:!0}),this.userGuidance=new U.q({visible:!0,title:new r.D7({text:"?userGuidance",color:"?sbColorOnPrimary"}),background:new r.se({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow",strokeWidth:0})}),this.cameraPermission=new R({background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new r.pO({visible:!0,color:"?sbColorOnSurface"}),closeButton:new r.z1({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new r.D7({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new r.D7({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.cameraConfiguration=new L({}),this.scannerConfiguration=new y.zQ({returnBarcodeImage:!0}),this.useCase=new c({}),this.sound=new r.AB({successBeepEnabled:!0,soundType:"MODERN_BEEP"}),this.vibration=new r.Hx({enabled:!0}),this.timeouts=new r.z$({autoCancelTimeout:0,initialScanDelay:0}),void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.palette&&(this.palette=new r.es(e.palette)),void 0!==e.localization&&(this.localization=new D(e.localization)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.topBar&&(this.topBar=new k(e.topBar)),void 0!==e.actionBar&&(this.actionBar=new N(e.actionBar)),void 0!==e.viewFinder&&(this.viewFinder=new w(e.viewFinder)),void 0!==e.userGuidance&&(this.userGuidance=new U.q(e.userGuidance)),void 0!==e.cameraPermission&&(this.cameraPermission=new R(e.cameraPermission)),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new L(e.cameraConfiguration)),void 0!==e.scannerConfiguration&&(this.scannerConfiguration=new y.zQ(e.scannerConfiguration)),void 0!==e.useCase&&(this.useCase=_.from(e.useCase)),void 0!==e.sound&&(this.sound=new r.AB(e.sound)),void 0!==e.vibration&&(this.vibration=new r.Hx(e.vibration)),void 0!==e.timeouts&&(this.timeouts=new r.z$(e.timeouts))}}const W=["BAD_QUALITY","ALWAYS","NONE"];class H{constructor(e={}){this.retakeButton=new r.q({title:new r.D7({text:"?acknowledgementRetakeButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionAcknowledgementRetakeButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.acceptWhenOkButton=new r.q({title:new r.D7({text:"?acknowledgementAcceptButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionAcknowledgementAcceptButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.acceptWhenNotOkButton=new r.q({title:new r.D7({text:"?acknowledgementAcceptButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionAcknowledgementAcceptButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),void 0!==e.retakeButton&&(this.retakeButton=new r.q(e.retakeButton)),void 0!==e.acceptWhenOkButton&&(this.acceptWhenOkButton=new r.q(e.acceptWhenOkButton)),void 0!==e.acceptWhenNotOkButton&&(this.acceptWhenNotOkButton=new r.q(e.acceptWhenNotOkButton))}}class G{constructor(e={}){this.topBarTitle=new r.D7({visible:!1,text:"?acknowledgementTitle",color:"?sbColorOnPrimary"}),this.minimumQuality="POOR",this.acknowledgementMode="ALWAYS",this.badImageHint=new U.h({visible:!0,icon:new r.pO({color:"?sbColorOnPrimary"}),title:new r.D7({text:"?acknowledgementScreenBadDocumentHint",color:"?sbColorOnPrimary"}),background:new r.se({strokeColor:"?sbColorNegative",fillColor:"?sbColorNegative",strokeWidth:0})}),this.backgroundColor="?sbColorOutline",this.bottomBar=new H({}),void 0!==e.topBarTitle&&(this.topBarTitle=new r.D7(e.topBarTitle)),void 0!==e.minimumQuality&&(this.minimumQuality=e.minimumQuality),void 0!==e.acknowledgementMode&&(this.acknowledgementMode=e.acknowledgementMode),void 0!==e.badImageHint&&(this.badImageHint=new U.h(e.badImageHint)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.bottomBar&&(this.bottomBar=new H(e.bottomBar))}}var z=n(681);class Y{constructor(e={}){this.cameraModule="BACK",this.autoCropOnManualSnap=!0,this.flashEnabled=!1,this.cameraPreviewMode="FILL_IN",this.idealPreviewResolution=new b({width:1920,height:1080}),this.autoSnappingSensitivity=.66,this.autoSnappingDelay=200,this.autoSnappingEnabled=!0,this.fpsLimit=20,this.cameraLiveScannerResolution="FULL_HD",this.useImageCaptureAPI=!1,void 0!==e.cameraModule&&(this.cameraModule=e.cameraModule),void 0!==e.autoCropOnManualSnap&&(this.autoCropOnManualSnap=e.autoCropOnManualSnap),void 0!==e.flashEnabled&&(this.flashEnabled=e.flashEnabled),void 0!==e.cameraPreviewMode&&(this.cameraPreviewMode=e.cameraPreviewMode),void 0!==e.idealPreviewResolution&&(this.idealPreviewResolution=new b(e.idealPreviewResolution)),void 0!==e.autoSnappingSensitivity&&(this.autoSnappingSensitivity=e.autoSnappingSensitivity),void 0!==e.autoSnappingDelay&&(this.autoSnappingDelay=e.autoSnappingDelay),void 0!==e.autoSnappingEnabled&&(this.autoSnappingEnabled=e.autoSnappingEnabled),void 0!==e.fpsLimit&&(this.fpsLimit=e.fpsLimit),void 0!==e.cameraLiveScannerResolution&&(this.cameraLiveScannerResolution=e.cameraLiveScannerResolution),void 0!==e.useImageCaptureAPI&&(this.useImageCaptureAPI=e.useImageCaptureAPI)}}var q=n(3618);class X{constructor(e={}){this.noDocumentFound="?cameraUserGuidanceNoDocumentFound",this.badAspectRatio="?cameraUserGuidanceBadAspectRatio",this.badAngles="?cameraUserGuidanceBadAngles",this.orientationMismatch="?cameraUserGuidanceOrientationMismatch",this.textHintOffCenter="?cameraUserGuidanceTextHintOffCenter",this.tooSmall="?cameraUserGuidanceTooSmall",this.tooNoisy="?cameraUserGuidanceTooNoisy",this.tooDark="?cameraUserGuidanceTooDark",this.energySaveMode="?cameraUserGuidanceEnergySaveMode",this.readyToCapture="?cameraUserGuidanceReadyToCapture",this.capturing="?cameraUserGuidanceReadyToCapture",this.captureManual="?cameraUserGuidanceReadyToCaptureManual",void 0!==e.noDocumentFound&&(this.noDocumentFound=e.noDocumentFound),void 0!==e.badAspectRatio&&(this.badAspectRatio=e.badAspectRatio),void 0!==e.badAngles&&(this.badAngles=e.badAngles),void 0!==e.orientationMismatch&&(this.orientationMismatch=e.orientationMismatch),void 0!==e.textHintOffCenter&&(this.textHintOffCenter=e.textHintOffCenter),void 0!==e.tooSmall&&(this.tooSmall=e.tooSmall),void 0!==e.tooNoisy&&(this.tooNoisy=e.tooNoisy),void 0!==e.tooDark&&(this.tooDark=e.tooDark),void 0!==e.energySaveMode&&(this.energySaveMode=e.energySaveMode),void 0!==e.readyToCapture&&(this.readyToCapture=e.readyToCapture),void 0!==e.capturing&&(this.capturing=e.capturing),void 0!==e.captureManual&&(this.captureManual=e.captureManual)}}class j{constructor(e={}){this.visibility="ENABLED",this.title=new r.D7({text:"?cameraUserGuidanceStart",color:"?sbColorOnPrimary"}),this.background=new r.se({strokeColor:"#00000000",fillColor:"?sbColorSurfaceHigh"}),this.statesTitles=new X({}),void 0!==e.visibility&&(this.visibility=e.visibility),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.background&&(this.background=new r.se(e.background)),void 0!==e.statesTitles&&(this.statesTitles=new X(e.statesTitles))}}var Q,J,K=n(3684);class ${constructor(e={}){this.enabledInAutoSnappingMode=!0,this.accessibilityDescription="?accessibilityDescriptionCameraShutterButton",this.outerColor="?sbColorOnPrimary",this.innerColor="?sbColorOnPrimary",void 0!==e.enabledInAutoSnappingMode&&(this.enabledInAutoSnappingMode=e.enabledInAutoSnappingMode),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.outerColor&&(this.outerColor=e.outerColor),void 0!==e.innerColor&&(this.innerColor=e.innerColor)}}!function(e){e.from=function(e){const t=e._type;switch(t){case"PagePreviewMode":return new te(e);case"TextButtonMode":return new ne(e);case"NoButtonMode":return new ie(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(Q||(Q={}));class ee{constructor(e={}){this.visible=!0,this.backgroundColor="?sbColorModalOverlay",this.foregroundColor="?sbColorSurface",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor)}}class te{constructor(e={}){this._type="PagePreviewMode",this.accessibilityDescription="?accessibilityDescriptionCameraPreviewButton",this.imagePlaceholderColor="?sbColorOnSurfaceVariant",this.pageCounter=new r.$l({visible:!0,background:new r.se({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface"}),foregroundColor:"?sbColorPrimary"}),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.imagePlaceholderColor&&(this.imagePlaceholderColor=e.imagePlaceholderColor),void 0!==e.pageCounter&&(this.pageCounter=new r.$l(e.pageCounter))}}class ne{constructor(e={}){this._type="TextButtonMode",this.accessibilityDescription="?accessibilityDescriptionCameraPreviewButton",this.style=new r.D7({text:"?cameraPreviewButtonTitle",color:"?sbColorOnPrimary"}),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.style&&(this.style=new r.D7(e.style))}}class ie{constructor(e={}){this._type="NoButtonMode",this.visible=!1,void 0!==e.visible&&(this.visible=e.visible)}}class re{constructor(e={}){this.bottomBarMode="SOLID",this.importButton=new r.q({title:new r.D7({visible:!1,text:"?cameraImportButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraImportButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.autoSnappingModeButton=new r.q({title:new r.D7({visible:!1,text:"?cameraAutoSnapButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraAutoSnapButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.manualSnappingModeButton=new r.q({title:new r.D7({visible:!1,text:"?cameraManualSnapButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraManualSnapButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.shutterButton=new $({accessibilityDescription:"?accessibilityDescriptionCameraShutterButton"}),this.torchOnButton=new r.q({title:new r.D7({visible:!1,text:"?cameraTorchOnButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraTorchOnButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.torchOffButton=new r.q({title:new r.D7({visible:!1,text:"?cameraTorchOffButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraTorchOffButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.previewButton=new te({}),void 0!==e.bottomBarMode&&(this.bottomBarMode=e.bottomBarMode),void 0!==e.importButton&&(this.importButton=new r.q(e.importButton)),void 0!==e.autoSnappingModeButton&&(this.autoSnappingModeButton=new r.q(e.autoSnappingModeButton)),void 0!==e.manualSnappingModeButton&&(this.manualSnappingModeButton=new r.q(e.manualSnappingModeButton)),void 0!==e.shutterButton&&(this.shutterButton=new $(e.shutterButton)),void 0!==e.torchOnButton&&(this.torchOnButton=new r.q(e.torchOnButton)),void 0!==e.torchOffButton&&(this.torchOffButton=new r.q(e.torchOffButton)),void 0!==e.previewButton&&(this.previewButton=Q.from(e.previewButton))}}!function(e){e.from=function(e){const t=e._type;switch(t){case"PageSnapFunnelAnimation":return new oe(e);case"PageSnapCheckMarkAnimation":return new ae(e);case"PageSnapFeedbackNone":return new se(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(J||(J={}));class oe{constructor(e={}){this._type="PageSnapFunnelAnimation",this.overlayColor="?sbColorModalOverlay",void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor)}}class ae{constructor(e={}){this._type="PageSnapCheckMarkAnimation",this.overlayColor="?sbColorModalOverlay",this.checkMarkBackgroundColor="?sbColorOutline",this.checkMarkColor="#00000000",void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.checkMarkBackgroundColor&&(this.checkMarkBackgroundColor=e.checkMarkBackgroundColor),void 0!==e.checkMarkColor&&(this.checkMarkColor=e.checkMarkColor)}}class se{constructor(e={}){this._type="PageSnapFeedbackNone"}}class ce{constructor(e={}){this.cameraBlinkEnabled=!0,this.snapFeedbackMode=new oe({}),void 0!==e.cameraBlinkEnabled&&(this.cameraBlinkEnabled=e.cameraBlinkEnabled),void 0!==e.snapFeedbackMode&&(this.snapFeedbackMode=J.from(e.snapFeedbackMode))}}class le{constructor(e={}){this.visibility="ENABLED",this.documentOk=new r.Kx({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:2}),this.documentNotOk=new r.Kx({strokeColor:"?sbColorNegative",fillColor:"#00000000",strokeWidth:2}),this.autoSnapProgress=new r.Kx({strokeColor:"#40A9FF",fillColor:"#00000000",strokeWidth:2}),void 0!==e.visibility&&(this.visibility=e.visibility),void 0!==e.documentOk&&(this.documentOk=new r.Kx(e.documentOk)),void 0!==e.documentNotOk&&(this.documentNotOk=new r.Kx(e.documentNotOk)),void 0!==e.autoSnapProgress&&(this.autoSnapProgress=new r.Kx(e.autoSnapProgress))}}class ue{constructor(e={}){this.acknowledgement=new G({}),this.introduction=new K.hk({}),this.scanAssistanceOverlay=new ee({}),this.cameraPermission=new R({background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new r.pO({visible:!0,color:"?sbColorOnSurface"}),closeButton:new r.z1({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),enableCameraTitle:new r.D7({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new r.D7({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.topBarTitle=new r.D7({text:"?cameraTopBarTitle",color:"?sbColorOnPrimary"}),this.topBarIntroButton=new r.K0({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionCameraTopBarIntroButton"}),this.topBarBackButton=new r.z1({visible:!0,text:"?cameraTopBarCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraTopBarCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.topBarCameraSelect=new x({}),this.topUserGuidance=new U.q({title:new r.D7({text:"?cameraTopGuidance",color:"?sbColorOnPrimary"})}),this.userGuidance=new j({}),this.backgroundColor="#000000FF",this.autoRotateImages=!0,this.openReviewAfterEachScan=!1,this.cameraConfiguration=new Y({}),this.scannerParameters=new q.AE({}),this.polygon=new le({}),this.bottomBar=new re({}),this.viewFinder=new w({aspectRatio:new S.gl({width:21,height:29}),visible:!1}),this.captureFeedback=new ce({}),this.vibration=new r.Hx({enabled:!0}),this.timeouts=new r.z$({autoCancelTimeout:0,initialScanDelay:0}),this.limitReachedAlertDialog=new g({title:new r.D7({text:"?cameraLimitReachedAlertTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?cameraLimitReachedAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),okButton:new r.z1({text:"?cameraLimitReachedOkButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraLimitReachedOkButton",background:new r.se({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})}),cancelButton:new r.z1({visible:!1})}),this.cancelAlertDialog=new g({title:new r.D7({text:"?cameraCancelAlertTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?cameraCancelAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),okButton:new r.z1({text:"?cameraCancelYesButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraCancelYesButton",background:new r.se({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})}),cancelButton:new r.z1({text:"?cameraCancelNoButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraCancelNoButton",background:new r.se({fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({color:"?sbColorPrimary"})})}),this.documentQualityAnalyzerConfiguration=new z.TM({}),void 0!==e.acknowledgement&&(this.acknowledgement=new G(e.acknowledgement)),void 0!==e.introduction&&(this.introduction=new K.hk(e.introduction)),void 0!==e.scanAssistanceOverlay&&(this.scanAssistanceOverlay=new ee(e.scanAssistanceOverlay)),void 0!==e.cameraPermission&&(this.cameraPermission=new R(e.cameraPermission)),void 0!==e.topBarTitle&&(this.topBarTitle=new r.D7(e.topBarTitle)),void 0!==e.topBarIntroButton&&(this.topBarIntroButton=new r.K0(e.topBarIntroButton)),void 0!==e.topBarBackButton&&(this.topBarBackButton=new r.z1(e.topBarBackButton)),void 0!==e.topBarCameraSelect&&(this.topBarCameraSelect=new x(e.topBarCameraSelect)),void 0!==e.topUserGuidance&&(this.topUserGuidance=new U.q(e.topUserGuidance)),void 0!==e.userGuidance&&(this.userGuidance=new j(e.userGuidance)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.autoRotateImages&&(this.autoRotateImages=e.autoRotateImages),void 0!==e.openReviewAfterEachScan&&(this.openReviewAfterEachScan=e.openReviewAfterEachScan),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new Y(e.cameraConfiguration)),void 0!==e.scannerParameters&&(this.scannerParameters=new q.AE(e.scannerParameters)),void 0!==e.polygon&&(this.polygon=new le(e.polygon)),void 0!==e.bottomBar&&(this.bottomBar=new re(e.bottomBar)),void 0!==e.viewFinder&&(this.viewFinder=new w(e.viewFinder)),void 0!==e.captureFeedback&&(this.captureFeedback=new ce(e.captureFeedback)),void 0!==e.vibration&&(this.vibration=new r.Hx(e.vibration)),void 0!==e.timeouts&&(this.timeouts=new r.z$(e.timeouts)),void 0!==e.limitReachedAlertDialog&&(this.limitReachedAlertDialog=new g(e.limitReachedAlertDialog)),void 0!==e.cancelAlertDialog&&(this.cancelAlertDialog=new g(e.cancelAlertDialog)),void 0!==e.documentQualityAnalyzerConfiguration&&(this.documentQualityAnalyzerConfiguration=new z.TM(e.documentQualityAnalyzerConfiguration))}}class de{constructor(e={}){this.detectButton=new r.q({title:new r.D7({text:"?croppingDetectButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCroppingDetectButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.rotateButton=new r.q({title:new r.D7({text:"?croppingRotateButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCroppingRotateButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.resetButton=new r.q({title:new r.D7({text:"?croppingResetButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCroppingResetButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),void 0!==e.detectButton&&(this.detectButton=new r.q(e.detectButton)),void 0!==e.rotateButton&&(this.rotateButton=new r.q(e.rotateButton)),void 0!==e.resetButton&&(this.resetButton=new r.q(e.resetButton))}}class me{constructor(e={}){this.topBarBackButton=new r.z1({visible:!0,text:"?croppingTopBarCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionCroppingTopBarCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.topBarTitle=new r.D7({text:"?croppingScreenTitle",color:"?sbColorOnPrimary"}),this.topBarConfirmButton=new r.z1({visible:!0,text:"?croppingTopBarConfirmButtonTitle",accessibilityDescription:"?accessibilityDescriptionCroppingTopBarConfirmButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.backgroundColor="?sbColorOutline",this.croppingHandlerColor="?sbColorSurface",this.croppingPolygonColor="?sbColorSurface",this.croppingPolygonMagneticLineColor="?sbColorSurface",this.bottomBar=new de({}),void 0!==e.topBarBackButton&&(this.topBarBackButton=new r.z1(e.topBarBackButton)),void 0!==e.topBarTitle&&(this.topBarTitle=new r.D7(e.topBarTitle)),void 0!==e.topBarConfirmButton&&(this.topBarConfirmButton=new r.z1(e.topBarConfirmButton)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.croppingHandlerColor&&(this.croppingHandlerColor=e.croppingHandlerColor),void 0!==e.croppingPolygonColor&&(this.croppingPolygonColor=e.croppingPolygonColor),void 0!==e.croppingPolygonMagneticLineColor&&(this.croppingPolygonMagneticLineColor=e.croppingPolygonMagneticLineColor),void 0!==e.bottomBar&&(this.bottomBar=new de(e.bottomBar))}}const he=["ENABLED","AUTO_CAPTURE_ONLY","DISABLED"];var pe=n(5759);const Ee=["FILTERED_DOCUMENT","UNFILTERED_DOCUMENT"];class Ae{constructor(e={}){this.pagesScanLimit=0,this.documentImageSizeLimit=0,this.documentAnalysisMode="UNFILTERED_DOCUMENT",this.defaultFilter=null,void 0!==e.pagesScanLimit&&(this.pagesScanLimit=e.pagesScanLimit),void 0!==e.documentImageSizeLimit&&(this.documentImageSizeLimit=e.documentImageSizeLimit),void 0!==e.documentAnalysisMode&&(this.documentAnalysisMode=e.documentAnalysisMode),void 0!==e.defaultFilter&&(this.defaultFilter=null!=e.defaultFilter?pe.hI.from(e.defaultFilter):null)}}class ge{constructor(e={}){this.addButton=new r.q({title:new r.D7({text:"?reviewScreenAddButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewAddButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.retakeButton=new r.q({title:new r.D7({text:"?reviewScreenRetakeButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewRetakeButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.cropButton=new r.q({title:new r.D7({text:"?reviewScreenCropButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewCropButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.rotateButton=new r.q({title:new r.D7({text:"?reviewScreenRotateButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewRotateButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.deleteButton=new r.q({title:new r.D7({text:"?reviewScreenDeleteButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewDeleteButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.submitButton=new r.z1({text:"?reviewScreenSubmitButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewSubmitButton",background:new r.se({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnSurface"})}),void 0!==e.addButton&&(this.addButton=new r.q(e.addButton)),void 0!==e.retakeButton&&(this.retakeButton=new r.q(e.retakeButton)),void 0!==e.cropButton&&(this.cropButton=new r.q(e.cropButton)),void 0!==e.rotateButton&&(this.rotateButton=new r.q(e.rotateButton)),void 0!==e.deleteButton&&(this.deleteButton=new r.q(e.deleteButton)),void 0!==e.submitButton&&(this.submitButton=new r.z1(e.submitButton))}}class fe{constructor(e={}){this.backgroundColor="?sbColorSurface",this.deleteAll=new r.DT({title:new r.D7({text:"?reviewScreenDeleteAllButtonTitle",color:"?sbColorNegative"}),accessibilityDescription:"?accessibilityDescriptionReviewDeleteAllButton",icon:new r.pO({color:"?sbColorNegative"})}),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.deleteAll&&(this.deleteAll=new r.DT(e.deleteAll))}}class Ce{constructor(e={}){this.overlayColor="?sbColorModalOverlay",this.closeButton=new r.z1({text:"?zoomOverlayCancelButtonText",accessibilityDescription:"?accessibilityDescriptionZoomOverlayCancelButton",background:new r.se({fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})}),void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.closeButton&&(this.closeButton=new r.z1(e.closeButton))}}class _e{constructor(e={}){this.enabled=!0,this.showLastPageWhenAdding=!1,this.topBarTitle=new r.D7({text:"?reviewScreenTitle",color:"?sbColorOnPrimary"}),this.topBarMoreButton=new r.K0({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionReviewMoreButton"}),this.topBarBackButton=new r.z1({visible:!0,text:"?reviewTopBarBackButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewTopBarBackButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.morePopup=new fe({}),this.zoomButton=new r.vU({accessibilityDescription:"?accessibilityDescriptionReviewZoomButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary"}),this.zoomOverlay=new Ce({}),this.backgroundColor="?sbColorOnSurfaceVariant",this.bottomBar=new ge({}),this.switchNextPageButton=new r.K0({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionReviewNextPageButton"}),this.switchPreviousPageButton=new r.K0({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionReviewPreviousPageButton"}),this.pageCounter=new U.q({title:new r.D7({text:"?reviewScreenPageCount",color:"?sbColorOnPrimary"}),background:new r.se({fillColor:"?sbColorSurfaceHigh",strokeWidth:0})}),this.deleteAllPagesAlertDialog=new g({title:new r.D7({text:"?reviewDeleteAllPagesAlertTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?reviewDeleteAllPagesAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),okButton:new r.z1({text:"?reviewDeleteAllPagesAlertDeleteButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton",background:new r.se({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})}),actionButton:new r.z1({visible:!1}),cancelButton:new r.z1({text:"?reviewDeleteAllPagesAlertCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton",background:new r.se({fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({color:"?sbColorPrimary"})})}),this.deletePageAlertDialog=new g({title:new r.D7({text:"?reviewDeletePageAlertTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?reviewDeletePageAlertSubTitle",color:"?sbColorOnSurfaceVariant"}),okButton:new r.z1({text:"?reviewDeletePageAlertConfirmButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeletePageAlertConfirmButton",background:new r.se({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})}),actionButton:new r.z1({text:"?reviewDeletePageAlertDeleteRetakeButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton",background:new r.se({fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({color:"?sbColorPrimary"})}),cancelButton:new r.z1({text:"?reviewDeletePageAlertCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeletePageAlertCancelButton",background:new r.se({fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({color:"?sbColorPrimary"})})}),void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.showLastPageWhenAdding&&(this.showLastPageWhenAdding=e.showLastPageWhenAdding),void 0!==e.topBarTitle&&(this.topBarTitle=new r.D7(e.topBarTitle)),void 0!==e.topBarMoreButton&&(this.topBarMoreButton=new r.K0(e.topBarMoreButton)),void 0!==e.topBarBackButton&&(this.topBarBackButton=new r.z1(e.topBarBackButton)),void 0!==e.morePopup&&(this.morePopup=new fe(e.morePopup)),void 0!==e.zoomButton&&(this.zoomButton=new r.vU(e.zoomButton)),void 0!==e.zoomOverlay&&(this.zoomOverlay=new Ce(e.zoomOverlay)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.bottomBar&&(this.bottomBar=new ge(e.bottomBar)),void 0!==e.switchNextPageButton&&(this.switchNextPageButton=new r.K0(e.switchNextPageButton)),void 0!==e.switchPreviousPageButton&&(this.switchPreviousPageButton=new r.K0(e.switchPreviousPageButton)),void 0!==e.pageCounter&&(this.pageCounter=new U.q(e.pageCounter)),void 0!==e.deleteAllPagesAlertDialog&&(this.deleteAllPagesAlertDialog=new g(e.deleteAllPagesAlertDialog)),void 0!==e.deletePageAlertDialog&&(this.deletePageAlertDialog=new g(e.deletePageAlertDialog))}}class De{constructor(e={}){this.camera=new ue({}),this.review=new _e({}),this.cropping=new me({}),void 0!==e.camera&&(this.camera=new ue(e.camera)),void 0!==e.review&&(this.review=new _e(e.review)),void 0!==e.cropping&&(this.cropping=new me(e.cropping))}}class ye{constructor(e={}){this.cameraTopBarCancelButtonTitle="Cancel",this.cameraTopBarTitle="Scan Document",this.cameraTopGuidance="Scan each page of your document.",this.cameraUserGuidanceStart="Please hold your device over a document.",this.cameraUserGuidanceNoDocumentFound="No document found",this.cameraUserGuidanceBadAspectRatio="Bad aspect ratio",this.cameraUserGuidanceOrientationMismatch="Orientation mismatch",this.cameraUserGuidanceBadAngles="Bad angles",this.cameraUserGuidanceTooNoisy="Its too noisy. Try another background for the document",this.cameraUserGuidanceTextHintOffCenter="Document is off center",this.cameraUserGuidanceTooSmall="Document is too small. Move camera closer.",this.cameraUserGuidanceTooDark="Its too dark. Add more light.",this.cameraUserGuidanceEnergySaveMode="Energy save mode is on",this.cameraUserGuidanceReadyToCapture="Hold still capturing...",this.cameraUserGuidanceReadyToCaptureManual="Ready to capture!",this.cameraImportButtonTitle="Import",this.cameraTorchOnButtonTitle="On",this.cameraTorchOffButtonTitle="Off",this.cameraAutoSnapButtonTitle="Auto",this.cameraManualSnapButtonTitle="Manual",this.cameraPreviewButtonTitle="%d Pages",this.cameraBadgedPreviewButtonTitle="Submit",this.cameraIntroDoneButton="Done",this.cameraIntroTitle="How to scan a document",this.cameraIntroSubtitle="Follow the steps below to create a high-quality document scan",this.cameraIntroItem1="1. Place your document on a flat surface.",this.cameraIntroItem2="2. Hold your phone above the document.",this.cameraIntroItem3="3. Follow the on-screen guidance to find the optimal position.",this.cameraIntroItem4="4. Once you reach the optimal position, you can manually scan the document or let the app scan it automatically.",this.cameraProgressOverlayTitle="Please wait...",this.cameraCancelAlertTitle="Cancel?",this.cameraCancelAlertSubtitle="Canceling will delete all the pages scanned so far. Are you sure you want to cancel?",this.cameraCancelNoButtonTitle="No",this.cameraCancelYesButtonTitle="Yes, Cancel",this.cameraLimitReachedAlertTitle="You reached the limit!",this.cameraLimitReachedAlertSubtitle="You have scanned the maximum number of pages and cannot add any more. Please delete at least one page to perform a new scan.",this.cameraLimitReachedOkButtonTitle="Ok",this.acknowledgementScreenBadDocumentHint="The quality of your scan does not seem sufficient.",this.acknowledgementRetakeButtonTitle="Retake",this.acknowledgementAcceptButtonTitle="Use Scan",this.reviewScreenTitle="Review (%d)",this.reviewTopBarBackButtonTitle="Back",this.reviewScreenPageCount="Page %d/%d",this.reviewScreenAddButtonTitle="Add",this.reviewScreenRetakeButtonTitle="Retake",this.reviewScreenCropButtonTitle="Crop",this.reviewScreenRotateButtonTitle="Rotate",this.reviewScreenDeleteButtonTitle="Delete",this.reviewScreenSubmitButtonTitle="Submit",this.reviewScreenDeleteAllButtonTitle="Delete all",this.reviewScreenReorderPagesButtonTitle="Reorder pages",this.zoomOverlayCancelButtonText="Close",this.reviewDeletePageAlertTitle="Delete page?",this.reviewDeleteAllPagesAlertTitle="Delete all?",this.reviewDeletePageAlertSubTitle="Are you sure you want to delete the page?",this.reviewDeleteAllPagesAlertSubtitle="Are you sure you want to delete all pages?",this.reviewDeletePageAlertConfirmButtonTitle="Yes, Delete",this.reviewDeleteAllPagesAlertDeleteButtonTitle="Yes, Delete all",this.reviewDeletePageAlertDeleteRetakeButtonTitle="Delete and Retake",this.reviewDeletePageAlertCancelButtonTitle="Cancel",this.reviewDeleteAllPagesAlertCancelButtonTitle="Cancel",this.acknowledgementTitle="Acknowledgement",this.reorderPageTitle="Reorder Pages",this.reorderPageGuidanceTitle="Drag pages to reorder",this.reorderPageText="%d",this.reorderTopBarConfirmButtonTitle="Done",this.reorderTopBarCancelButtonTitle="Cancel",this.croppingTopBarConfirmButtonTitle="Done",this.croppingTopBarCancelButtonTitle="Cancel",this.croppingDetectButtonTitle="Detect",this.croppingRotateButtonTitle="Rotate",this.croppingResetButtonTitle="Reset",this.croppingScreenTitle="Crop",this.accessibilityDescriptionCameraTopBarIntroButton="Tap to open introduction screen",this.accessibilityDescriptionCameraTopBarCancelButton="Tap to close scanner screen",this.accessibilityDescriptionCameraImportButton="Tap to import image",this.accessibilityDescriptionCameraTorchOnButton="Tap to disable torch",this.accessibilityDescriptionCameraTorchOffButton="Tap to enable torch",this.accessibilityDescriptionCameraShutterButton="Tap to take image",this.accessibilityDescriptionCameraAutoSnapButton="Tap to enable manual snapping mode",this.accessibilityDescriptionCameraManualSnapButton="Tap to enable auto snapping mode",this.accessibilityDescriptionCameraPreviewButton="Tap to preview scanned pages",this.accessibilityDescriptionCameraIntroDoneButton="Tap to close introduction screen",this.accessibilityDescriptionAcknowledgementRetakeButton="Tap to retake the image",this.accessibilityDescriptionAcknowledgementAcceptButton="Tap to accept the image regardless of its quality",this.accessibilityDescriptionCroppingTopBarConfirmButton="Tap to apply changes",this.accessibilityDescriptionCroppingTopBarCancelButton="Tap to close screen without applying changes",this.accessibilityDescriptionCroppingDetectButton="Tap to detect document on the image",this.accessibilityDescriptionCroppingRotateButton="Tap to rotate document",this.accessibilityDescriptionCroppingResetButton="Tap to reset document contour to whole image",this.accessibilityDescriptionReorderTopBarConfirmButton="Tap to apply changes",this.accessibilityDescriptionReorderTopBarCancelButton="Tap to close screen without applying changes",this.accessibilityDescriptionReviewNextPageButton="Tap to switch to the new page",this.accessibilityDescriptionReviewPreviousPageButton="Tap to switch to the previous page",this.accessibilityDescriptionReviewAddButton="Tap to Add new page",this.accessibilityDescriptionReviewRetakeButton="Tap to Retake current selected page",this.accessibilityDescriptionReviewCropButton="Tap to Crop selected page",this.accessibilityDescriptionReviewRotateButton="Tap to Rotate selected page clockwise",this.accessibilityDescriptionReviewDeleteButton="Tap to Delete selected page",this.accessibilityDescriptionReviewSubmitButton="Tap to Submit document",this.accessibilityDescriptionReviewMoreButton="Tap to show additional options",this.accessibilityDescriptionReviewDeleteAllButton="Tap to Delete all pages",this.accessibilityDescriptionReviewReorderPagesButton="Tap to Reorder pages",this.accessibilityDescriptionZoomOverlayCancelButton="Tap to Close zoom overlay",this.accessibilityDescriptionReviewZoomButton="Tap to open zoom overlay for selected page",this.accessibilityDescriptionReviewTopBarBackButton="Tap to Close review screen",this.accessibilityDescriptionReviewDeletePageAlertConfirmButton="Tap to Delete page",this.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton="Tap to Delete all pages",this.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton="Tap to Delete page and Retake it",this.accessibilityDescriptionReviewDeletePageAlertCancelButton="Tap to Cancel operation",this.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton="Tap to Cancel operation",this.accessibilityDescriptionCameraLimitReachedOkButton="Tap to close alert dialog",this.accessibilityDescriptionCameraCancelYesButton="Tap to cancel document",this.accessibilityDescriptionCameraCancelNoButton="Tap to close alert dialog",this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",this.accessibilityDescriptionCameraSelectButton="Tap to open camera selection menu",this.accessibilityDescriptionCameraSelectMenuItem="Tap to select camera",this.cameraSelectCameraMenuTitle="Select camera",void 0!==e.cameraTopBarCancelButtonTitle&&(this.cameraTopBarCancelButtonTitle=e.cameraTopBarCancelButtonTitle),void 0!==e.cameraTopBarTitle&&(this.cameraTopBarTitle=e.cameraTopBarTitle),void 0!==e.cameraTopGuidance&&(this.cameraTopGuidance=e.cameraTopGuidance),void 0!==e.cameraUserGuidanceStart&&(this.cameraUserGuidanceStart=e.cameraUserGuidanceStart),void 0!==e.cameraUserGuidanceNoDocumentFound&&(this.cameraUserGuidanceNoDocumentFound=e.cameraUserGuidanceNoDocumentFound),void 0!==e.cameraUserGuidanceBadAspectRatio&&(this.cameraUserGuidanceBadAspectRatio=e.cameraUserGuidanceBadAspectRatio),void 0!==e.cameraUserGuidanceOrientationMismatch&&(this.cameraUserGuidanceOrientationMismatch=e.cameraUserGuidanceOrientationMismatch),void 0!==e.cameraUserGuidanceBadAngles&&(this.cameraUserGuidanceBadAngles=e.cameraUserGuidanceBadAngles),void 0!==e.cameraUserGuidanceTooNoisy&&(this.cameraUserGuidanceTooNoisy=e.cameraUserGuidanceTooNoisy),void 0!==e.cameraUserGuidanceTextHintOffCenter&&(this.cameraUserGuidanceTextHintOffCenter=e.cameraUserGuidanceTextHintOffCenter),void 0!==e.cameraUserGuidanceTooSmall&&(this.cameraUserGuidanceTooSmall=e.cameraUserGuidanceTooSmall),void 0!==e.cameraUserGuidanceTooDark&&(this.cameraUserGuidanceTooDark=e.cameraUserGuidanceTooDark),void 0!==e.cameraUserGuidanceEnergySaveMode&&(this.cameraUserGuidanceEnergySaveMode=e.cameraUserGuidanceEnergySaveMode),void 0!==e.cameraUserGuidanceReadyToCapture&&(this.cameraUserGuidanceReadyToCapture=e.cameraUserGuidanceReadyToCapture),void 0!==e.cameraUserGuidanceReadyToCaptureManual&&(this.cameraUserGuidanceReadyToCaptureManual=e.cameraUserGuidanceReadyToCaptureManual),void 0!==e.cameraImportButtonTitle&&(this.cameraImportButtonTitle=e.cameraImportButtonTitle),void 0!==e.cameraTorchOnButtonTitle&&(this.cameraTorchOnButtonTitle=e.cameraTorchOnButtonTitle),void 0!==e.cameraTorchOffButtonTitle&&(this.cameraTorchOffButtonTitle=e.cameraTorchOffButtonTitle),void 0!==e.cameraAutoSnapButtonTitle&&(this.cameraAutoSnapButtonTitle=e.cameraAutoSnapButtonTitle),void 0!==e.cameraManualSnapButtonTitle&&(this.cameraManualSnapButtonTitle=e.cameraManualSnapButtonTitle),void 0!==e.cameraPreviewButtonTitle&&(this.cameraPreviewButtonTitle=e.cameraPreviewButtonTitle),void 0!==e.cameraBadgedPreviewButtonTitle&&(this.cameraBadgedPreviewButtonTitle=e.cameraBadgedPreviewButtonTitle),void 0!==e.cameraIntroDoneButton&&(this.cameraIntroDoneButton=e.cameraIntroDoneButton),void 0!==e.cameraIntroTitle&&(this.cameraIntroTitle=e.cameraIntroTitle),void 0!==e.cameraIntroSubtitle&&(this.cameraIntroSubtitle=e.cameraIntroSubtitle),void 0!==e.cameraIntroItem1&&(this.cameraIntroItem1=e.cameraIntroItem1),void 0!==e.cameraIntroItem2&&(this.cameraIntroItem2=e.cameraIntroItem2),void 0!==e.cameraIntroItem3&&(this.cameraIntroItem3=e.cameraIntroItem3),void 0!==e.cameraIntroItem4&&(this.cameraIntroItem4=e.cameraIntroItem4),void 0!==e.cameraProgressOverlayTitle&&(this.cameraProgressOverlayTitle=e.cameraProgressOverlayTitle),void 0!==e.cameraCancelAlertTitle&&(this.cameraCancelAlertTitle=e.cameraCancelAlertTitle),void 0!==e.cameraCancelAlertSubtitle&&(this.cameraCancelAlertSubtitle=e.cameraCancelAlertSubtitle),void 0!==e.cameraCancelNoButtonTitle&&(this.cameraCancelNoButtonTitle=e.cameraCancelNoButtonTitle),void 0!==e.cameraCancelYesButtonTitle&&(this.cameraCancelYesButtonTitle=e.cameraCancelYesButtonTitle),void 0!==e.cameraLimitReachedAlertTitle&&(this.cameraLimitReachedAlertTitle=e.cameraLimitReachedAlertTitle),void 0!==e.cameraLimitReachedAlertSubtitle&&(this.cameraLimitReachedAlertSubtitle=e.cameraLimitReachedAlertSubtitle),void 0!==e.cameraLimitReachedOkButtonTitle&&(this.cameraLimitReachedOkButtonTitle=e.cameraLimitReachedOkButtonTitle),void 0!==e.acknowledgementScreenBadDocumentHint&&(this.acknowledgementScreenBadDocumentHint=e.acknowledgementScreenBadDocumentHint),void 0!==e.acknowledgementRetakeButtonTitle&&(this.acknowledgementRetakeButtonTitle=e.acknowledgementRetakeButtonTitle),void 0!==e.acknowledgementAcceptButtonTitle&&(this.acknowledgementAcceptButtonTitle=e.acknowledgementAcceptButtonTitle),void 0!==e.reviewScreenTitle&&(this.reviewScreenTitle=e.reviewScreenTitle),void 0!==e.reviewTopBarBackButtonTitle&&(this.reviewTopBarBackButtonTitle=e.reviewTopBarBackButtonTitle),void 0!==e.reviewScreenPageCount&&(this.reviewScreenPageCount=e.reviewScreenPageCount),void 0!==e.reviewScreenAddButtonTitle&&(this.reviewScreenAddButtonTitle=e.reviewScreenAddButtonTitle),void 0!==e.reviewScreenRetakeButtonTitle&&(this.reviewScreenRetakeButtonTitle=e.reviewScreenRetakeButtonTitle),void 0!==e.reviewScreenCropButtonTitle&&(this.reviewScreenCropButtonTitle=e.reviewScreenCropButtonTitle),void 0!==e.reviewScreenRotateButtonTitle&&(this.reviewScreenRotateButtonTitle=e.reviewScreenRotateButtonTitle),void 0!==e.reviewScreenDeleteButtonTitle&&(this.reviewScreenDeleteButtonTitle=e.reviewScreenDeleteButtonTitle),void 0!==e.reviewScreenSubmitButtonTitle&&(this.reviewScreenSubmitButtonTitle=e.reviewScreenSubmitButtonTitle),void 0!==e.reviewScreenDeleteAllButtonTitle&&(this.reviewScreenDeleteAllButtonTitle=e.reviewScreenDeleteAllButtonTitle),void 0!==e.reviewScreenReorderPagesButtonTitle&&(this.reviewScreenReorderPagesButtonTitle=e.reviewScreenReorderPagesButtonTitle),void 0!==e.zoomOverlayCancelButtonText&&(this.zoomOverlayCancelButtonText=e.zoomOverlayCancelButtonText),void 0!==e.reviewDeletePageAlertTitle&&(this.reviewDeletePageAlertTitle=e.reviewDeletePageAlertTitle),void 0!==e.reviewDeleteAllPagesAlertTitle&&(this.reviewDeleteAllPagesAlertTitle=e.reviewDeleteAllPagesAlertTitle),void 0!==e.reviewDeletePageAlertSubTitle&&(this.reviewDeletePageAlertSubTitle=e.reviewDeletePageAlertSubTitle),void 0!==e.reviewDeleteAllPagesAlertSubtitle&&(this.reviewDeleteAllPagesAlertSubtitle=e.reviewDeleteAllPagesAlertSubtitle),void 0!==e.reviewDeletePageAlertConfirmButtonTitle&&(this.reviewDeletePageAlertConfirmButtonTitle=e.reviewDeletePageAlertConfirmButtonTitle),void 0!==e.reviewDeleteAllPagesAlertDeleteButtonTitle&&(this.reviewDeleteAllPagesAlertDeleteButtonTitle=e.reviewDeleteAllPagesAlertDeleteButtonTitle),void 0!==e.reviewDeletePageAlertDeleteRetakeButtonTitle&&(this.reviewDeletePageAlertDeleteRetakeButtonTitle=e.reviewDeletePageAlertDeleteRetakeButtonTitle),void 0!==e.reviewDeletePageAlertCancelButtonTitle&&(this.reviewDeletePageAlertCancelButtonTitle=e.reviewDeletePageAlertCancelButtonTitle),void 0!==e.reviewDeleteAllPagesAlertCancelButtonTitle&&(this.reviewDeleteAllPagesAlertCancelButtonTitle=e.reviewDeleteAllPagesAlertCancelButtonTitle),void 0!==e.acknowledgementTitle&&(this.acknowledgementTitle=e.acknowledgementTitle),void 0!==e.reorderPageTitle&&(this.reorderPageTitle=e.reorderPageTitle),void 0!==e.reorderPageGuidanceTitle&&(this.reorderPageGuidanceTitle=e.reorderPageGuidanceTitle),void 0!==e.reorderPageText&&(this.reorderPageText=e.reorderPageText),void 0!==e.reorderTopBarConfirmButtonTitle&&(this.reorderTopBarConfirmButtonTitle=e.reorderTopBarConfirmButtonTitle),void 0!==e.reorderTopBarCancelButtonTitle&&(this.reorderTopBarCancelButtonTitle=e.reorderTopBarCancelButtonTitle),void 0!==e.croppingTopBarConfirmButtonTitle&&(this.croppingTopBarConfirmButtonTitle=e.croppingTopBarConfirmButtonTitle),void 0!==e.croppingTopBarCancelButtonTitle&&(this.croppingTopBarCancelButtonTitle=e.croppingTopBarCancelButtonTitle),void 0!==e.croppingDetectButtonTitle&&(this.croppingDetectButtonTitle=e.croppingDetectButtonTitle),void 0!==e.croppingRotateButtonTitle&&(this.croppingRotateButtonTitle=e.croppingRotateButtonTitle),void 0!==e.croppingResetButtonTitle&&(this.croppingResetButtonTitle=e.croppingResetButtonTitle),void 0!==e.croppingScreenTitle&&(this.croppingScreenTitle=e.croppingScreenTitle),void 0!==e.accessibilityDescriptionCameraTopBarIntroButton&&(this.accessibilityDescriptionCameraTopBarIntroButton=e.accessibilityDescriptionCameraTopBarIntroButton),void 0!==e.accessibilityDescriptionCameraTopBarCancelButton&&(this.accessibilityDescriptionCameraTopBarCancelButton=e.accessibilityDescriptionCameraTopBarCancelButton),void 0!==e.accessibilityDescriptionCameraImportButton&&(this.accessibilityDescriptionCameraImportButton=e.accessibilityDescriptionCameraImportButton),void 0!==e.accessibilityDescriptionCameraTorchOnButton&&(this.accessibilityDescriptionCameraTorchOnButton=e.accessibilityDescriptionCameraTorchOnButton),void 0!==e.accessibilityDescriptionCameraTorchOffButton&&(this.accessibilityDescriptionCameraTorchOffButton=e.accessibilityDescriptionCameraTorchOffButton),void 0!==e.accessibilityDescriptionCameraShutterButton&&(this.accessibilityDescriptionCameraShutterButton=e.accessibilityDescriptionCameraShutterButton),void 0!==e.accessibilityDescriptionCameraAutoSnapButton&&(this.accessibilityDescriptionCameraAutoSnapButton=e.accessibilityDescriptionCameraAutoSnapButton),void 0!==e.accessibilityDescriptionCameraManualSnapButton&&(this.accessibilityDescriptionCameraManualSnapButton=e.accessibilityDescriptionCameraManualSnapButton),void 0!==e.accessibilityDescriptionCameraPreviewButton&&(this.accessibilityDescriptionCameraPreviewButton=e.accessibilityDescriptionCameraPreviewButton),void 0!==e.accessibilityDescriptionCameraIntroDoneButton&&(this.accessibilityDescriptionCameraIntroDoneButton=e.accessibilityDescriptionCameraIntroDoneButton),void 0!==e.accessibilityDescriptionAcknowledgementRetakeButton&&(this.accessibilityDescriptionAcknowledgementRetakeButton=e.accessibilityDescriptionAcknowledgementRetakeButton),void 0!==e.accessibilityDescriptionAcknowledgementAcceptButton&&(this.accessibilityDescriptionAcknowledgementAcceptButton=e.accessibilityDescriptionAcknowledgementAcceptButton),void 0!==e.accessibilityDescriptionCroppingTopBarConfirmButton&&(this.accessibilityDescriptionCroppingTopBarConfirmButton=e.accessibilityDescriptionCroppingTopBarConfirmButton),void 0!==e.accessibilityDescriptionCroppingTopBarCancelButton&&(this.accessibilityDescriptionCroppingTopBarCancelButton=e.accessibilityDescriptionCroppingTopBarCancelButton),void 0!==e.accessibilityDescriptionCroppingDetectButton&&(this.accessibilityDescriptionCroppingDetectButton=e.accessibilityDescriptionCroppingDetectButton),void 0!==e.accessibilityDescriptionCroppingRotateButton&&(this.accessibilityDescriptionCroppingRotateButton=e.accessibilityDescriptionCroppingRotateButton),void 0!==e.accessibilityDescriptionCroppingResetButton&&(this.accessibilityDescriptionCroppingResetButton=e.accessibilityDescriptionCroppingResetButton),void 0!==e.accessibilityDescriptionReorderTopBarConfirmButton&&(this.accessibilityDescriptionReorderTopBarConfirmButton=e.accessibilityDescriptionReorderTopBarConfirmButton),void 0!==e.accessibilityDescriptionReorderTopBarCancelButton&&(this.accessibilityDescriptionReorderTopBarCancelButton=e.accessibilityDescriptionReorderTopBarCancelButton),void 0!==e.accessibilityDescriptionReviewNextPageButton&&(this.accessibilityDescriptionReviewNextPageButton=e.accessibilityDescriptionReviewNextPageButton),void 0!==e.accessibilityDescriptionReviewPreviousPageButton&&(this.accessibilityDescriptionReviewPreviousPageButton=e.accessibilityDescriptionReviewPreviousPageButton),void 0!==e.accessibilityDescriptionReviewAddButton&&(this.accessibilityDescriptionReviewAddButton=e.accessibilityDescriptionReviewAddButton),void 0!==e.accessibilityDescriptionReviewRetakeButton&&(this.accessibilityDescriptionReviewRetakeButton=e.accessibilityDescriptionReviewRetakeButton),void 0!==e.accessibilityDescriptionReviewCropButton&&(this.accessibilityDescriptionReviewCropButton=e.accessibilityDescriptionReviewCropButton),void 0!==e.accessibilityDescriptionReviewRotateButton&&(this.accessibilityDescriptionReviewRotateButton=e.accessibilityDescriptionReviewRotateButton),void 0!==e.accessibilityDescriptionReviewDeleteButton&&(this.accessibilityDescriptionReviewDeleteButton=e.accessibilityDescriptionReviewDeleteButton),void 0!==e.accessibilityDescriptionReviewSubmitButton&&(this.accessibilityDescriptionReviewSubmitButton=e.accessibilityDescriptionReviewSubmitButton),void 0!==e.accessibilityDescriptionReviewMoreButton&&(this.accessibilityDescriptionReviewMoreButton=e.accessibilityDescriptionReviewMoreButton),void 0!==e.accessibilityDescriptionReviewDeleteAllButton&&(this.accessibilityDescriptionReviewDeleteAllButton=e.accessibilityDescriptionReviewDeleteAllButton),void 0!==e.accessibilityDescriptionReviewReorderPagesButton&&(this.accessibilityDescriptionReviewReorderPagesButton=e.accessibilityDescriptionReviewReorderPagesButton),void 0!==e.accessibilityDescriptionZoomOverlayCancelButton&&(this.accessibilityDescriptionZoomOverlayCancelButton=e.accessibilityDescriptionZoomOverlayCancelButton),void 0!==e.accessibilityDescriptionReviewZoomButton&&(this.accessibilityDescriptionReviewZoomButton=e.accessibilityDescriptionReviewZoomButton),void 0!==e.accessibilityDescriptionReviewTopBarBackButton&&(this.accessibilityDescriptionReviewTopBarBackButton=e.accessibilityDescriptionReviewTopBarBackButton),void 0!==e.accessibilityDescriptionReviewDeletePageAlertConfirmButton&&(this.accessibilityDescriptionReviewDeletePageAlertConfirmButton=e.accessibilityDescriptionReviewDeletePageAlertConfirmButton),void 0!==e.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton&&(this.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton=e.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton),void 0!==e.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton&&(this.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton=e.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton),void 0!==e.accessibilityDescriptionReviewDeletePageAlertCancelButton&&(this.accessibilityDescriptionReviewDeletePageAlertCancelButton=e.accessibilityDescriptionReviewDeletePageAlertCancelButton),void 0!==e.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton&&(this.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton=e.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton),void 0!==e.accessibilityDescriptionCameraLimitReachedOkButton&&(this.accessibilityDescriptionCameraLimitReachedOkButton=e.accessibilityDescriptionCameraLimitReachedOkButton),void 0!==e.accessibilityDescriptionCameraCancelYesButton&&(this.accessibilityDescriptionCameraCancelYesButton=e.accessibilityDescriptionCameraCancelYesButton),void 0!==e.accessibilityDescriptionCameraCancelNoButton&&(this.accessibilityDescriptionCameraCancelNoButton=e.accessibilityDescriptionCameraCancelNoButton),void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraSelectButton&&(this.accessibilityDescriptionCameraSelectButton=e.accessibilityDescriptionCameraSelectButton),void 0!==e.accessibilityDescriptionCameraSelectMenuItem&&(this.accessibilityDescriptionCameraSelectMenuItem=e.accessibilityDescriptionCameraSelectMenuItem),void 0!==e.cameraSelectCameraMenuTitle&&(this.cameraSelectCameraMenuTitle=e.cameraSelectCameraMenuTitle)}}class Ie{constructor(e={}){this.topBarBackgroundColor="?sbColorPrimary",this.bottomBarBackgroundColor="?sbColorPrimary",void 0!==e.topBarBackgroundColor&&(this.topBarBackgroundColor=e.topBarBackgroundColor),void 0!==e.bottomBarBackgroundColor&&(this.bottomBarBackgroundColor=e.bottomBarBackgroundColor)}}class ve{constructor(e={}){this.version="1.0",this.screen="DocumentScanner",this.palette=new r.es({sbColorPrimary:"#C8193C",sbColorPrimaryDisabled:"#F5F5F5",sbColorNegative:"#FF3737",sbColorPositive:"#4EFFB4",sbColorWarning:"#FFCE5C",sbColorSecondary:"#FFEDEE",sbColorSecondaryDisabled:"#F5F5F5",sbColorOnPrimary:"#FFFFFF",sbColorOnSecondary:"#C8193C",sbColorSurface:"#FFFFFF",sbColorOutline:"#EFEFEF",sbColorOnSurfaceVariant:"#707070",sbColorOnSurface:"#000000",sbColorSurfaceLow:"#00000026",sbColorSurfaceHigh:"#0000007A",sbColorModalOverlay:"#000000A3"}),this.localization=new ye({}),this.appearance=new Ie({}),this.outputSettings=new Ae({}),this.screens=new De({}),this.documentUuid=null,this.cleanScanningSession=!0,this.showReviewScreenOnStart=!1,void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.palette&&(this.palette=new r.es(e.palette)),void 0!==e.localization&&(this.localization=new ye(e.localization)),void 0!==e.appearance&&(this.appearance=new Ie(e.appearance)),void 0!==e.outputSettings&&(this.outputSettings=new Ae(e.outputSettings)),void 0!==e.screens&&(this.screens=new De(e.screens)),void 0!==e.documentUuid&&(this.documentUuid=null!=e.documentUuid?e.documentUuid:null),void 0!==e.cleanScanningSession&&(this.cleanScanningSession=e.cleanScanningSession),void 0!==e.showReviewScreenOnStart&&(this.showReviewScreenOnStart=e.showReviewScreenOnStart)}}var Ne;!function(e){e.from=function(e){const t=e._type;switch(t){case"TwoLineMRZFinderLayoutPreset":return new Se(e);case"ThreeLineMRZFinderLayoutPreset":return new be(e);case"NoLayoutPreset":return new Me(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(Ne||(Ne={}));class Se{constructor(e={}){this._type="TwoLineMRZFinderLayoutPreset",this.mrzTextLine1="I<USASMITH<<JACK<<<<<<<<<<<<<<<<<<<<",this.mrzTextLine2="2342353464USA9602300M2904076<<<<<<<2",this.adjustedFinderAspectRatio=5.390625,void 0!==e.mrzTextLine1&&(this.mrzTextLine1=e.mrzTextLine1),void 0!==e.mrzTextLine2&&(this.mrzTextLine2=e.mrzTextLine2),void 0!==e.adjustedFinderAspectRatio&&(this.adjustedFinderAspectRatio=e.adjustedFinderAspectRatio)}}class be{constructor(e={}){this._type="ThreeLineMRZFinderLayoutPreset",this.mrzTextLine1="I<USA2342353464<<<<<<<<<<<<<<<",this.mrzTextLine2="9602300M2904076USA<<<<<<<<<<<2",this.mrzTextLine3="SMITH<<JACK<<<<<<<<<<<<<<<<<<<",this.adjustedFinderAspectRatio=4.3125,void 0!==e.mrzTextLine1&&(this.mrzTextLine1=e.mrzTextLine1),void 0!==e.mrzTextLine2&&(this.mrzTextLine2=e.mrzTextLine2),void 0!==e.mrzTextLine3&&(this.mrzTextLine3=e.mrzTextLine3),void 0!==e.adjustedFinderAspectRatio&&(this.adjustedFinderAspectRatio=e.adjustedFinderAspectRatio)}}class Me{constructor(e={}){this._type="NoLayoutPreset"}}var Le=n(3296),Re=n(7047);class Te{constructor(e={}){this.topBarTitle="MRZ Scanner",this.topBarCancelButton="Cancel",this.topUserGuidance="Scan your Identity Document",this.finderViewUserGuidance="Scan the MRZ",this.introScreenTitle="How to scan an MRZ",this.introScreenDoneButton="Start Scanning",this.introScreenText="The Machine Readable Zone (MRZ) is a special code on your ID document (such as a passport or ID card) that contains your personal information in a machine-readable format.\n\nTo scan it, simply hold your camera over the document, so that it aligns with the MRZ section. Once scanned, the data will be automatically processed, and you will be directed to the results screen.\n\nPress 'Start Scanning' to begin.",this.completionOverlaySuccessMessage="Scanned successfully",this.accessibilityDescriptionOpenIntroScreenButton="Open introduction screen.",this.accessibilityDescriptionIntroScreenDoneButton="Start scanning",this.accessibilityDescriptionCancelButton="Cancel",this.accessibilityDescriptionFlashButton="Toggle flash",this.accessibilityDescriptionZoomButton="Toggle camera zoom",this.accessibilityDescriptionFlipCameraButton="Flip camera",this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",this.accessibilityDescriptionCameraSelectButton="Tap to open camera selection menu",this.accessibilityDescriptionCameraSelectMenuItem="Tap to select camera",this.cameraSelectCameraMenuTitle="Select camera",void 0!==e.topBarTitle&&(this.topBarTitle=e.topBarTitle),void 0!==e.topBarCancelButton&&(this.topBarCancelButton=e.topBarCancelButton),void 0!==e.topUserGuidance&&(this.topUserGuidance=e.topUserGuidance),void 0!==e.finderViewUserGuidance&&(this.finderViewUserGuidance=e.finderViewUserGuidance),void 0!==e.introScreenTitle&&(this.introScreenTitle=e.introScreenTitle),void 0!==e.introScreenDoneButton&&(this.introScreenDoneButton=e.introScreenDoneButton),void 0!==e.introScreenText&&(this.introScreenText=e.introScreenText),void 0!==e.completionOverlaySuccessMessage&&(this.completionOverlaySuccessMessage=e.completionOverlaySuccessMessage),void 0!==e.accessibilityDescriptionOpenIntroScreenButton&&(this.accessibilityDescriptionOpenIntroScreenButton=e.accessibilityDescriptionOpenIntroScreenButton),void 0!==e.accessibilityDescriptionIntroScreenDoneButton&&(this.accessibilityDescriptionIntroScreenDoneButton=e.accessibilityDescriptionIntroScreenDoneButton),void 0!==e.accessibilityDescriptionCancelButton&&(this.accessibilityDescriptionCancelButton=e.accessibilityDescriptionCancelButton),void 0!==e.accessibilityDescriptionFlashButton&&(this.accessibilityDescriptionFlashButton=e.accessibilityDescriptionFlashButton),void 0!==e.accessibilityDescriptionZoomButton&&(this.accessibilityDescriptionZoomButton=e.accessibilityDescriptionZoomButton),void 0!==e.accessibilityDescriptionFlipCameraButton&&(this.accessibilityDescriptionFlipCameraButton=e.accessibilityDescriptionFlipCameraButton),void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraSelectButton&&(this.accessibilityDescriptionCameraSelectButton=e.accessibilityDescriptionCameraSelectButton),void 0!==e.accessibilityDescriptionCameraSelectMenuItem&&(this.accessibilityDescriptionCameraSelectMenuItem=e.accessibilityDescriptionCameraSelectMenuItem),void 0!==e.cameraSelectCameraMenuTitle&&(this.cameraSelectCameraMenuTitle=e.cameraSelectCameraMenuTitle)}}class Oe{constructor(e={}){this.message=new r.D7({text:"?completionOverlaySuccessMessage",color:"?sbColorOnPrimary"}),this.iconColor="?sbColorOnPrimary",this.overlayBackgroundColor="?sbColorSurfaceHigh",this.timeout=1e3,void 0!==e.message&&(this.message=new r.D7(e.message)),void 0!==e.iconColor&&(this.iconColor=e.iconColor),void 0!==e.overlayBackgroundColor&&(this.overlayBackgroundColor=e.overlayBackgroundColor),void 0!==e.timeout&&(this.timeout=e.timeout)}}class we{constructor(e={}){this.version="1.0",this.screen="MrzScanner",this.localization=new Te({}),this.palette=new r.es({}),this.backgroundColor="?sbColorSurfaceLow",this.cameraConfiguration=new L({}),this.cameraPermission=new R({background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new r.pO({visible:!0,color:"?sbColorOnSurface"}),closeButton:new r.z1({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new r.D7({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new r.D7({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.topUserGuidance=new U.q({title:new r.D7({text:"?topUserGuidance"})}),this.finderViewUserGuidance=new U.q({title:new r.D7({text:"?finderViewUserGuidance"})}),this.topBar=new k({title:new r.D7({visible:!0,text:"?topBarTitle"}),cancelButton:new r.z1({text:"?topBarCancelButton",accessibilityDescription:"?accessibilityDescriptionCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})})}),this.topBarOpenIntroScreenButton=new r.K0({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionOpenIntroScreenButton"}),this.introScreen=new Re.aT({}),this.actionBar=new N({flipCameraButton:new r.vU({visible:!1,accessibilityDescription:"?accessibilityDescriptionFlipCameraButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"})}),this.viewFinder=new F({style:new B({strokeColor:"?sbColorSurface",strokeWidth:2}),aspectRatio:new S.gl({width:-1,height:-1}),minimumInsets:new r.si({top:24,left:24,bottom:24,right:24})}),this.scannerConfiguration=new Le.MrzScannerConfiguration({}),this.mrzExampleOverlay=new Se({}),this.successOverlay=new Oe({}),this.sound=new r.AB({}),this.vibration=new r.Hx({}),void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.localization&&(this.localization=new Te(e.localization)),void 0!==e.palette&&(this.palette=new r.es(e.palette)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new L(e.cameraConfiguration)),void 0!==e.cameraPermission&&(this.cameraPermission=new R(e.cameraPermission)),void 0!==e.topUserGuidance&&(this.topUserGuidance=new U.q(e.topUserGuidance)),void 0!==e.finderViewUserGuidance&&(this.finderViewUserGuidance=new U.q(e.finderViewUserGuidance)),void 0!==e.topBar&&(this.topBar=new k(e.topBar)),void 0!==e.topBarOpenIntroScreenButton&&(this.topBarOpenIntroScreenButton=new r.K0(e.topBarOpenIntroScreenButton)),void 0!==e.introScreen&&(this.introScreen=new Re.aT(e.introScreen)),void 0!==e.actionBar&&(this.actionBar=new N(e.actionBar)),void 0!==e.viewFinder&&(this.viewFinder=new F(e.viewFinder)),void 0!==e.scannerConfiguration&&(this.scannerConfiguration=new Le.MrzScannerConfiguration(e.scannerConfiguration)),void 0!==e.mrzExampleOverlay&&(this.mrzExampleOverlay=Ne.from(e.mrzExampleOverlay)),void 0!==e.successOverlay&&(this.successOverlay=new Oe(e.successOverlay)),void 0!==e.sound&&(this.sound=new r.AB(e.sound)),void 0!==e.vibration&&(this.vibration=new r.Hx(e.vibration))}}var Fe=n(2176);const Be=["DARK","LIGHT","HIDDEN"],Pe=["SOLID","GRADIENT","HIDDEN"],xe=["AUTO","FULL_HD","UHD"];class ke{constructor(e={}){}}!function(e){e.documentScanner="rtuui_document_scanner"}(ke||(ke={}));class Ve{constructor(e={}){}}!function(e){e.acknowledge="acknowledge"}(Ve||(Ve={}));class Ue{constructor(e={}){if(this.values=[],void 0===e.feature)throw new Error("feature must be present in constructor argument");if(this.feature=e.feature,void 0===e.category)throw new Error("category must be present in constructor argument");if(this.category=e.category,void 0===e.name)throw new Error("name must be present in constructor argument");this.name=e.name,void 0!==e.values&&(this.values=e.values.map((e=>e)))}}class Ze{constructor(e={}){}}!function(e){e.importedImageQualityResult="imported_image_quality_result",e.scannedImageQualityResult="scanned_image_quality_result",e.proceedImage="proceed_with_image",e.retakeImage="retake_image"}(Ze||(Ze={}));class We{constructor(e={}){}}!function(e){e.scannedImageQualityResult=new Ue({feature:"rtuui_document_scanner",category:"acknowledge",name:"scanned_image_quality_result"}),e.importedImageQualityResult=new Ue({feature:"rtuui_document_scanner",category:"acknowledge",name:"imported_image_quality_result"}),e.proceedWithImage=new Ue({feature:"rtuui_document_scanner",category:"acknowledge",name:"proceed_with_image"}),e.retakeImage=new Ue({feature:"rtuui_document_scanner",category:"acknowledge",name:"retake_image"})}(We||(We={}));var He=n(8350)},5296:(e,t,n)=>{"use strict";n.d(t,{$5:()=>E});class i extends Error{constructor(){super(...arguments),this.errorType="UnknownError"}}class r extends Error{constructor(){super(...arguments),this.errorType="InvalidLicense"}}class o extends Error{constructor(){super(...arguments),this.errorType="NullPointer"}}class a extends Error{constructor(){super(...arguments),this.errorType="InvalidArgument"}}class s extends Error{constructor(){super(...arguments),this.errorType="InvalidImageRef"}}class c extends Error{constructor(){super(...arguments),this.errorType="ComponentUnavailable"}}class l extends Error{constructor(){super(...arguments),this.errorType="IllegalState"}}class u extends Error{constructor(){super(...arguments),this.errorType="IoError"}}class d extends Error{constructor(){super(...arguments),this.errorType="InvalidData"}}class m extends Error{constructor(){super(...arguments),this.errorType="OperationCanceled"}}class h extends Error{constructor(){super(...arguments),this.errorType="OutOfMemory"}}class p extends Error{constructor(){super(...arguments),this.errorType="Timeout"}}function E(e,t,n){const E=n?{cause:n}:void 0;switch(e){case"UnknownError":return new i(t,E);case"InvalidLicense":return new r("Your license is not valid to use this feature of the ScanbotSDK. This can be because of one of the following reasons: \n 1) You did not successfully initialize the SDK with your license. \n 2) Your license expired \n 3) Your license does not allow the use of this feature of the ScanbotSDK",E);case"NullPointer":return new o(t,E);case"InvalidArgument":return new a(t,E);case"InvalidImageRef":return new s(t,E);case"ComponentUnavailable":return new c(t,E);case"IllegalState":return new l(t,E);case"IoError":return new u(t,E);case"InvalidData":return new d(t,E);case"OperationCanceled":return new m(t,E);case"OutOfMemory":return new h(t,E);case"Timeout":return new p(t,E);default:throw new Error(t)}}},5319:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(6314),r=n.n(i)()((function(e){return e[1]}));r.push([e.id,"\n.scanbot-shutter-fade-in {\n opacity: 1;\n}\n\n.scanbot-shutter-fade-out {\n opacity: 0;\n}\n\n.scanbot-shutter-rotate {\n animation: scanbot-shutter-rotating linear infinite;\n}\n\n.scanbot-shutter-pulse-fast {\n animation: scanbot-shutter-pulsing 1s ease-in-out infinite;\n}\n\n.scanbot-shutter-button {\n position: relative;\n width: 64px;\n height: 64px;\n left: 50%;\n bottom: 18px;\n transform: translate(-50%, -100%);\n z-index: 1000;\n}\n\n.scanbot-shutter-button-part {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n transition: opacity 0.5s ease-in-out;\n}\n\n@keyframes scanbot-shutter-rotating {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes scanbot-shutter-pulsing {\n 0% {\n opacity: 0.25;\n }\n 50% {\n opacity: 0.8;\n }\n 100% {\n opacity: 0.25;\n }\n}\n",""]);const o=r},5581:(e,t,n)=>{"use strict";n.d(t,{u:()=>b});var i=n(4896),r=n(4151),o=n(8667),a=n(2880),s=n(9338),c=n(8627),l=n(7828),u=n(1374),d=n(6244),m=n(170),h=n(930),p=n(7684),E=n(4480),A=n(1427),g=n(10),f=n(5991),C=n(2504),_=n(7049),D=n(7581),y=n(8233),I=n(2177),v=n(5630),N=n(5905),S=n(1855);class b{constructor(e){this.workerBridge=e,this.BarcodeDocumentParser={create:(e=i.ix.all)=>h.v.create(this.workerBridge,e)},this.BarcodeScanner={create:(e=new r.zQ({}))=>p.v.create(this.workerBridge,e)},this.CheckScanner={create:(e=new o.Bp({}))=>E.p.create(this.workerBridge,e)},this.CreditCardScanner={create:(e=new a.kY({}))=>A.g.create(this.workerBridge,e)},this.DocumentClassifier={create:e=>g.x.create(this.workerBridge,e)},this.DocumentDataExtractor={create:(e=new s.sO({}))=>f.M.create(this.workerBridge,e)},this.DocumentQualityAnalyzer={create:(e=new c.TM({}))=>C.t.create(this.workerBridge,e)},this.DocumentScanner={create:(e=new l.A9({}))=>_.A.create(this.workerBridge,e)},this.ImageManipulator={create:()=>D.S.create(this.workerBridge)},this.ImageProcessor={create:()=>y.C.create(this.workerBridge)},this.MrzScanner={create:(e=new u.Wy({}))=>I.s.create(this.workerBridge,e)},this.MrzParser={create:(e=new u.jO({}))=>I.z.create(this.workerBridge,e)},this.OcrEngine={create:()=>v.x.create(this.workerBridge)},this.TextPatternScanner={create:(e=new d.Qr({}))=>N.g.create(this.workerBridge,e)},this.VinScanner={create:(e=new m.mN({}))=>S.g.create(this.workerBridge,e)}}}},5630:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var i=n(525),r=n(2635),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e){return o(this,void 0,void 0,(function*(){const t=yield e.copyArgs.OcrEngine.create();return new a(e,t)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.OcrEngine.run(this.objectId,e);return{result:new r.YW(o.result),originalImage:new i._(o.originalImage)}}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.OcrEngine.destroy(this.objectId)}))}}},5759:(e,t,n)=>{"use strict";n.d(t,{hI:()=>i.hI});var i=n(177)},5905:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var i=n(525),r=n(6244),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new r.Qr({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.TextPatternScanner.create(new r.Qr(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.TextPatternScanner.run(this.objectId,e);return{result:new r.n_(o.result),originalImage:new i._(o.originalImage)}}))}cleanRecognitionQueue(){return o(this,void 0,void 0,(function*(){const e=this.workerBridge.copyArgs;return yield e.TextPatternScanner.cleanRecognitionQueue(this.objectId)}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.TextPatternScanner.destroy(this.objectId)}))}}},5933:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var i=n(8763),r=n(376),o=n(7907),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class s extends i.Ay.Component{constructor(e){super(e),this.orientationchangeCallback=this.orientationChanged.bind(this),this.state={orientation:window.orientation,stream:void 0}}orientationChanged(e){this.setState({orientation:window.orientation})}setDeviceIdInConstraints(e){var t,n;return a(this,void 0,void 0,(function*(){const i=this.props.preferredCamera;if(i)try{const t=(yield navigator.mediaDevices.enumerateDevices()).find((e=>e.deviceId===i||e.label===i));if(t)return Object.assign(Object.assign({},e),{deviceId:{exact:t.deviceId}})}catch(e){throw r.F.enumerateDevicesFailed()}else{const i={user:"front",environment:"back"},r=(null===(t=null==e?void 0:e.facingMode)||void 0===t?void 0:t.ideal)||(null===(n=null==e?void 0:e.facingMode)||void 0===n?void 0:n.exact)||(null==e?void 0:e.facingMode);if("string"==typeof r&&r in i){yield o.VY.INSTANCE.load();const t=o.VY.INSTANCE.getMainCamera(i[r]);if(t)return Object.assign(Object.assign({},e),{deviceId:{exact:t.deviceId}})}}return e}))}componentDidMount(){return a(this,void 0,void 0,(function*(){window.addEventListener("orientationchange",this.orientationchangeCallback),yield this.refreshStream()}))}refreshStream(){var e,t,n,i,o,s,c,l;return a(this,void 0,void 0,(function*(){if(r.F.hasCheckedPermission()||(yield r.F.tryCheckPermission()),r.F.hasDeniedPermission())null===(t=(e=this.props).onError)||void 0===t||t.call(e,r.F.permissionDenied());else try{const e={video:yield this.setDeviceIdInConstraints(this.props.videoConstraints)};if(!navigator.mediaDevices){const e=r.F.unknown();return null===(i=(n=this.props).onError)||void 0===i||i.call(n,e),void console.log(e)}this.stopCurrentStreams();try{const t=yield navigator.mediaDevices.getUserMedia(e);this.setState({stream:t},(()=>{var e,n,i,r;null===(n=(e=this.props).onStreamChanged)||void 0===n||n.call(e,t),null===(r=(i=this.props).onReady)||void 0===r||r.call(i)}))}catch(e){const t=r.F.mediaDeviceNotFound();return null===(s=(o=this.props).onError)||void 0===s||s.call(o,t),void console.error(t)}}catch(e){const t=r.F.createFromDOMException(e);return null===(l=(c=this.props).onError)||void 0===l||l.call(c,t),void console.error(t)}}))}stopCurrentStreams(){const e=this.state.stream,t=null==e?void 0:e.getTracks();t&&t.forEach((e=>{e.stop()}))}componentWillUnmount(){window.removeEventListener("orientationchange",this.orientationchangeCallback),this.state.stream&&(this.state.stream.getVideoTracks&&this.state.stream.getAudioTracks&&(this.state.stream.getVideoTracks().forEach((e=>e.stop())),this.state.stream.getAudioTracks().forEach((e=>e.stop()))),this.setState({stream:void 0}))}render(){return this.props.children}updateTorch(e){return a(this,void 0,void 0,(function*(){const t=[{torch:e}];yield this.state.stream.getVideoTracks()[0].applyConstraints({advanced:t})}))}getCapabilities(){if(this.state.stream.getVideoTracks){const e=this.getVideoTrack();return s.getMediaTrackCapabilities(e)}}static getMediaTrackCapabilities(e){if(e&&e.getCapabilities)return e.getCapabilities()}getVideoTrack(){const e=this.state.stream.getVideoTracks();if(e.length>0)return e[0]}}var c=n(4751),l=n(6437),u=n(7424),d=n(8193);class m{static isSupported(){return!!document.createElement("canvas").getContext("webgl")}constructor(){this._type="WebGL",this.canvas=document.createElement("canvas");const e=this.gl=this.canvas.getContext("webgl",{willReadFrequently:!0}),t=e.createTexture();e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR);const n=e.createShader(e.VERTEX_SHADER);e.shaderSource(n,"attribute vec2 p;void main(){ gl_Position = vec4(p,0,1);}"),e.compileShader(n);const i=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(i,"precision mediump float;uniform sampler2D texture; uniform vec2 scale; uniform vec2 offset; void main() { gl_FragColor=texture2D( texture, gl_FragCoord.xy * scale + offset );}"),e.compileShader(i);const r=this.program=e.createProgram();e.attachShader(r,n),e.attachShader(r,i),e.linkProgram(r),e.useProgram(r),e.uniform1i(e.getUniformLocation(r,"texture"),0),e.bindBuffer(e.ARRAY_BUFFER,e.createBuffer()),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),e.STATIC_DRAW),e.enableVertexAttribArray(0),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0)}getImageData(e,t,n,i,r,o,a,s){let c,l;if(o=Math.floor(o),a=Math.floor(a),t=Math.floor(t),n=Math.floor(n),i=Math.floor(i),r=Math.floor(r),e instanceof HTMLVideoElement)[l,c]=[e.videoWidth,e.videoHeight];else{if(!(e instanceof HTMLCanvasElement))throw new Error("Unsupported source type");[l,c]=[e.width,e.height]}(l<t+i||c<n+r)&&u.A.debug("Crop region exceeds source video dimensions. This can happen when the screen is resized or rotated and the video has not yet changed its size. Most likely, the frame we analyzed now contains some garbage data. This is not a problem, unless it happens very frequently.");const m=this.gl;this.canvas.width=o,this.canvas.height=a,m.viewport(0,0,o,a);const h=[i/(o*l),r/(a*c)],p=[t/l,n/c];return m.uniform2fv(m.getUniformLocation(this.program,"scale"),h),m.uniform2fv(m.getUniformLocation(this.program,"offset"),p),m.texImage2D(m.TEXTURE_2D,0,m.RGB,m.RGB,m.UNSIGNED_BYTE,e),m.drawArrays(m.TRIANGLES,0,6),(null==s?void 0:s.byteLength)!==o*a*4&&(s=new Uint8ClampedArray(o*a*4),d.U.INSTANCE.values.set("WebGLNumBufferAllocations",(d.U.INSTANCE.values.get("WebGLNumBufferAllocations")||0)+1)),m.readPixels(0,0,o,a,m.RGBA,m.UNSIGNED_BYTE,s),new ImageData(s,o,a)}}class h{constructor(){this._type="TwoD",this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0,alpha:!1}),this.ctx.imageSmoothingEnabled=!1}getImageData(e,t,n,i,r,o,a,s){return this.canvas.width=o,this.canvas.height=a,this.ctx.drawImage(e,t,n,i,r,0,0,o,a),this.ctx.getImageData(0,0,o,a)}}var p=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class E extends i.Ay.Component{constructor(e){super(e),this.videoLoaded=!1,this.reloadCanvas=!0,this.swapCameraEnabled=!0,this.activeCamera=void 0,this.save=!1,this._reusableImageBuffer=null,this.onStreamChanged=e=>{this.video.srcObject=e,this.updateCameraInfo(e),this.video.addEventListener("resize",(e=>{this.reloadCanvas=!0}),!1),this.video.addEventListener("loadeddata",(e=>{this.videoLoaded=!0,this.didLoadVideo&&this.didLoadVideo()}),!1)},this.state={facingModeBack:"environment"===this.props.videoConstraints.facingMode,mirrored:this.props.mirrored,deviceId:void 0}}videoSize(){const{clientVideoWidth:e,clientVideoHeight:t}=this.calculateClientVideoConstraints();return new c.o(e,t)}saveExtractedData(){this.save=!0}zoom(){var e;return null!==(e=this.props.zoom)&&void 0!==e?e:1}get previewMode(){var e,t;return null!==(t=null===(e=this.props.configuration)||void 0===e?void 0:e.previewMode)&&void 0!==t?t:"FILL_IN"}get fitPreview(){return"FIT_IN"===this.previewMode}imageCapture(){if(this.capture)return this.capture;const e=this.videoStream.getVideoTrack();return this.capture=new ImageCapture(e),this.capture}set reusableImageBuffer(e){let t=e.__image_data;this._reusableImageBuffer=t.data}createImageData(e=0,t){return p(this,void 0,void 0,(function*(){if(!this.video||!this.videoLoaded)return;const n=this.getCanvasRenderingContext();if(!n)return;if(t){const e=yield this.imageCapture().takePhoto(),t=yield createImageBitmap(e);u.A.debug("Bitmap size: "+t.width+"x"+t.height);const n=this.windowSize(),i=t.height/(n.height+n.y),r=n.width*i,o=n.height*i,a=t.width/2-r/2,s=n.y*i,c=new l.w(a,s,r,o),d=document.createElement("canvas"),m=d.getContext("2d",{willReadFrequently:!1,alpha:!1});m.canvas.width=t.width,m.canvas.height=t.height,m.drawImage(t,0,0,t.width,t.height);const h=m.getImageData(c.x,c.y,c.width,c.height);return d.remove(),h}let{videoWidth:i,videoHeight:r}=this.video,{clientVideoWidth:o,clientVideoHeight:a,coef:s}=this.calculateClientVideoConstraints();if(0===s)return;const c=this.finderFrame||new l.w(0,0,o,a);if(c.width<=0||c.height<=0)return;const d=this.zoom(),m=(i-o/d)/2,h=(r-a/d)/2;let p=c.x/s+m,E=c.y/s+h;const A=this.finderFrame?s:d;let g=c.width/A,f=c.height/A;if(this.fitPreview){i/r>o/a?(p=0,E=(a-r)/2):(E=0,p=(o-i)/2),g=i,f=r,e=o}const C=this.calculateFrameSize(e,g,f);return n.getImageData(this.video,p,E,g,f,C.width,C.height,this._reusableImageBuffer)}))}windowSize(){var e;const t=this.props.configuration;if(!t.container&&!t.containerId)return l.w.fromDOMRect(this.video.getBoundingClientRect());const n=null!==(e=t.container)&&void 0!==e?e:document.getElementById(t.containerId);if(!n)throw new Error("Container DOM element is required to calculate window size and snap image.");return l.w.fromDOMRect(n.getBoundingClientRect())}calculateClientVideoConstraints(){let{videoWidth:e,videoHeight:t}=this.video,n=this.video.getBoundingClientRect(),i=e,r=t,o=1;return n.width/n.height<=e/t?(o=n.height/t,o>0&&(i=n.width/o)):(o=n.width/e,o>0&&(r=n.height/o)),{clientVideoWidth:i,clientVideoHeight:r,coef:o}}calculateFrameSize(e,t,n){let i=t,r=n;if(e>0&&0!=t&&0!=n){const o=t/n;t>n?(i=t>e?e:t,r=i/o):(r=n>e?e:n,i=r*o)}return new c.o(i,r)}getCanvasRenderingContext(){return this.video?0===this.video.videoWidth?null:(this.canvas&&!this.reloadCanvas||(this.canvas&&this.releaseCanvas(),this.canvas=m.isSupported()?new m:new h,this.reloadCanvas=!1),this.canvas):null}releaseCanvas(){this.canvas&&(this.canvas=null)}componentWillUnmount(){this.releaseCanvas(),this.video=null,this.videoStream=null}style(){var e;const t={display:"block",width:100*this.zoom()+"%",height:100*this.zoom()+"%",left:`${this.zoomMargin()}%`,top:`${this.zoomMargin()}%`,position:"relative",objectFit:this.fitPreview?"contain":"cover",backgroundColor:null===(e=this.props.configuration)||void 0===e?void 0:e.backgroundColor};return this.state.mirrored&&(t.transform="scaleX(-1)"),t}zoomMargin(){const e=this.zoom();return 1===e?0:(1-e)/2*100}render(){const{videoConstraints:e,onReady:t,onError:n}=this.props;return e.facingMode=this.state.facingModeBack?{ideal:"environment"}:{ideal:"user"},i.Ay.createElement(s,{videoConstraints:e,preferredCamera:this.state.deviceId||this.props.preferredCamera,onReady:t,onStreamChanged:this.onStreamChanged,onError:n,ref:e=>{this.videoStream=e}},i.Ay.createElement("video",{autoPlay:!0,muted:!0,playsInline:!0,className:"scanbot-camera-view",ref:e=>{this.video=e},style:this.style()}))}setDirection(e){this.props.videoConstraints.facingMode={ideal:e},this.setState({facingModeBack:"environment"===e,mirrored:"user"===e},(()=>p(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0}))))}swapCameraFacing(e){if(this.swapCameraEnabled){this.swapCameraEnabled=!1;const t=!this.state.facingModeBack,n=t?"environment":"user";this.props.videoConstraints.facingMode=!0===e?{exact:n}:{ideal:n},this.setState({facingModeBack:t,mirrored:!t},(()=>p(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0}))))}}switchCamera(e,t,n){return p(this,void 0,void 0,(function*(){this.swapCameraEnabled&&(this.swapCameraEnabled=!1,this.props.videoConstraints.facingMode=void 0,this.setState({facingModeBack:n?"back"===n:this.state.facingModeBack,mirrored:null!=t?t:this.state.mirrored,deviceId:e},(()=>p(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0})))))}))}updateCameraInfo(e){this.activeCamera=o.VY.getCameraInfoFromStream(e)}getActiveCameraInfo(){return this.activeCamera}setTorchState(e){if(this.activeCamera&&this.activeCamera.supportsTorchControl){return this.videoStream.getVideoTrack().applyConstraints({advanced:[{torch:e}]})}return Promise.reject("Torch is not supported for current camera.")}}},5991:(e,t,n)=>{"use strict";n.d(t,{M:()=>s});var i=n(9338),r=n(6396),o=n(525),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class s{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new i.sO({})){return a(this,void 0,void 0,(function*(){const n=yield e.copyArgs.DocumentDataExtractor.create(new i.sO(t));return new s(e,n)}))}run(e,t="COPY_IMAGE"){return a(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,r=yield n.DocumentDataExtractor.run(this.objectId,e);return{result:new i.qc(r.result),originalImage:new o._(r.originalImage)}}))}clearResult(){return a(this,void 0,void 0,(function*(){const e=this.workerBridge.copyArgs;return yield e.DocumentDataExtractor.clearResult(this.objectId)}))}verifyDocument(e){return a(this,void 0,void 0,(function*(){const t=this.workerBridge.copyArgs;return yield t.DocumentDataExtractor.verifyDocument(this.objectId,e.map((e=>new r.$G(e))))}))}destroy(){return a(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.DocumentDataExtractor.destroy(this.objectId)}))}}},6244:(e,t,n)=>{"use strict";n.d(t,{Cq:()=>l,Ib:()=>s,Qr:()=>u,RT:()=>c,S7:()=>r,n_:()=>a,se:()=>o,sr:()=>i});const i=["WILDCARD","REGEX"];class r{constructor(e={}){if(this.recognitionConfidence=0,void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.boundingRect)throw new Error("boundingRect must be present in constructor argument");this.boundingRect={x:e.boundingRect.x,y:e.boundingRect.y,width:e.boundingRect.width,height:e.boundingRect.height},void 0!==e.recognitionConfidence&&(this.recognitionConfidence=e.recognitionConfidence)}}class o{constructor(e={}){if(void 0===e.symbol)throw new Error("symbol must be present in constructor argument");if(this.symbol=e.symbol,void 0===e.boundingRect)throw new Error("boundingRect must be present in constructor argument");if(this.boundingRect={x:e.boundingRect.x,y:e.boundingRect.y,width:e.boundingRect.width,height:e.boundingRect.height},void 0===e.recognitionConfidence)throw new Error("recognitionConfidence must be present in constructor argument");this.recognitionConfidence=e.recognitionConfidence}}class a{constructor(e={}){if(this.confidence=0,this.validationSuccessful=!1,void 0===e.rawText)throw new Error("rawText must be present in constructor argument");if(this.rawText=e.rawText,void 0===e.wordBoxes)throw new Error("wordBoxes must be present in constructor argument");if(this.wordBoxes=e.wordBoxes.map((e=>new r(e))),void 0===e.symbolBoxes)throw new Error("symbolBoxes must be present in constructor argument");this.symbolBoxes=e.symbolBoxes.map((e=>new o(e))),void 0!==e.confidence&&(this.confidence=e.confidence),void 0!==e.validationSuccessful&&(this.validationSuccessful=e.validationSuccessful)}}var s;!function(e){e.from=function(e){const t=e._type;switch(t){case"DefaultContentValidator":return new c(e);case"PatternContentValidator":return new l(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(s||(s={}));class c{constructor(e={}){this._type="DefaultContentValidator",this.allowedCharacters="",void 0!==e.allowedCharacters&&(this.allowedCharacters=e.allowedCharacters)}}class l{constructor(e={}){if(this._type="PatternContentValidator",this.allowedCharacters="",this.matchSubstring=!1,this.patternGrammar="WILDCARD",void 0!==e.allowedCharacters&&(this.allowedCharacters=e.allowedCharacters),void 0===e.pattern)throw new Error("pattern must be present in constructor argument");this.pattern=e.pattern,void 0!==e.matchSubstring&&(this.matchSubstring=e.matchSubstring),void 0!==e.patternGrammar&&(this.patternGrammar=e.patternGrammar)}}class u{constructor(e={}){this.ocrResolutionLimit=0,this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualScanningResult=2,this.optimizeSingleLine=!1,this.validator=new c({}),void 0!==e.ocrResolutionLimit&&(this.ocrResolutionLimit=e.ocrResolutionLimit),void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualScanningResult&&(this.minimumNumberOfRequiredFramesWithEqualScanningResult=e.minimumNumberOfRequiredFramesWithEqualScanningResult),void 0!==e.optimizeSingleLine&&(this.optimizeSingleLine=e.optimizeSingleLine),void 0!==e.validator&&(this.validator=s.from(e.validator))}}},6302:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var i=n(4537);class r{constructor(e,t){this.x=e,this.y=t}static toPolygon(e,t){return[r.scaleDownTo(e[0],t),r.scaleDownTo(e[1],t),r.scaleDownTo(e[2],t),r.scaleDownTo(e[3],t)]}static scaleToPoint(e,t,n,i){return new r(i*(e.x-t),i*(e.y-n))}static scaleListToHtmlElement(e,t,n){return e.map((e=>r.scaleToHtmlElement(e,t,n)))}static scaleToHtmlElement(e,t,n){return new r(e.x*(n.clientWidth/t.width),e.y*(n.clientHeight/t.height))}static scaleUpTo(e,t){return new r(e.x*t.width,e.y*t.height)}static scaleDownTo(e,t){return new r(e.x/t.width,e.y/t.height)}static fromHtmlElement(e){return new r(e.offsetLeft,e.offsetTop)}static withScale(e,t,n){return new r(e/n,t/n)}static fromCoordinates(e,t,n,i){if(!e||!t)return new r(0,0);const o=new r(e,t);return i=null!=i?i:1,1===(n=n?n%4:0)?r.withScale(o.y,-o.x,i):2===n?r.withScale(-o.x,-o.y,i):3===n?r.withScale(-o.y,o.x,i):r.withScale(o.x,o.y,i)}static centerOf(e){const t=e.reduce(((e,t)=>e+t.x),0)/e.length,n=e.reduce(((e,t)=>e+t.y),0)/e.length;return new r(t,n)}static smallerSizeOfQuad(e){const t=Math.max(...e.map((e=>e.x)))-Math.min(...e.map((e=>e.x))),n=Math.max(...e.map((e=>e.y)))-Math.min(...e.map((e=>e.y)));return Math.min(t,n)}static empty(){return new r(0,0)}static centerX(e){if(e)return(r.highestX(e)+r.lowestX(e))/2}static highestX(e){if(e)return Math.max(...e.map((e=>e.x)))}static lowestX(e){if(e)return Math.min(...e.map((e=>e.x)))}static lowestY(e){if(e)return Math.min(...e.map((e=>e.y)))}static highestY(e){if(e)return Math.max(...e.map((e=>e.y)))}static width(e){if(e)return r.highestX(e)-r.lowestX(e)}static left(e){if(e)return e.reduce(((e,t)=>e.x<t.x?e:t))}static right(e){if(e)return e.reduce(((e,t)=>e.x>t.x?e:t))}static toSvgString(e){if(void 0!==e)return e.map((e=>`${e.x.toFixed(2)},${e.y.toFixed(2)}`)).join(" ")}static toSvgPathStringWithRoundedCorners(e,t=0){if(void 0===e)return;function n(e,t,n){const i=Math.atan2(e.y-t.y,e.x-t.x);return{x:e.x-n*Math.cos(i),y:e.y-n*Math.sin(i)}}let i="";const o=n(e[0],e[1],r.distance(e[0],e[1])/2);i+=`M ${o.x} ${o.y}`;for(let o=0;o<e.length;o++){const a=e[o],s=e[(o+1)%e.length],c=e[(o+2)%e.length],l=n(s,c,r.distance(s,c)/2),u=Math.abs(Math.atan2(s.y-a.y,s.x-a.x)-Math.atan2(s.y-c.y,s.x-c.x)),d=u>Math.PI?2*Math.PI-u:u,m=Math.min(Math.sqrt(Math.pow(s.x-a.x,2)+Math.pow(s.y-a.y,2)),Math.sqrt(Math.pow(s.x-c.x,2)+Math.pow(s.y-c.y,2))),h=Math.min(t,m*Math.tan(d/2)/2),p=Math.abs(h/Math.tan(d/2)),E=(s.x-a.x)*(s.y-c.y)-(s.x-c.x)*(s.y-a.y)<0?1:0,A=n(s,a,p),g=n(s,c,p);i+=` L${A.x} ${A.y}`,i+=` A${h} ${h} 0 0 ${E} ${g.x} ${g.y}`,i+=` L${l.x} ${l.y}`}return i+" Z"}static distance(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}static subtract(e,t){return new r(e.x-t.x,e.y-t.y)}static add(e,t){return new r(e.x+t.x,e.y+t.y)}static multiply(e,t){return new r(e.x*t,e.y*t)}static cross(e,t){return e.x*t.y-e.y*t.x}static clamp(e,t){return new r((0,i.q)(e.x,0,t.width),(0,i.q)(e.y,0,t.height))}}},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);i&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},6396:(e,t,n)=>{"use strict";n.d(t,{$G:()=>m,D0:()=>u,Dq:()=>d,PU:()=>l,S5:()=>o,YA:()=>c,oB:()=>a,yJ:()=>s});var i=n(3415),r=n(525);class o{constructor(e={}){if(void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");this.confidence=e.confidence}}const a=["INVALID","OBSTRUCTED","NONE","CONFIRMED","INFERRED","VALID","IGNORED"],s=["ISO_DATE","ISO_COUNTRY_ALPHA_2","ISO_COUNTRY_ALPHA_3","ISO_COUNTRY_NUMERIC","ISO_COUNTRY_NAME","GENDER"];class c{constructor(e={}){if(void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=e.type,void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class l{constructor(e={}){if(this.listIndex=null,void 0===e.name)throw new Error("name must be present in constructor argument");if(this.name=e.name,void 0===e.fullName)throw new Error("fullName must be present in constructor argument");if(this.fullName=e.fullName,void 0===e.normalizedName)throw new Error("normalizedName must be present in constructor argument");if(this.normalizedName=e.normalizedName,void 0===e.commonType)throw new Error("commonType must be present in constructor argument");this.commonType=null!=e.commonType&&i.W.includes(e.commonType)?e.commonType:null,void 0!==e.listIndex&&(this.listIndex=null!=e.listIndex?e.listIndex:null)}}class u{constructor(e={}){if(this.confidenceWeight=1,this.image=null,this.validationStatus="NONE",this.parsedData=[],void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=new l(e.type),void 0===e.value)throw new Error("value must be present in constructor argument");if(this.value=null!=e.value?new o(e.value):null,void 0!==e.confidenceWeight&&(this.confidenceWeight=e.confidenceWeight),void 0!==e.image&&(this.image=null!=e.image?new r._(e.image):null),void 0===e.polygonInRoot)throw new Error("polygonInRoot must be present in constructor argument");this.polygonInRoot=e.polygonInRoot.map((e=>({x:e.x,y:e.y}))),void 0!==e.validationStatus&&(this.validationStatus=e.validationStatus),void 0!==e.parsedData&&(this.parsedData=e.parsedData.map((e=>new c(e))))}}class d{constructor(e={}){if(this.listIndex=null,void 0===e.name)throw new Error("name must be present in constructor argument");if(this.name=e.name,void 0===e.fullName)throw new Error("fullName must be present in constructor argument");if(this.fullName=e.fullName,void 0===e.normalizedName)throw new Error("normalizedName must be present in constructor argument");this.normalizedName=e.normalizedName,void 0!==e.listIndex&&(this.listIndex=null!=e.listIndex?e.listIndex:null)}}class m{constructor(e={}){if(this.crop=null,this.confidence=0,this.confidenceWeight=0,void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=new d(e.type),void 0===e.fields)throw new Error("fields must be present in constructor argument");if(this.fields=e.fields.map((e=>new u(e))),void 0===e.children)throw new Error("children must be present in constructor argument");if(this.children=e.children.map((e=>new m(e))),void 0===e.quad)throw new Error("quad must be present in constructor argument");if(this.quad=e.quad.map((e=>({x:e.x,y:e.y}))),void 0===e.quadInRoot)throw new Error("quadInRoot must be present in constructor argument");this.quadInRoot=e.quadInRoot.map((e=>({x:e.x,y:e.y}))),void 0!==e.crop&&(this.crop=null!=e.crop?new r._(e.crop):null),void 0!==e.confidence&&(this.confidence=e.confidence),void 0!==e.confidenceWeight&&(this.confidenceWeight=e.confidenceWeight)}}},6437:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});var i=n(4751);class r{constructor(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i}scaleDown(e){return new r(this.x/e,this.y/e,this.width/e,this.height/e)}bottom(){return this.y+this.height}size(){return new i.o(this.width,this.height)}static withSize(e,t){return new r(0,0,e,t)}static empty(){return new r(0,0,0,0)}static fromRect(e){return e?new r(e.x,e.y,e.width,e.height):r.empty()}static fromPoint(e,t){return new r(e.x-t/2,e.y-t/2,t,t)}static fromDOMRect(e){return new r(e.x,e.y,e.width,e.height)}}},7047:(e,t,n)=>{"use strict";n.d(t,{FI:()=>i,_h:()=>s,aT:()=>c,eE:()=>o,yv:()=>a});var i,r=n(4169);!function(e){e.from=function(e){const t=e._type;switch(t){case"MrzIntroDefaultImage":return new o(e);case"MrzIntroNoImage":return new a(e);case"MrzIntroCustomImage":return new s(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(i||(i={}));class o{constructor(e={}){this._type="MrzIntroDefaultImage"}}class a{constructor(e={}){this._type="MrzIntroNoImage"}}class s{constructor(e={}){if(this._type="MrzIntroCustomImage",void 0===e.uri)throw new Error("uri must be present in constructor argument");this.uri=e.uri}}class c{constructor(e={}){this.image=new o({}),this.backgroundColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.handlerColor="?sbColorOutline",this.showAutomatically=!1,this.title=new r.D7({text:"?introScreenTitle",color:"?sbColorOnSurface"}),this.explanation=new r.D7({text:"?introScreenText",color:"?sbColorOnSurface"}),this.doneButton=new r.z1({text:"?introScreenDoneButton",accessibilityDescription:"?accessibilityDescriptionIntroScreenDoneButton",background:new r.se({strokeColor:"#00000000",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})}),void 0!==e.image&&(this.image=i.from(e.image)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.handlerColor&&(this.handlerColor=e.handlerColor),void 0!==e.showAutomatically&&(this.showAutomatically=e.showAutomatically),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.explanation&&(this.explanation=new r.D7(e.explanation)),void 0!==e.doneButton&&(this.doneButton=new r.z1(e.doneButton))}}},7049:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(7828),r=n(525),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new i.A9({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.DocumentScanner.create(new i.A9(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.DocumentScanner.run(this.objectId,e);return{result:new i.aJ(o.result),originalImage:new r._(o.originalImage)}}))}scan(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.DocumentScanner.scan(this.objectId,e);return{result:new i.EU(o.result),originalImage:new r._(o.originalImage)}}))}clearResult(){return o(this,void 0,void 0,(function*(){const e=this.workerBridge.copyArgs;return yield e.DocumentScanner.clearResult(this.objectId)}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.DocumentScanner.destroy(this.objectId)}))}}},7424:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class i{static initialize(e=!1){this.verbose=e}static debug(e){this.verbose&&console.log("ScanbotSDK:",e)}static debugWarn(e){this.verbose&&console.warn("ScanbotSDK:",e)}}},7581:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var i=n(525),r=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class o{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e){return r(this,void 0,void 0,(function*(){const t=yield e.copyArgs.ImageManipulator.create();return new o(e,t)}))}cropRect(e,t,n="COPY_IMAGE"){return r(this,void 0,void 0,(function*(){const r="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield r.ImageManipulator.cropRect(this.objectId,e,{x:t.x,y:t.y,width:t.width,height:t.height});return{result:new i._(o.result),originalImage:new i._(o.originalImage)}}))}rotate(e,t,n="COPY_IMAGE"){return r(this,void 0,void 0,(function*(){const r="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield r.ImageManipulator.rotate(this.objectId,e,t);return{result:new i._(o.result),originalImage:new i._(o.originalImage)}}))}flip(e,t,n="COPY_IMAGE"){return r(this,void 0,void 0,(function*(){const r="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield r.ImageManipulator.flip(this.objectId,e,t);return{result:new i._(o.result),originalImage:new i._(o.originalImage)}}))}resize(e,t,n="COPY_IMAGE"){return r(this,void 0,void 0,(function*(){const r="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield r.ImageManipulator.resize(this.objectId,e,t);return{result:new i._(o.result),originalImage:new i._(o.originalImage)}}))}destroy(){return r(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.ImageManipulator.destroy(this.objectId)}))}}},7684:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});var i=n(4151),r=n(525),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new i.zQ({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.BarcodeScanner.create(new i.zQ(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.BarcodeScanner.run(this.objectId,e);return{result:new i.AG(o.result),originalImage:new r._(o.originalImage)}}))}clearFrameAccumulationCache(){return o(this,void 0,void 0,(function*(){const e=this.workerBridge.copyArgs;return yield e.BarcodeScanner.clearFrameAccumulationCache(this.objectId)}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.BarcodeScanner.destroy(this.objectId)}))}}},7771:(e,t,n)=>{"use strict";n.d(t,{h:()=>o,q:()=>r});var i=n(4169);class r{constructor(e={}){this.visible=!0,this.title=new i.D7({color:"?sbColorOnPrimary"}),this.background=new i.se({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow"}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.title&&(this.title=new i.D7(e.title)),void 0!==e.background&&(this.background=new i.se(e.background))}}class o{constructor(e={}){this.visible=!0,this.icon=new i.pO({color:"?sbColorOnPrimary"}),this.title=new i.D7({color:"?sbColorOnPrimary"}),this.background=new i.se({fillColor:"?sbColorSurfaceLow"}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.icon&&(this.icon=new i.pO(e.icon)),void 0!==e.title&&(this.title=new i.D7(e.title)),void 0!==e.background&&(this.background=new i.se(e.background))}}},7828:(e,t,n)=>{"use strict";n.d(t,{A9:()=>c,AE:()=>a,Bt:()=>u,EU:()=>h,Qz:()=>d,aJ:()=>m,mb:()=>s,tC:()=>o,zP:()=>l});var i=n(586),r=n(525);const o=["ML","LEGACY"];class a{constructor(e={}){this.acceptedAngleScore=75,this.acceptedSizeScore=80,this.acceptedBrightnessThreshold=0,this.acceptedAspectRatioScore=85,this.aspectRatios=[],this.ignoreOrientationMismatch=!1,void 0!==e.acceptedAngleScore&&(this.acceptedAngleScore=e.acceptedAngleScore),void 0!==e.acceptedSizeScore&&(this.acceptedSizeScore=e.acceptedSizeScore),void 0!==e.acceptedBrightnessThreshold&&(this.acceptedBrightnessThreshold=e.acceptedBrightnessThreshold),void 0!==e.acceptedAspectRatioScore&&(this.acceptedAspectRatioScore=e.acceptedAspectRatioScore),void 0!==e.aspectRatios&&(this.aspectRatios=e.aspectRatios.map((e=>new i.gl(e)))),void 0!==e.ignoreOrientationMismatch&&(this.ignoreOrientationMismatch=e.ignoreOrientationMismatch)}}class s{constructor(e={}){this.allowPartiallyVisibleDocuments=!1,this.accumulationDuration=700,this.retentionTime=1500,this.minimumBrightness=0,void 0!==e.allowPartiallyVisibleDocuments&&(this.allowPartiallyVisibleDocuments=e.allowPartiallyVisibleDocuments),void 0!==e.accumulationDuration&&(this.accumulationDuration=e.accumulationDuration),void 0!==e.retentionTime&&(this.retentionTime=e.retentionTime),void 0!==e.minimumBrightness&&(this.minimumBrightness=e.minimumBrightness)}}class c{constructor(e={}){this.engineMode="ML",this.processingMode="AUTO",this.parameters=new a({}),this.partiallyVisibleDocumentConfiguration=new s({}),void 0!==e.engineMode&&(this.engineMode=e.engineMode),void 0!==e.processingMode&&(this.processingMode=e.processingMode),void 0!==e.parameters&&(this.parameters=new a(e.parameters)),void 0!==e.partiallyVisibleDocumentConfiguration&&(this.partiallyVisibleDocumentConfiguration=new s(e.partiallyVisibleDocumentConfiguration))}}const l=["NONE","UP","UPPER_RIGHT","RIGHT","LOWER_RIGHT","DOWN","LOWER_LEFT","LEFT","UPPER_LEFT"],u=["NOT_ACQUIRED","OK","OK_BUT_TOO_SMALL","OK_BUT_BAD_ANGLES","OK_BUT_BAD_ASPECT_RATIO","OK_BUT_ORIENTATION_MISMATCH","OK_BUT_OFF_CENTER","OK_BUT_TOO_DARK","ERROR_NOTHING_DETECTED","ERROR_PARTIALLY_VISIBLE","ERROR_PARTIALLY_VISIBLE_TOO_CLOSE","ERROR_TOO_DARK","ERROR_TOO_NOISY"];class d{constructor(e={}){if(void 0===e.totalScore)throw new Error("totalScore must be present in constructor argument");if(this.totalScore=e.totalScore,void 0===e.distanceScore)throw new Error("distanceScore must be present in constructor argument");if(this.distanceScore=e.distanceScore,void 0===e.angleScore)throw new Error("angleScore must be present in constructor argument");if(this.angleScore=e.angleScore,void 0===e.sizeScore)throw new Error("sizeScore must be present in constructor argument");if(this.sizeScore=e.sizeScore,void 0===e.aspectRatioScore)throw new Error("aspectRatioScore must be present in constructor argument");if(this.aspectRatioScore=e.aspectRatioScore,void 0===e.lineCoverageScore)throw new Error("lineCoverageScore must be present in constructor argument");if(this.lineCoverageScore=e.lineCoverageScore,void 0===e.widthScore)throw new Error("widthScore must be present in constructor argument");if(this.widthScore=e.widthScore,void 0===e.heightScore)throw new Error("heightScore must be present in constructor argument");this.heightScore=e.heightScore}}class m{constructor(e={}){if(this.status="NOT_ACQUIRED",this.averageBrightness=0,this.displacement="NONE",void 0!==e.status&&(this.status=e.status),void 0===e.detectionScores)throw new Error("detectionScores must be present in constructor argument");if(this.detectionScores=new d(e.detectionScores),void 0===e.points)throw new Error("points must be present in constructor argument");if(this.points=e.points.map((e=>({x:e.x,y:e.y}))),void 0===e.horizontalLines)throw new Error("horizontalLines must be present in constructor argument");if(this.horizontalLines=e.horizontalLines.map((e=>new i.pk(e))),void 0===e.verticalLines)throw new Error("verticalLines must be present in constructor argument");if(this.verticalLines=e.verticalLines.map((e=>new i.pk(e))),void 0===e.pointsNormalized)throw new Error("pointsNormalized must be present in constructor argument");if(this.pointsNormalized=e.pointsNormalized.map((e=>({x:e.x,y:e.y}))),void 0===e.horizontalLinesNormalized)throw new Error("horizontalLinesNormalized must be present in constructor argument");if(this.horizontalLinesNormalized=e.horizontalLinesNormalized.map((e=>new i.sw(e))),void 0===e.verticalLinesNormalized)throw new Error("verticalLinesNormalized must be present in constructor argument");if(this.verticalLinesNormalized=e.verticalLinesNormalized.map((e=>new i.sw(e))),void 0===e.aspectRatio)throw new Error("aspectRatio must be present in constructor argument");if(this.aspectRatio=e.aspectRatio,void 0!==e.averageBrightness&&(this.averageBrightness=e.averageBrightness),void 0!==e.displacement&&(this.displacement=e.displacement),void 0===e.displacementVector)throw new Error("displacementVector must be present in constructor argument");this.displacementVector={x:e.displacementVector.x,y:e.displacementVector.y}}}class h{constructor(e={}){if(this.croppedImage=null,void 0===e.detectionResult)throw new Error("detectionResult must be present in constructor argument");this.detectionResult=new m(e.detectionResult),void 0!==e.croppedImage&&(this.croppedImage=null!=e.croppedImage?new r._(e.croppedImage):null)}}},7907:(e,t,n)=>{"use strict";n.d(t,{VY:()=>a});var i=n(376);class r{static isiOSBackTripleCamera(e){for(const t of Object.values(r.IOS_BACK_TRIPLE))if(e.includes(t))return!0}}r.IOS_BACK_TRIPLE={de:"Rückseitige Triple-Kamera",he:"מצלמה משולשת אחורית",ar:"كاميرا خلفية ثلاثية",el:"Πίσω τριπλή κάμερα",ja:"背面トリプルカメラ",en:"Back Triple Camera",uk:"Задня потроєна камера",es_419:"Cámara posterior triple",pt_PT:"Câmara tripla traseira",es:"Cámara trasera triple",da:"Back Triple Camera",it:"Fotocamera tripla (posteriore)",sk:"Zadná trojitá kamera",zh_CN:"后置三镜头",ms:"Tiga Kamera Belakang",sv:"Bakre trippelkamera",en_AU:"Back Triple Camera",cs:"Zadní trojný fotoaparát",ko:"후면 트리플 카메라",no:"Trippelt kamera bak",hu:"Hátsó, tripla kamera",tr:"Üçlü Arka Kamera",pl:"Tylny aparat trójobiektywowy",fr_CA:"Triple caméra arrière",vi:"Ba camera mặt sau",ru:"Задняя тройная камера",en_GB:"Back Triple Camera",fr:"Triple appareil photo arrière",fi:"Kolmoistakakamera",id:"Tiga Kamera Belakang",nl:"Back Triple Camera",th:"กล้องด้านหลังสามกล้อง",pt:"Câmera Tripla Traseira",ro:"Cameră triplă spate",zh_HK:"後置三鏡頭相機",hr:"Stražnja trostruka kamera",hi:"बैक ट्रिपल कैमरा",ca:"Càmera triple posterior",zh_TW:"後置三鏡頭相機"};var o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{static get INSTANCE(){return a._INSTANCE||(a._INSTANCE=new a),a._INSTANCE}constructor(){this.listOfCameras=[],this.strategy="FAST_DEFERRED"}initialize(e){if(e&&(this.strategy=e),"SLOW"===e||"FAST"===e){const t=e;this.load(t)}}load(e){return o(this,void 0,void 0,(function*(){if(!e)if("SLOW_DEFERRED"===this.strategy||"SLOW"===this.strategy)e="SLOW";else if("FAST_DEFERRED"===this.strategy||"FAST"===this.strategy)e="FAST";else if("NONE"===this.strategy)return this.listOfCameras;let t;if("SLOW"===e)t=this.loadSlow();else{if("FAST"!==e)throw new Error(`Unknown mode ${e}`);t=this.loadFast()}try{return this.listOfCameras=yield t,this.listOfCameras}catch(e){throw this.loadSlowResult=void 0,i.F.createFromDOMException(e)}}))}loadSlow(){return this.loadSlowResult=this.loadSlowResult||(()=>o(this,void 0,void 0,(function*(){yield this.assertPermissionsAreOk();const e=[];for(const t of yield this.getVideoDevices()){let n;try{n=yield this.getUserMedia({video:{deviceId:t.deviceId}}),e.push(a.getCameraInfoFromStream(n))}finally{this.stopStream(n),yield new Promise((e=>setTimeout(e,0)))}}return e})))(),this.loadSlowResult}loadFast(){return this.loadFastResult=this.loadFastResult||(()=>o(this,void 0,void 0,(function*(){yield this.assertPermissionsAreOk();const e=[];for(const t of yield this.getVideoDevices()){const n=a.guessparseCameraLabelFacingMode(t.label),i=a.guessparseCameraLabelMaxNumPixels(t.label);e.push({maxNumPixels:i,facingMode:n,supportsTorchControl:void 0,deviceId:t.deviceId,label:t.label})}return e})))(),this.loadFastResult}getMainCamera(e){var t,n,i,o,a,s;return null!==(s=null===(a=null===(o=null===(i=null===(n=null===(t=this.listOfCameras)||void 0===t?void 0:t.filter((t=>t.facingMode===e)))||void 0===n?void 0:n.map(((e,t)=>({camera:e,index:t}))))||void 0===i?void 0:i.sort(((e,t)=>{var n;return(r.isiOSBackTripleCamera(e.camera.label||"")?1:0)||(r.isiOSBackTripleCamera(t.camera.label||"")?1:0)||-(+e.camera.supportsTorchControl||0)-(+t.camera.supportsTorchControl||0)||-((e.camera.maxNumPixels||0)-(t.camera.maxNumPixels||0))||(null===(n=e.camera.label)||void 0===n?void 0:n.localeCompare(t.camera.label))||e.index-t.index})))||void 0===o?void 0:o[0])||void 0===a?void 0:a.camera)&&void 0!==s?s:null}getVideoDevices(){return o(this,void 0,void 0,(function*(){let e=yield navigator.mediaDevices.enumerateDevices();if(e=e.filter((e=>"videoinput"===e.kind)),e.some((e=>""===e.label))){let t;try{t=yield this.getUserMedia({video:{facingMode:{ideal:"environment"}},audio:!1}),e=yield navigator.mediaDevices.enumerateDevices(),e=e.filter((e=>"videoinput"===e.kind))}finally{this.stopStream(t)}}return e}))}stopStream(e){null==e||e.getTracks().forEach((e=>e.stop()))}static guessparseCameraLabelFacingMode(e){return function(e){const t=["rear","back","rück","arrière","trasera","trás","traseira","posteriore","后面","後面","背面","后置","後置","背置","задней","الخلفية","후","arka","achterzijde","หลัง","baksidan","bagside","sau","bak","tylny","takakamera","belakang","אחורית","πίσω","spate","hátsó","zadní","darrere","zadná","задня","stražnja","belakang","बैक"];for(const n of t)if(e.toLowerCase().includes(n.toLowerCase()))return!0;return!1}(e)?"back":"front"}static guessparseCameraLabelMaxNumPixels(e){const t=RegExp(/\b([0-9]+)mp?\b/).exec(e.toLowerCase()),n=t?1e6*parseInt(t[1],10):NaN;return Number.isNaN(n)?void 0:n}assertPermissionsAreOk(){return o(this,void 0,void 0,(function*(){if(i.F.hasCheckedPermission()||(yield i.F.tryCheckPermission()),i.F.hasDeniedPermission())throw i.F.permissionDenied();if(!navigator.mediaDevices)throw i.F.unknown()}))}static getCameraInfoFromStream(e){var t;return null===(t=e.getVideoTracks().map((e=>{var t,n,i,r,o,a;const s=null===(t=e.getCapabilities)||void 0===t?void 0:t.call(e),c=null===(n=e.getSettings)||void 0===n?void 0:n.call(e),l=e.label;let u=function(e){if("user"===(null==e?void 0:e.toLowerCase()))return"front";if("environment"===(null==e?void 0:e.toLowerCase()))return"back";return"unknown"}(null!==(r=null===(i=null==s?void 0:s.facingMode)||void 0===i?void 0:i[0])&&void 0!==r?r:c.facingMode);"unknown"===u&&(u=this.guessparseCameraLabelFacingMode(l));let d=function(e){var t,n;let i=(null===(t=null==e?void 0:e.width)||void 0===t?void 0:t.max)*(null===(n=null==e?void 0:e.height)||void 0===n?void 0:n.max);if(!i||Number.isNaN(i))return;return i}(s);Number.isNaN(d)&&(d=this.guessparseCameraLabelMaxNumPixels(l));return{facingMode:u,maxNumPixels:d,supportsTorchControl:null!==(a=null!==(o=null==s?void 0:s.torch)&&void 0!==o?o:"torch"in c)&&void 0!==a&&a,label:l,deviceId:c.deviceId}})).sort(((e,t)=>t.maxNumPixels-e.maxNumPixels)))||void 0===t?void 0:t[0]}getUserMedia(e){return o(this,void 0,void 0,(function*(){try{return yield navigator.mediaDevices.getUserMedia(e)}catch(e){throw i.F.mediaDeviceNotFound()}}))}}},8193:(e,t,n)=>{"use strict";n.d(t,{U:()=>i});class i{constructor(){this.values=new Map}}i.INSTANCE=new i},8233:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var i=n(525),r=n(177),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e){return o(this,void 0,void 0,(function*(){const t=yield e.copyArgs.ImageProcessor.create();return new a(e,t)}))}crop(e,t,n="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const r="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield r.ImageProcessor.crop(this.objectId,e,t.map((e=>({x:e.x,y:e.y}))));return{result:new i._(o.result),originalImage:new i._(o.originalImage)}}))}resize(e,t,n="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const r="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield r.ImageProcessor.resize(this.objectId,e,t);return{result:new i._(o.result),originalImage:new i._(o.originalImage)}}))}rotate(e,t,n="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const r="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield r.ImageProcessor.rotate(this.objectId,e,t);return{result:new i._(o.result),originalImage:new i._(o.originalImage)}}))}applyFilter(e,t,n="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const o="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,a=yield o.ImageProcessor.applyFilter(this.objectId,e,r.hI.from(t));return{result:new i._(a.result),originalImage:new i._(a.originalImage)}}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.ImageProcessor.destroy(this.objectId)}))}}},8350:(e,t,n)=>{"use strict";n.d(t,{$G:()=>i.$G,D0:()=>i.D0,Dq:()=>i.Dq,PU:()=>i.PU,S5:()=>i.S5,YA:()=>i.YA,oB:()=>i.oB,yJ:()=>i.yJ});var i=n(6396)},8382:(e,t,n)=>{"use strict";n.d(t,{FH:()=>s,PC:()=>c,dI:()=>a});var i=n(8763),r=n(5291),o=n(7424);(0,i.q6)(null);class a{static setPalette(e){this.palette=e}static setLocalization(e){this.localization=e}static getColorValue(e){return s(e,this.palette)}static getPolygonColorValues(e,t){return new r.PolygonStyle({fillColor:t?a.getColorValue(e.fillColor):"transparent",strokeColor:t?a.getColorValue(e.strokeColor):"transparent",strokeWidth:e.strokeWidth,cornerRadius:e.cornerRadius})}static getLocalizedText(e,t=[]){return c(e,t,this.localization)}}function s(e,t){if(e){if(e.startsWith("?")){if(!t)throw new Error("Palette is not set");const n=e.slice(1);if(n in t)return t[n];o.A.debugWarn(`Color ${n} not found in palette`)}return e}o.A.debugWarn("Color is missing")}function c(e,t=[],n){if(e.startsWith("?")){if(!n)throw new Error("Localization is not set");const t=e.slice(1);t in n?e=n[t]:o.A.debugWarn(`Text localization key ${t} was not found in the localization table`)}for(let n of t)e=e.replace("%d",n);return e}a.palette=null,a.localization=null},8480:(e,t,n)=>{"use strict";n.d(t,{A:()=>Jh});class i{}i.VERSION="8.1.0-rc.8",i.BUILD_WITH_UI=!1;var r=n(718);class o extends Error{constructor(e){super("License error!",{cause:e})}}class a extends Error{constructor(){super('Error initializing the ScanbotSDK worker. Most likely, this is caused by an incorrect enginePath parameter set during the SDK initialization. Please check your browser\'s developer tools -> "Network" tab to see if any JS or WASM files failed to load. Note that you need to set up your webserver to serve these files under a certain path and then adjust the "enginePath" parameter accordingly. Please refer to the "Initialization" section in our documentation for more information.')}}class s extends Error{constructor(e,t,n){super(`Version mismatch! Version of ScanbotSDK.(ui2.)min.js is "${t}" \nbut the version of the loaded ScanbotSDK.Core*.js file is "${n}". \nThe ScanbotSDK.Core*.js file was loaded from ${e}.`)}}var c=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class l{constructor(e,t,n){this.copyArgs=this.createProxy("copy"),this.transferArgs=this.createProxy("transfer"),this.core=new r._(e,t),this.initializationStatus=(()=>c(this,void 0,void 0,(function*(){try{yield this.core.copyArgs.initialize(...n)}catch(e){return"InvalidLicense"===(null==e?void 0:e.errorType)?new o(e):new a}let t;try{t=yield this.core.copyArgs.version()}catch(e){t="Error"}const r=i.VERSION;return t!==r?new s(e,r,t):"OK"})))(),this.api=(()=>{const e={};for(const t in this.core.api){const n=this.core.api[t];e[t]={};for(const i in n)e[t][i]=(...e)=>c(this,void 0,void 0,(function*(){return(yield this.getCoreForCommand()).api[t][i](...e)}))}return e})()}awaitInitialized(){return c(this,void 0,void 0,(function*(){yield this.getCoreForCommand()}))}createProxy(e){return new Proxy({},{get:(t,n,i)=>(...t)=>c(this,void 0,void 0,(function*(){const i=yield this.getCoreForCommand(n),r="copy"===e?i.copyArgs:i.transferArgs;return yield r[n](...t)}))})}getCoreForCommand(e=""){return c(this,void 0,void 0,(function*(){const t=yield this.initializationStatus;if("OK"===t||"getLicenseInfo"===e&&t instanceof o)return this.core;throw t}))}}var u=n(3575),d=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class m{constructor(e,t){this._sdk=e,this._pdfOperation=t}addPage(e,t={}){return d(this,void 0,void 0,(function*(){const{consumeImage:n="COPY_IMAGE",binarization:i="ENABLED_IF_BINARIZATION_FILTER_SET",runOcr:r}=t,o=this._sdk.getBridge(n);r?yield o.addPageToPdfWithOcr(this._pdfOperation,e,i):yield o.addPageToPdf(this._pdfOperation,e,i)}))}addPages(e,t){return d(this,void 0,void 0,(function*(){for(const n of e.pages){const e=yield n.finalRawImage();yield this.addPage(e,{runOcr:t})}}))}complete(){return d(this,void 0,void 0,(function*(){return yield this._sdk.bridge.copyArgs.completePdf(this._pdfOperation)}))}}var h=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class p{constructor(e,t){this._sdk=e,this._tiffOperation=t}addPage(e,t={}){return h(this,void 0,void 0,(function*(){const{binarize:n="ENABLED_IF_BINARIZATION_FILTER_SET",consumeImage:i="COPY_IMAGE"}=t,r=this._sdk.getBridge(i);yield r.addPageToTiff(this._tiffOperation,e,n)}))}addPages(e,t={}){return h(this,void 0,void 0,(function*(){for(const n of e.pages){const e=yield n.finalRawImage();yield this.addPage(e,t)}}))}complete(){return h(this,void 0,void 0,(function*(){return yield this._sdk.bridge.copyArgs.completeTiff(this._tiffOperation)}))}}var E=n(6437);class A{static toPixelSize(e){return e+"px"}static containsString(e,t){return!!e&&-1!==e.indexOf(t)}static copy(e){return JSON.parse(JSON.stringify(e))}static getProperty(e,t){if(e&&e.hasOwnProperty(t))return e[t]}static uuid(){let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=t.length;for(let i=0;i<5;i++)e+=t.charAt(Math.floor(Math.random()*n));return e}}var g=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class f{static toDataUrl(e){return new Promise(((t,n)=>{const i=new Blob([e],{type:"image/jpeg"}),r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(r.error),r.readAsDataURL(i)}))}static getObjectFitSize(e,t,n=!0){const i=t.width/t.height,r=e.width/e.height;let o=0,a=0;(n?i>r:i<r)?(o=e.width,a=o/i):(a=e.height,o=a*i);const s=(e.width-o)/2,c=(e.height-a)/2;return new E.w(s,c,o,a)}static loadFromUrl(e){return new Promise(((t,n)=>{const i=document.createElement("img");i.src=e,i.onload=()=>g(this,void 0,void 0,(function*(){const e=document.createElement("canvas");e.width=i.width,e.height=i.height;const n=e.getContext("2d");n.drawImage(i,0,0);const r=n.getImageData(0,0,i.width,i.height);t(r)})),i.onerror=n}))}static saveImageData(e){const t=this.createImageDataCanvas(e),n=" ("+e.width+"x"+e.height+")";t.toBlob((e=>this.saveBlob(e,A.uuid()+n+".png")))}static createImageDataCanvas(e){const t=document.createElement("canvas");return t.className="scanbot-sdk-canvas-element",t.width=e.width,t.height=e.height,t.getContext("2d").putImageData(e,0,0),t}static saveBlob(e,t){let n=document.createElement("a");n.setAttribute("download",t);let i=URL.createObjectURL(e);n.setAttribute("href",i),n.click()}static convertImageDataWrapperToImageData(e){if(e)return new ImageData(e.data,e.width,e.height)}static wrapperToBase64(e){return f.createImageDataCanvas(f.convertImageDataWrapperToImageData(e)).toDataURL("image/png")}static toBase64(e,t=!0){return g(this,void 0,void 0,(function*(){const n=yield new Promise((t=>{const n=new FileReader;n.onload=()=>t(n.result),n.readAsDataURL(new Blob([e]))}));return t?n.slice(n.indexOf(",")+1):n}))}static imageUrlToImageData(e){return g(this,void 0,void 0,(function*(){return new Promise(((t,n)=>{const i=document.createElement("canvas"),r=document.createElement("img");r.src=e,r.onload=()=>g(this,void 0,void 0,(function*(){i.width=r.width,i.height=r.height;const e=i.getContext("2d");e.drawImage(r,0,0);const n=e.getImageData(0,0,r.width,r.height);t(n)})),r.onerror=n}))}))}static degreesToRotation(e){switch(e){case 180:case-180:return"CLOCKWISE_180";case 90:return"CLOCKWISE_90";case-90:return"COUNTERCLOCKWISE_90";default:return"NONE"}}static degreesToRotations(e){switch(e){case 180:case-180:return 2;case-90:return 1;case 90:return 3;default:return 0}}}class C{saveImageAsJpeg(e,t){if(!e||0===e.length)return void console.log("Data cannot be null or empty");t||(t=A.uuid()+".jpeg");let n=new Blob([e],{type:"image/jpeg"});f.saveBlob(n,t)}isCameraSupported(){return!!navigator.mediaDevices}flash(){let e=this.findFlashElement();e.style.display="block",this.animateFlashOpacity("0.5",(()=>{this.animateFlashOpacity("0.0",(()=>{e.style.opacity="1.0",e.style.display="none"}))}))}findFlashElement(){return this.getOrCreateElement("flash",{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","background-color":"#fff",display:"none","z-index":"5000"})}animateFlashOpacity(e,t){const n=this.getElementByClassName("flash");setTimeout((()=>{n.style.opacity=e,t()}),150)}getOrCreateElement(e,t){let n=this.getElementByClassName(e);return n||(this.createElement(e,t),n=this.getElementByClassName(e)),n}createElement(e,t){let n=document.createElement("div");n.className=e,n.style.cssText=this.cssToString(t),document.body.append(n)}cssToString(e){let t="";return Object.keys(e).forEach((n=>{t+=n+":"+e[n]+";"})),t}getElementByClassName(e){const t=document.getElementsByClassName(e);if(0!==t.length)return t[0]}}var _=n(982),D=n(1815),y=n(3296);class I extends D.W{constructor(){super(_.J.DEFAULT_VIDEO_RESOLUTION_HD),this.scannerConfiguration=new y.TextPatternScannerConfiguration,this.onTextDetected=function(e){},this.finder.aspectRatio=new y.AspectRatio({width:6,height:1}),this.userGuidance.title.text="Please hold the device over the text to start scanning"}static fromJson(e){var t;const n=new I;return this.mapFinderConfiguration(n,e),n.scannerConfiguration=new y.TextPatternScannerConfiguration(null!==(t=e.scannerConfiguration)&&void 0!==t?t:{}),this._fromJson(n,e)}}class v extends D.W{constructor(){super(_.J.DEFAULT_VIDEO_RESOLUTION_HD),this.scannerConfiguration=new y.VinScannerConfiguration,this.onVinDetected=function(e){},this.finder.aspectRatio=new y.AspectRatio({width:6,height:1}),this.userGuidance.title.text="Please hold the device over the vehicle identification number to start scanning"}static fromJson(e){var t;const n=new v;return this.mapFinderConfiguration(n,e),n.scannerConfiguration=new y.VinScannerConfiguration(null!==(t=e.scannerConfiguration)&&void 0!==t?t:{}),this._fromJson(n,e)}}class N extends Error{constructor(e){super(e.licenseStatusMessage),this.name="LicenseError"}}class S{static throwIfMissingBuffer(e){S.throwIfMissing(e,"ImageBuffer may not be null")}static throwIfMissing(e,t){if(!e)throw new Error(t)}}var b=n(7424),M=n(8763),L=n(4730),R=n(5291);const T=window["@mui"];var O=n.n(T),w=n(8382),F=n(500);function B(e){return{textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:`${e}`,overflow:"hidden",whiteSpace:e>1?"normal":"nowrap",display:e>1?"-webkit-box":"block"}}function P(e){if(e.loading)return M.Ay.createElement(T.Skeleton,{variant:"rounded",width:e.imageSize,height:e.imageSize,style:{borderRadius:8}});if(null===e.data.barcodeImage){const t={width:e.imageSize,height:e.imageSize,backgroundColor:"#E0E0E0",borderRadius:3};return M.Ay.createElement(T.Box,{sx:t})}const t={width:e.imageSize,height:e.imageSize,borderRadius:8};return M.Ay.createElement("img",{src:e.data.barcodeImage,alt:e.data.title,style:t})}function x(e){var t,n;const i=(null===(t=e.barcodeMappedData)||void 0===t?void 0:t.state)||"LOADING",r=(null===(n=e.barcodeMappedData)||void 0===n?void 0:n.value)||{title:"",subtitle:"",barcodeImage:""},o=!e||"LOADED"!==i,a=e.imageSize,s=e.barcodeTitle.visible||e.barcodeSubtitle.visible||e.counterForm,c=e.counterForm&&{"&:hover, &:focus, &:active, &":{borderColor:w.dI.getColorValue(e.counterForm.manualCountOutlineColor),backgroundColor:"transparent"}},l=(0,M.li)(),[u,d]=(0,M.J0)("100%");return(0,M.vJ)((()=>{var t;const n=e.readonlyCount?.87:.97,i=null===(t=l.current)||void 0===t?void 0:t.parentNode,r=i&&i.clientWidth>0?i.clientWidth*n:"100%";d(r)})),M.Ay.createElement(T.Box,{ref:l,sx:{display:"flex",maxWidth:u},"data-sb-barcode-info":"1"},e.barcodeImageVisible&&M.Ay.createElement(T.Box,{sx:{pr:s?"16px":0,display:"flex",alignItems:"center",justifyContent:"center"}},M.Ay.createElement(P,{data:r,imageSize:a,loading:o})),s&&M.Ay.createElement(T.Box,{sx:{flex:1,display:"flex",flexDirection:"column",verticalAlign:"middle",justifyContent:"center",m:0,p:0,minWidth:0}},e.barcodeTitle.visible&&M.Ay.createElement(T.Box,{display:o?"block":"flex",sx:{alignItems:"center"}},M.Ay.createElement(T.Typography,{fontSize:16,fontWeight:"bold",sx:Object.assign(Object.assign(Object.assign({},B(e.maxNumberOfTitleLines)),(0,F.E_)(e.barcodeTitle)),{textOverflow:"ellipsis",overflow:"hidden",display:"inline-block"})},o?M.Ay.createElement(T.Skeleton,{variant:"text"}):r.title),e.displayRightArrow&&!o&&M.Ay.createElement(O(),{sx:{fontSize:16,fontWeight:"bold",color:w.dI.getColorValue(e.barcodeTitle.color)}})),e.barcodeSubtitle.visible&&M.Ay.createElement(T.Typography,{fontSize:14,fontWeight:400,sx:Object.assign(Object.assign({},B(e.maxNumberOfSubtitleLines)),(0,F.E_)(e.barcodeSubtitle))},o?M.Ay.createElement(T.Skeleton,{variant:"text"}):r.subtitle),e.counterForm&&M.Ay.createElement(T.ButtonGroup,{variant:"outlined"},M.Ay.createElement(T.Button,{disabled:!e.counterForm.removeButtonEnabled,sx:c,style:{opacity:e.counterForm.removeButtonEnabled?1:.3},onClick:()=>e.counterForm.setCounter(e.counterForm.counter-1),disableRipple:!0},M.Ay.createElement(O(),{sx:{color:w.dI.getColorValue(e.counterForm.manualCountChangeColor)}})),M.Ay.createElement(T.Button,{sx:Object.assign(Object.assign({},c),{color:w.dI.getColorValue(e.counterForm.manualCountChangeColor),fontWeight:"bold",fontSize:16}),onClick:e.counterForm.onNumberClick,disableRipple:!0},e.counterForm.counter),M.Ay.createElement(T.Button,{disabled:!e.counterForm.addButtonEnabled,sx:c,style:{opacity:e.counterForm.addButtonEnabled?1:.3},onClick:()=>e.counterForm.setCounter(e.counterForm.counter+1),disableRipple:!0},M.Ay.createElement(O(),{sx:{color:w.dI.getColorValue(e.counterForm.manualCountChangeColor)}})))))}function k(e){var t;if(!e.visible)return null;const n={["data-sb-button-"+e.debugName]:!0};return M.Ay.createElement(T.Button,Object.assign({disabled:null!==(t=e.disabled)&&void 0!==t&&t,onClick:e.onClick,type:e.type,"aria-label":e.accessibilityDescription,sx:Object.assign(Object.assign({},e.style),{"&:hover, &:focus, &:active, &":{borderStyle:"solid",borderColor:w.dI.getColorValue(e.background.strokeColor),borderWidth:e.background.strokeWidth,backgroundColor:w.dI.getColorValue(e.background.fillColor),textTransform:"none",outline:"none"}}),disableRipple:!0},n),e.foreground.iconVisible&&e.icon&&M.Ay.createElement(e.icon,{sx:{color:w.dI.getColorValue(e.foreground.color),pr:2}}),M.Ay.createElement(F.D7,{config:{visible:!0,text:e.text,color:e.foreground.color,useShadow:e.foreground.useShadow}}))}var V=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function U(e){var t,{modalOverlayColor:n}=e,i=V(e,["modalOverlayColor"]);const r={backdrop:{style:{backgroundColor:w.dI.getColorValue(n)}}},o=Object.assign(Object.assign({},i.PaperProps),{sx:Object.assign(Object.assign({},null===(t=i.PaperProps)||void 0===t?void 0:t.sx),i.width?{width:i.width}:{maxWidth:400})});return M.Ay.createElement(T.Dialog,Object.assign({},i,{componentsProps:r,PaperProps:o}))}function Z(e){const t=!e.barcodeMappedData||"LOADED"!==e.barcodeMappedData.state,n=t?e.sheetColorLoading:e.sheetColorLoaded,i={backgroundColor:w.dI.getColorValue(n)},[r,o]=M.Ay.useState(),a=(0,M.li)((()=>{}));(0,M.vJ)((()=>{e.open&&o(!1)}),[e.open]);const s=()=>{a.current=e.handleCancel,o(!0)};return M.Ay.createElement(U,{modalOverlayColor:e.modalOverlayColor,open:e.open&&!r,fullWidth:!0,TransitionProps:{onExited:()=>{r&&a.current()}},onClose:()=>{t||s()}},M.Ay.createElement(T.DialogContent,{style:i},M.Ay.createElement(x,Object.assign({},e,{maxNumberOfTitleLines:2,maxNumberOfSubtitleLines:1,imageSize:68}))),M.Ay.createElement(T.DialogActions,{style:i},M.Ay.createElement(O(),{container:!0,spacing:2,sx:{overflow:"hidden"}},M.Ay.createElement(O(),{item:!0,xs:12},M.Ay.createElement(O(),{color:w.dI.getColorValue(e.dividerColor)})),t?M.Ay.createElement(O(),{item:!0,xs:12,sx:{textAlign:"center"}},M.Ay.createElement(T.Box,null,M.Ay.createElement(T.CircularProgress,{sx:{color:w.dI.getColorValue(e.loadingMessage.color),verticalAlign:"middle",mr:2}}),M.Ay.createElement(F.D7,{config:e.loadingMessage}))):M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(O(),{item:!0,xs:6},M.Ay.createElement(k,Object.assign({style:{width:"100%"},onClick:s},e.cancelButton))),M.Ay.createElement(O(),{item:!0,xs:6},M.Ay.createElement(k,Object.assign({style:{width:"100%"},onClick:()=>{a.current=e.handleSubmit,o(!0)}},e.submitButton)))))))}const W=16;function H(e){if(!1===e.visible)return null;const t={backgroundColor:e.active?w.dI.getColorValue(e.activeBackgroundColor):w.dI.getColorValue(e.backgroundColor),color:e.active?w.dI.getColorValue(e.activeForegroundColor):w.dI.getColorValue(e.foregroundColor)};return M.Ay.createElement(T.IconButton,{sx:Object.assign(Object.assign({},t),{"&:hover, &:focus":Object.assign({outline:"none"},t),width:48,height:48}),onClick:e.onClick},e.text&&M.Ay.createElement("span",{style:{fontSize:15}},w.dI.getLocalizedText(e.text)),e.icon&&M.Ay.createElement(e.icon,{style:{padding:7}}))}var G=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class z{constructor(){this.audioFile=new Audio}initialize(e){return G(this,void 0,void 0,(function*(){e.successBeepEnabled&&(this.audioFile.src="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAACAE00QSBpc29taXNvMgAAAAhmcmVlAAASCG1kYXQBQCKAo3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+aIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwBQCKAo3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+aIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwA6jQEQfEIQGIQaqctMIv9EpiYforpaDbT80WfPFRSswKfd8cy6kN/+IUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u//EKWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaXfViFLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwA6jQQpRY6EYNCcKDAqAAEUgC2wFy0kF7JTgecsqIp6pxd/lHO7kUuSCLFK6n2mPOKfj5aKhQPOaRtBEKFS85eIYbr71AGaAPJTSIHeIhXTcpA5i155UICz3nXk0Cz0A8QhxIhoqQIJ2Be9MIEiJ6GpuMa1fPXcJmIoxDUKpZuJozBa6iFmjy7O/genSlwPKL6xaiiL8Y1XtgBDY7ke/CAOoawOqmZm6suSVQPbxzaxZJpWFcWva4RqTil72HqDpc2N4eG3KA0JkU8G58RNabxVq9gSLwysPKIzL1fZVF1FQwllEs4YUKpPtoMw2VtepdbZHqGriAsZ5Lu154uiewW41szI4RHfpWOWSH7s1LAzlv/xClpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWl36AhS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0vAA6jQEYVEIDEQDEKCAYhAIXMdbaI5q82OvhmYS1FO11cD3Yt4EwZI+aTsqoctJJaN0FKvNqorQmK3SUWpNOtf+uKNIxX3xeTEq8LKb/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd/+IUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u+GEKWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpeABMDQD6WqsfRABwAUSib4c3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+EIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS8AAAO4bW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAAAfgAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAiJ0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAAfgAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAH4AAAIAAABAAAAAAGabWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAAfQAAAF8BVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAABRW1pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABCXN0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAEAEAAAAAAfQAAAAAAAM2VzZHMAAAAAA4CAgCIAAQAEgICAFEAVAAAAAAH0AAAAvXkFgICAAhWIBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAAAUAAAQAAAAAAQAAA8AAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAYAAAABAAAAFHN0c3oAAAAAAAADAAAAAAYAAAAUc3RjbwAAAAAAAAABAAAALAAAABpzZ3BkAQAAAHJvbGwAAAACAAAAAf//AAAAHHNiZ3AAAAAAcm9sbAAAAAEAAAAGAAAAAQAAASJ1ZHRhAAABGm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAA7Wlsc3QAAAAzqW5hbQAAACtkYXRhAAAAAQAAAAAyNTAgTWlsbGlzZWNvbmRzIG9mIFNpbGVuY2UAAAApqUFSVAAAACFkYXRhAAAAAQAAAABBbmFyIFNvZnR3YXJlIExMQwAAAClhQVJUAAAAIWRhdGEAAAABAAAAAEFuYXIgU29mdHdhcmUgTExDAAAAI6lhbGIAAAAbZGF0YQAAAAEAAAAAQmxhbmsgQXVkaW8AAAAkqXRvbwAAABxkYXRhAAAAAQAAAABMYXZmNjAuMy4xMDAAAAAZY3BpbAAAABFkYXRhAAAAFQAAAAAA",yield this.play(),"MODERN_BEEP"===e.soundType&&(this.audioFile.src="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAACAE00QSBpc29taXNvMgAAAAhmcmVlAAAEcm1kYXQBQCKAo30ghS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwDmVAjh8QBrRiUH/88pKh3gJPmPt9t8oIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwDsl6UY83aVqFeq3aVmmYyFp70/kJT+A9hdePd7Z7aRSFKZBhCUP6E1rS/9+DhfmhvTknCnQzE+QHVPD6rhSIRpGIAFmBioF1XkxwAQjxKkQMc+qECgXnCAU1IcgpFDnWo02EdihsnrUx/1bJAUo+x6//p8VmoS0iuleHvPnKj9mjjHOoaDGI/s2DHcYI66Grp+5pezZuKJExJOzoyJRdmv6ltO6ibTdTDZ1YqLauKTebYOtpTWnh3/K3kBQmN3NsieqxzHeZKNiFphWuYSWMhaHIZRnRt6O/WzTXYFGrG0wBT54NCQ3wtSpqr5dHbQN2yY0jcckhLUieNtOSjS3u1NuMqWbOx1zHwlHfJKgI349OU9iZEzeN3rCVbBVdrdcAEW9Cm2Ji2FjQNkiFBViV6ofFsNVeVqpKgpsf3/iWtBG6cpMqFHjy2QhyBEnPtwTbWbm9b1u7frF3bnaVykqieEvTKfqnCYL2u4g1CLiQ4Zb8hkkTL9tnGmdMOeqIkUcHZ0zsspzvHOUXJTlssZTRjqcIsp514HJO9YhVRXALKaCRKQkbMEty3CstONNYzuhq57bbccc+/Pq22226ueWXLLbTTw4bFIoQoGWepZBRJWQFh4yui2+evKOqLp+rLKJ4LKcAtQ7XA0aLCyMRVDDOmuoYcnFEmIrpzmRQNQIJ5HWvOesgzjrK071chBhESdztJ0sMqhdAAyjegdEYPNyA4BCDQtLGRRKQQBQIhXYqGZ65Pu1S7XMxxVXEOWtJGMAARETyDKiMN4tsmFfcvmo+sHuHZrY196169rbT/sHFGNK1cnJrBK2vDu7b0AsBd9VaKrsNHL/KxFHm3Yma/+S365yvTF+abktGk7JSrS++mXLBw76AiuijMPpwzPoP4jNzZjI+R/p7zboMSKiFvZkMx8CDIPGB+K2Ee7XaOqAu8z6cWgazCp76DdzIwsmGw2TiczmQMAafEX0U6lQOAA6jQJAfCsBrSxVH+Hw8fPKIpB7JuhzAB/BwAAAw9tb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAATwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAACOnRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAEAAAAAAAAATwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAE4AAAgAAAEAAAAAAbJtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAVgFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAFdbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAAEhc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAQAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgABAASAgIAUQBUAAAAAARrvAAEa7wWAgIACEggGgICAAQIAAAAgc3R0cwAAAAAAAAACAAAABQAABAAAAAABAAABgAAAABxzdHNjAAAAAAAAAAEAAAABAAAABgAAAAEAAAAsc3RzegAAAAAAAAAAAAAABgAAALkAAAC6AAABIAAAAQAAAAC9AAAAGgAAABRzdGNvAAAAAAAAAAEAAAAsAAAAGnNncGQBAAAAcm9sbAAAAAIAAAAB//8AAAAcc2JncAAAAAByb2xsAAAAAQAAAAYAAAABAAAAYXVkdGEAAABZbWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAsaWxzdAAAACSpdG9vAAAAHGRhdGEAAAABAAAAAExhdmY2MC4zLjEwMA=="),"CLASSIC_BEEP"===e.soundType&&(this.audioFile.src="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAAAAE00QSBtcDQyaXNvbQAAAAFtZGF0AAAAAAAACHchIANAaBv6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOCFO4v////////gyh+L1JkJB36Cv0yBUdzB8/8/b8vveozPf+/6eH18deTh9kOp11urWAB5ZsMnhMwSjUCF2MQub4hybjxDhHACGof0XiT9tAHVOwt4NPtPOMFr/ndlTpTNXy79GYIfXP7VkPs99ySHNOFkpNrBS1pClU3rRGHp6Dy9FBIlk4KbBNBLGMJRcWQxuVsVJCSMnGw1FuIUrBN2UJLoEMhurMxpIiyGAweBvyfNJy4FbxqDm3WDjCtzP+3yVmOjxhIBDANLYyeG05LNyCZONEOk/c4hCj3Y2XQkgTI7y/39g0a+MuEoAdbRz4gSgRJnjEGB0TnOB0LtiL0XB9kwz2SwCBB0MvIByUSWTPTsRdCA4PvEmwnNdTnJT5/kPGk4swkTgOOuWJBI0EkxFs5mmNIR6wSFql36Hn03/Lf/uHp+6aTmBY0HJ6P6X1atw/Y8vK72LCWpsq0beo5KkrrrMe1eabaDyfZRPYfgPwH4Dv4CHU663VrAA8wchbBRlqQNnYNlYNhYNigNhoTBsTCcTCgLBEQCX+XfNd+3y+piKntTerXdXpDWRpLzsKmJ4iRM4ig+I6R65pDawx8Ry4cxfeifbsbzK/TxNhafR9y2zFVicy8nCVkU6CkmLckGtqbuYvhruBP0TriLNTU1TNhW6tUCdUSyneDUWAox5RTMlF2W1san5MQRlj7Btm2bZhoqoUUAJlpaat54WVuTyOxqwzNVhPenFR9KBpuA3qrUrT+3ShOUdXAkGXmCrMBxH3XmROdVSkS8cccRMOKTN+7OOEIQrMYIcna5hipAqPHk6VSgy0gGXljIk7GR/O606SyhhgglQIZLyxxOa/ZANmzZkyZMlRoqIt/T6xZHaFLcZ6n8jSgTVoOGsK5MvOlIBBkR+AtM5hvkTG2UzEhEAcsA7bZfCZmmZmZjQnqfn/yRwXzQtlZljFYd93mGppQSDDV/oz8HKkKjElN9Pu/inFmh3IHFyXlrJ/dodwM2EUkLZff1jWCO84wYUa3JB52yTMCETuUgA0BWB+I4hDBR1xoligVhgVhgNhYdBcLCcakAb1XLO/eZ9cUtvv6cNzrRYdMWgFvJySSSSscWFxCQElKcwc2dFkyos8dHfXPYFSt0klO2wUeIUxNKf5LiWYGm57bV0dipv7Qpw9uRRu23CuNIbT7++AuwEnyFWIQP0OpdUhc7u2k2fKW3mTZZxCSb+gVCjOzNf7LzxdBpbZxYwuNkcRlqAMdRMhq+tXmbLkMGGph20w4JvwvBm+x4Wtomh4lz0GGBVGQ96+JUXhvqQQAQPRTHtn+e7SwaCKMXnEEWXevaFVrPVEX7wxIBbbcpAHXj2DQz/vO9M0FHzyQFtegQjjn+fM99jgBE2fLJs/PLcErzrmCGJdVHZ19uxTErdmR6viG6cetew2MYQFm5AIDdPmjeXifvbFcjkYQWUsqKoBQJAKMp50hLtJRCKLCTSw2f7e0wzzhr6eGhjlyOQ8blgBiR0fxcjQYM5rBBM/wzuDe972u2f/mN7u8zVqGu7QADPHgAK4PxW8nJJJJLgISwUZaaRYmFRWRBEIwQKfmepncccZoqHnVy0WnFag51Yt48agPiK7D59zNlI+6YR9SHvnKoiJCcRzsskEGDgIrLQoLEgDguNTzeNvuxVpc8wntXmUlTQMa9WLn/geS8F7ku6Vt+I9yiumFP6I5hbEGeXac1BCB3YA3gNA0rLFPwrWq//VvtF6JGKIOVA12lCnpZl8NJojK1yqVsVKp+ZqbDpq0S1duspmvSvCbwmftOnwnfuNqBCnzZfzZF9fkqxTCqlq8GmR3bGK+1uvEcF55cGGx8BNANhkk1438/rWbXeTtPGfukvhUxZBp0M5447+2SFiQW674ySiGSRHgyqcqU0x39tbz3afnWt5BKNHDYj1lzq6sg8dcJlJnSQDUEba4npgEoAqVUkksoqM0UUO3VXDo3Mablwd2GLAoXjgK071swbuWhQJ2AjGYsBx5dtOMYCyPVh+K3jxqA+IuAhTrc+3KVqmDuVmIO5TZmQbDr4vUV+0338fXQ3665PiYnII1REb2klWhUcwjqi/pMe4yYZaDbo9T1ougUKE5h1jUim2NZxM71zBZVa/tWam6wXlmFVVHGuvL76pT3PUGufbO9YwevQzCvXhsabRuJyJjz8A1Haftmewy4gZ0FWlMIO5BoXB49j0TeIiikaxP9ZHcD9oI6x2H4DajNt5WgRXj6/H72V+gj2bgMDVkIZ36j1Tl+wdO6fvFsz56a5V6t9lS+gyWSOvuQP9bqtYgqWlsthXSFkrTfNqni6jSQ5vN9Fp1iYJODbUg8Sg0lYLbNEM7oqvrggxzq13IfO9hGQ0MQVpMIAR0aSGMFWOZzpJmXG1IcjppdZkINTYN2UvrHmGUrVBHvRuueFPuy2GzQoSnMCvkT3WvaR/LoVYw7Voy47wdJee2Va623AFXWNINOpByyoc9SQU4vPQ6X0PMBLQs6GdMlx+RlC3VoMDOryeFFolCTD8B+A/A4AAANKbW9vdgAAAGxtdmhkAAAAANcxfvfXMX73AACsRAAADbEAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAdx0cmFrAAAAXHRraGQAAAAB1zF+99cxfvcAAAABAAAAAAAADbEAAAAAAAAAAAAAAAABAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAF4bWRpYQAAACBtZGhkAAAAANcxfvfXMX73AACsRAAAGABVxAAAAAAAMWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABDb3JlIE1lZGlhIEF1ZGlvAAAAAR9taW5mAAAAEHNtaGQAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAONzdGJsAAAAZ3N0c2QAAAAAAAAAAQAAAFdtcDRhAAAAAAAAAAEAAAAAAAAAAAACABAAAAAArEQAAAAAADNlc2RzAAAAAAOAgIAiAAAABICAgBRAFQAYAAAB9AAAAfQABYCAgAISEAaAgIABAgAAABhzdHRzAAAAAAAAAAEAAAAGAAAEAAAAABxzdHNjAAAAAAAAAAEAAAABAAAABgAAAAEAAAAsc3RzegAAAAAAAAAAAAAABgAAAP4AAAF+AAABjwAAAYQAAAFeAAABegAAABRzdGNvAAAAAAAAAAEAAAAsAAAA+nVkdGEAAADybWV0YQAAAAAAAAAiaGRscgAAAAAAAAAAbWRpcgAAAAAAAAAAAAAAAAAAAAAAxGlsc3QAAAC8LS0tLQAAABxtZWFuAAAAAGNvbS5hcHBsZS5pVHVuZXMAAAAUbmFtZQAAAABpVHVuU01QQgAAAIRkYXRhAAAAAQAAAAAgMDAwMDAwMDAgMDAwMDA4NDAgMDAwMDAyMEYgMDAwMDAwMDAwMDAwMERCMSAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMA=="))}))}beep(e){e.successBeepEnabled&&this.play()}play(){return G(this,void 0,void 0,(function*(){try{yield this.audioFile.play()}catch(e){}}))}}z.INSTANCE=new z;const Y=z;class q{constructor(){this.DURATION=200}vibrate(e){e.enabled&&navigator.vibrate&&navigator.vibrate(this.DURATION)}}q.INSTANCE=new q;const X=q;var j=n(9476),Q=n(5933),J=n(952),K=n(5215),$=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},ee={measureLayout:$(["layout","layoutId","drag","_layoutResetTransform"]),animation:$(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:$(["exit"]),drag:$(["drag","dragControls"]),focus:$(["whileFocus"]),hover:$(["whileHover","onHoverStart","onHoverEnd"]),tap:$(["whileTap","onTap","onTapStart","onTapCancel"]),pan:$(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:$(["layout","layoutId"])};var te=(0,M.q6)({strict:!1}),ne=Object.keys(ee),ie=ne.length;var re=(0,M.q6)({transformPagePoint:function(e){return e},isStatic:!1}),oe=(0,M.q6)({});var ae=(0,M.q6)(null);function se(e){var t=(0,M.li)(null);return null===t.current&&(t.current=e()),t.current}function ce(){var e=(0,M.NT)(ae);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,i=e.register,r=me();(0,M.vJ)((function(){return i(r)}),[]);return!t&&n?[!1,function(){return null==n?void 0:n(r)}]:[!0]}function le(e){return null===e||e.isPresent}var ue=0,de=function(){return ue++},me=function(){return se(de)},he=(0,M.q6)(null),pe="undefined"!=typeof window,Ee=pe?M.Nf:M.vJ;function Ae(e,t,n,i){var r=(0,M.NT)(re),o=(0,M.NT)(te),a=(0,M.NT)(oe).visualElement,s=(0,M.NT)(ae),c=function(e){var t=e.layoutId,n=(0,M.NT)(he);return n&&void 0!==t?n+"-"+t:t}(n),l=(0,M.li)(void 0);i||(i=o.renderer),!l.current&&i&&(l.current=i(e,{visualState:t,parent:a,props:(0,K.Cl)((0,K.Cl)({},n),{layoutId:c}),presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial)}));var u=l.current;return Ee((function(){u&&(u.setProps((0,K.Cl)((0,K.Cl)((0,K.Cl)({},r),n),{layoutId:c})),u.isPresent=le(s),u.isPresenceRoot=!a||a.presenceId!==(null==s?void 0:s.id),u.syncRender())})),(0,M.vJ)((function(){var e;u&&(null===(e=u.animationState)||void 0===e||e.animateChanges())})),Ee((function(){return function(){return null==u?void 0:u.notifyUnmount()}}),[]),u}function ge(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function fe(e){return Array.isArray(e)}function Ce(e){return"string"==typeof e||fe(e)}function _e(e,t,n,i,r){var o;return void 0===i&&(i={}),void 0===r&&(r={}),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t?t(null!=n?n:e.custom,i,r):t}function De(e,t,n){var i=e.getProps();return _e(i,t,null!=n?n:i.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function ye(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Ce(e.initial)||Ce(e.animate)||Ce(e.whileHover)||Ce(e.whileDrag)||Ce(e.whileTap)||Ce(e.whileFocus)||Ce(e.exit)}function Ie(e){return Boolean(ye(e)||e.variants)}function ve(e,t){var n=function(e,t){if(ye(e)){var n=e.initial,i=e.animate;return{initial:!1===n||Ce(n)?n:void 0,animate:Ce(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,M.NT)(oe)),i=n.initial,r=n.animate;return(0,M.Kr)((function(){return{initial:i,animate:r}}),t?[Ne(i),Ne(r)]:[])}function Ne(e){return Array.isArray(e)?e.join(" "):e}function Se(e){var t=e.preloadedFeatures,n=e.createVisualElement,i=e.useRender,r=e.useVisualState,o=e.Component;return t&&function(e){for(var t in e){var n=e[t];null!==n&&(ee[t].Component=n)}}(t),(0,M.Rf)((function(e,t){var a=(0,M.NT)(re).isStatic,s=null,c=ve(e,a),l=r(e,a);return!a&&pe&&(c.visualElement=Ae(o,l,e,n),s=function(e,t,n){var i=[];if((0,M.NT)(te),!t)return null;for(var r=0;r<ie;r++){var o=ne[r],a=ee[o],s=a.isEnabled,c=a.Component;s(e)&&c&&i.push(M.n(c,(0,K.Cl)({key:o},e,{visualElement:t})))}return i}(e,c.visualElement)),M.n(M.FK,null,M.n(oe.Provider,{value:c},i(o,e,function(e,t,n){return(0,M.hb)((function(i){var r;i&&(null===(r=e.mount)||void 0===r||r.call(e,i)),t&&(i?t.mount(i):t.unmount()),n&&("function"==typeof n?n(i):ge(n)&&(n.current=i))}),[t])}(l,c.visualElement,t),l,a)),s)}))}function be(e){function t(t,n){return void 0===n&&(n={}),Se(e(t,n))}var n=new Map;return new Proxy(t,{get:function(e,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var Me=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Le(e){return"string"==typeof e&&!e.includes("-")&&!!(Me.indexOf(e)>-1||/[A-Z]/.test(e))}var Re={};var Te=["","X","Y","Z"],Oe=["transformPerspective","x","y","z"];function we(e,t){return Oe.indexOf(e)-Oe.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Te.forEach((function(t){return Oe.push(e+t)}))}));var Fe=new Set(Oe);function Be(e){return Fe.has(e)}var Pe=new Set(["originX","originY","originZ"]);function xe(e){return Pe.has(e)}function ke(e,t){var n=t.layout,i=t.layoutId;return Be(e)||xe(e)||(n||void 0!==i)&&(!!Re[e]||"opacity"===e)}var Ve=function(e){return null!==e&&"object"==typeof e&&e.getVelocity},Ue={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Ze(e){return e.startsWith("--")}var We=function(e,t){return t&&"number"==typeof e?t.transform(e):e},He=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},Ge=function(e){return e%1?Number(e.toFixed(5)):e},ze=/(-)?([\d]*\.?[\d])+/g,Ye=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,qe=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Xe(e){return"string"==typeof e}var je=function(e){return{test:function(t){return Xe(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},Qe=je("deg"),Je=je("%"),Ke=je("px"),$e=je("vh"),et=je("vw"),tt=(0,K.Cl)((0,K.Cl)({},Je),{parse:function(e){return Je.parse(e)/100},transform:function(e){return Je.transform(100*e)}}),nt={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},it=(0,K.Cl)((0,K.Cl)({},nt),{transform:He(0,1)}),rt=(0,K.Cl)((0,K.Cl)({},nt),{default:1}),ot=(0,K.Cl)((0,K.Cl)({},nt),{transform:Math.round}),at={borderWidth:Ke,borderTopWidth:Ke,borderRightWidth:Ke,borderBottomWidth:Ke,borderLeftWidth:Ke,borderRadius:Ke,radius:Ke,borderTopLeftRadius:Ke,borderTopRightRadius:Ke,borderBottomRightRadius:Ke,borderBottomLeftRadius:Ke,width:Ke,maxWidth:Ke,height:Ke,maxHeight:Ke,size:Ke,top:Ke,right:Ke,bottom:Ke,left:Ke,padding:Ke,paddingTop:Ke,paddingRight:Ke,paddingBottom:Ke,paddingLeft:Ke,margin:Ke,marginTop:Ke,marginRight:Ke,marginBottom:Ke,marginLeft:Ke,rotate:Qe,rotateX:Qe,rotateY:Qe,rotateZ:Qe,scale:rt,scaleX:rt,scaleY:rt,scaleZ:rt,skew:Qe,skewX:Qe,skewY:Qe,distance:Ke,translateX:Ke,translateY:Ke,translateZ:Ke,x:Ke,y:Ke,z:Ke,perspective:Ke,transformPerspective:Ke,opacity:it,originX:tt,originY:tt,originZ:Ke,zIndex:ot,fillOpacity:it,strokeOpacity:it,numOctaves:ot};function st(e,t,n,i,r,o,a,s){var c,l=e.style,u=e.vars,d=e.transform,m=e.transformKeys,h=e.transformOrigin;m.length=0;var p=!1,E=!1,A=!0;for(var g in t){var f=t[g];if(Ze(g))u[g]=f;else{var C=at[g],_=We(f,C);if(Be(g)){if(p=!0,d[g]=_,m.push(g),!A)continue;f!==(null!==(c=C.default)&&void 0!==c?c:0)&&(A=!1)}else if(xe(g))h[g]=_,E=!0;else if((null==n?void 0:n.isHydrated)&&(null==i?void 0:i.isHydrated)&&Re[g]){var D=Re[g].process(f,i,n),y=Re[g].applyTo;if(y)for(var I=y.length,v=0;v<I;v++)l[y[v]]=D;else l[g]=D}else l[g]=_}}i&&n&&a&&s?(l.transform=a(i.deltaFinal,i.treeScale,p?d:void 0),o&&(l.transform=o(d,l.transform)),l.transformOrigin=s(i)):(p&&(l.transform=function(e,t,n,i){var r=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,c=t.allowTransformNone,l=void 0===c||c,u="";o.sort(we);for(var d=!1,m=o.length,h=0;h<m;h++){var p=o[h];u+=(Ue[p]||p)+"("+r[p]+") ","z"===p&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),i?u=i(r,n?"":u):l&&n&&(u="none"),u}(e,r,A,o)),E&&(l.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,i=e.originY,r=void 0===i?"50%":i,o=e.originZ;return n+" "+r+" "+(void 0===o?0:o)}(h)))}var ct=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function lt(e,t,n){for(var i in t)Ve(t[i])||ke(i,n)||(e[i]=t[i])}function ut(e,t,n){var i={};return lt(i,e.style||{},e),Object.assign(i,function(e,t,n){var i=e.transformTemplate;return(0,M.Kr)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};st(e,t,void 0,void 0,{enableHardwareAcceleration:!n},i);var r=e.vars,o=e.style;return(0,K.Cl)((0,K.Cl)({},r),o)}),[t])}(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function dt(e,t,n){var i={},r=ut(e,t,n);return Boolean(e.drag)&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),i.style=r,i}var mt=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function ht(e){return mt.has(e)}var pt=function(e){return!ht(e)};try{var Et=n(5218).A;pt=function(e){return e.startsWith("on")?!ht(e):Et(e)}}catch(e){}function At(e,t,n){return"string"==typeof e?e:Ke.transform(t+n*e)}var gt=function(e,t){return Ke.transform(e*t)},ft={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ct={offset:"strokeDashoffset",array:"strokeDasharray"};function _t(e,t,n,i,r,o,a,s){var c=t.attrX,l=t.attrY,u=t.originX,d=t.originY,m=t.pathLength,h=t.pathSpacing,p=void 0===h?1:h,E=t.pathOffset,A=void 0===E?0:E;st(e,(0,K.Tt)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,i,r,o,a,s),e.attrs=e.style,e.style={};var g=e.attrs,f=e.style,C=e.dimensions,_=e.totalPathLength;g.transform&&(C&&(f.transform=g.transform),delete g.transform),C&&(void 0!==u||void 0!==d||f.transform)&&(f.transformOrigin=function(e,t,n){return At(t,e.x,e.width)+" "+At(n,e.y,e.height)}(C,void 0!==u?u:.5,void 0!==d?d:.5)),void 0!==c&&(g.x=c),void 0!==l&&(g.y=l),void 0!==_&&void 0!==m&&function(e,t,n,i,r,o){void 0===i&&(i=1),void 0===r&&(r=0),void 0===o&&(o=!0);var a=o?ft:Ct;e[a.offset]=gt(-r,t);var s=gt(n,t),c=gt(i,t);e[a.array]=s+" "+c}(g,_,m,p,A,!1)}var Dt=function(){return(0,K.Cl)((0,K.Cl)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function yt(e,t){var n=(0,M.Kr)((function(){var n=Dt();return _t(n,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),(0,K.Cl)((0,K.Cl)({},n.attrs),{style:(0,K.Cl)({},n.style)})}),[t]);if(e.style){var i={};lt(i,e.style,e),n.style=(0,K.Cl)((0,K.Cl)({},i),n.style)}return n}function It(e){void 0===e&&(e=!1);return function(t,n,i,r,o){var a=r.latestValues,s=(Le(t)?yt:dt)(n,a,o),c=function(e,t,n){var i={};for(var r in e)(pt(r)||!0===n&&ht(r)||!t&&!ht(r))&&(i[r]=e[r]);return i}(n,"string"==typeof t,e),l=(0,K.Cl)((0,K.Cl)((0,K.Cl)({},c),s),{ref:i});return(0,M.n)(t,l)}}var vt=/([a-z])([A-Z])/g,Nt=function(e){return e.replace(vt,"$1-$2").toLowerCase()};function St(e,t){var n=t.style,i=t.vars;for(var r in Object.assign(e.style,n),i)e.style.setProperty(r,i[r])}var bt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function Mt(e,t){for(var n in St(e,t),t.attrs)e.setAttribute(bt.has(n)?n:Nt(n),t.attrs[n])}function Lt(e){var t=e.style,n={};for(var i in t)(Ve(t[i])||ke(i,e))&&(n[i]=t[i]);return n}function Rt(e){var t=Lt(e);for(var n in e){if(Ve(e[n]))t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]}return t}function Tt(e){return"object"==typeof e&&"function"==typeof e.start}var Ot=function(e){return Array.isArray(e)};function wt(e){var t,n=Ve(e)?e.get():e;return t=n,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?n.toValue():n}function Ft(e,t,n,i){var r=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:Pt(t,n,i,r),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var Bt=function(e){return function(t,n){var i=(0,M.NT)(oe),r=(0,M.NT)(ae);return n?Ft(e,t,i,r):se((function(){return Ft(e,t,i,r)}))}};function Pt(e,t,n,i){var r={},o=!1===(null==n?void 0:n.initial),a=i(e);for(var s in a)r[s]=wt(a[s]);var c=e.initial,l=e.animate,u=ye(e),d=Ie(e);t&&d&&!u&&!1!==e.inherit&&(null!=c||(c=t.initial),null!=l||(l=t.animate));var m=o||!1===c?l:c;m&&"boolean"!=typeof m&&!Tt(m)&&(Array.isArray(m)?m:[m]).forEach((function(t){var n=_e(e,t);if(n){var i=n.transitionEnd;n.transition;var o=(0,K.Tt)(n,["transitionEnd","transition"]);for(var a in o)r[a]=o[a];for(var a in i)r[a]=i[a]}}));return r}var xt={useVisualState:Bt({scrapeMotionValuesFromProps:Rt,createRenderState:Dt,onMount:function(e,t,n){var i=n.renderState,r=n.latestValues;try{i.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){i.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(i.totalPathLength=t.getTotalLength()),_t(i,r,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),Mt(t,i)}})};var kt,Vt={useVisualState:Bt({scrapeMotionValuesFromProps:Lt,createRenderState:ct})};function Ut(e,t,n,i){return e.addEventListener(t,n,i),function(){return e.removeEventListener(t,n,i)}}function Zt(e,t,n,i){(0,M.vJ)((function(){var r=e.current;if(n&&r)return Ut(r,t,n,i)}),[e,t,n,i])}function Wt(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Ht(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.Exit="exit"}(kt||(kt={}));var Gt={pageX:0,pageY:0};function zt(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Gt;return{x:n[t+"X"],y:n[t+"Y"]}}function Yt(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function qt(e,t){return void 0===t&&(t="page"),{point:Ht(e)?zt(e,t):Yt(e,t)}}var Xt=function(e,t){void 0===t&&(t=!1);var n,i=function(t){return e(t,qt(t))};return t?(n=i,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):i},jt={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Qt={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Jt(e){return pe&&null===window.onpointerdown?e:pe&&null===window.ontouchstart?Qt[e]:pe&&null===window.onmousedown?jt[e]:e}function Kt(e,t,n,i){return Ut(e,Jt(t),Xt(n,"pointerdown"===t),i)}function $t(e,t,n,i){return Zt(e,Jt(t),n&&Xt(n,"pointerdown"===t),i)}function en(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var tn=en("dragHorizontal"),nn=en("dragVertical");function rn(e){var t=!1;if("y"===e)t=nn();else if("x"===e)t=tn();else{var n=tn(),i=nn();n&&i?t=function(){n(),i()}:(n&&n(),i&&i())}return t}function on(){var e=rn(!0);return!e||(e(),!1)}function an(e,t,n){return function(i,r){var o;Wt(i)&&!on()&&(null==n||n(i,r),null===(o=e.animationState)||void 0===o||o.setActive(kt.Hover,t))}}var sn=function(e,t){return!!t&&(e===t||sn(e,t.parentElement))};function cn(e){return(0,M.vJ)((function(){return function(){return e()}}),[])}var ln=function(e,t){return function(n){return t(e(n))}},un=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(ln)};var dn=function(e){return function(t){return e(t),null}},mn={tap:dn((function(e){var t=e.onTap,n=e.onTapStart,i=e.onTapCancel,r=e.whileTap,o=e.visualElement,a=t||n||i||r,s=(0,M.li)(!1),c=(0,M.li)(null);function l(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function u(){var e;return l(),s.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(kt.Tap,!1),!on()}function d(e,n){u()&&(sn(o.getInstance(),e.target)?null==t||t(e,n):null==i||i(e,n))}function m(e,t){u()&&(null==i||i(e,t))}$t(o,"pointerdown",a?function(e,t){var i;l(),s.current||(s.current=!0,c.current=un(Kt(window,"pointerup",d),Kt(window,"pointercancel",m)),null==n||n(e,t),null===(i=o.animationState)||void 0===i||i.setActive(kt.Tap,!0))}:void 0),cn(l)})),focus:dn((function(e){var t=e.whileFocus,n=e.visualElement;Zt(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(kt.Focus,!0)}:void 0),Zt(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(kt.Focus,!1)}:void 0)})),hover:dn((function(e){var t=e.onHoverStart,n=e.onHoverEnd,i=e.whileHover,r=e.visualElement;$t(r,"pointerenter",t||i?an(r,!0,t):void 0),$t(r,"pointerleave",n||i?an(r,!1,n):void 0)}))};function hn(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}var pn=function(e,t,n){return Math.min(Math.max(n,e),t)},En=.001;function An(e){var t,n,i=e.duration,r=void 0===i?800:i,o=e.bounce,a=void 0===o?.25:o,s=e.velocity,c=void 0===s?0:s,l=e.mass,u=void 0===l?1:l,d=1-a;d=pn(.05,1,d),r=pn(.01,10,r/1e3),d<1?(t=function(e){var t=e*d,n=t*r,i=t-c,o=gn(e,d),a=Math.exp(-n);return En-i/o*a},n=function(e){var n=e*d*r,i=n*c+c,o=Math.pow(d,2)*Math.pow(e,2)*r,a=Math.exp(-n),s=gn(Math.pow(e,2),d);return(-t(e)+En>0?-1:1)*((i-o)*a)/s}):(t=function(e){return Math.exp(-e*r)*((e-c)*r+1)-.001},n=function(e){return Math.exp(-e*r)*(r*r*(c-e))});var m=function(e,t,n){for(var i=n,r=1;r<12;r++)i-=e(i)/t(i);return i}(t,n,5/r);if(r*=1e3,isNaN(m))return{stiffness:100,damping:10,duration:r};var h=Math.pow(m,2)*u;return{stiffness:h,damping:2*d*Math.sqrt(u*h),duration:r}}function gn(e,t){return e*Math.sqrt(1-t*t)}var fn=["duration","bounce"],Cn=["stiffness","damping","mass"];function _n(e,t){return t.some((function(t){return void 0!==e[t]}))}function Dn(e){var t=e.from,n=void 0===t?0:t,i=e.to,r=void 0===i?1:i,o=e.restSpeed,a=void 0===o?2:o,s=e.restDelta,c=(0,K.Tt)(e,["from","to","restSpeed","restDelta"]),l={done:!1,value:n},u=function(e){var t=(0,K.Cl)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!_n(e,Cn)&&_n(e,fn)){var n=An(e);(t=(0,K.Cl)((0,K.Cl)((0,K.Cl)({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(c),d=u.stiffness,m=u.damping,h=u.mass,p=u.velocity,E=u.duration,A=u.isResolvedFromDuration,g=yn,f=yn;function C(){var e=p?-p/1e3:0,t=r-n,i=m/(2*Math.sqrt(d*h)),o=Math.sqrt(d/h)/1e3;if(null!=s||(s=Math.abs(r-n)<=1?.01:.4),i<1){var a=gn(o,i);g=function(n){var s=Math.exp(-i*o*n);return r-s*((e+i*o*t)/a*Math.sin(a*n)+t*Math.cos(a*n))},f=function(n){var r=Math.exp(-i*o*n);return i*o*r*(Math.sin(a*n)*(e+i*o*t)/a+t*Math.cos(a*n))-r*(Math.cos(a*n)*(e+i*o*t)-a*t*Math.sin(a*n))}}else if(1===i)g=function(n){return r-Math.exp(-o*n)*(t+(e+o*t)*n)};else{var c=o*Math.sqrt(i*i-1);g=function(n){var a=Math.exp(-i*o*n),s=Math.min(c*n,300);return r-a*((e+i*o*t)*Math.sinh(s)+c*t*Math.cosh(s))/c}}}return C(),{next:function(e){var t=g(e);if(A)l.done=e>=E;else{var n=1e3*f(e),i=Math.abs(n)<=a,o=Math.abs(r-t)<=s;l.done=i&&o}return l.value=l.done?r:t,l},flipTarget:function(){var e;p=-p,n=(e=[r,n])[0],r=e[1],C()}}}Dn.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var yn=function(e){return 0},In=function(e,t,n){var i=t-e;return 0===i?1:(n-e)/i},vn=function(e,t,n){return-n*e+n*t+e},Nn=function(e,t){return function(n){return Boolean(Xe(n)&&qe.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},Sn=function(e,t,n){return function(i){var r;if(!Xe(i))return i;var o=i.match(ze),a=o[0],s=o[1],c=o[2],l=o[3];return(r={})[e]=parseFloat(a),r[t]=parseFloat(s),r[n]=parseFloat(c),r.alpha=void 0!==l?parseFloat(l):1,r}},bn=He(0,255),Mn=(0,K.Cl)((0,K.Cl)({},nt),{transform:function(e){return Math.round(bn(e))}}),Ln={test:Nn("rgb","red"),parse:Sn("red","green","blue"),transform:function(e){var t=e.red,n=e.green,i=e.blue,r=e.alpha,o=void 0===r?1:r;return"rgba("+Mn.transform(t)+", "+Mn.transform(n)+", "+Mn.transform(i)+", "+Ge(it.transform(o))+")"}};var Rn={test:Nn("#"),parse:function(e){var t="",n="",i="",r="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),i=e.substr(5,2),r=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),i=e.substr(3,1),r=e.substr(4,1),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:Ln.transform},Tn={test:Nn("hsl","hue"),parse:Sn("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,i=e.lightness,r=e.alpha,o=void 0===r?1:r;return"hsla("+Math.round(t)+", "+Je.transform(Ge(n))+", "+Je.transform(Ge(i))+", "+Ge(it.transform(o))+")"}},On=function(e,t,n){var i=e*e,r=t*t;return Math.sqrt(Math.max(0,n*(r-i)+i))},wn=[Rn,Ln,Tn],Fn=function(e){return wn.find((function(t){return t.test(e)}))},Bn=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},Pn=function(e,t){var n=Fn(e),i=Fn(t);Bn(e),Bn(t),n.transform,i.transform;var r=n.parse(e),o=i.parse(t),a=(0,K.Cl)({},r),s=n===Tn?vn:On;return function(e){for(var t in a)"alpha"!==t&&(a[t]=s(r[t],o[t],e));return a.alpha=vn(r.alpha,o.alpha,e),n.transform(a)}},xn={test:function(e){return Ln.test(e)||Rn.test(e)||Tn.test(e)},parse:function(e){return Ln.test(e)?Ln.parse(e):Tn.test(e)?Tn.parse(e):Rn.parse(e)},transform:function(e){return Xe(e)?e:e.hasOwnProperty("red")?Ln.transform(e):Tn.transform(e)}},kn="${c}",Vn="${n}";function Un(e){var t=[],n=0,i=e.match(Ye);i&&(n=i.length,e=e.replace(Ye,kn),t.push.apply(t,i.map(xn.parse)));var r=e.match(ze);return r&&(e=e.replace(ze,Vn),t.push.apply(t,r.map(nt.parse))),{values:t,numColors:n,tokenised:e}}function Zn(e){return Un(e).values}function Wn(e){var t=Un(e),n=t.values,i=t.numColors,r=t.tokenised,o=n.length;return function(e){for(var t=r,n=0;n<o;n++)t=t.replace(n<i?kn:Vn,n<i?xn.transform(e[n]):Ge(e[n]));return t}}var Hn=function(e){return"number"==typeof e?0:e};var Gn={test:function(e){var t,n,i,r;return isNaN(e)&&Xe(e)&&(null!==(n=null===(t=e.match(ze))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(r=null===(i=e.match(Ye))||void 0===i?void 0:i.length)&&void 0!==r?r:0)>0},parse:Zn,createTransformer:Wn,getAnimatableNone:function(e){var t=Zn(e);return Wn(e)(t.map(Hn))}},zn=function(e){return"number"==typeof e};function Yn(e,t){return zn(e)?function(n){return vn(e,t,n)}:xn.test(e)?Pn(e,t):Qn(e,t)}var qn=function(e,t){var n=(0,K.fX)([],e),i=n.length,r=e.map((function(e,n){return Yn(e,t[n])}));return function(e){for(var t=0;t<i;t++)n[t]=r[t](e);return n}},Xn=function(e,t){var n=(0,K.Cl)((0,K.Cl)({},e),t),i={};for(var r in n)void 0!==e[r]&&void 0!==t[r]&&(i[r]=Yn(e[r],t[r]));return function(e){for(var t in i)n[t]=i[t](e);return n}};function jn(e){for(var t=Gn.parse(e),n=t.length,i=0,r=0,o=0,a=0;a<n;a++)i||"number"==typeof t[a]?i++:void 0!==t[a].hue?o++:r++;return{parsed:t,numNumbers:i,numRGB:r,numHSL:o}}var Qn=function(e,t){var n=Gn.createTransformer(t),i=jn(e),r=jn(t);return i.numHSL===r.numHSL&&i.numRGB===r.numRGB&&(i.numNumbers,r.numNumbers),un(qn(i.parsed,r.parsed),n)},Jn=function(e,t){return function(n){return vn(e,t,n)}};function Kn(e,t,n){for(var i,r=[],o=n||("number"==typeof(i=e[0])?Jn:"string"==typeof i?xn.test(i)?Pn:Qn:Array.isArray(i)?qn:"object"==typeof i?Xn:void 0),a=e.length-1,s=0;s<a;s++){var c=o(e[s],e[s+1]);if(t){var l=Array.isArray(t)?t[s]:t;c=un(l,c)}r.push(c)}return r}function $n(e,t,n){var i=void 0===n?{}:n,r=i.clamp,o=void 0===r||r,a=i.ease,s=i.mixer,c=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[c-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var l=Kn(t,a,s),u=2===c?function(e,t){var n=e[0],i=e[1],r=t[0];return function(e){return r(In(n,i,e))}}(e,l):function(e,t){var n=e.length,i=n-1;return function(r){var o=0,a=!1;if(r<=e[0]?a=!0:r>=e[i]&&(o=i-1,a=!0),!a){for(var s=1;s<n&&!(e[s]>r||s===i);s++);o=s-1}var c=In(e[o],e[o+1],r);return t[o](c)}}(e,l);return o?function(t){return u(pn(e[0],e[c-1],t))}:u}var ei,ti=function(e){return function(t){return 1-e(1-t)}},ni=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},ii=function(e){return function(t){return t*t*((e+1)*t-e)}},ri=function(e){return e},oi=(ei=2,function(e){return Math.pow(e,ei)}),ai=ti(oi),si=ni(oi),ci=function(e){return 1-Math.sin(Math.acos(e))},li=ti(ci),ui=ni(li),di=ii(1.525),mi=ti(di),hi=ni(di),pi=function(e){var t=ii(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(1.525),Ei=function(e){if(1===e||0===e)return e;var t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Ai=ti(Ei);function gi(e,t){return e.map((function(){return t||si})).splice(0,e.length-1)}function fi(e){var t=e.from,n=void 0===t?0:t,i=e.to,r=void 0===i?1:i,o=e.ease,a=e.offset,s=e.duration,c=void 0===s?300:s,l={done:!1,value:n},u=Array.isArray(r)?r:[n,r],d=function(e,t){return e.map((function(e){return e*t}))}(a&&a.length===u.length?a:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(u),c);function m(){return $n(d,u,{ease:Array.isArray(o)?o:gi(u,o)})}var h=m();return{next:function(e){return l.value=h(e),l.done=e>=c,l},flipTarget:function(){u.reverse(),h=m()}}}var Ci={keyframes:fi,spring:Dn,decay:function(e){var t=e.velocity,n=void 0===t?0:t,i=e.from,r=void 0===i?0:i,o=e.power,a=void 0===o?.8:o,s=e.timeConstant,c=void 0===s?350:s,l=e.restDelta,u=void 0===l?.5:l,d=e.modifyTarget,m={done:!1,value:r},h=a*n,p=r+h,E=void 0===d?p:d(p);return E!==p&&(h=E-r),{next:function(e){var t=-h*Math.exp(-e/c);return m.done=!(t>u||t<-u),m.value=m.done?E:E+t,m},flipTarget:function(){}}}};var _i=1/60*1e3,Di="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},yi="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(Di())}),_i)};var Ii=!0,vi=!1,Ni=!1,Si={delta:0,timestamp:0},bi=["read","update","preRender","render","postRender"],Mi=bi.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],i=0,r=!1,o=new WeakSet,a={schedule:function(e,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var c=s&&r,l=c?t:n;return a&&o.add(e),-1===l.indexOf(e)&&(l.push(e),c&&r&&(i=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:function(s){var c;if(r=!0,t=(c=[n,t])[0],(n=c[1]).length=0,i=t.length)for(var l=0;l<i;l++){var u=t[l];u(s),o.has(u)&&(a.schedule(u),e())}r=!1}};return a}((function(){return vi=!0})),e}),{}),Li=bi.reduce((function(e,t){var n=Mi[t];return e[t]=function(e,t,i){return void 0===t&&(t=!1),void 0===i&&(i=!1),vi||Fi(),n.schedule(e,t,i)},e}),{}),Ri=bi.reduce((function(e,t){return e[t]=Mi[t].cancel,e}),{}),Ti=bi.reduce((function(e,t){return e[t]=function(){return Mi[t].process(Si)},e}),{}),Oi=function(e){return Mi[e].process(Si)},wi=function(e){vi=!1,Si.delta=Ii?_i:Math.max(Math.min(e-Si.timestamp,40),1),Si.timestamp=e,Ni=!0,bi.forEach(Oi),Ni=!1,vi&&(Ii=!1,yi(wi))},Fi=function(){vi=!0,Ii=!0,Ni||yi(wi)},Bi=function(){return Si};const Pi=Li;function xi(e,t,n){return void 0===n&&(n=0),e-t-n}var ki=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return Pi.update(t,!0)},stop:function(){return Ri.update(t)}}};function Vi(e){var t,n,i,r,o,a=e.from,s=e.autoplay,c=void 0===s||s,l=e.driver,u=void 0===l?ki:l,d=e.elapsed,m=void 0===d?0:d,h=e.repeat,p=void 0===h?0:h,E=e.repeatType,A=void 0===E?"loop":E,g=e.repeatDelay,f=void 0===g?0:g,C=e.onPlay,_=e.onStop,D=e.onComplete,y=e.onRepeat,I=e.onUpdate,v=(0,K.Tt)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),N=v.to,S=0,b=v.duration,M=!1,L=!0,R=function(e){if(Array.isArray(e.to))return fi;if(Ci[e.type])return Ci[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?fi:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Dn:fi}(v);(null===(n=(t=R).needsInterpolation)||void 0===n?void 0:n.call(t,a,N))&&(o=$n([0,100],[a,N],{clamp:!1}),a=0,N=100);var T=R((0,K.Cl)((0,K.Cl)({},v),{from:a,to:N}));function O(){S++,"reverse"===A?m=function(e,t,n,i){return void 0===n&&(n=0),void 0===i&&(i=!0),i?xi(t+-e,t,n):t-(e-t)+n}(m,b,f,L=S%2==0):(m=xi(m,b,f),"mirror"===A&&T.flipTarget()),M=!1,y&&y()}function w(e){if(L||(e=-e),m+=e,!M){var t=T.next(Math.max(0,m));r=t.value,o&&(r=o(r)),M=L?t.done:m<=0}null==I||I(r),M&&(0===S&&(null!=b||(b=m)),S<p?function(e,t,n,i){return i?e>=t+n:e<=-n}(m,b,f,L)&&O():(i.stop(),D&&D()))}return c&&(null==C||C(),(i=u(w)).start()),{stop:function(){null==_||_(),i.stop()}}}function Ui(e,t){return t?e*(1e3/t):0}var Zi=function(e){return 1e3*e},Wi=function(e,t){return 1-3*t+3*e},Hi=function(e,t){return 3*t-6*e},Gi=function(e){return 3*e},zi=function(e,t,n){return((Wi(t,n)*e+Hi(t,n))*e+Gi(t))*e},Yi=function(e,t,n){return 3*Wi(t,n)*e*e+2*Hi(t,n)*e+Gi(t)};var qi=.1;function Xi(e,t,n,i){if(e===t&&n===i)return ri;for(var r=new Float32Array(11),o=0;o<11;++o)r[o]=zi(o*qi,e,n);function a(t){for(var i=0,o=1;10!==o&&r[o]<=t;++o)i+=qi;--o;var a=i+(t-r[o])/(r[o+1]-r[o])*qi,s=Yi(a,e,n);return s>=.001?function(e,t,n,i){for(var r=0;r<8;++r){var o=Yi(t,n,i);if(0===o)return t;t-=(zi(t,n,i)-e)/o}return t}(t,a,e,n):0===s?a:function(e,t,n,i,r){var o,a,s=0;do{(o=zi(a=t+(n-t)/2,i,r)-e)>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,i,i+qi,e,n)}return function(e){return 0===e||1===e?e:zi(a(e),t,i)}}var ji={linear:ri,easeIn:oi,easeInOut:si,easeOut:ai,circIn:ci,circInOut:ui,circOut:li,backIn:di,backInOut:hi,backOut:mi,anticipate:pi,bounceIn:Ai,bounceInOut:function(e){return e<.5?.5*(1-Ei(1-2*e)):.5*Ei(2*e-1)+.5},bounceOut:Ei},Qi=function(e){if(Array.isArray(e)){e.length;var t=(0,K.zs)(e,4);return Xi(t[0],t[1],t[2],t[3])}return"string"==typeof e?ji[e]:e},Ji=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Gn.test(t)||t.startsWith("url(")))},Ki=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},$i=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},er=function(){return{type:"keyframes",ease:"linear",duration:.3}},tr=function(e){return{type:"keyframes",duration:.8,values:e}},nr={x:Ki,y:Ki,z:Ki,rotate:Ki,rotateX:Ki,rotateY:Ki,rotateZ:Ki,scaleX:$i,scaleY:$i,scale:$i,opacity:er,backgroundColor:er,color:er,default:$i},ir=new Set(["brightness","contrast","saturate","opacity"]);function rr(e){var t=e.slice(0,-1).split("("),n=t[0],i=t[1];if("drop-shadow"===n)return e;var r=(i.match(ze)||[])[0];if(!r)return e;var o=i.replace(r,""),a=ir.has(n)?1:0;return r!==i&&(a*=100),n+"("+a+o+")"}var or=/([a-z-]*)\(.*?\)/g,ar=(0,K.Cl)((0,K.Cl)({},Gn),{getAnimatableNone:function(e){var t=e.match(or);return t?t.map(rr).join(" "):e}}),sr=(0,K.Cl)((0,K.Cl)({},at),{color:xn,backgroundColor:xn,outlineColor:xn,fill:xn,stroke:xn,borderColor:xn,borderTopColor:xn,borderRightColor:xn,borderBottomColor:xn,borderLeftColor:xn,filter:ar,WebkitFilter:ar}),cr=function(e){return sr[e]};function lr(e,t){var n,i=cr(e);return i!==ar&&(i=Gn),null===(n=i.getAnimatableNone)||void 0===n?void 0:n.call(i,t)}function ur(e){var t=e.ease,n=e.times,i=e.yoyo,r=e.flip,o=e.loop,a=(0,K.Tt)(e,["ease","times","yoyo","flip","loop"]),s=(0,K.Cl)({},a);return n&&(s.offset=n),a.duration&&(s.duration=Zi(a.duration)),a.repeatDelay&&(s.repeatDelay=Zi(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Qi):Qi(t)),"tween"===a.type&&(s.type="keyframes"),(i||o||r)&&(!0,i?s.repeatType="reverse":o?s.repeatType="loop":r&&(s.repeatType="mirror"),s.repeat=o||i||r||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}function dr(e,t,n){var i,r,o,a;return Array.isArray(t.to)&&(null!==(i=e.duration)&&void 0!==i||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=(0,K.fX)([],(0,K.zs)(e.to)),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=(0,K.Tt)(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=(0,K.Cl)((0,K.Cl)({},e),(r=n,o=t.to,a=Ot(o)?tr:nr[r]||nr.default,(0,K.Cl)({to:o},a(o))))),(0,K.Cl)((0,K.Cl)({},t),ur(e))}function mr(e,t,n,i,r){var o,a=Er(i,e),s=null!==(o=a.from)&&void 0!==o?o:t.get(),c=Ji(e,n);"none"===s&&c&&"string"==typeof n?s=lr(e,n):hr(s)&&"string"==typeof n?s=pr(n):!Array.isArray(n)&&hr(n)&&"string"==typeof s&&(n=pr(s));var l=Ji(e,s);return l&&c&&!1!==a.type?function(){var i={from:s,to:n,velocity:t.getVelocity(),onComplete:r,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function(e){var t,n=e.from,i=void 0===n?0:n,r=e.velocity,o=void 0===r?0:r,a=e.min,s=e.max,c=e.power,l=void 0===c?.8:c,u=e.timeConstant,d=void 0===u?750:u,m=e.bounceStiffness,h=void 0===m?500:m,p=e.bounceDamping,E=void 0===p?10:p,A=e.restDelta,g=void 0===A?1:A,f=e.modifyTarget,C=e.driver,_=e.onUpdate,D=e.onComplete;function y(e){return void 0!==a&&e<a||void 0!==s&&e>s}function I(e){return void 0===a?s:void 0===s||Math.abs(a-e)<Math.abs(s-e)?a:s}function v(e){null==t||t.stop(),t=Vi((0,K.Cl)((0,K.Cl)({},e),{driver:C,onUpdate:function(t){var n;null==_||_(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:D}))}function N(e){v((0,K.Cl)({type:"spring",stiffness:h,damping:E,restDelta:g},e))}if(y(i))N({from:i,velocity:o,to:I(i)});else{var S=l*o+i;"undefined"!=typeof f&&(S=f(S));var b,M,L=I(S),R=L===a?-1:1;v({type:"decay",from:i,velocity:o,timeConstant:d,power:l,restDelta:g,modifyTarget:f,onUpdate:y(S)?function(e){b=M,M=e,o=Ui(e-b,Bi().delta),(1===R&&e>L||-1===R&&e<L)&&N({from:e,to:L,velocity:o})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}((0,K.Cl)((0,K.Cl)({},i),a)):Vi((0,K.Cl)((0,K.Cl)({},dr(a,i,e)),{onUpdate:function(e){var t;i.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;i.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e;return t.set(n),r(),null===(e=null==a?void 0:a.onComplete)||void 0===e||e.call(a),{stop:function(){}}}}function hr(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function pr(e){return"number"==typeof e?0:lr("",e)}function Er(e,t){return e[t]||e.default||e}function Ar(e,t,n,i){return void 0===i&&(i={}),t.start((function(r){var o,a,s=mr(e,t,n,i,r),c=function(e,t){var n;return null!==(n=(Er(e,t)||{}).delay)&&void 0!==n?n:0}(i,e),l=function(){return a=s()};return c?o=setTimeout(l,Zi(c)):l(),function(){clearTimeout(o),null==a||a.stop()}}))}function gr(e,t){-1===e.indexOf(t)&&e.push(t)}function fr(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Cr=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return gr(this.subscriptions,e),function(){return fr(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,n);else for(var r=0;r<i;r++){var o=this.subscriptions[r];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),_r=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Cr,this.velocityUpdateSubscribers=new Cr,this.renderSubscribers=new Cr,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var i=Bi(),r=i.delta,o=i.timestamp;n.lastUpdated!==o&&(n.timeDelta=r,n.lastUpdated=o,Pi.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Pi.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Ui(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Dr(e){return new _r(e)}var yr=function(e){return function(t){return t.test(e)}},Ir=[nt,Ke,Je,Qe,et,$e,{test:function(e){return"auto"===e},parse:function(e){return e}}],vr=function(e){return Ir.find(yr(e))},Nr=(0,K.fX)((0,K.fX)([],(0,K.zs)(Ir)),[xn,Gn]),Sr=function(e){return Nr.find(yr(e))};function br(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dr(n))}function Mr(e,t){var n=De(e,t),i=n?e.makeTargetAnimatable(n,!1):{},r=i.transitionEnd,o=void 0===r?{}:r;i.transition;var a,s=(0,K.Tt)(i,["transitionEnd","transition"]);for(var c in s=(0,K.Cl)((0,K.Cl)({},s),o)){br(e,c,(a=s[c],Ot(a)?a[a.length-1]||0:a))}}function Lr(e,t){if(t)return(t[e]||t.default||t).from}function Rr(e,t,n){var i;void 0===n&&(n={});var r=De(e,t,n.custom),o=(r||{}).transition,a=void 0===o?e.getDefaultTransition()||{}:o;n.transitionOverride&&(a=n.transitionOverride);var s=r?function(){return Tr(e,r,n)}:function(){return Promise.resolve()},c=(null===(i=e.variantChildren)||void 0===i?void 0:i.size)?function(i){void 0===i&&(i=0);var r=a.delayChildren,o=void 0===r?0:r,s=a.staggerChildren,c=a.staggerDirection;return function(e,t,n,i,r,o){void 0===n&&(n=0);void 0===i&&(i=0);void 0===r&&(r=1);var a=[],s=(e.variantChildren.size-1)*i,c=1===r?function(e){return void 0===e&&(e=0),e*i}:function(e){return void 0===e&&(e=0),s-e*i};return Array.from(e.variantChildren).sort(Or).forEach((function(e,i){a.push(Rr(e,t,(0,K.Cl)((0,K.Cl)({},o),{delay:n+c(i)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(a)}(e,t,o+i,s,c,n)}:function(){return Promise.resolve()},l=a.when;if(l){var u=(0,K.zs)("beforeChildren"===l?[s,c]:[c,s],2),d=u[0],m=u[1];return d().then(m)}return Promise.all([s(),c(n.delay)])}function Tr(e,t,n){var i,r=void 0===n?{}:n,o=r.delay,a=void 0===o?0:o,s=r.transitionOverride,c=r.type,l=e.makeTargetAnimatable(t),u=l.transition,d=void 0===u?e.getDefaultTransition():u,m=l.transitionEnd,h=(0,K.Tt)(l,["transition","transitionEnd"]);s&&(d=s);var p=[],E=c&&(null===(i=e.animationState)||void 0===i?void 0:i.getState()[c]);for(var A in h){var g=e.getValue(A),f=h[A];if(!(!g||void 0===f||E&&wr(E,A))){var C=Ar(A,g,f,(0,K.Cl)({delay:a},d));p.push(C)}}return Promise.all(p).then((function(){m&&Mr(e,m)}))}function Or(e,t){return e.sortNodePosition(t)}function wr(e,t){var n=e.protectedKeys,i=e.needsAnimating,r=n.hasOwnProperty(t)&&!0!==i[t];return i[t]=!1,r}var Fr=[kt.Animate,kt.Hover,kt.Tap,kt.Drag,kt.Focus,kt.Exit],Br=(0,K.fX)([],(0,K.zs)(Fr)).reverse(),Pr=Fr.length;function xr(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,i=t.options;return function(e,t,n){var i;if(void 0===n&&(n={}),e.notifyAnimationStart(),Array.isArray(t)){var r=t.map((function(t){return Rr(e,t,n)}));i=Promise.all(r)}else if("string"==typeof t)i=Rr(e,t,n);else{var o="function"==typeof t?De(e,t,n.custom):t;i=Tr(e,o,n)}return i.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,i)})))}}function kr(e){var t,n=xr(e),i=((t={})[kt.Animate]=Vr(!0),t[kt.Hover]=Vr(),t[kt.Tap]=Vr(),t[kt.Drag]=Vr(),t[kt.Focus]=Vr(),t[kt.Exit]=Vr(),t),r={},o=!0,a=function(t,n){var i=De(e,n);if(i){i.transition;var r=i.transitionEnd,o=(0,K.Tt)(i,["transition","transitionEnd"]);t=(0,K.Cl)((0,K.Cl)((0,K.Cl)({},t),o),r)}return t};function s(t,s){for(var c,l=e.getProps(),u=e.getVariantContext(!0)||{},d=[],m=new Set,h={},p=1/0,E=function(n){var r=Br[n],E=i[r],A=null!==(c=l[r])&&void 0!==c?c:u[r],g=Ce(A),f=r===s?E.isActive:null;!1===f&&(p=n);var C=A===u[r]&&A!==l[r]&&g;if(C&&o&&e.manuallyAnimateOnMount&&(C=!1),E.protectedKeys=(0,K.Cl)({},h),!E.isActive&&null===f||!A&&!E.prevProp||Tt(A)||"boolean"==typeof A)return"continue";var _=function(e,t){if("string"==typeof t)return t!==e;if(fe(t))return!hn(t,e);return!1}(E.prevProp,A)||r===s&&E.isActive&&!C&&g||n>p&&g,D=Array.isArray(A)?A:[A],y=D.reduce(a,{});!1===f&&(y={});var I=E.prevResolvedValues,v=void 0===I?{}:I,N=(0,K.Cl)((0,K.Cl)({},v),y),S=function(e){_=!0,m.delete(e),E.needsAnimating[e]=!0};for(var b in N){var M=y[b],L=v[b];h.hasOwnProperty(b)||(M!==L?Ot(M)&&Ot(L)?hn(M,L)?E.protectedKeys[b]=!0:S(b):void 0!==M?S(b):m.add(b):void 0!==M&&m.has(b)?S(b):E.protectedKeys[b]=!0)}E.prevProp=A,E.prevResolvedValues=y,E.isActive&&(h=(0,K.Cl)((0,K.Cl)({},h),y)),o&&e.blockInitialAnimation&&(_=!1),_&&!C&&d.push.apply(d,(0,K.fX)([],(0,K.zs)(D.map((function(e){return{animation:e,options:(0,K.Cl)({type:r},t)}})))))},A=0;A<Pr;A++)E(A);if(r=(0,K.Cl)({},h),m.size){var g={};m.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(g[t]=n)})),d.push({animation:g})}var f=Boolean(d.length);return o&&!1===l.initial&&!e.manuallyAnimateOnMount&&(f=!1),o=!1,f?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:s,setActive:function(t,n,r){var o;return i[t].isActive===n?Promise.resolve():(null===(o=e.variantChildren)||void 0===o||o.forEach((function(e){var i;return null===(i=e.animationState)||void 0===i?void 0:i.setActive(t,n)})),i[t].isActive=n,s(r,t))},setAnimateFunction:function(t){n=t(e)},getState:function(){return i}}}function Vr(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Ur={animation:dn((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=kr(t)),Tt(n)&&(0,M.vJ)((function(){return n.subscribe(t)}),[n])})),exit:dn((function(e){var t=e.custom,n=e.visualElement,i=(0,K.zs)(ce(),2),r=i[0],o=i[1],a=(0,M.NT)(ae);(0,M.vJ)((function(){var e,i,s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(kt.Exit,!r,{custom:null!==(i=null==a?void 0:a.custom)&&void 0!==i?i:t});!r&&(null==s||s.then(o))}),[r])}))},Zr=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Wr=function(e){return Zr(e)&&e.hasOwnProperty("z")},Hr=function(e,t){return Math.abs(e-t)};function Gr(e,t){if(zn(e)&&zn(t))return Hr(e,t);if(Zr(e)&&Zr(t)){var n=Hr(e.x,t.x),i=Hr(e.y,t.y),r=Wr(e)&&Wr(t)?Hr(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(r,2))}}var zr=function(){function e(e,t,n){var i=this,r=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var e=Xr(i.lastMoveEventInfo,i.history),t=null!==i.startEvent,n=Gr(e.offset,{x:0,y:0})>=3;if(t||n){var r=e.point,o=Bi().timestamp;i.history.push((0,K.Cl)((0,K.Cl)({},r),{timestamp:o}));var a=i.handlers,s=a.onStart,c=a.onMove;t||(s&&s(i.lastMoveEvent,e),i.startEvent=i.lastMoveEvent),c&&c(i.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){i.lastMoveEvent=e,i.lastMoveEventInfo=Yr(t,i.transformPagePoint),Wt(e)&&0===e.buttons?i.handlePointerUp(e,t):Pi.update(i.updatePoint,!0)},this.handlePointerUp=function(e,t){i.end();var n=i.handlers,r=n.onEnd,o=n.onSessionEnd,a=Xr(Yr(t,i.transformPagePoint),i.history);i.startEvent&&r&&r(e,a),o&&o(e,a)},!(Ht(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=r;var o=Yr(qt(e),this.transformPagePoint),a=o.point,s=Bi().timestamp;this.history=[(0,K.Cl)((0,K.Cl)({},a),{timestamp:s})];var c=t.onSessionStart;c&&c(e,Xr(o,this.history)),this.removeListeners=un(Kt(window,"pointermove",this.handlePointerMove),Kt(window,"pointerup",this.handlePointerUp),Kt(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Ri.update(this.updatePoint)},e}();function Yr(e,t){return t?{point:t(e.point)}:e}function qr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xr(e,t){var n=e.point;return{point:n,delta:qr(n,Qr(t)),offset:qr(n,jr(t)),velocity:Jr(t,.1)}}function jr(e){return e[0]}function Qr(e){return e[e.length-1]}function Jr(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,i=null,r=Qr(e);n>=0&&(i=e[n],!(r.timestamp-i.timestamp>Zi(t)));)n--;if(!i)return{x:0,y:0};var o=(r.timestamp-i.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Kr(e){return e}function $r(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}var eo={translate:0,scale:1,origin:0,originPoint:0};function to(){return{x:(0,K.Cl)({},eo),y:(0,K.Cl)({},eo)}}function no(e){return[e("x"),e("y")]}function io(e,t,n){var i=t.min,r=t.max;return void 0!==i&&e<i?e=n?vn(i,e,n.min):Math.max(e,i):void 0!==r&&e>r&&(e=n?vn(r,e,n.max):Math.min(e,r)),e}function ro(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function oo(e,t){var n,i=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&(i=(n=(0,K.zs)([r,i],2))[0],r=n[1]),{min:e.min+i,max:e.min+r}}function ao(e,t,n){return{min:so(e,t),max:so(e,n)}}function so(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function co(e,t){return $r(function(e,t){var n=e.top,i=e.left,r=e.bottom,o=e.right;void 0===t&&(t=Kr);var a=t({x:i,y:n}),s=t({x:o,y:r});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}function lo(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Gr(e,t)<n}function uo(e){return e.max-e.min}function mo(e,t){var n=.5,i=uo(e),r=uo(t);return r>i?n=In(t.min,t.max-i,e.min):i>r&&(n=In(e.min,e.max-r,t.min)),pn(0,1,n)}function ho(e,t,n,i){void 0===i&&(i=.5),e.origin=i,e.originPoint=vn(t.min,t.max,e.origin),e.scale=uo(n)/uo(t),lo(e.scale,1,1e-4)&&(e.scale=1),e.translate=vn(n.min,n.max,e.origin)-e.originPoint,lo(e.translate)&&(e.translate=0)}function po(e,t,n,i){ho(e.x,t.x,n.x,Eo(i.originX)),ho(e.y,t.y,n.y,Eo(i.originY))}function Eo(e){return"number"==typeof e?e:.5}function Ao(e,t,n){e.min=n.min+t.min,e.max=e.min+uo(t)}var go=function(e,t){return e.depth-t.depth};function fo(e){return e.projection.isEnabled||e.shouldResetTransform()}function Co(e,t){void 0===t&&(t=[]);var n=e.parent;return n&&Co(n,t),fo(e)&&t.push(e),t}function _o(e){if(!e.shouldResetTransform()){var t,n=e.getLayoutState();e.notifyBeforeLayoutMeasure(n.layout),n.isHydrated=!0,n.layout=e.measureViewportBox(),n.layoutCorrected=(t=n.layout,{x:(0,K.Cl)({},t.x),y:(0,K.Cl)({},t.y)}),e.notifyLayoutMeasure(n.layout,e.prevViewportBox||n.layout),Pi.update((function(){return e.rebaseProjectionTarget()}))}}function Do(e,t){return{min:t.min-e.min,max:t.max-e.min}}function yo(e,t){return{x:Do(e.x,t.x),y:Do(e.y,t.y)}}function Io(e,t){var n=e.getLayoutId(),i=t.getLayoutId();return n!==i||void 0===i&&e!==t}function vo(e){var t=e.getProps(),n=t.drag,i=t._dragX;return n&&!i}function No(e,t){e.min=t.min,e.max=t.max}function So(e,t,n){return n+t*(e-n)}function bo(e,t,n,i,r){return void 0!==r&&(e=So(e,r,i)),So(e,n,i)+t}function Mo(e,t,n,i,r){void 0===t&&(t=0),void 0===n&&(n=1),e.min=bo(e.min,t,n,i,r),e.max=bo(e.max,t,n,i,r)}function Lo(e,t){var n=t.x,i=t.y;Mo(e.x,n.translate,n.scale,n.originPoint),Mo(e.y,i.translate,i.scale,i.originPoint)}function Ro(e,t,n,i){var r=(0,K.zs)(i,3),o=r[0],a=r[1],s=r[2];e.min=t.min,e.max=t.max;var c=void 0!==n[s]?n[s]:.5,l=vn(t.min,t.max,c);Mo(e,n[o],n[a],l,n.scale)}var To=["x","scaleX","originX"],Oo=["y","scaleY","originY"];function wo(e,t,n){Ro(e.x,t.x,n,To),Ro(e.y,t.y,n,Oo)}function Fo(e,t,n,i,r){return e=So(e-=t,1/n,i),void 0!==r&&(e=So(e,1/r,i)),e}function Bo(e,t,n){var i=(0,K.zs)(n,3),r=i[0],o=i[1],a=i[2];!function(e,t,n,i,r){void 0===t&&(t=0),void 0===n&&(n=1),void 0===i&&(i=.5);var o=vn(e.min,e.max,i)-t;e.min=Fo(e.min,t,n,o,r),e.max=Fo(e.max,t,n,o,r)}(e,t[r],t[o],t[a],t.scale)}function Po(e,t){Bo(e.x,t,To),Bo(e.y,t,Oo)}var xo=new Set;function ko(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function Vo(e){return xo.add(e),function(){return xo.delete(e)}}function Uo(){if(xo.size){var e=0,t=[[]],n=[],i=function(n){return ko(t,n,e)},r=function(t){ko(n,t,e),e++};xo.forEach((function(t){t(i,r),e=0})),xo.clear();for(var o=n.length,a=0;a<=o;a++)t[a]&&t[a].forEach(Wo),n[a]&&n[a].forEach(Wo)}}var Zo,Wo=function(e){return e()},Ho=new WeakMap,Go=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),Ho.set(t,this)}return e.prototype.start=function(e,t){var n=this,i=void 0===t?{}:t,r=i.snapToCursor,o=void 0!==r&&r,a=i.cursorProgress,s=this.props.transformPagePoint;this.panSession=new zr(e,{onSessionStart:function(e){var t;n.stopMotion();var i=function(e){return qt(e,"client")}(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=Vo((function(e,t){var r=Co(n.visualElement),s=function(e){var t=[],n=function(e){fo(e)&&t.push(e),e.children.forEach(n)};return e.children.forEach(n),t.sort(go)}(n.visualElement),c=(0,K.fX)((0,K.fX)([],(0,K.zs)(r)),(0,K.zs)(s)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t((function(){c.forEach((function(e){return e.resetTransform()}))})),e((function(){_o(n.visualElement),s.forEach(_o)})),t((function(){c.forEach((function(e){return e.restoreTransform()})),o&&(l=n.snapToCursor(i))})),e((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;no((function(t){if(!l){var r=e.target[t],o=r.min,s=r.max;n.cursorProgress[t]=a?a[t]:In(o,s,i[t])}var c=n.getAxisMotionValue(t);c&&(n.originPoint[t]=c.get())}))})),t((function(){Ti.update(),Ti.preRender(),Ti.render(),Ti.postRender()})),e((function(){return n.resolveDragConstraints()}))}))},onStart:function(e,t){var i,r,o,a=n.props,s=a.drag,c=a.dragPropagation;(!s||c||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=rn(s),n.openGlobalLock))&&(Uo(),n.isDragging=!0,n.currentDirection=null,null===(r=(i=n.props).onDragStart)||void 0===r||r.call(i,e,t),null===(o=n.visualElement.animationState)||void 0===o||o.setActive(kt.Drag,!0))},onMove:function(e,t){var i,r,o,a,s=n.props,c=s.dragPropagation,l=s.dragDirectionLock;if(c||n.openGlobalLock){var u=t.offset;if(l&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(u),void(null!==n.currentDirection&&(null===(r=(i=n.props).onDirectionLock)||void 0===r||r.call(i,n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),null===(a=(o=n.props).onDrag)||void 0===a||a.call(o,e,t),Zo=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:s})},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,n=t.dragConstraints,i=t.dragElastic,r=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(ge(n)?this.resolveRefConstraints(r,n):function(e,t){var n=t.top,i=t.left,r=t.bottom,o=t.right;return{x:ro(e.x,i,o),y:ro(e.y,n,r)}}(r,n)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:ao(e,"left","right"),y:ao(e,"top","bottom")}}(i),this.constraints&&!this.hasMutatedConstraints&&no((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,i=n.onMeasureDragConstraints,r=n.transformPagePoint,o=t.current;this.constraintsBox=co(o,r);var a=function(e,t){return{x:oo(e.x,t.x),y:oo(e.y,t.y)}}(e,this.constraintsBox);if(i){var s=i(function(e){var t=e.x,n=e.y;return{top:n.min,bottom:n.max,left:t.min,right:t.max}}(a));this.hasMutatedConstraints=!!s,s&&(a=$r(s))}return a},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(kt.Drag,!1)},e.prototype.stop=function(e,t){var n,i,r;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var o=this.isDragging;if(this.cancelDrag(),o){var a=t.velocity;this.animateDragEnd(a),null===(r=(i=this.props).onDragEnd)||void 0===r||r.call(i,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return no((function(n){if(zo(n,t.props.drag,t.currentDirection)){var i=t.getAxisMotionValue(n);if(!i)return t.cursorProgress[n]=.5,!0;var r=t.visualElement.getLayoutState().layout,o=r[n].max-r[n].min,a=r[n].min+o/2,s=e[n]-a;t.originPoint[n]=e[n],i.set(s)}})).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(zo(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var i=this.originPoint[e]+t[e],r=this.constraints?io(i,this.constraints[e],this.elastic[e]):i;n.set(r)}},e.prototype.updateVisualElementAxis=function(e,t){var n,i=this.visualElement.getLayoutState().layout[e],r=i.max-i.min,o=this.cursorProgress[e],a=function(e,t,n,i,r){var o=e-t*n;return i?io(o,i,r):o}(t[e],r,o,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,a,a+r)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,i=e.dragDirectionLock,r=void 0!==i&&i,o=e.dragPropagation,a=void 0!==o&&o,s=e.dragConstraints,c=void 0!==s&&s,l=e.dragElastic,u=void 0===l?.35:l,d=e.dragMomentum,m=void 0===d||d,h=(0,K.Tt)(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,K.Cl)({drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:c,dragElastic:u,dragMomentum:m},h)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,i=t.layoutId,r="_drag"+e.toUpperCase();return this.props[r]?this.props[r]:n||void 0!==i?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,i=n.drag,r=n.dragMomentum,o=n.dragElastic,a=n.dragTransition,s=function(e,t){void 0===t&&(t=!0);var n,i=e.getProjectionParent();return!!i&&(t?Po(n=yo(i.projection.target,e.projection.target),i.getLatestValues()):n=yo(i.getLayoutState().layout,e.getLayoutState().layout),no((function(t){return e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),c=this.constraints||{};if(s&&Object.keys(c).length&&this.isLayoutDrag()){var l=this.visualElement.getProjectionParent();if(l){var u=yo(l.projection.targetFinal,c);no((function(e){var t=u[e],n=t.min,i=t.max;c[e]={min:isNaN(n)?void 0:n,max:isNaN(i)?void 0:i}}))}}var d=no((function(n){var l;if(zo(n,i,t.currentDirection)){var u=null!==(l=null==c?void 0:c[n])&&void 0!==l?l:{},d=o?200:1e6,m=o?40:1e7,h=(0,K.Cl)((0,K.Cl)({type:"inertia",velocity:r?e[n]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10},a),u);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,h):t.visualElement.startLayoutAnimation(n,h,s)}}));return Promise.all(d).then((function(){var e,n;null===(n=(e=t.props).onDragTransitionEnd)||void 0===n||n.call(e)}))},e.prototype.stopMotion=function(){var e=this;no((function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()}))},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var i=n.get();return n.set(i),n.set(i),Ar(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(ge(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var i={x:0,y:0};no((function(t){i[t]=mo(e.visualElement.projection.target[t],e.constraintsBox[t])})),this.updateConstraints((function(){no((function(t){if(zo(t,n,null)){var r=function(e,t,n){var i=e.max-e.min,r=vn(t.min,t.max-i,n);return{min:r,max:r+i}}(e.visualElement.projection.target[t],e.constraintsBox[t],i[t]),o=r.min,a=r.max;e.visualElement.setProjectionTargetAxis(t,o,a)}}))})),setTimeout(Uo,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=Vo((function(n,i){var r=Co(t.visualElement);i((function(){return r.forEach((function(e){return e.resetTransform()}))})),n((function(){return _o(t.visualElement)})),i((function(){return r.forEach((function(e){return e.restoreTransform()}))})),n((function(){t.resolveDragConstraints()})),e&&i(e)}))},e.prototype.mount=function(e){var t=this,n=Kt(e.getInstance(),"pointerdown",(function(e){var n=t.props,i=n.drag,r=n.dragListener;i&&(void 0===r||r)&&t.start(e)})),i=Ut(window,"resize",(function(){t.scalePoint()})),r=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),o=e.prevDragCursor;return o&&this.start(Zo,{cursorProgress:o}),function(){null==n||n(),null==i||i(),null==r||r(),t.cancelDrag()}},e}();function zo(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Yo,qo,Xo={pan:dn((function(e){var t=e.onPan,n=e.onPanStart,i=e.onPanEnd,r=e.onPanSessionStart,o=e.visualElement,a=t||n||i||r,s=(0,M.li)(null),c=(0,M.NT)(re).transformPagePoint,l={onSessionStart:r,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,i&&i(e,t)}};(0,M.vJ)((function(){null!==s.current&&s.current.updateHandlers(l)})),$t(o,"pointerdown",a&&function(e){s.current=new zr(e,l,{transformPagePoint:c})}),cn((function(){return s.current&&s.current.end()}))})),drag:dn((function(e){var t=e.dragControls,n=e.visualElement,i=(0,M.NT)(re).transformPagePoint,r=se((function(){return new Go({visualElement:n})}));r.setProps((0,K.Cl)((0,K.Cl)({},e),{transformPagePoint:i})),(0,M.vJ)((function(){return t&&t.subscribe(r)}),[r]),(0,M.vJ)((function(){return r.mount(n)}),[])}))};function jo(e){return"string"==typeof e&&e.startsWith("var(--")}!function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"}(Yo||(Yo={})),function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"}(qo||(qo={}));var Qo=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Jo(e,t,n){void 0===n&&(n=1);var i=(0,K.zs)(function(e){var t=Qo.exec(e);if(!t)return[,];var n=(0,K.zs)(t,3);return[n[1],n[2]]}(e),2),r=i[0],o=i[1];if(r){var a=window.getComputedStyle(t).getPropertyValue(r);return a?a.trim():jo(o)?Jo(o,t,n+1):o}}function Ko(e,t){return e/(t.max-t.min)*100}var $o="_$css";var ea={process:function(e,t,n){var i=n.target;if("string"==typeof e){if(!Ke.test(e))return e;e=parseFloat(e)}return Ko(e,i.x)+"% "+Ko(e,i.y)+"%"}},ta={borderRadius:(0,K.Cl)((0,K.Cl)({},ea),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ea,borderTopRightRadius:ea,borderBottomLeftRadius:ea,borderBottomRightRadius:ea,boxShadow:{process:function(e,t){var n=t.delta,i=t.treeScale,r=e,o=e.includes("var("),a=[];o&&(e=e.replace(Qo,(function(e){return a.push(e),$o})));var s=Gn.parse(e);if(s.length>5)return r;var c=Gn.createTransformer(e),l="number"!=typeof s[0]?1:0,u=n.x.scale*i.x,d=n.y.scale*i.y;s[0+l]/=u,s[1+l]/=d;var m=vn(u,d,.5);"number"==typeof s[2+l]&&(s[2+l]/=m),"number"==typeof s[3+l]&&(s[3+l]/=m);var h=c(s);if(o){var p=0;h=h.replace($o,(function(){var e=a[p];return p++,e}))}return h}}},na=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},t.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,i){void 0===i&&(i={});var r=i.originBox,o=i.targetBox,a=i.visibilityAction,s=i.shouldStackAnimate,c=i.onComplete,l=i.prevParent,u=(0,K.Tt)(i,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=t.props,m=d.visualElement,h=d.layout;if(!1===s)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===s){s&&(t.isAnimatingTree=!0),n=r||n,e=o||e;var p=!1,E=m.getProjectionParent();if(E){var A=E.prevViewportBox,g=E.getLayoutState().layout;l&&(o&&(g=l.getLayoutState().layout),r&&!Io(l,E)&&l.prevViewportBox&&(A=l.prevViewportBox)),A&&ca(l,r,o)&&(p=!0,n=yo(A,n),e=yo(g,e))}var f=ia(n,e),C=no((function(i){var r,o;if("position"===h){var s=e[i].max-e[i].min;n[i].max=n[i].min+s}if(!m.projection.isTargetLocked)return void 0===a?f?t.animateAxis(i,e[i],n[i],(0,K.Cl)((0,K.Cl)({},u),{isRelative:p})):(null===(o=(r=t.stopAxisAnimation)[i])||void 0===o||o.call(r),m.setProjectionTargetAxis(i,e[i].min,e[i].max,p)):void m.setVisibility(a===qo.Show)}));return m.syncRender(),Promise.all(C).then((function(){t.isAnimatingTree=!1,c&&c(),m.notifyLayoutAnimationComplete()}))}},t}return(0,K.C6)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=Ar,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)Re[t]=e[t]}(ta)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),no((function(t){var n,i;return null===(i=(n=e.stopAxisAnimation)[t])||void 0===i?void 0:i.call(n)}))},t.prototype.animateAxis=function(e,t,n,i){var r,o,a=this,s=void 0===i?{}:i,c=s.transition,l=s.isRelative;if(!this.isAnimating[e]||!aa(t,this.currentAnimationTarget[e])){null===(o=(r=this.stopAxisAnimation)[e])||void 0===o||o.call(r),this.isAnimating[e]=!0;var u=this.props.visualElement,d=this.frameTarget[e],m=u.getProjectionAnimationProgress()[e];m.clearListeners(),m.set(0),m.set(0);var h=function(){var i=m.get()/1e3;!function(e,t,n,i){e.min=vn(t.min,n.min,i),e.max=vn(t.max,n.max,i)}(d,n,t,i),u.setProjectionTargetAxis(e,d.min,d.max,l)};h();var p=m.onChange(h);this.stopAxisAnimation[e]=function(){a.isAnimating[e]=!1,m.stop(),p()},this.currentAnimationTarget[e]=t;var E=c||u.getDefaultTransition()||sa;return Ar("x"===e?"layoutX":"layoutY",m,1e3,E&&Er(E,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(M.uA);function ia(e,t){return!(oa(e)||oa(t)||aa(e.x,t.x)&&aa(e.y,t.y))}var ra={min:0,max:0};function oa(e){return aa(e.x,ra)&&aa(e.y,ra)}function aa(e,t){return e.min===t.min&&e.max===t.max}var sa={duration:.45,ease:[.4,0,.1,1]};function ca(e,t,n){return e||!e&&!(t||n)}var la={layoutReady:function(e){return e.notifyLayoutReady()}};function ua(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?la:t,i=n.layoutReady,r=n.parent;Vo((function(t,n){var o=Array.from(e).sort(go),a=r?Co(r):[];n((function(){(0,K.fX)((0,K.fX)([],(0,K.zs)(a)),(0,K.zs)(o)).forEach((function(e){return e.resetTransform()}))})),t((function(){o.forEach(_o)})),n((function(){a.forEach((function(e){return e.restoreTransform()})),o.forEach(i)})),t((function(){o.forEach((function(e){e.isPresent&&(e.presence=Yo.Present)}))})),n((function(){Ti.preRender(),Ti.render()})),t((function(){Pi.postRender((function(){return o.forEach(da)})),e.clear()}))})),Uo()}}}function da(e){e.prevViewportBox=e.projection.target}var ma=(0,M.q6)(ua()),ha=(0,M.q6)(ua());function pa(e){return!!e.forceUpdate}var Ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,K.C6)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,i=e.visualElement;pa(t)&&t.register(i),pa(n)&&n.register(i),i.onUnmount((function(){pa(t)&&t.remove(i),pa(n)&&n.remove(i)}))},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return pa(t)?t.syncUpdate():(!function(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;pa(e)||e.flush()},t.prototype.render=function(){return null},t}(M.Ay.Component);var Aa={measureLayout:function(e){var t=(0,M.NT)(ma),n=(0,M.NT)(ha);return M.Ay.createElement(Ea,(0,K.Cl)({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=(0,K.zs)(ce(),2)[1];return M.n(na,(0,K.Cl)({},e,{safeToRemove:t}))}};function ga(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:to(),deltaFinal:to(),deltaTransform:""}}var fa=ga();function Ca(e,t,n){var i=e.x,r=e.y,o="translate3d("+i.translate/t.x+"px, "+r.translate/t.y+"px, 0) ";if(n){var a=n.rotate,s=n.rotateX,c=n.rotateY;a&&(o+="rotate("+a+") "),s&&(o+="rotateX("+s+") "),c&&(o+="rotateY("+c+") ")}return o+="scale("+i.scale+", "+r.scale+")",n||o!==Da?o:""}function _a(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var Da=Ca(fa.delta,fa.treeScale,{x:1,y:1}),ya=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function Ia(e,t,n,i){var r,o,a=e.delta,s=e.layout,c=e.layoutCorrected,l=e.treeScale,u=t.target;o=s,No((r=c).x,o.x),No(r.y,o.y),function(e,t,n){var i=n.length;if(i){var r,o;t.x=t.y=1;for(var a=0;a<i;a++)o=(r=n[a]).getLayoutState().delta,t.x*=o.x.scale,t.y*=o.y.scale,Lo(e,o),vo(r)&&wo(e,e,r.getLatestValues())}}(c,l,n),po(a,c,u,i)}var va=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){gr(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){fr(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(go),this.isDirty=!1,this.children.forEach(e)},e}();var Na=function(e){var t=e.treeType,n=void 0===t?"":t,i=e.build,r=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,c=e.readValueFromInstance,l=e.resetTransform,u=e.restoreTransform,d=e.removeValueFromRenderState,m=e.sortNodePosition,h=e.scrapeMotionValuesFromProps;return function(e,t){var p=e.parent,E=e.props,A=e.presenceId,g=e.blockInitialAnimation,f=e.visualState;void 0===t&&(t={});var C,_,D,y,I,v,N=f.latestValues,S=f.renderState,b=function(){var e=ya.map((function(){return new Cr})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){return ya.forEach((function(i){var r;null===(r=t[i])||void 0===r||r.call(t);var o="on"+i,a=e[o];a&&(t[i]=n[o](a))}))}};return e.forEach((function(e,t){n["on"+ya[t]]=function(t){return e.add(t)},n["notify"+ya[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,(0,K.fX)([],(0,K.zs)(t)))}})),n}(),M={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},L=M,R=N,T=ga(),O=!1,w=new Map,F=new Map,B={},P=(0,K.Cl)({},N);function x(){C&&(Y.isProjectionReady()&&(wo(L.targetFinal,L.target,R),po(T.deltaFinal,T.layoutCorrected,L.targetFinal,N)),k(),s(C,S))}function k(){var e=N;if(y&&y.isActive()){var n=y.getCrossfadeState(Y);n&&(e=n)}i(Y,S,e,L,T,t,E)}function V(){b.notifyUpdate(N)}function U(){Y.layoutTree.forEach(ba)}var Z=h(E);for(var W in Z){var H=Z[W];void 0!==N[W]&&Ve(H)&&H.set(N[W],!1)}var G=ye(E),z=Ie(E),Y=(0,K.Cl)((0,K.Cl)({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,path:p?(0,K.fX)((0,K.fX)([],(0,K.zs)(p.path)),[p]):[],layoutTree:p?p.layoutTree:new va,presenceId:A,projection:M,variantChildren:z?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==p?void 0:p.isMounted()),blockInitialAnimation:g,isMounted:function(){return Boolean(C)},mount:function(e){C=Y.current=e,Y.pointTo(Y),z&&p&&!G&&(v=null==p?void 0:p.addVariantChild(Y)),null==p||p.children.add(Y)},unmount:function(){Ri.update(V),Ri.render(x),Ri.preRender(Y.updateLayoutProjection),F.forEach((function(e){return e()})),Y.stopLayoutAnimation(),Y.layoutTree.remove(Y),null==v||v(),null==p||p.children.delete(Y),null==D||D(),b.clearAllListeners()},addVariantChild:function(e){var t,n=Y.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return m&&n===e.treeType?m(Y.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return z?Y:null==p?void 0:p.getClosestVariantNode()},scheduleUpdateLayoutProjection:p?p.scheduleUpdateLayoutProjection:function(){return Pi.preRender(Y.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return E.layoutId},getInstance:function(){return C},getStaticValue:function(e){return N[e]},setStaticValue:function(e,t){return N[e]=t},getLatestValues:function(){return N},setVisibility:function(e){Y.isVisible!==e&&(Y.isVisible=e,Y.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(Y,e,E,t)},addValue:function(e,t){Y.hasValue(e)&&Y.removeValue(e),w.set(e,t),N[e]=t.get(),function(e,t){var n=t.onChange((function(t){N[e]=t,E.onUpdate&&Pi.update(V,!1,!0)})),i=t.onRenderRequest(Y.scheduleRender);F.set(e,(function(){n(),i()}))}(e,t)},removeValue:function(e){var t;w.delete(e),null===(t=F.get(e))||void 0===t||t(),F.delete(e),delete N[e],d(e,S)},hasValue:function(e){return w.has(e)},getValue:function(e,t){var n=w.get(e);return void 0===n&&void 0!==t&&(n=Dr(t),Y.addValue(e,n)),n},forEachValue:function(e){return w.forEach(e)},readValue:function(e){var n;return null!==(n=N[e])&&void 0!==n?n:c(C,e,t)},setBaseTarget:function(e,t){P[e]=t},getBaseTarget:function(e){if(r){var t=r(E,e);if(void 0!==t&&!Ve(t))return t}return P[e]}},b),{build:function(){return k(),S},scheduleRender:function(){Pi.render(x,!1,!0)},syncRender:x,setProps:function(e){E=e,b.updatePropListeners(e),B=function(e,t,n){var i;for(var r in t){var o=t[r],a=n[r];if(Ve(o))e.addValue(r,o);else if(Ve(a))e.addValue(r,Dr(o));else if(a!==o)if(e.hasValue(r)){var s=e.getValue(r);!s.hasAnimated&&s.set(o)}else e.addValue(r,Dr(null!==(i=e.getStaticValue(r))&&void 0!==i?i:o))}for(var r in n)void 0===t[r]&&e.removeValue(r);return t}(Y,h(E),B)},getProps:function(){return E},getVariant:function(e){var t;return null===(t=E.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return E.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==p?void 0:p.getVariantContext();if(!G){var t=(null==p?void 0:p.getVariantContext())||{};return void 0!==E.initial&&(t.initial=E.initial),t}for(var n={},i=0;i<Ra;i++){var r=La[i],o=E[r];(Ce(o)||!1===o)&&(n[r]=o)}return n},enableLayoutProjection:function(){M.isEnabled=!0,Y.layoutTree.add(Y)},lockProjectionTarget:function(){M.isTargetLocked=!0},unlockProjectionTarget:function(){Y.stopLayoutAnimation(),M.isTargetLocked=!1},getLayoutState:function(){return T},setCrossfader:function(e){y=e},isProjectionReady:function(){return M.isEnabled&&M.isHydrated&&T.isHydrated},startLayoutAnimation:function(e,t,n){void 0===n&&(n=!1);var i=Y.getProjectionAnimationProgress()[e],r=n?M.relativeTarget[e]:M.target[e],o=r.min,a=r.max-o;return i.clearListeners(),i.set(o),i.set(o),i.onChange((function(t){Y.setProjectionTargetAxis(e,t,t+a,n)})),Y.animateMotionValue(e,i,0,t)},stopLayoutAnimation:function(){no((function(e){return Y.getProjectionAnimationProgress()[e].stop()}))},measureViewportBox:function(e){void 0===e&&(e=!0);var n=a(C,t);return e||Po(n,N),n},getProjectionAnimationProgress:function(){return I||(I={x:Dr(0),y:Dr(0)}),I},setProjectionTargetAxis:function(e,t,n,i){var r;void 0===i&&(i=!1),i?(M.relativeTarget||(M.relativeTarget={x:{min:0,max:1},y:{min:0,max:1}}),r=M.relativeTarget[e]):(M.relativeTarget=void 0,r=M.target[e]),M.isHydrated=!0,r.min=t,r.max=n,O=!0,b.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=T.layout);var n=Y.getProjectionAnimationProgress(),i=n.x,r=n.y,o=!(M.relativeTarget||M.isTargetLocked||i.isAnimating()||r.isAnimating());(e||o)&&no((function(e){var n=t[e],i=n.min,r=n.max;Y.setProjectionTargetAxis(e,i,r)}))},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var n=yo(t.getLayoutState().layout,e.getLayoutState().layout);no((function(t){e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)}))}else e.rebaseProjectionTarget()}(Y),Y.notifyLayoutUpdate(T.layout,Y.prevViewportBox||T.layout,e)},resetTransform:function(){return l(Y,C,E)},restoreTransform:function(){return u(C,S)},updateLayoutProjection:function(){if(Y.isProjectionReady()){var e=T.delta,t=T.treeScale,n=t.x,i=t.y,r=T.deltaTransform;Ia(T,L,Y.path,N),O&&Y.notifyViewportBoxUpdate(L.target,e),O=!1;var o=Ca(e,t);o===r&&n===t.x&&i===t.y||Y.scheduleRender(),T.deltaTransform=o}},updateTreeLayoutProjection:function(){Y.layoutTree.forEach(Sa),Pi.preRender(U,!1,!0)},getProjectionParent:function(){if(void 0===_){for(var e=!1,t=Y.path.length-1;t>=0;t--){var n=Y.path[t];if(n.projection.isEnabled){e=n;break}}_=e}return _},resolveRelativeTargetBox:function(){var e=Y.getProjectionParent();if(M.relativeTarget&&e&&(function(e,t){Ao(e.target.x,e.relativeTarget.x,t.target.x),Ao(e.target.y,e.relativeTarget.y,t.target.y)}(M,e.projection),vo(e))){var t=M.target;wo(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(E._layoutResetTransform)},pointTo:function(e){L=e.projection,R=e.getLatestValues(),null==D||D(),D=un(e.onSetAxisTarget(Y.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;Y.isPresent?Y.presence=Yo.Present:null===(e=Y.layoutSafeToRemove)||void 0===e||e.call(Y)})))},isPresent:!0,presence:Yo.Entering});return Y}};function Sa(e){e.resolveRelativeTargetBox()}function ba(e){e.updateLayoutProjection()}var Ma,La=(0,K.fX)(["initial"],(0,K.zs)(Fr)),Ra=La.length,Ta=new Set(["width","height","top","left","right","bottom","x","y"]),Oa=function(e){return Ta.has(e)},wa=function(e,t){e.set(t,!1),e.set(t)},Fa=function(e){return e===nt||e===Ke};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Ma||(Ma={}));var Ba=function(e,t){return parseFloat(e.split(", ")[t])},Pa=function(e,t){return function(n,i){var r=i.transform;if("none"===r||!r)return 0;var o=r.match(/^matrix3d\((.+)\)$/);if(o)return Ba(o[1],t);var a=r.match(/^matrix\((.+)\)$/);return a?Ba(a[1],e):0}},xa=new Set(["x","y","z"]),ka=Oe.filter((function(e){return!xa.has(e)}));var Va={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,i=t.top;return parseFloat(i)+(n.max-n.min)},right:function(e,t){var n=e.x,i=t.left;return parseFloat(i)+(n.max-n.min)},x:Pa(4,13),y:Pa(5,14)},Ua=function(e,t,n,i){void 0===n&&(n={}),void 0===i&&(i={}),t=(0,K.Cl)({},t),i=(0,K.Cl)({},i);var r=Object.keys(t).filter(Oa),o=[],a=!1,s=[];if(r.forEach((function(r){var c=e.getValue(r);if(e.hasValue(r)){var l,u=n[r],d=t[r],m=vr(u);if(Ot(d))for(var h=d.length,p=null===d[0]?1:0;p<h;p++)l?vr(d[p]):(l=vr(d[p]))===m||Fa(m)&&Fa(l);else l=vr(d);if(m!==l)if(Fa(m)&&Fa(l)){var E=c.get();"string"==typeof E&&c.set(parseFloat(E)),"string"==typeof d?t[r]=parseFloat(d):Array.isArray(d)&&l===Ke&&(t[r]=d.map(parseFloat))}else(null==m?void 0:m.transform)&&(null==l?void 0:l.transform)&&(0===u||0===d)?0===u?c.set(l.transform(u)):t[r]=m.transform(d):(a||(o=function(e){var t=[];return ka.forEach((function(n){var i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),a=!0),s.push(r),i[r]=void 0!==i[r]?i[r]:t[r],wa(c,d))}})),s.length){var c=function(e,t,n){var i=t.measureViewportBox(),r=t.getInstance(),o=getComputedStyle(r),a=o.display,s={top:o.top,left:o.left,bottom:o.bottom,right:o.right,transform:o.transform};"none"===a&&t.setStaticValue("display",e.display||"block"),t.syncRender();var c=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);wa(r,Va[n](i,s)),e[n]=Va[n](c,o)})),e}(t,e,s);return o.length&&o.forEach((function(t){var n=(0,K.zs)(t,2),i=n[0],r=n[1];e.getValue(i).set(r)})),e.syncRender(),{target:c,transitionEnd:i}}return{target:t,transitionEnd:i}};function Za(e,t,n,i){return function(e){return Object.keys(e).some(Oa)}(t)?Ua(e,t,n,i):{target:t,transitionEnd:i}}var Wa=function(e,t,n,i){var r=function(e,t,n){var i,r=(0,K.Tt)(t,[]),o=e.getInstance();if(!(o instanceof HTMLElement))return{target:r,transitionEnd:n};for(var a in n&&(n=(0,K.Cl)({},n)),e.forEachValue((function(e){var t=e.get();if(jo(t)){var n=Jo(t,o);n&&e.set(n)}})),r){var s=r[a];if(jo(s)){var c=Jo(s,o);c&&(r[a]=c,n&&(null!==(i=n[a])&&void 0!==i||(n[a]=s)))}}return{target:r,transitionEnd:n}}(e,t,i);return Za(e,t=r.target,n,i=r.transitionEnd)};var Ha={treeType:"dom",readValueFromInstance:function(e,t){if(Be(t)){var n=cr(t);return n&&n.default||0}var i,r=(i=e,window.getComputedStyle(i));return(Ze(t)?r.getPropertyValue(t):r[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return co(e,t.transformPagePoint)},resetTransform:function(e,t,n){var i=n.transformTemplate;t.style.transform=i?i({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,i=t.style;delete n[e],delete i[e]},makeTargetAnimatable:function(e,t,n,i){var r=n.transformValues;void 0===i&&(i=!0);var o=t.transition,a=t.transitionEnd,s=(0,K.Tt)(t,["transition","transitionEnd"]),c=function(e,t,n){var i,r,o={};for(var a in e)o[a]=null!==(i=Lr(a,t))&&void 0!==i?i:null===(r=n.getValue(a))||void 0===r?void 0:r.get();return o}(s,o||{},e);if(r&&(a&&(a=r(a)),s&&(s=r(s)),c&&(c=r(c))),i){!function(e,t,n){var i,r,o,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),c=s.length;if(c)for(var l=0;l<c;l++){var u=s[l],d=t[u],m=null;Array.isArray(d)&&(m=d[0]),null===m&&(m=null!==(r=null!==(i=n[u])&&void 0!==i?i:e.readValue(u))&&void 0!==r?r:t[u]),null!=m&&("string"==typeof m&&/^\-?\d*\.?\d+$/.test(m)?m=parseFloat(m):!Sr(m)&&Gn.test(d)&&(m=lr(u,d)),e.addValue(u,Dr(m)),null!==(o=(a=n)[u])&&void 0!==o||(a[u]=m),e.setBaseTarget(u,m))}}(e,s,c);var l=Wa(e,s,c,a);a=l.transitionEnd,s=l.target}return(0,K.Cl)({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:Lt,build:function(e,t,n,i,r,o,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var s=i.isEnabled&&r.isHydrated;st(t,n,i,r,o,a.transformTemplate,s?Ca:void 0,s?_a:void 0)},render:St},Ga=Na(Ha),za=Na((0,K.Cl)((0,K.Cl)({},Ha),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Be(t)?(null===(n=cr(t))||void 0===n?void 0:n.default)||0:(t=bt.has(t)?t:Nt(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Rt,build:function(e,t,n,i,r,o,a){var s=i.isEnabled&&r.isHydrated;_t(t,n,i,r,o,a.transformTemplate,s?Ca:void 0,s?_a:void 0)},render:Mt})),Ya=function(e,t){return Le(e)?za(t,{enableHardwareAcceleration:!1}):Ga(t,{enableHardwareAcceleration:!0})},qa=(0,K.Cl)((0,K.Cl)((0,K.Cl)((0,K.Cl)({},Ur),mn),Xo),Aa),Xa=be((function(e,t){return function(e,t,n,i){var r=t.forwardMotionProps,o=void 0!==r&&r,a=Le(e)?xt:Vt;return(0,K.Cl)((0,K.Cl)({},a),{preloadedFeatures:n,useRender:It(o),createVisualElement:i,Component:e})}(e,t,qa,Ya)}));function ja(e,t){return e.format===t.format&&e.text===t.text}function Qa(e){return e.text+e.format}class Ja{constructor(e){this.highlighted=!1,this.code=e,this.points=[]}}var Ka=n(6302);class $a{static now(){return Date.now()}}function es(e){var t=se((function(){return Dr(e)}));if((0,M.NT)(re).isStatic){var n=(0,K.zs)((0,M.J0)(e),2)[1];(0,M.vJ)((function(){return t.onChange(n)}),[])}return t}var ts=function(e){return function(e){return"object"==typeof e&&e.mix}(e)?e.mix:void 0};function ns(e,t){var n=es(t()),i=function(){return n.set(t())};return i(),function(e,t){(0,M.vJ)((function(){var n=e.map((function(e){return e.onChange(t)}));return function(){return n.forEach((function(e){return e()}))}}))}(e,(function(){return Pi.update(i,!1,!0)})),n}function is(e,t,n,i){var r="function"==typeof t?t:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!Array.isArray(e[0]),i=n?0:-1,r=e[0+i],o=e[1+i],a=e[2+i],s=e[3+i],c=$n(o,a,(0,K.Cl)({mixer:ts(a[0])},s));return n?c(r):c}(t,n,i);return Array.isArray(e)?rs(e,r):rs([e],(function(e){var t=(0,K.zs)(e,1)[0];return r(t)}))}function rs(e,t){var n=se((function(){return[]}));return ns(e,(function(){n.length=0;for(var i=e.length,r=0;r<i;r++)n[r]=e[r].get();return t(n)}))}function os(e,t,n){void 0===n&&(n={});var i=Ve(e)?e:Dr(e);return Ar("",i,t,n),{stop:function(){return i.stop()}}}var as=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class ss extends M.Ay.Component{constructor(e){super(e),this.state={element:e.element}}update(e){this.setState({element:e})}style(e){this.customStyle=e,this.forceUpdate()}render(){var e,t,n,i,r,o,a,s,c;const l=this.state.element,u=this.props.configuration.style;!l.highlighted&&this.props.configuration.automaticSelectionEnabled&&this.props.onClick(l);const d=null!==(t=null===(e=this.customStyle)||void 0===e?void 0:e.fillColor)&&void 0!==t?t:l.highlighted?u.highlightedPolygonFillColor:u.polygonFillColor,m=null!==(i=null===(n=this.customStyle)||void 0===n?void 0:n.strokeColor)&&void 0!==i?i:l.highlighted?u.highlightedPolygonStrokeColor:u.polygonStrokeColor,h=null!==(o=null===(r=this.customStyle)||void 0===r?void 0:r.strokeWidth)&&void 0!==o?o:l.highlighted?u.highlightedPolygonStrokeWidth:u.polygonStrokeWidth,p=null!==(s=null===(a=this.customStyle)||void 0===a?void 0:a.cornerRadius)&&void 0!==s?s:l.highlighted?u.highlightedPolygonCornerRadius:u.polygonCornerRadius,E=null!==(c=this.props.animateToPoints)&&void 0!==c?c:l.points;return M.Ay.createElement(cs,{points:E,onClick:()=>{this.props.onClick&&this.props.onClick(l)},fill:d,stroke:m,strokeWidth:h,cornerRadius:p})}}function cs(e){var{points:t,cornerRadius:n}=e,i=as(e,["points","cornerRadius"]);const r=[t[0].x,t[0].y,t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y],o=r.map(es),a=is(o,(([e,t,i,r,o,a,s,c])=>{const l=[{x:e,y:t},{x:i,y:r},{x:o,y:a},{x:s,y:c}];return Ka.b.toSvgPathStringWithRoundedCorners(l,n)}));return(0,M.vJ)((()=>{const e=[];for(let t=0;t<r.length;t++)e.push(os(o[t],r[t]));return()=>{e.forEach((e=>e.stop()))}}),[t]),M.Ay.createElement(Xa.path,Object.assign({d:a},i))}class ls{constructor(){this.detectedAt=0}update(e,t,n,i,r,o){this.polygon=e,this.polygonRef=t,this.label=n,this.labelRef=i,this.element=r,this.updatedAt=o}}class us extends M.Ay.Component{constructor(e){super(e),this.state={polygonElements:[]}}update(e,t,n,i){const r=[];(class{static keepOnlyCenterMostDuplicate(e,t){const n=new Map;e.forEach((e=>{const t=Qa(e),i=n.get(t);i?i.push(e):n.set(t,[e])})),n.forEach(((t,i)=>{t.length<2?n.delete(i):t.forEach(((t,n)=>{e.splice(e.indexOf(t),1)}))})),n.forEach(((n,i)=>{const r=e=>{let t={x:0,y:0};return e.forEach((e=>{t.x+=e.x,t.y+=e.y})),t.x/=e.length,t.y/=e.length,t},o=t.width/2,a=n.reduce(((e,t)=>{const n=r(e.quad),i=r(t.quad);return Math.abs(o-n.x)<Math.abs(o-i.x)?e:t}));e.push(a)}))}}).keepOnlyCenterMostDuplicate(i,n),i.forEach((i=>{const o=new Ja(i);o.points=void 0===e?Ka.b.scaleListToHtmlElement(i.quad,n,t.video):i.quad.map((t=>{const i=new Ka.b(t.x,t.y);return i.x*=e.width/n.width,i.y*=e.height/n.height,i.y+=e.y,i.x+=e.x,i})),o.points.forEach((e=>{t.state.mirrored&&this.container&&(e.x=this.container.clientWidth-e.x)})),r.push(o)}));const o=[];this.state.polygonElements.forEach((e=>{const t=r.find((t=>ja(t.code,e.element.code)));let n=!1;const i=$a.now();void 0===t?e.updatedAt+1e3<i&&(n=!0):(e.element=t,e.polygon=M.Ay.createElement(ss,{key:Qa(e.element.code),ref:t=>e.polygonRef=t,configuration:this.props.configuration,element:e.element,animateToPoints:t.points,onClick:this.onPolygonClick.bind(this)}),e.label=M.Ay.createElement(this.props.LabelComponent,Object.assign({},this.props.labelComponentConfig,{key:Qa(e.element.code),ref:t=>e.labelRef=t,configuration:this.props.configuration,element:e.element,animateToPoints:t.points,onClick:this.onPolygonClick.bind(this)})),this.props.configuration.automaticSelectionEnabled&&this.props.configuration.countingRepeatDelay>-1&&e.detectedAt>0&&i>this.props.configuration.countingRepeatDelay+e.detectedAt&&(this.props.onPolygonSelected(t.code),e.detectedAt=i),e.updatedAt=i),n||o.push(e)})),r.forEach((e=>{if(void 0===this.state.polygonElements.find((t=>ja(t.element.code,e.code)))){let t,n;const i=new ls,r=M.Ay.createElement(ss,{key:Qa(e.code),ref:i=>{t=i,void 0!==n&&this.props.onBarcodeFound(e.code,t,n)},configuration:this.props.configuration,element:e,onClick:this.onPolygonClick.bind(this)}),a=M.Ay.createElement(this.props.LabelComponent,Object.assign({},this.props.labelComponentConfig,{key:Qa(e.code),ref:i=>{n=i,void 0!==t&&this.props.onBarcodeFound(e.code,t,n)},configuration:this.props.configuration,element:e,onClick:this.onPolygonClick.bind(this)}));i.update(r,t,a,n,e,$a.now()),o.push(i)}})),this.setState({polygonElements:o})}onPolygonClick(e){var t,n,i,r;let o;e.highlighted=!e.highlighted,this.forceUpdate(),this.state.polygonElements.forEach((t=>{var n;const i=t.labelRef,r=t.label.props.element;ja(r.code,e.code)&&(o=t),i&&ja(r.code,e.code)&&(i.update(e),null===(n=t.polygonRef)||void 0===n||n.update(e))})),e.highlighted&&(null===(n=(t=this.props).onPolygonSelected)||void 0===n||n.call(t,e.code),o&&(o.detectedAt=$a.now())),null===(r=(i=this.props).onPolygonClick)||void 0===r||r.call(i,e.code)}render(){var e,t;return M.Ay.createElement("div",{style:Object.assign({width:"100%",height:"100%",position:"absolute"},this.props.style),ref:e=>this.container=e},M.Ay.createElement(Xa.svg,{style:{position:"absolute",maxWidth:"100%",width:"100%",height:"100%"}},null===(e=this.state.polygonElements)||void 0===e?void 0:e.map((e=>e.polygon))),null===(t=this.state.polygonElements)||void 0===t?void 0:t.map((e=>e.label)))}}var ds=n(780);class ms extends M.Ay.Component{render(){if(!this.props.visible)return null;const e=ds.Ay.svg`
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,(()=>(()=>{var e={10:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var i=n(1173),r=n(525),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.DocumentClassifier.create(new i.hq(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.DocumentClassifier.run(this.objectId,e);return{result:new i.g$(o.result),originalImage:new r._(o.originalImage)}}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.DocumentClassifier.destroy(this.objectId)}))}}},61:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(4751),r=n(6302);class o{static convertLinesToViewportLines(e,t){if(t&&e)return t.map((t=>({start:new r.b(t.start.x*e.width,t.start.y*e.height),end:new r.b(t.end.x*e.width,t.end.y*e.height)})))}static convertToViewportPointsFromParentSize(e,t){return t?i.o.isEmpty(e)?void 0:t.map((t=>r.b.scaleUpTo(t,e))):i.o.toPolygon(e)}static calculateScale(e){let t,n=0,i=0;return 1>e.width/e.height?(t=e.height/1,n=(1-e.width/t)/2):(t=e.width/1,i=(1-e.height/t)/2),{x:n,y:i,containerScale:t}}static findScale(e,t){let n,i=0,r=0;return t.ratio(!0)>e.ratio(!0)?(n=e.width/t.width,r=(t.height-e.height/n)/2):(n=e.height/t.height,i=(t.width-e.width/n)/2),{x:i,y:r,scale:n}}static preventDefaultCallback(e){e.preventDefault()}static disableScreenMovement(){document.addEventListener("touchmove",o.preventDefaultCallback,{passive:!1}),document.body.scrollTop=document.documentElement.scrollTop=0,document.documentElement.style.overflow="hidden"}static enableScreenMovement(){document.removeEventListener("touchmove",o.preventDefaultCallback),document.documentElement.style.overflow="auto"}static findContainerOrThrow(e){var t;const n=null!==(t=e.container)&&void 0!==t?t:document.getElementById(e.containerId);if(!n)throw Error("Unable to initialize scanner: Cannot find container element either from 'container' property or with the containerId property provided.");return n}static unmountSafely(e){window.setTimeout((()=>{e.unmount()}),0)}}},73:(e,t,n)=>{"use strict";n.d(t,{$e:()=>r,X:()=>o,hZ:()=>i});const i=["EXACT","INTERPOLATE"];class r{constructor(e={}){this.confirmationMethod="EXACT",this.minConfirmations=3,this.minConfidenceForStableField=.8,this.autoClearThreshold=4,void 0!==e.confirmationMethod&&(this.confirmationMethod=e.confirmationMethod),void 0!==e.minConfirmations&&(this.minConfirmations=e.minConfirmations),void 0!==e.minConfidenceForStableField&&(this.minConfidenceForStableField=e.minConfidenceForStableField),void 0!==e.autoClearThreshold&&(this.autoClearThreshold=e.autoClearThreshold)}}class o{constructor(e={}){this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualScanningResult=2,void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualScanningResult&&(this.minimumNumberOfRequiredFramesWithEqualScanningResult=e.minimumNumberOfRequiredFramesWithEqualScanningResult)}}},170:(e,t,n)=>{"use strict";n.d(t,{Fc:()=>a,RX:()=>r,dn:()=>o,mN:()=>s});var i=n(6244);const r=["SUCCESS","BARCODE_WITHOUT_VIN","NO_BARCODE_FOUND","BARCODE_EXTRACTION_DISABLED"];class o{constructor(e={}){if(void 0===e.extractedVIN)throw new Error("extractedVIN must be present in constructor argument");if(this.extractedVIN=e.extractedVIN,void 0===e.rectangle)throw new Error("rectangle must be present in constructor argument");if(this.rectangle=e.rectangle.map((e=>({x:e.x,y:e.y}))),void 0===e.status)throw new Error("status must be present in constructor argument");this.status=e.status}}class a{constructor(e={}){if(void 0===e.textResult)throw new Error("textResult must be present in constructor argument");if(this.textResult=new i.n_(e.textResult),void 0===e.barcodeResult)throw new Error("barcodeResult must be present in constructor argument");this.barcodeResult=new o(e.barcodeResult)}}class s{constructor(e={}){this.optimizeSingleLine=!0,this.extractVINFromBarcode=!1,this.ocrResolutionLimit=0,this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualScanningResult=2,void 0!==e.optimizeSingleLine&&(this.optimizeSingleLine=e.optimizeSingleLine),void 0!==e.extractVINFromBarcode&&(this.extractVINFromBarcode=e.extractVINFromBarcode),void 0!==e.ocrResolutionLimit&&(this.ocrResolutionLimit=e.ocrResolutionLimit),void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualScanningResult&&(this.minimumNumberOfRequiredFramesWithEqualScanningResult=e.minimumNumberOfRequiredFramesWithEqualScanningResult)}}},177:(e,t,n)=>{"use strict";n.d(t,{An:()=>a,Ni:()=>i,Oc:()=>r,Xb:()=>s,Y8:()=>c,YF:()=>d,f8:()=>p,hI:()=>o,hJ:()=>l,t:()=>u,vd:()=>m,w:()=>h,yH:()=>E});const i=["BINARY","ANTIALIASED"],r=["PRESET_1","PRESET_2","PRESET_3","PRESET_4","PRESET_5"];var o;!function(e){e.from=function(e){const t=e._type;switch(t){case"LegacyFilter":return new a(e);case"ScanbotBinarizationFilter":return new s(e);case"CustomBinarizationFilter":return new c(e);case"ColorDocumentFilter":return new l(e);case"ColorDocumentShadowRemovalFilter":return new u(e);case"BrightnessFilter":return new d(e);case"ContrastFilter":return new m(e);case"GrayscaleFilter":return new h(e);case"WhiteBlackPointFilter":return new p(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(o||(o={}));class a{constructor(e={}){this._type="LegacyFilter",this.filterType=0,void 0!==e.filterType&&(this.filterType=e.filterType)}}class s{constructor(e={}){this._type="ScanbotBinarizationFilter",this.outputMode="BINARY",void 0!==e.outputMode&&(this.outputMode=e.outputMode)}}class c{constructor(e={}){this._type="CustomBinarizationFilter",this.outputMode="BINARY",this.denoise=.5,this.radius=32,this.preset="PRESET_4",void 0!==e.outputMode&&(this.outputMode=e.outputMode),void 0!==e.denoise&&(this.denoise=e.denoise),void 0!==e.radius&&(this.radius=e.radius),void 0!==e.preset&&(this.preset=e.preset)}}class l{constructor(e={}){this._type="ColorDocumentFilter",this.contrastEnhancement=.5,this.colorEnhancement=.5,this.paperWhitening=1,this.paperWhiteningBias=0,void 0!==e.contrastEnhancement&&(this.contrastEnhancement=e.contrastEnhancement),void 0!==e.colorEnhancement&&(this.colorEnhancement=e.colorEnhancement),void 0!==e.paperWhitening&&(this.paperWhitening=e.paperWhitening),void 0!==e.paperWhiteningBias&&(this.paperWhiteningBias=e.paperWhiteningBias)}}class u{constructor(e={}){this._type="ColorDocumentShadowRemovalFilter",this.contrastEnhancement=.5,this.colorEnhancement=.5,this.paperSaturation=.5,this.paperLightness=.5,void 0!==e.contrastEnhancement&&(this.contrastEnhancement=e.contrastEnhancement),void 0!==e.colorEnhancement&&(this.colorEnhancement=e.colorEnhancement),void 0!==e.paperSaturation&&(this.paperSaturation=e.paperSaturation),void 0!==e.paperLightness&&(this.paperLightness=e.paperLightness)}}class d{constructor(e={}){this._type="BrightnessFilter",this.brightness=0,void 0!==e.brightness&&(this.brightness=e.brightness)}}class m{constructor(e={}){this._type="ContrastFilter",this.contrast=0,void 0!==e.contrast&&(this.contrast=e.contrast)}}class h{constructor(e={}){this._type="GrayscaleFilter",this.borderWidthFraction=.06,this.blackOutliersFraction=0,this.whiteOutliersFraction=.02,void 0!==e.borderWidthFraction&&(this.borderWidthFraction=e.borderWidthFraction),void 0!==e.blackOutliersFraction&&(this.blackOutliersFraction=e.blackOutliersFraction),void 0!==e.whiteOutliersFraction&&(this.whiteOutliersFraction=e.whiteOutliersFraction)}}class p{constructor(e={}){this._type="WhiteBlackPointFilter",this.blackPoint=0,this.whitePoint=1,void 0!==e.blackPoint&&(this.blackPoint=e.blackPoint),void 0!==e.whitePoint&&(this.whitePoint=e.whitePoint)}}const E=["DISABLED","ENABLED","ENABLED_IF_BINARIZATION_FILTER_SET"]},376:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var i=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class r extends Error{constructor(e,t,n){super(t),this.name="",this.name=e,this.message=t,this.webApiError=n}static mediaDevicesUndefined(){return new r(this.MESSAGE.DEVICES_UNDEFINED,"Does your device even have a camera? If so, please use a secure context (HTTPS) or use 'localhost' explicitly.")}static enumerateDevicesFailed(){return new r(this.MESSAGE.DEVICES_UNDEFINED,"Does your device even have a camera? Because we're unable to query query navigator.mediaDevices?.enumerateDevices")}static mediaDeviceNotFound(e){return new r(this.MESSAGE.ENUMERATE_FAILED,"Does your device even have a camera? Because we were unable to query navigator.mediaDevices?.getUserMedia().",e)}static permissionDenied(e){return new r(this.MESSAGE.PERMISSION_DENIED,"Camera permission has not been granted. Please prompt your users again to grant permission.",e)}static unknown(e){return new r(this.MESSAGE.UNKNOWN,"\n Unfortunately we were unable to query navigator.mediaDevices.getUserMedia, \n and unable to determine the reason why. This may be caused by the user to denied the permission prompt. \n Or you may be using an in-app browser that itself has not been granted permission to use the camera.\n Or your users may be using a niche browser that does not support the media API at all!\n ",e)}static tryCheckPermission(){return i(this,void 0,void 0,(function*(){if(!this.permissionState)try{const e=yield navigator.permissions.query({name:"camera"});this.permissionState=e.state}catch(e){this.permissionState=this.PERMISSION_STATE.UNKNOWN}}))}static hasDeniedPermission(){return this.permissionState===this.PERMISSION_STATE.DENIED}static hasCheckedPermission(){return!!this.permissionState}static createFromDOMException(e){return e instanceof DOMException?"NotAllowedError"===e.name?r.permissionDenied("Specifically, the native 'NotAllowedError' was thrown."):"NotFoundError"===e.name?r.mediaDeviceNotFound("Specifically, the native 'NotFoundError' was thrown."):void 0:r.unknown(null==e?void 0:e.message)}}r.PERMISSION_STATE={GRANTED:"granted",DENIED:"denied",PROMPT:"prompt",UNKNOWN:"unknown"},r.MESSAGE={DEVICES_UNDEFINED:"MediaError_DevicesUndefined",DEVICE_NOT_FOUND:"MediaError_DeviceNotFound",ENUMERATE_FAILED:"MediaError_EnumerateFailed",PERMISSION_DENIED:"MediaError_PermissionDenied",UNKNOWN:"MediaError_Unknown"}},500:(e,t,n)=>{"use strict";n.d(t,{D7:()=>a,E_:()=>o});var i=n(8763),r=n(8382);function o(e){return{color:r.dI.getColorValue(e.color),textShadow:e.useShadow?"1px 1px 2px":""}}function a(e){var t;if(!e.config.visible)return null;const n=Object.assign(Object.assign({},e.style),o(e.config)),a=r.dI.getLocalizedText(e.config.text,e.replacementArgs),s={["data-sb-text-"+(null!==(t=e.debugName)&&void 0!==t?t:"default")]:!0};return e.asHtml?i.Ay.createElement("span",Object.assign({ref:e.innerRef,style:n,dangerouslySetInnerHTML:e.asHtml&&{__html:a}},s)):i.Ay.createElement("span",Object.assign({ref:e.innerRef,style:n},s),a)}},525:(e,t,n)=>{"use strict";n.d(t,{_:()=>s});var i=n(3221),r=n(718),o=n(5296),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class s extends i.pR{constructor(e){super(),this.___image_data="___image_data"in e?e.___image_data:function(e){if(!e)throw(0,o.$5)("InvalidImageRef","null image data or buffer");if("format"in e&&"string"==typeof e.format)return e;if("width"in e&&"number"==typeof e.width)return{data:e.data,width:e.width,height:e.height,format:"",step:0};return{data:ArrayBuffer.isView(e)?e:new Uint8Array(e),width:-1,height:-1,format:"",step:0}}(e)}get __image_data(){return this.___image_data}static fromUrl(e){return a(this,void 0,void 0,(function*(){const t=yield fetch(e);return new s(yield t.arrayBuffer())}))}static fromImageData(e){return new s(e)}static fromEncodedBinaryData(e){return new s(e)}static fromWrappedImage(e){return new s({___image_data:e})}toJpeg(e=80,t="COPY_IMAGE"){return a(this,void 0,void 0,(function*(){const n=r._.SINGLETON;return("COPY_IMAGE"===t?n.copyArgs:n.transferArgs).encodeJpeg(this,e)}))}}},586:(e,t,n)=>{"use strict";n.d(t,{gl:()=>o,pk:()=>i,sw:()=>r});class i{constructor(e={}){if(void 0===e.start)throw new Error("start must be present in constructor argument");if(this.start={x:e.start.x,y:e.start.y},void 0===e.end)throw new Error("end must be present in constructor argument");this.end={x:e.end.x,y:e.end.y}}}class r{constructor(e={}){if(void 0===e.start)throw new Error("start must be present in constructor argument");if(this.start={x:e.start.x,y:e.start.y},void 0===e.end)throw new Error("end must be present in constructor argument");this.end={x:e.end.x,y:e.end.y}}}class o{constructor(e={}){this.width=1,this.height=1,void 0!==e.width&&(this.width=e.width),void 0!==e.height&&(this.height=e.height)}}},681:(e,t,n)=>{"use strict";n.d(t,{TM:()=>i.TM,Zf:()=>i.Zf});var i=n(8627)},718:(e,t,n)=>{"use strict";n.d(t,{_:()=>a});var i=n(3575),r=n(5581),o=n(5296);class a{constructor(e,t){this.errorInWorker=null,this.createProxy=e=>new Proxy({},{get:(t,n,i)=>new Proxy((()=>{}),{apply:(t,i,r)=>this.post(n,r,e),get:(t,i,r)=>(...t)=>this.post(n+"."+i,t,e)})}),this.handleUnrecoverableError=e=>{this.errorInWorker=e;for(const t in this.continuations)this.continuations[t].reject(e),delete this.continuations[t]},this.copyArgs=this.createProxy("copy"),this.transferArgs=this.createProxy("transfer"),this.api=new r.u(this),a.SINGLETON=this;const{requestSuffix:n=""}=t||{},s=(0,i.Jk)(t),c=`${e}${e.endsWith("/")?"":"/"}ScanbotSDK.Core${s}.js${n}`;if((0,i.Vx)(c)){const e=new Blob([`importScripts("${c}")`]);this.instance=new Worker(URL.createObjectURL(e))}else this.instance=new Worker(c);this.continuations={},this.nextTicketId=1,this.instance.onmessage=e=>{const{log:t,logError:n}=e.data;if(t)return void console.log(...t);if(n)return void console.error(...n);const{ticket:i,result:r,recoverableError:a,unrecoverableError:s}=e.data,c=this.continuations[i];if(!c)return;const{resolve:l,reject:u,command:d}=c;if(delete this.continuations[i],s)u(s),this.handleUnrecoverableError(s);else if(a){u("errorType"in e.data?(0,o.$5)(e.data.errorType,`Error in worker while running command '${d}'`,a):a)}else l(r)},this.instance.onerror=e=>{this.handleUnrecoverableError(e.error)}}post(e,t,n){return this.errorInWorker?Promise.reject(this.errorInWorker):new Promise(((r,o)=>{const a=(0,i.ef)(t,"copy"==n),s=this.nextTicketId++;this.continuations[s]={resolve:r,reject:o,command:e},this.instance.postMessage({command:e,args:t,ticket:s},a)}))}destroy(){this.instance.terminate()}}a.SINGLETON=null},780:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>Ht,i7:()=>Gt});var i=n(5215),r=n(8763),o=n(2833),a=n.n(o),s="-ms-",c="-moz-",l="-webkit-",u="comm",d="rule",m="decl",h="@keyframes",p=Math.abs,E=String.fromCharCode,A=Object.assign;function g(e){return e.trim()}function f(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,n){return e.replace(t,n)}function _(e,t,n){return e.indexOf(t,n)}function D(e,t){return 0|e.charCodeAt(t)}function y(e,t,n){return e.slice(t,n)}function I(e){return e.length}function v(e){return e.length}function N(e,t){return t.push(e),e}function S(e,t){return e.filter((function(e){return!f(e,t)}))}var b=1,M=1,L=0,R=0,T=0,O="";function w(e,t,n,i,r,o,a,s){return{value:e,root:t,parent:n,type:i,props:r,children:o,line:b,column:M,length:a,return:"",siblings:s}}function F(e,t){return A(w("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function B(e){for(;e.root;)e=F(e.root,{children:[e]});N(e,e.siblings)}function P(){return T=R>0?D(O,--R):0,M--,10===T&&(M=1,b--),T}function x(){return T=R<L?D(O,R++):0,M++,10===T&&(M=1,b++),T}function k(){return D(O,R)}function V(){return R}function U(e,t){return y(O,e,t)}function Z(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function W(e){return b=M=1,L=I(O=e),R=0,[]}function H(e){return O="",e}function G(e){return g(U(R-1,q(91===e?e+2:40===e?e+1:e)))}function z(e){for(;(T=k())&&T<33;)x();return Z(e)>2||Z(T)>3?"":" "}function Y(e,t){for(;--t&&x()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return U(e,V()+(t<6&&32==k()&&32==x()))}function q(e){for(;x();)switch(T){case e:return R;case 34:case 39:34!==e&&39!==e&&q(T);break;case 40:41===e&&q(e);break;case 92:x()}return R}function X(e,t){for(;x()&&e+T!==57&&(e+T!==84||47!==k()););return"/*"+U(t,R-1)+"*"+E(47===e?e:x())}function j(e){for(;!Z(k());)x();return U(e,R)}function Q(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function J(e,t,n,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case m:return e.return=e.return||e.value;case u:return"";case h:return e.return=e.value+"{"+Q(e.children,i)+"}";case d:if(!I(e.value=e.props.join(",")))return""}return I(n=Q(e.children,i))?e.return=e.value+"{"+n+"}":""}function K(e,t,n){switch(function(e,t){return 45^D(e,0)?(((t<<2^D(e,0))<<2^D(e,1))<<2^D(e,2))<<2^D(e,3):0}(e,t)){case 5103:return l+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return l+e+e;case 4789:return c+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return l+e+c+e+s+e+e;case 5936:switch(D(e,t+11)){case 114:return l+e+s+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return l+e+s+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return l+e+s+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return l+e+s+e+e;case 6165:return l+e+s+"flex-"+e+e;case 5187:return l+e+C(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return l+e+s+"flex-item-"+C(e,/flex-|-self/g,"")+(f(e,/flex-|baseline/)?"":s+"grid-row-"+C(e,/flex-|-self/g,""))+e;case 4675:return l+e+s+"flex-line-pack"+C(e,/align-content|flex-|-self/g,"")+e;case 5548:return l+e+s+C(e,"shrink","negative")+e;case 5292:return l+e+s+C(e,"basis","preferred-size")+e;case 6060:return l+"box-"+C(e,"-grow","")+l+e+s+C(e,"grow","positive")+e;case 4554:return l+C(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,l+"$1"),/(image-set)/,l+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,l+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+l+e+e;case 4200:if(!f(e,/flex-|baseline/))return s+"grid-column-align"+y(e,t)+e;break;case 2592:case 3360:return s+C(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,f(e.props,/grid-\w+-end/)}))?~_(e+(n=n[t].value),"span",0)?e:s+C(e,"-start","")+e+s+"grid-row-span:"+(~_(n,"span",0)?f(n,/\d+/):+f(n,/\d+/)-+f(e,/\d+/))+";":s+C(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return f(e.props,/grid-\w+-start/)}))?e:s+C(C(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,l+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(I(e)-1-t>6)switch(D(e,t+1)){case 109:if(45!==D(e,t+4))break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+c+(108==D(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_(e,"stretch",0)?K(C(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return C(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,i,r,o,a,c){return s+n+":"+i+c+(r?s+n+"-span:"+(o?a:+a-+i)+c:"")+e}));case 4949:if(121===D(e,t+6))return C(e,":",":"+l)+e;break;case 6444:switch(D(e,45===D(e,14)?18:11)){case 120:return C(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+l+(45===D(e,14)?"inline-":"")+"box$3$1"+l+"$2$3$1"+s+"$2box$3")+e;case 100:return C(e,":",":"+s)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return C(e,"scroll-","scroll-snap-")+e}return e}function $(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case m:return void(e.return=K(e.value,e.length,n));case h:return Q([F(e,{value:C(e.value,"@","@"+l)})],i);case d:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(f(t,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":B(F(e,{props:[C(t,/:(read-\w+)/,":-moz-$1")]})),B(F(e,{props:[t]})),A(e,{props:S(n,i)});break;case"::placeholder":B(F(e,{props:[C(t,/:(plac\w+)/,":-webkit-input-$1")]})),B(F(e,{props:[C(t,/:(plac\w+)/,":-moz-$1")]})),B(F(e,{props:[C(t,/:(plac\w+)/,s+"input-$1")]})),B(F(e,{props:[t]})),A(e,{props:S(n,i)})}return""}))}}function ee(e){return H(te("",null,null,null,[""],e=W(e),0,[0],e))}function te(e,t,n,i,r,o,a,s,c){for(var l=0,u=0,d=a,m=0,h=0,A=0,g=1,f=1,y=1,v=0,S="",b=r,M=o,L=i,R=S;f;)switch(A=v,v=x()){case 40:if(108!=A&&58==D(R,d-1)){-1!=_(R+=C(G(v),"&","&\f"),"&\f",p(l?s[l-1]:0))&&(y=-1);break}case 34:case 39:case 91:R+=G(v);break;case 9:case 10:case 13:case 32:R+=z(A);break;case 92:R+=Y(V()-1,7);continue;case 47:switch(k()){case 42:case 47:N(ie(X(x(),V()),t,n,c),c);break;default:R+="/"}break;case 123*g:s[l++]=I(R)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:f=0;case 59+u:-1==y&&(R=C(R,/\f/g,"")),h>0&&I(R)-d&&N(h>32?re(R+";",i,n,d-1,c):re(C(R," ","")+";",i,n,d-2,c),c);break;case 59:R+=";";default:if(N(L=ne(R,t,n,l,u,r,s,S,b=[],M=[],d,o),o),123===v)if(0===u)te(R,t,L,L,b,o,d,s,M);else switch(99===m&&110===D(R,3)?100:m){case 100:case 108:case 109:case 115:te(e,L,L,i&&N(ne(e,L,L,0,0,r,s,S,r,b=[],d,M),M),r,M,d,s,i?b:M);break;default:te(R,L,L,L,[""],M,0,s,M)}}l=u=h=0,g=y=1,S=R="",d=a;break;case 58:d=1+I(R),h=A;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==P())continue;switch(R+=E(v),v*g){case 38:y=u>0?1:(R+="\f",-1);break;case 44:s[l++]=(I(R)-1)*y,y=1;break;case 64:45===k()&&(R+=G(x())),m=k(),u=d=I(S=R+=j(V())),v++;break;case 45:45===A&&2==I(R)&&(g=0)}}return o}function ne(e,t,n,i,r,o,a,s,c,l,u,m){for(var h=r-1,E=0===r?o:[""],A=v(E),f=0,_=0,D=0;f<i;++f)for(var I=0,N=y(e,h+1,h=p(_=a[f])),S=e;I<A;++I)(S=g(_>0?E[I]+" "+N:C(N,/&\f/g,E[I])))&&(c[D++]=S);return w(e,t,n,0===r?d:s,c,l,u,m)}function ie(e,t,n,i){return w(e,t,n,u,E(T),y(e,2,-2),0,i)}function re(e,t,n,i,r){return w(e,t,n,m,y(e,0,i),y(e,i+1,-1),i,r)}const oe={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ae="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",se="active",ce="data-styled-version",le="6.1.8",ue="/*!sc*/\n",de="undefined"!=typeof window&&"HTMLElement"in window,me=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),he=(new Set,Object.freeze([])),pe=Object.freeze({});function Ee(e,t,n){return void 0===n&&(n=pe),e.theme!==n.theme&&e.theme||t||n.theme}var Ae=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,fe=/(^-|-$)/g;function Ce(e){return e.replace(ge,"-").replace(fe,"")}var _e=/(a)(d)/gi,De=function(e){return String.fromCharCode(e+(e>25?39:97))};function ye(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=De(t%52)+n;return(De(t%52)+n).replace(_e,"$1-$2")}var Ie,ve=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ne=function(e){return ve(5381,e)};function Se(e){return ye(Ne(e)>>>0)}function be(e){return e.displayName||e.name||"Component"}function Me(e){return"string"==typeof e&&!0}var Le="function"==typeof Symbol&&Symbol.for,Re=Le?Symbol.for("react.memo"):60115,Te=Le?Symbol.for("react.forward_ref"):60112,Oe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},we={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Be=((Ie={})[Te]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ie[Re]=Fe,Ie);function Pe(e){return("type"in(t=e)&&t.type.$$typeof)===Re?Fe:"$$typeof"in e?Be[e.$$typeof]:Oe;var t}var xe=Object.defineProperty,ke=Object.getOwnPropertyNames,Ve=Object.getOwnPropertySymbols,Ue=Object.getOwnPropertyDescriptor,Ze=Object.getPrototypeOf,We=Object.prototype;function He(e,t,n){if("string"!=typeof t){if(We){var i=Ze(t);i&&i!==We&&He(e,i,n)}var r=ke(t);Ve&&(r=r.concat(Ve(t)));for(var o=Pe(e),a=Pe(t),s=0;s<r.length;++s){var c=r[s];if(!(c in we||n&&n[c]||a&&c in a||o&&c in o)){var l=Ue(t,c);try{xe(e,c,l)}catch(e){}}}}return e}function Ge(e){return"function"==typeof e}function ze(e){return"object"==typeof e&&"styledComponentId"in e}function Ye(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qe(e,t){if(0===e.length)return"";for(var n=e[0],i=1;i<e.length;i++)n+=t?t+e[i]:e[i];return n}function Xe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function je(e,t,n){if(void 0===n&&(n=!1),!n&&!Xe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=je(e[i],t[i]);else if(Xe(t))for(var i in t)e[i]=je(e[i],t[i]);return e}function Qe(e,t){Object.defineProperty(e,"toString",{value:t})}function Je(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ke=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,r=i;e>=r;)if((r<<=1)<0)throw Je(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var o=i;o<r;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),i=n+t;this.groupSizes[e]=0;for(var r=n;r<i;r++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],i=this.indexOfGroup(e),r=i+n,o=i;o<r;o++)t+="".concat(this.tag.getRule(o)).concat(ue);return t},e}(),$e=new Map,et=new Map,tt=1,nt=function(e){if($e.has(e))return $e.get(e);for(;et.has(tt);)tt++;var t=tt++;return $e.set(e,t),et.set(t,e),t},it=function(e,t){tt=t+1,$e.set(e,t),et.set(t,e)},rt="style[".concat(ae,"][").concat(ce,'="').concat(le,'"]'),ot=new RegExp("^".concat(ae,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),at=function(e,t,n){for(var i,r=n.split(","),o=0,a=r.length;o<a;o++)(i=r[o])&&e.registerName(t,i)},st=function(e,t){for(var n,i=(null!==(n=t.textContent)&&void 0!==n?n:"").split(ue),r=[],o=0,a=i.length;o<a;o++){var s=i[o].trim();if(s){var c=s.match(ot);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(it(u,l),at(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(s)}}};function ct(){return n.nc}var lt=function(e){var t=document.head,n=e||t,i=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ae,"]")));return t[t.length-1]}(n),o=void 0!==r?r.nextSibling:null;i.setAttribute(ae,se),i.setAttribute(ce,le);var a=ct();return a&&i.setAttribute("nonce",a),n.insertBefore(i,o),i},ut=function(){function e(e){this.element=lt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,i=t.length;n<i;n++){var r=t[n];if(r.ownerNode===e)return r}throw Je(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),dt=function(){function e(e){this.element=lt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),mt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ht=de,pt={isServer:!de,useCSSOMInjection:!me},Et=function(){function e(e,t,n){void 0===e&&(e=pe),void 0===t&&(t={});var r=this;this.options=(0,i.Cl)((0,i.Cl)({},pt),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&de&&ht&&(ht=!1,function(e){for(var t=document.querySelectorAll(rt),n=0,i=t.length;n<i;n++){var r=t[n];r&&r.getAttribute(ae)!==se&&(st(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this)),Qe(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,i="",r=function(n){var r=function(e){return et.get(e)}(n);if(void 0===r)return"continue";var o=e.names.get(r),a=t.getGroup(n);if(void 0===o||0===a.length)return"continue";var s="".concat(ae,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==o&&o.forEach((function(e){e.length>0&&(c+="".concat(e,","))})),i+="".concat(a).concat(s,'{content:"').concat(c,'"}').concat(ue)},o=0;o<n;o++)r(o);return i}(r)}))}return e.registerId=function(e){return nt(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e((0,i.Cl)((0,i.Cl)({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new mt(n):t?new ut(n):new dt(n)}(this.options),new Ke(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(nt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(nt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(nt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),At=/&/g,gt=/^\s*\/\/.*$/gm;function ft(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=ft(e.children,t)),e}))}function Ct(e){var t,n,i,r=void 0===e?pe:e,o=r.options,a=void 0===o?pe:o,s=r.plugins,c=void 0===s?he:s,l=function(e,i,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push((function(e){e.type===d&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(At,n).replace(i,l))})),a.prefix&&u.push($),u.push(J);var m=function(e,r,o,s){void 0===r&&(r=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,n=r,i=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(gt,""),l=ee(o||r?"".concat(o," ").concat(r," { ").concat(c," }"):c);a.namespace&&(l=ft(l,a.namespace));var d,m,h,p=[];return Q(l,(d=u.concat((h=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&h(e)})),m=v(d),function(e,t,n,i){for(var r="",o=0;o<m;o++)r+=d[o](e,t,n,i)||"";return r})),p};return m.hash=c.length?c.reduce((function(e,t){return t.name||Je(15),ve(e,t.name)}),5381).toString():"",m}var _t=new Et,Dt=Ct(),yt=r.Ay.createContext({shouldForwardProp:void 0,styleSheet:_t,stylis:Dt}),It=(yt.Consumer,r.Ay.createContext(void 0));function vt(){return(0,r.NT)(yt)}function Nt(e){var t=(0,r.J0)(e.stylisPlugins),n=t[0],i=t[1],o=vt().styleSheet,s=(0,r.Kr)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),c=(0,r.Kr)((function(){return Ct({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);(0,r.vJ)((function(){a()(n,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]);var l=(0,r.Kr)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:c}}),[e.shouldForwardProp,s,c]);return r.Ay.createElement(yt.Provider,{value:l},r.Ay.createElement(It.Provider,{value:c},e.children))}var St=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Dt);var i=n.name+t.hash;e.hasNameForId(n.id,i)||e.insertRules(n.id,i,t(n.rules,i,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Qe(this,(function(){throw Je(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Dt),this.name+e.hash},e}(),bt=function(e){return e>="A"&&e<="Z"};function Mt(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(1===n&&"-"===i&&"-"===e[0])return e;bt(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Lt=function(e){return null==e||!1===e||""===e},Rt=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Lt(a)&&(Array.isArray(a)&&a.isCss||Ge(a)?r.push("".concat(Mt(o),":"),a,";"):Xe(a)?r.push.apply(r,(0,i.fX)((0,i.fX)(["".concat(o," {")],Rt(a),!1),["}"],!1)):r.push("".concat(Mt(o),": ").concat((t=o,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in oe||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Tt(e,t,n,i){return Lt(e)?[]:ze(e)?[".".concat(e.styledComponentId)]:Ge(e)?!Ge(r=e)||r.prototype&&r.prototype.isReactComponent||!t?[e]:Tt(e(t),t,n,i):e instanceof St?n?(e.inject(n,i),[e.getName(i)]):[e]:Xe(e)?Rt(e):Array.isArray(e)?Array.prototype.concat.apply(he,e.map((function(e){return Tt(e,t,n,i)}))):[e.toString()];var r}function Ot(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ge(n)&&!ze(n))return!1}return!0}var wt=Ne(le),Ft=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ot(e),this.componentId=t,this.baseHash=ve(wt,t),this.baseStyle=n,Et.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))i=Ye(i,this.staticRulesId);else{var r=qe(Tt(this.rules,e,t,n)),o=ye(ve(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=n(r,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}i=Ye(i,o),this.staticRulesId=o}else{for(var s=ve(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u;else if(u){var d=qe(Tt(u,e,t,n));s=ve(s,d+l),c+=d}}if(c){var m=ye(s>>>0);t.hasNameForId(this.componentId,m)||t.insertRules(this.componentId,m,n(c,".".concat(m),void 0,this.componentId)),i=Ye(i,m)}}return i},e}(),Bt=r.Ay.createContext(void 0);Bt.Consumer;var Pt={};new Set;function xt(e,t,n){var o=ze(e),a=e,s=!Me(e),c=t.attrs,l=void 0===c?he:c,u=t.componentId,d=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Ce(e);Pt[n]=(Pt[n]||0)+1;var i="".concat(n,"-").concat(Se(le+n+Pt[n]));return t?"".concat(t,"-").concat(i):i}(t.displayName,t.parentComponentId):u,m=t.displayName,h=void 0===m?function(e){return Me(e)?"styled.".concat(e):"Styled(".concat(be(e),")")}(e):m,p=t.displayName&&t.componentId?"".concat(Ce(t.displayName),"-").concat(t.componentId):t.componentId||d,E=o&&a.attrs?a.attrs.concat(l).filter(Boolean):l,A=t.shouldForwardProp;if(o&&a.shouldForwardProp){var g=a.shouldForwardProp;if(t.shouldForwardProp){var f=t.shouldForwardProp;A=function(e,t){return g(e,t)&&f(e,t)}}else A=g}var C=new Ft(n,p,o?a.componentStyle:void 0);function _(e,t){return function(e,t,n){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.styledComponentId,u=e.target,d=r.Ay.useContext(Bt),m=vt(),h=e.shouldForwardProp||m.shouldForwardProp,p=Ee(t,d,s)||pe,E=function(e,t,n){for(var r,o=(0,i.Cl)((0,i.Cl)({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=Ge(r=e[a])?r(o):r;for(var c in s)o[c]="className"===c?Ye(o[c],s[c]):"style"===c?(0,i.Cl)((0,i.Cl)({},o[c]),s[c]):s[c]}return t.className&&(o.className=Ye(o.className,t.className)),o}(o,t,p),A=E.as||u,g={};for(var f in E)void 0===E[f]||"$"===f[0]||"as"===f||"theme"===f&&E.theme===p||("forwardedAs"===f?g.as=E.forwardedAs:h&&!h(f,A)||(g[f]=E[f]));var C=function(e,t){var n=vt();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(a,E),_=Ye(c,l);return C&&(_+=" "+C),E.className&&(_+=" "+E.className),g[Me(A)&&!Ae.has(A)?"class":"className"]=_,g.ref=n,(0,r.n)(A,g)}(D,e,t)}_.displayName=h;var D=r.Ay.forwardRef(_);return D.attrs=E,D.componentStyle=C,D.displayName=h,D.shouldForwardProp=A,D.foldedComponentIds=o?Ye(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=p,D.target=o?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0,r=t;i<r.length;i++)je(e,r[i],!0);return e}({},a.defaultProps,e):e}}),Qe(D,(function(){return".".concat(D.styledComponentId)})),s&&He(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function kt(e,t){for(var n=[e[0]],i=0,r=t.length;i<r;i+=1)n.push(t[i],e[i+1]);return n}var Vt=function(e){return Object.assign(e,{isCss:!0})};function Ut(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ge(e)||Xe(e))return Vt(Tt(kt(he,(0,i.fX)([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Tt(r):Vt(Tt(kt(r,t)))}function Zt(e,t,n){if(void 0===n&&(n=pe),!t)throw Je(1,t);var r=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,Ut.apply(void 0,(0,i.fX)([r],o,!1)))};return r.attrs=function(r){return Zt(e,t,(0,i.Cl)((0,i.Cl)({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Zt(e,t,(0,i.Cl)((0,i.Cl)({},n),r))},r}var Wt=function(e){return Zt(xt,e)},Ht=Wt;Ae.forEach((function(e){Ht[e]=Wt(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ot(e),Et.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,n,i){var r=i(qe(Tt(this.rules,t,n,i)),""),o=this.componentId+e;n.insertRules(o,o,r)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,i){e>2&&Et.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,i)}}();function Gt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=qe(Ut.apply(void 0,(0,i.fX)([e],t,!1))),o=Se(r);return new St(o,r)}(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=ct(),i=qe([n&&'nonce="'.concat(n,'"'),"".concat(ae,'="true"'),"".concat(ce,'="').concat(le,'"')].filter(Boolean)," ");return"<style ".concat(i,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Je(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Je(2);var n=((t={})[ae]="",t[ce]=le,t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=ct();return o&&(n.nonce=o),[r.Ay.createElement("style",(0,i.Cl)({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Et({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Je(2);return r.Ay.createElement(Nt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Je(3)}})(),"__sc-".concat(ae,"__")},930:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var i=n(4896),r=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class o{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=i.ix.all){return r(this,void 0,void 0,(function*(){const n=yield e.copyArgs.BarcodeDocumentParser.create(t.map((e=>e)));return new o(e,n)}))}parse(e){return r(this,void 0,void 0,(function*(){const t=this.workerBridge.copyArgs;return yield t.BarcodeDocumentParser.parse(this.objectId,e)}))}destroy(){return r(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.BarcodeDocumentParser.destroy(this.objectId)}))}}},952:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var i=n(8763),r=n(6437),o=n(8382),a=n(500);class s extends i.Ay.Component{get style(){return this.props.configuration.style}get holeRect(){return this.holePosition}constructor(e){super(e),this.holePosition=r.w.empty(),this.resizeObserver=new ResizeObserver((()=>{this.updateWindowSize()})),this.componentDidUpdate=e=>{var t,n,i,r;(null===(t=this.props.configuration.minimumInsets)||void 0===t?void 0:t.top)===(null===(n=e.configuration.minimumInsets)||void 0===n?void 0:n.top)&&(null===(i=this.props.configuration)||void 0===i?void 0:i.minimumInsets.bottom)===(null===(r=e.configuration)||void 0===r?void 0:r.minimumInsets.bottom)&&this.props.configuration===e.configuration&&this.props.guidanceConfiguration===e.guidanceConfiguration||this.setState({shouldUpdateCanvas:!0}),this.updateCanvas()},this.updateWindowSize=()=>{this.setState({shouldUpdateCanvas:!0})},this.getVideoSize=()=>{var e;return null!==(e=this.holeCanvas.getBoundingClientRect())&&void 0!==e?e:new DOMRect},this.scaleForRetinaDisplay=e=>{if(window.devicePixelRatio>1){const t=e.width,n=e.height;e.width=t*window.devicePixelRatio,e.height=n*window.devicePixelRatio,e.style.width=t+"px",e.style.height=n+"px",e.getContext("2d").scale(window.devicePixelRatio,window.devicePixelRatio)}},this.updateCanvas=()=>{var e,t,n;if(!this.state.shouldUpdateCanvas)return;this.setState({shouldUpdateCanvas:!1});const i=this.getVideoSize().width,r=this.getVideoSize().height;this.holeCanvas.width=i,this.holeCanvas.height=r,this.crosshairCanvas.width=i,this.crosshairCanvas.height=r,this.scaleForRetinaDisplay(this.crosshairCanvas);const o=this.props.configuration.minimumInsets,a=i-(2*this.props.configuration.style.strokeWidth+o.left+o.right),s=null!==(e=null==o?void 0:o.top)&&void 0!==e?e:0,c=null!==(t=null==o?void 0:o.bottom)&&void 0!==t?t:0,l=Math.min(a,i-(o.left+o.right)),u=this.props.configuration.aspectRatio.width/this.props.configuration.aspectRatio.height;if(-1!==this.props.configuration.preferredHeight){const e=this.props.configuration.preferredHeight,t=e*u;t>a?(this.holePosition.width=a,this.holePosition.height=a/u):(this.holePosition.width=t,this.holePosition.height=e)}else this.holePosition.width=l,this.holePosition.height=this.holePosition.width/u;const d=(i-this.holePosition.width)/2;o.left>d||o.right>d?(o.left>d&&(this.holePosition.x=o.left),o.right>d&&(this.holePosition.x=i-this.holePosition.width-o.right)):this.holePosition.x=d;const m=r-s-c-((null===(n=this.guidanceText)||void 0===n?void 0:n.clientHeight)+this.guidanceTextTopPadding||0);this.holePosition.height>m?(this.holePosition.height=m,this.holePosition.width=this.holePosition.height*u,this.holePosition.x=i/2-this.holePosition.width/2,this.holePosition.y=s):this.holePosition.y=s+(m-this.holePosition.height)/1.9;const h=this.holeCanvas.getContext("2d");h.save(),this.drawBackground(h),h.globalCompositeOperation="destination-out",this.drawHole();const p=this.crosshairCanvas.getContext("2d");p.globalCompositeOperation="source-over","FinderStrokedStyle"===this.props.configuration.style._type?this.drawHoleOutline():"FinderCorneredStyle"===this.props.configuration.style._type&&this.drawHoleCorners(),h.restore(),p.restore()},this.drawBackground=e=>{const{width:t,height:n}=this.getVideoSize();e.clearRect(0,0,t,n),e.beginPath(),e.rect(0,0,t,n),e.fillStyle=o.dI.getColorValue(this.props.configuration.overlayColor),e.fill()},this.drawHole=()=>{const e=this.holeCanvas.getContext("2d"),t=this.cornerRadius(),n=this.holePosition.x,i=this.holePosition.y,r=this.holePosition.width,o=this.holePosition.height;e.beginPath(),e.fillStyle="black",e.moveTo(n+t,i),e.arcTo(n+r,i,n+r,i+o,t),e.arcTo(n+r,i+o,n,i+o,t),e.arcTo(n,i+o,n,i,t),e.arcTo(n,i,n+r,i,t),e.closePath(),e.fill()},this.drawCrosshair=()=>{const e=this.crosshairCanvas.getContext("2d"),t=this.holePosition.x+this.holePosition.width/2,n=this.holePosition.y+this.holePosition.height/2;e.beginPath(),e.moveTo(t-10,n),e.lineTo(t+10,n),e.moveTo(t,n-10),e.lineTo(t,n+10),e.strokeStyle="white",e.fillStyle="white",e.lineWidth=1,e.stroke()},this.drawHoleCorners=()=>{const e=this.crosshairCanvas.getContext("2d"),t=this.holePosition.x,n=this.holePosition.y,i=this.holePosition.width,r=this.holePosition.height,a=15,s=this.style.strokeWidth,c=this.cornerRadius();e.beginPath(),e.moveTo(t,n+a),e.arcTo(t,n,t+i,n,c),e.lineTo(t+a,n),e.moveTo(t+i-a,n),e.arcTo(t+i,n,t+i,n+r,c),e.lineTo(t+i,n+a),e.moveTo(t+i,n+r-a),e.arcTo(t+i,n+r,t,n+r,c),e.lineTo(t+i-a,n+r),e.moveTo(t,n+r-a),e.arcTo(t,n+r,t+i,n+r,c),e.lineTo(t+a,n+r),e.strokeStyle=o.dI.getColorValue(this.style.strokeColor),e.lineWidth=s,e.stroke()},this.drawHoleOutline=()=>{const e=this.crosshairCanvas.getContext("2d"),t=this.holePosition.x,n=this.holePosition.y,i=this.holePosition.width,r=this.holePosition.height,a=this.cornerRadius(),s=this.style.strokeWidth;e.beginPath(),e.moveTo(t+a,n),e.arcTo(t+i,n,t+i,n+r,a),e.moveTo(t+i,n+a),e.arcTo(t+i,n+r,t,n+r,a),e.moveTo(t+i-a,n+r),e.arcTo(t,n+r,t,n,a),e.moveTo(t,n+r-a),e.arcTo(t,n,t+i,n,a),e.strokeStyle=o.dI.getColorValue(this.style.strokeColor),e.lineWidth=s,e.stroke()},this.guidanceTextTopPadding=20,this.render=()=>i.Ay.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",textAlign:"left"},onClick:e=>{const t=this.holePosition;e.clientX>this.holePosition.x&&e.clientX<t.x+t.width&&e.clientY>t.y&&e.clientY<t.y+t.height&&console.log("Clicked inside hole, possibly click events need to be diverted")}},i.Ay.createElement("canvas",{ref:e=>{this.holeCanvas=e},style:{position:"absolute",width:"100%",height:"100%"}}),i.Ay.createElement("canvas",{ref:e=>{this.crosshairCanvas=e},style:{position:"absolute",width:"100%",height:"100%"}}),this.guidance.visible&&i.Ay.createElement("div",{ref:e=>{this.guidanceText=e},style:{position:"absolute",display:"block",top:this.holePosition.y+this.holePosition.height+this.guidanceTextTopPadding,left:0,width:"100%",textAlign:"center"}},i.Ay.createElement(a.D7,{style:{display:"inline-block",backgroundColor:o.dI.getColorValue(this.guidance.background.fillColor),borderStyle:"solid",borderColor:o.dI.getColorValue(this.guidance.background.strokeColor),borderWidth:this.style.strokeWidth,borderRadius:4,padding:"4px 8px",flex:1,maxWidth:"94%",wordWrap:"break-word"},config:this.guidance.title}))),this.state={shouldUpdateCanvas:!0}}componentDidMount(){this.updateWindowSize(),this.resizeObserver.observe(this.holeCanvas)}componentWillUnmount(){this.resizeObserver.disconnect()}bottomOfGuidanceText(){var e,t;return this.holeRect.bottom()+(null!==(t=null===(e=this.guidanceText)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0)+this.guidanceTextTopPadding}get guidance(){return this.props.guidanceConfiguration}cornerRadius(){const e=this.holePosition;return Math.max(0,Math.min(this.style.cornerRadius,e.width/2,e.height/2))}}},982:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var i=n(2381);class r extends i.m{constructor(e){super(),this.mirrored=!1,this.spinnerColor="black",this.backgroundColor="black",this.previewMode="FILL_IN",this.videoConstraints={width:{ideal:e.width},height:{ideal:e.height},facingMode:"environment",resizeMode:"none",experimental:{focusMode:"continous",focusDistance:0}}}static mapVideoConstraints(e,t){e.videoConstraints&&this.mapValues(e.videoConstraints,t.videoConstraints)}}r.DEFAULT_VIDEO_RESOLUTION_4K={width:3840,height:2160},r.DEFAULT_VIDEO_RESOLUTION_HD={width:1920,height:1080},r.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE=0,r.DEFAULT_ACCEPTED_ANGLE_SCORE=75,r.DEFAULT_ACCEPTED_SIZE_SCORE=75},1173:(e,t,n)=>{"use strict";n.d(t,{g$:()=>s,hq:()=>r,jJ:()=>o,wO:()=>a});var i=n(7828);class r{constructor(e={}){this.crop=!0,void 0!==e.crop&&(this.crop=e.crop)}}const o=["SUCCESS","FAILURE_SCANNING"],a=["UNKNOWN","BILL_OF_LADING","PAY_SHEET","SCALE_TICKET","TOLL_RECEIPT","WASH_RECEIPT"];class s{constructor(e={}){if(void 0===e.documentType)throw new Error("documentType must be present in constructor argument");if(this.documentType=e.documentType,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.status)throw new Error("status must be present in constructor argument");if(this.status=e.status,void 0===e.documentScanningResult)throw new Error("documentScanningResult must be present in constructor argument");this.documentScanningResult=new i.EU(e.documentScanningResult)}}},1304:(e,t,n)=>{"use strict";var i;n.d(t,{GF:()=>i,ID:()=>o,JK:()=>s,KH:()=>a,a8:()=>c,bl:()=>u,qQ:()=>r,tn:()=>l}),function(e){e.from=function(e){const t=e._type;switch(t){case"DateValidationConfiguration":return new r(e);case"EuropeanHealthInsuranceCardConfiguration":return new a(e);case"MRZFallbackConfiguration":return new s(e);case"AutoFocusConfiguration":return new c(e);case"GlareDetectionConfiguration":return new l(e);case"DocumentDataExtractorCommonConfiguration":return new u(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(i||(i={}));class r{constructor(e={}){if(this._type="DateValidationConfiguration",this.minYear=0,this.maxYear=2999,void 0!==e.minYear&&(this.minYear=e.minYear),void 0!==e.maxYear&&(this.maxYear=e.maxYear),void 0===e.fieldTypeName)throw new Error("fieldTypeName must be present in constructor argument");this.fieldTypeName=e.fieldTypeName}}const o=["AUSTRIA","BELGIUM","BULGARIA","CROATIA","CYPRUS","CZECH_REPUBLIC","DENMARK","ESTONIA","FINLAND","FRANCE","GERMANY","GREECE","HUNGARY","IRELAND","ITALY","LATVIA","LITHUANIA","LUXEMBOURG","MALTA","NETHERLANDS","POLAND","PORTUGAL","ROMANIA","SLOVAKIA","SLOVENIA","SPAIN","SWEDEN","SWITZERLAND"];class a{constructor(e={}){this._type="EuropeanHealthInsuranceCardConfiguration",this.expectedCountry=null,void 0!==e.expectedCountry&&(this.expectedCountry=null!=e.expectedCountry&&o.includes(e.expectedCountry)?e.expectedCountry:null)}}class s{constructor(e={}){this._type="MRZFallbackConfiguration",this.acceptedCountries=[],this.acceptedMRZTypes=[],void 0!==e.acceptedCountries&&(this.acceptedCountries=e.acceptedCountries.map((e=>e))),void 0!==e.acceptedMRZTypes&&(this.acceptedMRZTypes=e.acceptedMRZTypes.map((e=>e)))}}class c{constructor(e={}){this._type="AutoFocusConfiguration",this.sensitivityThreshold=.02,void 0!==e.sensitivityThreshold&&(this.sensitivityThreshold=e.sensitivityThreshold)}}class l{constructor(e={}){this._type="GlareDetectionConfiguration",this.glareDetectionThreshold=.5,void 0!==e.glareDetectionThreshold&&(this.glareDetectionThreshold=e.glareDetectionThreshold)}}class u{constructor(e={}){this._type="DocumentDataExtractorCommonConfiguration",this.acceptedDocumentTypes=["DeIdCardFront","DeIdCardBack","DeHealthInsuranceCardFront","DePassport","DeResidencePermitFront","DeResidencePermitBack","EuropeanHealthInsuranceCard","EuropeanDriverLicenseFront","EuropeanDriverLicenseBack"],void 0!==e.acceptedDocumentTypes&&(this.acceptedDocumentTypes=e.acceptedDocumentTypes.map((e=>e)))}}},1374:(e,t,n)=>{"use strict";n.d(t,{Uo:()=>s,Wy:()=>c,jO:()=>l,pR:()=>a,zm:()=>o});var i=n(73),r=n(6396);const o=["UNKNOWN","CREW_MEMBER_CERTIFICATE","ID_CARD","PASSPORT","VISA","CH_DRIVING_LICENSE"];class a{constructor(e={}){if(this.success=!1,void 0!==e.success&&(this.success=e.success),void 0===e.rawMRZ)throw new Error("rawMRZ must be present in constructor argument");if(this.rawMRZ=e.rawMRZ,void 0===e.document)throw new Error("document must be present in constructor argument");this.document=null!=e.document?new r.$G(e.document):null}}const s=["ACCEPT","REJECT"];class c{constructor(e={}){this.frameAccumulationConfiguration=new i.X({}),this.enableDetection=!0,this.incompleteResultHandling="REJECT",this.returnCrops=!1,this.processingMode="AUTO",void 0!==e.frameAccumulationConfiguration&&(this.frameAccumulationConfiguration=new i.X(e.frameAccumulationConfiguration)),void 0!==e.enableDetection&&(this.enableDetection=e.enableDetection),void 0!==e.incompleteResultHandling&&(this.incompleteResultHandling=e.incompleteResultHandling),void 0!==e.returnCrops&&(this.returnCrops=e.returnCrops),void 0!==e.processingMode&&(this.processingMode=e.processingMode)}}class l{constructor(e={}){this.incompleteResultHandling="ACCEPT",void 0!==e.incompleteResultHandling&&(this.incompleteResultHandling=e.incompleteResultHandling)}}},1427:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var i=n(2880),r=n(525),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new i.kY({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.CreditCardScanner.create(new i.kY(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.CreditCardScanner.run(this.objectId,e);return{result:new i.S4(o.result),originalImage:new r._(o.originalImage)}}))}clearResult(){return o(this,void 0,void 0,(function*(){const e=this.workerBridge.copyArgs;return yield e.CreditCardScanner.clearResult(this.objectId)}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.CreditCardScanner.destroy(this.objectId)}))}}},1521:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});const i="data:application/javascript;charset=utf-8;base64,Y29uc3QgREJfTkFNRSA9ICJTQlNES0Jhc2UiOwpjb25zdCBTVE9SRVMgPSB7CiAgRE9DVU1FTlRfU0NBTk5FUl9SRVNQT05TRVM6ICJkb2N1bWVudFNjYW5uZXJSZXN1bHRzIiwKICBTQl9ET0NVTUVOVFM6ICJTQkRvY3VtZW50cyIsCiAgSU1BR0VTOiAiaW1hZ2VzIgp9OwoKLyoqCiAqIEBwYXJhbSB7c3RyaW5nfSB0b2tlbgogKiBAcGFyYW0ge3sgdHlwZTogc3RyaW5nLCBkYXRhOiBhbnkgfX0gcXVlcnkKICogQHBhcmFtIHtFdmVudH0gZXZlbnQKICogKi8KCnNlbGYuYWRkRXZlbnRMaXN0ZW5lcigndW5oYW5kbGVkcmVqZWN0aW9uJywgZnVuY3Rpb24gKGV2ZW50KSB7CiAgLy8gVGhlIHdheSB0byBwcm9wZXJseSB0cmlnZ2VyIHdvcmtlciBlcnJvcnMgaXMgdG8gY2F0Y2ggdGhlIHVuaGFuZGxlZCByZWplY3Rpb24gZmlyc3QsIHRoZW4gdGhyb3c6CiAgLy8gaHR0cHM6Ly9zdGFja292ZXJmbG93LmNvbS9xdWVzdGlvbnMvMjgwMDE3MjIvaG93LXRvLWNhdGNoLXVuY2F1Z2h0LWV4Y2VwdGlvbi1pbi1wcm9taXNlCiAgLy8gVGhpcyBldmVudCBvYmplY3QgaGFzIHR3byBzcGVjaWFsIHByb3BlcnRpZXM6CiAgLy8gZXZlbnQucHJvbWlzZSAtIHRoZSBwcm9taXNlIHRoYXQgZ2VuZXJhdGVkIHRoZSBlcnJvcgogIC8vIGV2ZW50LnJlYXNvbiAgLSB0aGUgdW5oYW5kbGVkIGVycm9yIG9iamVjdAogIHRocm93IGV2ZW50LnJlYXNvbjsKfSk7CmZ1bmN0aW9uIHBvc3RSZXN1bHRPblN1Y2Nlc3ModG9rZW4sIHF1ZXJ5LCBldmVudCkgewogIGV2ZW50Lm9uc3VjY2VzcyA9IGV2ZW50ID0+IHsKICAgIHNlbGYucG9zdE1lc3NhZ2UoewogICAgICB0b2tlbjogdG9rZW4sCiAgICAgIGRhdGE6IGV2ZW50LnRhcmdldC5yZXN1bHQKICAgIH0pOwogIH07CiAgZXZlbnQub25lcnJvciA9IGV2ZW50ID0+IHsKICAgIHRocm93RXhjZXB0aW9uKHRva2VuLCBxdWVyeSwgIkVycm9yIGluIEluZGV4ZWREQiByZXF1ZXN0OiAiICsgZXZlbnQudGFyZ2V0LmVycm9yKTsKICB9Owp9CgovKioKICogQHJldHVybnMge1Byb21pc2U8SURCRGF0YWJhc2U+fQogKi8KZnVuY3Rpb24gb3BlbkRCKCkgewogIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSwgcmVqZWN0KSA9PiB7CiAgICAvKiogTkIhIFVwZGF0ZSB2ZXJzaW9uIHdoZW4gREIgbW9kZWwgY2hhbmdlcyAqLwogICAgY29uc3QgREJfVkVSU0lPTiA9IDY7CiAgICBjb25zdCByZXF1ZXN0ID0gaW5kZXhlZERCLm9wZW4oREJfTkFNRSwgREJfVkVSU0lPTik7CiAgICByZXF1ZXN0Lm9uc3VjY2VzcyA9IGV2ZW50ID0+IHsKICAgICAgcmVzb2x2ZShldmVudC50YXJnZXRbInJlc3VsdCJdKTsKICAgIH07CiAgICByZXF1ZXN0Lm9uZXJyb3IgPSBldmVudCA9PiB7CiAgICAgIGNvbnN0IGNvZGUgPSBldmVudC50YXJnZXQgPyBldmVudC50YXJnZXRbImVycm9yQ29kZSJdIDogIlVua25vd24gZXJyb3IgY29kZSI7CiAgICAgIHRocm93IG5ldyBFcnJvcigiRXJyb3Igb3BlbmluZyBkYXRhYmFzZTogIiArIGNvZGUpOwogICAgfTsKICAgIHJlcXVlc3Qub251cGdyYWRlbmVlZGVkID0gZXZlbnQgPT4gewogICAgICAvLyBUT0RPOiAnb251cGdyYWRlbmVlZGVkJyBpcyBvbmx5IGNhbGxlZCB3aGVuIEZJUlNUIG9wZW5pbmcgdGhlIGRhdGFiYXNlCiAgICAgIC8vICBBTkQgd2hlbiB0aGUgdmVyc2lvbiBudW1iZXIgaXMgaW5jcmVhc2VkLiBXaGF0IGVsc2UgbmVlZHMgdG8gYmUgZG9uZSBoZXJlPwogICAgICBjb25zdCBkYiA9IGV2ZW50LnRhcmdldCAvKiBhcyBJREJPcGVuREJSZXF1ZXN0Ki8ucmVzdWx0OwogICAgICBmb3IgKGNvbnN0IGtleSBpbiBTVE9SRVMpIHsKICAgICAgICBjb25zdCBuYW1lID0gU1RPUkVTW2tleV07CiAgICAgICAgLy8gVE9ETyBjYW4ndCBqdXN0IGRlbGV0ZSBpbiBwcm9kdWN0aW9uLCBuZWVkIHRvIG1pZ3JhdGUgZGF0YQogICAgICAgIHRyeSB7CiAgICAgICAgICBkYi5kZWxldGVPYmplY3RTdG9yZShuYW1lKTsKICAgICAgICB9IGNhdGNoIChlcnJvcikgewogICAgICAgICAgLy8gQ2FuJ3QgZGVsZXRlIG9iamVjdCBzdG9yZSB0aGF0IGRvZXNuJ3QgZXhpc3QKICAgICAgICAgIGNvbnNvbGUubG9nKCJFcnJvciBkZWxldGluZyBvYmplY3Qgc3RvcmU6ICIsIG5hbWUpOwogICAgICAgIH0KICAgICAgICBkYi5jcmVhdGVPYmplY3RTdG9yZShuYW1lLCB7CiAgICAgICAgICBrZXlQYXRoOiAiaWQiLAogICAgICAgICAgYXV0b0luY3JlbWVudDogdHJ1ZQogICAgICAgIH0pOwogICAgICB9CiAgICB9OwogIH0pOwp9CgovKioKICogQHBhcmFtIHtzdHJpbmdbXX0gc3RvcmVOYW1lcwogKiBAcmV0dXJucyB7UHJvbWlzZTxJREJUcmFuc2FjdGlvbj59CiAqLwphc3luYyBmdW5jdGlvbiBnZXRUcmFuc2FjdGlvbihzdG9yZU5hbWVzKSB7CiAgY29uc3QgZGIgPSBhd2FpdCBvcGVuREIoKTsKICAvLyBUT0RPIGlzIGl0IGV2ZXIgYWN0dWFsbHkgbmVjZXNzYXJ5IHRvIHdhaXQgZm9yIGEgdHJhbnNhY3Rpb24ncyAnb25jb21wbGV0ZScgZXZlbnQ/CiAgcmV0dXJuIGRiLnRyYW5zYWN0aW9uKHN0b3JlTmFtZXMsICJyZWFkd3JpdGUiKTsKfQoKLyoqCiAqIEBwYXJhbSB7c3RyaW5nfSBuYW1lCiAqIEByZXR1cm5zIHtQcm9taXNlPElEQk9iamVjdFN0b3JlPn0KICovCmFzeW5jIGZ1bmN0aW9uIGdldFN0b3JlKG5hbWUpIHsKICBjb25zdCB0cmFuc2FjdGlvbiA9IGF3YWl0IGdldFRyYW5zYWN0aW9uKFtuYW1lXSk7CiAgcmV0dXJuIHRyYW5zYWN0aW9uLm9iamVjdFN0b3JlKG5hbWUpOwp9CgovKioKICogQHJldHVybnMge1Byb21pc2U8SURCT2JqZWN0U3RvcmU+fQogKi8KYXN5bmMgZnVuY3Rpb24gZ2V0RG9jdW1lbnRTY2FubmVyUmVzcG9uc2VTdG9yZSgpIHsKICByZXR1cm4gZ2V0U3RvcmUoU1RPUkVTLkRPQ1VNRU5UX1NDQU5ORVJfUkVTUE9OU0VTKTsKfQoKLyoqCiAqIEByZXR1cm5zIHtQcm9taXNlPElEQk9iamVjdFN0b3JlPn0KICovCmFzeW5jIGZ1bmN0aW9uIGdldEltYWdlc1N0b3JlKCkgewogIHJldHVybiBnZXRTdG9yZShTVE9SRVMuSU1BR0VTKTsKfQphc3luYyBmdW5jdGlvbiBjbGVhcigpIHsKICBmb3IgKGNvbnN0IGtleSBpbiBTVE9SRVMpIHsKICAgIGNvbnN0IG5hbWUgPSBTVE9SRVNba2V5XTsKICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0U3RvcmUobmFtZSk7CiAgICBzdG9yZS5jbGVhcigpOwogIH0KfQphc3luYyBmdW5jdGlvbiBkZWxldGVEQigpIHsKICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4gewogICAgY29uc3QgcmVxdWVzdCA9IGluZGV4ZWREQi5kZWxldGVEYXRhYmFzZShEQl9OQU1FKTsKICAgIHJlcXVlc3Qub25zdWNjZXNzID0gZXZlbnQgPT4gewogICAgICByZXNvbHZlKGV2ZW50KTsKICAgIH07CiAgICByZXF1ZXN0Lm9uZXJyb3IgPSBldmVudCA9PiB7CiAgICAgIHJlamVjdChldmVudCk7CiAgICB9OwogIH0pOwp9CgovKioKICogQHBhcmFtIHtzdHJpbmd9IHRva2VuCiAqIEBwYXJhbSB7eyB0eXBlOiBzdHJpbmcsIGRhdGE6IGFueSB9fSBxdWVyeQogKiBAcGFyYW0ge3N0cmluZz99IG1lc3NhZ2UKICovCmZ1bmN0aW9uIHRocm93RXhjZXB0aW9uKHRva2VuLCBxdWVyeSwgbWVzc2FnZSkgewogIGNvbnN0IHBheWxvYWQgPSB7CiAgICB0b2tlbjogdG9rZW4sCiAgICBxdWVyeTogcXVlcnksCiAgICBtZXNzYWdlOiBtZXNzYWdlCiAgfTsKICBjb25zb2xlLmxvZygiRXJyb3IgaW4gU0JJbmRleGVkREIgd29ya2VyOiAiLCBwYXlsb2FkKTsKICB0aHJvdyBuZXcgRXJyb3IoSlNPTi5zdHJpbmdpZnkocGF5bG9hZCkpOwp9CgovKioKICogQHBhcmFtIHtNZXNzYWdlRXZlbnR9IGV2ZW50CiAqIEByZXR1cm5zIHtQcm9taXNlPHZvaWQ+fQogKi8Kc2VsZi5vbm1lc3NhZ2UgPSBhc3luYyBldmVudCA9PiB7CiAgY29uc3QgdG9rZW4gPSBldmVudC5kYXRhLnRva2VuOwogIGNvbnN0IHF1ZXJ5ID0gZXZlbnQuZGF0YS5xdWVyeTsKICBpZiAocXVlcnkudHlwZSA9PT0gJ2NsZWFyJykgewogICAgYXdhaXQgY2xlYXIoKTsKICAgIHNlbGYucG9zdE1lc3NhZ2UoewogICAgICB0b2tlbjogdG9rZW4sCiAgICAgIGRhdGE6IHRydWUKICAgIH0pOwogIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gJ2RlbGV0ZScpIHsKICAgIGF3YWl0IGRlbGV0ZURCKCk7CiAgICBzZWxmLnBvc3RNZXNzYWdlKHsKICAgICAgdG9rZW46IHRva2VuLAogICAgICBkYXRhOiB0cnVlCiAgICB9KTsKICB9IGVsc2UgaWYgKHF1ZXJ5LnR5cGUgPT09ICdzdG9yZURvY3VtZW50U2Nhbm5lclJlc3BvbnNlJykgewogICAgY29uc3Qgc3RvcmUgPSBhd2FpdCBnZXREb2N1bWVudFNjYW5uZXJSZXNwb25zZVN0b3JlKCk7CiAgICBjb25zdCByZXF1ZXN0ID0gc3RvcmUucHV0KHF1ZXJ5LmRhdGEpOwogICAgcG9zdFJlc3VsdE9uU3VjY2Vzcyh0b2tlbiwgcXVlcnksIHJlcXVlc3QpOwogIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gJ2dldERvY3VtZW50U2Nhbm5lclJlc3BvbnNlcycpIHsKICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0RG9jdW1lbnRTY2FubmVyUmVzcG9uc2VTdG9yZSgpOwogICAgY29uc3QgcmVxdWVzdCA9IHN0b3JlLmdldEFsbCgpOwogICAgcG9zdFJlc3VsdE9uU3VjY2Vzcyh0b2tlbiwgcXVlcnksIHJlcXVlc3QpOwogIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gJ2dldERvY3VtZW50U2Nhbm5lclJlc3BvbnNlJykgewogICAgY29uc3Qgc3RvcmUgPSBhd2FpdCBnZXREb2N1bWVudFNjYW5uZXJSZXNwb25zZVN0b3JlKCk7CiAgICBjb25zdCByZXF1ZXN0ID0gc3RvcmUuZ2V0KHF1ZXJ5LmRhdGEpOwogICAgcG9zdFJlc3VsdE9uU3VjY2Vzcyh0b2tlbiwgcXVlcnksIHJlcXVlc3QpOwogIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gJ3N0b3JlSW1hZ2VzJykgewogICAgY29uc3QgaW1hZ2VzID0gcXVlcnkuZGF0YTsKICAgIGNvbnN0IHRyYW5zYWN0aW9uID0gYXdhaXQgZ2V0VHJhbnNhY3Rpb24oW1NUT1JFUy5JTUFHRVNdKTsKICAgIGZvciAoY29uc3QgaW1hZ2Ugb2YgaW1hZ2VzKSB7CiAgICAgIHRyYW5zYWN0aW9uLm9iamVjdFN0b3JlKFNUT1JFUy5JTUFHRVMpLmFkZChpbWFnZSk7CiAgICB9CiAgICB0cmFuc2FjdGlvbi5vbmNvbXBsZXRlID0gZXZlbnQgPT4gewogICAgICBzZWxmLnBvc3RNZXNzYWdlKHsKICAgICAgICB0b2tlbjogdG9rZW4sCiAgICAgICAgZGF0YTogdHJ1ZQogICAgICB9KTsKICAgIH07CiAgICB0cmFuc2FjdGlvbi5vbmVycm9yID0gKCkgPT4gewogICAgICB0aHJvd0V4Y2VwdGlvbih0b2tlbiwgcXVlcnksICJFcnJvciBzdG9yaW5nIGltYWdlcyIpOwogICAgfTsKICB9IGVsc2UgaWYgKHF1ZXJ5LnR5cGUgPT09ICdnZXRJbWFnZXMnKSB7CiAgICBjb25zdCBzdG9yZSA9IGF3YWl0IGdldEltYWdlc1N0b3JlKCk7CiAgICBjb25zdCBkb2N1bWVudElkcyA9IHF1ZXJ5LmRhdGE7CiAgICBjb25zdCByZXF1ZXN0ID0gc3RvcmUuZ2V0QWxsKCk7CgogICAgLy8gVE9ETzogSWYgdGhlcmUgYXJlIG1hbnkgaW1hZ2VzLCBjdXJzb3ItYmFzZWQgaXRlcmF0aW9uIG1pZ2h0IGJlIG1vcmUgZWZmaWNpZW50CiAgICByZXF1ZXN0Lm9uc3VjY2VzcyA9IGV2ZW50ID0+IHsKICAgICAgY29uc3QgaW1hZ2VzID0gZXZlbnQudGFyZ2V0WyJyZXN1bHQiXTsKICAgICAgY29uc3QgZmlsdGVyZWRJbWFnZXMgPSBpbWFnZXMuZmlsdGVyKGltYWdlID0+IGRvY3VtZW50SWRzLmluY2x1ZGVzKGltYWdlLmRvY3VtZW50SWQpKTsKICAgICAgc2VsZi5wb3N0TWVzc2FnZSh7CiAgICAgICAgdG9rZW46IHRva2VuLAogICAgICAgIGRhdGE6IGZpbHRlcmVkSW1hZ2VzCiAgICAgIH0pOwogICAgfTsKICAgIHJlcXVlc3Qub25lcnJvciA9IGV2ZW50ID0+IHsKICAgICAgdGhyb3dFeGNlcHRpb24odG9rZW4sIHF1ZXJ5LCAiRXJyb3IgZ2V0dGluZyBpbWFnZXMiKTsKICAgIH07CiAgfSBlbHNlIGlmIChxdWVyeS50eXBlID09PSAiZGVsZXRlSW1hZ2VzIikgewogICAgY29uc3Qgc3RvcmUgPSBhd2FpdCBnZXRJbWFnZXNTdG9yZSgpOwogICAgY29uc3QgZG9jdW1lbnRJZCA9IHF1ZXJ5LmRhdGEuZG9jdW1lbnRJZDsKICAgIGNvbnN0IHJlcXVlc3QgPSBzdG9yZS5nZXRBbGwoKTsKICAgIHJlcXVlc3Qub25zdWNjZXNzID0gZXZlbnQgPT4gewogICAgICBjb25zdCBpbWFnZXMgPSBldmVudC50YXJnZXRbInJlc3VsdCJdOwogICAgICBjb25zdCBpbWFnZXNUb0RlbGV0ZSA9IGltYWdlcy5maWx0ZXIoaW1hZ2UgPT4gaW1hZ2UuZG9jdW1lbnRJZCA9PT0gZG9jdW1lbnRJZCk7CiAgICAgIGxldCBjb3VudGVyID0gMDsKICAgICAgZm9yIChjb25zdCBpbWFnZSBvZiBpbWFnZXNUb0RlbGV0ZSkgewogICAgICAgIGNvbnN0IGNoaWxkID0gc3RvcmUuZGVsZXRlKGltYWdlLmlkKTsKICAgICAgICBjaGlsZC5vbnN1Y2Nlc3MgPSAoKSA9PiB7CiAgICAgICAgICBjb3VudGVyKys7CiAgICAgICAgICBpZiAoY291bnRlciA9PT0gaW1hZ2VzVG9EZWxldGUubGVuZ3RoKSB7CiAgICAgICAgICAgIHNlbGYucG9zdE1lc3NhZ2UoewogICAgICAgICAgICAgIHRva2VuOiB0b2tlbiwKICAgICAgICAgICAgICBkYXRhOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgfQogICAgICAgIH07CiAgICAgIH0KICAgIH07CiAgfSBlbHNlIGlmIChxdWVyeS50eXBlID09PSAiZ2V0U0JEb2N1bWVudElkcyIpIHsKICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0U3RvcmUoU1RPUkVTLlNCX0RPQ1VNRU5UUyk7CiAgICBjb25zdCByZXF1ZXN0ID0gc3RvcmUuZ2V0QWxsS2V5cygpOwogICAgcG9zdFJlc3VsdE9uU3VjY2Vzcyh0b2tlbiwgcXVlcnksIHJlcXVlc3QpOwogIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gImluc2VydFNCRG9jdW1lbnQiKSB7CiAgICBjb25zdCBzdG9yZSA9IGF3YWl0IGdldFN0b3JlKFNUT1JFUy5TQl9ET0NVTUVOVFMpOwogICAgY29uc3QgcmVxdWVzdCA9IHN0b3JlLnB1dChxdWVyeS5kYXRhKTsKICAgIHBvc3RSZXN1bHRPblN1Y2Nlc3ModG9rZW4sIHF1ZXJ5LCByZXF1ZXN0KTsKICB9IGVsc2UgaWYgKHF1ZXJ5LnR5cGUgPT09ICJkZWxldGVTQkRvY3VtZW50IikgewogICAgY29uc3Qgc3RvcmUgPSBhd2FpdCBnZXRTdG9yZShTVE9SRVMuU0JfRE9DVU1FTlRTKTsKICAgIGNvbnN0IHJlcXVlc3QgPSBzdG9yZS5kZWxldGUocXVlcnkuZGF0YSk7CiAgICByZXF1ZXN0Lm9uc3VjY2VzcyA9IGV2ZW50ID0+IHsKICAgICAgc2VsZi5wb3N0TWVzc2FnZSh7CiAgICAgICAgdG9rZW46IHRva2VuLAogICAgICAgIGRhdGE6IHRydWUKICAgICAgfSk7CiAgICB9OwogICAgcmVxdWVzdC5vbmVycm9yID0gZXZlbnQgPT4gewogICAgICB0aHJvd0V4Y2VwdGlvbih0b2tlbiwgcXVlcnksICJFcnJvciBkZWxldGluZyBTQiBkb2N1bWVudCIpOwogICAgfTsKICB9IGVsc2UgaWYgKHF1ZXJ5LnR5cGUgPT09ICJnZXRTQkRvY3VtZW50IikgewogICAgY29uc3Qgc3RvcmUgPSBhd2FpdCBnZXRTdG9yZShTVE9SRVMuU0JfRE9DVU1FTlRTKTsKICAgIGNvbnN0IHJlcXVlc3QgPSBzdG9yZS5nZXQocXVlcnkuZGF0YSk7CiAgICBwb3N0UmVzdWx0T25TdWNjZXNzKHRva2VuLCBxdWVyeSwgcmVxdWVzdCk7CiAgfSBlbHNlIGlmIChxdWVyeS50eXBlID09PSAiaW5zZXJ0U0JQYWdlSW1hZ2UiIHx8IHF1ZXJ5LnR5cGUgPT09ICJpbnNlcnRJbWFnZUJ1ZmZlciIpIHsKICAgIGNvbnN0IHN0b3JlID0gYXdhaXQgZ2V0U3RvcmUoU1RPUkVTLklNQUdFUyk7CiAgICBjb25zdCByZXF1ZXN0ID0gc3RvcmUucHV0KHF1ZXJ5LmRhdGEpOwogICAgcG9zdFJlc3VsdE9uU3VjY2Vzcyh0b2tlbiwgcXVlcnksIHJlcXVlc3QpOwogIH0gZWxzZSBpZiAocXVlcnkudHlwZSA9PT0gImdldFNCUGFnZUltYWdlIiB8fCBxdWVyeS50eXBlID09PSAiZ2V0SW1hZ2VCdWZmZXIiKSB7CiAgICBjb25zdCBzdG9yZSA9IGF3YWl0IGdldFN0b3JlKFNUT1JFUy5JTUFHRVMpOwogICAgY29uc3QgcmVxdWVzdCA9IHN0b3JlLmdldChxdWVyeS5kYXRhKTsKICAgIHBvc3RSZXN1bHRPblN1Y2Nlc3ModG9rZW4sIHF1ZXJ5LCByZXF1ZXN0KTsKICB9IGVsc2UgaWYgKHF1ZXJ5LnR5cGUgPT09ICJkZWxldGVTQlBhZ2VJbWFnZXMiKSB7CiAgICBjb25zdCBzdG9yZSA9IGF3YWl0IGdldFN0b3JlKFNUT1JFUy5JTUFHRVMpOwogICAgY29uc3QgaWRzID0gcXVlcnkuZGF0YTsKICAgIGZvciAoY29uc3QgaWQgb2YgaWRzKSB7CiAgICAgIHN0b3JlLmRlbGV0ZShpZCk7CiAgICB9CiAgICAvLyBXZSBjYW4ndCByZWFsbHkgZG8gYW55dGhpbmcgaWYgdGhlIGRlbGV0ZSBmYWlscywgc28gaXQgZG9lc24ndCBtYWtlIHNlbnNlIHRvIGF3YWl0IHRoZSByZXN1bHQuCiAgICAvLyBKdXN0IGFzc3VtZSBpdCB3b3JrZWQgYW5kIHJldHVybiB0aGUgcmVzdWx0IGltbWVkaWF0ZWx5LgogICAgc2VsZi5wb3N0TWVzc2FnZSh7CiAgICAgIHRva2VuOiB0b2tlbiwKICAgICAgZGF0YTogdHJ1ZQogICAgfSk7CiAgfSBlbHNlIHsKICAgIHRocm93RXhjZXB0aW9uKHRva2VuLCBxdWVyeSwgIlVua25vd24gcXVlcnkgdHlwZSIpOwogIH0KfTs="},1671:(e,t,n)=>{"use strict";n.d(t,{JH:()=>i,YJ:()=>l,bd:()=>u,bh:()=>s,fZ:()=>c,i3:()=>a,tb:()=>r,ux:()=>o});const i=["UNKNOWN","ASCII","ISO_8859_PART1","ISO_8859_PART2","ISO_8859_PART3","ISO_8859_PART4","ISO_8859_PART5","ISO_8859_PART6","ISO_8859_PART7","ISO_8859_PART8","ISO_8859_PART9","ISO_8859_PART10","ISO_8859_PART11","ISO_8859_PART13","ISO_8859_PART14","ISO_8859_PART15","ISO_8859_PART16","CP_437","CP_1250","CP_1251","CP_1252","CP_1256","SHIFT_JIS","BIG_5","GB_2312","GB_18030","EUC_JP","EUC_KR","UTF_16_BE","UTF_8","UTF_16_LE","UTF_32_BE","UTF_32_LE","BINARY"];class r{constructor(e={}){if(void 0===e.start)throw new Error("start must be present in constructor argument");if(this.start=e.start,void 0===e.end)throw new Error("end must be present in constructor argument");if(this.end=e.end,void 0===e.encoding)throw new Error("encoding must be present in constructor argument");this.encoding=e.encoding}}class o{constructor(e={}){if(void 0===e.count)throw new Error("count must be present in constructor argument");if(this.count=e.count,void 0===e.index)throw new Error("index must be present in constructor argument");if(this.index=e.index,void 0===e.id)throw new Error("id must be present in constructor argument");this.id=e.id}}const a=["NONE","AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","EAN_8","EAN_13","ITF","MAXI_CODE","PDF_417","QR_CODE","DATABAR","DATABAR_EXPANDED","UPC_A","UPC_E","MSI_PLESSEY","IATA_2_OF_5","INDUSTRIAL_2_OF_5","CODE_25","MICRO_QR_CODE","USPS_INTELLIGENT_MAIL","ROYAL_MAIL","JAPAN_POST","ROYAL_TNT_POST","AUSTRALIA_POST","DATABAR_LIMITED","MICRO_PDF_417","GS1_COMPOSITE","RMQR_CODE","CODE_11","CODE_32","PHARMA_CODE","PHARMA_CODE_TWO_TRACK","PZN_7","PZN_8"];class s{constructor(e={}){}}!function(e){e.oned=["CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_8","EAN_13","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","MSI_PLESSEY","PHARMA_CODE","PZN_7","PZN_8","UPC_A","UPC_E"],e.twod=["AZTEC","DATA_MATRIX","MAXI_CODE","MICRO_QR_CODE","MICRO_PDF_417","PDF_417","QR_CODE","RMQR_CODE"],e.postal=["AUSTRALIA_POST","JAPAN_POST","ROYAL_MAIL","ROYAL_TNT_POST","USPS_INTELLIGENT_MAIL"],e.pharma=["CODE_32","PHARMA_CODE","PHARMA_CODE_TWO_TRACK","PZN_7","PZN_8"],e.common=["AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","ITF","PDF_417","QR_CODE","UPC_A","UPC_E"],e.all=["AUSTRALIA_POST","AZTEC","CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","GS1_COMPOSITE","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","JAPAN_POST","MAXI_CODE","MICRO_PDF_417","MICRO_QR_CODE","MSI_PLESSEY","PDF_417","PHARMA_CODE","PHARMA_CODE_TWO_TRACK","PZN_7","PZN_8","QR_CODE","RMQR_CODE","ROYAL_MAIL","ROYAL_TNT_POST","UPC_A","UPC_E","USPS_INTELLIGENT_MAIL"]}(s||(s={}));const c=["PARSE","VALIDATE_STRUCTURE","DECODE_STRUCTURE","VALIDATE_FULL","DECODE_FULL"],l=["REQUIRE_2","REQUIRE_5","REQUIRE_ANY","IGNORE","ALLOW_2","ALLOW_5","ALLOW_ANY"],u=["NONE","MINIMAL","MODERATE","THOROUGH"]},1815:(e,t,n)=>{"use strict";n.d(t,{I:()=>a,W:()=>s});var i=n(982),r=n(5291),o=n(8382);function a(){const e=new r.BarcodeScannerScreenConfiguration;return e.viewFinder.overlayColor=(0,o.FH)(e.viewFinder.overlayColor,e.palette),e.viewFinder.style.strokeColor=(0,o.FH)(e.viewFinder.style.strokeColor,e.palette),e.viewFinder}class s extends i.J{constructor(e){super(e),this.finder=a(),this.userGuidance=function(){const e=new r.BarcodeScannerScreenConfiguration;return e.userGuidance.background.fillColor=(0,o.FH)(e.userGuidance.background.fillColor,e.palette),e.userGuidance.title.color=(0,o.FH)(e.userGuidance.title.color,e.palette),e.userGuidance.title.text=(0,o.PC)(e.userGuidance.title.text,[],e.localization),e.userGuidance}()}static mapFinderConfiguration(e,t){var n,r;i.J.mapValuesDeep(null!==(n=t.finder)&&void 0!==n?n:{},e.finder),i.J.mapValuesDeep(null!==(r=t.userGuidance)&&void 0!==r?r:{},e.userGuidance)}}},1855:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var i=n(525),r=n(170),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new r.mN({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.VinScanner.create(new r.mN(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.VinScanner.run(this.objectId,e);return{result:new r.Fc(o.result),originalImage:new i._(o.originalImage)}}))}cleanRecognitionQueue(){return o(this,void 0,void 0,(function*(){const e=this.workerBridge.copyArgs;return yield e.VinScanner.cleanRecognitionQueue(this.objectId)}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.VinScanner.destroy(this.objectId)}))}}},2176:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var i=n(8350);class r{constructor(e={}){if(void 0===e.rawMRZ)throw new Error("rawMRZ must be present in constructor argument");if(this.rawMRZ=e.rawMRZ,void 0===e.mrzDocument)throw new Error("mrzDocument must be present in constructor argument");this.mrzDocument=null!=e.mrzDocument?new i.$G(e.mrzDocument):null}}},2177:(e,t,n)=>{"use strict";n.d(t,{s:()=>a,z:()=>s});var i=n(525),r=n(1374),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new r.Wy({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.MrzScanner.create(new r.Wy(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.MrzScanner.run(this.objectId,e);return{result:new r.pR(o.result),originalImage:new i._(o.originalImage)}}))}clearResult(){return o(this,void 0,void 0,(function*(){const e=this.workerBridge.copyArgs;return yield e.MrzScanner.clearResult(this.objectId)}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.MrzScanner.destroy(this.objectId)}))}}class s{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new r.jO({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.MrzParser.create(new r.jO(t));return new s(e,n)}))}parse(e){return o(this,void 0,void 0,(function*(){const t=this.workerBridge.copyArgs;return yield t.MrzParser.parse(this.objectId,e)}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.MrzParser.destroy(this.objectId)}))}}},2381:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});class i{constructor(){this.container=void 0,this.containerId=void 0}static mapValues(e,t,n){Object.keys(e).forEach((i=>{(null==n?void 0:n.includes(i))||(t[i]=e[i])}))}static mapValuesDeep(e,t){const n=e=>e&&"object"==typeof e&&!Array.isArray(e);Object.keys(e).forEach((r=>{r in t&&n(e[r])&&n(t[r])?i.mapValuesDeep(e[r],t[r]):t[r]=e[r]}))}static _fromJson(e,t){return this.mapValuesDeep(t,e),e}}},2485:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)i.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},2504:(e,t,n)=>{"use strict";n.d(t,{t:()=>a});var i=n(8627),r=n(525),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new i.TM({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.DocumentQualityAnalyzer.create(new i.TM(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.DocumentQualityAnalyzer.run(this.objectId,e);return{result:new i.A_(o.result),originalImage:new r._(o.originalImage)}}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.DocumentQualityAnalyzer.destroy(this.objectId)}))}}},2635:(e,t,n)=>{"use strict";var i;n.d(t,{N1:()=>a,YW:()=>c,eB:()=>s,lm:()=>i,vZ:()=>o,zr:()=>r}),function(e){e.from=function(e){const t=e._type;switch(t){case"Glyph":return new r(e);case"Word":return new o(e);case"Line":return new a(e);case"Block":return new s(e);case"Page":return new c(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(i||(i={}));class r{constructor(e={}){if(this._type="Glyph",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");this.roi=e.roi.map((e=>({x:e.x,y:e.y})))}}class o{constructor(e={}){if(this._type="Word",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.glyphs)throw new Error("glyphs must be present in constructor argument");this.glyphs=e.glyphs.map((e=>new r(e)))}}class a{constructor(e={}){if(this._type="Line",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.words)throw new Error("words must be present in constructor argument");this.words=e.words.map((e=>new o(e)))}}class s{constructor(e={}){if(this._type="Block",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.lines)throw new Error("lines must be present in constructor argument");this.lines=e.lines.map((e=>new a(e)))}}class c{constructor(e={}){if(this._type="Page",void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");if(this.confidence=e.confidence,void 0===e.roi)throw new Error("roi must be present in constructor argument");if(this.roi=e.roi.map((e=>({x:e.x,y:e.y}))),void 0===e.blocks)throw new Error("blocks must be present in constructor argument");this.blocks=e.blocks.map((e=>new s(e)))}}},2833:e=>{e.exports=function(e,t,n,i){var r=n?n.call(i,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var l=o[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(r=n?n.call(i,u,d,l):void 0)||void 0===r&&u!==d)return!1}return!0}},2880:(e,t,n)=>{"use strict";n.d(t,{DZ:()=>o,S4:()=>a,kY:()=>s});var i=n(6396),r=n(73);const o=["SUCCESS","ERROR_NOTHING_FOUND","INCOMPLETE"];class a{constructor(e={}){if(void 0===e.detectionStatus)throw new Error("detectionStatus must be present in constructor argument");if(this.detectionStatus=e.detectionStatus,void 0===e.scanningStatus)throw new Error("scanningStatus must be present in constructor argument");if(this.scanningStatus=e.scanningStatus,void 0===e.creditCard)throw new Error("creditCard must be present in constructor argument");if(this.creditCard=null!=e.creditCard?new i.$G(e.creditCard):null,void 0===e.quad)throw new Error("quad must be present in constructor argument");if(this.quad=e.quad.map((e=>({x:e.x,y:e.y}))),void 0===e.quadNormalized)throw new Error("quadNormalized must be present in constructor argument");this.quadNormalized=e.quadNormalized.map((e=>({x:e.x,y:e.y})))}}class s{constructor(e={}){this.useDocumentDetector=!0,this.requireExpiryDate=!0,this.requireCardholderName=!0,this.resultAccumulationConfig=new r.$e({}),this.returnCreditCardImage=!1,this.processingMode="AUTO",void 0!==e.useDocumentDetector&&(this.useDocumentDetector=e.useDocumentDetector),void 0!==e.requireExpiryDate&&(this.requireExpiryDate=e.requireExpiryDate),void 0!==e.requireCardholderName&&(this.requireCardholderName=e.requireCardholderName),void 0!==e.resultAccumulationConfig&&(this.resultAccumulationConfig=new r.$e(e.resultAccumulationConfig)),void 0!==e.returnCreditCardImage&&(this.returnCreditCardImage=e.returnCreditCardImage),void 0!==e.processingMode&&(this.processingMode=e.processingMode)}}},3195:(e,t,n)=>{"use strict";var i,r;n.d(t,{Ay:()=>S,BI:()=>s,D$:()=>C,Dh:()=>D,Eq:()=>F,Ev:()=>L,HL:()=>O,I0:()=>R,JJ:()=>u,OK:()=>A,QP:()=>_,RC:()=>d,TG:()=>i,UC:()=>f,Uh:()=>v,Zb:()=>P,_l:()=>M,dV:()=>r,er:()=>b,ew:()=>y,f:()=>a,fb:()=>c,gH:()=>g,j9:()=>p,j_:()=>E,jj:()=>k,k6:()=>m,kp:()=>l,nx:()=>N,qY:()=>I,r$:()=>B,ty:()=>h,uW:()=>o,uY:()=>x,zH:()=>T,zX:()=>w}),function(e){e.from=function(e){const t=e._type;switch(t){case"BarcodeFormatCodabarConfiguration":return new o(e);case"BarcodeFormatCode11Configuration":return new a(e);case"BarcodeFormatCode39Configuration":return new s(e);case"BarcodeFormatCode93Configuration":return new c(e);case"BarcodeFormatCode128Configuration":return new l(e);case"BarcodeFormatCode2Of5Configuration":return new u(e);case"BarcodeFormatDataBarConfiguration":return new d(e);case"BarcodeFormatDataBarExpandedConfiguration":return new m(e);case"BarcodeFormatDataBarLimitedConfiguration":return new h(e);case"BarcodeFormatITFConfiguration":return new p(e);case"BarcodeFormatMSIPlesseyConfiguration":return new A(e);case"BarcodeFormatUpcEanConfiguration":return new g(e);case"BarcodeFormatPharmaCodeConfiguration":return new f(e);case"BarcodeFormatAztecConfiguration":return new D(e);case"BarcodeFormatQRCodeConfiguration":return new y(e);case"BarcodeFormatPDF417Configuration":return new I(e);case"BarcodeFormatMicroPDF417Configuration":return new v(e);case"BarcodeFormatDataMatrixConfiguration":return new N(e);case"BarcodeFormatMaxiCodeConfiguration":return new S(e);case"BarcodeFormatAustraliaPostConfiguration":return new M(e);case"BarcodeFormatJapanPostConfiguration":return new L(e);case"BarcodeFormatRoyalMailConfiguration":return new R(e);case"BarcodeFormatRoyalTNTPostConfiguration":return new T(e);case"BarcodeFormatUSPSIntelligentMailConfiguration":return new O(e);case"BarcodeFormatPharmaCodeTwoTrackConfiguration":return new w(e);case"BarcodeFormatGS1CompositeConfiguration":return new F(e);case"BarcodeFormatCommonOneDConfiguration":return new B(e);case"BarcodeFormatCommonTwoDConfiguration":return new P(e);case"BarcodeFormatCommonFourStateConfiguration":return new x(e);case"BarcodeFormatCommonConfiguration":return new k(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(i||(i={})),function(e){e.from=function(e){const t=e._type;switch(t){case"BarcodeFormatCodabarConfiguration":return new o(e);case"BarcodeFormatCode11Configuration":return new a(e);case"BarcodeFormatCode39Configuration":return new s(e);case"BarcodeFormatCode93Configuration":return new c(e);case"BarcodeFormatCode128Configuration":return new l(e);case"BarcodeFormatCode2Of5Configuration":return new u(e);case"BarcodeFormatDataBarConfiguration":return new d(e);case"BarcodeFormatDataBarExpandedConfiguration":return new m(e);case"BarcodeFormatDataBarLimitedConfiguration":return new h(e);case"BarcodeFormatITFConfiguration":return new p(e);case"BarcodeFormatMSIPlesseyConfiguration":return new A(e);case"BarcodeFormatUpcEanConfiguration":return new g(e);case"BarcodeFormatPharmaCodeConfiguration":return new f(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(r||(r={}));class o{constructor(e={}){this._type="BarcodeFormatCodabarConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,this.returnStartEnd=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner),void 0!==e.returnStartEnd&&(this.returnStartEnd=e.returnStartEnd)}}class a{constructor(e={}){this._type="BarcodeFormatCode11Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.checksum=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.checksum&&(this.checksum=e.checksum)}}class s{constructor(e={}){this._type="BarcodeFormatCode39Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,this.code32=!1,this.code39=!0,this.pzn7=!0,this.pzn8=!0,this.tryCode39ExtendedMode=!1,this.useCode39CheckDigit=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner),void 0!==e.code32&&(this.code32=e.code32),void 0!==e.code39&&(this.code39=e.code39),void 0!==e.pzn7&&(this.pzn7=e.pzn7),void 0!==e.pzn8&&(this.pzn8=e.pzn8),void 0!==e.tryCode39ExtendedMode&&(this.tryCode39ExtendedMode=e.tryCode39ExtendedMode),void 0!==e.useCode39CheckDigit&&(this.useCode39CheckDigit=e.useCode39CheckDigit)}}class c{constructor(e={}){this._type="BarcodeFormatCode93Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner)}}class l{constructor(e={}){this._type="BarcodeFormatCode128Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.gs1Handling="PARSE",this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner)}}class u{constructor(e={}){this._type="BarcodeFormatCode2Of5Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.iata2of5=!0,this.code25=!1,this.industrial2of5=!0,this.useIATA2OF5Checksum=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.iata2of5&&(this.iata2of5=e.iata2of5),void 0!==e.code25&&(this.code25=e.code25),void 0!==e.industrial2of5&&(this.industrial2of5=e.industrial2of5),void 0!==e.useIATA2OF5Checksum&&(this.useIATA2OF5Checksum=e.useIATA2OF5Checksum)}}class d{constructor(e={}){this._type="BarcodeFormatDataBarConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class m{constructor(e={}){this._type="BarcodeFormatDataBarExpandedConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class h{constructor(e={}){this._type="BarcodeFormatDataBarLimitedConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class p{constructor(e={}){this._type="BarcodeFormatITFConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner)}}const E=["MOD_10","MOD_11_IBM","MOD_11_NCR","MOD_10_10","MOD_11_10_IBM","MOD_11_10_NCR"];class A{constructor(e={}){this._type="BarcodeFormatMSIPlesseyConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.enableOneDBlurScanner=!0,this.checksumAlgorithms=["MOD_10"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner),void 0!==e.checksumAlgorithms&&(this.checksumAlgorithms=e.checksumAlgorithms.map((e=>e)))}}class g{constructor(e={}){this._type="BarcodeFormatUpcEanConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.stripCheckDigits=!1,this.enableOneDBlurScanner=!1,this.ean8=!0,this.ean13=!0,this.upca=!0,this.upce=!0,this.extensions="ALLOW_ANY",this.minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless=1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.enableOneDBlurScanner&&(this.enableOneDBlurScanner=e.enableOneDBlurScanner),void 0!==e.ean8&&(this.ean8=e.ean8),void 0!==e.ean13&&(this.ean13=e.ean13),void 0!==e.upca&&(this.upca=e.upca),void 0!==e.upce&&(this.upce=e.upce),void 0!==e.extensions&&(this.extensions=e.extensions),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless=e.minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless)}}class f{constructor(e={}){this._type="BarcodeFormatPharmaCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.oneDConfirmationMode="THOROUGH",this.minimumValue=16,this.allowNarrowBarsOnly=!1,this.allowWideBarsOnly=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.minimumValue&&(this.minimumValue=e.minimumValue),void 0!==e.allowNarrowBarsOnly&&(this.allowNarrowBarsOnly=e.allowNarrowBarsOnly),void 0!==e.allowWideBarsOnly&&(this.allowWideBarsOnly=e.allowWideBarsOnly)}}var C,_;!function(e){e.from=function(e){const t=e._type;switch(t){case"BarcodeFormatAztecConfiguration":return new D(e);case"BarcodeFormatQRCodeConfiguration":return new y(e);case"BarcodeFormatPDF417Configuration":return new I(e);case"BarcodeFormatMicroPDF417Configuration":return new v(e);case"BarcodeFormatDataMatrixConfiguration":return new N(e);case"BarcodeFormatMaxiCodeConfiguration":return new S(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(C||(C={}));class D{constructor(e={}){this._type="BarcodeFormatAztecConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class y{constructor(e={}){this._type="BarcodeFormatQRCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,this.qr=!0,this.microQr=!1,this.rmqr=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.qr&&(this.qr=e.qr),void 0!==e.microQr&&(this.microQr=e.microQr),void 0!==e.rmqr&&(this.rmqr=e.rmqr)}}class I{constructor(e={}){this._type="BarcodeFormatPDF417Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class v{constructor(e={}){this._type="BarcodeFormatMicroPDF417Configuration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class N{constructor(e={}){this._type="BarcodeFormatDataMatrixConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling)}}class S{constructor(e={}){this._type="BarcodeFormatMaxiCodeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}!function(e){e.from=function(e){const t=e._type;switch(t){case"BarcodeFormatAustraliaPostConfiguration":return new M(e);case"BarcodeFormatJapanPostConfiguration":return new L(e);case"BarcodeFormatRoyalMailConfiguration":return new R(e);case"BarcodeFormatRoyalTNTPostConfiguration":return new T(e);case"BarcodeFormatUSPSIntelligentMailConfiguration":return new O(e);case"BarcodeFormatPharmaCodeTwoTrackConfiguration":return new w(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(_||(_={}));const b=["NUMERIC","ALPHA_NUMERIC"];class M{constructor(e={}){this._type="BarcodeFormatAustraliaPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.australiaPostCustomerFormat="ALPHA_NUMERIC",void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.australiaPostCustomerFormat&&(this.australiaPostCustomerFormat=e.australiaPostCustomerFormat)}}class L{constructor(e={}){this._type="BarcodeFormatJapanPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class R{constructor(e={}){this._type="BarcodeFormatRoyalMailConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.stripCheckDigits=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits)}}class T{constructor(e={}){this._type="BarcodeFormatRoyalTNTPostConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class O{constructor(e={}){this._type="BarcodeFormatUSPSIntelligentMailConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone)}}class w{constructor(e={}){this._type="BarcodeFormatPharmaCodeTwoTrackConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimumValue=364,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimumValue&&(this.minimumValue=e.minimumValue)}}class F{constructor(e={}){this._type="BarcodeFormatGS1CompositeConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.gs1Handling="PARSE",this.strictMode=!0,void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode)}}class B{constructor(e={}){this._type="BarcodeFormatCommonOneDConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.gs1Handling="PARSE",this.oneDConfirmationMode="THOROUGH",this.formats=["CODABAR","CODE_11","CODE_25","CODE_32","CODE_39","CODE_93","CODE_128","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_8","EAN_13","IATA_2_OF_5","INDUSTRIAL_2_OF_5","ITF","MSI_PLESSEY","PHARMA_CODE","PZN_7","PZN_8","UPC_A","UPC_E"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class P{constructor(e={}){this._type="BarcodeFormatCommonTwoDConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.gs1Handling="PARSE",this.strictMode=!0,this.formats=["AZTEC","DATA_MATRIX","MAXI_CODE","MICRO_QR_CODE","MICRO_PDF_417","PDF_417","QR_CODE","RMQR_CODE"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class x{constructor(e={}){this._type="BarcodeFormatCommonFourStateConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.formats=["AUSTRALIA_POST","JAPAN_POST","ROYAL_MAIL","ROYAL_TNT_POST","USPS_INTELLIGENT_MAIL"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}class k{constructor(e={}){this._type="BarcodeFormatCommonConfiguration",this.regexFilter="",this.minimumSizeScore=0,this.addAdditionalQuietZone=!1,this.minimum1DQuietZoneSize=6,this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=1,this.stripCheckDigits=!1,this.minimumTextLength=1,this.maximumTextLength=0,this.gs1Handling="PARSE",this.strictMode=!0,this.oneDConfirmationMode="THOROUGH",this.formats=["AZTEC","CODABAR","CODE_39","CODE_93","CODE_128","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","ITF","PDF_417","QR_CODE","UPC_A","UPC_E"],void 0!==e.regexFilter&&(this.regexFilter=e.regexFilter),void 0!==e.minimumSizeScore&&(this.minimumSizeScore=e.minimumSizeScore),void 0!==e.addAdditionalQuietZone&&(this.addAdditionalQuietZone=e.addAdditionalQuietZone),void 0!==e.minimum1DQuietZoneSize&&(this.minimum1DQuietZoneSize=e.minimum1DQuietZoneSize),void 0!==e.minimumNumberOfRequiredFramesWithEqualRecognitionResult&&(this.minimumNumberOfRequiredFramesWithEqualRecognitionResult=e.minimumNumberOfRequiredFramesWithEqualRecognitionResult),void 0!==e.stripCheckDigits&&(this.stripCheckDigits=e.stripCheckDigits),void 0!==e.minimumTextLength&&(this.minimumTextLength=e.minimumTextLength),void 0!==e.maximumTextLength&&(this.maximumTextLength=e.maximumTextLength),void 0!==e.gs1Handling&&(this.gs1Handling=e.gs1Handling),void 0!==e.strictMode&&(this.strictMode=e.strictMode),void 0!==e.oneDConfirmationMode&&(this.oneDConfirmationMode=e.oneDConfirmationMode),void 0!==e.formats&&(this.formats=e.formats.map((e=>e)))}}},3221:(e,t,n)=>{"use strict";n.d(t,{Ou:()=>s,Vr:()=>r,gf:()=>a,pR:()=>o});var i=n(5296);class r{constructor(e){this.id=e}}class o{_nonPartiallyConstructibleMarker(){}}class a{constructor(){this._map=new Map,this._nextId=0,this._unique=Math.random().toString(36)}add(e){const t=this._nextId.toString()+"_"+this._unique;return this._map.set(t,e),this._nextId++,new r(t)}get(e){return this._map.get(e.id)}delete(e){this.get(e).delete(),this._map.delete(e.id)}}function s(e){if(e.errorMessage)throw(0,i.$5)(e.errorType,e.errorMessage);return e.result}},3296:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AAMVA:()=>Ie,AUSCheck:()=>Te,AccumulatedResultsVerifierConfiguration:()=>O.X,AspectRatio:()=>E.gl,AustraliaPostCustomerFormatValues:()=>i.er,AutoFocusConfiguration:()=>m.a8,BarcodeAccumulationConfiguration:()=>r.Q,BarcodeAccumulationMethodValues:()=>r.bC,BarcodeDocumentFormatValues:()=>a.b2,BarcodeDocumentFormats:()=>a.ix,BarcodeDocumentParser:()=>Ke.v,BarcodeDocumentParserResult:()=>a.w5,BarcodeFormatAustraliaPostConfiguration:()=>i._l,BarcodeFormatAztecConfiguration:()=>i.Dh,BarcodeFormatCodabarConfiguration:()=>i.uW,BarcodeFormatCode11Configuration:()=>i.f,BarcodeFormatCode128Configuration:()=>i.kp,BarcodeFormatCode2Of5Configuration:()=>i.JJ,BarcodeFormatCode39Configuration:()=>i.BI,BarcodeFormatCode93Configuration:()=>i.fb,BarcodeFormatCommonConfiguration:()=>i.jj,BarcodeFormatCommonFourStateConfiguration:()=>i.uY,BarcodeFormatCommonOneDConfiguration:()=>i.r$,BarcodeFormatCommonTwoDConfiguration:()=>i.Zb,BarcodeFormatConfigurationBase:()=>i.TG,BarcodeFormatDataBarConfiguration:()=>i.RC,BarcodeFormatDataBarExpandedConfiguration:()=>i.k6,BarcodeFormatDataBarLimitedConfiguration:()=>i.ty,BarcodeFormatDataMatrixConfiguration:()=>i.nx,BarcodeFormatFourStateConfigurationBase:()=>i.QP,BarcodeFormatGs1CompositeConfiguration:()=>i.Eq,BarcodeFormatItfConfiguration:()=>i.j9,BarcodeFormatJapanPostConfiguration:()=>i.Ev,BarcodeFormatMaxiCodeConfiguration:()=>i.Ay,BarcodeFormatMicroPdf417Configuration:()=>i.Uh,BarcodeFormatMsiPlesseyConfiguration:()=>i.OK,BarcodeFormatOneDConfigurationBase:()=>i.dV,BarcodeFormatPdf417Configuration:()=>i.qY,BarcodeFormatPharmaCodeConfiguration:()=>i.UC,BarcodeFormatPharmaCodeTwoTrackConfiguration:()=>i.zX,BarcodeFormatQrCodeConfiguration:()=>i.ew,BarcodeFormatRoyalMailConfiguration:()=>i.I0,BarcodeFormatRoyalTntPostConfiguration:()=>i.zH,BarcodeFormatTwoDConfigurationBase:()=>i.D$,BarcodeFormatUpcEanConfiguration:()=>i.gH,BarcodeFormatUspsIntelligentMailConfiguration:()=>i.HL,BarcodeFormatValues:()=>o.i3,BarcodeFormats:()=>o.bh,BarcodeItem:()=>r.Ou,BarcodeScanner:()=>je.v,BarcodeScannerConfiguration:()=>r.zQ,BarcodeScannerEngineModeValues:()=>r.MD,BarcodeScannerResult:()=>r.AG,BinarizationFilterPresetValues:()=>f.Oc,Block:()=>g.eB,BoardingPass:()=>pe,BrIdCardBack:()=>Q,BrIdCardFront:()=>j,BrIdCardFrontPhotoOnly:()=>J,BridgeApiEntrypoint:()=>et.u,BrightnessFilter:()=>f.YF,BritishColumbiaDriverLicense:()=>ye,CANCheck:()=>we,CharacterEncodingValues:()=>o.JH,Check:()=>Ne,CheckDocumentDetectionModeValues:()=>s.EJ,CheckMagneticInkStripScanningStatusValues:()=>s.k7,CheckScanner:()=>Qe.p,CheckScannerConfiguration:()=>s.Bp,CheckScanningResult:()=>s.fn,CheckStandardValues:()=>s.kh,CnEntryAndExitPermitBack:()=>K,CnEntryAndExitPermitFront:()=>$,CnPermanentResidentCardFront:()=>ee,ColorDocumentFilter:()=>f.hJ,ColorDocumentShadowRemovalFilter:()=>f.t,CommonFieldTypeValues:()=>c.W,CompositeFieldValueSemantics:()=>h.a5,CompressionModeValues:()=>N,ConfirmationMethodValues:()=>O.hZ,ConsistencyVerificationReport:()=>h.W9,ContentValidator:()=>p.Ib,ContrastFilter:()=>f.vd,CreditCard:()=>Be,CreditCardScanner:()=>$e.g,CreditCardScannerConfiguration:()=>P.kY,CreditCardScanningResult:()=>P.S4,CreditCardScanningStatusValues:()=>P.DZ,CustomBinarizationFilter:()=>f.Y8,DEMedicalPlan:()=>Ae,DateValidationConfiguration:()=>m.qQ,DeHealthInsuranceCardFront:()=>X,DeIdCardBack:()=>Z,DeIdCardFront:()=>U,DePassport:()=>W,DeResidencePermitBack:()=>Y,DeResidencePermitFront:()=>z,DefaultContentValidator:()=>p.RT,DeviceDeregistrationError:()=>xe,DocumentClassifier:()=>tt.x,DocumentClassifierConfiguration:()=>Ze.hq,DocumentClassifierResult:()=>Ze.g$,DocumentClassifierStatusValues:()=>Ze.jJ,DocumentDataExtractionResult:()=>h.qc,DocumentDataExtractionStatusValues:()=>h.Vi,DocumentDataExtractor:()=>ze.M,DocumentDataExtractorCommonConfiguration:()=>m.bl,DocumentDataExtractorConfiguration:()=>h.sO,DocumentDataExtractorConfigurationElement:()=>m.GF,DocumentDetectionResult:()=>l.aJ,DocumentDetectionScores:()=>l.Qz,DocumentDetectionStatusValues:()=>l.Bt,DocumentDisplacementValues:()=>l.zP,DocumentQualityAnalyzer:()=>qe.t,DocumentQualityAnalyzerConfiguration:()=>u.TM,DocumentQualityAnalyzerResult:()=>u.A_,DocumentQualityThreshold:()=>u.Yb,DocumentQualityValues:()=>u.Zf,DocumentScanner:()=>Xe.A,DocumentScannerConfiguration:()=>l.A9,DocumentScannerEngineModeValues:()=>l.tC,DocumentScannerParameters:()=>l.AE,DocumentScanningResult:()=>l.EU,DocumentTrustModeValues:()=>h.x3,DocumentTypeValues:()=>Ze.wO,DocumentVerificationReport:()=>h.vv,DocumentVerificationStatusValues:()=>h.XI,EuropeanDriverLicenseBack:()=>G,EuropeanDriverLicenseFront:()=>H,EuropeanHealthInsuranceCard:()=>q,EuropeanHealthInsuranceCardConfiguration:()=>m.KH,EuropeanHealthInsuranceCardIssuingCountryValues:()=>m.ID,FRACheck:()=>Me,FeatureValues:()=>Ve,Field:()=>d.D0,FieldConsistencyVerificationReport:()=>h.Ed,FieldDataFormatValues:()=>d.yJ,FieldInvalidDataVerificationReport:()=>h.Zx,FieldParsedData:()=>d.YA,FieldSuspiciousDataVerificationReport:()=>h.Zs,FieldType:()=>d.PU,FieldValidationStatusValues:()=>d.oB,FieldValueSemantics:()=>h.VY,GS1:()=>fe,GenericDocument:()=>d.$G,GenericDocumentType:()=>d.Dq,GlareDetectionConfiguration:()=>m.tn,Glyph:()=>g.zr,GrayscaleFilter:()=>f.w,Gs1HandlingValues:()=>o.fZ,HIBC:()=>ve,HkIdentityCardFront:()=>te,IDCardPDF417:()=>ge,INDCheck:()=>Oe,ISRCheck:()=>Le,Image:()=>ot._,ImageManipulator:()=>nt.S,ImageOriginValues:()=>F,ImageProcessor:()=>Ge.C,ImageRotationValues:()=>w,InvalidDataVerificationReport:()=>h.pS,ItIdCardBack:()=>se,ItIdCardFront:()=>ae,KWTCheck:()=>Re,LegacyFilter:()=>f.An,LicenseInfo:()=>ke,LicenseStatusValues:()=>Pe,Line:()=>g.N1,LineSegmentFloat:()=>E.sw,LineSegmentInt:()=>E.pk,MRZ:()=>k,MedicalCertificate:()=>_e,Metadata:()=>x,MoIdentityCardBack:()=>ie,MoIdentityCardFront:()=>re,MrzDocumentTypeValues:()=>A.zm,MrzFallbackConfiguration:()=>m.JK,MrzIncompleteResultHandlingValues:()=>A.Uo,MrzParser:()=>Je.z,MrzParserConfiguration:()=>A.jO,MrzScanner:()=>Je.s,MrzScannerConfiguration:()=>A.Wy,MrzScannerResult:()=>A.pR,MsiPlesseyChecksumAlgorithmValues:()=>i.j_,NonPartiallyConstructible:()=>at.pR,ObjectId:()=>at.Vr,OcrElement:()=>g.lm,OcrEngine:()=>Ye.x,OcrResult:()=>d.S5,OneDConfirmationModeValues:()=>o.bd,OutputModeValues:()=>f.Ni,Page:()=>g.YW,PageBinarizationValues:()=>f.yH,PageDirectionValues:()=>D,PageFitValues:()=>y,PageSizeValues:()=>_,ParametricFilter:()=>f.hI,ParsedDeAddress:()=>V,PartiallyVisibleDocumentConfiguration:()=>l.mb,PatternContentValidator:()=>p.Cq,PatternGrammarValues:()=>p.sr,PdfAttributes:()=>C,PdfConfiguration:()=>v,PoIdCardBack:()=>de,PoIdCardFront:()=>ce,ProcessByTileConfiguration:()=>u.Fb,ProcessingModeValues:()=>Ue,RangeEncoding:()=>o.tb,ResamplingMethodValues:()=>I,ResultAccumulationConfiguration:()=>O.$e,RoIdCardBack:()=>le,RoIdCardFront:()=>ue,RoIdCardTD3:()=>oe,SEPA:()=>Ce,ScanbotBinarizationFilter:()=>f.Xb,SemanticsVerificationReport:()=>h.tl,StructuredAppendInfo:()=>o.ux,SuspiciousDataVerificationReport:()=>h.Fl,SwissQR:()=>Ee,SymbolBox:()=>p.se,TextPatternScanner:()=>We.g,TextPatternScannerConfiguration:()=>p.Qr,TextPatternScannerResult:()=>p.n_,TiffGeneratorParameters:()=>T,TrIdCardBack:()=>me,TrIdCardFront:()=>he,TwEntryAndExitPermit:()=>ne,UAECheck:()=>be,USACheck:()=>Se,UnknownCheck:()=>Fe,UpcEanExtensionBehaviorValues:()=>o.YJ,UserField:()=>R,UserFieldDoubleValue:()=>b,UserFieldIntValue:()=>L,UserFieldStringValue:()=>M,UserFieldValue:()=>S,VCard:()=>De,ValueConsistencyValues:()=>h.ey,ValueSemanticsValues:()=>h.Re,VinBarcodeExtractionStatusValues:()=>B.RX,VinBarcodeResult:()=>B.dn,VinScanner:()=>He.g,VinScannerConfiguration:()=>B.mN,VinScannerResult:()=>B.Fc,WasmObjectMap:()=>at.gf,WhiteBlackPointFilter:()=>f.f8,Word:()=>g.vZ,WordBox:()=>p.S7,WorkerBridge:()=>rt._,areThreadsAvailable:()=>it.jz,consumeResult:()=>at.Ou,gatherTransferables:()=>it.ef,getBuildType:()=>it.Jk,isRemote:()=>it.Vx});var i=n(3195),r=n(4151),o=n(1671),a=n(4896),s=n(8667),c=n(3415),l=n(7828),u=n(8627),d=n(6396),m=n(1304),h=n(9338),p=n(6244),E=n(586),A=n(1374),g=n(2635),f=n(177);class C{constructor(e={}){this.author="Created with Scanbot SDK",this.creator="",this.title="",this.subject="",this.keywords="",void 0!==e.author&&(this.author=e.author),void 0!==e.creator&&(this.creator=e.creator),void 0!==e.title&&(this.title=e.title),void 0!==e.subject&&(this.subject=e.subject),void 0!==e.keywords&&(this.keywords=e.keywords)}}const _=["LETTER","LEGAL","A3","A4","A5","B4","B5","EXECUTIVE","US4x6","US4x8","US5x7","COMM10","CUSTOM"],D=["PORTRAIT","LANDSCAPE","AUTO"],y=["FIT_IN","FILL_IN","STRETCH","NONE"],I=["NONE","NEAREST","LINEAR","CUBIC","LANCZOS4","AREA"];class v{constructor(e={}){this.attributes=new C({}),this.pageSize="A4",this.pageDirection="PORTRAIT",this.pageFit="FIT_IN",this.dpi=72,this.jpegQuality=80,this.resamplingMethod="NONE",this.binarizationFilter=null,void 0!==e.attributes&&(this.attributes=new C(e.attributes)),void 0!==e.pageSize&&(this.pageSize=e.pageSize),void 0!==e.pageDirection&&(this.pageDirection=e.pageDirection),void 0!==e.pageFit&&(this.pageFit=e.pageFit),void 0!==e.dpi&&(this.dpi=e.dpi),void 0!==e.jpegQuality&&(this.jpegQuality=e.jpegQuality),void 0!==e.resamplingMethod&&(this.resamplingMethod=e.resamplingMethod),void 0!==e.binarizationFilter&&(this.binarizationFilter=null!=e.binarizationFilter?f.hI.from(e.binarizationFilter):null)}}const N=["NONE","CCITTRLE","CCITT_T4","CCITT_T6","LZW","JPEG","CCITTRLEW","PACKBITS","DEFLATE","ADOBE_DEFLATE"];var S;!function(e){e.from=function(e){const t=e._type;switch(t){case"UserFieldDoubleValue":return new b(e);case"UserFieldStringValue":return new M(e);case"UserFieldIntValue":return new L(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(S||(S={}));class b{constructor(e={}){if(this._type="UserFieldDoubleValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class M{constructor(e={}){if(this._type="UserFieldStringValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class L{constructor(e={}){if(this._type="UserFieldIntValue",void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class R{constructor(e={}){if(void 0===e.tag)throw new Error("tag must be present in constructor argument");if(this.tag=e.tag,void 0===e.name)throw new Error("name must be present in constructor argument");if(this.name=e.name,void 0===e.value)throw new Error("value must be present in constructor argument");this.value=S.from(e.value)}}class T{constructor(e={}){this.compression="LZW",this.jpegQuality=80,this.zipCompressionLevel=6,this.dpi=72,this.userFields=[],this.binarizationFilter=null,void 0!==e.compression&&(this.compression=e.compression),void 0!==e.jpegQuality&&(this.jpegQuality=e.jpegQuality),void 0!==e.zipCompressionLevel&&(this.zipCompressionLevel=e.zipCompressionLevel),void 0!==e.dpi&&(this.dpi=e.dpi),void 0!==e.userFields&&(this.userFields=e.userFields.map((e=>new R(e)))),void 0!==e.binarizationFilter&&(this.binarizationFilter=null!=e.binarizationFilter?f.hI.from(e.binarizationFilter):null)}}!function(e){e.defaultCompression="LZW",e.binaryDocumentOptimizedCompression="CCITT_T6"}(T||(T={}));var O=n(73);const w=["NONE","CLOCKWISE_90","CLOCKWISE_180","COUNTERCLOCKWISE_90"],F=["TOP_LEFT","TOP_RIGHT","BOTTOM_LEFT","BOTTOM_RIGHT"];var B=n(170),P=n(2880);class x{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return x.DOCUMENT_TYPE}get country(){return this.document.fields.find((e=>"Country"===e.type.name))}get documentSide(){return this.document.fields.find((e=>"DocumentSide"===e.type.name))}get printingFormat(){return this.document.fields.find((e=>"PrintingFormat"===e.type.name))}get tagss(){return this.document.fields.filter((e=>"Tags"===e.type.name))}}x.DOCUMENT_TYPE="Metadata",x.COUNTRY_FIELD_NAME="Country",x.COUNTRY_FIELD_NAME_NORMALIZED="Metadata.Country",x.DOCUMENT_SIDE_FIELD_NAME="DocumentSide",x.DOCUMENT_SIDE_FIELD_NAME_NORMALIZED="Metadata.DocumentSide",x.PRINTING_FORMAT_FIELD_NAME="PrintingFormat",x.PRINTING_FORMAT_FIELD_NAME_NORMALIZED="Metadata.PrintingFormat",x.TAGS_FIELD_NAME="Tags",x.TAGS_FIELD_NAME_NORMALIZED="Metadata.Tags";class k{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return k.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get checkDigitBirthDate(){return this.document.fields.find((e=>"CheckDigitBirthDate"===e.type.name))}get checkDigitDocumentNumber(){return this.document.fields.find((e=>"CheckDigitDocumentNumber"===e.type.name))}get checkDigitExpiryDate(){return this.document.fields.find((e=>"CheckDigitExpiryDate"===e.type.name))}get checkDigitGeneral(){return this.document.fields.find((e=>"CheckDigitGeneral"===e.type.name))}get checkDigitPersonalNumber(){return this.document.fields.find((e=>"CheckDigitPersonalNumber"===e.type.name))}get dateOfIssuance(){return this.document.fields.find((e=>"DateOfIssuance"===e.type.name))}get documentNumber(){return this.document.fields.find((e=>"DocumentNumber"===e.type.name))}get documentType(){return this.document.fields.find((e=>"DocumentType"===e.type.name))}get documentTypeCode(){return this.document.fields.find((e=>"DocumentTypeCode"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get languageCode(){return this.document.fields.find((e=>"LanguageCode"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get officeOfIssuance(){return this.document.fields.find((e=>"OfficeOfIssuance"===e.type.name))}get optional1(){return this.document.fields.find((e=>"Optional1"===e.type.name))}get optional2(){return this.document.fields.find((e=>"Optional2"===e.type.name))}get pinCode(){return this.document.fields.find((e=>"PINCode"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get travelDocType(){return this.document.fields.find((e=>"TravelDocType"===e.type.name))}get travelDocTypeVariant(){return this.document.fields.find((e=>"TravelDocTypeVariant"===e.type.name))}get unknown(){return this.document.fields.find((e=>"Unknown"===e.type.name))}get versionNumber(){return this.document.fields.find((e=>"VersionNumber"===e.type.name))}get visaOptional(){return this.document.fields.find((e=>"VisaOptional"===e.type.name))}}k.DOCUMENT_TYPE="MRZ",k.BIRTH_DATE_FIELD_NAME="BirthDate",k.BIRTH_DATE_FIELD_NAME_NORMALIZED="MRZ.BirthDate",k.CHECK_DIGIT_BIRTH_DATE_FIELD_NAME="CheckDigitBirthDate",k.CHECK_DIGIT_BIRTH_DATE_FIELD_NAME_NORMALIZED="MRZ.CheckDigitBirthDate",k.CHECK_DIGIT_DOCUMENT_NUMBER_FIELD_NAME="CheckDigitDocumentNumber",k.CHECK_DIGIT_DOCUMENT_NUMBER_FIELD_NAME_NORMALIZED="MRZ.CheckDigitDocumentNumber",k.CHECK_DIGIT_EXPIRY_DATE_FIELD_NAME="CheckDigitExpiryDate",k.CHECK_DIGIT_EXPIRY_DATE_FIELD_NAME_NORMALIZED="MRZ.CheckDigitExpiryDate",k.CHECK_DIGIT_GENERAL_FIELD_NAME="CheckDigitGeneral",k.CHECK_DIGIT_GENERAL_FIELD_NAME_NORMALIZED="MRZ.CheckDigitGeneral",k.CHECK_DIGIT_PERSONAL_NUMBER_FIELD_NAME="CheckDigitPersonalNumber",k.CHECK_DIGIT_PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="MRZ.CheckDigitPersonalNumber",k.DATE_OF_ISSUANCE_FIELD_NAME="DateOfIssuance",k.DATE_OF_ISSUANCE_FIELD_NAME_NORMALIZED="MRZ.DateOfIssuance",k.DOCUMENT_NUMBER_FIELD_NAME="DocumentNumber",k.DOCUMENT_NUMBER_FIELD_NAME_NORMALIZED="MRZ.DocumentNumber",k.DOCUMENT_TYPE_FIELD_NAME="DocumentType",k.DOCUMENT_TYPE_FIELD_NAME_NORMALIZED="MRZ.DocumentType",k.DOCUMENT_TYPE_CODE_FIELD_NAME="DocumentTypeCode",k.DOCUMENT_TYPE_CODE_FIELD_NAME_NORMALIZED="MRZ.DocumentTypeCode",k.EXPIRY_DATE_FIELD_NAME="ExpiryDate",k.EXPIRY_DATE_FIELD_NAME_NORMALIZED="MRZ.ExpiryDate",k.GENDER_FIELD_NAME="Gender",k.GENDER_FIELD_NAME_NORMALIZED="MRZ.Gender",k.GIVEN_NAMES_FIELD_NAME="GivenNames",k.GIVEN_NAMES_FIELD_NAME_NORMALIZED="MRZ.GivenNames",k.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",k.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="MRZ.IssuingAuthority",k.LANGUAGE_CODE_FIELD_NAME="LanguageCode",k.LANGUAGE_CODE_FIELD_NAME_NORMALIZED="MRZ.LanguageCode",k.NATIONALITY_FIELD_NAME="Nationality",k.NATIONALITY_FIELD_NAME_NORMALIZED="MRZ.Nationality",k.OFFICE_OF_ISSUANCE_FIELD_NAME="OfficeOfIssuance",k.OFFICE_OF_ISSUANCE_FIELD_NAME_NORMALIZED="MRZ.OfficeOfIssuance",k.OPTIONAL_1_FIELD_NAME="Optional1",k.OPTIONAL_1_FIELD_NAME_NORMALIZED="MRZ.Optional1",k.OPTIONAL_2_FIELD_NAME="Optional2",k.OPTIONAL_2_FIELD_NAME_NORMALIZED="MRZ.Optional2",k.PIN_CODE_FIELD_NAME="PINCode",k.PIN_CODE_FIELD_NAME_NORMALIZED="MRZ.PINCode",k.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",k.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="MRZ.PersonalNumber",k.SURNAME_FIELD_NAME="Surname",k.SURNAME_FIELD_NAME_NORMALIZED="MRZ.Surname",k.TRAVEL_DOC_TYPE_FIELD_NAME="TravelDocType",k.TRAVEL_DOC_TYPE_FIELD_NAME_NORMALIZED="MRZ.TravelDocType",k.TRAVEL_DOC_TYPE_VARIANT_FIELD_NAME="TravelDocTypeVariant",k.TRAVEL_DOC_TYPE_VARIANT_FIELD_NAME_NORMALIZED="MRZ.TravelDocTypeVariant",k.UNKNOWN_FIELD_NAME="Unknown",k.UNKNOWN_FIELD_NAME_NORMALIZED="MRZ.Unknown",k.VERSION_NUMBER_FIELD_NAME="VersionNumber",k.VERSION_NUMBER_FIELD_NAME_NORMALIZED="MRZ.VersionNumber",k.VISA_OPTIONAL_FIELD_NAME="VisaOptional",k.VISA_OPTIONAL_FIELD_NAME_NORMALIZED="MRZ.VisaOptional";class V{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return V.DOCUMENT_TYPE}get district(){return this.document.fields.find((e=>"District"===e.type.name))}get districtAddition(){return this.document.fields.find((e=>"DistrictAddition"===e.type.name))}get houseNumber(){return this.document.fields.find((e=>"HouseNumber"===e.type.name))}get postalCode(){return this.document.fields.find((e=>"PostalCode"===e.type.name))}get streetName(){return this.document.fields.find((e=>"StreetName"===e.type.name))}}V.DOCUMENT_TYPE="ParsedDeAddress",V.DISTRICT_FIELD_NAME="District",V.DISTRICT_FIELD_NAME_NORMALIZED="ParsedDeAddress.District",V.DISTRICT_ADDITION_FIELD_NAME="DistrictAddition",V.DISTRICT_ADDITION_FIELD_NAME_NORMALIZED="ParsedDeAddress.DistrictAddition",V.HOUSE_NUMBER_FIELD_NAME="HouseNumber",V.HOUSE_NUMBER_FIELD_NAME_NORMALIZED="ParsedDeAddress.HouseNumber",V.POSTAL_CODE_FIELD_NAME="PostalCode",V.POSTAL_CODE_FIELD_NAME_NORMALIZED="ParsedDeAddress.PostalCode",V.STREET_NAME_FIELD_NAME="StreetName",V.STREET_NAME_FIELD_NAME_NORMALIZED="ParsedDeAddress.StreetName";class U{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return U.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get maidenName(){return this.document.fields.find((e=>"MaidenName"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get series(){return this.document.fields.find((e=>"Series"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}U.DOCUMENT_TYPE="DeIdCardFront",U.BIRTH_DATE_FIELD_NAME="BirthDate",U.BIRTH_DATE_FIELD_NAME_NORMALIZED="DeIdCardFront.BirthDate",U.BIRTHPLACE_FIELD_NAME="Birthplace",U.BIRTHPLACE_FIELD_NAME_NORMALIZED="DeIdCardFront.Birthplace",U.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",U.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="DeIdCardFront.CardAccessNumber",U.EXPIRY_DATE_FIELD_NAME="ExpiryDate",U.EXPIRY_DATE_FIELD_NAME_NORMALIZED="DeIdCardFront.ExpiryDate",U.GIVEN_NAMES_FIELD_NAME="GivenNames",U.GIVEN_NAMES_FIELD_NAME_NORMALIZED="DeIdCardFront.GivenNames",U.ID_FIELD_NAME="ID",U.ID_FIELD_NAME_NORMALIZED="DeIdCardFront.ID",U.MAIDEN_NAME_FIELD_NAME="MaidenName",U.MAIDEN_NAME_FIELD_NAME_NORMALIZED="DeIdCardFront.MaidenName",U.NATIONALITY_FIELD_NAME="Nationality",U.NATIONALITY_FIELD_NAME_NORMALIZED="DeIdCardFront.Nationality",U.PHOTO_FIELD_NAME="Photo",U.PHOTO_FIELD_NAME_NORMALIZED="DeIdCardFront.Photo",U.SERIES_FIELD_NAME="Series",U.SERIES_FIELD_NAME_NORMALIZED="DeIdCardFront.Series",U.SIGNATURE_FIELD_NAME="Signature",U.SIGNATURE_FIELD_NAME_NORMALIZED="DeIdCardFront.Signature",U.SURNAME_FIELD_NAME="Surname",U.SURNAME_FIELD_NAME_NORMALIZED="DeIdCardFront.Surname";class Z{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Z.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get eyeColor(){return this.document.fields.find((e=>"EyeColor"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get pseudonym(){return this.document.fields.find((e=>"Pseudonym"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get series(){return this.document.fields.find((e=>"Series"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get parsedDeAddress(){const e=this.document.children.find((e=>"ParsedDeAddress"===e.type.name));return new V(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}Z.DOCUMENT_TYPE="DeIdCardBack",Z.ADDRESS_FIELD_NAME="Address",Z.ADDRESS_FIELD_NAME_NORMALIZED="DeIdCardBack.Address",Z.EYE_COLOR_FIELD_NAME="EyeColor",Z.EYE_COLOR_FIELD_NAME_NORMALIZED="DeIdCardBack.EyeColor",Z.HEIGHT_FIELD_NAME="Height",Z.HEIGHT_FIELD_NAME_NORMALIZED="DeIdCardBack.Height",Z.ISSUE_DATE_FIELD_NAME="IssueDate",Z.ISSUE_DATE_FIELD_NAME_NORMALIZED="DeIdCardBack.IssueDate",Z.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",Z.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="DeIdCardBack.IssuingAuthority",Z.PSEUDONYM_FIELD_NAME="Pseudonym",Z.PSEUDONYM_FIELD_NAME_NORMALIZED="DeIdCardBack.Pseudonym",Z.RAW_MRZ_FIELD_NAME="RawMRZ",Z.RAW_MRZ_FIELD_NAME_NORMALIZED="DeIdCardBack.RawMRZ",Z.SERIES_FIELD_NAME="Series",Z.SERIES_FIELD_NAME_NORMALIZED="DeIdCardBack.Series";class W{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return W.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get countryCode(){return this.document.fields.find((e=>"CountryCode"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get maidenName(){return this.document.fields.find((e=>"MaidenName"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get passportType(){return this.document.fields.find((e=>"PassportType"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}W.DOCUMENT_TYPE="DePassport",W.BIRTH_DATE_FIELD_NAME="BirthDate",W.BIRTH_DATE_FIELD_NAME_NORMALIZED="DePassport.BirthDate",W.BIRTHPLACE_FIELD_NAME="Birthplace",W.BIRTHPLACE_FIELD_NAME_NORMALIZED="DePassport.Birthplace",W.COUNTRY_CODE_FIELD_NAME="CountryCode",W.COUNTRY_CODE_FIELD_NAME_NORMALIZED="DePassport.CountryCode",W.EXPIRY_DATE_FIELD_NAME="ExpiryDate",W.EXPIRY_DATE_FIELD_NAME_NORMALIZED="DePassport.ExpiryDate",W.GENDER_FIELD_NAME="Gender",W.GENDER_FIELD_NAME_NORMALIZED="DePassport.Gender",W.GIVEN_NAMES_FIELD_NAME="GivenNames",W.GIVEN_NAMES_FIELD_NAME_NORMALIZED="DePassport.GivenNames",W.ID_FIELD_NAME="ID",W.ID_FIELD_NAME_NORMALIZED="DePassport.ID",W.ISSUE_DATE_FIELD_NAME="IssueDate",W.ISSUE_DATE_FIELD_NAME_NORMALIZED="DePassport.IssueDate",W.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",W.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="DePassport.IssuingAuthority",W.MAIDEN_NAME_FIELD_NAME="MaidenName",W.MAIDEN_NAME_FIELD_NAME_NORMALIZED="DePassport.MaidenName",W.NATIONALITY_FIELD_NAME="Nationality",W.NATIONALITY_FIELD_NAME_NORMALIZED="DePassport.Nationality",W.PASSPORT_TYPE_FIELD_NAME="PassportType",W.PASSPORT_TYPE_FIELD_NAME_NORMALIZED="DePassport.PassportType",W.PHOTO_FIELD_NAME="Photo",W.PHOTO_FIELD_NAME_NORMALIZED="DePassport.Photo",W.RAW_MRZ_FIELD_NAME="RawMRZ",W.RAW_MRZ_FIELD_NAME_NORMALIZED="DePassport.RawMRZ",W.SIGNATURE_FIELD_NAME="Signature",W.SIGNATURE_FIELD_NAME_NORMALIZED="DePassport.Signature",W.SURNAME_FIELD_NAME="Surname",W.SURNAME_FIELD_NAME_NORMALIZED="DePassport.Surname";class H{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return H.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get administrativeNumber(){return this.document.fields.find((e=>"AdministrativeNumber"===e.type.name))}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get citizenship(){return this.document.fields.find((e=>"Citizenship"===e.type.name))}get country(){return this.document.fields.find((e=>"Country"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get licenseCategories(){return this.document.fields.find((e=>"LicenseCategories"===e.type.name))}get mrz(){return this.document.fields.find((e=>"MRZ"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get restrictions(){return this.document.fields.find((e=>"Restrictions"===e.type.name))}get serialNumber(){return this.document.fields.find((e=>"SerialNumber"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}H.DOCUMENT_TYPE="EuropeanDriverLicenseFront",H.ADDRESS_FIELD_NAME="Address",H.ADDRESS_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Address",H.ADMINISTRATIVE_NUMBER_FIELD_NAME="AdministrativeNumber",H.ADMINISTRATIVE_NUMBER_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.AdministrativeNumber",H.BARCODE_FIELD_NAME="Barcode",H.BARCODE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Barcode",H.BIRTH_DATE_FIELD_NAME="BirthDate",H.BIRTH_DATE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.BirthDate",H.BIRTHPLACE_FIELD_NAME="Birthplace",H.BIRTHPLACE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Birthplace",H.CITIZENSHIP_FIELD_NAME="Citizenship",H.CITIZENSHIP_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Citizenship",H.COUNTRY_FIELD_NAME="Country",H.COUNTRY_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Country",H.EXPIRY_DATE_FIELD_NAME="ExpiryDate",H.EXPIRY_DATE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.ExpiryDate",H.GENDER_FIELD_NAME="Gender",H.GENDER_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Gender",H.GIVEN_NAMES_FIELD_NAME="GivenNames",H.GIVEN_NAMES_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.GivenNames",H.ID_FIELD_NAME="ID",H.ID_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.ID",H.ISSUE_DATE_FIELD_NAME="IssueDate",H.ISSUE_DATE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.IssueDate",H.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",H.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.IssuingAuthority",H.LICENSE_CATEGORIES_FIELD_NAME="LicenseCategories",H.LICENSE_CATEGORIES_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.LicenseCategories",H.MRZ_FIELD_NAME="MRZ",H.MRZ_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.MRZ",H.PHOTO_FIELD_NAME="Photo",H.PHOTO_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Photo",H.RESTRICTIONS_FIELD_NAME="Restrictions",H.RESTRICTIONS_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Restrictions",H.SERIAL_NUMBER_FIELD_NAME="SerialNumber",H.SERIAL_NUMBER_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.SerialNumber",H.SIGNATURE_FIELD_NAME="Signature",H.SIGNATURE_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Signature",H.SURNAME_FIELD_NAME="Surname",H.SURNAME_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseFront.Surname";class G{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return G.DOCUMENT_TYPE}get country(){return this.document.fields.find((e=>"Country"===e.type.name))}get restrictions(){return this.document.fields.find((e=>"Restrictions"===e.type.name))}get categories(){const e=this.document.children.find((e=>"Categories"===e.type.name));return new G.Categories(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}G.DOCUMENT_TYPE="EuropeanDriverLicenseBack",G.COUNTRY_FIELD_NAME="Country",G.COUNTRY_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Country",G.RESTRICTIONS_FIELD_NAME="Restrictions",G.RESTRICTIONS_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Restrictions",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get restrictions(){return this.document.fields.find((e=>"Restrictions"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get validUntil(){return this.document.fields.find((e=>"ValidUntil"===e.type.name))}}t.RESTRICTIONS_FIELD_NAME="Restrictions",t.RESTRICTIONS_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Category.Restrictions",t.VALID_FROM_FIELD_NAME="ValidFrom",t.VALID_FROM_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Category.ValidFrom",t.VALID_UNTIL_FIELD_NAME="ValidUntil",t.VALID_UNTIL_FIELD_NAME_NORMALIZED="EuropeanDriverLicenseBack.Category.ValidUntil",e.Category=t;class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Categories.DOCUMENT_TYPE}get a(){const t=this.document.children.find((e=>"A"===e.type.name));return new e.Categories.A(t)}get a1(){const t=this.document.children.find((e=>"A1"===e.type.name));return new e.Categories.A1(t)}get a2(){const t=this.document.children.find((e=>"A2"===e.type.name));return new e.Categories.A2(t)}get am(){const t=this.document.children.find((e=>"AM"===e.type.name));return new e.Categories.AM(t)}get b(){const t=this.document.children.find((e=>"B"===e.type.name));return new e.Categories.B(t)}get b1(){const t=this.document.children.find((e=>"B1"===e.type.name));return t?new e.Categories.B1(t):void 0}get be(){const t=this.document.children.find((e=>"BE"===e.type.name));return new e.Categories.BE(t)}get c(){const t=this.document.children.find((e=>"C"===e.type.name));return new e.Categories.C(t)}get c1(){const t=this.document.children.find((e=>"C1"===e.type.name));return new e.Categories.C1(t)}get c1E(){const t=this.document.children.find((e=>"C1E"===e.type.name));return new e.Categories.C1E(t)}get ce(){const t=this.document.children.find((e=>"CE"===e.type.name));return new e.Categories.CE(t)}get d(){const t=this.document.children.find((e=>"D"===e.type.name));return new e.Categories.D(t)}get d1(){const t=this.document.children.find((e=>"D1"===e.type.name));return new e.Categories.D1(t)}get d1E(){const t=this.document.children.find((e=>"D1E"===e.type.name));return new e.Categories.D1E(t)}get de(){const t=this.document.children.find((e=>"DE"===e.type.name));return new e.Categories.DE(t)}get l(){const t=this.document.children.find((e=>"L"===e.type.name));return new e.Categories.L(t)}get t(){const t=this.document.children.find((e=>"T"===e.type.name));return new e.Categories.T(t)}}n.DOCUMENT_TYPE="Categories",e.Categories=n,function(n){class i extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.A.DOCUMENT_TYPE}}i.DOCUMENT_TYPE="A",n.A=i;class r extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.A1.DOCUMENT_TYPE}}r.DOCUMENT_TYPE="A1",n.A1=r;class o extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.A2.DOCUMENT_TYPE}}o.DOCUMENT_TYPE="A2",n.A2=o;class a extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.AM.DOCUMENT_TYPE}}a.DOCUMENT_TYPE="AM",n.AM=a;class s extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.B.DOCUMENT_TYPE}}s.DOCUMENT_TYPE="B",n.B=s;class c extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.B1.DOCUMENT_TYPE}}c.DOCUMENT_TYPE="B1",n.B1=c;class l extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.BE.DOCUMENT_TYPE}}l.DOCUMENT_TYPE="BE",n.BE=l;class u extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.C.DOCUMENT_TYPE}}u.DOCUMENT_TYPE="C",n.C=u;class d extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.C1.DOCUMENT_TYPE}}d.DOCUMENT_TYPE="C1",n.C1=d;class m extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.C1E.DOCUMENT_TYPE}}m.DOCUMENT_TYPE="C1E",n.C1E=m;class h extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.CE.DOCUMENT_TYPE}}h.DOCUMENT_TYPE="CE",n.CE=h;class p extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.D.DOCUMENT_TYPE}}p.DOCUMENT_TYPE="D",n.D=p;class E extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.D1.DOCUMENT_TYPE}}E.DOCUMENT_TYPE="D1",n.D1=E;class A extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.D1E.DOCUMENT_TYPE}}A.DOCUMENT_TYPE="D1E",n.D1E=A;class g extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.DE.DOCUMENT_TYPE}}g.DOCUMENT_TYPE="DE",n.DE=g;class f extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.L.DOCUMENT_TYPE}}f.DOCUMENT_TYPE="L",n.L=f;class C extends t{constructor(e){super(e)}requiredDocumentType(){return e.Categories.T.DOCUMENT_TYPE}}C.DOCUMENT_TYPE="T",n.T=C}(n=e.Categories||(e.Categories={}))}(G||(G={}));class z{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return z.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get remarks(){return this.document.fields.find((e=>"Remarks"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get titleType(){return this.document.fields.find((e=>"TitleType"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}z.DOCUMENT_TYPE="DeResidencePermitFront",z.BIRTH_DATE_FIELD_NAME="BirthDate",z.BIRTH_DATE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.BirthDate",z.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",z.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="DeResidencePermitFront.CardAccessNumber",z.EXPIRY_DATE_FIELD_NAME="ExpiryDate",z.EXPIRY_DATE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.ExpiryDate",z.GENDER_FIELD_NAME="Gender",z.GENDER_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Gender",z.GIVEN_NAMES_FIELD_NAME="GivenNames",z.GIVEN_NAMES_FIELD_NAME_NORMALIZED="DeResidencePermitFront.GivenNames",z.ID_FIELD_NAME="ID",z.ID_FIELD_NAME_NORMALIZED="DeResidencePermitFront.ID",z.NATIONALITY_FIELD_NAME="Nationality",z.NATIONALITY_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Nationality",z.PHOTO_FIELD_NAME="Photo",z.PHOTO_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Photo",z.PLACE_OF_ISSUE_FIELD_NAME="PlaceOfIssue",z.PLACE_OF_ISSUE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.PlaceOfIssue",z.REMARKS_FIELD_NAME="Remarks",z.REMARKS_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Remarks",z.SIGNATURE_FIELD_NAME="Signature",z.SIGNATURE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Signature",z.SURNAME_FIELD_NAME="Surname",z.SURNAME_FIELD_NAME_NORMALIZED="DeResidencePermitFront.Surname",z.TITLE_TYPE_FIELD_NAME="TitleType",z.TITLE_TYPE_FIELD_NAME_NORMALIZED="DeResidencePermitFront.TitleType",z.VALID_FROM_FIELD_NAME="ValidFrom",z.VALID_FROM_FIELD_NAME_NORMALIZED="DeResidencePermitFront.ValidFrom";class Y{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Y.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get eyeColor(){return this.document.fields.find((e=>"EyeColor"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get remarks(){return this.document.fields.find((e=>"Remarks"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get parsedDeAddress(){const e=this.document.children.find((e=>"ParsedDeAddress"===e.type.name));return new V(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}Y.DOCUMENT_TYPE="DeResidencePermitBack",Y.ADDRESS_FIELD_NAME="Address",Y.ADDRESS_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Address",Y.BIRTH_DATE_FIELD_NAME="BirthDate",Y.BIRTH_DATE_FIELD_NAME_NORMALIZED="DeResidencePermitBack.BirthDate",Y.BIRTHPLACE_FIELD_NAME="Birthplace",Y.BIRTHPLACE_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Birthplace",Y.EYE_COLOR_FIELD_NAME="EyeColor",Y.EYE_COLOR_FIELD_NAME_NORMALIZED="DeResidencePermitBack.EyeColor",Y.GENDER_FIELD_NAME="Gender",Y.GENDER_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Gender",Y.HEIGHT_FIELD_NAME="Height",Y.HEIGHT_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Height",Y.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",Y.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="DeResidencePermitBack.IssuingAuthority",Y.NATIONALITY_FIELD_NAME="Nationality",Y.NATIONALITY_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Nationality",Y.RAW_MRZ_FIELD_NAME="RawMRZ",Y.RAW_MRZ_FIELD_NAME_NORMALIZED="DeResidencePermitBack.RawMRZ",Y.REMARKS_FIELD_NAME="Remarks",Y.REMARKS_FIELD_NAME_NORMALIZED="DeResidencePermitBack.Remarks";class q{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return q.DOCUMENT_TYPE}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardNumber(){return this.document.fields.find((e=>"CardNumber"===e.type.name))}get countryCode(){return this.document.fields.find((e=>"CountryCode"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get issuerName(){return this.document.fields.find((e=>"IssuerName"===e.type.name))}get issuerNumber(){return this.document.fields.find((e=>"IssuerNumber"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}q.DOCUMENT_TYPE="EuropeanHealthInsuranceCard",q.BARCODE_FIELD_NAME="Barcode",q.BARCODE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.Barcode",q.BIRTH_DATE_FIELD_NAME="BirthDate",q.BIRTH_DATE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.BirthDate",q.CARD_NUMBER_FIELD_NAME="CardNumber",q.CARD_NUMBER_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.CardNumber",q.COUNTRY_CODE_FIELD_NAME="CountryCode",q.COUNTRY_CODE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.CountryCode",q.EXPIRY_DATE_FIELD_NAME="ExpiryDate",q.EXPIRY_DATE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.ExpiryDate",q.GIVEN_NAMES_FIELD_NAME="GivenNames",q.GIVEN_NAMES_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.GivenNames",q.ISSUER_NAME_FIELD_NAME="IssuerName",q.ISSUER_NAME_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.IssuerName",q.ISSUER_NUMBER_FIELD_NAME="IssuerNumber",q.ISSUER_NUMBER_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.IssuerNumber",q.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",q.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.PersonalNumber",q.SIGNATURE_FIELD_NAME="Signature",q.SIGNATURE_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.Signature",q.SURNAME_FIELD_NAME="Surname",q.SURNAME_FIELD_NAME_NORMALIZED="EuropeanHealthInsuranceCard.Surname";class X{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return X.DOCUMENT_TYPE}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get issuerName(){return this.document.fields.find((e=>"IssuerName"===e.type.name))}get issuerNumber(){return this.document.fields.find((e=>"IssuerNumber"===e.type.name))}get name(){return this.document.fields.find((e=>"Name"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}X.DOCUMENT_TYPE="DeHealthInsuranceCardFront",X.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",X.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.CardAccessNumber",X.ISSUER_NAME_FIELD_NAME="IssuerName",X.ISSUER_NAME_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.IssuerName",X.ISSUER_NUMBER_FIELD_NAME="IssuerNumber",X.ISSUER_NUMBER_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.IssuerNumber",X.NAME_FIELD_NAME="Name",X.NAME_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.Name",X.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",X.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="DeHealthInsuranceCardFront.PersonalNumber";class j{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return j.DOCUMENT_TYPE}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get bloodType(){return this.document.fields.find((e=>"BloodType"===e.type.name))}get civilRegistryDetails(){return this.document.fields.find((e=>"CivilRegistryDetails"===e.type.name))}get driverLicenseNumber(){return this.document.fields.find((e=>"DriverLicenseNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get fingerprint(){return this.document.fields.find((e=>"Fingerprint"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get healthCardNumber(){return this.document.fields.find((e=>"HealthCardNumber"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get issuingAuthoritySignature(){return this.document.fields.find((e=>"IssuingAuthoritySignature"===e.type.name))}get militaryCertificateNumber(){return this.document.fields.find((e=>"MilitaryCertificateNumber"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get observations(){return this.document.fields.find((e=>"Observations"===e.type.name))}get parents(){return this.document.fields.find((e=>"Parents"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get professionalIdentityNumber(){return this.document.fields.find((e=>"ProfessionalIdentityNumber"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get socialSecurityNumber(){return this.document.fields.find((e=>"SocialSecurityNumber"===e.type.name))}get stateCode(){return this.document.fields.find((e=>"StateCode"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get taxpayerNumber(){return this.document.fields.find((e=>"TaxpayerNumber"===e.type.name))}get voterRegistrationNumber(){return this.document.fields.find((e=>"VoterRegistrationNumber"===e.type.name))}get workCardNumber(){return this.document.fields.find((e=>"WorkCardNumber"===e.type.name))}get workCardSeries(){return this.document.fields.find((e=>"WorkCardSeries"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}j.DOCUMENT_TYPE="BrIdCardFront",j.BARCODE_FIELD_NAME="Barcode",j.BARCODE_FIELD_NAME_NORMALIZED="BrIdCardFront.Barcode",j.BIRTH_DATE_FIELD_NAME="BirthDate",j.BIRTH_DATE_FIELD_NAME_NORMALIZED="BrIdCardFront.BirthDate",j.BIRTHPLACE_FIELD_NAME="Birthplace",j.BIRTHPLACE_FIELD_NAME_NORMALIZED="BrIdCardFront.Birthplace",j.BLOOD_TYPE_FIELD_NAME="BloodType",j.BLOOD_TYPE_FIELD_NAME_NORMALIZED="BrIdCardFront.BloodType",j.CIVIL_REGISTRY_DETAILS_FIELD_NAME="CivilRegistryDetails",j.CIVIL_REGISTRY_DETAILS_FIELD_NAME_NORMALIZED="BrIdCardFront.CivilRegistryDetails",j.DRIVER_LICENSE_NUMBER_FIELD_NAME="DriverLicenseNumber",j.DRIVER_LICENSE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.DriverLicenseNumber",j.EXPIRY_DATE_FIELD_NAME="ExpiryDate",j.EXPIRY_DATE_FIELD_NAME_NORMALIZED="BrIdCardFront.ExpiryDate",j.FINGERPRINT_FIELD_NAME="Fingerprint",j.FINGERPRINT_FIELD_NAME_NORMALIZED="BrIdCardFront.Fingerprint",j.GENDER_FIELD_NAME="Gender",j.GENDER_FIELD_NAME_NORMALIZED="BrIdCardFront.Gender",j.GIVEN_NAMES_FIELD_NAME="GivenNames",j.GIVEN_NAMES_FIELD_NAME_NORMALIZED="BrIdCardFront.GivenNames",j.HEALTH_CARD_NUMBER_FIELD_NAME="HealthCardNumber",j.HEALTH_CARD_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.HealthCardNumber",j.ID_FIELD_NAME="ID",j.ID_FIELD_NAME_NORMALIZED="BrIdCardFront.ID",j.ISSUE_DATE_FIELD_NAME="IssueDate",j.ISSUE_DATE_FIELD_NAME_NORMALIZED="BrIdCardFront.IssueDate",j.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",j.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="BrIdCardFront.IssuingAuthority",j.ISSUING_AUTHORITY_SIGNATURE_FIELD_NAME="IssuingAuthoritySignature",j.ISSUING_AUTHORITY_SIGNATURE_FIELD_NAME_NORMALIZED="BrIdCardFront.IssuingAuthoritySignature",j.MILITARY_CERTIFICATE_NUMBER_FIELD_NAME="MilitaryCertificateNumber",j.MILITARY_CERTIFICATE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.MilitaryCertificateNumber",j.NATIONALITY_FIELD_NAME="Nationality",j.NATIONALITY_FIELD_NAME_NORMALIZED="BrIdCardFront.Nationality",j.OBSERVATIONS_FIELD_NAME="Observations",j.OBSERVATIONS_FIELD_NAME_NORMALIZED="BrIdCardFront.Observations",j.PARENTS_FIELD_NAME="Parents",j.PARENTS_FIELD_NAME_NORMALIZED="BrIdCardFront.Parents",j.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",j.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.PersonalNumber",j.PHOTO_FIELD_NAME="Photo",j.PHOTO_FIELD_NAME_NORMALIZED="BrIdCardFront.Photo",j.PLACE_OF_ISSUE_FIELD_NAME="PlaceOfIssue",j.PLACE_OF_ISSUE_FIELD_NAME_NORMALIZED="BrIdCardFront.PlaceOfIssue",j.PROFESSIONAL_IDENTITY_NUMBER_FIELD_NAME="ProfessionalIdentityNumber",j.PROFESSIONAL_IDENTITY_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.ProfessionalIdentityNumber",j.SIGNATURE_FIELD_NAME="Signature",j.SIGNATURE_FIELD_NAME_NORMALIZED="BrIdCardFront.Signature",j.SOCIAL_SECURITY_NUMBER_FIELD_NAME="SocialSecurityNumber",j.SOCIAL_SECURITY_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.SocialSecurityNumber",j.STATE_CODE_FIELD_NAME="StateCode",j.STATE_CODE_FIELD_NAME_NORMALIZED="BrIdCardFront.StateCode",j.SURNAME_FIELD_NAME="Surname",j.SURNAME_FIELD_NAME_NORMALIZED="BrIdCardFront.Surname",j.TAXPAYER_NUMBER_FIELD_NAME="TaxpayerNumber",j.TAXPAYER_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.TaxpayerNumber",j.VOTER_REGISTRATION_NUMBER_FIELD_NAME="VoterRegistrationNumber",j.VOTER_REGISTRATION_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.VoterRegistrationNumber",j.WORK_CARD_NUMBER_FIELD_NAME="WorkCardNumber",j.WORK_CARD_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardFront.WorkCardNumber",j.WORK_CARD_SERIES_FIELD_NAME="WorkCardSeries",j.WORK_CARD_SERIES_FIELD_NAME_NORMALIZED="BrIdCardFront.WorkCardSeries";class Q{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Q.DOCUMENT_TYPE}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get civilRegistryDetails(){return this.document.fields.find((e=>"CivilRegistryDetails"===e.type.name))}get driverLicenseNumber(){return this.document.fields.find((e=>"DriverLicenseNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get fingerprint(){return this.document.fields.find((e=>"Fingerprint"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get healthCardNumber(){return this.document.fields.find((e=>"HealthCardNumber"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get militaryCertificateNumber(){return this.document.fields.find((e=>"MilitaryCertificateNumber"===e.type.name))}get pageNumber(){return this.document.fields.find((e=>"PageNumber"===e.type.name))}get parents(){return this.document.fields.find((e=>"Parents"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get placeOfOrigin(){return this.document.fields.find((e=>"PlaceOfOrigin"===e.type.name))}get professionalIdentityNumber(){return this.document.fields.find((e=>"ProfessionalIdentityNumber"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get socialSecurityNumber(){return this.document.fields.find((e=>"SocialSecurityNumber"===e.type.name))}get stateCode(){return this.document.fields.find((e=>"StateCode"===e.type.name))}get taxpayerNumber(){return this.document.fields.find((e=>"TaxpayerNumber"===e.type.name))}get voterRegistrationNumber(){return this.document.fields.find((e=>"VoterRegistrationNumber"===e.type.name))}get workCardNumber(){return this.document.fields.find((e=>"WorkCardNumber"===e.type.name))}get workCardSeries(){return this.document.fields.find((e=>"WorkCardSeries"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}Q.DOCUMENT_TYPE="BrIdCardBack",Q.BARCODE_FIELD_NAME="Barcode",Q.BARCODE_FIELD_NAME_NORMALIZED="BrIdCardBack.Barcode",Q.BIRTH_DATE_FIELD_NAME="BirthDate",Q.BIRTH_DATE_FIELD_NAME_NORMALIZED="BrIdCardBack.BirthDate",Q.BIRTHPLACE_FIELD_NAME="Birthplace",Q.BIRTHPLACE_FIELD_NAME_NORMALIZED="BrIdCardBack.Birthplace",Q.CIVIL_REGISTRY_DETAILS_FIELD_NAME="CivilRegistryDetails",Q.CIVIL_REGISTRY_DETAILS_FIELD_NAME_NORMALIZED="BrIdCardBack.CivilRegistryDetails",Q.DRIVER_LICENSE_NUMBER_FIELD_NAME="DriverLicenseNumber",Q.DRIVER_LICENSE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.DriverLicenseNumber",Q.EXPIRY_DATE_FIELD_NAME="ExpiryDate",Q.EXPIRY_DATE_FIELD_NAME_NORMALIZED="BrIdCardBack.ExpiryDate",Q.FINGERPRINT_FIELD_NAME="Fingerprint",Q.FINGERPRINT_FIELD_NAME_NORMALIZED="BrIdCardBack.Fingerprint",Q.GIVEN_NAMES_FIELD_NAME="GivenNames",Q.GIVEN_NAMES_FIELD_NAME_NORMALIZED="BrIdCardBack.GivenNames",Q.HEALTH_CARD_NUMBER_FIELD_NAME="HealthCardNumber",Q.HEALTH_CARD_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.HealthCardNumber",Q.ID_FIELD_NAME="ID",Q.ID_FIELD_NAME_NORMALIZED="BrIdCardBack.ID",Q.ISSUE_DATE_FIELD_NAME="IssueDate",Q.ISSUE_DATE_FIELD_NAME_NORMALIZED="BrIdCardBack.IssueDate",Q.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",Q.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="BrIdCardBack.IssuingAuthority",Q.MILITARY_CERTIFICATE_NUMBER_FIELD_NAME="MilitaryCertificateNumber",Q.MILITARY_CERTIFICATE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.MilitaryCertificateNumber",Q.PAGE_NUMBER_FIELD_NAME="PageNumber",Q.PAGE_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.PageNumber",Q.PARENTS_FIELD_NAME="Parents",Q.PARENTS_FIELD_NAME_NORMALIZED="BrIdCardBack.Parents",Q.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",Q.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.PersonalNumber",Q.PHOTO_FIELD_NAME="Photo",Q.PHOTO_FIELD_NAME_NORMALIZED="BrIdCardBack.Photo",Q.PLACE_OF_ISSUE_FIELD_NAME="PlaceOfIssue",Q.PLACE_OF_ISSUE_FIELD_NAME_NORMALIZED="BrIdCardBack.PlaceOfIssue",Q.PLACE_OF_ORIGIN_FIELD_NAME="PlaceOfOrigin",Q.PLACE_OF_ORIGIN_FIELD_NAME_NORMALIZED="BrIdCardBack.PlaceOfOrigin",Q.PROFESSIONAL_IDENTITY_NUMBER_FIELD_NAME="ProfessionalIdentityNumber",Q.PROFESSIONAL_IDENTITY_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.ProfessionalIdentityNumber",Q.RAW_MRZ_FIELD_NAME="RawMRZ",Q.RAW_MRZ_FIELD_NAME_NORMALIZED="BrIdCardBack.RawMRZ",Q.SIGNATURE_FIELD_NAME="Signature",Q.SIGNATURE_FIELD_NAME_NORMALIZED="BrIdCardBack.Signature",Q.SOCIAL_SECURITY_NUMBER_FIELD_NAME="SocialSecurityNumber",Q.SOCIAL_SECURITY_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.SocialSecurityNumber",Q.STATE_CODE_FIELD_NAME="StateCode",Q.STATE_CODE_FIELD_NAME_NORMALIZED="BrIdCardBack.StateCode",Q.TAXPAYER_NUMBER_FIELD_NAME="TaxpayerNumber",Q.TAXPAYER_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.TaxpayerNumber",Q.VOTER_REGISTRATION_NUMBER_FIELD_NAME="VoterRegistrationNumber",Q.VOTER_REGISTRATION_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.VoterRegistrationNumber",Q.WORK_CARD_NUMBER_FIELD_NAME="WorkCardNumber",Q.WORK_CARD_NUMBER_FIELD_NAME_NORMALIZED="BrIdCardBack.WorkCardNumber",Q.WORK_CARD_SERIES_FIELD_NAME="WorkCardSeries",Q.WORK_CARD_SERIES_FIELD_NAME_NORMALIZED="BrIdCardBack.WorkCardSeries";class J{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return J.DOCUMENT_TYPE}get fingerprint(){return this.document.fields.find((e=>"Fingerprint"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}J.DOCUMENT_TYPE="BrIdCardFrontPhotoOnly",J.FINGERPRINT_FIELD_NAME="Fingerprint",J.FINGERPRINT_FIELD_NAME_NORMALIZED="BrIdCardFrontPhotoOnly.Fingerprint",J.PHOTO_FIELD_NAME="Photo",J.PHOTO_FIELD_NAME_NORMALIZED="BrIdCardFrontPhotoOnly.Photo";class K{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return K.DOCUMENT_TYPE}get barcodeBottom(){return this.document.fields.find((e=>"BarcodeBottom"===e.type.name))}get barcodeTop(){return this.document.fields.find((e=>"BarcodeTop"===e.type.name))}get hongKongValidFrom(){return this.document.fields.find((e=>"HongKongValidFrom"===e.type.name))}get hongKongValidUntil(){return this.document.fields.find((e=>"HongKongValidUntil"===e.type.name))}get macaoValidFrom(){return this.document.fields.find((e=>"MacaoValidFrom"===e.type.name))}get macaoValidUntil(){return this.document.fields.find((e=>"MacaoValidUntil"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get taiwanIDNumber(){return this.document.fields.find((e=>"TaiwanIDNumber"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}K.DOCUMENT_TYPE="CnEntryAndExitPermitBack",K.BARCODE_BOTTOM_FIELD_NAME="BarcodeBottom",K.BARCODE_BOTTOM_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.BarcodeBottom",K.BARCODE_TOP_FIELD_NAME="BarcodeTop",K.BARCODE_TOP_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.BarcodeTop",K.HONG_KONG_VALID_FROM_FIELD_NAME="HongKongValidFrom",K.HONG_KONG_VALID_FROM_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.HongKongValidFrom",K.HONG_KONG_VALID_UNTIL_FIELD_NAME="HongKongValidUntil",K.HONG_KONG_VALID_UNTIL_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.HongKongValidUntil",K.MACAO_VALID_FROM_FIELD_NAME="MacaoValidFrom",K.MACAO_VALID_FROM_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.MacaoValidFrom",K.MACAO_VALID_UNTIL_FIELD_NAME="MacaoValidUntil",K.MACAO_VALID_UNTIL_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.MacaoValidUntil",K.RAW_MRZ_FIELD_NAME="RawMRZ",K.RAW_MRZ_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.RawMRZ",K.TAIWAN_ID_NUMBER_FIELD_NAME="TaiwanIDNumber",K.TAIWAN_ID_NUMBER_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitBack.TaiwanIDNumber";class ${get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return $.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get business(){return this.document.fields.find((e=>"Business"===e.type.name))}get destinations(){return this.document.fields.find((e=>"Destinations"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get mrzLine(){return this.document.fields.find((e=>"MRZLine"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get portsOfExitAndEntry(){return this.document.fields.find((e=>"PortsOfExitAndEntry"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get timesOfExitAndEntry(){return this.document.fields.find((e=>"TimesOfExitAndEntry"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get validUntil(){return this.document.fields.find((e=>"ValidUntil"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}$.DOCUMENT_TYPE="CnEntryAndExitPermitFront",$.BIRTH_DATE_FIELD_NAME="BirthDate",$.BIRTH_DATE_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.BirthDate",$.BUSINESS_FIELD_NAME="Business",$.BUSINESS_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.Business",$.DESTINATIONS_FIELD_NAME="Destinations",$.DESTINATIONS_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.Destinations",$.GENDER_FIELD_NAME="Gender",$.GENDER_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.Gender",$.GIVEN_NAMES_FIELD_NAME="GivenNames",$.GIVEN_NAMES_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.GivenNames",$.ID_FIELD_NAME="ID",$.ID_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.ID",$.ISSUE_DATE_FIELD_NAME="IssueDate",$.ISSUE_DATE_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.IssueDate",$.MRZ_LINE_FIELD_NAME="MRZLine",$.MRZ_LINE_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.MRZLine",$.PHOTO_FIELD_NAME="Photo",$.PHOTO_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.Photo",$.PLACE_OF_ISSUE_FIELD_NAME="PlaceOfIssue",$.PLACE_OF_ISSUE_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.PlaceOfIssue",$.PORTS_OF_EXIT_AND_ENTRY_FIELD_NAME="PortsOfExitAndEntry",$.PORTS_OF_EXIT_AND_ENTRY_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.PortsOfExitAndEntry",$.RAW_MRZ_FIELD_NAME="RawMRZ",$.RAW_MRZ_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.RawMRZ",$.TIMES_OF_EXIT_AND_ENTRY_FIELD_NAME="TimesOfExitAndEntry",$.TIMES_OF_EXIT_AND_ENTRY_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.TimesOfExitAndEntry",$.VALID_FROM_FIELD_NAME="ValidFrom",$.VALID_FROM_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.ValidFrom",$.VALID_UNTIL_FIELD_NAME="ValidUntil",$.VALID_UNTIL_FIELD_NAME_NORMALIZED="CnEntryAndExitPermitFront.ValidUntil";class ee{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ee.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get validUntil(){return this.document.fields.find((e=>"ValidUntil"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}ee.DOCUMENT_TYPE="CnPermanentResidentCardFront",ee.BIRTH_DATE_FIELD_NAME="BirthDate",ee.BIRTH_DATE_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.BirthDate",ee.GENDER_FIELD_NAME="Gender",ee.GENDER_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.Gender",ee.GIVEN_NAMES_FIELD_NAME="GivenNames",ee.GIVEN_NAMES_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.GivenNames",ee.ID_FIELD_NAME="ID",ee.ID_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.ID",ee.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",ee.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.IssuingAuthority",ee.NATIONALITY_FIELD_NAME="Nationality",ee.NATIONALITY_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.Nationality",ee.PHOTO_FIELD_NAME="Photo",ee.PHOTO_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.Photo",ee.VALID_FROM_FIELD_NAME="ValidFrom",ee.VALID_FROM_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.ValidFrom",ee.VALID_UNTIL_FIELD_NAME="ValidUntil",ee.VALID_UNTIL_FIELD_NAME_NORMALIZED="CnPermanentResidentCardFront.ValidUntil";class te{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return te.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get givenNamesInChineseCode(){return this.document.fields.find((e=>"GivenNamesInChineseCode"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get idSymbols(){return this.document.fields.find((e=>"IDSymbols"===e.type.name))}get initialRegistrationDate(){return this.document.fields.find((e=>"InitialRegistrationDate"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}te.DOCUMENT_TYPE="HkIdentityCardFront",te.BIRTH_DATE_FIELD_NAME="BirthDate",te.BIRTH_DATE_FIELD_NAME_NORMALIZED="HkIdentityCardFront.BirthDate",te.GENDER_FIELD_NAME="Gender",te.GENDER_FIELD_NAME_NORMALIZED="HkIdentityCardFront.Gender",te.GIVEN_NAMES_FIELD_NAME="GivenNames",te.GIVEN_NAMES_FIELD_NAME_NORMALIZED="HkIdentityCardFront.GivenNames",te.GIVEN_NAMES_IN_CHINESE_CODE_FIELD_NAME="GivenNamesInChineseCode",te.GIVEN_NAMES_IN_CHINESE_CODE_FIELD_NAME_NORMALIZED="HkIdentityCardFront.GivenNamesInChineseCode",te.ID_FIELD_NAME="ID",te.ID_FIELD_NAME_NORMALIZED="HkIdentityCardFront.ID",te.ID_SYMBOLS_FIELD_NAME="IDSymbols",te.ID_SYMBOLS_FIELD_NAME_NORMALIZED="HkIdentityCardFront.IDSymbols",te.INITIAL_REGISTRATION_DATE_FIELD_NAME="InitialRegistrationDate",te.INITIAL_REGISTRATION_DATE_FIELD_NAME_NORMALIZED="HkIdentityCardFront.InitialRegistrationDate",te.ISSUE_DATE_FIELD_NAME="IssueDate",te.ISSUE_DATE_FIELD_NAME_NORMALIZED="HkIdentityCardFront.IssueDate",te.PHOTO_FIELD_NAME="Photo",te.PHOTO_FIELD_NAME_NORMALIZED="HkIdentityCardFront.Photo";class ne{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ne.DOCUMENT_TYPE}get barcodeLeft(){return this.document.fields.find((e=>"BarcodeLeft"===e.type.name))}get barcodeRight(){return this.document.fields.find((e=>"BarcodeRight"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get countryCode(){return this.document.fields.find((e=>"CountryCode"===e.type.name))}get countryOfResidency(){return this.document.fields.find((e=>"CountryOfResidency"===e.type.name))}get documentType(){return this.document.fields.find((e=>"DocumentType"===e.type.name))}get entryInspection(){return this.document.fields.find((e=>"EntryInspection"===e.type.name))}get exitInspection(){return this.document.fields.find((e=>"ExitInspection"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get passportNumber(){return this.document.fields.find((e=>"PassportNumber"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get remarks(){return this.document.fields.find((e=>"Remarks"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}ne.DOCUMENT_TYPE="TwEntryAndExitPermit",ne.BARCODE_LEFT_FIELD_NAME="BarcodeLeft",ne.BARCODE_LEFT_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.BarcodeLeft",ne.BARCODE_RIGHT_FIELD_NAME="BarcodeRight",ne.BARCODE_RIGHT_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.BarcodeRight",ne.BIRTH_DATE_FIELD_NAME="BirthDate",ne.BIRTH_DATE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.BirthDate",ne.COUNTRY_CODE_FIELD_NAME="CountryCode",ne.COUNTRY_CODE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.CountryCode",ne.COUNTRY_OF_RESIDENCY_FIELD_NAME="CountryOfResidency",ne.COUNTRY_OF_RESIDENCY_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.CountryOfResidency",ne.DOCUMENT_TYPE_FIELD_NAME="DocumentType",ne.DOCUMENT_TYPE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.DocumentType",ne.ENTRY_INSPECTION_FIELD_NAME="EntryInspection",ne.ENTRY_INSPECTION_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.EntryInspection",ne.EXIT_INSPECTION_FIELD_NAME="ExitInspection",ne.EXIT_INSPECTION_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.ExitInspection",ne.EXPIRY_DATE_FIELD_NAME="ExpiryDate",ne.EXPIRY_DATE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.ExpiryDate",ne.GENDER_FIELD_NAME="Gender",ne.GENDER_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.Gender",ne.GIVEN_NAMES_FIELD_NAME="GivenNames",ne.GIVEN_NAMES_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.GivenNames",ne.ID_FIELD_NAME="ID",ne.ID_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.ID",ne.ISSUE_DATE_FIELD_NAME="IssueDate",ne.ISSUE_DATE_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.IssueDate",ne.PASSPORT_NUMBER_FIELD_NAME="PassportNumber",ne.PASSPORT_NUMBER_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.PassportNumber",ne.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",ne.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.PersonalNumber",ne.PHOTO_FIELD_NAME="Photo",ne.PHOTO_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.Photo",ne.RAW_MRZ_FIELD_NAME="RawMRZ",ne.RAW_MRZ_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.RawMRZ",ne.REMARKS_FIELD_NAME="Remarks",ne.REMARKS_FIELD_NAME_NORMALIZED="TwEntryAndExitPermit.Remarks";class ie{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ie.DOCUMENT_TYPE}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get validationPhoto(){return this.document.fields.find((e=>"ValidationPhoto"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}ie.DOCUMENT_TYPE="MoIdentityCardBack",ie.RAW_MRZ_FIELD_NAME="RawMRZ",ie.RAW_MRZ_FIELD_NAME_NORMALIZED="MoIdentityCardBack.RawMRZ",ie.VALIDATION_PHOTO_FIELD_NAME="ValidationPhoto",ie.VALIDATION_PHOTO_FIELD_NAME_NORMALIZED="MoIdentityCardBack.ValidationPhoto";class re{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return re.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get validFrom(){return this.document.fields.find((e=>"ValidFrom"===e.type.name))}get validUntil(){return this.document.fields.find((e=>"ValidUntil"===e.type.name))}get validationPhoto(){return this.document.fields.find((e=>"ValidationPhoto"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}re.DOCUMENT_TYPE="MoIdentityCardFront",re.BIRTH_DATE_FIELD_NAME="BirthDate",re.BIRTH_DATE_FIELD_NAME_NORMALIZED="MoIdentityCardFront.BirthDate",re.GENDER_FIELD_NAME="Gender",re.GENDER_FIELD_NAME_NORMALIZED="MoIdentityCardFront.Gender",re.GIVEN_NAMES_FIELD_NAME="GivenNames",re.GIVEN_NAMES_FIELD_NAME_NORMALIZED="MoIdentityCardFront.GivenNames",re.ID_FIELD_NAME="ID",re.ID_FIELD_NAME_NORMALIZED="MoIdentityCardFront.ID",re.PHOTO_FIELD_NAME="Photo",re.PHOTO_FIELD_NAME_NORMALIZED="MoIdentityCardFront.Photo",re.SIGNATURE_FIELD_NAME="Signature",re.SIGNATURE_FIELD_NAME_NORMALIZED="MoIdentityCardFront.Signature",re.SURNAME_FIELD_NAME="Surname",re.SURNAME_FIELD_NAME_NORMALIZED="MoIdentityCardFront.Surname",re.VALID_FROM_FIELD_NAME="ValidFrom",re.VALID_FROM_FIELD_NAME_NORMALIZED="MoIdentityCardFront.ValidFrom",re.VALID_UNTIL_FIELD_NAME="ValidUntil",re.VALID_UNTIL_FIELD_NAME_NORMALIZED="MoIdentityCardFront.ValidUntil",re.VALIDATION_PHOTO_FIELD_NAME="ValidationPhoto",re.VALIDATION_PHOTO_FIELD_NAME_NORMALIZED="MoIdentityCardFront.ValidationPhoto";class oe{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return oe.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get validFromDate(){return this.document.fields.find((e=>"ValidFromDate"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}oe.DOCUMENT_TYPE="RoIdCardTD3",oe.ADDRESS_FIELD_NAME="Address",oe.ADDRESS_FIELD_NAME_NORMALIZED="RoIdCardTD3.Address",oe.BIRTHPLACE_FIELD_NAME="Birthplace",oe.BIRTHPLACE_FIELD_NAME_NORMALIZED="RoIdCardTD3.Birthplace",oe.EXPIRY_DATE_FIELD_NAME="ExpiryDate",oe.EXPIRY_DATE_FIELD_NAME_NORMALIZED="RoIdCardTD3.ExpiryDate",oe.GENDER_FIELD_NAME="Gender",oe.GENDER_FIELD_NAME_NORMALIZED="RoIdCardTD3.Gender",oe.GIVEN_NAMES_FIELD_NAME="GivenNames",oe.GIVEN_NAMES_FIELD_NAME_NORMALIZED="RoIdCardTD3.GivenNames",oe.ID_FIELD_NAME="ID",oe.ID_FIELD_NAME_NORMALIZED="RoIdCardTD3.ID",oe.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",oe.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="RoIdCardTD3.IssuingAuthority",oe.NATIONALITY_FIELD_NAME="Nationality",oe.NATIONALITY_FIELD_NAME_NORMALIZED="RoIdCardTD3.Nationality",oe.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",oe.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="RoIdCardTD3.PersonalNumber",oe.PHOTO_FIELD_NAME="Photo",oe.PHOTO_FIELD_NAME_NORMALIZED="RoIdCardTD3.Photo",oe.RAW_MRZ_FIELD_NAME="RawMRZ",oe.RAW_MRZ_FIELD_NAME_NORMALIZED="RoIdCardTD3.RawMRZ",oe.SURNAME_FIELD_NAME="Surname",oe.SURNAME_FIELD_NAME_NORMALIZED="RoIdCardTD3.Surname",oe.VALID_FROM_DATE_FIELD_NAME="ValidFromDate",oe.VALID_FROM_DATE_FIELD_NAME_NORMALIZED="RoIdCardTD3.ValidFromDate";class ae{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ae.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get placeOfIssue(){return this.document.fields.find((e=>"PlaceOfIssue"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}ae.DOCUMENT_TYPE="ItIdCardFront",ae.BIRTH_DATE_FIELD_NAME="BirthDate",ae.BIRTH_DATE_FIELD_NAME_NORMALIZED="ItIdCardFront.BirthDate",ae.BIRTHPLACE_FIELD_NAME="Birthplace",ae.BIRTHPLACE_FIELD_NAME_NORMALIZED="ItIdCardFront.Birthplace",ae.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",ae.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="ItIdCardFront.CardAccessNumber",ae.EXPIRY_DATE_FIELD_NAME="ExpiryDate",ae.EXPIRY_DATE_FIELD_NAME_NORMALIZED="ItIdCardFront.ExpiryDate",ae.GENDER_FIELD_NAME="Gender",ae.GENDER_FIELD_NAME_NORMALIZED="ItIdCardFront.Gender",ae.GIVEN_NAMES_FIELD_NAME="GivenNames",ae.GIVEN_NAMES_FIELD_NAME_NORMALIZED="ItIdCardFront.GivenNames",ae.HEIGHT_FIELD_NAME="Height",ae.HEIGHT_FIELD_NAME_NORMALIZED="ItIdCardFront.Height",ae.ID_FIELD_NAME="ID",ae.ID_FIELD_NAME_NORMALIZED="ItIdCardFront.ID",ae.ISSUE_DATE_FIELD_NAME="IssueDate",ae.ISSUE_DATE_FIELD_NAME_NORMALIZED="ItIdCardFront.IssueDate",ae.NATIONALITY_FIELD_NAME="Nationality",ae.NATIONALITY_FIELD_NAME_NORMALIZED="ItIdCardFront.Nationality",ae.PHOTO_FIELD_NAME="Photo",ae.PHOTO_FIELD_NAME_NORMALIZED="ItIdCardFront.Photo",ae.PLACE_OF_ISSUE_FIELD_NAME="PlaceOfIssue",ae.PLACE_OF_ISSUE_FIELD_NAME_NORMALIZED="ItIdCardFront.PlaceOfIssue",ae.SIGNATURE_FIELD_NAME="Signature",ae.SIGNATURE_FIELD_NAME_NORMALIZED="ItIdCardFront.Signature",ae.SURNAME_FIELD_NAME="Surname",ae.SURNAME_FIELD_NAME_NORMALIZED="ItIdCardFront.Surname";class se{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return se.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get fiscalCode(){return this.document.fields.find((e=>"FiscalCode"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get parents(){return this.document.fields.find((e=>"Parents"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get remarks(){return this.document.fields.find((e=>"Remarks"===e.type.name))}get validationPhoto(){return this.document.fields.find((e=>"ValidationPhoto"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}se.DOCUMENT_TYPE="ItIdCardBack",se.ADDRESS_FIELD_NAME="Address",se.ADDRESS_FIELD_NAME_NORMALIZED="ItIdCardBack.Address",se.BARCODE_FIELD_NAME="Barcode",se.BARCODE_FIELD_NAME_NORMALIZED="ItIdCardBack.Barcode",se.FISCAL_CODE_FIELD_NAME="FiscalCode",se.FISCAL_CODE_FIELD_NAME_NORMALIZED="ItIdCardBack.FiscalCode",se.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",se.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="ItIdCardBack.IssuingAuthority",se.PARENTS_FIELD_NAME="Parents",se.PARENTS_FIELD_NAME_NORMALIZED="ItIdCardBack.Parents",se.RAW_MRZ_FIELD_NAME="RawMRZ",se.RAW_MRZ_FIELD_NAME_NORMALIZED="ItIdCardBack.RawMRZ",se.REMARKS_FIELD_NAME="Remarks",se.REMARKS_FIELD_NAME_NORMALIZED="ItIdCardBack.Remarks",se.VALIDATION_PHOTO_FIELD_NAME="ValidationPhoto",se.VALIDATION_PHOTO_FIELD_NAME_NORMALIZED="ItIdCardBack.ValidationPhoto";class ce{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ce.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get familyName(){return this.document.fields.find((e=>"FamilyName"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get parentsGivenNames(){return this.document.fields.find((e=>"ParentsGivenNames"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}ce.DOCUMENT_TYPE="PoIdCardFront",ce.BIRTH_DATE_FIELD_NAME="BirthDate",ce.BIRTH_DATE_FIELD_NAME_NORMALIZED="PoIdCardFront.BirthDate",ce.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",ce.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="PoIdCardFront.CardAccessNumber",ce.EXPIRY_DATE_FIELD_NAME="ExpiryDate",ce.EXPIRY_DATE_FIELD_NAME_NORMALIZED="PoIdCardFront.ExpiryDate",ce.FAMILY_NAME_FIELD_NAME="FamilyName",ce.FAMILY_NAME_FIELD_NAME_NORMALIZED="PoIdCardFront.FamilyName",ce.GENDER_FIELD_NAME="Gender",ce.GENDER_FIELD_NAME_NORMALIZED="PoIdCardFront.Gender",ce.GIVEN_NAMES_FIELD_NAME="GivenNames",ce.GIVEN_NAMES_FIELD_NAME_NORMALIZED="PoIdCardFront.GivenNames",ce.ID_FIELD_NAME="ID",ce.ID_FIELD_NAME_NORMALIZED="PoIdCardFront.ID",ce.NATIONALITY_FIELD_NAME="Nationality",ce.NATIONALITY_FIELD_NAME_NORMALIZED="PoIdCardFront.Nationality",ce.PARENTS_GIVEN_NAMES_FIELD_NAME="ParentsGivenNames",ce.PARENTS_GIVEN_NAMES_FIELD_NAME_NORMALIZED="PoIdCardFront.ParentsGivenNames",ce.PHOTO_FIELD_NAME="Photo",ce.PHOTO_FIELD_NAME_NORMALIZED="PoIdCardFront.Photo",ce.SIGNATURE_FIELD_NAME="Signature",ce.SIGNATURE_FIELD_NAME_NORMALIZED="PoIdCardFront.Signature",ce.SURNAME_FIELD_NAME="Surname",ce.SURNAME_FIELD_NAME_NORMALIZED="PoIdCardFront.Surname";class le{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return le.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}le.DOCUMENT_TYPE="RoIdCardBack",le.ADDRESS_FIELD_NAME="Address",le.ADDRESS_FIELD_NAME_NORMALIZED="RoIdCardBack.Address",le.ISSUE_DATE_FIELD_NAME="IssueDate",le.ISSUE_DATE_FIELD_NAME_NORMALIZED="RoIdCardBack.IssueDate",le.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",le.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="RoIdCardBack.IssuingAuthority",le.RAW_MRZ_FIELD_NAME="RawMRZ",le.RAW_MRZ_FIELD_NAME_NORMALIZED="RoIdCardBack.RawMRZ";class ue{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ue.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardAccessNumber(){return this.document.fields.find((e=>"CardAccessNumber"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get photo(){return this.document.fields.find((e=>"Photo"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}ue.DOCUMENT_TYPE="RoIdCardFront",ue.BIRTH_DATE_FIELD_NAME="BirthDate",ue.BIRTH_DATE_FIELD_NAME_NORMALIZED="RoIdCardFront.BirthDate",ue.CARD_ACCESS_NUMBER_FIELD_NAME="CardAccessNumber",ue.CARD_ACCESS_NUMBER_FIELD_NAME_NORMALIZED="RoIdCardFront.CardAccessNumber",ue.EXPIRY_DATE_FIELD_NAME="ExpiryDate",ue.EXPIRY_DATE_FIELD_NAME_NORMALIZED="RoIdCardFront.ExpiryDate",ue.GENDER_FIELD_NAME="Gender",ue.GENDER_FIELD_NAME_NORMALIZED="RoIdCardFront.Gender",ue.GIVEN_NAMES_FIELD_NAME="GivenNames",ue.GIVEN_NAMES_FIELD_NAME_NORMALIZED="RoIdCardFront.GivenNames",ue.ID_FIELD_NAME="ID",ue.ID_FIELD_NAME_NORMALIZED="RoIdCardFront.ID",ue.NATIONALITY_FIELD_NAME="Nationality",ue.NATIONALITY_FIELD_NAME_NORMALIZED="RoIdCardFront.Nationality",ue.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",ue.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="RoIdCardFront.PersonalNumber",ue.PHOTO_FIELD_NAME="Photo",ue.PHOTO_FIELD_NAME_NORMALIZED="RoIdCardFront.Photo",ue.SIGNATURE_FIELD_NAME="Signature",ue.SIGNATURE_FIELD_NAME_NORMALIZED="RoIdCardFront.Signature",ue.SURNAME_FIELD_NAME="Surname",ue.SURNAME_FIELD_NAME_NORMALIZED="RoIdCardFront.Surname";class de{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return de.DOCUMENT_TYPE}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get birthplace(){return this.document.fields.find((e=>"Birthplace"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get issueDate(){return this.document.fields.find((e=>"IssueDate"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get parentsGivenNames(){return this.document.fields.find((e=>"ParentsGivenNames"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}de.DOCUMENT_TYPE="PoIdCardBack",de.BARCODE_FIELD_NAME="Barcode",de.BARCODE_FIELD_NAME_NORMALIZED="PoIdCardBack.Barcode",de.BIRTHPLACE_FIELD_NAME="Birthplace",de.BIRTHPLACE_FIELD_NAME_NORMALIZED="PoIdCardBack.Birthplace",de.EXPIRY_DATE_FIELD_NAME="ExpiryDate",de.EXPIRY_DATE_FIELD_NAME_NORMALIZED="PoIdCardBack.ExpiryDate",de.ID_FIELD_NAME="ID",de.ID_FIELD_NAME_NORMALIZED="PoIdCardBack.ID",de.ISSUE_DATE_FIELD_NAME="IssueDate",de.ISSUE_DATE_FIELD_NAME_NORMALIZED="PoIdCardBack.IssueDate",de.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",de.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="PoIdCardBack.IssuingAuthority",de.NATIONALITY_FIELD_NAME="Nationality",de.NATIONALITY_FIELD_NAME_NORMALIZED="PoIdCardBack.Nationality",de.PARENTS_GIVEN_NAMES_FIELD_NAME="ParentsGivenNames",de.PARENTS_GIVEN_NAMES_FIELD_NAME_NORMALIZED="PoIdCardBack.ParentsGivenNames",de.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",de.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="PoIdCardBack.PersonalNumber",de.RAW_MRZ_FIELD_NAME="RawMRZ",de.RAW_MRZ_FIELD_NAME_NORMALIZED="PoIdCardBack.RawMRZ",de.SURNAME_FIELD_NAME="Surname",de.SURNAME_FIELD_NAME_NORMALIZED="PoIdCardBack.Surname";class me{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return me.DOCUMENT_TYPE}get barcode(){return this.document.fields.find((e=>"Barcode"===e.type.name))}get fathersName(){return this.document.fields.find((e=>"FathersName"===e.type.name))}get issuingAuthority(){return this.document.fields.find((e=>"IssuingAuthority"===e.type.name))}get mothersName(){return this.document.fields.find((e=>"MothersName"===e.type.name))}get rawMRZ(){return this.document.fields.find((e=>"RawMRZ"===e.type.name))}get mrz(){const e=this.document.children.find((e=>"MRZ"===e.type.name));return new k(e)}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}me.DOCUMENT_TYPE="TrIdCardBack",me.BARCODE_FIELD_NAME="Barcode",me.BARCODE_FIELD_NAME_NORMALIZED="TrIdCardBack.Barcode",me.FATHERS_NAME_FIELD_NAME="FathersName",me.FATHERS_NAME_FIELD_NAME_NORMALIZED="TrIdCardBack.FathersName",me.ISSUING_AUTHORITY_FIELD_NAME="IssuingAuthority",me.ISSUING_AUTHORITY_FIELD_NAME_NORMALIZED="TrIdCardBack.IssuingAuthority",me.MOTHERS_NAME_FIELD_NAME="MothersName",me.MOTHERS_NAME_FIELD_NAME_NORMALIZED="TrIdCardBack.MothersName",me.RAW_MRZ_FIELD_NAME="RawMRZ",me.RAW_MRZ_FIELD_NAME_NORMALIZED="TrIdCardBack.RawMRZ";class he{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return he.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get id(){return this.document.fields.find((e=>"ID"===e.type.name))}get nationality(){return this.document.fields.find((e=>"Nationality"===e.type.name))}get personalNumber(){return this.document.fields.find((e=>"PersonalNumber"===e.type.name))}get signature(){return this.document.fields.find((e=>"Signature"===e.type.name))}get surname(){return this.document.fields.find((e=>"Surname"===e.type.name))}get metadata(){const e=this.document.children.find((e=>"Metadata"===e.type.name));return new x(e)}}he.DOCUMENT_TYPE="TrIdCardFront",he.BIRTH_DATE_FIELD_NAME="BirthDate",he.BIRTH_DATE_FIELD_NAME_NORMALIZED="TrIdCardFront.BirthDate",he.EXPIRY_DATE_FIELD_NAME="ExpiryDate",he.EXPIRY_DATE_FIELD_NAME_NORMALIZED="TrIdCardFront.ExpiryDate",he.GENDER_FIELD_NAME="Gender",he.GENDER_FIELD_NAME_NORMALIZED="TrIdCardFront.Gender",he.GIVEN_NAMES_FIELD_NAME="GivenNames",he.GIVEN_NAMES_FIELD_NAME_NORMALIZED="TrIdCardFront.GivenNames",he.ID_FIELD_NAME="ID",he.ID_FIELD_NAME_NORMALIZED="TrIdCardFront.ID",he.NATIONALITY_FIELD_NAME="Nationality",he.NATIONALITY_FIELD_NAME_NORMALIZED="TrIdCardFront.Nationality",he.PERSONAL_NUMBER_FIELD_NAME="PersonalNumber",he.PERSONAL_NUMBER_FIELD_NAME_NORMALIZED="TrIdCardFront.PersonalNumber",he.SIGNATURE_FIELD_NAME="Signature",he.SIGNATURE_FIELD_NAME_NORMALIZED="TrIdCardFront.Signature",he.SURNAME_FIELD_NAME="Surname",he.SURNAME_FIELD_NAME_NORMALIZED="TrIdCardFront.Surname";class pe{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return pe.DOCUMENT_TYPE}get electronicTicketIndicator(){return this.document.fields.find((e=>"ElectronicTicketIndicator"===e.type.name))}get formatCode(){return this.document.fields.find((e=>"FormatCode"===e.type.name))}get numberOfLegs(){return this.document.fields.find((e=>"NumberOfLegs"===e.type.name))}get passengerName(){return this.document.fields.find((e=>"PassengerName"===e.type.name))}get securityData(){return this.document.fields.find((e=>"SecurityData"===e.type.name))}get securityDataType(){return this.document.fields.find((e=>"SecurityDataType"===e.type.name))}get legs(){return this.document.children.filter((e=>"Leg"===e.type.name)).map((e=>new pe.Leg(e)))}}pe.DOCUMENT_TYPE="BoardingPass",pe.ELECTRONIC_TICKET_INDICATOR_FIELD_NAME="ElectronicTicketIndicator",pe.ELECTRONIC_TICKET_INDICATOR_FIELD_NAME_NORMALIZED="BoardingPass.ElectronicTicketIndicator",pe.FORMAT_CODE_FIELD_NAME="FormatCode",pe.FORMAT_CODE_FIELD_NAME_NORMALIZED="BoardingPass.FormatCode",pe.NUMBER_OF_LEGS_FIELD_NAME="NumberOfLegs",pe.NUMBER_OF_LEGS_FIELD_NAME_NORMALIZED="BoardingPass.NumberOfLegs",pe.PASSENGER_NAME_FIELD_NAME="PassengerName",pe.PASSENGER_NAME_FIELD_NAME_NORMALIZED="BoardingPass.PassengerName",pe.SECURITY_DATA_FIELD_NAME="SecurityData",pe.SECURITY_DATA_FIELD_NAME_NORMALIZED="BoardingPass.SecurityData",pe.SECURITY_DATA_TYPE_FIELD_NAME="SecurityDataType",pe.SECURITY_DATA_TYPE_FIELD_NAME_NORMALIZED="BoardingPass.SecurityDataType",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Leg.DOCUMENT_TYPE}get airlineDesignatorOfBoardingPassIssuer(){return this.document.fields.find((e=>"AirlineDesignatorOfBoardingPassIssuer"===e.type.name))}get airlineNumericCode(){return this.document.fields.find((e=>"AirlineNumericCode"===e.type.name))}get baggageTagLicensePlateNumbers(){return this.document.fields.find((e=>"BaggageTagLicensePlateNumbers"===e.type.name))}get checkInSequenceNumber(){return this.document.fields.find((e=>"CheckInSequenceNumber"===e.type.name))}get compartmentCode(){return this.document.fields.find((e=>"CompartmentCode"===e.type.name))}get dateOfBoardingPassIssuanceJulian(){return this.document.fields.find((e=>"DateOfBoardingPassIssuanceJulian"===e.type.name))}get dateOfFlightJulian(){return this.document.fields.find((e=>"DateOfFlightJulian"===e.type.name))}get departureAirportCode(){return this.document.fields.find((e=>"DepartureAirportCode"===e.type.name))}get destinationAirportCode(){return this.document.fields.find((e=>"DestinationAirportCode"===e.type.name))}get documentFormSerialNumber(){return this.document.fields.find((e=>"DocumentFormSerialNumber"===e.type.name))}get documentType(){return this.document.fields.find((e=>"DocumentType"===e.type.name))}get fastTrack(){return this.document.fields.find((e=>"FastTrack"===e.type.name))}get firstNonConsecutiveBaggageTagLicensePlateNumber(){return this.document.fields.find((e=>"FirstNonConsecutiveBaggageTagLicensePlateNumber"===e.type.name))}get flightNumber(){return this.document.fields.find((e=>"FlightNumber"===e.type.name))}get forIndividualAirlineUse(){return this.document.fields.find((e=>"ForIndividualAirlineUse"===e.type.name))}get freeBaggageAllowance(){return this.document.fields.find((e=>"FreeBaggageAllowance"===e.type.name))}get frequentFlyerAirlineDesignator(){return this.document.fields.find((e=>"FrequentFlyerAirlineDesignator"===e.type.name))}get frequentFlyerNumber(){return this.document.fields.find((e=>"FrequentFlyerNumber"===e.type.name))}get idadIndicator(){return this.document.fields.find((e=>"IDADIndicator"===e.type.name))}get internationalDocumentationVerification(){return this.document.fields.find((e=>"InternationalDocumentationVerification"===e.type.name))}get marketingCarrierDesignator(){return this.document.fields.find((e=>"MarketingCarrierDesignator"===e.type.name))}get operatingCarrierDesignator(){return this.document.fields.find((e=>"OperatingCarrierDesignator"===e.type.name))}get operatingCarrierPNRCode(){return this.document.fields.find((e=>"OperatingCarrierPNRCode"===e.type.name))}get passengerDescription(){return this.document.fields.find((e=>"PassengerDescription"===e.type.name))}get passengerStatus(){return this.document.fields.find((e=>"PassengerStatus"===e.type.name))}get seatNumber(){return this.document.fields.find((e=>"SeatNumber"===e.type.name))}get secondNonConsecutiveBaggageTagLicensePlateNumber(){return this.document.fields.find((e=>"SecondNonConsecutiveBaggageTagLicensePlateNumber"===e.type.name))}get selecteeIndicator(){return this.document.fields.find((e=>"SelecteeIndicator"===e.type.name))}get sourceOfBoardingPassIssuance(){return this.document.fields.find((e=>"SourceOfBoardingPassIssuance"===e.type.name))}get sourceOfCheckIn(){return this.document.fields.find((e=>"SourceOfCheckIn"===e.type.name))}get versionNumber(){return this.document.fields.find((e=>"VersionNumber"===e.type.name))}}t.DOCUMENT_TYPE="Leg",t.AIRLINE_DESIGNATOR_OF_BOARDING_PASS_ISSUER_FIELD_NAME="AirlineDesignatorOfBoardingPassIssuer",t.AIRLINE_DESIGNATOR_OF_BOARDING_PASS_ISSUER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.AirlineDesignatorOfBoardingPassIssuer",t.AIRLINE_NUMERIC_CODE_FIELD_NAME="AirlineNumericCode",t.AIRLINE_NUMERIC_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.AirlineNumericCode",t.BAGGAGE_TAG_LICENSE_PLATE_NUMBERS_FIELD_NAME="BaggageTagLicensePlateNumbers",t.BAGGAGE_TAG_LICENSE_PLATE_NUMBERS_FIELD_NAME_NORMALIZED="BoardingPass.Leg.BaggageTagLicensePlateNumbers",t.CHECK_IN_SEQUENCE_NUMBER_FIELD_NAME="CheckInSequenceNumber",t.CHECK_IN_SEQUENCE_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.CheckInSequenceNumber",t.COMPARTMENT_CODE_FIELD_NAME="CompartmentCode",t.COMPARTMENT_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.CompartmentCode",t.DATE_OF_BOARDING_PASS_ISSUANCE_JULIAN_FIELD_NAME="DateOfBoardingPassIssuanceJulian",t.DATE_OF_BOARDING_PASS_ISSUANCE_JULIAN_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DateOfBoardingPassIssuanceJulian",t.DATE_OF_FLIGHT_JULIAN_FIELD_NAME="DateOfFlightJulian",t.DATE_OF_FLIGHT_JULIAN_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DateOfFlightJulian",t.DEPARTURE_AIRPORT_CODE_FIELD_NAME="DepartureAirportCode",t.DEPARTURE_AIRPORT_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DepartureAirportCode",t.DESTINATION_AIRPORT_CODE_FIELD_NAME="DestinationAirportCode",t.DESTINATION_AIRPORT_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DestinationAirportCode",t.DOCUMENT_FORM_SERIAL_NUMBER_FIELD_NAME="DocumentFormSerialNumber",t.DOCUMENT_FORM_SERIAL_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DocumentFormSerialNumber",t.DOCUMENT_TYPE_FIELD_NAME="DocumentType",t.DOCUMENT_TYPE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.DocumentType",t.FAST_TRACK_FIELD_NAME="FastTrack",t.FAST_TRACK_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FastTrack",t.FIRST_NON_CONSECUTIVE_BAGGAGE_TAG_LICENSE_PLATE_NUMBER_FIELD_NAME="FirstNonConsecutiveBaggageTagLicensePlateNumber",t.FIRST_NON_CONSECUTIVE_BAGGAGE_TAG_LICENSE_PLATE_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FirstNonConsecutiveBaggageTagLicensePlateNumber",t.FLIGHT_NUMBER_FIELD_NAME="FlightNumber",t.FLIGHT_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FlightNumber",t.FOR_INDIVIDUAL_AIRLINE_USE_FIELD_NAME="ForIndividualAirlineUse",t.FOR_INDIVIDUAL_AIRLINE_USE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.ForIndividualAirlineUse",t.FREE_BAGGAGE_ALLOWANCE_FIELD_NAME="FreeBaggageAllowance",t.FREE_BAGGAGE_ALLOWANCE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FreeBaggageAllowance",t.FREQUENT_FLYER_AIRLINE_DESIGNATOR_FIELD_NAME="FrequentFlyerAirlineDesignator",t.FREQUENT_FLYER_AIRLINE_DESIGNATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FrequentFlyerAirlineDesignator",t.FREQUENT_FLYER_NUMBER_FIELD_NAME="FrequentFlyerNumber",t.FREQUENT_FLYER_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.FrequentFlyerNumber",t.IDAD_INDICATOR_FIELD_NAME="IDADIndicator",t.IDAD_INDICATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.IDADIndicator",t.INTERNATIONAL_DOCUMENTATION_VERIFICATION_FIELD_NAME="InternationalDocumentationVerification",t.INTERNATIONAL_DOCUMENTATION_VERIFICATION_FIELD_NAME_NORMALIZED="BoardingPass.Leg.InternationalDocumentationVerification",t.MARKETING_CARRIER_DESIGNATOR_FIELD_NAME="MarketingCarrierDesignator",t.MARKETING_CARRIER_DESIGNATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.MarketingCarrierDesignator",t.OPERATING_CARRIER_DESIGNATOR_FIELD_NAME="OperatingCarrierDesignator",t.OPERATING_CARRIER_DESIGNATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.OperatingCarrierDesignator",t.OPERATING_CARRIER_PNR_CODE_FIELD_NAME="OperatingCarrierPNRCode",t.OPERATING_CARRIER_PNR_CODE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.OperatingCarrierPNRCode",t.PASSENGER_DESCRIPTION_FIELD_NAME="PassengerDescription",t.PASSENGER_DESCRIPTION_FIELD_NAME_NORMALIZED="BoardingPass.Leg.PassengerDescription",t.PASSENGER_STATUS_FIELD_NAME="PassengerStatus",t.PASSENGER_STATUS_FIELD_NAME_NORMALIZED="BoardingPass.Leg.PassengerStatus",t.SEAT_NUMBER_FIELD_NAME="SeatNumber",t.SEAT_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SeatNumber",t.SECOND_NON_CONSECUTIVE_BAGGAGE_TAG_LICENSE_PLATE_NUMBER_FIELD_NAME="SecondNonConsecutiveBaggageTagLicensePlateNumber",t.SECOND_NON_CONSECUTIVE_BAGGAGE_TAG_LICENSE_PLATE_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SecondNonConsecutiveBaggageTagLicensePlateNumber",t.SELECTEE_INDICATOR_FIELD_NAME="SelecteeIndicator",t.SELECTEE_INDICATOR_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SelecteeIndicator",t.SOURCE_OF_BOARDING_PASS_ISSUANCE_FIELD_NAME="SourceOfBoardingPassIssuance",t.SOURCE_OF_BOARDING_PASS_ISSUANCE_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SourceOfBoardingPassIssuance",t.SOURCE_OF_CHECK_IN_FIELD_NAME="SourceOfCheckIn",t.SOURCE_OF_CHECK_IN_FIELD_NAME_NORMALIZED="BoardingPass.Leg.SourceOfCheckIn",t.VERSION_NUMBER_FIELD_NAME="VersionNumber",t.VERSION_NUMBER_FIELD_NAME_NORMALIZED="BoardingPass.Leg.VersionNumber",e.Leg=t}(pe||(pe={}));class Ee{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Ee.DOCUMENT_TYPE}get additionalBillingInformation(){return this.document.fields.find((e=>"AdditionalBillingInformation"===e.type.name))}get additionalInfoTrailer(){return this.document.fields.find((e=>"AdditionalInfoTrailer"===e.type.name))}get additionalInfoUnstructured(){return this.document.fields.find((e=>"AdditionalInfoUnstructured"===e.type.name))}get alternativeProcedureParameter(){return this.document.fields.find((e=>"AlternativeProcedureParameter"===e.type.name))}get amount(){return this.document.fields.find((e=>"Amount"===e.type.name))}get currency(){return this.document.fields.find((e=>"Currency"===e.type.name))}get debtorAddressType(){return this.document.fields.find((e=>"DebtorAddressType"===e.type.name))}get debtorBuildingOrAddressLine2(){return this.document.fields.find((e=>"DebtorBuildingOrAddressLine2"===e.type.name))}get debtorCountry(){return this.document.fields.find((e=>"DebtorCountry"===e.type.name))}get debtorName(){return this.document.fields.find((e=>"DebtorName"===e.type.name))}get debtorPlace(){return this.document.fields.find((e=>"DebtorPlace"===e.type.name))}get debtorPostalCode(){return this.document.fields.find((e=>"DebtorPostalCode"===e.type.name))}get debtorStreetOrAddressLine1(){return this.document.fields.find((e=>"DebtorStreetOrAddressLine1"===e.type.name))}get dueDate(){return this.document.fields.find((e=>"DueDate"===e.type.name))}get encoding(){return this.document.fields.find((e=>"Encoding"===e.type.name))}get finalPayeeAddressType(){return this.document.fields.find((e=>"FinalPayeeAddressType"===e.type.name))}get finalPayeeBuildingOrAddressLine2(){return this.document.fields.find((e=>"FinalPayeeBuildingOrAddressLine2"===e.type.name))}get finalPayeeCountry(){return this.document.fields.find((e=>"FinalPayeeCountry"===e.type.name))}get finalPayeeName(){return this.document.fields.find((e=>"FinalPayeeName"===e.type.name))}get finalPayeePlace(){return this.document.fields.find((e=>"FinalPayeePlace"===e.type.name))}get finalPayeePostalCode(){return this.document.fields.find((e=>"FinalPayeePostalCode"===e.type.name))}get finalPayeeStreetOrAddressLine1(){return this.document.fields.find((e=>"FinalPayeeStreetOrAddressLine1"===e.type.name))}get iban(){return this.document.fields.find((e=>"IBAN"===e.type.name))}get majorVersion(){return this.document.fields.find((e=>"MajorVersion"===e.type.name))}get payeeAddressType(){return this.document.fields.find((e=>"PayeeAddressType"===e.type.name))}get payeeBuildingOrAddressLine2(){return this.document.fields.find((e=>"PayeeBuildingOrAddressLine2"===e.type.name))}get payeeCountry(){return this.document.fields.find((e=>"PayeeCountry"===e.type.name))}get payeeName(){return this.document.fields.find((e=>"PayeeName"===e.type.name))}get payeePlace(){return this.document.fields.find((e=>"PayeePlace"===e.type.name))}get payeePostalCode(){return this.document.fields.find((e=>"PayeePostalCode"===e.type.name))}get payeeStreetOrAddressLine1(){return this.document.fields.find((e=>"PayeeStreetOrAddressLine1"===e.type.name))}get paymentReference(){return this.document.fields.find((e=>"PaymentReference"===e.type.name))}get paymentReferenceType(){return this.document.fields.find((e=>"PaymentReferenceType"===e.type.name))}}Ee.DOCUMENT_TYPE="SwissQR",Ee.ADDITIONAL_BILLING_INFORMATION_FIELD_NAME="AdditionalBillingInformation",Ee.ADDITIONAL_BILLING_INFORMATION_FIELD_NAME_NORMALIZED="SwissQR.AdditionalBillingInformation",Ee.ADDITIONAL_INFO_TRAILER_FIELD_NAME="AdditionalInfoTrailer",Ee.ADDITIONAL_INFO_TRAILER_FIELD_NAME_NORMALIZED="SwissQR.AdditionalInfoTrailer",Ee.ADDITIONAL_INFO_UNSTRUCTURED_FIELD_NAME="AdditionalInfoUnstructured",Ee.ADDITIONAL_INFO_UNSTRUCTURED_FIELD_NAME_NORMALIZED="SwissQR.AdditionalInfoUnstructured",Ee.ALTERNATIVE_PROCEDURE_PARAMETER_FIELD_NAME="AlternativeProcedureParameter",Ee.ALTERNATIVE_PROCEDURE_PARAMETER_FIELD_NAME_NORMALIZED="SwissQR.AlternativeProcedureParameter",Ee.AMOUNT_FIELD_NAME="Amount",Ee.AMOUNT_FIELD_NAME_NORMALIZED="SwissQR.Amount",Ee.CURRENCY_FIELD_NAME="Currency",Ee.CURRENCY_FIELD_NAME_NORMALIZED="SwissQR.Currency",Ee.DEBTOR_ADDRESS_TYPE_FIELD_NAME="DebtorAddressType",Ee.DEBTOR_ADDRESS_TYPE_FIELD_NAME_NORMALIZED="SwissQR.DebtorAddressType",Ee.DEBTOR_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME="DebtorBuildingOrAddressLine2",Ee.DEBTOR_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME_NORMALIZED="SwissQR.DebtorBuildingOrAddressLine2",Ee.DEBTOR_COUNTRY_FIELD_NAME="DebtorCountry",Ee.DEBTOR_COUNTRY_FIELD_NAME_NORMALIZED="SwissQR.DebtorCountry",Ee.DEBTOR_NAME_FIELD_NAME="DebtorName",Ee.DEBTOR_NAME_FIELD_NAME_NORMALIZED="SwissQR.DebtorName",Ee.DEBTOR_PLACE_FIELD_NAME="DebtorPlace",Ee.DEBTOR_PLACE_FIELD_NAME_NORMALIZED="SwissQR.DebtorPlace",Ee.DEBTOR_POSTAL_CODE_FIELD_NAME="DebtorPostalCode",Ee.DEBTOR_POSTAL_CODE_FIELD_NAME_NORMALIZED="SwissQR.DebtorPostalCode",Ee.DEBTOR_STREET_OR_ADDRESS_LINE_1_FIELD_NAME="DebtorStreetOrAddressLine1",Ee.DEBTOR_STREET_OR_ADDRESS_LINE_1_FIELD_NAME_NORMALIZED="SwissQR.DebtorStreetOrAddressLine1",Ee.DUE_DATE_FIELD_NAME="DueDate",Ee.DUE_DATE_FIELD_NAME_NORMALIZED="SwissQR.DueDate",Ee.ENCODING_FIELD_NAME="Encoding",Ee.ENCODING_FIELD_NAME_NORMALIZED="SwissQR.Encoding",Ee.FINAL_PAYEE_ADDRESS_TYPE_FIELD_NAME="FinalPayeeAddressType",Ee.FINAL_PAYEE_ADDRESS_TYPE_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeAddressType",Ee.FINAL_PAYEE_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME="FinalPayeeBuildingOrAddressLine2",Ee.FINAL_PAYEE_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeBuildingOrAddressLine2",Ee.FINAL_PAYEE_COUNTRY_FIELD_NAME="FinalPayeeCountry",Ee.FINAL_PAYEE_COUNTRY_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeCountry",Ee.FINAL_PAYEE_NAME_FIELD_NAME="FinalPayeeName",Ee.FINAL_PAYEE_NAME_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeName",Ee.FINAL_PAYEE_PLACE_FIELD_NAME="FinalPayeePlace",Ee.FINAL_PAYEE_PLACE_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeePlace",Ee.FINAL_PAYEE_POSTAL_CODE_FIELD_NAME="FinalPayeePostalCode",Ee.FINAL_PAYEE_POSTAL_CODE_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeePostalCode",Ee.FINAL_PAYEE_STREET_OR_ADDRESS_LINE_1_FIELD_NAME="FinalPayeeStreetOrAddressLine1",Ee.FINAL_PAYEE_STREET_OR_ADDRESS_LINE_1_FIELD_NAME_NORMALIZED="SwissQR.FinalPayeeStreetOrAddressLine1",Ee.IBAN_FIELD_NAME="IBAN",Ee.IBAN_FIELD_NAME_NORMALIZED="SwissQR.IBAN",Ee.MAJOR_VERSION_FIELD_NAME="MajorVersion",Ee.MAJOR_VERSION_FIELD_NAME_NORMALIZED="SwissQR.MajorVersion",Ee.PAYEE_ADDRESS_TYPE_FIELD_NAME="PayeeAddressType",Ee.PAYEE_ADDRESS_TYPE_FIELD_NAME_NORMALIZED="SwissQR.PayeeAddressType",Ee.PAYEE_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME="PayeeBuildingOrAddressLine2",Ee.PAYEE_BUILDING_OR_ADDRESS_LINE_2_FIELD_NAME_NORMALIZED="SwissQR.PayeeBuildingOrAddressLine2",Ee.PAYEE_COUNTRY_FIELD_NAME="PayeeCountry",Ee.PAYEE_COUNTRY_FIELD_NAME_NORMALIZED="SwissQR.PayeeCountry",Ee.PAYEE_NAME_FIELD_NAME="PayeeName",Ee.PAYEE_NAME_FIELD_NAME_NORMALIZED="SwissQR.PayeeName",Ee.PAYEE_PLACE_FIELD_NAME="PayeePlace",Ee.PAYEE_PLACE_FIELD_NAME_NORMALIZED="SwissQR.PayeePlace",Ee.PAYEE_POSTAL_CODE_FIELD_NAME="PayeePostalCode",Ee.PAYEE_POSTAL_CODE_FIELD_NAME_NORMALIZED="SwissQR.PayeePostalCode",Ee.PAYEE_STREET_OR_ADDRESS_LINE_1_FIELD_NAME="PayeeStreetOrAddressLine1",Ee.PAYEE_STREET_OR_ADDRESS_LINE_1_FIELD_NAME_NORMALIZED="SwissQR.PayeeStreetOrAddressLine1",Ee.PAYMENT_REFERENCE_FIELD_NAME="PaymentReference",Ee.PAYMENT_REFERENCE_FIELD_NAME_NORMALIZED="SwissQR.PaymentReference",Ee.PAYMENT_REFERENCE_TYPE_FIELD_NAME="PaymentReferenceType",Ee.PAYMENT_REFERENCE_TYPE_FIELD_NAME_NORMALIZED="SwissQR.PaymentReferenceType";class Ae{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Ae.DOCUMENT_TYPE}get currentPage(){return this.document.fields.find((e=>"CurrentPage"===e.type.name))}get documentVersionNumber(){return this.document.fields.find((e=>"DocumentVersionNumber"===e.type.name))}get guid(){return this.document.fields.find((e=>"GUID"===e.type.name))}get languageCountryCode(){return this.document.fields.find((e=>"LanguageCountryCode"===e.type.name))}get patchVersionNumber(){return this.document.fields.find((e=>"PatchVersionNumber"===e.type.name))}get totalNumberOfPages(){return this.document.fields.find((e=>"TotalNumberOfPages"===e.type.name))}get patient(){const e=this.document.children.find((e=>"Patient"===e.type.name));return new Ae.Patient(e)}get doctor(){const e=this.document.children.find((e=>"Doctor"===e.type.name));return new Ae.Doctor(e)}get subheadings(){return this.document.children.filter((e=>"Subheading"===e.type.name)).map((e=>new Ae.Subheading(e)))}}Ae.DOCUMENT_TYPE="DEMedicalPlan",Ae.CURRENT_PAGE_FIELD_NAME="CurrentPage",Ae.CURRENT_PAGE_FIELD_NAME_NORMALIZED="DEMedicalPlan.CurrentPage",Ae.DOCUMENT_VERSION_NUMBER_FIELD_NAME="DocumentVersionNumber",Ae.DOCUMENT_VERSION_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.DocumentVersionNumber",Ae.GUID_FIELD_NAME="GUID",Ae.GUID_FIELD_NAME_NORMALIZED="DEMedicalPlan.GUID",Ae.LANGUAGE_COUNTRY_CODE_FIELD_NAME="LanguageCountryCode",Ae.LANGUAGE_COUNTRY_CODE_FIELD_NAME_NORMALIZED="DEMedicalPlan.LanguageCountryCode",Ae.PATCH_VERSION_NUMBER_FIELD_NAME="PatchVersionNumber",Ae.PATCH_VERSION_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.PatchVersionNumber",Ae.TOTAL_NUMBER_OF_PAGES_FIELD_NAME="TotalNumberOfPages",Ae.TOTAL_NUMBER_OF_PAGES_FIELD_NAME_NORMALIZED="DEMedicalPlan.TotalNumberOfPages",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Patient.DOCUMENT_TYPE}get allergiesAndIntolerances(){return this.document.fields.find((e=>"AllergiesAndIntolerances"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get breastFeeding(){return this.document.fields.find((e=>"BreastFeeding"===e.type.name))}get creatinineValue(){return this.document.fields.find((e=>"CreatinineValue"===e.type.name))}get firstName(){return this.document.fields.find((e=>"FirstName"===e.type.name))}get gender(){return this.document.fields.find((e=>"Gender"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get patientFreeText(){return this.document.fields.find((e=>"PatientFreeText"===e.type.name))}get patientID(){return this.document.fields.find((e=>"PatientID"===e.type.name))}get preName(){return this.document.fields.find((e=>"PreName"===e.type.name))}get pregnant(){return this.document.fields.find((e=>"Pregnant"===e.type.name))}get suffix(){return this.document.fields.find((e=>"Suffix"===e.type.name))}get title(){return this.document.fields.find((e=>"Title"===e.type.name))}get weight(){return this.document.fields.find((e=>"Weight"===e.type.name))}}t.DOCUMENT_TYPE="Patient",t.ALLERGIES_AND_INTOLERANCES_FIELD_NAME="AllergiesAndIntolerances",t.ALLERGIES_AND_INTOLERANCES_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.AllergiesAndIntolerances",t.BIRTH_DATE_FIELD_NAME="BirthDate",t.BIRTH_DATE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.BirthDate",t.BREAST_FEEDING_FIELD_NAME="BreastFeeding",t.BREAST_FEEDING_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.BreastFeeding",t.CREATININE_VALUE_FIELD_NAME="CreatinineValue",t.CREATININE_VALUE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.CreatinineValue",t.FIRST_NAME_FIELD_NAME="FirstName",t.FIRST_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.FirstName",t.GENDER_FIELD_NAME="Gender",t.GENDER_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Gender",t.HEIGHT_FIELD_NAME="Height",t.HEIGHT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Height",t.LAST_NAME_FIELD_NAME="LastName",t.LAST_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.LastName",t.PATIENT_FREE_TEXT_FIELD_NAME="PatientFreeText",t.PATIENT_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.PatientFreeText",t.PATIENT_ID_FIELD_NAME="PatientID",t.PATIENT_ID_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.PatientID",t.PRE_NAME_FIELD_NAME="PreName",t.PRE_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.PreName",t.PREGNANT_FIELD_NAME="Pregnant",t.PREGNANT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Pregnant",t.SUFFIX_FIELD_NAME="Suffix",t.SUFFIX_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Suffix",t.TITLE_FIELD_NAME="Title",t.TITLE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Title",t.WEIGHT_FIELD_NAME="Weight",t.WEIGHT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Patient.Weight",e.Patient=t;class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Doctor.DOCUMENT_TYPE}get doctorNumber(){return this.document.fields.find((e=>"DoctorNumber"===e.type.name))}get email(){return this.document.fields.find((e=>"Email"===e.type.name))}get hospitalID(){return this.document.fields.find((e=>"HospitalID"===e.type.name))}get issuerName(){return this.document.fields.find((e=>"IssuerName"===e.type.name))}get issuingDateAndTime(){return this.document.fields.find((e=>"IssuingDateAndTime"===e.type.name))}get pharmacyID(){return this.document.fields.find((e=>"PharmacyID"===e.type.name))}get place(){return this.document.fields.find((e=>"Place"===e.type.name))}get postalCode(){return this.document.fields.find((e=>"PostalCode"===e.type.name))}get street(){return this.document.fields.find((e=>"Street"===e.type.name))}get telephoneNumber(){return this.document.fields.find((e=>"TelephoneNumber"===e.type.name))}}n.DOCUMENT_TYPE="Doctor",n.DOCTOR_NUMBER_FIELD_NAME="DoctorNumber",n.DOCTOR_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.DoctorNumber",n.EMAIL_FIELD_NAME="Email",n.EMAIL_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.Email",n.HOSPITAL_ID_FIELD_NAME="HospitalID",n.HOSPITAL_ID_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.HospitalID",n.ISSUER_NAME_FIELD_NAME="IssuerName",n.ISSUER_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.IssuerName",n.ISSUING_DATE_AND_TIME_FIELD_NAME="IssuingDateAndTime",n.ISSUING_DATE_AND_TIME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.IssuingDateAndTime",n.PHARMACY_ID_FIELD_NAME="PharmacyID",n.PHARMACY_ID_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.PharmacyID",n.PLACE_FIELD_NAME="Place",n.PLACE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.Place",n.POSTAL_CODE_FIELD_NAME="PostalCode",n.POSTAL_CODE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.PostalCode",n.STREET_FIELD_NAME="Street",n.STREET_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.Street",n.TELEPHONE_NUMBER_FIELD_NAME="TelephoneNumber",n.TELEPHONE_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.Doctor.TelephoneNumber",e.Doctor=n;class i{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Subheading.DOCUMENT_TYPE}get generalNotes(){return this.document.fields.filter((e=>"GeneralNote"===e.type.name))}get keyWords(){return this.document.fields.find((e=>"KeyWords"===e.type.name))}get subheadingFreeText(){return this.document.fields.find((e=>"SubheadingFreeText"===e.type.name))}get medicines(){return this.document.children.filter((e=>"Medicine"===e.type.name)).map((t=>new e.Subheading.Medicine(t)))}get prescriptions(){return this.document.children.filter((e=>"Prescription"===e.type.name)).map((t=>new e.Subheading.Prescription(t)))}}i.DOCUMENT_TYPE="Subheading",i.GENERAL_NOTE_FIELD_NAME="GeneralNote",i.GENERAL_NOTE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.GeneralNote",i.KEY_WORDS_FIELD_NAME="KeyWords",i.KEY_WORDS_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.KeyWords",i.SUBHEADING_FREE_TEXT_FIELD_NAME="SubheadingFreeText",i.SUBHEADING_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.SubheadingFreeText",e.Subheading=i,function(t){class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Subheading.Medicine.DOCUMENT_TYPE}get dosageForm(){return this.document.fields.find((e=>"DosageForm"===e.type.name))}get dosageFormFreeText(){return this.document.fields.find((e=>"DosageFormFreeText"===e.type.name))}get dosageFreeText(){return this.document.fields.find((e=>"DosageFreeText"===e.type.name))}get dosingUnit(){return this.document.fields.find((e=>"DosingUnit"===e.type.name))}get dosingUnitFreeText(){return this.document.fields.find((e=>"DosingUnitFreeText"===e.type.name))}get drugName(){return this.document.fields.find((e=>"DrugName"===e.type.name))}get evening(){return this.document.fields.find((e=>"Evening"===e.type.name))}get generalNotes(){return this.document.fields.find((e=>"GeneralNotes"===e.type.name))}get midday(){return this.document.fields.find((e=>"Midday"===e.type.name))}get morning(){return this.document.fields.find((e=>"Morning"===e.type.name))}get night(){return this.document.fields.find((e=>"Night"===e.type.name))}get pharmaceuticalNumber(){return this.document.fields.find((e=>"PharmaceuticalNumber"===e.type.name))}get reasonForTreatment(){return this.document.fields.find((e=>"ReasonForTreatment"===e.type.name))}get relevantInfo(){return this.document.fields.find((e=>"RelevantInfo"===e.type.name))}get substances(){return this.document.children.filter((e=>"Substance"===e.type.name)).map((t=>new e.Subheading.Medicine.Substance(t)))}}n.DOCUMENT_TYPE="Medicine",n.DOSAGE_FORM_FIELD_NAME="DosageForm",n.DOSAGE_FORM_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosageForm",n.DOSAGE_FORM_FREE_TEXT_FIELD_NAME="DosageFormFreeText",n.DOSAGE_FORM_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosageFormFreeText",n.DOSAGE_FREE_TEXT_FIELD_NAME="DosageFreeText",n.DOSAGE_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosageFreeText",n.DOSING_UNIT_FIELD_NAME="DosingUnit",n.DOSING_UNIT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosingUnit",n.DOSING_UNIT_FREE_TEXT_FIELD_NAME="DosingUnitFreeText",n.DOSING_UNIT_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DosingUnitFreeText",n.DRUG_NAME_FIELD_NAME="DrugName",n.DRUG_NAME_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.DrugName",n.EVENING_FIELD_NAME="Evening",n.EVENING_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Evening",n.GENERAL_NOTES_FIELD_NAME="GeneralNotes",n.GENERAL_NOTES_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.GeneralNotes",n.MIDDAY_FIELD_NAME="Midday",n.MIDDAY_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Midday",n.MORNING_FIELD_NAME="Morning",n.MORNING_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Morning",n.NIGHT_FIELD_NAME="Night",n.NIGHT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Night",n.PHARMACEUTICAL_NUMBER_FIELD_NAME="PharmaceuticalNumber",n.PHARMACEUTICAL_NUMBER_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.PharmaceuticalNumber",n.REASON_FOR_TREATMENT_FIELD_NAME="ReasonForTreatment",n.REASON_FOR_TREATMENT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.ReasonForTreatment",n.RELEVANT_INFO_FIELD_NAME="RelevantInfo",n.RELEVANT_INFO_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.RelevantInfo",t.Medicine=n,function(t){class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Subheading.Medicine.Substance.DOCUMENT_TYPE}get activeSubstance(){return this.document.fields.find((e=>"ActiveSubstance"===e.type.name))}get potency(){return this.document.fields.find((e=>"Potency"===e.type.name))}}n.DOCUMENT_TYPE="Substance",n.ACTIVE_SUBSTANCE_FIELD_NAME="ActiveSubstance",n.ACTIVE_SUBSTANCE_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Substance.ActiveSubstance",n.POTENCY_FIELD_NAME="Potency",n.POTENCY_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Medicine.Substance.Potency",t.Substance=n}(n=t.Medicine||(t.Medicine={}));class i{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Subheading.Prescription.DOCUMENT_TYPE}get generalInformation(){return this.document.fields.find((e=>"GeneralInformation"===e.type.name))}get prescriptionFreeText(){return this.document.fields.find((e=>"PrescriptionFreeText"===e.type.name))}}i.DOCUMENT_TYPE="Prescription",i.GENERAL_INFORMATION_FIELD_NAME="GeneralInformation",i.GENERAL_INFORMATION_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Prescription.GeneralInformation",i.PRESCRIPTION_FREE_TEXT_FIELD_NAME="PrescriptionFreeText",i.PRESCRIPTION_FREE_TEXT_FIELD_NAME_NORMALIZED="DEMedicalPlan.Subheading.Prescription.PrescriptionFreeText",t.Prescription=i}(i=e.Subheading||(e.Subheading={}))}(Ae||(Ae={}));class ge{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ge.DOCUMENT_TYPE}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get dateExpired(){return this.document.fields.find((e=>"DateExpired"===e.type.name))}get dateIssued(){return this.document.fields.find((e=>"DateIssued"===e.type.name))}get documentCode(){return this.document.fields.find((e=>"DocumentCode"===e.type.name))}get firstName(){return this.document.fields.find((e=>"FirstName"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get optional(){return this.document.fields.find((e=>"Optional"===e.type.name))}}ge.DOCUMENT_TYPE="IDCardPDF417",ge.BIRTH_DATE_FIELD_NAME="BirthDate",ge.BIRTH_DATE_FIELD_NAME_NORMALIZED="IDCardPDF417.BirthDate",ge.DATE_EXPIRED_FIELD_NAME="DateExpired",ge.DATE_EXPIRED_FIELD_NAME_NORMALIZED="IDCardPDF417.DateExpired",ge.DATE_ISSUED_FIELD_NAME="DateIssued",ge.DATE_ISSUED_FIELD_NAME_NORMALIZED="IDCardPDF417.DateIssued",ge.DOCUMENT_CODE_FIELD_NAME="DocumentCode",ge.DOCUMENT_CODE_FIELD_NAME_NORMALIZED="IDCardPDF417.DocumentCode",ge.FIRST_NAME_FIELD_NAME="FirstName",ge.FIRST_NAME_FIELD_NAME_NORMALIZED="IDCardPDF417.FirstName",ge.LAST_NAME_FIELD_NAME="LastName",ge.LAST_NAME_FIELD_NAME_NORMALIZED="IDCardPDF417.LastName",ge.OPTIONAL_FIELD_NAME="Optional",ge.OPTIONAL_FIELD_NAME_NORMALIZED="IDCardPDF417.Optional";class fe{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return fe.DOCUMENT_TYPE}get elements(){return this.document.children.filter((e=>"Element"===e.type.name)).map((e=>new fe.Element(e)))}}fe.DOCUMENT_TYPE="GS1",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Element.DOCUMENT_TYPE}get applicationIdentifier(){return this.document.fields.find((e=>"ApplicationIdentifier"===e.type.name))}get dataTitle(){return this.document.fields.find((e=>"DataTitle"===e.type.name))}get elementDescription(){return this.document.fields.find((e=>"ElementDescription"===e.type.name))}get rawValue(){return this.document.fields.find((e=>"RawValue"===e.type.name))}get validationErrors(){return this.document.children.filter((e=>"ValidationError"===e.type.name)).map((t=>new e.Element.ValidationError(t)))}}t.DOCUMENT_TYPE="Element",t.APPLICATION_IDENTIFIER_FIELD_NAME="ApplicationIdentifier",t.APPLICATION_IDENTIFIER_FIELD_NAME_NORMALIZED="GS1.Element.ApplicationIdentifier",t.DATA_TITLE_FIELD_NAME="DataTitle",t.DATA_TITLE_FIELD_NAME_NORMALIZED="GS1.Element.DataTitle",t.ELEMENT_DESCRIPTION_FIELD_NAME="ElementDescription",t.ELEMENT_DESCRIPTION_FIELD_NAME_NORMALIZED="GS1.Element.ElementDescription",t.RAW_VALUE_FIELD_NAME="RawValue",t.RAW_VALUE_FIELD_NAME_NORMALIZED="GS1.Element.RawValue",e.Element=t,function(t){class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.Element.ValidationError.DOCUMENT_TYPE}get code(){return this.document.fields.find((e=>"Code"===e.type.name))}get reason(){return this.document.fields.find((e=>"Reason"===e.type.name))}}n.DOCUMENT_TYPE="ValidationError",n.CODE_FIELD_NAME="Code",n.CODE_FIELD_NAME_NORMALIZED="GS1.Element.ValidationError.Code",n.REASON_FIELD_NAME="Reason",n.REASON_FIELD_NAME_NORMALIZED="GS1.Element.ValidationError.Reason",t.ValidationError=n}(t=e.Element||(e.Element={}))}(fe||(fe={}));class Ce{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Ce.DOCUMENT_TYPE}get amount(){return this.document.fields.find((e=>"Amount"===e.type.name))}get characterSet(){return this.document.fields.find((e=>"CharacterSet"===e.type.name))}get identification(){return this.document.fields.find((e=>"Identification"===e.type.name))}get information(){return this.document.fields.find((e=>"Information"===e.type.name))}get purpose(){return this.document.fields.find((e=>"Purpose"===e.type.name))}get receiverBIC(){return this.document.fields.find((e=>"ReceiverBIC"===e.type.name))}get receiverIBAN(){return this.document.fields.find((e=>"ReceiverIBAN"===e.type.name))}get receiverName(){return this.document.fields.find((e=>"ReceiverName"===e.type.name))}get remittance(){return this.document.fields.find((e=>"Remittance"===e.type.name))}get serviceTag(){return this.document.fields.find((e=>"ServiceTag"===e.type.name))}get version(){return this.document.fields.find((e=>"Version"===e.type.name))}}Ce.DOCUMENT_TYPE="SEPA",Ce.AMOUNT_FIELD_NAME="Amount",Ce.AMOUNT_FIELD_NAME_NORMALIZED="SEPA.Amount",Ce.CHARACTER_SET_FIELD_NAME="CharacterSet",Ce.CHARACTER_SET_FIELD_NAME_NORMALIZED="SEPA.CharacterSet",Ce.IDENTIFICATION_FIELD_NAME="Identification",Ce.IDENTIFICATION_FIELD_NAME_NORMALIZED="SEPA.Identification",Ce.INFORMATION_FIELD_NAME="Information",Ce.INFORMATION_FIELD_NAME_NORMALIZED="SEPA.Information",Ce.PURPOSE_FIELD_NAME="Purpose",Ce.PURPOSE_FIELD_NAME_NORMALIZED="SEPA.Purpose",Ce.RECEIVER_BIC_FIELD_NAME="ReceiverBIC",Ce.RECEIVER_BIC_FIELD_NAME_NORMALIZED="SEPA.ReceiverBIC",Ce.RECEIVER_IBAN_FIELD_NAME="ReceiverIBAN",Ce.RECEIVER_IBAN_FIELD_NAME_NORMALIZED="SEPA.ReceiverIBAN",Ce.RECEIVER_NAME_FIELD_NAME="ReceiverName",Ce.RECEIVER_NAME_FIELD_NAME_NORMALIZED="SEPA.ReceiverName",Ce.REMITTANCE_FIELD_NAME="Remittance",Ce.REMITTANCE_FIELD_NAME_NORMALIZED="SEPA.Remittance",Ce.SERVICE_TAG_FIELD_NAME="ServiceTag",Ce.SERVICE_TAG_FIELD_NAME_NORMALIZED="SEPA.ServiceTag",Ce.VERSION_FIELD_NAME="Version",Ce.VERSION_FIELD_NAME_NORMALIZED="SEPA.Version";class _e{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return _e.DOCUMENT_TYPE}get accident(){return this.document.fields.find((e=>"Accident"===e.type.name))}get assignedToAccidentInsuranceDoctor(){return this.document.fields.find((e=>"AssignedToAccidentInsuranceDoctor"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get childNeedsCareFrom(){return this.document.fields.find((e=>"ChildNeedsCareFrom"===e.type.name))}get childNeedsCareUntil(){return this.document.fields.find((e=>"ChildNeedsCareUntil"===e.type.name))}get diagnose(){return this.document.fields.find((e=>"Diagnose"===e.type.name))}get diagnosedOn(){return this.document.fields.find((e=>"DiagnosedOn"===e.type.name))}get doctorNumber(){return this.document.fields.find((e=>"DoctorNumber"===e.type.name))}get documentDate(){return this.document.fields.find((e=>"DocumentDate"===e.type.name))}get firstName(){return this.document.fields.find((e=>"FirstName"===e.type.name))}get healthInsuranceNumber(){return this.document.fields.find((e=>"HealthInsuranceNumber"===e.type.name))}get incapableOfWorkSince(){return this.document.fields.find((e=>"IncapableOfWorkSince"===e.type.name))}get incapableOfWorkUntil(){return this.document.fields.find((e=>"IncapableOfWorkUntil"===e.type.name))}get initialCertificate(){return this.document.fields.find((e=>"InitialCertificate"===e.type.name))}get insuredPersonNumber(){return this.document.fields.find((e=>"InsuredPersonNumber"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get placeOfOperationNumber(){return this.document.fields.find((e=>"PlaceOfOperationNumber"===e.type.name))}get renewedCertificate(){return this.document.fields.find((e=>"RenewedCertificate"===e.type.name))}get requiresCare(){return this.document.fields.find((e=>"RequiresCare"===e.type.name))}get status(){return this.document.fields.find((e=>"Status"===e.type.name))}get workAccident(){return this.document.fields.find((e=>"WorkAccident"===e.type.name))}}_e.DOCUMENT_TYPE="MedicalCertificate",_e.ACCIDENT_FIELD_NAME="Accident",_e.ACCIDENT_FIELD_NAME_NORMALIZED="MedicalCertificate.Accident",_e.ASSIGNED_TO_ACCIDENT_INSURANCE_DOCTOR_FIELD_NAME="AssignedToAccidentInsuranceDoctor",_e.ASSIGNED_TO_ACCIDENT_INSURANCE_DOCTOR_FIELD_NAME_NORMALIZED="MedicalCertificate.AssignedToAccidentInsuranceDoctor",_e.BIRTH_DATE_FIELD_NAME="BirthDate",_e.BIRTH_DATE_FIELD_NAME_NORMALIZED="MedicalCertificate.BirthDate",_e.CHILD_NEEDS_CARE_FROM_FIELD_NAME="ChildNeedsCareFrom",_e.CHILD_NEEDS_CARE_FROM_FIELD_NAME_NORMALIZED="MedicalCertificate.ChildNeedsCareFrom",_e.CHILD_NEEDS_CARE_UNTIL_FIELD_NAME="ChildNeedsCareUntil",_e.CHILD_NEEDS_CARE_UNTIL_FIELD_NAME_NORMALIZED="MedicalCertificate.ChildNeedsCareUntil",_e.DIAGNOSE_FIELD_NAME="Diagnose",_e.DIAGNOSE_FIELD_NAME_NORMALIZED="MedicalCertificate.Diagnose",_e.DIAGNOSED_ON_FIELD_NAME="DiagnosedOn",_e.DIAGNOSED_ON_FIELD_NAME_NORMALIZED="MedicalCertificate.DiagnosedOn",_e.DOCTOR_NUMBER_FIELD_NAME="DoctorNumber",_e.DOCTOR_NUMBER_FIELD_NAME_NORMALIZED="MedicalCertificate.DoctorNumber",_e.DOCUMENT_DATE_FIELD_NAME="DocumentDate",_e.DOCUMENT_DATE_FIELD_NAME_NORMALIZED="MedicalCertificate.DocumentDate",_e.FIRST_NAME_FIELD_NAME="FirstName",_e.FIRST_NAME_FIELD_NAME_NORMALIZED="MedicalCertificate.FirstName",_e.HEALTH_INSURANCE_NUMBER_FIELD_NAME="HealthInsuranceNumber",_e.HEALTH_INSURANCE_NUMBER_FIELD_NAME_NORMALIZED="MedicalCertificate.HealthInsuranceNumber",_e.INCAPABLE_OF_WORK_SINCE_FIELD_NAME="IncapableOfWorkSince",_e.INCAPABLE_OF_WORK_SINCE_FIELD_NAME_NORMALIZED="MedicalCertificate.IncapableOfWorkSince",_e.INCAPABLE_OF_WORK_UNTIL_FIELD_NAME="IncapableOfWorkUntil",_e.INCAPABLE_OF_WORK_UNTIL_FIELD_NAME_NORMALIZED="MedicalCertificate.IncapableOfWorkUntil",_e.INITIAL_CERTIFICATE_FIELD_NAME="InitialCertificate",_e.INITIAL_CERTIFICATE_FIELD_NAME_NORMALIZED="MedicalCertificate.InitialCertificate",_e.INSURED_PERSON_NUMBER_FIELD_NAME="InsuredPersonNumber",_e.INSURED_PERSON_NUMBER_FIELD_NAME_NORMALIZED="MedicalCertificate.InsuredPersonNumber",_e.LAST_NAME_FIELD_NAME="LastName",_e.LAST_NAME_FIELD_NAME_NORMALIZED="MedicalCertificate.LastName",_e.PLACE_OF_OPERATION_NUMBER_FIELD_NAME="PlaceOfOperationNumber",_e.PLACE_OF_OPERATION_NUMBER_FIELD_NAME_NORMALIZED="MedicalCertificate.PlaceOfOperationNumber",_e.RENEWED_CERTIFICATE_FIELD_NAME="RenewedCertificate",_e.RENEWED_CERTIFICATE_FIELD_NAME_NORMALIZED="MedicalCertificate.RenewedCertificate",_e.REQUIRES_CARE_FIELD_NAME="RequiresCare",_e.REQUIRES_CARE_FIELD_NAME_NORMALIZED="MedicalCertificate.RequiresCare",_e.STATUS_FIELD_NAME="Status",_e.STATUS_FIELD_NAME_NORMALIZED="MedicalCertificate.Status",_e.WORK_ACCIDENT_FIELD_NAME="WorkAccident",_e.WORK_ACCIDENT_FIELD_NAME_NORMALIZED="MedicalCertificate.WorkAccident";class De{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return De.DOCUMENT_TYPE}get version(){const e=this.document.children.find((e=>"Version"===e.type.name));return new De.Version(e)}get sources(){return this.document.children.filter((e=>"Source"===e.type.name)).map((e=>new De.Source(e)))}get kind(){const e=this.document.children.find((e=>"Kind"===e.type.name));return e?new De.Kind(e):void 0}get xmls(){return this.document.children.filter((e=>"XML"===e.type.name)).map((e=>new De.XML(e)))}get name(){const e=this.document.children.find((e=>"Name"===e.type.name));return e?new De.Name(e):void 0}get formattedName(){const e=this.document.children.find((e=>"FormattedName"===e.type.name));return e?new De.FormattedName(e):void 0}get nicknames(){return this.document.children.filter((e=>"Nickname"===e.type.name)).map((e=>new De.Nickname(e)))}get birthday(){const e=this.document.children.find((e=>"Birthday"===e.type.name));return e?new De.Birthday(e):void 0}get anniversary(){const e=this.document.children.find((e=>"Anniversary"===e.type.name));return e?new De.Anniversary(e):void 0}get gender(){const e=this.document.children.find((e=>"Gender"===e.type.name));return e?new De.Gender(e):void 0}get deliveryAddresses(){return this.document.children.filter((e=>"DeliveryAddress"===e.type.name)).map((e=>new De.DeliveryAddress(e)))}get labels(){return this.document.children.filter((e=>"Label"===e.type.name)).map((e=>new De.Label(e)))}get photos(){return this.document.children.filter((e=>"Photo"===e.type.name)).map((e=>new De.Photo(e)))}get telephoneNumbers(){return this.document.children.filter((e=>"TelephoneNumber"===e.type.name)).map((e=>new De.TelephoneNumber(e)))}get emails(){return this.document.children.filter((e=>"Email"===e.type.name)).map((e=>new De.Email(e)))}get impps(){return this.document.children.filter((e=>"IMPP"===e.type.name)).map((e=>new De.IMPP(e)))}get languages(){return this.document.children.filter((e=>"Language"===e.type.name)).map((e=>new De.Language(e)))}get timeZones(){return this.document.children.filter((e=>"TimeZone"===e.type.name)).map((e=>new De.TimeZone(e)))}get geoLocations(){return this.document.children.filter((e=>"GeoLocation"===e.type.name)).map((e=>new De.GeoLocation(e)))}get titles(){return this.document.children.filter((e=>"Title"===e.type.name)).map((e=>new De.Title(e)))}get roles(){return this.document.children.filter((e=>"Role"===e.type.name)).map((e=>new De.Role(e)))}get logos(){return this.document.children.filter((e=>"Logo"===e.type.name)).map((e=>new De.Logo(e)))}get agents(){return this.document.children.filter((e=>"Agent"===e.type.name)).map((e=>new De.Agent(e)))}get organisations(){return this.document.children.filter((e=>"Organisation"===e.type.name)).map((e=>new De.Organisation(e)))}get members(){return this.document.children.filter((e=>"Member"===e.type.name)).map((e=>new De.Member(e)))}get relateds(){return this.document.children.filter((e=>"Related"===e.type.name)).map((e=>new De.Related(e)))}get categories(){return this.document.children.filter((e=>"Category"===e.type.name)).map((e=>new De.Category(e)))}get notes(){return this.document.children.filter((e=>"Note"===e.type.name)).map((e=>new De.Note(e)))}get productId(){const e=this.document.children.find((e=>"ProductId"===e.type.name));return e?new De.ProductId(e):void 0}get revision(){const e=this.document.children.find((e=>"Revision"===e.type.name));return e?new De.Revision(e):void 0}get sounds(){return this.document.children.filter((e=>"Sound"===e.type.name)).map((e=>new De.Sound(e)))}get uid(){const e=this.document.children.find((e=>"UID"===e.type.name));return e?new De.UID(e):void 0}get clientPIDMaps(){return this.document.children.filter((e=>"ClientPIDMap"===e.type.name)).map((e=>new De.ClientPIDMap(e)))}get urls(){return this.document.children.filter((e=>"URL"===e.type.name)).map((e=>new De.URL(e)))}get publicKeys(){return this.document.children.filter((e=>"PublicKey"===e.type.name)).map((e=>new De.PublicKey(e)))}get busyTimeURLs(){return this.document.children.filter((e=>"BusyTimeURL"===e.type.name)).map((e=>new De.BusyTimeURL(e)))}get calendarURIForRequestss(){return this.document.children.filter((e=>"CalendarURIForRequests"===e.type.name)).map((e=>new De.CalendarURIForRequests(e)))}get calendarURIs(){return this.document.children.filter((e=>"CalendarURI"===e.type.name)).map((e=>new De.CalendarURI(e)))}get sortString(){const e=this.document.children.find((e=>"SortString"===e.type.name));return e?new De.SortString(e):void 0}get classification(){const e=this.document.children.find((e=>"Classification"===e.type.name));return e?new De.Classification(e):void 0}get customs(){return this.document.children.filter((e=>"Custom"===e.type.name)).map((e=>new De.Custom(e)))}}De.DOCUMENT_TYPE="VCard",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get rawValue(){return this.document.fields.find((e=>"RawValue"===e.type.name))}get typeModifiers(){return this.document.fields.filter((e=>"TypeModifier"===e.type.name))}get values(){return this.document.fields.filter((e=>"Value"===e.type.name))}}t.RAW_VALUE_FIELD_NAME="RawValue",t.RAW_VALUE_FIELD_NAME_NORMALIZED="VCard.Entry.RawValue",t.TYPE_MODIFIER_FIELD_NAME="TypeModifier",t.TYPE_MODIFIER_FIELD_NAME_NORMALIZED="VCard.Entry.TypeModifier",t.VALUE_FIELD_NAME="Value",t.VALUE_FIELD_NAME_NORMALIZED="VCard.Entry.Value",e.Entry=t;class n extends t{constructor(e){super(e)}requiredDocumentType(){return e.Version.DOCUMENT_TYPE}}n.DOCUMENT_TYPE="Version",e.Version=n;class i extends t{constructor(e){super(e)}requiredDocumentType(){return e.Source.DOCUMENT_TYPE}}i.DOCUMENT_TYPE="Source",e.Source=i;class r extends t{constructor(e){super(e)}requiredDocumentType(){return e.Kind.DOCUMENT_TYPE}}r.DOCUMENT_TYPE="Kind",e.Kind=r;class o extends t{constructor(e){super(e)}requiredDocumentType(){return e.XML.DOCUMENT_TYPE}}o.DOCUMENT_TYPE="XML",e.XML=o;class a extends t{constructor(e){super(e)}requiredDocumentType(){return e.Name.DOCUMENT_TYPE}}a.DOCUMENT_TYPE="Name",e.Name=a;class s extends t{constructor(e){super(e)}requiredDocumentType(){return e.FormattedName.DOCUMENT_TYPE}}s.DOCUMENT_TYPE="FormattedName",e.FormattedName=s;class c extends t{constructor(e){super(e)}requiredDocumentType(){return e.Nickname.DOCUMENT_TYPE}}c.DOCUMENT_TYPE="Nickname",e.Nickname=c;class l extends t{constructor(e){super(e)}requiredDocumentType(){return e.Birthday.DOCUMENT_TYPE}}l.DOCUMENT_TYPE="Birthday",e.Birthday=l;class u extends t{constructor(e){super(e)}requiredDocumentType(){return e.Anniversary.DOCUMENT_TYPE}}u.DOCUMENT_TYPE="Anniversary",e.Anniversary=u;class d extends t{constructor(e){super(e)}requiredDocumentType(){return e.Gender.DOCUMENT_TYPE}}d.DOCUMENT_TYPE="Gender",e.Gender=d;class m extends t{constructor(e){super(e)}requiredDocumentType(){return e.DeliveryAddress.DOCUMENT_TYPE}}m.DOCUMENT_TYPE="DeliveryAddress",e.DeliveryAddress=m;class h extends t{constructor(e){super(e)}requiredDocumentType(){return e.Label.DOCUMENT_TYPE}}h.DOCUMENT_TYPE="Label",e.Label=h;class p extends t{constructor(e){super(e)}requiredDocumentType(){return e.Photo.DOCUMENT_TYPE}}p.DOCUMENT_TYPE="Photo",e.Photo=p;class E extends t{constructor(e){super(e)}requiredDocumentType(){return e.TelephoneNumber.DOCUMENT_TYPE}}E.DOCUMENT_TYPE="TelephoneNumber",e.TelephoneNumber=E;class A extends t{constructor(e){super(e)}requiredDocumentType(){return e.Email.DOCUMENT_TYPE}}A.DOCUMENT_TYPE="Email",e.Email=A;class g extends t{constructor(e){super(e)}requiredDocumentType(){return e.IMPP.DOCUMENT_TYPE}}g.DOCUMENT_TYPE="IMPP",e.IMPP=g;class f extends t{constructor(e){super(e)}requiredDocumentType(){return e.Language.DOCUMENT_TYPE}}f.DOCUMENT_TYPE="Language",e.Language=f;class C extends t{constructor(e){super(e)}requiredDocumentType(){return e.TimeZone.DOCUMENT_TYPE}}C.DOCUMENT_TYPE="TimeZone",e.TimeZone=C;class _ extends t{constructor(e){super(e)}requiredDocumentType(){return e.GeoLocation.DOCUMENT_TYPE}}_.DOCUMENT_TYPE="GeoLocation",e.GeoLocation=_;class D extends t{constructor(e){super(e)}requiredDocumentType(){return e.Title.DOCUMENT_TYPE}}D.DOCUMENT_TYPE="Title",e.Title=D;class y extends t{constructor(e){super(e)}requiredDocumentType(){return e.Role.DOCUMENT_TYPE}}y.DOCUMENT_TYPE="Role",e.Role=y;class I extends t{constructor(e){super(e)}requiredDocumentType(){return e.Logo.DOCUMENT_TYPE}}I.DOCUMENT_TYPE="Logo",e.Logo=I;class v extends t{constructor(e){super(e)}requiredDocumentType(){return e.Agent.DOCUMENT_TYPE}}v.DOCUMENT_TYPE="Agent",e.Agent=v;class N extends t{constructor(e){super(e)}requiredDocumentType(){return e.Organisation.DOCUMENT_TYPE}}N.DOCUMENT_TYPE="Organisation",e.Organisation=N;class S extends t{constructor(e){super(e)}requiredDocumentType(){return e.Member.DOCUMENT_TYPE}}S.DOCUMENT_TYPE="Member",e.Member=S;class b extends t{constructor(e){super(e)}requiredDocumentType(){return e.Related.DOCUMENT_TYPE}}b.DOCUMENT_TYPE="Related",e.Related=b;class M extends t{constructor(e){super(e)}requiredDocumentType(){return e.Category.DOCUMENT_TYPE}}M.DOCUMENT_TYPE="Category",e.Category=M;class L extends t{constructor(e){super(e)}requiredDocumentType(){return e.Note.DOCUMENT_TYPE}}L.DOCUMENT_TYPE="Note",e.Note=L;class R extends t{constructor(e){super(e)}requiredDocumentType(){return e.ProductId.DOCUMENT_TYPE}}R.DOCUMENT_TYPE="ProductId",e.ProductId=R;class T extends t{constructor(e){super(e)}requiredDocumentType(){return e.Revision.DOCUMENT_TYPE}}T.DOCUMENT_TYPE="Revision",e.Revision=T;class O extends t{constructor(e){super(e)}requiredDocumentType(){return e.Sound.DOCUMENT_TYPE}}O.DOCUMENT_TYPE="Sound",e.Sound=O;class w extends t{constructor(e){super(e)}requiredDocumentType(){return e.UID.DOCUMENT_TYPE}}w.DOCUMENT_TYPE="UID",e.UID=w;class F extends t{constructor(e){super(e)}requiredDocumentType(){return e.ClientPIDMap.DOCUMENT_TYPE}}F.DOCUMENT_TYPE="ClientPIDMap",e.ClientPIDMap=F;class B extends t{constructor(e){super(e)}requiredDocumentType(){return e.URL.DOCUMENT_TYPE}}B.DOCUMENT_TYPE="URL",e.URL=B;class P extends t{constructor(e){super(e)}requiredDocumentType(){return e.PublicKey.DOCUMENT_TYPE}}P.DOCUMENT_TYPE="PublicKey",e.PublicKey=P;class x extends t{constructor(e){super(e)}requiredDocumentType(){return e.BusyTimeURL.DOCUMENT_TYPE}}x.DOCUMENT_TYPE="BusyTimeURL",e.BusyTimeURL=x;class k extends t{constructor(e){super(e)}requiredDocumentType(){return e.CalendarURIForRequests.DOCUMENT_TYPE}}k.DOCUMENT_TYPE="CalendarURIForRequests",e.CalendarURIForRequests=k;class V extends t{constructor(e){super(e)}requiredDocumentType(){return e.CalendarURI.DOCUMENT_TYPE}}V.DOCUMENT_TYPE="CalendarURI",e.CalendarURI=V;class U extends t{constructor(e){super(e)}requiredDocumentType(){return e.SortString.DOCUMENT_TYPE}}U.DOCUMENT_TYPE="SortString",e.SortString=U;class Z extends t{constructor(e){super(e)}requiredDocumentType(){return e.Classification.DOCUMENT_TYPE}}Z.DOCUMENT_TYPE="Classification",e.Classification=Z;class W extends t{constructor(e){super(e)}requiredDocumentType(){return e.Custom.DOCUMENT_TYPE}}W.DOCUMENT_TYPE="Custom",e.Custom=W}(De||(De={}));class ye{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ye.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get birthDate(){return this.document.fields.find((e=>"BirthDate"===e.type.name))}get cardExpiry(){return this.document.fields.find((e=>"CardExpiry"===e.type.name))}get cardNumber(){return this.document.fields.find((e=>"CardNumber"===e.type.name))}get city(){return this.document.fields.find((e=>"City"===e.type.name))}get errorControlCode(){return this.document.fields.find((e=>"ErrorControlCode"===e.type.name))}get eyeColor(){return this.document.fields.find((e=>"EyeColor"===e.type.name))}get givenNames(){return this.document.fields.find((e=>"GivenNames"===e.type.name))}get hairColor(){return this.document.fields.find((e=>"HairColor"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get lastName(){return this.document.fields.find((e=>"LastName"===e.type.name))}get personalHealthNumber(){return this.document.fields.find((e=>"PersonalHealthNumber"===e.type.name))}get postalCode(){return this.document.fields.find((e=>"PostalCode"===e.type.name))}get province(){return this.document.fields.find((e=>"Province"===e.type.name))}get provinceCode(){return this.document.fields.find((e=>"ProvinceCode"===e.type.name))}get securityFunction(){return this.document.fields.find((e=>"SecurityFunction"===e.type.name))}get securityVersion(){return this.document.fields.find((e=>"SecurityVersion"===e.type.name))}get sex(){return this.document.fields.find((e=>"Sex"===e.type.name))}get version(){return this.document.fields.find((e=>"Version"===e.type.name))}get weight(){return this.document.fields.find((e=>"Weight"===e.type.name))}}ye.DOCUMENT_TYPE="BritishColumbiaDriverLicense",ye.ADDRESS_FIELD_NAME="Address",ye.ADDRESS_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Address",ye.BIRTH_DATE_FIELD_NAME="BirthDate",ye.BIRTH_DATE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.BirthDate",ye.CARD_EXPIRY_FIELD_NAME="CardExpiry",ye.CARD_EXPIRY_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.CardExpiry",ye.CARD_NUMBER_FIELD_NAME="CardNumber",ye.CARD_NUMBER_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.CardNumber",ye.CITY_FIELD_NAME="City",ye.CITY_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.City",ye.ERROR_CONTROL_CODE_FIELD_NAME="ErrorControlCode",ye.ERROR_CONTROL_CODE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.ErrorControlCode",ye.EYE_COLOR_FIELD_NAME="EyeColor",ye.EYE_COLOR_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.EyeColor",ye.GIVEN_NAMES_FIELD_NAME="GivenNames",ye.GIVEN_NAMES_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.GivenNames",ye.HAIR_COLOR_FIELD_NAME="HairColor",ye.HAIR_COLOR_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.HairColor",ye.HEIGHT_FIELD_NAME="Height",ye.HEIGHT_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Height",ye.LAST_NAME_FIELD_NAME="LastName",ye.LAST_NAME_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.LastName",ye.PERSONAL_HEALTH_NUMBER_FIELD_NAME="PersonalHealthNumber",ye.PERSONAL_HEALTH_NUMBER_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.PersonalHealthNumber",ye.POSTAL_CODE_FIELD_NAME="PostalCode",ye.POSTAL_CODE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.PostalCode",ye.PROVINCE_FIELD_NAME="Province",ye.PROVINCE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Province",ye.PROVINCE_CODE_FIELD_NAME="ProvinceCode",ye.PROVINCE_CODE_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.ProvinceCode",ye.SECURITY_FUNCTION_FIELD_NAME="SecurityFunction",ye.SECURITY_FUNCTION_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.SecurityFunction",ye.SECURITY_VERSION_FIELD_NAME="SecurityVersion",ye.SECURITY_VERSION_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.SecurityVersion",ye.SEX_FIELD_NAME="Sex",ye.SEX_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Sex",ye.VERSION_FIELD_NAME="Version",ye.VERSION_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Version",ye.WEIGHT_FIELD_NAME="Weight",ye.WEIGHT_FIELD_NAME_NORMALIZED="BritishColumbiaDriverLicense.Weight";class Ie{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Ie.DOCUMENT_TYPE}get issuerIdentificationNumber(){return this.document.fields.find((e=>"IssuerIdentificationNumber"===e.type.name))}get jurisdictionVersionNumber(){return this.document.fields.find((e=>"JurisdictionVersionNumber"===e.type.name))}get version(){return this.document.fields.find((e=>"Version"===e.type.name))}get titleData(){const e=this.document.children.find((e=>"TitleData"===e.type.name));return e?new Ie.TitleData(e):void 0}get registrationData(){const e=this.document.children.find((e=>"RegistrationData"===e.type.name));return e?new Ie.RegistrationData(e):void 0}get motorCarrierData(){const e=this.document.children.find((e=>"MotorCarrierData"===e.type.name));return e?new Ie.MotorCarrierData(e):void 0}get registrantAndVehicleData(){const e=this.document.children.find((e=>"RegistrantAndVehicleData"===e.type.name));return e?new Ie.RegistrantAndVehicleData(e):void 0}get vehicleOwnerData(){const e=this.document.children.find((e=>"VehicleOwnerData"===e.type.name));return e?new Ie.VehicleOwnerData(e):void 0}get vehicleData(){const e=this.document.children.find((e=>"VehicleData"===e.type.name));return e?new Ie.VehicleData(e):void 0}get vehicleSafetyInspectionData(){const e=this.document.children.find((e=>"VehicleSafetyInspectionData"===e.type.name));return e?new Ie.VehicleSafetyInspectionData(e):void 0}get driverLicense(){const e=this.document.children.find((e=>"DriverLicense"===e.type.name));return e?new Ie.DriverLicense(e):void 0}get idCard(){const e=this.document.children.find((e=>"IDCard"===e.type.name));return e?new Ie.IDCard(e):void 0}get enhancedDriverLicense(){const e=this.document.children.find((e=>"EnhancedDriverLicense"===e.type.name));return e?new Ie.EnhancedDriverLicense(e):void 0}get rawDocument(){const e=this.document.children.find((e=>"RawDocument"===e.type.name));return new Ie.RawDocument(e)}}Ie.DOCUMENT_TYPE="AAMVA",Ie.ISSUER_IDENTIFICATION_NUMBER_FIELD_NAME="IssuerIdentificationNumber",Ie.ISSUER_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.IssuerIdentificationNumber",Ie.JURISDICTION_VERSION_NUMBER_FIELD_NAME="JurisdictionVersionNumber",Ie.JURISDICTION_VERSION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.JurisdictionVersionNumber",Ie.VERSION_FIELD_NAME="Version",Ie.VERSION_FIELD_NAME_NORMALIZED="AAMVA.Version",function(e){class t{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.TitleData.DOCUMENT_TYPE}get addressCity(){return this.document.fields.find((e=>"AddressCity"===e.type.name))}get addressJurisdictionCode(){return this.document.fields.find((e=>"AddressJurisdictionCode"===e.type.name))}get addressStreet(){return this.document.fields.find((e=>"AddressStreet"===e.type.name))}get addressZipCode(){return this.document.fields.find((e=>"AddressZipCode"===e.type.name))}get businessName(){return this.document.fields.find((e=>"BusinessName"===e.type.name))}get familyName(){return this.document.fields.find((e=>"FamilyName"===e.type.name))}get firstLienHolderId(){return this.document.fields.find((e=>"FirstLienHolderId"===e.type.name))}get firstLienHolderName(){return this.document.fields.find((e=>"FirstLienHolderName"===e.type.name))}get givenName(){return this.document.fields.find((e=>"GivenName"===e.type.name))}get newUsedIndicator(){return this.document.fields.find((e=>"NewUsedIndicator"===e.type.name))}get odometerDate(){return this.document.fields.find((e=>"OdometerDate"===e.type.name))}get odometerDisclosure(){return this.document.fields.find((e=>"OdometerDisclosure"===e.type.name))}get odometerReadingKilometers(){return this.document.fields.find((e=>"OdometerReadingKilometers"===e.type.name))}get odometerReadingMileage(){return this.document.fields.find((e=>"OdometerReadingMileage"===e.type.name))}get previousTitleNumber(){return this.document.fields.find((e=>"PreviousTitleNumber"===e.type.name))}get previousTitlingJurisdiction(){return this.document.fields.find((e=>"PreviousTitlingJurisdiction"===e.type.name))}get titleBrand(){return this.document.fields.find((e=>"TitleBrand"===e.type.name))}get titleIssueDate(){return this.document.fields.find((e=>"TitleIssueDate"===e.type.name))}get titleNumber(){return this.document.fields.find((e=>"TitleNumber"===e.type.name))}get titlingJurisdiction(){return this.document.fields.find((e=>"TitlingJurisdiction"===e.type.name))}get vehicleBodyStyle(){return this.document.fields.find((e=>"VehicleBodyStyle"===e.type.name))}get vehicleColor(){return this.document.fields.find((e=>"VehicleColor"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModel(){return this.document.fields.find((e=>"VehicleModel"===e.type.name))}get vehicleModelYear(){return this.document.fields.find((e=>"VehicleModelYear"===e.type.name))}get vehiclePurchaseDate(){return this.document.fields.find((e=>"VehiclePurchaseDate"===e.type.name))}}t.DOCUMENT_TYPE="TitleData",t.ADDRESS_CITY_FIELD_NAME="AddressCity",t.ADDRESS_CITY_FIELD_NAME_NORMALIZED="AAMVA.TitleData.AddressCity",t.ADDRESS_JURISDICTION_CODE_FIELD_NAME="AddressJurisdictionCode",t.ADDRESS_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.AddressJurisdictionCode",t.ADDRESS_STREET_FIELD_NAME="AddressStreet",t.ADDRESS_STREET_FIELD_NAME_NORMALIZED="AAMVA.TitleData.AddressStreet",t.ADDRESS_ZIP_CODE_FIELD_NAME="AddressZipCode",t.ADDRESS_ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.AddressZipCode",t.BUSINESS_NAME_FIELD_NAME="BusinessName",t.BUSINESS_NAME_FIELD_NAME_NORMALIZED="AAMVA.TitleData.BusinessName",t.FAMILY_NAME_FIELD_NAME="FamilyName",t.FAMILY_NAME_FIELD_NAME_NORMALIZED="AAMVA.TitleData.FamilyName",t.FIRST_LIEN_HOLDER_ID_FIELD_NAME="FirstLienHolderId",t.FIRST_LIEN_HOLDER_ID_FIELD_NAME_NORMALIZED="AAMVA.TitleData.FirstLienHolderId",t.FIRST_LIEN_HOLDER_NAME_FIELD_NAME="FirstLienHolderName",t.FIRST_LIEN_HOLDER_NAME_FIELD_NAME_NORMALIZED="AAMVA.TitleData.FirstLienHolderName",t.GIVEN_NAME_FIELD_NAME="GivenName",t.GIVEN_NAME_FIELD_NAME_NORMALIZED="AAMVA.TitleData.GivenName",t.NEW_USED_INDICATOR_FIELD_NAME="NewUsedIndicator",t.NEW_USED_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.TitleData.NewUsedIndicator",t.ODOMETER_DATE_FIELD_NAME="OdometerDate",t.ODOMETER_DATE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.OdometerDate",t.ODOMETER_DISCLOSURE_FIELD_NAME="OdometerDisclosure",t.ODOMETER_DISCLOSURE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.OdometerDisclosure",t.ODOMETER_READING_KILOMETERS_FIELD_NAME="OdometerReadingKilometers",t.ODOMETER_READING_KILOMETERS_FIELD_NAME_NORMALIZED="AAMVA.TitleData.OdometerReadingKilometers",t.ODOMETER_READING_MILEAGE_FIELD_NAME="OdometerReadingMileage",t.ODOMETER_READING_MILEAGE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.OdometerReadingMileage",t.PREVIOUS_TITLE_NUMBER_FIELD_NAME="PreviousTitleNumber",t.PREVIOUS_TITLE_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.TitleData.PreviousTitleNumber",t.PREVIOUS_TITLING_JURISDICTION_FIELD_NAME="PreviousTitlingJurisdiction",t.PREVIOUS_TITLING_JURISDICTION_FIELD_NAME_NORMALIZED="AAMVA.TitleData.PreviousTitlingJurisdiction",t.TITLE_BRAND_FIELD_NAME="TitleBrand",t.TITLE_BRAND_FIELD_NAME_NORMALIZED="AAMVA.TitleData.TitleBrand",t.TITLE_ISSUE_DATE_FIELD_NAME="TitleIssueDate",t.TITLE_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.TitleIssueDate",t.TITLE_NUMBER_FIELD_NAME="TitleNumber",t.TITLE_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.TitleData.TitleNumber",t.TITLING_JURISDICTION_FIELD_NAME="TitlingJurisdiction",t.TITLING_JURISDICTION_FIELD_NAME_NORMALIZED="AAMVA.TitleData.TitlingJurisdiction",t.VEHICLE_BODY_STYLE_FIELD_NAME="VehicleBodyStyle",t.VEHICLE_BODY_STYLE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleBodyStyle",t.VEHICLE_COLOR_FIELD_NAME="VehicleColor",t.VEHICLE_COLOR_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleColor",t.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME="VehicleIdentificationNumber",t.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleIdentificationNumber",t.VEHICLE_MAKE_FIELD_NAME="VehicleMake",t.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleMake",t.VEHICLE_MODEL_FIELD_NAME="VehicleModel",t.VEHICLE_MODEL_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleModel",t.VEHICLE_MODEL_YEAR_FIELD_NAME="VehicleModelYear",t.VEHICLE_MODEL_YEAR_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehicleModelYear",t.VEHICLE_PURCHASE_DATE_FIELD_NAME="VehiclePurchaseDate",t.VEHICLE_PURCHASE_DATE_FIELD_NAME_NORMALIZED="AAMVA.TitleData.VehiclePurchaseDate",e.TitleData=t;class n{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.RegistrationData.DOCUMENT_TYPE}get addressCity(){return this.document.fields.find((e=>"AddressCity"===e.type.name))}get addressJurisdictionCode(){return this.document.fields.find((e=>"AddressJurisdictionCode"===e.type.name))}get addressStreet(){return this.document.fields.find((e=>"AddressStreet"===e.type.name))}get addressZipCode(){return this.document.fields.find((e=>"AddressZipCode"===e.type.name))}get axles(){return this.document.fields.find((e=>"Axles"===e.type.name))}get businessName(){return this.document.fields.find((e=>"BusinessName"===e.type.name))}get fuel(){return this.document.fields.find((e=>"Fuel"===e.type.name))}get grossVehicleWeight(){return this.document.fields.find((e=>"GrossVehicleWeight"===e.type.name))}get registrantFamilyName(){return this.document.fields.find((e=>"RegistrantFamilyName"===e.type.name))}get registrantGivenName(){return this.document.fields.find((e=>"RegistrantGivenName"===e.type.name))}get registrationExpiryDate(){return this.document.fields.find((e=>"RegistrationExpiryDate"===e.type.name))}get registrationIssueDate(){return this.document.fields.find((e=>"RegistrationIssueDate"===e.type.name))}get registrationPlateNumber(){return this.document.fields.find((e=>"RegistrationPlateNumber"===e.type.name))}get registrationWindowStickerDecal(){return this.document.fields.find((e=>"RegistrationWindowStickerDecal"===e.type.name))}get registrationYear(){return this.document.fields.find((e=>"RegistrationYear"===e.type.name))}get vehicleBodyStyle(){return this.document.fields.find((e=>"VehicleBodyStyle"===e.type.name))}get vehicleColor(){return this.document.fields.find((e=>"VehicleColor"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModel(){return this.document.fields.find((e=>"VehicleModel"===e.type.name))}get vehicleModelYear(){return this.document.fields.find((e=>"VehicleModelYear"===e.type.name))}get vehicleUse(){return this.document.fields.find((e=>"VehicleUse"===e.type.name))}}n.DOCUMENT_TYPE="RegistrationData",n.ADDRESS_CITY_FIELD_NAME="AddressCity",n.ADDRESS_CITY_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.AddressCity",n.ADDRESS_JURISDICTION_CODE_FIELD_NAME="AddressJurisdictionCode",n.ADDRESS_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.AddressJurisdictionCode",n.ADDRESS_STREET_FIELD_NAME="AddressStreet",n.ADDRESS_STREET_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.AddressStreet",n.ADDRESS_ZIP_CODE_FIELD_NAME="AddressZipCode",n.ADDRESS_ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.AddressZipCode",n.AXLES_FIELD_NAME="Axles",n.AXLES_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.Axles",n.BUSINESS_NAME_FIELD_NAME="BusinessName",n.BUSINESS_NAME_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.BusinessName",n.FUEL_FIELD_NAME="Fuel",n.FUEL_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.Fuel",n.GROSS_VEHICLE_WEIGHT_FIELD_NAME="GrossVehicleWeight",n.GROSS_VEHICLE_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.GrossVehicleWeight",n.REGISTRANT_FAMILY_NAME_FIELD_NAME="RegistrantFamilyName",n.REGISTRANT_FAMILY_NAME_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrantFamilyName",n.REGISTRANT_GIVEN_NAME_FIELD_NAME="RegistrantGivenName",n.REGISTRANT_GIVEN_NAME_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrantGivenName",n.REGISTRATION_EXPIRY_DATE_FIELD_NAME="RegistrationExpiryDate",n.REGISTRATION_EXPIRY_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationExpiryDate",n.REGISTRATION_ISSUE_DATE_FIELD_NAME="RegistrationIssueDate",n.REGISTRATION_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationIssueDate",n.REGISTRATION_PLATE_NUMBER_FIELD_NAME="RegistrationPlateNumber",n.REGISTRATION_PLATE_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationPlateNumber",n.REGISTRATION_WINDOW_STICKER_DECAL_FIELD_NAME="RegistrationWindowStickerDecal",n.REGISTRATION_WINDOW_STICKER_DECAL_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationWindowStickerDecal",n.REGISTRATION_YEAR_FIELD_NAME="RegistrationYear",n.REGISTRATION_YEAR_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.RegistrationYear",n.VEHICLE_BODY_STYLE_FIELD_NAME="VehicleBodyStyle",n.VEHICLE_BODY_STYLE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleBodyStyle",n.VEHICLE_COLOR_FIELD_NAME="VehicleColor",n.VEHICLE_COLOR_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleColor",n.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME="VehicleIdentificationNumber",n.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleIdentificationNumber",n.VEHICLE_MAKE_FIELD_NAME="VehicleMake",n.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleMake",n.VEHICLE_MODEL_FIELD_NAME="VehicleModel",n.VEHICLE_MODEL_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleModel",n.VEHICLE_MODEL_YEAR_FIELD_NAME="VehicleModelYear",n.VEHICLE_MODEL_YEAR_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleModelYear",n.VEHICLE_USE_FIELD_NAME="VehicleUse",n.VEHICLE_USE_FIELD_NAME_NORMALIZED="AAMVA.RegistrationData.VehicleUse",e.RegistrationData=n;class i{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.MotorCarrierData.DOCUMENT_TYPE}get carrierName(){return this.document.fields.find((e=>"CarrierName"===e.type.name))}get city(){return this.document.fields.find((e=>"City"===e.type.name))}get jurisdiction(){return this.document.fields.find((e=>"Jurisdiction"===e.type.name))}get streetAddress(){return this.document.fields.find((e=>"StreetAddress"===e.type.name))}get usdotNumber(){return this.document.fields.find((e=>"USDOTNumber"===e.type.name))}get zip(){return this.document.fields.find((e=>"Zip"===e.type.name))}}i.DOCUMENT_TYPE="MotorCarrierData",i.CARRIER_NAME_FIELD_NAME="CarrierName",i.CARRIER_NAME_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.CarrierName",i.CITY_FIELD_NAME="City",i.CITY_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.City",i.JURISDICTION_FIELD_NAME="Jurisdiction",i.JURISDICTION_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.Jurisdiction",i.STREET_ADDRESS_FIELD_NAME="StreetAddress",i.STREET_ADDRESS_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.StreetAddress",i.USDOT_NUMBER_FIELD_NAME="USDOTNumber",i.USDOT_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.USDOTNumber",i.ZIP_FIELD_NAME="Zip",i.ZIP_FIELD_NAME_NORMALIZED="AAMVA.MotorCarrierData.Zip",e.MotorCarrierData=i;class r{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.RegistrantAndVehicleData.DOCUMENT_TYPE}get address(){return this.document.fields.find((e=>"Address"===e.type.name))}get baseJurisdictionRegisteredWeight(){return this.document.fields.find((e=>"BaseJurisdictionRegisteredWeight"===e.type.name))}get carrierNameRegistrant(){return this.document.fields.find((e=>"CarrierNameRegistrant"===e.type.name))}get city(){return this.document.fields.find((e=>"City"===e.type.name))}get grossVehicleWeight(){return this.document.fields.find((e=>"GrossVehicleWeight"===e.type.name))}get jurisdiction(){return this.document.fields.find((e=>"Jurisdiction"===e.type.name))}get modelYear(){return this.document.fields.find((e=>"ModelYear"===e.type.name))}get numberOfSeats(){return this.document.fields.find((e=>"NumberOfSeats"===e.type.name))}get registrationDecalNumber(){return this.document.fields.find((e=>"RegistrationDecalNumber"===e.type.name))}get registrationEnforcementDate(){return this.document.fields.find((e=>"RegistrationEnforcementDate"===e.type.name))}get registrationExpirationDate(){return this.document.fields.find((e=>"RegistrationExpirationDate"===e.type.name))}get registrationIssueDate(){return this.document.fields.find((e=>"RegistrationIssueDate"===e.type.name))}get registrationPlateNumber(){return this.document.fields.find((e=>"RegistrationPlateNumber"===e.type.name))}get registrationYear(){return this.document.fields.find((e=>"RegistrationYear"===e.type.name))}get typeOfVehicle(){return this.document.fields.find((e=>"TypeOfVehicle"===e.type.name))}get unitNumber(){return this.document.fields.find((e=>"UnitNumber"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get zipCode(){return this.document.fields.find((e=>"ZipCode"===e.type.name))}}r.DOCUMENT_TYPE="RegistrantAndVehicleData",r.ADDRESS_FIELD_NAME="Address",r.ADDRESS_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.Address",r.BASE_JURISDICTION_REGISTERED_WEIGHT_FIELD_NAME="BaseJurisdictionRegisteredWeight",r.BASE_JURISDICTION_REGISTERED_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.BaseJurisdictionRegisteredWeight",r.CARRIER_NAME_REGISTRANT_FIELD_NAME="CarrierNameRegistrant",r.CARRIER_NAME_REGISTRANT_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.CarrierNameRegistrant",r.CITY_FIELD_NAME="City",r.CITY_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.City",r.GROSS_VEHICLE_WEIGHT_FIELD_NAME="GrossVehicleWeight",r.GROSS_VEHICLE_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.GrossVehicleWeight",r.JURISDICTION_FIELD_NAME="Jurisdiction",r.JURISDICTION_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.Jurisdiction",r.MODEL_YEAR_FIELD_NAME="ModelYear",r.MODEL_YEAR_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.ModelYear",r.NUMBER_OF_SEATS_FIELD_NAME="NumberOfSeats",r.NUMBER_OF_SEATS_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.NumberOfSeats",r.REGISTRATION_DECAL_NUMBER_FIELD_NAME="RegistrationDecalNumber",r.REGISTRATION_DECAL_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationDecalNumber",r.REGISTRATION_ENFORCEMENT_DATE_FIELD_NAME="RegistrationEnforcementDate",r.REGISTRATION_ENFORCEMENT_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationEnforcementDate",r.REGISTRATION_EXPIRATION_DATE_FIELD_NAME="RegistrationExpirationDate",r.REGISTRATION_EXPIRATION_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationExpirationDate",r.REGISTRATION_ISSUE_DATE_FIELD_NAME="RegistrationIssueDate",r.REGISTRATION_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationIssueDate",r.REGISTRATION_PLATE_NUMBER_FIELD_NAME="RegistrationPlateNumber",r.REGISTRATION_PLATE_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationPlateNumber",r.REGISTRATION_YEAR_FIELD_NAME="RegistrationYear",r.REGISTRATION_YEAR_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.RegistrationYear",r.TYPE_OF_VEHICLE_FIELD_NAME="TypeOfVehicle",r.TYPE_OF_VEHICLE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.TypeOfVehicle",r.UNIT_NUMBER_FIELD_NAME="UnitNumber",r.UNIT_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.UnitNumber",r.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME="VehicleIdentificationNumber",r.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.VehicleIdentificationNumber",r.VEHICLE_MAKE_FIELD_NAME="VehicleMake",r.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.VehicleMake",r.ZIP_CODE_FIELD_NAME="ZipCode",r.ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.RegistrantAndVehicleData.ZipCode",e.RegistrantAndVehicleData=r;class o{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.VehicleOwnerData.DOCUMENT_TYPE}get firstOwnerIdNumber(){return this.document.fields.find((e=>"FirstOwnerIdNumber"===e.type.name))}get firstOwnerLastName(){return this.document.fields.find((e=>"FirstOwnerLastName"===e.type.name))}get firstOwnerLegalStatus(){return this.document.fields.find((e=>"FirstOwnerLegalStatus"===e.type.name))}get firstOwnerMiddleName(){return this.document.fields.find((e=>"FirstOwnerMiddleName"===e.type.name))}get firstOwnerName(){return this.document.fields.find((e=>"FirstOwnerName"===e.type.name))}get firstOwnerTotalName(){return this.document.fields.find((e=>"FirstOwnerTotalName"===e.type.name))}get mailingAddress1(){return this.document.fields.find((e=>"MailingAddress1"===e.type.name))}get mailingAddress2(){return this.document.fields.find((e=>"MailingAddress2"===e.type.name))}get mailingCity(){return this.document.fields.find((e=>"MailingCity"===e.type.name))}get mailingJurisdictionCode(){return this.document.fields.find((e=>"MailingJurisdictionCode"===e.type.name))}get mailingZipCode(){return this.document.fields.find((e=>"MailingZipCode"===e.type.name))}get residenceAddress1(){return this.document.fields.find((e=>"ResidenceAddress1"===e.type.name))}get residenceAddress2(){return this.document.fields.find((e=>"ResidenceAddress2"===e.type.name))}get residenceCity(){return this.document.fields.find((e=>"ResidenceCity"===e.type.name))}get residenceJurisdictionCode(){return this.document.fields.find((e=>"ResidenceJurisdictionCode"===e.type.name))}get residenceZipCode(){return this.document.fields.find((e=>"ResidenceZipCode"===e.type.name))}get secondOwnerIdNumber(){return this.document.fields.find((e=>"SecondOwnerIdNumber"===e.type.name))}get secondOwnerLastName(){return this.document.fields.find((e=>"SecondOwnerLastName"===e.type.name))}get secondOwnerLegalStatus(){return this.document.fields.find((e=>"SecondOwnerLegalStatus"===e.type.name))}get secondOwnerMiddleName(){return this.document.fields.find((e=>"SecondOwnerMiddleName"===e.type.name))}get secondOwnerName(){return this.document.fields.find((e=>"SecondOwnerName"===e.type.name))}get secondOwnerTotalName(){return this.document.fields.find((e=>"SecondOwnerTotalName"===e.type.name))}}o.DOCUMENT_TYPE="VehicleOwnerData",o.FIRST_OWNER_ID_NUMBER_FIELD_NAME="FirstOwnerIdNumber",o.FIRST_OWNER_ID_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerIdNumber",o.FIRST_OWNER_LAST_NAME_FIELD_NAME="FirstOwnerLastName",o.FIRST_OWNER_LAST_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerLastName",o.FIRST_OWNER_LEGAL_STATUS_FIELD_NAME="FirstOwnerLegalStatus",o.FIRST_OWNER_LEGAL_STATUS_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerLegalStatus",o.FIRST_OWNER_MIDDLE_NAME_FIELD_NAME="FirstOwnerMiddleName",o.FIRST_OWNER_MIDDLE_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerMiddleName",o.FIRST_OWNER_NAME_FIELD_NAME="FirstOwnerName",o.FIRST_OWNER_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerName",o.FIRST_OWNER_TOTAL_NAME_FIELD_NAME="FirstOwnerTotalName",o.FIRST_OWNER_TOTAL_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.FirstOwnerTotalName",o.MAILING_ADDRESS_1_FIELD_NAME="MailingAddress1",o.MAILING_ADDRESS_1_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingAddress1",o.MAILING_ADDRESS_2_FIELD_NAME="MailingAddress2",o.MAILING_ADDRESS_2_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingAddress2",o.MAILING_CITY_FIELD_NAME="MailingCity",o.MAILING_CITY_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingCity",o.MAILING_JURISDICTION_CODE_FIELD_NAME="MailingJurisdictionCode",o.MAILING_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingJurisdictionCode",o.MAILING_ZIP_CODE_FIELD_NAME="MailingZipCode",o.MAILING_ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.MailingZipCode",o.RESIDENCE_ADDRESS_1_FIELD_NAME="ResidenceAddress1",o.RESIDENCE_ADDRESS_1_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceAddress1",o.RESIDENCE_ADDRESS_2_FIELD_NAME="ResidenceAddress2",o.RESIDENCE_ADDRESS_2_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceAddress2",o.RESIDENCE_CITY_FIELD_NAME="ResidenceCity",o.RESIDENCE_CITY_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceCity",o.RESIDENCE_JURISDICTION_CODE_FIELD_NAME="ResidenceJurisdictionCode",o.RESIDENCE_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceJurisdictionCode",o.RESIDENCE_ZIP_CODE_FIELD_NAME="ResidenceZipCode",o.RESIDENCE_ZIP_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.ResidenceZipCode",o.SECOND_OWNER_ID_NUMBER_FIELD_NAME="SecondOwnerIdNumber",o.SECOND_OWNER_ID_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerIdNumber",o.SECOND_OWNER_LAST_NAME_FIELD_NAME="SecondOwnerLastName",o.SECOND_OWNER_LAST_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerLastName",o.SECOND_OWNER_LEGAL_STATUS_FIELD_NAME="SecondOwnerLegalStatus",o.SECOND_OWNER_LEGAL_STATUS_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerLegalStatus",o.SECOND_OWNER_MIDDLE_NAME_FIELD_NAME="SecondOwnerMiddleName",o.SECOND_OWNER_MIDDLE_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerMiddleName",o.SECOND_OWNER_NAME_FIELD_NAME="SecondOwnerName",o.SECOND_OWNER_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerName",o.SECOND_OWNER_TOTAL_NAME_FIELD_NAME="SecondOwnerTotalName",o.SECOND_OWNER_TOTAL_NAME_FIELD_NAME_NORMALIZED="AAMVA.VehicleOwnerData.SecondOwnerTotalName",e.VehicleOwnerData=o;class a{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.VehicleData.DOCUMENT_TYPE}get bodyStyle(){return this.document.fields.find((e=>"BodyStyle"===e.type.name))}get dateJunked(){return this.document.fields.find((e=>"DateJunked"===e.type.name))}get dateRecovered(){return this.document.fields.find((e=>"DateRecovered"===e.type.name))}get dateStolen(){return this.document.fields.find((e=>"DateStolen"===e.type.name))}get engineDisplacement(){return this.document.fields.find((e=>"EngineDisplacement"===e.type.name))}get engineSize(){return this.document.fields.find((e=>"EngineSize"===e.type.name))}get fuelType(){return this.document.fields.find((e=>"FuelType"===e.type.name))}get horsepower(){return this.document.fields.find((e=>"Horsepower"===e.type.name))}get iftaIndicator(){return this.document.fields.find((e=>"IFTAIndicator"===e.type.name))}get irpIndicator(){return this.document.fields.find((e=>"IRPIndicator"===e.type.name))}get junkedIndicator(){return this.document.fields.find((e=>"JunkedIndicator"===e.type.name))}get msrp(){return this.document.fields.find((e=>"MSRP"===e.type.name))}get majorCode(){return this.document.fields.find((e=>"MajorCode"===e.type.name))}get makeYear(){return this.document.fields.find((e=>"MakeYear"===e.type.name))}get manufactureGrossWeight(){return this.document.fields.find((e=>"ManufactureGrossWeight"===e.type.name))}get minorCode(){return this.document.fields.find((e=>"MinorCode"===e.type.name))}get numberOfAxles(){return this.document.fields.find((e=>"NumberOfAxles"===e.type.name))}get numberOfCylinders(){return this.document.fields.find((e=>"NumberOfCylinders"===e.type.name))}get numberOfDoors(){return this.document.fields.find((e=>"NumberOfDoors"===e.type.name))}get stolenIndicator(){return this.document.fields.find((e=>"StolenIndicator"===e.type.name))}get transmissionCode(){return this.document.fields.find((e=>"TransmissionCode"===e.type.name))}get unladenWeight(){return this.document.fields.find((e=>"UnladenWeight"===e.type.name))}get vltClacFromDate(){return this.document.fields.find((e=>"VLTClacFromDate"===e.type.name))}get vehicleIdNumber(){return this.document.fields.find((e=>"VehicleIdNumber"===e.type.name))}get vehicleIdentificationNumber(){return this.document.fields.find((e=>"VehicleIdentificationNumber"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModel(){return this.document.fields.find((e=>"VehicleModel"===e.type.name))}get vehicleStatusCode(){return this.document.fields.find((e=>"VehicleStatusCode"===e.type.name))}get vehicleTypeCode(){return this.document.fields.find((e=>"VehicleTypeCode"===e.type.name))}}a.DOCUMENT_TYPE="VehicleData",a.BODY_STYLE_FIELD_NAME="BodyStyle",a.BODY_STYLE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.BodyStyle",a.DATE_JUNKED_FIELD_NAME="DateJunked",a.DATE_JUNKED_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.DateJunked",a.DATE_RECOVERED_FIELD_NAME="DateRecovered",a.DATE_RECOVERED_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.DateRecovered",a.DATE_STOLEN_FIELD_NAME="DateStolen",a.DATE_STOLEN_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.DateStolen",a.ENGINE_DISPLACEMENT_FIELD_NAME="EngineDisplacement",a.ENGINE_DISPLACEMENT_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.EngineDisplacement",a.ENGINE_SIZE_FIELD_NAME="EngineSize",a.ENGINE_SIZE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.EngineSize",a.FUEL_TYPE_FIELD_NAME="FuelType",a.FUEL_TYPE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.FuelType",a.HORSEPOWER_FIELD_NAME="Horsepower",a.HORSEPOWER_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.Horsepower",a.IFTA_INDICATOR_FIELD_NAME="IFTAIndicator",a.IFTA_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.IFTAIndicator",a.IRP_INDICATOR_FIELD_NAME="IRPIndicator",a.IRP_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.IRPIndicator",a.JUNKED_INDICATOR_FIELD_NAME="JunkedIndicator",a.JUNKED_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.JunkedIndicator",a.MSRP_FIELD_NAME="MSRP",a.MSRP_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.MSRP",a.MAJOR_CODE_FIELD_NAME="MajorCode",a.MAJOR_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.MajorCode",a.MAKE_YEAR_FIELD_NAME="MakeYear",a.MAKE_YEAR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.MakeYear",a.MANUFACTURE_GROSS_WEIGHT_FIELD_NAME="ManufactureGrossWeight",a.MANUFACTURE_GROSS_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.ManufactureGrossWeight",a.MINOR_CODE_FIELD_NAME="MinorCode",a.MINOR_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.MinorCode",a.NUMBER_OF_AXLES_FIELD_NAME="NumberOfAxles",a.NUMBER_OF_AXLES_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.NumberOfAxles",a.NUMBER_OF_CYLINDERS_FIELD_NAME="NumberOfCylinders",a.NUMBER_OF_CYLINDERS_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.NumberOfCylinders",a.NUMBER_OF_DOORS_FIELD_NAME="NumberOfDoors",a.NUMBER_OF_DOORS_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.NumberOfDoors",a.STOLEN_INDICATOR_FIELD_NAME="StolenIndicator",a.STOLEN_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.StolenIndicator",a.TRANSMISSION_CODE_FIELD_NAME="TransmissionCode",a.TRANSMISSION_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.TransmissionCode",a.UNLADEN_WEIGHT_FIELD_NAME="UnladenWeight",a.UNLADEN_WEIGHT_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.UnladenWeight",a.VLT_CLAC_FROM_DATE_FIELD_NAME="VLTClacFromDate",a.VLT_CLAC_FROM_DATE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VLTClacFromDate",a.VEHICLE_ID_NUMBER_FIELD_NAME="VehicleIdNumber",a.VEHICLE_ID_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleIdNumber",a.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME="VehicleIdentificationNumber",a.VEHICLE_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleIdentificationNumber",a.VEHICLE_MAKE_FIELD_NAME="VehicleMake",a.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleMake",a.VEHICLE_MODEL_FIELD_NAME="VehicleModel",a.VEHICLE_MODEL_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleModel",a.VEHICLE_STATUS_CODE_FIELD_NAME="VehicleStatusCode",a.VEHICLE_STATUS_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleStatusCode",a.VEHICLE_TYPE_CODE_FIELD_NAME="VehicleTypeCode",a.VEHICLE_TYPE_CODE_FIELD_NAME_NORMALIZED="AAMVA.VehicleData.VehicleTypeCode",e.VehicleData=a;class s{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.VehicleSafetyInspectionData.DOCUMENT_TYPE}get inspectionAddress(){return this.document.fields.find((e=>"InspectionAddress"===e.type.name))}get inspectionAirPollutionDeviceConditions(){return this.document.fields.find((e=>"InspectionAirPollutionDeviceConditions"===e.type.name))}get inspectionFacilityIdentifier(){return this.document.fields.find((e=>"InspectionFacilityIdentifier"===e.type.name))}get inspectionFormOrStickerNumberCurrent(){return this.document.fields.find((e=>"InspectionFormOrStickerNumberCurrent"===e.type.name))}get inspectionFormOrStickerNumberPrevious(){return this.document.fields.find((e=>"InspectionFormOrStickerNumberPrevious"===e.type.name))}get inspectionSmogCertificateIndicator(){return this.document.fields.find((e=>"InspectionSmogCertificateIndicator"===e.type.name))}get inspectionStationNumber(){return this.document.fields.find((e=>"InspectionStationNumber"===e.type.name))}get inspectorIdentificationNumber(){return this.document.fields.find((e=>"InspectorIdentificationNumber"===e.type.name))}get odometerReadingAtInspection(){return this.document.fields.find((e=>"OdometerReadingAtInspection"===e.type.name))}get vehicleBodyType(){return this.document.fields.find((e=>"VehicleBodyType"===e.type.name))}get vehicleMake(){return this.document.fields.find((e=>"VehicleMake"===e.type.name))}get vehicleModelYear(){return this.document.fields.find((e=>"VehicleModelYear"===e.type.name))}}s.DOCUMENT_TYPE="VehicleSafetyInspectionData",s.INSPECTION_ADDRESS_FIELD_NAME="InspectionAddress",s.INSPECTION_ADDRESS_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionAddress",s.INSPECTION_AIR_POLLUTION_DEVICE_CONDITIONS_FIELD_NAME="InspectionAirPollutionDeviceConditions",s.INSPECTION_AIR_POLLUTION_DEVICE_CONDITIONS_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionAirPollutionDeviceConditions",s.INSPECTION_FACILITY_IDENTIFIER_FIELD_NAME="InspectionFacilityIdentifier",s.INSPECTION_FACILITY_IDENTIFIER_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionFacilityIdentifier",s.INSPECTION_FORM_OR_STICKER_NUMBER_CURRENT_FIELD_NAME="InspectionFormOrStickerNumberCurrent",s.INSPECTION_FORM_OR_STICKER_NUMBER_CURRENT_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionFormOrStickerNumberCurrent",s.INSPECTION_FORM_OR_STICKER_NUMBER_PREVIOUS_FIELD_NAME="InspectionFormOrStickerNumberPrevious",s.INSPECTION_FORM_OR_STICKER_NUMBER_PREVIOUS_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionFormOrStickerNumberPrevious",s.INSPECTION_SMOG_CERTIFICATE_INDICATOR_FIELD_NAME="InspectionSmogCertificateIndicator",s.INSPECTION_SMOG_CERTIFICATE_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionSmogCertificateIndicator",s.INSPECTION_STATION_NUMBER_FIELD_NAME="InspectionStationNumber",s.INSPECTION_STATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectionStationNumber",s.INSPECTOR_IDENTIFICATION_NUMBER_FIELD_NAME="InspectorIdentificationNumber",s.INSPECTOR_IDENTIFICATION_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.InspectorIdentificationNumber",s.ODOMETER_READING_AT_INSPECTION_FIELD_NAME="OdometerReadingAtInspection",s.ODOMETER_READING_AT_INSPECTION_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.OdometerReadingAtInspection",s.VEHICLE_BODY_TYPE_FIELD_NAME="VehicleBodyType",s.VEHICLE_BODY_TYPE_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.VehicleBodyType",s.VEHICLE_MAKE_FIELD_NAME="VehicleMake",s.VEHICLE_MAKE_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.VehicleMake",s.VEHICLE_MODEL_YEAR_FIELD_NAME="VehicleModelYear",s.VEHICLE_MODEL_YEAR_FIELD_NAME_NORMALIZED="AAMVA.VehicleSafetyInspectionData.VehicleModelYear",e.VehicleSafetyInspectionData=s;class c{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get addressCity(){return this.document.fields.find((e=>"AddressCity"===e.type.name))}get addressJurisdictionCode(){return this.document.fields.find((e=>"AddressJurisdictionCode"===e.type.name))}get addressPostalCode(){return this.document.fields.find((e=>"AddressPostalCode"===e.type.name))}get addressStreet1(){return this.document.fields.find((e=>"AddressStreet1"===e.type.name))}get addressStreet2(){return this.document.fields.find((e=>"AddressStreet2"===e.type.name))}get adultInformation(){return this.document.fields.find((e=>"AdultInformation"===e.type.name))}get aliasFamilyName(){return this.document.fields.find((e=>"AliasFamilyName"===e.type.name))}get aliasGivenName(){return this.document.fields.find((e=>"AliasGivenName"===e.type.name))}get aliasMiddleName(){return this.document.fields.find((e=>"AliasMiddleName"===e.type.name))}get aliasPrefixName(){return this.document.fields.find((e=>"AliasPrefixName"===e.type.name))}get aliasSuffixName(){return this.document.fields.find((e=>"AliasSuffixName"===e.type.name))}get cardRevisionDate(){return this.document.fields.find((e=>"CardRevisionDate"===e.type.name))}get complianceType(){return this.document.fields.find((e=>"ComplianceType"===e.type.name))}get countryIdentification(){return this.document.fields.find((e=>"CountryIdentification"===e.type.name))}get customerFamilyName(){return this.document.fields.find((e=>"CustomerFamilyName"===e.type.name))}get customerFirstName(){return this.document.fields.find((e=>"CustomerFirstName"===e.type.name))}get customerGivenNames(){return this.document.fields.find((e=>"CustomerGivenNames"===e.type.name))}get customerIdNumber(){return this.document.fields.find((e=>"CustomerIdNumber"===e.type.name))}get customerMiddleName(){return this.document.fields.find((e=>"CustomerMiddleName"===e.type.name))}get dateOfBirth(){return this.document.fields.find((e=>"DateOfBirth"===e.type.name))}get documentDiscriminator(){return this.document.fields.find((e=>"DocumentDiscriminator"===e.type.name))}get documentExpirationDate(){return this.document.fields.find((e=>"DocumentExpirationDate"===e.type.name))}get documentIssueDate(){return this.document.fields.find((e=>"DocumentIssueDate"===e.type.name))}get driverAliasDateOfBirthField(){return this.document.fields.find((e=>"DriverAliasDateOfBirthField"===e.type.name))}get driverAliasFirstName(){return this.document.fields.find((e=>"DriverAliasFirstName"===e.type.name))}get driverAliasLastName(){return this.document.fields.find((e=>"DriverAliasLastName"===e.type.name))}get driverAliasSocialSecurityNumber(){return this.document.fields.find((e=>"DriverAliasSocialSecurityNumber"===e.type.name))}get driverLastName(){return this.document.fields.find((e=>"DriverLastName"===e.type.name))}get driverLicenseClassificationCode(){return this.document.fields.find((e=>"DriverLicenseClassificationCode"===e.type.name))}get driverLicenseEndorsementsCode(){return this.document.fields.find((e=>"DriverLicenseEndorsementsCode"===e.type.name))}get driverLicenseName(){return this.document.fields.find((e=>"DriverLicenseName"===e.type.name))}get driverLicenseRestrictionCode(){return this.document.fields.find((e=>"DriverLicenseRestrictionCode"===e.type.name))}get driverNamePrefix(){return this.document.fields.find((e=>"DriverNamePrefix"===e.type.name))}get driverNameSuffix(){return this.document.fields.find((e=>"DriverNameSuffix"===e.type.name))}get driverPermitClassificationCode(){return this.document.fields.find((e=>"DriverPermitClassificationCode"===e.type.name))}get driverPermitEndorsementCode(){return this.document.fields.find((e=>"DriverPermitEndorsementCode"===e.type.name))}get driverPermitIssueDate(){return this.document.fields.find((e=>"DriverPermitIssueDate"===e.type.name))}get driverPermitRestrictionCode(){return this.document.fields.find((e=>"DriverPermitRestrictionCode"===e.type.name))}get driverResidenceCity(){return this.document.fields.find((e=>"DriverResidenceCity"===e.type.name))}get driverResidenceJurisdictionCode(){return this.document.fields.find((e=>"DriverResidenceJurisdictionCode"===e.type.name))}get driverResidencePostalCode(){return this.document.fields.find((e=>"DriverResidencePostalCode"===e.type.name))}get driverResidenceStreetAddress1(){return this.document.fields.find((e=>"DriverResidenceStreetAddress1"===e.type.name))}get driverResidenceStreetAddress2(){return this.document.fields.find((e=>"DriverResidenceStreetAddress2"===e.type.name))}get familyNameTruncation(){return this.document.fields.find((e=>"FamilyNameTruncation"===e.type.name))}get federalCommercialVehicleCodes(){return this.document.fields.find((e=>"FederalCommercialVehicleCodes"===e.type.name))}get firstNameTruncation(){return this.document.fields.find((e=>"FirstNameTruncation"===e.type.name))}get hazmatEndorsementExpirationDate(){return this.document.fields.find((e=>"HAZMATEndorsementExpirationDate"===e.type.name))}get hairColor(){return this.document.fields.find((e=>"HairColor"===e.type.name))}get height(){return this.document.fields.find((e=>"Height"===e.type.name))}get inventoryControlNumber(){return this.document.fields.find((e=>"InventoryControlNumber"===e.type.name))}get issueTimeStamp(){return this.document.fields.find((e=>"IssueTimeStamp"===e.type.name))}get jurisdictionSpecificEndorsementCodeDescription(){return this.document.fields.find((e=>"JurisdictionSpecificEndorsementCodeDescription"===e.type.name))}get jurisdictionSpecificEndorsementCodes(){return this.document.fields.find((e=>"JurisdictionSpecificEndorsementCodes"===e.type.name))}get jurisdictionSpecificRestrictionCodeDescription(){return this.document.fields.find((e=>"JurisdictionSpecificRestrictionCodeDescription"===e.type.name))}get jurisdictionSpecificRestrictionCodes(){return this.document.fields.find((e=>"JurisdictionSpecificRestrictionCodes"===e.type.name))}get jurisdictionSpecificVehicleClass(){return this.document.fields.find((e=>"JurisdictionSpecificVehicleClass"===e.type.name))}get jurisdictionSpecificVehicleClassificationDescription(){return this.document.fields.find((e=>"JurisdictionSpecificVehicleClassificationDescription"===e.type.name))}get limitedDurationDocumentIndicator(){return this.document.fields.find((e=>"LimitedDurationDocumentIndicator"===e.type.name))}get middleNameTruncation(){return this.document.fields.find((e=>"MiddleNameTruncation"===e.type.name))}get nameSuffix(){return this.document.fields.find((e=>"NameSuffix"===e.type.name))}get nonResidentIndicator(){return this.document.fields.find((e=>"NonResidentIndicator"===e.type.name))}get numberOfDuplicates(){return this.document.fields.find((e=>"NumberOfDuplicates"===e.type.name))}get organDonor(){return this.document.fields.find((e=>"OrganDonor"===e.type.name))}get organDonorIndicator(){return this.document.fields.find((e=>"OrganDonorIndicator"===e.type.name))}get permitExpirationDate(){return this.document.fields.find((e=>"PermitExpirationDate"===e.type.name))}get permitIdentifier(){return this.document.fields.find((e=>"PermitIdentifier"===e.type.name))}get physicalDescriptionEyeColor(){return this.document.fields.find((e=>"PhysicalDescriptionEyeColor"===e.type.name))}get physicalDescriptionHeight(){return this.document.fields.find((e=>"PhysicalDescriptionHeight"===e.type.name))}get physicalDescriptionSex(){return this.document.fields.find((e=>"PhysicalDescriptionSex"===e.type.name))}get physicalDescriptionWeightRange(){return this.document.fields.find((e=>"PhysicalDescriptionWeightRange"===e.type.name))}get placeOfBirth(){return this.document.fields.find((e=>"PlaceOfBirth"===e.type.name))}get raceEthnicity(){return this.document.fields.find((e=>"RaceEthnicity"===e.type.name))}get socialSecurityNumber(){return this.document.fields.find((e=>"SocialSecurityNumber"===e.type.name))}get standardEndorsementCode(){return this.document.fields.find((e=>"StandardEndorsementCode"===e.type.name))}get standardRestrictionCode(){return this.document.fields.find((e=>"StandardRestrictionCode"===e.type.name))}get standardVehicleClassification(){return this.document.fields.find((e=>"StandardVehicleClassification"===e.type.name))}get under18Until(){return this.document.fields.find((e=>"Under18Until"===e.type.name))}get under19Until(){return this.document.fields.find((e=>"Under19Until"===e.type.name))}get under21Until(){return this.document.fields.find((e=>"Under21Until"===e.type.name))}get uniqueCustomerIdentifier(){return this.document.fields.find((e=>"UniqueCustomerIdentifier"===e.type.name))}get veteranIndicator(){return this.document.fields.find((e=>"VeteranIndicator"===e.type.name))}get weightKilograms(){return this.document.fields.find((e=>"WeightKilograms"===e.type.name))}get weightPounds(){return this.document.fields.find((e=>"WeightPounds"===e.type.name))}}c.ADDRESS_CITY_FIELD_NAME="AddressCity",c.ADDRESS_CITY_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressCity",c.ADDRESS_JURISDICTION_CODE_FIELD_NAME="AddressJurisdictionCode",c.ADDRESS_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressJurisdictionCode",c.ADDRESS_POSTAL_CODE_FIELD_NAME="AddressPostalCode",c.ADDRESS_POSTAL_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressPostalCode",c.ADDRESS_STREET_1_FIELD_NAME="AddressStreet1",c.ADDRESS_STREET_1_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressStreet1",c.ADDRESS_STREET_2_FIELD_NAME="AddressStreet2",c.ADDRESS_STREET_2_FIELD_NAME_NORMALIZED="AAMVA.DLID.AddressStreet2",c.ADULT_INFORMATION_FIELD_NAME="AdultInformation",c.ADULT_INFORMATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.AdultInformation",c.ALIAS_FAMILY_NAME_FIELD_NAME="AliasFamilyName",c.ALIAS_FAMILY_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasFamilyName",c.ALIAS_GIVEN_NAME_FIELD_NAME="AliasGivenName",c.ALIAS_GIVEN_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasGivenName",c.ALIAS_MIDDLE_NAME_FIELD_NAME="AliasMiddleName",c.ALIAS_MIDDLE_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasMiddleName",c.ALIAS_PREFIX_NAME_FIELD_NAME="AliasPrefixName",c.ALIAS_PREFIX_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasPrefixName",c.ALIAS_SUFFIX_NAME_FIELD_NAME="AliasSuffixName",c.ALIAS_SUFFIX_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.AliasSuffixName",c.CARD_REVISION_DATE_FIELD_NAME="CardRevisionDate",c.CARD_REVISION_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.CardRevisionDate",c.COMPLIANCE_TYPE_FIELD_NAME="ComplianceType",c.COMPLIANCE_TYPE_FIELD_NAME_NORMALIZED="AAMVA.DLID.ComplianceType",c.COUNTRY_IDENTIFICATION_FIELD_NAME="CountryIdentification",c.COUNTRY_IDENTIFICATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.CountryIdentification",c.CUSTOMER_FAMILY_NAME_FIELD_NAME="CustomerFamilyName",c.CUSTOMER_FAMILY_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerFamilyName",c.CUSTOMER_FIRST_NAME_FIELD_NAME="CustomerFirstName",c.CUSTOMER_FIRST_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerFirstName",c.CUSTOMER_GIVEN_NAMES_FIELD_NAME="CustomerGivenNames",c.CUSTOMER_GIVEN_NAMES_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerGivenNames",c.CUSTOMER_ID_NUMBER_FIELD_NAME="CustomerIdNumber",c.CUSTOMER_ID_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerIdNumber",c.CUSTOMER_MIDDLE_NAME_FIELD_NAME="CustomerMiddleName",c.CUSTOMER_MIDDLE_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.CustomerMiddleName",c.DATE_OF_BIRTH_FIELD_NAME="DateOfBirth",c.DATE_OF_BIRTH_FIELD_NAME_NORMALIZED="AAMVA.DLID.DateOfBirth",c.DOCUMENT_DISCRIMINATOR_FIELD_NAME="DocumentDiscriminator",c.DOCUMENT_DISCRIMINATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.DocumentDiscriminator",c.DOCUMENT_EXPIRATION_DATE_FIELD_NAME="DocumentExpirationDate",c.DOCUMENT_EXPIRATION_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DocumentExpirationDate",c.DOCUMENT_ISSUE_DATE_FIELD_NAME="DocumentIssueDate",c.DOCUMENT_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DocumentIssueDate",c.DRIVER_ALIAS_DATE_OF_BIRTH_FIELD_FIELD_NAME="DriverAliasDateOfBirthField",c.DRIVER_ALIAS_DATE_OF_BIRTH_FIELD_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverAliasDateOfBirthField",c.DRIVER_ALIAS_FIRST_NAME_FIELD_NAME="DriverAliasFirstName",c.DRIVER_ALIAS_FIRST_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverAliasFirstName",c.DRIVER_ALIAS_LAST_NAME_FIELD_NAME="DriverAliasLastName",c.DRIVER_ALIAS_LAST_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverAliasLastName",c.DRIVER_ALIAS_SOCIAL_SECURITY_NUMBER_FIELD_NAME="DriverAliasSocialSecurityNumber",c.DRIVER_ALIAS_SOCIAL_SECURITY_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverAliasSocialSecurityNumber",c.DRIVER_LAST_NAME_FIELD_NAME="DriverLastName",c.DRIVER_LAST_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLastName",c.DRIVER_LICENSE_CLASSIFICATION_CODE_FIELD_NAME="DriverLicenseClassificationCode",c.DRIVER_LICENSE_CLASSIFICATION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLicenseClassificationCode",c.DRIVER_LICENSE_ENDORSEMENTS_CODE_FIELD_NAME="DriverLicenseEndorsementsCode",c.DRIVER_LICENSE_ENDORSEMENTS_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLicenseEndorsementsCode",c.DRIVER_LICENSE_NAME_FIELD_NAME="DriverLicenseName",c.DRIVER_LICENSE_NAME_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLicenseName",c.DRIVER_LICENSE_RESTRICTION_CODE_FIELD_NAME="DriverLicenseRestrictionCode",c.DRIVER_LICENSE_RESTRICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverLicenseRestrictionCode",c.DRIVER_NAME_PREFIX_FIELD_NAME="DriverNamePrefix",c.DRIVER_NAME_PREFIX_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverNamePrefix",c.DRIVER_NAME_SUFFIX_FIELD_NAME="DriverNameSuffix",c.DRIVER_NAME_SUFFIX_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverNameSuffix",c.DRIVER_PERMIT_CLASSIFICATION_CODE_FIELD_NAME="DriverPermitClassificationCode",c.DRIVER_PERMIT_CLASSIFICATION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverPermitClassificationCode",c.DRIVER_PERMIT_ENDORSEMENT_CODE_FIELD_NAME="DriverPermitEndorsementCode",c.DRIVER_PERMIT_ENDORSEMENT_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverPermitEndorsementCode",c.DRIVER_PERMIT_ISSUE_DATE_FIELD_NAME="DriverPermitIssueDate",c.DRIVER_PERMIT_ISSUE_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverPermitIssueDate",c.DRIVER_PERMIT_RESTRICTION_CODE_FIELD_NAME="DriverPermitRestrictionCode",c.DRIVER_PERMIT_RESTRICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverPermitRestrictionCode",c.DRIVER_RESIDENCE_CITY_FIELD_NAME="DriverResidenceCity",c.DRIVER_RESIDENCE_CITY_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidenceCity",c.DRIVER_RESIDENCE_JURISDICTION_CODE_FIELD_NAME="DriverResidenceJurisdictionCode",c.DRIVER_RESIDENCE_JURISDICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidenceJurisdictionCode",c.DRIVER_RESIDENCE_POSTAL_CODE_FIELD_NAME="DriverResidencePostalCode",c.DRIVER_RESIDENCE_POSTAL_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidencePostalCode",c.DRIVER_RESIDENCE_STREET_ADDRESS_1_FIELD_NAME="DriverResidenceStreetAddress1",c.DRIVER_RESIDENCE_STREET_ADDRESS_1_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidenceStreetAddress1",c.DRIVER_RESIDENCE_STREET_ADDRESS_2_FIELD_NAME="DriverResidenceStreetAddress2",c.DRIVER_RESIDENCE_STREET_ADDRESS_2_FIELD_NAME_NORMALIZED="AAMVA.DLID.DriverResidenceStreetAddress2",c.FAMILY_NAME_TRUNCATION_FIELD_NAME="FamilyNameTruncation",c.FAMILY_NAME_TRUNCATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.FamilyNameTruncation",c.FEDERAL_COMMERCIAL_VEHICLE_CODES_FIELD_NAME="FederalCommercialVehicleCodes",c.FEDERAL_COMMERCIAL_VEHICLE_CODES_FIELD_NAME_NORMALIZED="AAMVA.DLID.FederalCommercialVehicleCodes",c.FIRST_NAME_TRUNCATION_FIELD_NAME="FirstNameTruncation",c.FIRST_NAME_TRUNCATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.FirstNameTruncation",c.HAZMAT_ENDORSEMENT_EXPIRATION_DATE_FIELD_NAME="HAZMATEndorsementExpirationDate",c.HAZMAT_ENDORSEMENT_EXPIRATION_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.HAZMATEndorsementExpirationDate",c.HAIR_COLOR_FIELD_NAME="HairColor",c.HAIR_COLOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.HairColor",c.HEIGHT_FIELD_NAME="Height",c.HEIGHT_FIELD_NAME_NORMALIZED="AAMVA.DLID.Height",c.INVENTORY_CONTROL_NUMBER_FIELD_NAME="InventoryControlNumber",c.INVENTORY_CONTROL_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.DLID.InventoryControlNumber",c.ISSUE_TIME_STAMP_FIELD_NAME="IssueTimeStamp",c.ISSUE_TIME_STAMP_FIELD_NAME_NORMALIZED="AAMVA.DLID.IssueTimeStamp",c.JURISDICTION_SPECIFIC_ENDORSEMENT_CODE_DESCRIPTION_FIELD_NAME="JurisdictionSpecificEndorsementCodeDescription",c.JURISDICTION_SPECIFIC_ENDORSEMENT_CODE_DESCRIPTION_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificEndorsementCodeDescription",c.JURISDICTION_SPECIFIC_ENDORSEMENT_CODES_FIELD_NAME="JurisdictionSpecificEndorsementCodes",c.JURISDICTION_SPECIFIC_ENDORSEMENT_CODES_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificEndorsementCodes",c.JURISDICTION_SPECIFIC_RESTRICTION_CODE_DESCRIPTION_FIELD_NAME="JurisdictionSpecificRestrictionCodeDescription",c.JURISDICTION_SPECIFIC_RESTRICTION_CODE_DESCRIPTION_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificRestrictionCodeDescription",c.JURISDICTION_SPECIFIC_RESTRICTION_CODES_FIELD_NAME="JurisdictionSpecificRestrictionCodes",c.JURISDICTION_SPECIFIC_RESTRICTION_CODES_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificRestrictionCodes",c.JURISDICTION_SPECIFIC_VEHICLE_CLASS_FIELD_NAME="JurisdictionSpecificVehicleClass",c.JURISDICTION_SPECIFIC_VEHICLE_CLASS_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificVehicleClass",c.JURISDICTION_SPECIFIC_VEHICLE_CLASSIFICATION_DESCRIPTION_FIELD_NAME="JurisdictionSpecificVehicleClassificationDescription",c.JURISDICTION_SPECIFIC_VEHICLE_CLASSIFICATION_DESCRIPTION_FIELD_NAME_NORMALIZED="AAMVA.DLID.JurisdictionSpecificVehicleClassificationDescription",c.LIMITED_DURATION_DOCUMENT_INDICATOR_FIELD_NAME="LimitedDurationDocumentIndicator",c.LIMITED_DURATION_DOCUMENT_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.LimitedDurationDocumentIndicator",c.MIDDLE_NAME_TRUNCATION_FIELD_NAME="MiddleNameTruncation",c.MIDDLE_NAME_TRUNCATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.MiddleNameTruncation",c.NAME_SUFFIX_FIELD_NAME="NameSuffix",c.NAME_SUFFIX_FIELD_NAME_NORMALIZED="AAMVA.DLID.NameSuffix",c.NON_RESIDENT_INDICATOR_FIELD_NAME="NonResidentIndicator",c.NON_RESIDENT_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.NonResidentIndicator",c.NUMBER_OF_DUPLICATES_FIELD_NAME="NumberOfDuplicates",c.NUMBER_OF_DUPLICATES_FIELD_NAME_NORMALIZED="AAMVA.DLID.NumberOfDuplicates",c.ORGAN_DONOR_FIELD_NAME="OrganDonor",c.ORGAN_DONOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.OrganDonor",c.ORGAN_DONOR_INDICATOR_FIELD_NAME="OrganDonorIndicator",c.ORGAN_DONOR_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.OrganDonorIndicator",c.PERMIT_EXPIRATION_DATE_FIELD_NAME="PermitExpirationDate",c.PERMIT_EXPIRATION_DATE_FIELD_NAME_NORMALIZED="AAMVA.DLID.PermitExpirationDate",c.PERMIT_IDENTIFIER_FIELD_NAME="PermitIdentifier",c.PERMIT_IDENTIFIER_FIELD_NAME_NORMALIZED="AAMVA.DLID.PermitIdentifier",c.PHYSICAL_DESCRIPTION_EYE_COLOR_FIELD_NAME="PhysicalDescriptionEyeColor",c.PHYSICAL_DESCRIPTION_EYE_COLOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.PhysicalDescriptionEyeColor",c.PHYSICAL_DESCRIPTION_HEIGHT_FIELD_NAME="PhysicalDescriptionHeight",c.PHYSICAL_DESCRIPTION_HEIGHT_FIELD_NAME_NORMALIZED="AAMVA.DLID.PhysicalDescriptionHeight",c.PHYSICAL_DESCRIPTION_SEX_FIELD_NAME="PhysicalDescriptionSex",c.PHYSICAL_DESCRIPTION_SEX_FIELD_NAME_NORMALIZED="AAMVA.DLID.PhysicalDescriptionSex",c.PHYSICAL_DESCRIPTION_WEIGHT_RANGE_FIELD_NAME="PhysicalDescriptionWeightRange",c.PHYSICAL_DESCRIPTION_WEIGHT_RANGE_FIELD_NAME_NORMALIZED="AAMVA.DLID.PhysicalDescriptionWeightRange",c.PLACE_OF_BIRTH_FIELD_NAME="PlaceOfBirth",c.PLACE_OF_BIRTH_FIELD_NAME_NORMALIZED="AAMVA.DLID.PlaceOfBirth",c.RACE_ETHNICITY_FIELD_NAME="RaceEthnicity",c.RACE_ETHNICITY_FIELD_NAME_NORMALIZED="AAMVA.DLID.RaceEthnicity",c.SOCIAL_SECURITY_NUMBER_FIELD_NAME="SocialSecurityNumber",c.SOCIAL_SECURITY_NUMBER_FIELD_NAME_NORMALIZED="AAMVA.DLID.SocialSecurityNumber",c.STANDARD_ENDORSEMENT_CODE_FIELD_NAME="StandardEndorsementCode",c.STANDARD_ENDORSEMENT_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.StandardEndorsementCode",c.STANDARD_RESTRICTION_CODE_FIELD_NAME="StandardRestrictionCode",c.STANDARD_RESTRICTION_CODE_FIELD_NAME_NORMALIZED="AAMVA.DLID.StandardRestrictionCode",c.STANDARD_VEHICLE_CLASSIFICATION_FIELD_NAME="StandardVehicleClassification",c.STANDARD_VEHICLE_CLASSIFICATION_FIELD_NAME_NORMALIZED="AAMVA.DLID.StandardVehicleClassification",c.UNDER_18_UNTIL_FIELD_NAME="Under18Until",c.UNDER_18_UNTIL_FIELD_NAME_NORMALIZED="AAMVA.DLID.Under18Until",c.UNDER_19_UNTIL_FIELD_NAME="Under19Until",c.UNDER_19_UNTIL_FIELD_NAME_NORMALIZED="AAMVA.DLID.Under19Until",c.UNDER_21_UNTIL_FIELD_NAME="Under21Until",c.UNDER_21_UNTIL_FIELD_NAME_NORMALIZED="AAMVA.DLID.Under21Until",c.UNIQUE_CUSTOMER_IDENTIFIER_FIELD_NAME="UniqueCustomerIdentifier",c.UNIQUE_CUSTOMER_IDENTIFIER_FIELD_NAME_NORMALIZED="AAMVA.DLID.UniqueCustomerIdentifier",c.VETERAN_INDICATOR_FIELD_NAME="VeteranIndicator",c.VETERAN_INDICATOR_FIELD_NAME_NORMALIZED="AAMVA.DLID.VeteranIndicator",c.WEIGHT_KILOGRAMS_FIELD_NAME="WeightKilograms",c.WEIGHT_KILOGRAMS_FIELD_NAME_NORMALIZED="AAMVA.DLID.WeightKilograms",c.WEIGHT_POUNDS_FIELD_NAME="WeightPounds",c.WEIGHT_POUNDS_FIELD_NAME_NORMALIZED="AAMVA.DLID.WeightPounds",e.DLID=c;class l extends c{constructor(e){super(e)}requiredDocumentType(){return e.DriverLicense.DOCUMENT_TYPE}}l.DOCUMENT_TYPE="DriverLicense",e.DriverLicense=l;class u extends c{constructor(e){super(e)}requiredDocumentType(){return e.IDCard.DOCUMENT_TYPE}}u.DOCUMENT_TYPE="IDCard",e.IDCard=u;class d extends c{constructor(e){super(e)}requiredDocumentType(){return e.EnhancedDriverLicense.DOCUMENT_TYPE}}d.DOCUMENT_TYPE="EnhancedDriverLicense",e.EnhancedDriverLicense=d;class m{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return e.RawDocument.DOCUMENT_TYPE}}m.DOCUMENT_TYPE="RawDocument",e.RawDocument=m}(Ie||(Ie={}));class ve{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return ve.DOCUMENT_TYPE}get dateOfManufacture(){return this.document.fields.find((e=>"DateOfManufacture"===e.type.name))}get expiryDateDay(){return this.document.fields.find((e=>"ExpiryDateDay"===e.type.name))}get expiryDateHour(){return this.document.fields.find((e=>"ExpiryDateHour"===e.type.name))}get expiryDateJulianDay(){return this.document.fields.find((e=>"ExpiryDateJulianDay"===e.type.name))}get expiryDateMonth(){return this.document.fields.find((e=>"ExpiryDateMonth"===e.type.name))}get expiryDateYear(){return this.document.fields.find((e=>"ExpiryDateYear"===e.type.name))}get hasPrimaryData(){return this.document.fields.find((e=>"HasPrimaryData"===e.type.name))}get hasSecondaryData(){return this.document.fields.find((e=>"HasSecondaryData"===e.type.name))}get labelerIdentificationCode(){return this.document.fields.find((e=>"LabelerIdentificationCode"===e.type.name))}get labelersProductOrCatalogNumber(){return this.document.fields.find((e=>"LabelersProductOrCatalogNumber"===e.type.name))}get linkCharacter(){return this.document.fields.find((e=>"LinkCharacter"===e.type.name))}get lotNumber(){return this.document.fields.find((e=>"LotNumber"===e.type.name))}get quantity(){return this.document.fields.find((e=>"Quantity"===e.type.name))}get serialNumber(){return this.document.fields.find((e=>"SerialNumber"===e.type.name))}get unitOfMeasureID(){return this.document.fields.find((e=>"UnitOfMeasureID"===e.type.name))}}ve.DOCUMENT_TYPE="HIBC",ve.DATE_OF_MANUFACTURE_FIELD_NAME="DateOfManufacture",ve.DATE_OF_MANUFACTURE_FIELD_NAME_NORMALIZED="HIBC.DateOfManufacture",ve.EXPIRY_DATE_DAY_FIELD_NAME="ExpiryDateDay",ve.EXPIRY_DATE_DAY_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateDay",ve.EXPIRY_DATE_HOUR_FIELD_NAME="ExpiryDateHour",ve.EXPIRY_DATE_HOUR_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateHour",ve.EXPIRY_DATE_JULIAN_DAY_FIELD_NAME="ExpiryDateJulianDay",ve.EXPIRY_DATE_JULIAN_DAY_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateJulianDay",ve.EXPIRY_DATE_MONTH_FIELD_NAME="ExpiryDateMonth",ve.EXPIRY_DATE_MONTH_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateMonth",ve.EXPIRY_DATE_YEAR_FIELD_NAME="ExpiryDateYear",ve.EXPIRY_DATE_YEAR_FIELD_NAME_NORMALIZED="HIBC.ExpiryDateYear",ve.HAS_PRIMARY_DATA_FIELD_NAME="HasPrimaryData",ve.HAS_PRIMARY_DATA_FIELD_NAME_NORMALIZED="HIBC.HasPrimaryData",ve.HAS_SECONDARY_DATA_FIELD_NAME="HasSecondaryData",ve.HAS_SECONDARY_DATA_FIELD_NAME_NORMALIZED="HIBC.HasSecondaryData",ve.LABELER_IDENTIFICATION_CODE_FIELD_NAME="LabelerIdentificationCode",ve.LABELER_IDENTIFICATION_CODE_FIELD_NAME_NORMALIZED="HIBC.LabelerIdentificationCode",ve.LABELERS_PRODUCT_OR_CATALOG_NUMBER_FIELD_NAME="LabelersProductOrCatalogNumber",ve.LABELERS_PRODUCT_OR_CATALOG_NUMBER_FIELD_NAME_NORMALIZED="HIBC.LabelersProductOrCatalogNumber",ve.LINK_CHARACTER_FIELD_NAME="LinkCharacter",ve.LINK_CHARACTER_FIELD_NAME_NORMALIZED="HIBC.LinkCharacter",ve.LOT_NUMBER_FIELD_NAME="LotNumber",ve.LOT_NUMBER_FIELD_NAME_NORMALIZED="HIBC.LotNumber",ve.QUANTITY_FIELD_NAME="Quantity",ve.QUANTITY_FIELD_NAME_NORMALIZED="HIBC.Quantity",ve.SERIAL_NUMBER_FIELD_NAME="SerialNumber",ve.SERIAL_NUMBER_FIELD_NAME_NORMALIZED="HIBC.SerialNumber",ve.UNIT_OF_MEASURE_ID_FIELD_NAME="UnitOfMeasureID",ve.UNIT_OF_MEASURE_ID_FIELD_NAME_NORMALIZED="HIBC.UnitOfMeasureID";class Ne{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}get fontType(){return this.document.fields.find((e=>"FontType"===e.type.name))}get rawString(){return this.document.fields.find((e=>"RawString"===e.type.name))}}Ne.FONT_TYPE_FIELD_NAME="FontType",Ne.FONT_TYPE_FIELD_NAME_NORMALIZED="Check.FontType",Ne.RAW_STRING_FIELD_NAME="RawString",Ne.RAW_STRING_FIELD_NAME_NORMALIZED="Check.RawString";class Se extends Ne{constructor(e){super(e)}requiredDocumentType(){return Se.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get auxiliaryOnUs(){return this.document.fields.find((e=>"AuxiliaryOnUs"===e.type.name))}get checkNumber(){return this.document.fields.find((e=>"CheckNumber"===e.type.name))}get transitNumber(){return this.document.fields.find((e=>"TransitNumber"===e.type.name))}}Se.DOCUMENT_TYPE="USACheck",Se.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",Se.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="USACheck.AccountNumber",Se.AUXILIARY_ON_US_FIELD_NAME="AuxiliaryOnUs",Se.AUXILIARY_ON_US_FIELD_NAME_NORMALIZED="USACheck.AuxiliaryOnUs",Se.CHECK_NUMBER_FIELD_NAME="CheckNumber",Se.CHECK_NUMBER_FIELD_NAME_NORMALIZED="USACheck.CheckNumber",Se.TRANSIT_NUMBER_FIELD_NAME="TransitNumber",Se.TRANSIT_NUMBER_FIELD_NAME_NORMALIZED="USACheck.TransitNumber";class be extends Ne{constructor(e){super(e)}requiredDocumentType(){return be.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get routingNumber(){return this.document.fields.find((e=>"RoutingNumber"===e.type.name))}}be.DOCUMENT_TYPE="UAECheck",be.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",be.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="UAECheck.AccountNumber",be.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",be.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="UAECheck.ChequeNumber",be.ROUTING_NUMBER_FIELD_NAME="RoutingNumber",be.ROUTING_NUMBER_FIELD_NAME_NORMALIZED="UAECheck.RoutingNumber";class Me extends Ne{constructor(e){super(e)}requiredDocumentType(){return Me.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get routingNumber(){return this.document.fields.find((e=>"RoutingNumber"===e.type.name))}}Me.DOCUMENT_TYPE="FRACheck",Me.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",Me.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="FRACheck.AccountNumber",Me.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",Me.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="FRACheck.ChequeNumber",Me.ROUTING_NUMBER_FIELD_NAME="RoutingNumber",Me.ROUTING_NUMBER_FIELD_NAME_NORMALIZED="FRACheck.RoutingNumber";class Le extends Ne{constructor(e){super(e)}requiredDocumentType(){return Le.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get bankNumber(){return this.document.fields.find((e=>"BankNumber"===e.type.name))}get branchNumber(){return this.document.fields.find((e=>"BranchNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}}Le.DOCUMENT_TYPE="ISRCheck",Le.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",Le.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="ISRCheck.AccountNumber",Le.BANK_NUMBER_FIELD_NAME="BankNumber",Le.BANK_NUMBER_FIELD_NAME_NORMALIZED="ISRCheck.BankNumber",Le.BRANCH_NUMBER_FIELD_NAME="BranchNumber",Le.BRANCH_NUMBER_FIELD_NAME_NORMALIZED="ISRCheck.BranchNumber",Le.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",Le.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="ISRCheck.ChequeNumber";class Re extends Ne{constructor(e){super(e)}requiredDocumentType(){return Re.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get sortCode(){return this.document.fields.find((e=>"SortCode"===e.type.name))}}Re.DOCUMENT_TYPE="KWTCheck",Re.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",Re.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="KWTCheck.AccountNumber",Re.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",Re.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="KWTCheck.ChequeNumber",Re.SORT_CODE_FIELD_NAME="SortCode",Re.SORT_CODE_FIELD_NAME_NORMALIZED="KWTCheck.SortCode";class Te extends Ne{constructor(e){super(e)}requiredDocumentType(){return Te.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get auxDomestic(){return this.document.fields.find((e=>"AuxDomestic"===e.type.name))}get bsb(){return this.document.fields.find((e=>"BSB"===e.type.name))}get extraAuxDomestic(){return this.document.fields.find((e=>"ExtraAuxDomestic"===e.type.name))}get transactionCode(){return this.document.fields.find((e=>"TransactionCode"===e.type.name))}}Te.DOCUMENT_TYPE="AUSCheck",Te.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",Te.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="AUSCheck.AccountNumber",Te.AUX_DOMESTIC_FIELD_NAME="AuxDomestic",Te.AUX_DOMESTIC_FIELD_NAME_NORMALIZED="AUSCheck.AuxDomestic",Te.BSB_FIELD_NAME="BSB",Te.BSB_FIELD_NAME_NORMALIZED="AUSCheck.BSB",Te.EXTRA_AUX_DOMESTIC_FIELD_NAME="ExtraAuxDomestic",Te.EXTRA_AUX_DOMESTIC_FIELD_NAME_NORMALIZED="AUSCheck.ExtraAuxDomestic",Te.TRANSACTION_CODE_FIELD_NAME="TransactionCode",Te.TRANSACTION_CODE_FIELD_NAME_NORMALIZED="AUSCheck.TransactionCode";class Oe extends Ne{constructor(e){super(e)}requiredDocumentType(){return Oe.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get serialNumber(){return this.document.fields.find((e=>"SerialNumber"===e.type.name))}get sortNumber(){return this.document.fields.find((e=>"SortNumber"===e.type.name))}get transactionCode(){return this.document.fields.find((e=>"TransactionCode"===e.type.name))}}Oe.DOCUMENT_TYPE="INDCheck",Oe.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",Oe.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="INDCheck.AccountNumber",Oe.SERIAL_NUMBER_FIELD_NAME="SerialNumber",Oe.SERIAL_NUMBER_FIELD_NAME_NORMALIZED="INDCheck.SerialNumber",Oe.SORT_NUMBER_FIELD_NAME="SortNumber",Oe.SORT_NUMBER_FIELD_NAME_NORMALIZED="INDCheck.SortNumber",Oe.TRANSACTION_CODE_FIELD_NAME="TransactionCode",Oe.TRANSACTION_CODE_FIELD_NAME_NORMALIZED="INDCheck.TransactionCode";class we extends Ne{constructor(e){super(e)}requiredDocumentType(){return we.DOCUMENT_TYPE}get accountNumber(){return this.document.fields.find((e=>"AccountNumber"===e.type.name))}get bankNumber(){return this.document.fields.find((e=>"BankNumber"===e.type.name))}get chequeNumber(){return this.document.fields.find((e=>"ChequeNumber"===e.type.name))}get designationNumber(){return this.document.fields.find((e=>"DesignationNumber"===e.type.name))}get transactionCode(){return this.document.fields.find((e=>"TransactionCode"===e.type.name))}get transitNumber(){return this.document.fields.find((e=>"TransitNumber"===e.type.name))}}we.DOCUMENT_TYPE="CANCheck",we.ACCOUNT_NUMBER_FIELD_NAME="AccountNumber",we.ACCOUNT_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.AccountNumber",we.BANK_NUMBER_FIELD_NAME="BankNumber",we.BANK_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.BankNumber",we.CHEQUE_NUMBER_FIELD_NAME="ChequeNumber",we.CHEQUE_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.ChequeNumber",we.DESIGNATION_NUMBER_FIELD_NAME="DesignationNumber",we.DESIGNATION_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.DesignationNumber",we.TRANSACTION_CODE_FIELD_NAME="TransactionCode",we.TRANSACTION_CODE_FIELD_NAME_NORMALIZED="CANCheck.TransactionCode",we.TRANSIT_NUMBER_FIELD_NAME="TransitNumber",we.TRANSIT_NUMBER_FIELD_NAME_NORMALIZED="CANCheck.TransitNumber";class Fe extends Ne{constructor(e){super(e)}requiredDocumentType(){return Fe.DOCUMENT_TYPE}}Fe.DOCUMENT_TYPE="UnknownCheck";class Be{get document(){return this._document}constructor(e){if(e.type.name!==this.requiredDocumentType())throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${e.type.name}`);this._document=e}requiredDocumentType(){return Be.DOCUMENT_TYPE}get cardNumber(){return this.document.fields.find((e=>"CardNumber"===e.type.name))}get cardholderName(){return this.document.fields.find((e=>"CardholderName"===e.type.name))}get expiryDate(){return this.document.fields.find((e=>"ExpiryDate"===e.type.name))}}Be.DOCUMENT_TYPE="CreditCard",Be.CARD_NUMBER_FIELD_NAME="CardNumber",Be.CARD_NUMBER_FIELD_NAME_NORMALIZED="CreditCard.CardNumber",Be.CARDHOLDER_NAME_FIELD_NAME="CardholderName",Be.CARDHOLDER_NAME_FIELD_NAME_NORMALIZED="CreditCard.CardholderName",Be.EXPIRY_DATE_FIELD_NAME="ExpiryDate",Be.EXPIRY_DATE_FIELD_NAME_NORMALIZED="CreditCard.ExpiryDate";const Pe=["OKAY","TRIAL","OKAY_EXPIRING_SOON","FAILURE_NOT_SET","FAILURE_CORRUPTED","FAILURE_WRONG_OS","FAILURE_APP_ID_MISMATCH","FAILURE_EXPIRED","FAILURE_SERVER","FAILURE_VERSION","FAILURE_INACTIVE"];class xe{constructor(e={}){if(void 0===e.deviceId)throw new Error("deviceId must be present in constructor argument");if(this.deviceId=e.deviceId,void 0===e.errorMessage)throw new Error("errorMessage must be present in constructor argument");this.errorMessage=e.errorMessage}}class ke{constructor(e={}){if(this.devices=null,void 0===e.status)throw new Error("status must be present in constructor argument");if(this.status=e.status,void 0===e.isValid)throw new Error("isValid must be present in constructor argument");if(this.isValid=e.isValid,void 0===e.licenseStatusMessage)throw new Error("licenseStatusMessage must be present in constructor argument");if(this.licenseStatusMessage=e.licenseStatusMessage,void 0===e.expirationTimestamp)throw new Error("expirationTimestamp must be present in constructor argument");if(this.expirationTimestamp=e.expirationTimestamp,void 0===e.expirationDateString)throw new Error("expirationDateString must be present in constructor argument");if(this.expirationDateString=e.expirationDateString,void 0===e.errorMessage)throw new Error("errorMessage must be present in constructor argument");if(this.errorMessage=e.errorMessage,void 0===e.onlineLicenseCheckInProgress)throw new Error("onlineLicenseCheckInProgress must be present in constructor argument");if(this.onlineLicenseCheckInProgress=e.onlineLicenseCheckInProgress,void 0===e.license)throw new Error("license must be present in constructor argument");if(this.license=e.license,void 0!==e.devices&&(this.devices=null!=e.devices?e.devices:null),void 0===e.nextOnlineLicenseCheckInMs)throw new Error("nextOnlineLicenseCheckInMs must be present in constructor argument");if(this.nextOnlineLicenseCheckInMs=e.nextOnlineLicenseCheckInMs,void 0===e.deviceDeregistationErrors)throw new Error("deviceDeregistationErrors must be present in constructor argument");this.deviceDeregistationErrors=e.deviceDeregistationErrors.map((e=>new xe(e)))}}const Ve=["BARCODE_SCANNER","CHECK_SCANNER","CREDIT_CARD_SCANNER","IMAGE_PROCESSING","DOCUMENT_SCANNER","LICENSE_PLATE_SCANNER","MEDICAL_CERTIFICATE_SCANNER","MRZ_SCANNER","OCR","TEXT_PATTERN_SCANNER","PDF_CREATION","ID_CARD_SCANNER","DRIVER_LICENSE_SCANNER","EHIC_SCANNER","DOCUMENT_CLASSIFICATION"],Ue=["LIVE","SINGLE_SHOT","AUTO"];var Ze=n(1173),We=n(5905),He=n(1855),Ge=n(8233),ze=n(5991),Ye=n(5630),qe=n(2504),Xe=n(7049),je=n(7684),Qe=n(4480),Je=n(2177),Ke=n(930),$e=n(1427),et=n(5581),tt=n(10),nt=n(7581),it=n(3575),rt=n(718),ot=n(525),at=n(3221)},3415:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});const i=["ID","SURNAME","MAIDEN_NAME","GIVEN_NAMES","BIRTH_DATE","NATIONALITY","BIRTHPLACE","EXPIRY_DATE","EYE_COLOR","HEIGHT","ISSUE_DATE","ISSUING_AUTHORITY","ADDRESS","PSEUDONYM","MRZ","ISSUING_COUNTRY","GENDER","SIGNATURE","PHOTO","VALID_FROM_DATE","ROUTING_NUMBER","ACCOUNT_NUMBER","PLACE_OF_ISSUE","TITLE_TYPE","REMARKS","NAME","CARD_ACCESS_NUMBER","PERSONAL_ID"]},3575:(e,t,n)=>{"use strict";function i(e,t=!1){const n=[];if(t)return n;return function e(t){if(t)if(t.constructor===ImageData)n.push(t.data.buffer);else if(t.constructor===ArrayBuffer)n.push(t);else if(ArrayBuffer.isView(t))n.push(t.buffer);else if(Array.isArray(t))for(let n=0;n<t.length;++n)e(t[n]);else if("object"==typeof t)for(const n in t)t.hasOwnProperty(n)&&e(t[n])}(e),n}function r(e){return e.startsWith("http:")||e.startsWith("https:")}function o(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}function a(){if("undefined"!=typeof process&&"undefined"!=typeof process.versions&&"undefined"!=typeof process.versions.node)return!1;if(o())return!1;try{return(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))}catch(e){return!1}}function s(){try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))&&function(){if(WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,5,3,1,0,1,11,9,1,0,65,1,65,2,106,11,0])))return!0;if(!o())return!1;const e=navigator.userAgent.match(/OS (\d{1,2})_(\d{1,2})(_(\d{1,3}))?\s/);if(!e)return!1;const t=parseInt(e[1],10),n=parseInt(e[2],10);return 16===t&&n>=7||17===t}()}catch(e){return!1}}function c(e){const{allowSimd:t=!0,allowThreads:n=!0}=e||{};let i="";if(t&&s()){i+="-simd";n&&a()&&(i+="-threads")}return i}n.d(t,{Jk:()=>c,Vx:()=>r,ef:()=>i,jz:()=>a})},3618:(e,t,n)=>{"use strict";n.d(t,{AE:()=>i.AE,Bt:()=>i.Bt});var i=n(7828)},3684:(e,t,n)=>{"use strict";n.d(t,{$E:()=>s,CY:()=>d,Cz:()=>i,Ls:()=>o,ND:()=>c,Nc:()=>a,XJ:()=>h,fk:()=>u,hk:()=>p,t6:()=>m,ue:()=>l});var i,r=n(4169);class o{constructor(e={}){this.image=new a({}),this.text=new r.D7({text:"?cameraIntroDescription",color:"?sbColorOnSurface"}),void 0!==e.image&&(this.image=i.from(e.image)),void 0!==e.text&&(this.text=new r.D7(e.text))}}!function(e){e.from=function(e){const t=e._type;switch(t){case"NoIntroImage":return new a(e);case"CustomImage":return new s(e);case"ReceiptsIntroImage":return new c(e);case"MedicalCertificateIntroImage":return new l(e);case"DocumentIntroImage":return new u(e);case"CheckIntroImage":return new d(e);case"IdCardIntroImage":return new m(e);case"CreditCardIntroImage":return new h(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(i||(i={}));class a{constructor(e={}){this._type="NoIntroImage"}}class s{constructor(e={}){if(this._type="CustomImage",void 0===e.uri)throw new Error("uri must be present in constructor argument");this.uri=e.uri}}class c{constructor(e={}){this._type="ReceiptsIntroImage"}}class l{constructor(e={}){this._type="MedicalCertificateIntroImage"}}class u{constructor(e={}){this._type="DocumentIntroImage"}}class d{constructor(e={}){this._type="CheckIntroImage"}}class m{constructor(e={}){this._type="IdCardIntroImage"}}class h{constructor(e={}){this._type="CreditCardIntroImage"}}class p{constructor(e={}){this.backgroundColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.showAutomatically=!1,this.topBarDoneButton=new r.z1({visible:!0,text:"?cameraIntroDoneButton",accessibilityDescription:"?accessibilityDescriptionCameraIntroDoneButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!0,color:"?sbColorPrimary",useShadow:!1})}),this.title=new r.D7({text:"?cameraIntroTitle",color:"?sbColorOnSurface"}),this.subtitle=new r.D7({text:"?cameraIntroSubtitle",color:"?sbColorOnSurface"}),this.items=[new o({image:new u({}),text:new r.D7({text:"?cameraIntroItem1",color:"?sbColorOnSurface"})}),new o({image:new a({}),text:new r.D7({text:"?cameraIntroItem2",color:"?sbColorOnSurface"})}),new o({image:new a({}),text:new r.D7({text:"?cameraIntroItem3",color:"?sbColorOnSurface"})}),new o({image:new a({}),text:new r.D7({text:"?cameraIntroItem4",color:"?sbColorOnSurface"})})],void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.showAutomatically&&(this.showAutomatically=e.showAutomatically),void 0!==e.topBarDoneButton&&(this.topBarDoneButton=new r.z1(e.topBarDoneButton)),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.subtitle&&(this.subtitle=new r.D7(e.subtitle)),void 0!==e.items&&(this.items=e.items.map((e=>new o(e))))}}},4151:(e,t,n)=>{"use strict";n.d(t,{AG:()=>m,MD:()=>c,Ou:()=>s,Q:()=>u,bC:()=>l,zQ:()=>d});var i=n(3195),r=n(6396),o=n(525),a=n(1671);class s{constructor(e={}){if(this.format="NONE",this.isUpsideDown=!1,this.sourceImage=null,this.isGS1Message=!1,this.isGS1CompositePart=!1,this.dataBarStackSize=1,this.sizeScore=0,this.globalIndex=-1,void 0!==e.format&&(this.format=e.format),void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.rawBytes)throw new Error("rawBytes must be present in constructor argument");if(this.rawBytes=e.rawBytes,void 0===e.rawBytesEncodings)throw new Error("rawBytesEncodings must be present in constructor argument");if(this.rawBytesEncodings=e.rawBytesEncodings.map((e=>new a.tb(e))),void 0===e.structuredAppendInfo)throw new Error("structuredAppendInfo must be present in constructor argument");if(this.structuredAppendInfo=null!=e.structuredAppendInfo?new a.ux(e.structuredAppendInfo):null,void 0===e.quad)throw new Error("quad must be present in constructor argument");if(this.quad=e.quad.map((e=>({x:e.x,y:e.y}))),void 0===e.quadNormalized)throw new Error("quadNormalized must be present in constructor argument");if(this.quadNormalized=e.quadNormalized.map((e=>({x:e.x,y:e.y}))),void 0===e.extendedQuad)throw new Error("extendedQuad must be present in constructor argument");if(this.extendedQuad=e.extendedQuad.map((e=>({x:e.x,y:e.y}))),void 0===e.extendedQuadNormalized)throw new Error("extendedQuadNormalized must be present in constructor argument");if(this.extendedQuadNormalized=e.extendedQuadNormalized.map((e=>({x:e.x,y:e.y}))),void 0!==e.isUpsideDown&&(this.isUpsideDown=e.isUpsideDown),void 0!==e.sourceImage&&(this.sourceImage=null!=e.sourceImage?new o._(e.sourceImage):null),void 0===e.upcEanExtension)throw new Error("upcEanExtension must be present in constructor argument");if(this.upcEanExtension=e.upcEanExtension,void 0!==e.isGS1Message&&(this.isGS1Message=e.isGS1Message),void 0!==e.isGS1CompositePart&&(this.isGS1CompositePart=e.isGS1CompositePart),void 0!==e.dataBarStackSize&&(this.dataBarStackSize=e.dataBarStackSize),void 0!==e.sizeScore&&(this.sizeScore=e.sizeScore),void 0===e.extractedDocument)throw new Error("extractedDocument must be present in constructor argument");this.extractedDocument=null!=e.extractedDocument?new r.$G(e.extractedDocument):null,void 0!==e.globalIndex&&(this.globalIndex=e.globalIndex)}}const c=["LEGACY","NEXT_GEN_LOW_POWER","NEXT_GEN","NEXT_GEN_LOW_POWER_FAR_DISTANCE","NEXT_GEN_FAR_DISTANCE","NEXT_GEN_MAX_DISTANCE"],l=["LAST_VISIBLE","INTERPOLATE_BY_CAMERA"];class u{constructor(e={}){this.accumulationTime=500,this.removeUnconnectedResults=!0,this.method="INTERPOLATE_BY_CAMERA",void 0!==e.accumulationTime&&(this.accumulationTime=e.accumulationTime),void 0!==e.removeUnconnectedResults&&(this.removeUnconnectedResults=e.removeUnconnectedResults),void 0!==e.method&&(this.method=e.method)}}class d{constructor(e={}){this.barcodeFormatConfigurations=[new i.jj({})],this.extractedDocumentFormats=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC","BRITISH_COLUMBIA_DRIVER_LICENSE"],this.onlyAcceptDocuments=!1,this.returnBarcodeImage=!1,this.accumulationConfig=new u({}),this.optimizedForOverlays=!1,this.directAcceptanceAreaFraction=.8,this.engineMode="NEXT_GEN_LOW_POWER",this.processingMode="AUTO",void 0!==e.barcodeFormatConfigurations&&(this.barcodeFormatConfigurations=e.barcodeFormatConfigurations.map((e=>i.TG.from(e)))),void 0!==e.extractedDocumentFormats&&(this.extractedDocumentFormats=e.extractedDocumentFormats.map((e=>e))),void 0!==e.onlyAcceptDocuments&&(this.onlyAcceptDocuments=e.onlyAcceptDocuments),void 0!==e.returnBarcodeImage&&(this.returnBarcodeImage=e.returnBarcodeImage),void 0!==e.accumulationConfig&&(this.accumulationConfig=new u(e.accumulationConfig)),void 0!==e.optimizedForOverlays&&(this.optimizedForOverlays=e.optimizedForOverlays),void 0!==e.directAcceptanceAreaFraction&&(this.directAcceptanceAreaFraction=e.directAcceptanceAreaFraction),void 0!==e.engineMode&&(this.engineMode=e.engineMode),void 0!==e.processingMode&&(this.processingMode=e.processingMode)}}class m{constructor(e={}){if(void 0===e.barcodes)throw new Error("barcodes must be present in constructor argument");if(this.barcodes=e.barcodes.map((e=>new s(e))),void 0===e.success)throw new Error("success must be present in constructor argument");this.success=e.success}}},4165:(e,t,n)=>{"use strict";n.d(t,{BT:()=>c,HQ:()=>u,JA:()=>o,Of:()=>a,WO:()=>s,a7:()=>r,pY:()=>l});var i=n(4169);class r{constructor(e={}){this.visible=!0,this.deselected=new i.Kx({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),this.selected=new i.Kx({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.deselected&&(this.deselected=new i.Kx(e.deselected)),void 0!==e.selected&&(this.selected=new i.Kx(e.selected))}}const o=["DISABLED","STACKED","BELOW","ABOVE"];class a{constructor(e={}){this.imageVisible=!0,this.titleSelected=new i.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleSelected=new i.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.titleDeselected=new i.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleDeselected=new i.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.backgroundSelected=new i.Kx({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:0,cornerRadius:10}),this.backgroundDeselected=new i.Kx({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:0,cornerRadius:10}),void 0!==e.imageVisible&&(this.imageVisible=e.imageVisible),void 0!==e.titleSelected&&(this.titleSelected=new i.D7(e.titleSelected)),void 0!==e.subtitleSelected&&(this.subtitleSelected=new i.D7(e.subtitleSelected)),void 0!==e.titleDeselected&&(this.titleDeselected=new i.D7(e.titleDeselected)),void 0!==e.subtitleDeselected&&(this.subtitleDeselected=new i.D7(e.subtitleDeselected)),void 0!==e.backgroundSelected&&(this.backgroundSelected=new i.Kx(e.backgroundSelected)),void 0!==e.backgroundDeselected&&(this.backgroundDeselected=new i.Kx(e.backgroundDeselected))}}class s{constructor(e={}){this.visible=!1,this.counterBadge=new i.$l({background:new i.se({}),foregroundColor:"?sbColorOnSurface"}),this.automaticSelectionEnabled=!1,this.barcodeItemInfoPosition="DISABLED",this.polygon=new r({visible:!0,deselected:new i.Kx({}),selected:new i.Kx({})}),this.barcodeItemConfiguration=new a({imageVisible:!0,titleSelected:new i.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new i.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new i.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new i.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new i.Kx({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new i.Kx({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.counterBadge&&(this.counterBadge=new i.$l(e.counterBadge)),void 0!==e.automaticSelectionEnabled&&(this.automaticSelectionEnabled=e.automaticSelectionEnabled),void 0!==e.barcodeItemInfoPosition&&(this.barcodeItemInfoPosition=e.barcodeItemInfoPosition),void 0!==e.polygon&&(this.polygon=new r(e.polygon)),void 0!==e.barcodeItemConfiguration&&(this.barcodeItemConfiguration=new a(e.barcodeItemConfiguration))}}class c{constructor(e={}){this.visible=!0,this.partiallyScanned=new i.Kx({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.rejected=new i.Kx({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.completed=new i.Kx({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.partiallyScanned&&(this.partiallyScanned=new i.Kx(e.partiallyScanned)),void 0!==e.rejected&&(this.rejected=new i.Kx(e.rejected)),void 0!==e.completed&&(this.completed=new i.Kx(e.completed))}}class l{constructor(e={}){this.partiallyScanned=new i.$l({visible:!0,background:new i.se({strokeColor:"#FFFFFF30",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.rejected=new i.$l({visible:!0,background:new i.se({strokeColor:"#FFFFFF30",fillColor:"?sbColorNegative",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.completed=new i.$l({visible:!0,background:new i.se({strokeColor:"#FFFFFF30",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),void 0!==e.partiallyScanned&&(this.partiallyScanned=new i.$l(e.partiallyScanned)),void 0!==e.rejected&&(this.rejected=new i.$l(e.rejected)),void 0!==e.completed&&(this.completed=new i.$l(e.completed))}}class u{constructor(e={}){this.visible=!1,this.automaticSelectionEnabled=!0,this.polygon=new c({}),this.badge=new l({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.automaticSelectionEnabled&&(this.automaticSelectionEnabled=e.automaticSelectionEnabled),void 0!==e.polygon&&(this.polygon=new c(e.polygon)),void 0!==e.badge&&(this.badge=new l(e.badge))}}},4169:(e,t,n)=>{"use strict";n.d(t,{$l:()=>u,AB:()=>f,Cp:()=>g,D7:()=>r,DT:()=>p,Hx:()=>C,K0:()=>a,Kx:()=>s,X9:()=>l,cD:()=>m,es:()=>i,pO:()=>o,q:()=>E,se:()=>c,si:()=>D,tp:()=>A,vU:()=>d,z$:()=>_,z1:()=>h});class i{constructor(e={}){this.sbColorPrimary="#C8193C",this.sbColorPrimaryDisabled="#F5F5F5",this.sbColorNegative="#FF3737",this.sbColorPositive="#4EFFB4",this.sbColorWarning="#FFCE5C",this.sbColorSecondary="#FFEDEE",this.sbColorSecondaryDisabled="#F5F5F5",this.sbColorOnPrimary="#FFFFFF",this.sbColorOnSecondary="#C8193C",this.sbColorSurface="#FFFFFF",this.sbColorOutline="#EFEFEF",this.sbColorOnSurfaceVariant="#707070",this.sbColorOnSurface="#000000",this.sbColorSurfaceLow="#00000026",this.sbColorSurfaceHigh="#0000007A",this.sbColorModalOverlay="#000000A3",void 0!==e.sbColorPrimary&&(this.sbColorPrimary=e.sbColorPrimary),void 0!==e.sbColorPrimaryDisabled&&(this.sbColorPrimaryDisabled=e.sbColorPrimaryDisabled),void 0!==e.sbColorNegative&&(this.sbColorNegative=e.sbColorNegative),void 0!==e.sbColorPositive&&(this.sbColorPositive=e.sbColorPositive),void 0!==e.sbColorWarning&&(this.sbColorWarning=e.sbColorWarning),void 0!==e.sbColorSecondary&&(this.sbColorSecondary=e.sbColorSecondary),void 0!==e.sbColorSecondaryDisabled&&(this.sbColorSecondaryDisabled=e.sbColorSecondaryDisabled),void 0!==e.sbColorOnPrimary&&(this.sbColorOnPrimary=e.sbColorOnPrimary),void 0!==e.sbColorOnSecondary&&(this.sbColorOnSecondary=e.sbColorOnSecondary),void 0!==e.sbColorSurface&&(this.sbColorSurface=e.sbColorSurface),void 0!==e.sbColorOutline&&(this.sbColorOutline=e.sbColorOutline),void 0!==e.sbColorOnSurfaceVariant&&(this.sbColorOnSurfaceVariant=e.sbColorOnSurfaceVariant),void 0!==e.sbColorOnSurface&&(this.sbColorOnSurface=e.sbColorOnSurface),void 0!==e.sbColorSurfaceLow&&(this.sbColorSurfaceLow=e.sbColorSurfaceLow),void 0!==e.sbColorSurfaceHigh&&(this.sbColorSurfaceHigh=e.sbColorSurfaceHigh),void 0!==e.sbColorModalOverlay&&(this.sbColorModalOverlay=e.sbColorModalOverlay)}}class r{constructor(e={}){this.visible=!0,this.text="",this.color="#FFFFFF",this.useShadow=!1,void 0!==e.visible&&(this.visible=e.visible),void 0!==e.text&&(this.text=e.text),void 0!==e.color&&(this.color=e.color),void 0!==e.useShadow&&(this.useShadow=e.useShadow)}}class o{constructor(e={}){this.visible=!0,this.color="#FFFFFF",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.color&&(this.color=e.color)}}class a{constructor(e={}){this.visible=!0,this.color="#FFFFFF",this.accessibilityDescription="",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.color&&(this.color=e.color),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription)}}class s{constructor(e={}){this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,this.cornerRadius=0,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.fillColor&&(this.fillColor=e.fillColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class c{constructor(e={}){this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.fillColor&&(this.fillColor=e.fillColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth)}}class l{constructor(e={}){this.iconVisible=!0,this.color="#FFFFFF",this.useShadow=!1,void 0!==e.iconVisible&&(this.iconVisible=e.iconVisible),void 0!==e.color&&(this.color=e.color),void 0!==e.useShadow&&(this.useShadow=e.useShadow)}}class u{constructor(e={}){this.visible=!0,this.background=new c({}),this.foregroundColor="?sbColorOnSurface",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.background&&(this.background=new c(e.background)),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor)}}class d{constructor(e={}){this.visible=!0,this.accessibilityDescription="",this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor),void 0!==e.activeBackgroundColor&&(this.activeBackgroundColor=e.activeBackgroundColor),void 0!==e.activeForegroundColor&&(this.activeForegroundColor=e.activeForegroundColor)}}class m{constructor(e={}){this.badgeBackgroundColor="#FFFFFF",this.badgeForegroundColor="#C8193C",this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==e.badgeBackgroundColor&&(this.badgeBackgroundColor=e.badgeBackgroundColor),void 0!==e.badgeForegroundColor&&(this.badgeForegroundColor=e.badgeForegroundColor),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor),void 0!==e.activeBackgroundColor&&(this.activeBackgroundColor=e.activeBackgroundColor),void 0!==e.activeForegroundColor&&(this.activeForegroundColor=e.activeForegroundColor)}}class h{constructor(e={}){this.visible=!0,this.text="",this.accessibilityDescription="",this.background=new c({}),this.foreground=new l({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.text&&(this.text=e.text),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.background&&(this.background=new c(e.background)),void 0!==e.foreground&&(this.foreground=new l(e.foreground))}}class p{constructor(e={}){this.title=new r({}),this.accessibilityDescription="",this.icon=new o({}),void 0!==e.title&&(this.title=new r(e.title)),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.icon&&(this.icon=new o(e.icon))}}class E{constructor(e={}){this.visible=!0,this.title=new r({}),this.accessibilityDescription="",this.background=new c({}),this.icon=new o({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.title&&(this.title=new r(e.title)),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.background&&(this.background=new c(e.background)),void 0!==e.icon&&(this.icon=new o(e.icon))}}const A=["FIT_IN","FILL_IN"],g=["MODERN_BEEP","CLASSIC_BEEP"];class f{constructor(e={}){this.successBeepEnabled=!0,this.soundType="MODERN_BEEP",void 0!==e.successBeepEnabled&&(this.successBeepEnabled=e.successBeepEnabled),void 0!==e.soundType&&(this.soundType=e.soundType)}}class C{constructor(e={}){this.enabled=!1,void 0!==e.enabled&&(this.enabled=e.enabled)}}class _{constructor(e={}){this.autoCancelTimeout=0,this.initialScanDelay=0,void 0!==e.autoCancelTimeout&&(this.autoCancelTimeout=e.autoCancelTimeout),void 0!==e.initialScanDelay&&(this.initialScanDelay=e.initialScanDelay)}}class D{constructor(e={}){this.top=0,this.left=0,this.bottom=0,this.right=0,void 0!==e.top&&(this.top=e.top),void 0!==e.left&&(this.left=e.left),void 0!==e.bottom&&(this.bottom=e.bottom),void 0!==e.right&&(this.right=e.right)}}},4480:(e,t,n)=>{"use strict";n.d(t,{p:()=>a});var i=n(8667),r=n(525),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new i.Bp({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.CheckScanner.create(new i.Bp(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.CheckScanner.run(this.objectId,e);return{result:new i.fn(o.result),originalImage:new r._(o.originalImage)}}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.CheckScanner.destroy(this.objectId)}))}}},4537:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,q:()=>r});var i=n(6302);function r(e,t,n){return Math.min(Math.max(e,t),n)}function o(e,t,n){return new i.b(r(e.x,-t/2,n.width-t/2),r(e.y,-t/2,n.height-t/2))}},4730:(e,t,n)=>{"use strict";n.d(t,{Hr:()=>r});var i=n(8763);function r(e){return{render(t){(0,i.XX)(t,e)},unmount(){(0,i.xJ)(e)}}}},4751:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var i=n(6302);class r{constructor(e,t){this.width=e,this.height=t}isPortrait(){return this.height>this.width}ratio(e){return e?this.height/this.width:this.width/this.height}ratioDiff(e,t){return this.ratio(t)/e.ratio(t)}static isEmpty(e){return!e||(0===e.width||0===e.height)}static toPolygon(e){return[new i.b(0,0),new i.b(e.width,0),new i.b(e.width,e.height),new i.b(0,e.height)]}static fromHtmlElement(e){return e?new r(e.clientWidth,e.clientHeight):new r(0,0)}static fromJson(e){return new r(e.width,e.height)}static subtractFrom(e,t){return new r(e.width-t,e.height-t)}static empty(){return new r(0,0)}}},4896:(e,t,n)=>{"use strict";n.d(t,{b2:()=>r,ix:()=>o,w5:()=>a});var i=n(6396);const r=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC","BRITISH_COLUMBIA_DRIVER_LICENSE"];class o{constructor(e={}){}}!function(e){e.all=["AAMVA","BOARDING_PASS","DE_MEDICAL_PLAN","MEDICAL_CERTIFICATE","ID_CARD_PDF_417","SEPA","SWISS_QR","VCARD","GS1","HIBC","BRITISH_COLUMBIA_DRIVER_LICENSE"],e.documentBarcodeFormats={AAMVA:["PDF_417"],ID_CARD_PDF_417:["PDF_417"],SEPA:["QR_CODE"],MEDICAL_CERTIFICATE:["PDF_417"],DE_MEDICAL_PLAN:["DATA_MATRIX"],BOARDING_PASS:["PDF_417","AZTEC","QR_CODE"],VCARD:["QR_CODE","DATA_MATRIX"],SWISS_QR:["QR_CODE"],GS1:["CODE_128","AZTEC","DATA_MATRIX","DATABAR","DATABAR_EXPANDED","DATABAR_LIMITED","EAN_13","EAN_8","GS1_COMPOSITE","ITF","MICRO_PDF_417","PDF_417","QR_CODE","UPC_A","UPC_E"],HIBC:["CODE_39","CODE_128","AZTEC","DATA_MATRIX","MICRO_PDF_417","PDF_417","QR_CODE"],BRITISH_COLUMBIA_DRIVER_LICENSE:["PDF_417"]}}(o||(o={}));class a{constructor(e={}){if(void 0===e.success)throw new Error("success must be present in constructor argument");if(this.success=e.success,void 0===e.parsedDocument)throw new Error("parsedDocument must be present in constructor argument");this.parsedDocument=null!=e.parsedDocument?new i.$G(e.parsedDocument):null}}},5072:(e,t,n)=>{"use strict";var i,r=function(){return"undefined"==typeof i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var e={};return function(t){if("undefined"==typeof e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},i=[],r=0;r<e.length;r++){var o=e[r],c=t.base?o[0]+t.base:o[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=s(u),m={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(m)):a.push({identifier:u,updater:A(m,t),references:1}),i.push(u)}return i}function l(e){var t=document.createElement("style"),i=e.attributes||{};if("undefined"==typeof i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function m(e,t,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=d(t,r);else{var o=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var p=null,E=0;function A(e,t){var n,i,r;if(t.singleton){var o=E++;n=p||(p=l(t)),i=m.bind(null,n,o,!1),r=m.bind(null,n,o,!0)}else n=l(t),i=h.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var r=s(n[i]);a[r].references--}for(var o=c(e,t),l=0;l<n.length;l++){var u=s(n[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},5189:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,x2:()=>c});var i=n(8763),r=n(9476),o=n(952),a=n(5933),s=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class c extends r.A7{}class l extends r.Ib{constructor(e){super(e),this.paused=!1,Object.assign(this.state,{isFinderVisible:!0})}componentDidMount(){super.componentDidMount(),this.resumeDetection(),this.detect()}componentWillUnmount(){super.componentWillUnmount(),this.pauseDetection()}resumeDetection(){this.paused=!1}pauseDetection(){this.paused=!0}isDetectionPaused(){return this.paused}detect(){return s(this,void 0,void 0,(function*(){throw new Error("'detect' method needs to be overridden.")}))}renderView(e){var t;return i.Ay.createElement("div",{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"black",minHeight:"100px"}},this.renderSpinner(null==e?void 0:e.spinnerColor),i.Ay.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},i.Ay.createElement(a.A,{configuration:e,videoConstraints:e.videoConstraints,mirrored:e.mirrored,preferredCamera:e.preferredCamera,zoom:null!==(t=this.state.zoom)&&void 0!==t?t:e.zoom,onReady:this.onVideoReady,onError:this.onVideoError,ref:e=>{this.camera=e}})),this.state.isFinderVisible&&i.Ay.createElement(o.Ay,{ref:e=>{null!==e&&(this.finder=e)},guidanceConfiguration:e.userGuidance,configuration:e.finder}))}}},5215:(e,t,n)=>{"use strict";n.d(t,{C6:()=>r,Cl:()=>o,Tt:()=>a,fX:()=>c,zs:()=>s});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}Object.create;function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}Object.create},5218:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const r=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},5291:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AcknowledgementBottomBar:()=>H,AcknowledgementModeValues:()=>W,AcknowledgementScreenConfiguration:()=>G,ActionBarConfiguration:()=>N,AnalyticsCategory:()=>Ve,AnalyticsEvent:()=>Ue,AnalyticsEventFactory:()=>We,AnalyticsEventName:()=>Ze,AnalyticsFeature:()=>ke,ArOverlayFindAndPickConfiguration:()=>i.HQ,ArOverlayGeneralConfiguration:()=>i.WO,ArOverlayPolygonConfiguration:()=>i.a7,BackgroundStyle:()=>r.se,BadgeStyle:()=>r.$l,BadgedButton:()=>r.cD,BarButtonConfiguration:()=>r.q,BarcodeAccumulationConfiguration:()=>y.Q,BarcodeAccumulationMethodValues:()=>y.bC,BarcodeInfoMapping:()=>s,BarcodeItem:()=>y.Ou,BarcodeItemConfiguration:()=>i.Of,BarcodeItemErrorState:()=>o,BarcodeItemInfoPositionValues:()=>i.JA,BarcodeMappedData:()=>a,BarcodeScannerConfiguration:()=>y.zQ,BarcodeScannerEngineModeValues:()=>y.MD,BarcodeScannerScreenConfiguration:()=>Z,BarcodeScannerUiItem:()=>I,BarcodeScannerUiResult:()=>v,BarcodeTextLocalization:()=>D,BarcodeUseCase:()=>_,BaseViewFinderConfiguration:()=>T,BottomBarModeValues:()=>Pe,ButtonConfiguration:()=>r.z1,CameraBottomBar:()=>re,CameraConfiguration:()=>L,CameraLiveScannerResolutionValues:()=>xe,CameraModuleValues:()=>M,CameraPermissionScreen:()=>R,CameraPreviewModeValues:()=>r.tp,CameraScreenConfiguration:()=>ue,CaptureFeedback:()=>ce,CheckIntroImage:()=>K.CY,CollapsedVisibleHeightValues:()=>d,CreditCardIntroImage:()=>K.XJ,CroppingBottomBar:()=>de,CroppingScreenConfiguration:()=>me,CustomImage:()=>K.$E,DocumentAnalysisModeValues:()=>Ee,DocumentFlowAppearanceConfiguration:()=>Ie,DocumentIntroImage:()=>K.fk,DocumentPolygonConfiguration:()=>le,DocumentScannerCameraConfiguration:()=>Y,DocumentScannerOutputSettings:()=>Ae,DocumentScannerScreens:()=>De,DocumentScannerTextLocalization:()=>ye,DocumentScannerUserGuidance:()=>j,DocumentScanningFlow:()=>ve,EdgeInsets:()=>r.si,ExpectedBarcode:()=>f,Field:()=>He.D0,FieldDataFormatValues:()=>He.yJ,FieldParsedData:()=>He.YA,FieldType:()=>He.PU,FieldValidationStatusValues:()=>He.oB,FindAndPickArOverlayPolygonConfiguration:()=>i.BT,FindAndPickBadgeConfiguration:()=>i.pY,FindAndPickScanningMode:()=>C,FinderCorneredStyle:()=>B,FinderStrokedStyle:()=>P,FinderStyle:()=>O,ForegroundStyle:()=>r.X9,GenericDocument:()=>He.$G,GenericDocumentType:()=>He.Dq,IconButton:()=>r.K0,IconStyle:()=>r.pO,IconUserGuidanceConfiguration:()=>U.h,IdCardIntroImage:()=>K.t6,IntroImage:()=>K.Cz,IntroListEntry:()=>K.Ls,IntroductionScreenConfiguration:()=>K.hk,ManualCountEditDialog:()=>p,MedicalCertificateIntroImage:()=>K.ue,MrzFinderLayoutPreset:()=>Ne,MrzIntroCustomImage:()=>Re._h,MrzIntroDefaultImage:()=>Re.eE,MrzIntroNoImage:()=>Re.yv,MrzScannerIntroImage:()=>Re.FI,MrzScannerIntroScreenConfiguration:()=>Re.aT,MrzScannerScreenConfiguration:()=>we,MrzScannerScreenTextLocalization:()=>Te,MrzScannerUiResult:()=>Fe.n,MultipleBarcodesScanningModeValues:()=>l,MultipleScanningMode:()=>A,NavigationBarModeValues:()=>Be,NoButtonMode:()=>ie,NoIntroImage:()=>K.Nc,NoLayoutPreset:()=>Me,OcrResult:()=>He.S5,PagePreviewMode:()=>te,PageSnapCheckMarkAnimation:()=>ae,PageSnapFeedbackMode:()=>J,PageSnapFeedbackNone:()=>se,PageSnapFunnelAnimation:()=>oe,Palette:()=>r.es,PermanentViewFinderConfiguration:()=>F,PolygonStyle:()=>r.Kx,PopupMenuItem:()=>r.DT,PreviewButton:()=>Q,ReceiptsIntroImage:()=>K.ND,Resolution:()=>b,ReviewBottomBarConfiguration:()=>ge,ReviewMorePopupMenu:()=>fe,ReviewScreenConfiguration:()=>_e,RoundButton:()=>r.vU,ScanAssistanceOverlay:()=>ee,ScanCompletionOverlay:()=>Oe,ScanbotAlertDialog:()=>g,SelectCameraMenu:()=>x,Sheet:()=>m,SheetContent:()=>E,SheetModeValues:()=>u,ShutterButton:()=>$,SingleScanningMode:()=>c,Sound:()=>r.AB,SoundTypeValues:()=>r.Cp,StyledText:()=>r.D7,SwipeToDelete:()=>h,TextButtonMode:()=>ne,ThreeLineMrzFinderLayoutPreset:()=>be,Timeouts:()=>r.z$,TopBarConfiguration:()=>k,TopBarModeValues:()=>V,TwoLineMrzFinderLayoutPreset:()=>Se,UserGuidanceConfiguration:()=>U.q,UserGuidanceStates:()=>X,UserGuidanceVisibilityValues:()=>he,Vibration:()=>r.Hx,ViewFinderConfiguration:()=>w,ZoomOverlay:()=>Ce});var i=n(4165),r=n(4169);class o{constructor(e={}){this.title=new r.D7({text:"Connection Error!",color:"?sbColorOnSurface"}),this.subtitle=new r.D7({text:"There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",color:"?sbColorOnSurfaceVariant"}),this.retryButton=new r.z1({}),this.cancelButton=new r.z1({}),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.subtitle&&(this.subtitle=new r.D7(e.subtitle)),void 0!==e.retryButton&&(this.retryButton=new r.z1(e.retryButton)),void 0!==e.cancelButton&&(this.cancelButton=new r.z1(e.cancelButton))}}class a{constructor(e={}){if(void 0===e.title)throw new Error("title must be present in constructor argument");if(this.title=e.title,void 0===e.subtitle)throw new Error("subtitle must be present in constructor argument");if(this.subtitle=e.subtitle,void 0===e.barcodeImage)throw new Error("barcodeImage must be present in constructor argument");this.barcodeImage=e.barcodeImage}}class s{constructor(e={}){this.barcodeItemMapper=null,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.loadingMessage=new r.D7({text:"Loading message for barcode info mapping.",color:"?sbColorPrimary"}),this.errorState=new o({}),void 0!==e.barcodeItemMapper&&(this.barcodeItemMapper=null!=e.barcodeItemMapper?e.barcodeItemMapper:null),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.loadingMessage&&(this.loadingMessage=new r.D7(e.loadingMessage)),void 0!==e.errorState&&(this.errorState=new o(e.errorState))}}class c{constructor(e={}){this._type="SingleScanningMode",this.confirmationSheetEnabled=!1,this.barcodeImageVisible=!0,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.barcodeTitle=new r.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.barcodeSubtitle=new r.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.submitButton=new r.z1({visible:!0,text:"?sheetSubmitButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary"})}),this.cancelButton=new r.z1({visible:!0,text:"?singleModeConfirmationCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary"})}),this.barcodeInfoMapping=new s({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new r.D7({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new o({title:new r.D7({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new r.z1({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary"})}),cancelButton:new r.z1({text:"?barcodeInfoMappingErrorStateCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary"})})})}),this.arOverlay=new i.WO({visible:!1,counterBadge:new r.$l({visible:!0,background:new r.se({strokeColor:"#000000FF",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new i.a7({visible:!0,deselected:new r.Kx({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new r.Kx({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new i.Of({imageVisible:!0,titleSelected:new r.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new r.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new r.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new r.D7({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),backgroundSelected:new r.Kx({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new r.Kx({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==e.confirmationSheetEnabled&&(this.confirmationSheetEnabled=e.confirmationSheetEnabled),void 0!==e.barcodeImageVisible&&(this.barcodeImageVisible=e.barcodeImageVisible),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.barcodeTitle&&(this.barcodeTitle=new r.D7(e.barcodeTitle)),void 0!==e.barcodeSubtitle&&(this.barcodeSubtitle=new r.D7(e.barcodeSubtitle)),void 0!==e.submitButton&&(this.submitButton=new r.z1(e.submitButton)),void 0!==e.cancelButton&&(this.cancelButton=new r.z1(e.cancelButton)),void 0!==e.barcodeInfoMapping&&(this.barcodeInfoMapping=new s(e.barcodeInfoMapping)),void 0!==e.arOverlay&&(this.arOverlay=new i.WO(e.arOverlay))}}const l=["COUNTING","UNIQUE"],u=["BUTTON","COLLAPSED_SHEET"],d=["SMALL","LARGE"];class m{constructor(e={}){this.mode="COLLAPSED_SHEET",this.collapsedVisibleHeight="SMALL",this.listButton=new r.cD({}),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.collapsedVisibleHeight&&(this.collapsedVisibleHeight=e.collapsedVisibleHeight),void 0!==e.listButton&&(this.listButton=new r.cD(e.listButton))}}class h{constructor(e={}){this.enabled=!0,this.backgroundColor="?sbColorNegative",this.iconColor="?sbColorOnPrimary",void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.iconColor&&(this.iconColor=e.iconColor)}}class p{constructor(e={}){this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.title=new r.D7({text:"Update count",color:"?sbColorOnSurface"}),this.info=new r.D7({text:"Adjust the number of items you scanned.",color:"?sbColorOnSurfaceVariant"}),this.updateButton=new r.z1({visible:!0,text:"Update",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),this.cancelButton=new r.z1({visible:!0,text:"Cancel",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),this.clearTextButton=new r.pO({visible:!0,color:"?sbColorOnSurfaceVariant"}),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.info&&(this.info=new r.D7(e.info)),void 0!==e.updateButton&&(this.updateButton=new r.z1(e.updateButton)),void 0!==e.cancelButton&&(this.cancelButton=new r.z1(e.cancelButton)),void 0!==e.clearTextButton&&(this.clearTextButton=new r.pO(e.clearTextButton))}}class E{constructor(e={}){this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.manualCountChangeEnabled=!0,this.manualCountOutlineColor="?sbColorOutline",this.manualCountChangeColor="?sbColorPrimary",this.title=new r.D7({text:"%d items",color:"?sbColorOnSurface"}),this.clearAllButton=new r.z1({visible:!0,text:"Clear all",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.barcodeItemTitle=new r.D7({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),this.barcodeItemSubtitle=new r.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.barcodeItemImageVisible=!0,this.submitButton=new r.z1({visible:!0,text:"Submit",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.startScanningButton=new r.z1({visible:!0,text:"Start scanning",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.placeholderTitle=new r.D7({text:"No barcodes here!",color:"?sbColorOnSurface"}),this.placeholderSubtitle=new r.D7({text:"The barcode list is currently empty. Close this sheet and scan your items to add them.",color:"?sbColorOnSurfaceVariant"}),this.placeholderIconBackground="?sbColorOutline",this.placeholderIcon=new r.pO({visible:!0,color:"?sbColorOnSurface"}),this.swipeToDelete=new h({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"}),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.manualCountChangeEnabled&&(this.manualCountChangeEnabled=e.manualCountChangeEnabled),void 0!==e.manualCountOutlineColor&&(this.manualCountOutlineColor=e.manualCountOutlineColor),void 0!==e.manualCountChangeColor&&(this.manualCountChangeColor=e.manualCountChangeColor),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.clearAllButton&&(this.clearAllButton=new r.z1(e.clearAllButton)),void 0!==e.barcodeItemTitle&&(this.barcodeItemTitle=new r.D7(e.barcodeItemTitle)),void 0!==e.barcodeItemSubtitle&&(this.barcodeItemSubtitle=new r.D7(e.barcodeItemSubtitle)),void 0!==e.barcodeItemImageVisible&&(this.barcodeItemImageVisible=e.barcodeItemImageVisible),void 0!==e.submitButton&&(this.submitButton=new r.z1(e.submitButton)),void 0!==e.startScanningButton&&(this.startScanningButton=new r.z1(e.startScanningButton)),void 0!==e.placeholderTitle&&(this.placeholderTitle=new r.D7(e.placeholderTitle)),void 0!==e.placeholderSubtitle&&(this.placeholderSubtitle=new r.D7(e.placeholderSubtitle)),void 0!==e.placeholderIconBackground&&(this.placeholderIconBackground=e.placeholderIconBackground),void 0!==e.placeholderIcon&&(this.placeholderIcon=new r.pO(e.placeholderIcon)),void 0!==e.swipeToDelete&&(this.swipeToDelete=new h(e.swipeToDelete))}}class A{constructor(e={}){this._type="MultipleScanningMode",this.countingRepeatDelay=1e3,this.allowEmptySubmission=!1,this.mode="COUNTING",this.sheet=new m({mode:"COLLAPSED_SHEET",collapsedVisibleHeight:"SMALL",listButton:new r.cD({badgeBackgroundColor:"?sbColorSurface",badgeForegroundColor:"?sbColorPrimary",visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.sheetContent=new E({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",manualCountChangeEnabled:!0,manualCountOutlineColor:"?sbColorOutline",manualCountChangeColor:"?sbColorPrimary",title:new r.D7({text:"?multipleModeSheetTitle",color:"?sbColorOnSurface"}),clearAllButton:new r.z1({visible:!0,text:"?sheetClearAllButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),barcodeItemTitle:new r.D7({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),barcodeItemSubtitle:new r.D7({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),barcodeItemImageVisible:!0,submitButton:new r.z1({visible:!0,text:"?sheetSubmitButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),startScanningButton:new r.z1({visible:!0,text:"?sheetStartScanningButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),placeholderTitle:new r.D7({visible:!0,text:"?sheetPlaceholderTitle",color:"?sbColorOnSurface",useShadow:!1}),placeholderSubtitle:new r.D7({visible:!0,text:"?sheetPlaceholderSubtitle",color:"?sbColorOnSurfaceVariant",useShadow:!1}),placeholderIconBackground:"?sbColorOutline",placeholderIcon:new r.pO({visible:!0,color:"?sbColorOnSurface"}),swipeToDelete:new h({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"})}),this.manualCountEditDialog=new p({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",title:new r.D7({text:"?manualCountEditDialogTitle",color:"?sbColorOnSurface"}),info:new r.D7({text:"?manualCountEditDialogInfo",color:"?sbColorOnSurfaceVariant"}),updateButton:new r.z1({visible:!0,text:"?manualCountEditDialogUpdateButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new r.z1({visible:!0,text:"?manualCountEditDialogCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),clearTextButton:new r.pO({visible:!0,color:"?sbColorOnSurfaceVariant"})}),this.barcodeInfoMapping=new s({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new r.D7({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new o({title:new r.D7({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new r.z1({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new r.z1({visible:!0,text:"?barcodeInfoMappingErrorStateCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})})}),this.arOverlay=new i.WO({visible:!1,counterBadge:new r.$l({visible:!0,background:new r.se({strokeColor:"#FF000000",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new i.a7({visible:!0,deselected:new r.Kx({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new r.Kx({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new i.Of({imageVisible:!0,titleSelected:new r.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new r.D7({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),titleDeselected:new r.D7({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),subtitleDeselected:new r.D7({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new r.Kx({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new r.Kx({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==e.countingRepeatDelay&&(this.countingRepeatDelay=e.countingRepeatDelay),void 0!==e.allowEmptySubmission&&(this.allowEmptySubmission=e.allowEmptySubmission),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.sheet&&(this.sheet=new m(e.sheet)),void 0!==e.sheetContent&&(this.sheetContent=new E(e.sheetContent)),void 0!==e.manualCountEditDialog&&(this.manualCountEditDialog=new p(e.manualCountEditDialog)),void 0!==e.barcodeInfoMapping&&(this.barcodeInfoMapping=new s(e.barcodeInfoMapping)),void 0!==e.arOverlay&&(this.arOverlay=new i.WO(e.arOverlay))}}class g{constructor(e={}){this.title=new r.D7({text:"Title",color:"?sbColorOnSurface"}),this.subtitle=new r.D7({text:"Standard explanation message text.",color:"?sbColorOnSurfaceVariant"}),this.sheetColor="?sbColorSurface",this.modalOverlayColor="?sbColorModalOverlay",this.dividerColor="?sbColorOutline",this.okButton=new r.z1({background:new r.se({fillColor:"?sbColorPrimary"})}),this.actionButton=new r.z1({visible:!1,background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0})}),this.cancelButton=new r.z1({visible:!0,background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0})}),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.subtitle&&(this.subtitle=new r.D7(e.subtitle)),void 0!==e.sheetColor&&(this.sheetColor=e.sheetColor),void 0!==e.modalOverlayColor&&(this.modalOverlayColor=e.modalOverlayColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.okButton&&(this.okButton=new r.z1(e.okButton)),void 0!==e.actionButton&&(this.actionButton=new r.z1(e.actionButton)),void 0!==e.cancelButton&&(this.cancelButton=new r.z1(e.cancelButton))}}class f{constructor(e={}){if(this.title=null,this.image=null,this.count=1,void 0===e.barcodeValue)throw new Error("barcodeValue must be present in constructor argument");this.barcodeValue=e.barcodeValue,void 0!==e.title&&(this.title=null!=e.title?e.title:null),void 0!==e.image&&(this.image=null!=e.image?e.image:null),void 0!==e.count&&(this.count=e.count)}}class C{constructor(e={}){this._type="FindAndPickScanningMode",this.scanningCompletedColor="?sbColorPositive",this.scanningPartiallyColor="?sbColorWarning",this.scanningNotScannedColor="?sbColorOutline",this.allowPartialScan=!1,this.expectedBarcodes=[],this.countingRepeatDelay=1e3,this.sheet=new m({mode:"COLLAPSED_SHEET",collapsedVisibleHeight:"SMALL",listButton:new r.cD({badgeBackgroundColor:"?sbColorSurface",badgeForegroundColor:"?sbColorPrimary",visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.sheetContent=new E({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",manualCountChangeEnabled:!0,manualCountOutlineColor:"?sbColorOutline",manualCountChangeColor:"?sbColorPrimary",title:new r.D7({visible:!0,text:"?findAndPickSheetTitle",color:"?sbColorOnSurface",useShadow:!1}),clearAllButton:new r.z1({visible:!0,text:"?sheetResetButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),barcodeItemTitle:new r.D7({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),barcodeItemSubtitle:new r.D7({text:"?findAndPickSheetBarcodeItemSubtitle",color:"?sbColorOnSurfaceVariant"}),barcodeItemImageVisible:!0,submitButton:new r.z1({visible:!0,text:"?sheetSubmitButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),startScanningButton:new r.z1({visible:!0,text:"?sheetStartScanningButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),placeholderTitle:new r.D7({text:"?sheetPlaceholderTitle",color:"?sbColorOnSurface"}),placeholderSubtitle:new r.D7({text:"?sheetPlaceholderSubtitle",color:"?sbColorOnSurfaceVariant"}),placeholderIconBackground:"?sbColorOutline",placeholderIcon:new r.pO({visible:!0,color:"?sbColorOnSurface"}),swipeToDelete:new h({enabled:!1,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"})}),this.manualCountEditDialog=new p({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",title:new r.D7({text:"?manualCountEditDialogTitle",color:"?sbColorOnSurface"}),info:new r.D7({text:"?manualCountEditDialogInfo",color:"?sbColorOnSurfaceVariant"}),updateButton:new r.z1({visible:!0,text:"?manualCountEditDialogUpdateButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new r.z1({visible:!0,text:"?manualCountEditDialogCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),clearTextButton:new r.pO({visible:!0,color:"?sbColorOnSurfaceVariant"})}),this.arOverlay=new i.HQ({visible:!0,automaticSelectionEnabled:!0,polygon:new i.BT({partiallyScanned:new r.Kx({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),rejected:new r.Kx({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),completed:new r.Kx({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),badge:new i.pY({partiallyScanned:new r.$l({visible:!0,background:new r.se({strokeColor:"#000000FF",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),rejected:new r.$l({visible:!0,background:new r.se({strokeColor:"#000000FF",fillColor:"?sbColorSurface",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),completed:new r.$l({visible:!0,background:new r.se({strokeColor:"#000000FF",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"})})}),this.partialScannedAlertDialogEnabled=!0,this.partialScannedAlertDialog=new g({title:new r.D7({text:"?findAndPickPartialAlertTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?findAndPickPartialAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new r.z1({visible:!0,text:"?findAndPickPartialAlertSubmitButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new r.z1({visible:!0,text:"?findAndPickPartialAlertCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),this.confirmationAlertDialogEnabled=!1,this.confirmationAlertDialog=new g({title:new r.D7({text:"?findAndPickCompleteAlertTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?findAndPickCompleteAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),sheetColor:"?sbColorSurface",modalOverlayColor:"?sbColorModalOverlay",dividerColor:"?sbColorOutline",okButton:new r.z1({visible:!0,text:"?findAndPickCompleteAlertSubmitButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new r.z1({visible:!0,text:"?findAndPickCompleteAlertCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})}),void 0!==e.scanningCompletedColor&&(this.scanningCompletedColor=e.scanningCompletedColor),void 0!==e.scanningPartiallyColor&&(this.scanningPartiallyColor=e.scanningPartiallyColor),void 0!==e.scanningNotScannedColor&&(this.scanningNotScannedColor=e.scanningNotScannedColor),void 0!==e.allowPartialScan&&(this.allowPartialScan=e.allowPartialScan),void 0!==e.expectedBarcodes&&(this.expectedBarcodes=e.expectedBarcodes.map((e=>new f(e)))),void 0!==e.countingRepeatDelay&&(this.countingRepeatDelay=e.countingRepeatDelay),void 0!==e.sheet&&(this.sheet=new m(e.sheet)),void 0!==e.sheetContent&&(this.sheetContent=new E(e.sheetContent)),void 0!==e.manualCountEditDialog&&(this.manualCountEditDialog=new p(e.manualCountEditDialog)),void 0!==e.arOverlay&&(this.arOverlay=new i.HQ(e.arOverlay)),void 0!==e.partialScannedAlertDialogEnabled&&(this.partialScannedAlertDialogEnabled=e.partialScannedAlertDialogEnabled),void 0!==e.partialScannedAlertDialog&&(this.partialScannedAlertDialog=new g(e.partialScannedAlertDialog)),void 0!==e.confirmationAlertDialogEnabled&&(this.confirmationAlertDialogEnabled=e.confirmationAlertDialogEnabled),void 0!==e.confirmationAlertDialog&&(this.confirmationAlertDialog=new g(e.confirmationAlertDialog))}}var _;!function(e){e.from=function(e){const t=e._type;switch(t){case"SingleScanningMode":return new c(e);case"MultipleScanningMode":return new A(e);case"FindAndPickScanningMode":return new C(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(_||(_={}));class D{constructor(e={}){this.topBarCancelButton="Cancel",this.topBarTitle="Scan Item",this.userGuidance="Move the finder over a barcode",this.barcodeInfoMappingLoadingMessage="Loading details...",this.barcodeInfoMappingErrorStateTitle="Connection Error!",this.barcodeInfoMappingErrorStateSubtitle="There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",this.barcodeInfoMappingErrorStateRetryButton="Retry",this.barcodeInfoMappingErrorStateCancelButton="Cancel",this.manualCountEditDialogTitle="Update count",this.manualCountEditDialogInfo="Adjust the number of items you scanned.",this.manualCountEditDialogUpdateButton="Update",this.manualCountEditDialogCancelButton="Cancel",this.sheetResetButton="Reset",this.sheetClearAllButton="Clear all",this.sheetSubmitButton="Submit",this.sheetStartScanningButton="Start scanning",this.sheetPlaceholderTitle="No barcodes here!",this.sheetPlaceholderSubtitle="The barcode list is currently empty. Close this sheet and scan your items to add them.",this.singleModeConfirmationCancelButton="Close",this.multipleModeSheetTitle="%d items",this.findAndPickSheetTitle="%d/%d scanned",this.findAndPickSheetBarcodeItemSubtitle="%d/%d added",this.findAndPickPartialAlertTitle="Incomplete scan!",this.findAndPickPartialAlertSubtitle="Some codes are yet to be scanned. Proceed with submission anyway?",this.findAndPickPartialAlertCancelButton="Cancel",this.findAndPickPartialAlertSubmitButton="Yes, Submit",this.findAndPickCompleteAlertTitle="All codes found!",this.findAndPickCompleteAlertSubtitle="You have successfully scanned all codes. Proceed with submission?",this.findAndPickCompleteAlertCancelButton="Dismiss",this.accessibilityDescriptionCancelButton="Cancel",this.accessibilityDescriptionFlashButton="Toggle flash",this.accessibilityDescriptionZoomButton="Toggle camera zoom",this.accessibilityDescriptionFlipCameraButton="Flip camera",this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",this.accessibilityDescriptionCameraSelectButton="Tap to open camera selection menu",this.accessibilityDescriptionCameraSelectMenuItem="Tap to select camera",this.cameraSelectCameraMenuTitle="Select camera",void 0!==e.topBarCancelButton&&(this.topBarCancelButton=e.topBarCancelButton),void 0!==e.topBarTitle&&(this.topBarTitle=e.topBarTitle),void 0!==e.userGuidance&&(this.userGuidance=e.userGuidance),void 0!==e.barcodeInfoMappingLoadingMessage&&(this.barcodeInfoMappingLoadingMessage=e.barcodeInfoMappingLoadingMessage),void 0!==e.barcodeInfoMappingErrorStateTitle&&(this.barcodeInfoMappingErrorStateTitle=e.barcodeInfoMappingErrorStateTitle),void 0!==e.barcodeInfoMappingErrorStateSubtitle&&(this.barcodeInfoMappingErrorStateSubtitle=e.barcodeInfoMappingErrorStateSubtitle),void 0!==e.barcodeInfoMappingErrorStateRetryButton&&(this.barcodeInfoMappingErrorStateRetryButton=e.barcodeInfoMappingErrorStateRetryButton),void 0!==e.barcodeInfoMappingErrorStateCancelButton&&(this.barcodeInfoMappingErrorStateCancelButton=e.barcodeInfoMappingErrorStateCancelButton),void 0!==e.manualCountEditDialogTitle&&(this.manualCountEditDialogTitle=e.manualCountEditDialogTitle),void 0!==e.manualCountEditDialogInfo&&(this.manualCountEditDialogInfo=e.manualCountEditDialogInfo),void 0!==e.manualCountEditDialogUpdateButton&&(this.manualCountEditDialogUpdateButton=e.manualCountEditDialogUpdateButton),void 0!==e.manualCountEditDialogCancelButton&&(this.manualCountEditDialogCancelButton=e.manualCountEditDialogCancelButton),void 0!==e.sheetResetButton&&(this.sheetResetButton=e.sheetResetButton),void 0!==e.sheetClearAllButton&&(this.sheetClearAllButton=e.sheetClearAllButton),void 0!==e.sheetSubmitButton&&(this.sheetSubmitButton=e.sheetSubmitButton),void 0!==e.sheetStartScanningButton&&(this.sheetStartScanningButton=e.sheetStartScanningButton),void 0!==e.sheetPlaceholderTitle&&(this.sheetPlaceholderTitle=e.sheetPlaceholderTitle),void 0!==e.sheetPlaceholderSubtitle&&(this.sheetPlaceholderSubtitle=e.sheetPlaceholderSubtitle),void 0!==e.singleModeConfirmationCancelButton&&(this.singleModeConfirmationCancelButton=e.singleModeConfirmationCancelButton),void 0!==e.multipleModeSheetTitle&&(this.multipleModeSheetTitle=e.multipleModeSheetTitle),void 0!==e.findAndPickSheetTitle&&(this.findAndPickSheetTitle=e.findAndPickSheetTitle),void 0!==e.findAndPickSheetBarcodeItemSubtitle&&(this.findAndPickSheetBarcodeItemSubtitle=e.findAndPickSheetBarcodeItemSubtitle),void 0!==e.findAndPickPartialAlertTitle&&(this.findAndPickPartialAlertTitle=e.findAndPickPartialAlertTitle),void 0!==e.findAndPickPartialAlertSubtitle&&(this.findAndPickPartialAlertSubtitle=e.findAndPickPartialAlertSubtitle),void 0!==e.findAndPickPartialAlertCancelButton&&(this.findAndPickPartialAlertCancelButton=e.findAndPickPartialAlertCancelButton),void 0!==e.findAndPickPartialAlertSubmitButton&&(this.findAndPickPartialAlertSubmitButton=e.findAndPickPartialAlertSubmitButton),void 0!==e.findAndPickCompleteAlertTitle&&(this.findAndPickCompleteAlertTitle=e.findAndPickCompleteAlertTitle),void 0!==e.findAndPickCompleteAlertSubtitle&&(this.findAndPickCompleteAlertSubtitle=e.findAndPickCompleteAlertSubtitle),void 0!==e.findAndPickCompleteAlertCancelButton&&(this.findAndPickCompleteAlertCancelButton=e.findAndPickCompleteAlertCancelButton),void 0!==e.accessibilityDescriptionCancelButton&&(this.accessibilityDescriptionCancelButton=e.accessibilityDescriptionCancelButton),void 0!==e.accessibilityDescriptionFlashButton&&(this.accessibilityDescriptionFlashButton=e.accessibilityDescriptionFlashButton),void 0!==e.accessibilityDescriptionZoomButton&&(this.accessibilityDescriptionZoomButton=e.accessibilityDescriptionZoomButton),void 0!==e.accessibilityDescriptionFlipCameraButton&&(this.accessibilityDescriptionFlipCameraButton=e.accessibilityDescriptionFlipCameraButton),void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraSelectButton&&(this.accessibilityDescriptionCameraSelectButton=e.accessibilityDescriptionCameraSelectButton),void 0!==e.accessibilityDescriptionCameraSelectMenuItem&&(this.accessibilityDescriptionCameraSelectMenuItem=e.accessibilityDescriptionCameraSelectMenuItem),void 0!==e.cameraSelectCameraMenuTitle&&(this.cameraSelectCameraMenuTitle=e.cameraSelectCameraMenuTitle)}}var y=n(4151);class I{constructor(e={}){if(void 0===e.barcode)throw new Error("barcode must be present in constructor argument");if(this.barcode=new y.Ou(e.barcode),void 0===e.count)throw new Error("count must be present in constructor argument");this.count=e.count}}class v{constructor(e={}){this.selectedZoomFactor=1,this.items=[],void 0!==e.selectedZoomFactor&&(this.selectedZoomFactor=e.selectedZoomFactor),void 0!==e.items&&(this.items=e.items.map((e=>new I(e))))}}class N{constructor(e={}){this.flashButton=new r.vU({visible:!0,accessibilityDescription:"?accessibilityDescriptionFlashButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),this.zoomButton=new r.vU({visible:!0,accessibilityDescription:"?accessibilityDescriptionZoomButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),this.flipCameraButton=new r.vU({visible:!0,accessibilityDescription:"?accessibilityDescriptionFlipCameraButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),void 0!==e.flashButton&&(this.flashButton=new r.vU(e.flashButton)),void 0!==e.zoomButton&&(this.zoomButton=new r.vU(e.zoomButton)),void 0!==e.flipCameraButton&&(this.flipCameraButton=new r.vU(e.flipCameraButton))}}var S=n(586);class b{constructor(e={}){if(void 0===e.width)throw new Error("width must be present in constructor argument");if(this.width=e.width,void 0===e.height)throw new Error("height must be present in constructor argument");this.height=e.height}}const M=["FRONT","BACK"];class L{constructor(e={}){this.cameraModule="BACK",this.zoomSteps=[1,2,5],this.defaultZoomFactor=1,this.flashEnabled=!1,this.cameraPreviewMode="FILL_IN",this.idealPreviewResolution=new b({width:1920,height:1080}),this.fpsLimit=20,this.cameraLiveScannerResolution="FULL_HD",void 0!==e.cameraModule&&(this.cameraModule=e.cameraModule),void 0!==e.zoomSteps&&(this.zoomSteps=e.zoomSteps.map((e=>e))),void 0!==e.defaultZoomFactor&&(this.defaultZoomFactor=e.defaultZoomFactor),void 0!==e.flashEnabled&&(this.flashEnabled=e.flashEnabled),void 0!==e.cameraPreviewMode&&(this.cameraPreviewMode=e.cameraPreviewMode),void 0!==e.idealPreviewResolution&&(this.idealPreviewResolution=new b(e.idealPreviewResolution)),void 0!==e.fpsLimit&&(this.fpsLimit=e.fpsLimit),void 0!==e.cameraLiveScannerResolution&&(this.cameraLiveScannerResolution=e.cameraLiveScannerResolution)}}class R{constructor(e={}){this.background="?sbColorSurface",this.iconBackground="?sbColorOutline",this.icon=new r.pO({color:"?sbColorOnSurface"}),this.closeButton=new r.z1({text:"?cameraPermissionCloseButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary"})}),this.enableCameraTitle=new r.D7({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),this.enableCameraExplanation=new r.D7({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"}),void 0!==e.background&&(this.background=e.background),void 0!==e.iconBackground&&(this.iconBackground=e.iconBackground),void 0!==e.icon&&(this.icon=new r.pO(e.icon)),void 0!==e.closeButton&&(this.closeButton=new r.z1(e.closeButton)),void 0!==e.enableCameraTitle&&(this.enableCameraTitle=new r.D7(e.enableCameraTitle)),void 0!==e.enableCameraExplanation&&(this.enableCameraExplanation=new r.D7(e.enableCameraExplanation))}}var T,O;!function(e){e.from=function(e){const t=e._type;switch(t){case"ViewFinderConfiguration":return new w(e);case"PermanentViewFinderConfiguration":return new F(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(T||(T={}));class w{constructor(e={}){this._type="ViewFinderConfiguration",this.style=new B({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),this.overlayColor="?sbColorSurfaceLow",this.aspectRatio=new S.gl({width:1,height:1}),this.minimumInsets=new r.si({top:16,left:16,bottom:16,right:16}),this.preferredHeight=-1,this.visible=!0,void 0!==e.style&&(this.style=O.from(e.style)),void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.aspectRatio&&(this.aspectRatio=new S.gl(e.aspectRatio)),void 0!==e.minimumInsets&&(this.minimumInsets=new r.si(e.minimumInsets)),void 0!==e.preferredHeight&&(this.preferredHeight=e.preferredHeight),void 0!==e.visible&&(this.visible=e.visible)}}class F{constructor(e={}){this._type="PermanentViewFinderConfiguration",this.style=new B({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),this.overlayColor="?sbColorSurfaceLow",this.aspectRatio=new S.gl({width:1,height:1}),this.minimumInsets=new r.si({top:16,left:16,bottom:16,right:16}),this.preferredHeight=-1,void 0!==e.style&&(this.style=O.from(e.style)),void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.aspectRatio&&(this.aspectRatio=new S.gl(e.aspectRatio)),void 0!==e.minimumInsets&&(this.minimumInsets=new r.si(e.minimumInsets)),void 0!==e.preferredHeight&&(this.preferredHeight=e.preferredHeight)}}!function(e){e.from=function(e){const t=e._type;switch(t){case"FinderCorneredStyle":return new B(e);case"FinderStrokedStyle":return new P(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(O||(O={}));class B{constructor(e={}){this._type="FinderCorneredStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class P{constructor(e={}){this._type="FinderStrokedStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class x{constructor(e={}){this.button=new r.K0({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionCameraSelectButton"}),this.backgroundColor="?sbColorSurface",this.title=new r.D7({text:"?cameraSelectCameraMenuTitle",color:"?sbColorOnSurfaceVariant"}),this.dividerColor="?sbColorOutline",this.menuEntry=new r.DT({title:new r.D7({color:"?sbColorOnSurface"}),accessibilityDescription:"?accessibilityDescriptionCameraSelectMenuItem",icon:new r.pO({color:"?sbColorOnSurface"})}),this.menuEntryActive=new r.DT({title:new r.D7({color:"?sbColorPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraSelectMenuItem",icon:new r.pO({color:"?sbColorPrimary"})}),void 0!==e.button&&(this.button=new r.K0(e.button)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.menuEntry&&(this.menuEntry=new r.DT(e.menuEntry)),void 0!==e.menuEntryActive&&(this.menuEntryActive=new r.DT(e.menuEntryActive))}}class k{constructor(e={}){this.title=new r.D7({visible:!1,text:"Scan Item",color:"?sbColorOnPrimary"}),this.mode="SOLID",this.backgroundColor="?sbColorPrimary",this.cancelButton=new r.z1({text:"Cancel",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})}),this.cameraSelect=new x({}),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.cancelButton&&(this.cancelButton=new r.z1(e.cancelButton)),void 0!==e.cameraSelect&&(this.cameraSelect=new x(e.cameraSelect))}}const V=["SOLID","GRADIENT","HIDDEN"];var U=n(7771);class Z{constructor(e={}){this.version="1.0",this.screen="BarcodeScanner",this.palette=new r.es({sbColorPrimary:"#C8193C",sbColorPrimaryDisabled:"#F5F5F5",sbColorNegative:"#FF3737",sbColorPositive:"#4EFFB4",sbColorWarning:"#FFCE5C",sbColorSecondary:"#FFEDEE",sbColorSecondaryDisabled:"#F5F5F5",sbColorOnPrimary:"#FFFFFF",sbColorOnSecondary:"#C8193C",sbColorSurface:"#FFFFFF",sbColorOutline:"#EFEFEF",sbColorOnSurfaceVariant:"#707070",sbColorOnSurface:"#000000",sbColorSurfaceLow:"#00000026",sbColorSurfaceHigh:"#0000007A",sbColorModalOverlay:"#000000A3"}),this.localization=new D({}),this.backgroundColor="?sbColorSurfaceLow",this.topBar=new k({title:new r.D7({text:"?topBarTitle",color:"?sbColorOnPrimary"}),mode:"SOLID",backgroundColor:"?sbColorPrimary",cancelButton:new r.z1({visible:!0,text:"?topBarCancelButton",accessibilityDescription:"?accessibilityDescriptionCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})})}),this.actionBar=new N({flashButton:new r.vU({visible:!0,accessibilityDescription:"?accessibilityDescriptionFlashButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),zoomButton:new r.vU({visible:!0,accessibilityDescription:"?accessibilityDescriptionZoomButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),flipCameraButton:new r.vU({visible:!0,accessibilityDescription:"?accessibilityDescriptionFlipCameraButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"})}),this.viewFinder=new w({style:new B({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),overlayColor:"?sbColorSurfaceLow",aspectRatio:new S.gl({width:1,height:1}),visible:!0}),this.userGuidance=new U.q({visible:!0,title:new r.D7({text:"?userGuidance",color:"?sbColorOnPrimary"}),background:new r.se({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow",strokeWidth:0})}),this.cameraPermission=new R({background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new r.pO({visible:!0,color:"?sbColorOnSurface"}),closeButton:new r.z1({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new r.D7({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new r.D7({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.cameraConfiguration=new L({}),this.scannerConfiguration=new y.zQ({returnBarcodeImage:!0}),this.useCase=new c({}),this.sound=new r.AB({successBeepEnabled:!0,soundType:"MODERN_BEEP"}),this.vibration=new r.Hx({enabled:!0}),this.timeouts=new r.z$({autoCancelTimeout:0,initialScanDelay:0}),void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.palette&&(this.palette=new r.es(e.palette)),void 0!==e.localization&&(this.localization=new D(e.localization)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.topBar&&(this.topBar=new k(e.topBar)),void 0!==e.actionBar&&(this.actionBar=new N(e.actionBar)),void 0!==e.viewFinder&&(this.viewFinder=new w(e.viewFinder)),void 0!==e.userGuidance&&(this.userGuidance=new U.q(e.userGuidance)),void 0!==e.cameraPermission&&(this.cameraPermission=new R(e.cameraPermission)),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new L(e.cameraConfiguration)),void 0!==e.scannerConfiguration&&(this.scannerConfiguration=new y.zQ(e.scannerConfiguration)),void 0!==e.useCase&&(this.useCase=_.from(e.useCase)),void 0!==e.sound&&(this.sound=new r.AB(e.sound)),void 0!==e.vibration&&(this.vibration=new r.Hx(e.vibration)),void 0!==e.timeouts&&(this.timeouts=new r.z$(e.timeouts))}}const W=["BAD_QUALITY","ALWAYS","NONE"];class H{constructor(e={}){this.retakeButton=new r.q({title:new r.D7({text:"?acknowledgementRetakeButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionAcknowledgementRetakeButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.acceptWhenOkButton=new r.q({title:new r.D7({text:"?acknowledgementAcceptButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionAcknowledgementAcceptButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.acceptWhenNotOkButton=new r.q({title:new r.D7({text:"?acknowledgementAcceptButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionAcknowledgementAcceptButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),void 0!==e.retakeButton&&(this.retakeButton=new r.q(e.retakeButton)),void 0!==e.acceptWhenOkButton&&(this.acceptWhenOkButton=new r.q(e.acceptWhenOkButton)),void 0!==e.acceptWhenNotOkButton&&(this.acceptWhenNotOkButton=new r.q(e.acceptWhenNotOkButton))}}class G{constructor(e={}){this.topBarTitle=new r.D7({visible:!1,text:"?acknowledgementTitle",color:"?sbColorOnPrimary"}),this.minimumQuality="POOR",this.acknowledgementMode="ALWAYS",this.badImageHint=new U.h({visible:!0,icon:new r.pO({color:"?sbColorOnPrimary"}),title:new r.D7({text:"?acknowledgementScreenBadDocumentHint",color:"?sbColorOnPrimary"}),background:new r.se({strokeColor:"?sbColorNegative",fillColor:"?sbColorNegative",strokeWidth:0})}),this.backgroundColor="?sbColorOutline",this.bottomBar=new H({}),void 0!==e.topBarTitle&&(this.topBarTitle=new r.D7(e.topBarTitle)),void 0!==e.minimumQuality&&(this.minimumQuality=e.minimumQuality),void 0!==e.acknowledgementMode&&(this.acknowledgementMode=e.acknowledgementMode),void 0!==e.badImageHint&&(this.badImageHint=new U.h(e.badImageHint)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.bottomBar&&(this.bottomBar=new H(e.bottomBar))}}var z=n(681);class Y{constructor(e={}){this.cameraModule="BACK",this.autoCropOnManualSnap=!0,this.flashEnabled=!1,this.cameraPreviewMode="FILL_IN",this.idealPreviewResolution=new b({width:1920,height:1080}),this.autoSnappingSensitivity=.66,this.autoSnappingDelay=200,this.autoSnappingEnabled=!0,this.fpsLimit=20,this.cameraLiveScannerResolution="FULL_HD",this.useImageCaptureAPI=!1,void 0!==e.cameraModule&&(this.cameraModule=e.cameraModule),void 0!==e.autoCropOnManualSnap&&(this.autoCropOnManualSnap=e.autoCropOnManualSnap),void 0!==e.flashEnabled&&(this.flashEnabled=e.flashEnabled),void 0!==e.cameraPreviewMode&&(this.cameraPreviewMode=e.cameraPreviewMode),void 0!==e.idealPreviewResolution&&(this.idealPreviewResolution=new b(e.idealPreviewResolution)),void 0!==e.autoSnappingSensitivity&&(this.autoSnappingSensitivity=e.autoSnappingSensitivity),void 0!==e.autoSnappingDelay&&(this.autoSnappingDelay=e.autoSnappingDelay),void 0!==e.autoSnappingEnabled&&(this.autoSnappingEnabled=e.autoSnappingEnabled),void 0!==e.fpsLimit&&(this.fpsLimit=e.fpsLimit),void 0!==e.cameraLiveScannerResolution&&(this.cameraLiveScannerResolution=e.cameraLiveScannerResolution),void 0!==e.useImageCaptureAPI&&(this.useImageCaptureAPI=e.useImageCaptureAPI)}}var q=n(3618);class X{constructor(e={}){this.noDocumentFound="?cameraUserGuidanceNoDocumentFound",this.badAspectRatio="?cameraUserGuidanceBadAspectRatio",this.badAngles="?cameraUserGuidanceBadAngles",this.orientationMismatch="?cameraUserGuidanceOrientationMismatch",this.textHintOffCenter="?cameraUserGuidanceTextHintOffCenter",this.tooSmall="?cameraUserGuidanceTooSmall",this.tooNoisy="?cameraUserGuidanceTooNoisy",this.tooDark="?cameraUserGuidanceTooDark",this.energySaveMode="?cameraUserGuidanceEnergySaveMode",this.readyToCapture="?cameraUserGuidanceReadyToCapture",this.capturing="?cameraUserGuidanceReadyToCapture",this.captureManual="?cameraUserGuidanceReadyToCaptureManual",void 0!==e.noDocumentFound&&(this.noDocumentFound=e.noDocumentFound),void 0!==e.badAspectRatio&&(this.badAspectRatio=e.badAspectRatio),void 0!==e.badAngles&&(this.badAngles=e.badAngles),void 0!==e.orientationMismatch&&(this.orientationMismatch=e.orientationMismatch),void 0!==e.textHintOffCenter&&(this.textHintOffCenter=e.textHintOffCenter),void 0!==e.tooSmall&&(this.tooSmall=e.tooSmall),void 0!==e.tooNoisy&&(this.tooNoisy=e.tooNoisy),void 0!==e.tooDark&&(this.tooDark=e.tooDark),void 0!==e.energySaveMode&&(this.energySaveMode=e.energySaveMode),void 0!==e.readyToCapture&&(this.readyToCapture=e.readyToCapture),void 0!==e.capturing&&(this.capturing=e.capturing),void 0!==e.captureManual&&(this.captureManual=e.captureManual)}}class j{constructor(e={}){this.visibility="ENABLED",this.title=new r.D7({text:"?cameraUserGuidanceStart",color:"?sbColorOnPrimary"}),this.background=new r.se({strokeColor:"#00000000",fillColor:"?sbColorSurfaceHigh"}),this.statesTitles=new X({}),void 0!==e.visibility&&(this.visibility=e.visibility),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.background&&(this.background=new r.se(e.background)),void 0!==e.statesTitles&&(this.statesTitles=new X(e.statesTitles))}}var Q,J,K=n(3684);class ${constructor(e={}){this.enabledInAutoSnappingMode=!0,this.accessibilityDescription="?accessibilityDescriptionCameraShutterButton",this.outerColor="?sbColorOnPrimary",this.innerColor="?sbColorOnPrimary",void 0!==e.enabledInAutoSnappingMode&&(this.enabledInAutoSnappingMode=e.enabledInAutoSnappingMode),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.outerColor&&(this.outerColor=e.outerColor),void 0!==e.innerColor&&(this.innerColor=e.innerColor)}}!function(e){e.from=function(e){const t=e._type;switch(t){case"PagePreviewMode":return new te(e);case"TextButtonMode":return new ne(e);case"NoButtonMode":return new ie(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(Q||(Q={}));class ee{constructor(e={}){this.visible=!0,this.backgroundColor="?sbColorModalOverlay",this.foregroundColor="?sbColorSurface",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor)}}class te{constructor(e={}){this._type="PagePreviewMode",this.accessibilityDescription="?accessibilityDescriptionCameraPreviewButton",this.imagePlaceholderColor="?sbColorOnSurfaceVariant",this.pageCounter=new r.$l({visible:!0,background:new r.se({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface"}),foregroundColor:"?sbColorPrimary"}),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.imagePlaceholderColor&&(this.imagePlaceholderColor=e.imagePlaceholderColor),void 0!==e.pageCounter&&(this.pageCounter=new r.$l(e.pageCounter))}}class ne{constructor(e={}){this._type="TextButtonMode",this.accessibilityDescription="?accessibilityDescriptionCameraPreviewButton",this.style=new r.D7({text:"?cameraPreviewButtonTitle",color:"?sbColorOnPrimary"}),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.style&&(this.style=new r.D7(e.style))}}class ie{constructor(e={}){this._type="NoButtonMode",this.visible=!1,void 0!==e.visible&&(this.visible=e.visible)}}class re{constructor(e={}){this.bottomBarMode="SOLID",this.importButton=new r.q({title:new r.D7({visible:!1,text:"?cameraImportButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraImportButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.autoSnappingModeButton=new r.q({title:new r.D7({visible:!1,text:"?cameraAutoSnapButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraAutoSnapButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.manualSnappingModeButton=new r.q({title:new r.D7({visible:!1,text:"?cameraManualSnapButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraManualSnapButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.shutterButton=new $({accessibilityDescription:"?accessibilityDescriptionCameraShutterButton"}),this.torchOnButton=new r.q({title:new r.D7({visible:!1,text:"?cameraTorchOnButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraTorchOnButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.torchOffButton=new r.q({title:new r.D7({visible:!1,text:"?cameraTorchOffButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCameraTorchOffButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.previewButton=new te({}),void 0!==e.bottomBarMode&&(this.bottomBarMode=e.bottomBarMode),void 0!==e.importButton&&(this.importButton=new r.q(e.importButton)),void 0!==e.autoSnappingModeButton&&(this.autoSnappingModeButton=new r.q(e.autoSnappingModeButton)),void 0!==e.manualSnappingModeButton&&(this.manualSnappingModeButton=new r.q(e.manualSnappingModeButton)),void 0!==e.shutterButton&&(this.shutterButton=new $(e.shutterButton)),void 0!==e.torchOnButton&&(this.torchOnButton=new r.q(e.torchOnButton)),void 0!==e.torchOffButton&&(this.torchOffButton=new r.q(e.torchOffButton)),void 0!==e.previewButton&&(this.previewButton=Q.from(e.previewButton))}}!function(e){e.from=function(e){const t=e._type;switch(t){case"PageSnapFunnelAnimation":return new oe(e);case"PageSnapCheckMarkAnimation":return new ae(e);case"PageSnapFeedbackNone":return new se(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(J||(J={}));class oe{constructor(e={}){this._type="PageSnapFunnelAnimation",this.overlayColor="?sbColorModalOverlay",void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor)}}class ae{constructor(e={}){this._type="PageSnapCheckMarkAnimation",this.overlayColor="?sbColorModalOverlay",this.checkMarkBackgroundColor="?sbColorOutline",this.checkMarkColor="#00000000",void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.checkMarkBackgroundColor&&(this.checkMarkBackgroundColor=e.checkMarkBackgroundColor),void 0!==e.checkMarkColor&&(this.checkMarkColor=e.checkMarkColor)}}class se{constructor(e={}){this._type="PageSnapFeedbackNone"}}class ce{constructor(e={}){this.cameraBlinkEnabled=!0,this.snapFeedbackMode=new oe({}),void 0!==e.cameraBlinkEnabled&&(this.cameraBlinkEnabled=e.cameraBlinkEnabled),void 0!==e.snapFeedbackMode&&(this.snapFeedbackMode=J.from(e.snapFeedbackMode))}}class le{constructor(e={}){this.visibility="ENABLED",this.documentOk=new r.Kx({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:2}),this.documentNotOk=new r.Kx({strokeColor:"?sbColorNegative",fillColor:"#00000000",strokeWidth:2}),this.autoSnapProgress=new r.Kx({strokeColor:"#40A9FF",fillColor:"#00000000",strokeWidth:2}),void 0!==e.visibility&&(this.visibility=e.visibility),void 0!==e.documentOk&&(this.documentOk=new r.Kx(e.documentOk)),void 0!==e.documentNotOk&&(this.documentNotOk=new r.Kx(e.documentNotOk)),void 0!==e.autoSnapProgress&&(this.autoSnapProgress=new r.Kx(e.autoSnapProgress))}}class ue{constructor(e={}){this.acknowledgement=new G({}),this.introduction=new K.hk({}),this.scanAssistanceOverlay=new ee({}),this.cameraPermission=new R({background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new r.pO({visible:!0,color:"?sbColorOnSurface"}),closeButton:new r.z1({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new r.se({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),enableCameraTitle:new r.D7({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new r.D7({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.topBarTitle=new r.D7({text:"?cameraTopBarTitle",color:"?sbColorOnPrimary"}),this.topBarIntroButton=new r.K0({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionCameraTopBarIntroButton"}),this.topBarBackButton=new r.z1({visible:!0,text:"?cameraTopBarCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraTopBarCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.topBarCameraSelect=new x({}),this.topUserGuidance=new U.q({title:new r.D7({text:"?cameraTopGuidance",color:"?sbColorOnPrimary"})}),this.userGuidance=new j({}),this.backgroundColor="#000000FF",this.autoRotateImages=!0,this.openReviewAfterEachScan=!1,this.cameraConfiguration=new Y({}),this.scannerParameters=new q.AE({}),this.polygon=new le({}),this.bottomBar=new re({}),this.viewFinder=new w({aspectRatio:new S.gl({width:21,height:29}),visible:!1}),this.captureFeedback=new ce({}),this.vibration=new r.Hx({enabled:!0}),this.timeouts=new r.z$({autoCancelTimeout:0,initialScanDelay:0}),this.limitReachedAlertDialog=new g({title:new r.D7({text:"?cameraLimitReachedAlertTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?cameraLimitReachedAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),okButton:new r.z1({text:"?cameraLimitReachedOkButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraLimitReachedOkButton",background:new r.se({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})}),cancelButton:new r.z1({visible:!1})}),this.cancelAlertDialog=new g({title:new r.D7({text:"?cameraCancelAlertTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?cameraCancelAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),okButton:new r.z1({text:"?cameraCancelYesButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraCancelYesButton",background:new r.se({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})}),cancelButton:new r.z1({text:"?cameraCancelNoButtonTitle",accessibilityDescription:"?accessibilityDescriptionCameraCancelNoButton",background:new r.se({fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({color:"?sbColorPrimary"})})}),this.documentQualityAnalyzerConfiguration=new z.TM({}),void 0!==e.acknowledgement&&(this.acknowledgement=new G(e.acknowledgement)),void 0!==e.introduction&&(this.introduction=new K.hk(e.introduction)),void 0!==e.scanAssistanceOverlay&&(this.scanAssistanceOverlay=new ee(e.scanAssistanceOverlay)),void 0!==e.cameraPermission&&(this.cameraPermission=new R(e.cameraPermission)),void 0!==e.topBarTitle&&(this.topBarTitle=new r.D7(e.topBarTitle)),void 0!==e.topBarIntroButton&&(this.topBarIntroButton=new r.K0(e.topBarIntroButton)),void 0!==e.topBarBackButton&&(this.topBarBackButton=new r.z1(e.topBarBackButton)),void 0!==e.topBarCameraSelect&&(this.topBarCameraSelect=new x(e.topBarCameraSelect)),void 0!==e.topUserGuidance&&(this.topUserGuidance=new U.q(e.topUserGuidance)),void 0!==e.userGuidance&&(this.userGuidance=new j(e.userGuidance)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.autoRotateImages&&(this.autoRotateImages=e.autoRotateImages),void 0!==e.openReviewAfterEachScan&&(this.openReviewAfterEachScan=e.openReviewAfterEachScan),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new Y(e.cameraConfiguration)),void 0!==e.scannerParameters&&(this.scannerParameters=new q.AE(e.scannerParameters)),void 0!==e.polygon&&(this.polygon=new le(e.polygon)),void 0!==e.bottomBar&&(this.bottomBar=new re(e.bottomBar)),void 0!==e.viewFinder&&(this.viewFinder=new w(e.viewFinder)),void 0!==e.captureFeedback&&(this.captureFeedback=new ce(e.captureFeedback)),void 0!==e.vibration&&(this.vibration=new r.Hx(e.vibration)),void 0!==e.timeouts&&(this.timeouts=new r.z$(e.timeouts)),void 0!==e.limitReachedAlertDialog&&(this.limitReachedAlertDialog=new g(e.limitReachedAlertDialog)),void 0!==e.cancelAlertDialog&&(this.cancelAlertDialog=new g(e.cancelAlertDialog)),void 0!==e.documentQualityAnalyzerConfiguration&&(this.documentQualityAnalyzerConfiguration=new z.TM(e.documentQualityAnalyzerConfiguration))}}class de{constructor(e={}){this.detectButton=new r.q({title:new r.D7({text:"?croppingDetectButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCroppingDetectButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.rotateButton=new r.q({title:new r.D7({text:"?croppingRotateButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCroppingRotateButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.resetButton=new r.q({title:new r.D7({text:"?croppingResetButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionCroppingResetButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),void 0!==e.detectButton&&(this.detectButton=new r.q(e.detectButton)),void 0!==e.rotateButton&&(this.rotateButton=new r.q(e.rotateButton)),void 0!==e.resetButton&&(this.resetButton=new r.q(e.resetButton))}}class me{constructor(e={}){this.topBarBackButton=new r.z1({visible:!0,text:"?croppingTopBarCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionCroppingTopBarCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.topBarTitle=new r.D7({text:"?croppingScreenTitle",color:"?sbColorOnPrimary"}),this.topBarConfirmButton=new r.z1({visible:!0,text:"?croppingTopBarConfirmButtonTitle",accessibilityDescription:"?accessibilityDescriptionCroppingTopBarConfirmButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.backgroundColor="?sbColorOutline",this.croppingHandlerColor="?sbColorSurface",this.croppingPolygonColor="?sbColorSurface",this.croppingPolygonMagneticLineColor="?sbColorSurface",this.bottomBar=new de({}),void 0!==e.topBarBackButton&&(this.topBarBackButton=new r.z1(e.topBarBackButton)),void 0!==e.topBarTitle&&(this.topBarTitle=new r.D7(e.topBarTitle)),void 0!==e.topBarConfirmButton&&(this.topBarConfirmButton=new r.z1(e.topBarConfirmButton)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.croppingHandlerColor&&(this.croppingHandlerColor=e.croppingHandlerColor),void 0!==e.croppingPolygonColor&&(this.croppingPolygonColor=e.croppingPolygonColor),void 0!==e.croppingPolygonMagneticLineColor&&(this.croppingPolygonMagneticLineColor=e.croppingPolygonMagneticLineColor),void 0!==e.bottomBar&&(this.bottomBar=new de(e.bottomBar))}}const he=["ENABLED","AUTO_CAPTURE_ONLY","DISABLED"];var pe=n(5759);const Ee=["FILTERED_DOCUMENT","UNFILTERED_DOCUMENT"];class Ae{constructor(e={}){this.pagesScanLimit=0,this.documentImageSizeLimit=0,this.documentAnalysisMode="UNFILTERED_DOCUMENT",this.defaultFilter=null,void 0!==e.pagesScanLimit&&(this.pagesScanLimit=e.pagesScanLimit),void 0!==e.documentImageSizeLimit&&(this.documentImageSizeLimit=e.documentImageSizeLimit),void 0!==e.documentAnalysisMode&&(this.documentAnalysisMode=e.documentAnalysisMode),void 0!==e.defaultFilter&&(this.defaultFilter=null!=e.defaultFilter?pe.hI.from(e.defaultFilter):null)}}class ge{constructor(e={}){this.addButton=new r.q({title:new r.D7({text:"?reviewScreenAddButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewAddButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.retakeButton=new r.q({title:new r.D7({text:"?reviewScreenRetakeButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewRetakeButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.cropButton=new r.q({title:new r.D7({text:"?reviewScreenCropButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewCropButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.rotateButton=new r.q({title:new r.D7({text:"?reviewScreenRotateButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewRotateButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.deleteButton=new r.q({title:new r.D7({text:"?reviewScreenDeleteButtonTitle",color:"?sbColorOnPrimary"}),accessibilityDescription:"?accessibilityDescriptionReviewDeleteButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),icon:new r.pO({color:"?sbColorOnPrimary"})}),this.submitButton=new r.z1({text:"?reviewScreenSubmitButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewSubmitButton",background:new r.se({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnSurface"})}),void 0!==e.addButton&&(this.addButton=new r.q(e.addButton)),void 0!==e.retakeButton&&(this.retakeButton=new r.q(e.retakeButton)),void 0!==e.cropButton&&(this.cropButton=new r.q(e.cropButton)),void 0!==e.rotateButton&&(this.rotateButton=new r.q(e.rotateButton)),void 0!==e.deleteButton&&(this.deleteButton=new r.q(e.deleteButton)),void 0!==e.submitButton&&(this.submitButton=new r.z1(e.submitButton))}}class fe{constructor(e={}){this.backgroundColor="?sbColorSurface",this.deleteAll=new r.DT({title:new r.D7({text:"?reviewScreenDeleteAllButtonTitle",color:"?sbColorNegative"}),accessibilityDescription:"?accessibilityDescriptionReviewDeleteAllButton",icon:new r.pO({color:"?sbColorNegative"})}),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.deleteAll&&(this.deleteAll=new r.DT(e.deleteAll))}}class Ce{constructor(e={}){this.overlayColor="?sbColorModalOverlay",this.closeButton=new r.z1({text:"?zoomOverlayCancelButtonText",accessibilityDescription:"?accessibilityDescriptionZoomOverlayCancelButton",background:new r.se({fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})}),void 0!==e.overlayColor&&(this.overlayColor=e.overlayColor),void 0!==e.closeButton&&(this.closeButton=new r.z1(e.closeButton))}}class _e{constructor(e={}){this.enabled=!0,this.showLastPageWhenAdding=!1,this.topBarTitle=new r.D7({text:"?reviewScreenTitle",color:"?sbColorOnPrimary"}),this.topBarMoreButton=new r.K0({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionReviewMoreButton"}),this.topBarBackButton=new r.z1({visible:!0,text:"?reviewTopBarBackButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewTopBarBackButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.morePopup=new fe({}),this.zoomButton=new r.vU({accessibilityDescription:"?accessibilityDescriptionReviewZoomButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary"}),this.zoomOverlay=new Ce({}),this.backgroundColor="?sbColorOnSurfaceVariant",this.bottomBar=new ge({}),this.switchNextPageButton=new r.K0({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionReviewNextPageButton"}),this.switchPreviousPageButton=new r.K0({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionReviewPreviousPageButton"}),this.pageCounter=new U.q({title:new r.D7({text:"?reviewScreenPageCount",color:"?sbColorOnPrimary"}),background:new r.se({fillColor:"?sbColorSurfaceHigh",strokeWidth:0})}),this.deleteAllPagesAlertDialog=new g({title:new r.D7({text:"?reviewDeleteAllPagesAlertTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?reviewDeleteAllPagesAlertSubtitle",color:"?sbColorOnSurfaceVariant"}),okButton:new r.z1({text:"?reviewDeleteAllPagesAlertDeleteButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton",background:new r.se({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})}),actionButton:new r.z1({visible:!1}),cancelButton:new r.z1({text:"?reviewDeleteAllPagesAlertCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton",background:new r.se({fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({color:"?sbColorPrimary"})})}),this.deletePageAlertDialog=new g({title:new r.D7({text:"?reviewDeletePageAlertTitle",color:"?sbColorOnSurface"}),subtitle:new r.D7({text:"?reviewDeletePageAlertSubTitle",color:"?sbColorOnSurfaceVariant"}),okButton:new r.z1({text:"?reviewDeletePageAlertConfirmButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeletePageAlertConfirmButton",background:new r.se({fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})}),actionButton:new r.z1({text:"?reviewDeletePageAlertDeleteRetakeButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton",background:new r.se({fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({color:"?sbColorPrimary"})}),cancelButton:new r.z1({text:"?reviewDeletePageAlertCancelButtonTitle",accessibilityDescription:"?accessibilityDescriptionReviewDeletePageAlertCancelButton",background:new r.se({fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({color:"?sbColorPrimary"})})}),void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.showLastPageWhenAdding&&(this.showLastPageWhenAdding=e.showLastPageWhenAdding),void 0!==e.topBarTitle&&(this.topBarTitle=new r.D7(e.topBarTitle)),void 0!==e.topBarMoreButton&&(this.topBarMoreButton=new r.K0(e.topBarMoreButton)),void 0!==e.topBarBackButton&&(this.topBarBackButton=new r.z1(e.topBarBackButton)),void 0!==e.morePopup&&(this.morePopup=new fe(e.morePopup)),void 0!==e.zoomButton&&(this.zoomButton=new r.vU(e.zoomButton)),void 0!==e.zoomOverlay&&(this.zoomOverlay=new Ce(e.zoomOverlay)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.bottomBar&&(this.bottomBar=new ge(e.bottomBar)),void 0!==e.switchNextPageButton&&(this.switchNextPageButton=new r.K0(e.switchNextPageButton)),void 0!==e.switchPreviousPageButton&&(this.switchPreviousPageButton=new r.K0(e.switchPreviousPageButton)),void 0!==e.pageCounter&&(this.pageCounter=new U.q(e.pageCounter)),void 0!==e.deleteAllPagesAlertDialog&&(this.deleteAllPagesAlertDialog=new g(e.deleteAllPagesAlertDialog)),void 0!==e.deletePageAlertDialog&&(this.deletePageAlertDialog=new g(e.deletePageAlertDialog))}}class De{constructor(e={}){this.camera=new ue({}),this.review=new _e({}),this.cropping=new me({}),void 0!==e.camera&&(this.camera=new ue(e.camera)),void 0!==e.review&&(this.review=new _e(e.review)),void 0!==e.cropping&&(this.cropping=new me(e.cropping))}}class ye{constructor(e={}){this.cameraTopBarCancelButtonTitle="Cancel",this.cameraTopBarTitle="Scan Document",this.cameraTopGuidance="Scan each page of your document.",this.cameraUserGuidanceStart="Please hold your device over a document.",this.cameraUserGuidanceNoDocumentFound="No document found",this.cameraUserGuidanceBadAspectRatio="Bad aspect ratio",this.cameraUserGuidanceOrientationMismatch="Orientation mismatch",this.cameraUserGuidanceBadAngles="Bad angles",this.cameraUserGuidanceTooNoisy="Its too noisy. Try another background for the document",this.cameraUserGuidanceTextHintOffCenter="Document is off center",this.cameraUserGuidanceTooSmall="Document is too small. Move camera closer.",this.cameraUserGuidanceTooDark="Its too dark. Add more light.",this.cameraUserGuidanceEnergySaveMode="Energy save mode is on",this.cameraUserGuidanceReadyToCapture="Hold still capturing...",this.cameraUserGuidanceReadyToCaptureManual="Ready to capture!",this.cameraImportButtonTitle="Import",this.cameraTorchOnButtonTitle="On",this.cameraTorchOffButtonTitle="Off",this.cameraAutoSnapButtonTitle="Auto",this.cameraManualSnapButtonTitle="Manual",this.cameraPreviewButtonTitle="%d Pages",this.cameraBadgedPreviewButtonTitle="Submit",this.cameraIntroDoneButton="Done",this.cameraIntroTitle="How to scan a document",this.cameraIntroSubtitle="Follow the steps below to create a high-quality document scan",this.cameraIntroItem1="1. Place your document on a flat surface.",this.cameraIntroItem2="2. Hold your phone above the document.",this.cameraIntroItem3="3. Follow the on-screen guidance to find the optimal position.",this.cameraIntroItem4="4. Once you reach the optimal position, you can manually scan the document or let the app scan it automatically.",this.cameraProgressOverlayTitle="Please wait...",this.cameraCancelAlertTitle="Cancel?",this.cameraCancelAlertSubtitle="Canceling will delete all the pages scanned so far. Are you sure you want to cancel?",this.cameraCancelNoButtonTitle="No",this.cameraCancelYesButtonTitle="Yes, Cancel",this.cameraLimitReachedAlertTitle="You reached the limit!",this.cameraLimitReachedAlertSubtitle="You have scanned the maximum number of pages and cannot add any more. Please delete at least one page to perform a new scan.",this.cameraLimitReachedOkButtonTitle="Ok",this.acknowledgementScreenBadDocumentHint="The quality of your scan does not seem sufficient.",this.acknowledgementRetakeButtonTitle="Retake",this.acknowledgementAcceptButtonTitle="Use Scan",this.reviewScreenTitle="Review (%d)",this.reviewTopBarBackButtonTitle="Back",this.reviewScreenPageCount="Page %d/%d",this.reviewScreenAddButtonTitle="Add",this.reviewScreenRetakeButtonTitle="Retake",this.reviewScreenCropButtonTitle="Crop",this.reviewScreenRotateButtonTitle="Rotate",this.reviewScreenDeleteButtonTitle="Delete",this.reviewScreenSubmitButtonTitle="Submit",this.reviewScreenDeleteAllButtonTitle="Delete all",this.reviewScreenReorderPagesButtonTitle="Reorder pages",this.zoomOverlayCancelButtonText="Close",this.reviewDeletePageAlertTitle="Delete page?",this.reviewDeleteAllPagesAlertTitle="Delete all?",this.reviewDeletePageAlertSubTitle="Are you sure you want to delete the page?",this.reviewDeleteAllPagesAlertSubtitle="Are you sure you want to delete all pages?",this.reviewDeletePageAlertConfirmButtonTitle="Yes, Delete",this.reviewDeleteAllPagesAlertDeleteButtonTitle="Yes, Delete all",this.reviewDeletePageAlertDeleteRetakeButtonTitle="Delete and Retake",this.reviewDeletePageAlertCancelButtonTitle="Cancel",this.reviewDeleteAllPagesAlertCancelButtonTitle="Cancel",this.acknowledgementTitle="Acknowledgement",this.reorderPageTitle="Reorder Pages",this.reorderPageGuidanceTitle="Drag pages to reorder",this.reorderPageText="%d",this.reorderTopBarConfirmButtonTitle="Done",this.reorderTopBarCancelButtonTitle="Cancel",this.croppingTopBarConfirmButtonTitle="Done",this.croppingTopBarCancelButtonTitle="Cancel",this.croppingDetectButtonTitle="Detect",this.croppingRotateButtonTitle="Rotate",this.croppingResetButtonTitle="Reset",this.croppingScreenTitle="Crop",this.accessibilityDescriptionCameraTopBarIntroButton="Tap to open introduction screen",this.accessibilityDescriptionCameraTopBarCancelButton="Tap to close scanner screen",this.accessibilityDescriptionCameraImportButton="Tap to import image",this.accessibilityDescriptionCameraTorchOnButton="Tap to disable torch",this.accessibilityDescriptionCameraTorchOffButton="Tap to enable torch",this.accessibilityDescriptionCameraShutterButton="Tap to take image",this.accessibilityDescriptionCameraAutoSnapButton="Tap to enable manual snapping mode",this.accessibilityDescriptionCameraManualSnapButton="Tap to enable auto snapping mode",this.accessibilityDescriptionCameraPreviewButton="Tap to preview scanned pages",this.accessibilityDescriptionCameraIntroDoneButton="Tap to close introduction screen",this.accessibilityDescriptionAcknowledgementRetakeButton="Tap to retake the image",this.accessibilityDescriptionAcknowledgementAcceptButton="Tap to accept the image regardless of its quality",this.accessibilityDescriptionCroppingTopBarConfirmButton="Tap to apply changes",this.accessibilityDescriptionCroppingTopBarCancelButton="Tap to close screen without applying changes",this.accessibilityDescriptionCroppingDetectButton="Tap to detect document on the image",this.accessibilityDescriptionCroppingRotateButton="Tap to rotate document",this.accessibilityDescriptionCroppingResetButton="Tap to reset document contour to whole image",this.accessibilityDescriptionReorderTopBarConfirmButton="Tap to apply changes",this.accessibilityDescriptionReorderTopBarCancelButton="Tap to close screen without applying changes",this.accessibilityDescriptionReviewNextPageButton="Tap to switch to the new page",this.accessibilityDescriptionReviewPreviousPageButton="Tap to switch to the previous page",this.accessibilityDescriptionReviewAddButton="Tap to Add new page",this.accessibilityDescriptionReviewRetakeButton="Tap to Retake current selected page",this.accessibilityDescriptionReviewCropButton="Tap to Crop selected page",this.accessibilityDescriptionReviewRotateButton="Tap to Rotate selected page clockwise",this.accessibilityDescriptionReviewDeleteButton="Tap to Delete selected page",this.accessibilityDescriptionReviewSubmitButton="Tap to Submit document",this.accessibilityDescriptionReviewMoreButton="Tap to show additional options",this.accessibilityDescriptionReviewDeleteAllButton="Tap to Delete all pages",this.accessibilityDescriptionReviewReorderPagesButton="Tap to Reorder pages",this.accessibilityDescriptionZoomOverlayCancelButton="Tap to Close zoom overlay",this.accessibilityDescriptionReviewZoomButton="Tap to open zoom overlay for selected page",this.accessibilityDescriptionReviewTopBarBackButton="Tap to Close review screen",this.accessibilityDescriptionReviewDeletePageAlertConfirmButton="Tap to Delete page",this.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton="Tap to Delete all pages",this.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton="Tap to Delete page and Retake it",this.accessibilityDescriptionReviewDeletePageAlertCancelButton="Tap to Cancel operation",this.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton="Tap to Cancel operation",this.accessibilityDescriptionCameraLimitReachedOkButton="Tap to close alert dialog",this.accessibilityDescriptionCameraCancelYesButton="Tap to cancel document",this.accessibilityDescriptionCameraCancelNoButton="Tap to close alert dialog",this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",this.accessibilityDescriptionCameraSelectButton="Tap to open camera selection menu",this.accessibilityDescriptionCameraSelectMenuItem="Tap to select camera",this.cameraSelectCameraMenuTitle="Select camera",void 0!==e.cameraTopBarCancelButtonTitle&&(this.cameraTopBarCancelButtonTitle=e.cameraTopBarCancelButtonTitle),void 0!==e.cameraTopBarTitle&&(this.cameraTopBarTitle=e.cameraTopBarTitle),void 0!==e.cameraTopGuidance&&(this.cameraTopGuidance=e.cameraTopGuidance),void 0!==e.cameraUserGuidanceStart&&(this.cameraUserGuidanceStart=e.cameraUserGuidanceStart),void 0!==e.cameraUserGuidanceNoDocumentFound&&(this.cameraUserGuidanceNoDocumentFound=e.cameraUserGuidanceNoDocumentFound),void 0!==e.cameraUserGuidanceBadAspectRatio&&(this.cameraUserGuidanceBadAspectRatio=e.cameraUserGuidanceBadAspectRatio),void 0!==e.cameraUserGuidanceOrientationMismatch&&(this.cameraUserGuidanceOrientationMismatch=e.cameraUserGuidanceOrientationMismatch),void 0!==e.cameraUserGuidanceBadAngles&&(this.cameraUserGuidanceBadAngles=e.cameraUserGuidanceBadAngles),void 0!==e.cameraUserGuidanceTooNoisy&&(this.cameraUserGuidanceTooNoisy=e.cameraUserGuidanceTooNoisy),void 0!==e.cameraUserGuidanceTextHintOffCenter&&(this.cameraUserGuidanceTextHintOffCenter=e.cameraUserGuidanceTextHintOffCenter),void 0!==e.cameraUserGuidanceTooSmall&&(this.cameraUserGuidanceTooSmall=e.cameraUserGuidanceTooSmall),void 0!==e.cameraUserGuidanceTooDark&&(this.cameraUserGuidanceTooDark=e.cameraUserGuidanceTooDark),void 0!==e.cameraUserGuidanceEnergySaveMode&&(this.cameraUserGuidanceEnergySaveMode=e.cameraUserGuidanceEnergySaveMode),void 0!==e.cameraUserGuidanceReadyToCapture&&(this.cameraUserGuidanceReadyToCapture=e.cameraUserGuidanceReadyToCapture),void 0!==e.cameraUserGuidanceReadyToCaptureManual&&(this.cameraUserGuidanceReadyToCaptureManual=e.cameraUserGuidanceReadyToCaptureManual),void 0!==e.cameraImportButtonTitle&&(this.cameraImportButtonTitle=e.cameraImportButtonTitle),void 0!==e.cameraTorchOnButtonTitle&&(this.cameraTorchOnButtonTitle=e.cameraTorchOnButtonTitle),void 0!==e.cameraTorchOffButtonTitle&&(this.cameraTorchOffButtonTitle=e.cameraTorchOffButtonTitle),void 0!==e.cameraAutoSnapButtonTitle&&(this.cameraAutoSnapButtonTitle=e.cameraAutoSnapButtonTitle),void 0!==e.cameraManualSnapButtonTitle&&(this.cameraManualSnapButtonTitle=e.cameraManualSnapButtonTitle),void 0!==e.cameraPreviewButtonTitle&&(this.cameraPreviewButtonTitle=e.cameraPreviewButtonTitle),void 0!==e.cameraBadgedPreviewButtonTitle&&(this.cameraBadgedPreviewButtonTitle=e.cameraBadgedPreviewButtonTitle),void 0!==e.cameraIntroDoneButton&&(this.cameraIntroDoneButton=e.cameraIntroDoneButton),void 0!==e.cameraIntroTitle&&(this.cameraIntroTitle=e.cameraIntroTitle),void 0!==e.cameraIntroSubtitle&&(this.cameraIntroSubtitle=e.cameraIntroSubtitle),void 0!==e.cameraIntroItem1&&(this.cameraIntroItem1=e.cameraIntroItem1),void 0!==e.cameraIntroItem2&&(this.cameraIntroItem2=e.cameraIntroItem2),void 0!==e.cameraIntroItem3&&(this.cameraIntroItem3=e.cameraIntroItem3),void 0!==e.cameraIntroItem4&&(this.cameraIntroItem4=e.cameraIntroItem4),void 0!==e.cameraProgressOverlayTitle&&(this.cameraProgressOverlayTitle=e.cameraProgressOverlayTitle),void 0!==e.cameraCancelAlertTitle&&(this.cameraCancelAlertTitle=e.cameraCancelAlertTitle),void 0!==e.cameraCancelAlertSubtitle&&(this.cameraCancelAlertSubtitle=e.cameraCancelAlertSubtitle),void 0!==e.cameraCancelNoButtonTitle&&(this.cameraCancelNoButtonTitle=e.cameraCancelNoButtonTitle),void 0!==e.cameraCancelYesButtonTitle&&(this.cameraCancelYesButtonTitle=e.cameraCancelYesButtonTitle),void 0!==e.cameraLimitReachedAlertTitle&&(this.cameraLimitReachedAlertTitle=e.cameraLimitReachedAlertTitle),void 0!==e.cameraLimitReachedAlertSubtitle&&(this.cameraLimitReachedAlertSubtitle=e.cameraLimitReachedAlertSubtitle),void 0!==e.cameraLimitReachedOkButtonTitle&&(this.cameraLimitReachedOkButtonTitle=e.cameraLimitReachedOkButtonTitle),void 0!==e.acknowledgementScreenBadDocumentHint&&(this.acknowledgementScreenBadDocumentHint=e.acknowledgementScreenBadDocumentHint),void 0!==e.acknowledgementRetakeButtonTitle&&(this.acknowledgementRetakeButtonTitle=e.acknowledgementRetakeButtonTitle),void 0!==e.acknowledgementAcceptButtonTitle&&(this.acknowledgementAcceptButtonTitle=e.acknowledgementAcceptButtonTitle),void 0!==e.reviewScreenTitle&&(this.reviewScreenTitle=e.reviewScreenTitle),void 0!==e.reviewTopBarBackButtonTitle&&(this.reviewTopBarBackButtonTitle=e.reviewTopBarBackButtonTitle),void 0!==e.reviewScreenPageCount&&(this.reviewScreenPageCount=e.reviewScreenPageCount),void 0!==e.reviewScreenAddButtonTitle&&(this.reviewScreenAddButtonTitle=e.reviewScreenAddButtonTitle),void 0!==e.reviewScreenRetakeButtonTitle&&(this.reviewScreenRetakeButtonTitle=e.reviewScreenRetakeButtonTitle),void 0!==e.reviewScreenCropButtonTitle&&(this.reviewScreenCropButtonTitle=e.reviewScreenCropButtonTitle),void 0!==e.reviewScreenRotateButtonTitle&&(this.reviewScreenRotateButtonTitle=e.reviewScreenRotateButtonTitle),void 0!==e.reviewScreenDeleteButtonTitle&&(this.reviewScreenDeleteButtonTitle=e.reviewScreenDeleteButtonTitle),void 0!==e.reviewScreenSubmitButtonTitle&&(this.reviewScreenSubmitButtonTitle=e.reviewScreenSubmitButtonTitle),void 0!==e.reviewScreenDeleteAllButtonTitle&&(this.reviewScreenDeleteAllButtonTitle=e.reviewScreenDeleteAllButtonTitle),void 0!==e.reviewScreenReorderPagesButtonTitle&&(this.reviewScreenReorderPagesButtonTitle=e.reviewScreenReorderPagesButtonTitle),void 0!==e.zoomOverlayCancelButtonText&&(this.zoomOverlayCancelButtonText=e.zoomOverlayCancelButtonText),void 0!==e.reviewDeletePageAlertTitle&&(this.reviewDeletePageAlertTitle=e.reviewDeletePageAlertTitle),void 0!==e.reviewDeleteAllPagesAlertTitle&&(this.reviewDeleteAllPagesAlertTitle=e.reviewDeleteAllPagesAlertTitle),void 0!==e.reviewDeletePageAlertSubTitle&&(this.reviewDeletePageAlertSubTitle=e.reviewDeletePageAlertSubTitle),void 0!==e.reviewDeleteAllPagesAlertSubtitle&&(this.reviewDeleteAllPagesAlertSubtitle=e.reviewDeleteAllPagesAlertSubtitle),void 0!==e.reviewDeletePageAlertConfirmButtonTitle&&(this.reviewDeletePageAlertConfirmButtonTitle=e.reviewDeletePageAlertConfirmButtonTitle),void 0!==e.reviewDeleteAllPagesAlertDeleteButtonTitle&&(this.reviewDeleteAllPagesAlertDeleteButtonTitle=e.reviewDeleteAllPagesAlertDeleteButtonTitle),void 0!==e.reviewDeletePageAlertDeleteRetakeButtonTitle&&(this.reviewDeletePageAlertDeleteRetakeButtonTitle=e.reviewDeletePageAlertDeleteRetakeButtonTitle),void 0!==e.reviewDeletePageAlertCancelButtonTitle&&(this.reviewDeletePageAlertCancelButtonTitle=e.reviewDeletePageAlertCancelButtonTitle),void 0!==e.reviewDeleteAllPagesAlertCancelButtonTitle&&(this.reviewDeleteAllPagesAlertCancelButtonTitle=e.reviewDeleteAllPagesAlertCancelButtonTitle),void 0!==e.acknowledgementTitle&&(this.acknowledgementTitle=e.acknowledgementTitle),void 0!==e.reorderPageTitle&&(this.reorderPageTitle=e.reorderPageTitle),void 0!==e.reorderPageGuidanceTitle&&(this.reorderPageGuidanceTitle=e.reorderPageGuidanceTitle),void 0!==e.reorderPageText&&(this.reorderPageText=e.reorderPageText),void 0!==e.reorderTopBarConfirmButtonTitle&&(this.reorderTopBarConfirmButtonTitle=e.reorderTopBarConfirmButtonTitle),void 0!==e.reorderTopBarCancelButtonTitle&&(this.reorderTopBarCancelButtonTitle=e.reorderTopBarCancelButtonTitle),void 0!==e.croppingTopBarConfirmButtonTitle&&(this.croppingTopBarConfirmButtonTitle=e.croppingTopBarConfirmButtonTitle),void 0!==e.croppingTopBarCancelButtonTitle&&(this.croppingTopBarCancelButtonTitle=e.croppingTopBarCancelButtonTitle),void 0!==e.croppingDetectButtonTitle&&(this.croppingDetectButtonTitle=e.croppingDetectButtonTitle),void 0!==e.croppingRotateButtonTitle&&(this.croppingRotateButtonTitle=e.croppingRotateButtonTitle),void 0!==e.croppingResetButtonTitle&&(this.croppingResetButtonTitle=e.croppingResetButtonTitle),void 0!==e.croppingScreenTitle&&(this.croppingScreenTitle=e.croppingScreenTitle),void 0!==e.accessibilityDescriptionCameraTopBarIntroButton&&(this.accessibilityDescriptionCameraTopBarIntroButton=e.accessibilityDescriptionCameraTopBarIntroButton),void 0!==e.accessibilityDescriptionCameraTopBarCancelButton&&(this.accessibilityDescriptionCameraTopBarCancelButton=e.accessibilityDescriptionCameraTopBarCancelButton),void 0!==e.accessibilityDescriptionCameraImportButton&&(this.accessibilityDescriptionCameraImportButton=e.accessibilityDescriptionCameraImportButton),void 0!==e.accessibilityDescriptionCameraTorchOnButton&&(this.accessibilityDescriptionCameraTorchOnButton=e.accessibilityDescriptionCameraTorchOnButton),void 0!==e.accessibilityDescriptionCameraTorchOffButton&&(this.accessibilityDescriptionCameraTorchOffButton=e.accessibilityDescriptionCameraTorchOffButton),void 0!==e.accessibilityDescriptionCameraShutterButton&&(this.accessibilityDescriptionCameraShutterButton=e.accessibilityDescriptionCameraShutterButton),void 0!==e.accessibilityDescriptionCameraAutoSnapButton&&(this.accessibilityDescriptionCameraAutoSnapButton=e.accessibilityDescriptionCameraAutoSnapButton),void 0!==e.accessibilityDescriptionCameraManualSnapButton&&(this.accessibilityDescriptionCameraManualSnapButton=e.accessibilityDescriptionCameraManualSnapButton),void 0!==e.accessibilityDescriptionCameraPreviewButton&&(this.accessibilityDescriptionCameraPreviewButton=e.accessibilityDescriptionCameraPreviewButton),void 0!==e.accessibilityDescriptionCameraIntroDoneButton&&(this.accessibilityDescriptionCameraIntroDoneButton=e.accessibilityDescriptionCameraIntroDoneButton),void 0!==e.accessibilityDescriptionAcknowledgementRetakeButton&&(this.accessibilityDescriptionAcknowledgementRetakeButton=e.accessibilityDescriptionAcknowledgementRetakeButton),void 0!==e.accessibilityDescriptionAcknowledgementAcceptButton&&(this.accessibilityDescriptionAcknowledgementAcceptButton=e.accessibilityDescriptionAcknowledgementAcceptButton),void 0!==e.accessibilityDescriptionCroppingTopBarConfirmButton&&(this.accessibilityDescriptionCroppingTopBarConfirmButton=e.accessibilityDescriptionCroppingTopBarConfirmButton),void 0!==e.accessibilityDescriptionCroppingTopBarCancelButton&&(this.accessibilityDescriptionCroppingTopBarCancelButton=e.accessibilityDescriptionCroppingTopBarCancelButton),void 0!==e.accessibilityDescriptionCroppingDetectButton&&(this.accessibilityDescriptionCroppingDetectButton=e.accessibilityDescriptionCroppingDetectButton),void 0!==e.accessibilityDescriptionCroppingRotateButton&&(this.accessibilityDescriptionCroppingRotateButton=e.accessibilityDescriptionCroppingRotateButton),void 0!==e.accessibilityDescriptionCroppingResetButton&&(this.accessibilityDescriptionCroppingResetButton=e.accessibilityDescriptionCroppingResetButton),void 0!==e.accessibilityDescriptionReorderTopBarConfirmButton&&(this.accessibilityDescriptionReorderTopBarConfirmButton=e.accessibilityDescriptionReorderTopBarConfirmButton),void 0!==e.accessibilityDescriptionReorderTopBarCancelButton&&(this.accessibilityDescriptionReorderTopBarCancelButton=e.accessibilityDescriptionReorderTopBarCancelButton),void 0!==e.accessibilityDescriptionReviewNextPageButton&&(this.accessibilityDescriptionReviewNextPageButton=e.accessibilityDescriptionReviewNextPageButton),void 0!==e.accessibilityDescriptionReviewPreviousPageButton&&(this.accessibilityDescriptionReviewPreviousPageButton=e.accessibilityDescriptionReviewPreviousPageButton),void 0!==e.accessibilityDescriptionReviewAddButton&&(this.accessibilityDescriptionReviewAddButton=e.accessibilityDescriptionReviewAddButton),void 0!==e.accessibilityDescriptionReviewRetakeButton&&(this.accessibilityDescriptionReviewRetakeButton=e.accessibilityDescriptionReviewRetakeButton),void 0!==e.accessibilityDescriptionReviewCropButton&&(this.accessibilityDescriptionReviewCropButton=e.accessibilityDescriptionReviewCropButton),void 0!==e.accessibilityDescriptionReviewRotateButton&&(this.accessibilityDescriptionReviewRotateButton=e.accessibilityDescriptionReviewRotateButton),void 0!==e.accessibilityDescriptionReviewDeleteButton&&(this.accessibilityDescriptionReviewDeleteButton=e.accessibilityDescriptionReviewDeleteButton),void 0!==e.accessibilityDescriptionReviewSubmitButton&&(this.accessibilityDescriptionReviewSubmitButton=e.accessibilityDescriptionReviewSubmitButton),void 0!==e.accessibilityDescriptionReviewMoreButton&&(this.accessibilityDescriptionReviewMoreButton=e.accessibilityDescriptionReviewMoreButton),void 0!==e.accessibilityDescriptionReviewDeleteAllButton&&(this.accessibilityDescriptionReviewDeleteAllButton=e.accessibilityDescriptionReviewDeleteAllButton),void 0!==e.accessibilityDescriptionReviewReorderPagesButton&&(this.accessibilityDescriptionReviewReorderPagesButton=e.accessibilityDescriptionReviewReorderPagesButton),void 0!==e.accessibilityDescriptionZoomOverlayCancelButton&&(this.accessibilityDescriptionZoomOverlayCancelButton=e.accessibilityDescriptionZoomOverlayCancelButton),void 0!==e.accessibilityDescriptionReviewZoomButton&&(this.accessibilityDescriptionReviewZoomButton=e.accessibilityDescriptionReviewZoomButton),void 0!==e.accessibilityDescriptionReviewTopBarBackButton&&(this.accessibilityDescriptionReviewTopBarBackButton=e.accessibilityDescriptionReviewTopBarBackButton),void 0!==e.accessibilityDescriptionReviewDeletePageAlertConfirmButton&&(this.accessibilityDescriptionReviewDeletePageAlertConfirmButton=e.accessibilityDescriptionReviewDeletePageAlertConfirmButton),void 0!==e.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton&&(this.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton=e.accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton),void 0!==e.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton&&(this.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton=e.accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton),void 0!==e.accessibilityDescriptionReviewDeletePageAlertCancelButton&&(this.accessibilityDescriptionReviewDeletePageAlertCancelButton=e.accessibilityDescriptionReviewDeletePageAlertCancelButton),void 0!==e.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton&&(this.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton=e.accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton),void 0!==e.accessibilityDescriptionCameraLimitReachedOkButton&&(this.accessibilityDescriptionCameraLimitReachedOkButton=e.accessibilityDescriptionCameraLimitReachedOkButton),void 0!==e.accessibilityDescriptionCameraCancelYesButton&&(this.accessibilityDescriptionCameraCancelYesButton=e.accessibilityDescriptionCameraCancelYesButton),void 0!==e.accessibilityDescriptionCameraCancelNoButton&&(this.accessibilityDescriptionCameraCancelNoButton=e.accessibilityDescriptionCameraCancelNoButton),void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraSelectButton&&(this.accessibilityDescriptionCameraSelectButton=e.accessibilityDescriptionCameraSelectButton),void 0!==e.accessibilityDescriptionCameraSelectMenuItem&&(this.accessibilityDescriptionCameraSelectMenuItem=e.accessibilityDescriptionCameraSelectMenuItem),void 0!==e.cameraSelectCameraMenuTitle&&(this.cameraSelectCameraMenuTitle=e.cameraSelectCameraMenuTitle)}}class Ie{constructor(e={}){this.topBarBackgroundColor="?sbColorPrimary",this.bottomBarBackgroundColor="?sbColorPrimary",void 0!==e.topBarBackgroundColor&&(this.topBarBackgroundColor=e.topBarBackgroundColor),void 0!==e.bottomBarBackgroundColor&&(this.bottomBarBackgroundColor=e.bottomBarBackgroundColor)}}class ve{constructor(e={}){this.version="1.0",this.screen="DocumentScanner",this.palette=new r.es({sbColorPrimary:"#C8193C",sbColorPrimaryDisabled:"#F5F5F5",sbColorNegative:"#FF3737",sbColorPositive:"#4EFFB4",sbColorWarning:"#FFCE5C",sbColorSecondary:"#FFEDEE",sbColorSecondaryDisabled:"#F5F5F5",sbColorOnPrimary:"#FFFFFF",sbColorOnSecondary:"#C8193C",sbColorSurface:"#FFFFFF",sbColorOutline:"#EFEFEF",sbColorOnSurfaceVariant:"#707070",sbColorOnSurface:"#000000",sbColorSurfaceLow:"#00000026",sbColorSurfaceHigh:"#0000007A",sbColorModalOverlay:"#000000A3"}),this.localization=new ye({}),this.appearance=new Ie({}),this.outputSettings=new Ae({}),this.screens=new De({}),this.documentUuid=null,this.cleanScanningSession=!0,this.showReviewScreenOnStart=!1,void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.palette&&(this.palette=new r.es(e.palette)),void 0!==e.localization&&(this.localization=new ye(e.localization)),void 0!==e.appearance&&(this.appearance=new Ie(e.appearance)),void 0!==e.outputSettings&&(this.outputSettings=new Ae(e.outputSettings)),void 0!==e.screens&&(this.screens=new De(e.screens)),void 0!==e.documentUuid&&(this.documentUuid=null!=e.documentUuid?e.documentUuid:null),void 0!==e.cleanScanningSession&&(this.cleanScanningSession=e.cleanScanningSession),void 0!==e.showReviewScreenOnStart&&(this.showReviewScreenOnStart=e.showReviewScreenOnStart)}}var Ne;!function(e){e.from=function(e){const t=e._type;switch(t){case"TwoLineMRZFinderLayoutPreset":return new Se(e);case"ThreeLineMRZFinderLayoutPreset":return new be(e);case"NoLayoutPreset":return new Me(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(Ne||(Ne={}));class Se{constructor(e={}){this._type="TwoLineMRZFinderLayoutPreset",this.mrzTextLine1="I<USASMITH<<JACK<<<<<<<<<<<<<<<<<<<<",this.mrzTextLine2="2342353464USA9602300M2904076<<<<<<<2",this.adjustedFinderAspectRatio=5.390625,void 0!==e.mrzTextLine1&&(this.mrzTextLine1=e.mrzTextLine1),void 0!==e.mrzTextLine2&&(this.mrzTextLine2=e.mrzTextLine2),void 0!==e.adjustedFinderAspectRatio&&(this.adjustedFinderAspectRatio=e.adjustedFinderAspectRatio)}}class be{constructor(e={}){this._type="ThreeLineMRZFinderLayoutPreset",this.mrzTextLine1="I<USA2342353464<<<<<<<<<<<<<<<",this.mrzTextLine2="9602300M2904076USA<<<<<<<<<<<2",this.mrzTextLine3="SMITH<<JACK<<<<<<<<<<<<<<<<<<<",this.adjustedFinderAspectRatio=4.3125,void 0!==e.mrzTextLine1&&(this.mrzTextLine1=e.mrzTextLine1),void 0!==e.mrzTextLine2&&(this.mrzTextLine2=e.mrzTextLine2),void 0!==e.mrzTextLine3&&(this.mrzTextLine3=e.mrzTextLine3),void 0!==e.adjustedFinderAspectRatio&&(this.adjustedFinderAspectRatio=e.adjustedFinderAspectRatio)}}class Me{constructor(e={}){this._type="NoLayoutPreset"}}var Le=n(3296),Re=n(7047);class Te{constructor(e={}){this.topBarTitle="MRZ Scanner",this.topBarCancelButton="Cancel",this.topUserGuidance="Scan your Identity Document",this.finderViewUserGuidance="Scan the MRZ",this.introScreenTitle="How to scan an MRZ",this.introScreenDoneButton="Start Scanning",this.introScreenText="The Machine Readable Zone (MRZ) is a special code on your ID document (such as a passport or ID card) that contains your personal information in a machine-readable format.\n\nTo scan it, simply hold your camera over the document, so that it aligns with the MRZ section. Once scanned, the data will be automatically processed, and you will be directed to the results screen.\n\nPress 'Start Scanning' to begin.",this.completionOverlaySuccessMessage="Scanned successfully",this.accessibilityDescriptionOpenIntroScreenButton="Open introduction screen.",this.accessibilityDescriptionIntroScreenDoneButton="Start scanning",this.accessibilityDescriptionCancelButton="Cancel",this.accessibilityDescriptionFlashButton="Toggle flash",this.accessibilityDescriptionZoomButton="Toggle camera zoom",this.accessibilityDescriptionFlipCameraButton="Flip camera",this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionEnableCameraButton="Grant permission",this.cameraPermissionCloseButton="Close",this.accessibilityDescriptionCameraPermissionEnableCameraButton="Tap to grant camera permission",this.accessibilityDescriptionCameraPermissionCloseButton="Close screen without granting permission",this.accessibilityDescriptionCameraSelectButton="Tap to open camera selection menu",this.accessibilityDescriptionCameraSelectMenuItem="Tap to select camera",this.cameraSelectCameraMenuTitle="Select camera",void 0!==e.topBarTitle&&(this.topBarTitle=e.topBarTitle),void 0!==e.topBarCancelButton&&(this.topBarCancelButton=e.topBarCancelButton),void 0!==e.topUserGuidance&&(this.topUserGuidance=e.topUserGuidance),void 0!==e.finderViewUserGuidance&&(this.finderViewUserGuidance=e.finderViewUserGuidance),void 0!==e.introScreenTitle&&(this.introScreenTitle=e.introScreenTitle),void 0!==e.introScreenDoneButton&&(this.introScreenDoneButton=e.introScreenDoneButton),void 0!==e.introScreenText&&(this.introScreenText=e.introScreenText),void 0!==e.completionOverlaySuccessMessage&&(this.completionOverlaySuccessMessage=e.completionOverlaySuccessMessage),void 0!==e.accessibilityDescriptionOpenIntroScreenButton&&(this.accessibilityDescriptionOpenIntroScreenButton=e.accessibilityDescriptionOpenIntroScreenButton),void 0!==e.accessibilityDescriptionIntroScreenDoneButton&&(this.accessibilityDescriptionIntroScreenDoneButton=e.accessibilityDescriptionIntroScreenDoneButton),void 0!==e.accessibilityDescriptionCancelButton&&(this.accessibilityDescriptionCancelButton=e.accessibilityDescriptionCancelButton),void 0!==e.accessibilityDescriptionFlashButton&&(this.accessibilityDescriptionFlashButton=e.accessibilityDescriptionFlashButton),void 0!==e.accessibilityDescriptionZoomButton&&(this.accessibilityDescriptionZoomButton=e.accessibilityDescriptionZoomButton),void 0!==e.accessibilityDescriptionFlipCameraButton&&(this.accessibilityDescriptionFlipCameraButton=e.accessibilityDescriptionFlipCameraButton),void 0!==e.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=e.cameraPermissionEnableCameraTitle),void 0!==e.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=e.cameraPermissionEnableCameraExplanation),void 0!==e.cameraPermissionEnableCameraButton&&(this.cameraPermissionEnableCameraButton=e.cameraPermissionEnableCameraButton),void 0!==e.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=e.cameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraPermissionEnableCameraButton&&(this.accessibilityDescriptionCameraPermissionEnableCameraButton=e.accessibilityDescriptionCameraPermissionEnableCameraButton),void 0!==e.accessibilityDescriptionCameraPermissionCloseButton&&(this.accessibilityDescriptionCameraPermissionCloseButton=e.accessibilityDescriptionCameraPermissionCloseButton),void 0!==e.accessibilityDescriptionCameraSelectButton&&(this.accessibilityDescriptionCameraSelectButton=e.accessibilityDescriptionCameraSelectButton),void 0!==e.accessibilityDescriptionCameraSelectMenuItem&&(this.accessibilityDescriptionCameraSelectMenuItem=e.accessibilityDescriptionCameraSelectMenuItem),void 0!==e.cameraSelectCameraMenuTitle&&(this.cameraSelectCameraMenuTitle=e.cameraSelectCameraMenuTitle)}}class Oe{constructor(e={}){this.message=new r.D7({text:"?completionOverlaySuccessMessage",color:"?sbColorOnPrimary"}),this.iconColor="?sbColorOnPrimary",this.overlayBackgroundColor="?sbColorSurfaceHigh",this.timeout=1e3,void 0!==e.message&&(this.message=new r.D7(e.message)),void 0!==e.iconColor&&(this.iconColor=e.iconColor),void 0!==e.overlayBackgroundColor&&(this.overlayBackgroundColor=e.overlayBackgroundColor),void 0!==e.timeout&&(this.timeout=e.timeout)}}class we{constructor(e={}){this.version="1.0",this.screen="MrzScanner",this.localization=new Te({}),this.palette=new r.es({}),this.backgroundColor="?sbColorSurfaceLow",this.cameraConfiguration=new L({}),this.cameraPermission=new R({background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new r.pO({visible:!0,color:"?sbColorOnSurface"}),closeButton:new r.z1({visible:!0,text:"?cameraPermissionCloseButton",accessibilityDescription:"?accessibilityDescriptionCameraPermissionCloseButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new r.D7({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new r.D7({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.topUserGuidance=new U.q({title:new r.D7({text:"?topUserGuidance"})}),this.finderViewUserGuidance=new U.q({title:new r.D7({text:"?finderViewUserGuidance"})}),this.topBar=new k({title:new r.D7({visible:!0,text:"?topBarTitle"}),cancelButton:new r.z1({text:"?topBarCancelButton",accessibilityDescription:"?accessibilityDescriptionCancelButton",background:new r.se({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})})}),this.topBarOpenIntroScreenButton=new r.K0({color:"?sbColorOnPrimary",accessibilityDescription:"?accessibilityDescriptionOpenIntroScreenButton"}),this.introScreen=new Re.aT({}),this.actionBar=new N({flipCameraButton:new r.vU({visible:!1,accessibilityDescription:"?accessibilityDescriptionFlipCameraButton",backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"})}),this.viewFinder=new F({style:new B({strokeColor:"?sbColorSurface",strokeWidth:2}),aspectRatio:new S.gl({width:-1,height:-1}),minimumInsets:new r.si({top:24,left:24,bottom:24,right:24})}),this.scannerConfiguration=new Le.MrzScannerConfiguration({}),this.mrzExampleOverlay=new Se({}),this.successOverlay=new Oe({}),this.sound=new r.AB({}),this.vibration=new r.Hx({}),void 0!==e.version&&(this.version=e.version),void 0!==e.screen&&(this.screen=e.screen),void 0!==e.localization&&(this.localization=new Te(e.localization)),void 0!==e.palette&&(this.palette=new r.es(e.palette)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.cameraConfiguration&&(this.cameraConfiguration=new L(e.cameraConfiguration)),void 0!==e.cameraPermission&&(this.cameraPermission=new R(e.cameraPermission)),void 0!==e.topUserGuidance&&(this.topUserGuidance=new U.q(e.topUserGuidance)),void 0!==e.finderViewUserGuidance&&(this.finderViewUserGuidance=new U.q(e.finderViewUserGuidance)),void 0!==e.topBar&&(this.topBar=new k(e.topBar)),void 0!==e.topBarOpenIntroScreenButton&&(this.topBarOpenIntroScreenButton=new r.K0(e.topBarOpenIntroScreenButton)),void 0!==e.introScreen&&(this.introScreen=new Re.aT(e.introScreen)),void 0!==e.actionBar&&(this.actionBar=new N(e.actionBar)),void 0!==e.viewFinder&&(this.viewFinder=new F(e.viewFinder)),void 0!==e.scannerConfiguration&&(this.scannerConfiguration=new Le.MrzScannerConfiguration(e.scannerConfiguration)),void 0!==e.mrzExampleOverlay&&(this.mrzExampleOverlay=Ne.from(e.mrzExampleOverlay)),void 0!==e.successOverlay&&(this.successOverlay=new Oe(e.successOverlay)),void 0!==e.sound&&(this.sound=new r.AB(e.sound)),void 0!==e.vibration&&(this.vibration=new r.Hx(e.vibration))}}var Fe=n(2176);const Be=["DARK","LIGHT","HIDDEN"],Pe=["SOLID","GRADIENT","HIDDEN"],xe=["AUTO","FULL_HD","UHD"];class ke{constructor(e={}){}}!function(e){e.documentScanner="rtuui_document_scanner"}(ke||(ke={}));class Ve{constructor(e={}){}}!function(e){e.acknowledge="acknowledge"}(Ve||(Ve={}));class Ue{constructor(e={}){if(this.values=[],void 0===e.feature)throw new Error("feature must be present in constructor argument");if(this.feature=e.feature,void 0===e.category)throw new Error("category must be present in constructor argument");if(this.category=e.category,void 0===e.name)throw new Error("name must be present in constructor argument");this.name=e.name,void 0!==e.values&&(this.values=e.values.map((e=>e)))}}class Ze{constructor(e={}){}}!function(e){e.importedImageQualityResult="imported_image_quality_result",e.scannedImageQualityResult="scanned_image_quality_result",e.proceedImage="proceed_with_image",e.retakeImage="retake_image"}(Ze||(Ze={}));class We{constructor(e={}){}}!function(e){e.scannedImageQualityResult=new Ue({feature:"rtuui_document_scanner",category:"acknowledge",name:"scanned_image_quality_result"}),e.importedImageQualityResult=new Ue({feature:"rtuui_document_scanner",category:"acknowledge",name:"imported_image_quality_result"}),e.proceedWithImage=new Ue({feature:"rtuui_document_scanner",category:"acknowledge",name:"proceed_with_image"}),e.retakeImage=new Ue({feature:"rtuui_document_scanner",category:"acknowledge",name:"retake_image"})}(We||(We={}));var He=n(8350)},5296:(e,t,n)=>{"use strict";n.d(t,{$5:()=>E});class i extends Error{constructor(){super(...arguments),this.errorType="UnknownError"}}class r extends Error{constructor(){super(...arguments),this.errorType="InvalidLicense"}}class o extends Error{constructor(){super(...arguments),this.errorType="NullPointer"}}class a extends Error{constructor(){super(...arguments),this.errorType="InvalidArgument"}}class s extends Error{constructor(){super(...arguments),this.errorType="InvalidImageRef"}}class c extends Error{constructor(){super(...arguments),this.errorType="ComponentUnavailable"}}class l extends Error{constructor(){super(...arguments),this.errorType="IllegalState"}}class u extends Error{constructor(){super(...arguments),this.errorType="IoError"}}class d extends Error{constructor(){super(...arguments),this.errorType="InvalidData"}}class m extends Error{constructor(){super(...arguments),this.errorType="OperationCanceled"}}class h extends Error{constructor(){super(...arguments),this.errorType="OutOfMemory"}}class p extends Error{constructor(){super(...arguments),this.errorType="Timeout"}}function E(e,t,n){const E=n?{cause:n}:void 0;switch(e){case"UnknownError":return new i(t,E);case"InvalidLicense":return new r("Your license is not valid to use this feature of the ScanbotSDK. This can be because of one of the following reasons: \n 1) You did not successfully initialize the SDK with your license. \n 2) Your license expired \n 3) Your license does not allow the use of this feature of the ScanbotSDK",E);case"NullPointer":return new o(t,E);case"InvalidArgument":return new a(t,E);case"InvalidImageRef":return new s(t,E);case"ComponentUnavailable":return new c(t,E);case"IllegalState":return new l(t,E);case"IoError":return new u(t,E);case"InvalidData":return new d(t,E);case"OperationCanceled":return new m(t,E);case"OutOfMemory":return new h(t,E);case"Timeout":return new p(t,E);default:throw new Error(t)}}},5319:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(6314),r=n.n(i)()((function(e){return e[1]}));r.push([e.id,"\n.scanbot-shutter-fade-in {\n opacity: 1;\n}\n\n.scanbot-shutter-fade-out {\n opacity: 0;\n}\n\n.scanbot-shutter-rotate {\n animation: scanbot-shutter-rotating linear infinite;\n}\n\n.scanbot-shutter-pulse-fast {\n animation: scanbot-shutter-pulsing 1s ease-in-out infinite;\n}\n\n.scanbot-shutter-button {\n position: relative;\n width: 64px;\n height: 64px;\n left: 50%;\n bottom: 18px;\n transform: translate(-50%, -100%);\n z-index: 1000;\n}\n\n.scanbot-shutter-button-part {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n transition: opacity 0.5s ease-in-out;\n}\n\n@keyframes scanbot-shutter-rotating {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes scanbot-shutter-pulsing {\n 0% {\n opacity: 0.25;\n }\n 50% {\n opacity: 0.8;\n }\n 100% {\n opacity: 0.25;\n }\n}\n",""]);const o=r},5581:(e,t,n)=>{"use strict";n.d(t,{u:()=>b});var i=n(4896),r=n(4151),o=n(8667),a=n(2880),s=n(9338),c=n(8627),l=n(7828),u=n(1374),d=n(6244),m=n(170),h=n(930),p=n(7684),E=n(4480),A=n(1427),g=n(10),f=n(5991),C=n(2504),_=n(7049),D=n(7581),y=n(8233),I=n(2177),v=n(5630),N=n(5905),S=n(1855);class b{constructor(e){this.workerBridge=e,this.BarcodeDocumentParser={create:(e=i.ix.all)=>h.v.create(this.workerBridge,e)},this.BarcodeScanner={create:(e=new r.zQ({}))=>p.v.create(this.workerBridge,e)},this.CheckScanner={create:(e=new o.Bp({}))=>E.p.create(this.workerBridge,e)},this.CreditCardScanner={create:(e=new a.kY({}))=>A.g.create(this.workerBridge,e)},this.DocumentClassifier={create:e=>g.x.create(this.workerBridge,e)},this.DocumentDataExtractor={create:(e=new s.sO({}))=>f.M.create(this.workerBridge,e)},this.DocumentQualityAnalyzer={create:(e=new c.TM({}))=>C.t.create(this.workerBridge,e)},this.DocumentScanner={create:(e=new l.A9({}))=>_.A.create(this.workerBridge,e)},this.ImageManipulator={create:()=>D.S.create(this.workerBridge)},this.ImageProcessor={create:()=>y.C.create(this.workerBridge)},this.MrzScanner={create:(e=new u.Wy({}))=>I.s.create(this.workerBridge,e)},this.MrzParser={create:(e=new u.jO({}))=>I.z.create(this.workerBridge,e)},this.OcrEngine={create:()=>v.x.create(this.workerBridge)},this.TextPatternScanner={create:(e=new d.Qr({}))=>N.g.create(this.workerBridge,e)},this.VinScanner={create:(e=new m.mN({}))=>S.g.create(this.workerBridge,e)}}}},5630:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var i=n(525),r=n(2635),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e){return o(this,void 0,void 0,(function*(){const t=yield e.copyArgs.OcrEngine.create();return new a(e,t)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.OcrEngine.run(this.objectId,e);return{result:new r.YW(o.result),originalImage:new i._(o.originalImage)}}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.OcrEngine.destroy(this.objectId)}))}}},5759:(e,t,n)=>{"use strict";n.d(t,{hI:()=>i.hI});var i=n(177)},5905:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var i=n(525),r=n(6244),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new r.Qr({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.TextPatternScanner.create(new r.Qr(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.TextPatternScanner.run(this.objectId,e);return{result:new r.n_(o.result),originalImage:new i._(o.originalImage)}}))}cleanRecognitionQueue(){return o(this,void 0,void 0,(function*(){const e=this.workerBridge.copyArgs;return yield e.TextPatternScanner.cleanRecognitionQueue(this.objectId)}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.TextPatternScanner.destroy(this.objectId)}))}}},5933:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var i=n(8763),r=n(376),o=n(7907),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class s extends i.Ay.Component{constructor(e){super(e),this.orientationchangeCallback=this.orientationChanged.bind(this),this.state={orientation:window.orientation,stream:void 0}}orientationChanged(e){this.setState({orientation:window.orientation})}setDeviceIdInConstraints(e){var t,n;return a(this,void 0,void 0,(function*(){const i=this.props.preferredCamera;if(i)try{const t=(yield navigator.mediaDevices.enumerateDevices()).find((e=>e.deviceId===i||e.label===i));if(t)return Object.assign(Object.assign({},e),{deviceId:{exact:t.deviceId}})}catch(e){throw r.F.enumerateDevicesFailed()}else{const i={user:"front",environment:"back"},r=(null===(t=null==e?void 0:e.facingMode)||void 0===t?void 0:t.ideal)||(null===(n=null==e?void 0:e.facingMode)||void 0===n?void 0:n.exact)||(null==e?void 0:e.facingMode);if("string"==typeof r&&r in i){yield o.VY.INSTANCE.load();const t=o.VY.INSTANCE.getMainCamera(i[r]);if(t)return Object.assign(Object.assign({},e),{deviceId:{exact:t.deviceId}})}}return e}))}componentDidMount(){return a(this,void 0,void 0,(function*(){window.addEventListener("orientationchange",this.orientationchangeCallback),yield this.refreshStream()}))}refreshStream(){var e,t,n,i,o,s,c,l;return a(this,void 0,void 0,(function*(){if(r.F.hasCheckedPermission()||(yield r.F.tryCheckPermission()),r.F.hasDeniedPermission())null===(t=(e=this.props).onError)||void 0===t||t.call(e,r.F.permissionDenied());else try{const e={video:yield this.setDeviceIdInConstraints(this.props.videoConstraints)};if(!navigator.mediaDevices){const e=r.F.unknown();return null===(i=(n=this.props).onError)||void 0===i||i.call(n,e),void console.log(e)}this.stopCurrentStreams();try{const t=yield navigator.mediaDevices.getUserMedia(e);this.setState({stream:t},(()=>{var e,n,i,r;null===(n=(e=this.props).onStreamChanged)||void 0===n||n.call(e,t),null===(r=(i=this.props).onReady)||void 0===r||r.call(i)}))}catch(e){const t=r.F.mediaDeviceNotFound();return null===(s=(o=this.props).onError)||void 0===s||s.call(o,t),void console.error(t)}}catch(e){const t=r.F.createFromDOMException(e);return null===(l=(c=this.props).onError)||void 0===l||l.call(c,t),void console.error(t)}}))}stopCurrentStreams(){const e=this.state.stream,t=null==e?void 0:e.getTracks();t&&t.forEach((e=>{e.stop()}))}componentWillUnmount(){window.removeEventListener("orientationchange",this.orientationchangeCallback),this.state.stream&&(this.state.stream.getVideoTracks&&this.state.stream.getAudioTracks&&(this.state.stream.getVideoTracks().forEach((e=>e.stop())),this.state.stream.getAudioTracks().forEach((e=>e.stop()))),this.setState({stream:void 0}))}render(){return this.props.children}updateTorch(e){return a(this,void 0,void 0,(function*(){const t=[{torch:e}];yield this.state.stream.getVideoTracks()[0].applyConstraints({advanced:t})}))}getCapabilities(){if(this.state.stream.getVideoTracks){const e=this.getVideoTrack();return s.getMediaTrackCapabilities(e)}}static getMediaTrackCapabilities(e){if(e&&e.getCapabilities)return e.getCapabilities()}getVideoTrack(){const e=this.state.stream.getVideoTracks();if(e.length>0)return e[0]}}var c=n(4751),l=n(6437),u=n(7424),d=n(8193);class m{static isSupported(){return!!document.createElement("canvas").getContext("webgl")}constructor(){this._type="WebGL",this.canvas=document.createElement("canvas");const e=this.gl=this.canvas.getContext("webgl",{willReadFrequently:!0}),t=e.createTexture();e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR);const n=e.createShader(e.VERTEX_SHADER);e.shaderSource(n,"attribute vec2 p;void main(){ gl_Position = vec4(p,0,1);}"),e.compileShader(n);const i=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(i,"precision mediump float;uniform sampler2D texture; uniform vec2 scale; uniform vec2 offset; void main() { gl_FragColor=texture2D( texture, gl_FragCoord.xy * scale + offset );}"),e.compileShader(i);const r=this.program=e.createProgram();e.attachShader(r,n),e.attachShader(r,i),e.linkProgram(r),e.useProgram(r),e.uniform1i(e.getUniformLocation(r,"texture"),0),e.bindBuffer(e.ARRAY_BUFFER,e.createBuffer()),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),e.STATIC_DRAW),e.enableVertexAttribArray(0),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0)}getImageData(e,t,n,i,r,o,a,s){let c,l;if(o=Math.floor(o),a=Math.floor(a),t=Math.floor(t),n=Math.floor(n),i=Math.floor(i),r=Math.floor(r),e instanceof HTMLVideoElement)[l,c]=[e.videoWidth,e.videoHeight];else{if(!(e instanceof HTMLCanvasElement))throw new Error("Unsupported source type");[l,c]=[e.width,e.height]}(l<t+i||c<n+r)&&u.A.debug("Crop region exceeds source video dimensions. This can happen when the screen is resized or rotated and the video has not yet changed its size. Most likely, the frame we analyzed now contains some garbage data. This is not a problem, unless it happens very frequently.");const m=this.gl;this.canvas.width=o,this.canvas.height=a,m.viewport(0,0,o,a);const h=[i/(o*l),r/(a*c)],p=[t/l,n/c];return m.uniform2fv(m.getUniformLocation(this.program,"scale"),h),m.uniform2fv(m.getUniformLocation(this.program,"offset"),p),m.texImage2D(m.TEXTURE_2D,0,m.RGB,m.RGB,m.UNSIGNED_BYTE,e),m.drawArrays(m.TRIANGLES,0,6),(null==s?void 0:s.byteLength)!==o*a*4&&(s=new Uint8ClampedArray(o*a*4),d.U.INSTANCE.values.set("WebGLNumBufferAllocations",(d.U.INSTANCE.values.get("WebGLNumBufferAllocations")||0)+1)),m.readPixels(0,0,o,a,m.RGBA,m.UNSIGNED_BYTE,s),new ImageData(s,o,a)}}class h{constructor(){this._type="TwoD",this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0,alpha:!1}),this.ctx.imageSmoothingEnabled=!1}getImageData(e,t,n,i,r,o,a,s){return this.canvas.width=o,this.canvas.height=a,this.ctx.drawImage(e,t,n,i,r,0,0,o,a),this.ctx.getImageData(0,0,o,a)}}var p=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class E extends i.Ay.Component{constructor(e){super(e),this.videoLoaded=!1,this.reloadCanvas=!0,this.swapCameraEnabled=!0,this.activeCamera=void 0,this.save=!1,this._reusableImageBuffer=null,this.onStreamChanged=e=>{this.video.srcObject=e,this.updateCameraInfo(e),this.video.addEventListener("resize",(e=>{this.reloadCanvas=!0}),!1),this.video.addEventListener("loadeddata",(e=>{this.videoLoaded=!0,this.didLoadVideo&&this.didLoadVideo()}),!1)},this.state={facingModeBack:"environment"===this.props.videoConstraints.facingMode,mirrored:this.props.mirrored,deviceId:void 0}}videoSize(){const{clientVideoWidth:e,clientVideoHeight:t}=this.calculateClientVideoConstraints();return new c.o(e,t)}saveExtractedData(){this.save=!0}zoom(){var e;return null!==(e=this.props.zoom)&&void 0!==e?e:1}get previewMode(){var e,t;return null!==(t=null===(e=this.props.configuration)||void 0===e?void 0:e.previewMode)&&void 0!==t?t:"FILL_IN"}get fitPreview(){return"FIT_IN"===this.previewMode}imageCapture(){if(this.capture)return this.capture;const e=this.videoStream.getVideoTrack();return this.capture=new ImageCapture(e),this.capture}set reusableImageBuffer(e){let t=e.__image_data;this._reusableImageBuffer=t.data}createImageData(e=0,t){return p(this,void 0,void 0,(function*(){if(!this.video||!this.videoLoaded)return;const n=this.getCanvasRenderingContext();if(!n)return;if(t){const e=yield this.imageCapture().takePhoto(),t=yield createImageBitmap(e);u.A.debug("Bitmap size: "+t.width+"x"+t.height);const n=this.windowSize(),i=t.height/(n.height+n.y),r=n.width*i,o=n.height*i,a=t.width/2-r/2,s=n.y*i,c=new l.w(a,s,r,o),d=document.createElement("canvas"),m=d.getContext("2d",{willReadFrequently:!1,alpha:!1});m.canvas.width=t.width,m.canvas.height=t.height,m.drawImage(t,0,0,t.width,t.height);const h=m.getImageData(c.x,c.y,c.width,c.height);return d.remove(),h}let{videoWidth:i,videoHeight:r}=this.video,{clientVideoWidth:o,clientVideoHeight:a,coef:s}=this.calculateClientVideoConstraints();if(0===s)return;const c=this.finderFrame||new l.w(0,0,o,a);if(c.width<=0||c.height<=0)return;const d=this.zoom(),m=(i-o/d)/2,h=(r-a/d)/2;let p=c.x/s+m,E=c.y/s+h;const A=this.finderFrame?s:d;let g=c.width/A,f=c.height/A;if(this.fitPreview){i/r>o/a?(p=0,E=(a-r)/2):(E=0,p=(o-i)/2),g=i,f=r,e=o}const C=this.calculateFrameSize(e,g,f);return n.getImageData(this.video,p,E,g,f,C.width,C.height,this._reusableImageBuffer)}))}windowSize(){var e;const t=this.props.configuration;if(!t.container&&!t.containerId)return l.w.fromDOMRect(this.video.getBoundingClientRect());const n=null!==(e=t.container)&&void 0!==e?e:document.getElementById(t.containerId);if(!n)throw new Error("Container DOM element is required to calculate window size and snap image.");return l.w.fromDOMRect(n.getBoundingClientRect())}calculateClientVideoConstraints(){let{videoWidth:e,videoHeight:t}=this.video,n=this.video.getBoundingClientRect(),i=e,r=t,o=1;return n.width/n.height<=e/t?(o=n.height/t,o>0&&(i=n.width/o)):(o=n.width/e,o>0&&(r=n.height/o)),{clientVideoWidth:i,clientVideoHeight:r,coef:o}}calculateFrameSize(e,t,n){let i=t,r=n;if(e>0&&0!=t&&0!=n){const o=t/n;t>n?(i=t>e?e:t,r=i/o):(r=n>e?e:n,i=r*o)}return new c.o(i,r)}getCanvasRenderingContext(){return this.video?0===this.video.videoWidth?null:(this.canvas&&!this.reloadCanvas||(this.canvas&&this.releaseCanvas(),this.canvas=m.isSupported()?new m:new h,this.reloadCanvas=!1),this.canvas):null}releaseCanvas(){this.canvas&&(this.canvas=null)}componentWillUnmount(){this.releaseCanvas(),this.video=null,this.videoStream=null}style(){var e;const t={display:"block",width:100*this.zoom()+"%",height:100*this.zoom()+"%",left:`${this.zoomMargin()}%`,top:`${this.zoomMargin()}%`,position:"relative",objectFit:this.fitPreview?"contain":"cover",backgroundColor:null===(e=this.props.configuration)||void 0===e?void 0:e.backgroundColor};return this.state.mirrored&&(t.transform="scaleX(-1)"),t}zoomMargin(){const e=this.zoom();return 1===e?0:(1-e)/2*100}render(){const{videoConstraints:e,onReady:t,onError:n}=this.props;return e.facingMode=this.state.facingModeBack?{ideal:"environment"}:{ideal:"user"},i.Ay.createElement(s,{videoConstraints:e,preferredCamera:this.state.deviceId||this.props.preferredCamera,onReady:t,onStreamChanged:this.onStreamChanged,onError:n,ref:e=>{this.videoStream=e}},i.Ay.createElement("video",{autoPlay:!0,muted:!0,playsInline:!0,className:"scanbot-camera-view",ref:e=>{this.video=e},style:this.style()}))}setDirection(e){this.props.videoConstraints.facingMode={ideal:e},this.setState({facingModeBack:"environment"===e,mirrored:"user"===e},(()=>p(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0}))))}swapCameraFacing(e){if(this.swapCameraEnabled){this.swapCameraEnabled=!1;const t=!this.state.facingModeBack,n=t?"environment":"user";this.props.videoConstraints.facingMode=!0===e?{exact:n}:{ideal:n},this.setState({facingModeBack:t,mirrored:!t},(()=>p(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0}))))}}switchCamera(e,t,n){return p(this,void 0,void 0,(function*(){this.swapCameraEnabled&&(this.swapCameraEnabled=!1,this.props.videoConstraints.facingMode=void 0,this.setState({facingModeBack:n?"back"===n:this.state.facingModeBack,mirrored:null!=t?t:this.state.mirrored,deviceId:e},(()=>p(this,void 0,void 0,(function*(){yield this.videoStream.refreshStream(),this.swapCameraEnabled=!0})))))}))}updateCameraInfo(e){this.activeCamera=o.VY.getCameraInfoFromStream(e)}getActiveCameraInfo(){return this.activeCamera}setTorchState(e){if(this.activeCamera&&this.activeCamera.supportsTorchControl){return this.videoStream.getVideoTrack().applyConstraints({advanced:[{torch:e}]})}return Promise.reject("Torch is not supported for current camera.")}}},5991:(e,t,n)=>{"use strict";n.d(t,{M:()=>s});var i=n(9338),r=n(6396),o=n(525),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class s{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new i.sO({})){return a(this,void 0,void 0,(function*(){const n=yield e.copyArgs.DocumentDataExtractor.create(new i.sO(t));return new s(e,n)}))}run(e,t="COPY_IMAGE"){return a(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,r=yield n.DocumentDataExtractor.run(this.objectId,e);return{result:new i.qc(r.result),originalImage:new o._(r.originalImage)}}))}clearResult(){return a(this,void 0,void 0,(function*(){const e=this.workerBridge.copyArgs;return yield e.DocumentDataExtractor.clearResult(this.objectId)}))}verifyDocument(e){return a(this,void 0,void 0,(function*(){const t=this.workerBridge.copyArgs;return yield t.DocumentDataExtractor.verifyDocument(this.objectId,e.map((e=>new r.$G(e))))}))}destroy(){return a(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.DocumentDataExtractor.destroy(this.objectId)}))}}},6244:(e,t,n)=>{"use strict";n.d(t,{Cq:()=>l,Ib:()=>s,Qr:()=>u,RT:()=>c,S7:()=>r,n_:()=>a,se:()=>o,sr:()=>i});const i=["WILDCARD","REGEX"];class r{constructor(e={}){if(this.recognitionConfidence=0,void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.boundingRect)throw new Error("boundingRect must be present in constructor argument");this.boundingRect={x:e.boundingRect.x,y:e.boundingRect.y,width:e.boundingRect.width,height:e.boundingRect.height},void 0!==e.recognitionConfidence&&(this.recognitionConfidence=e.recognitionConfidence)}}class o{constructor(e={}){if(void 0===e.symbol)throw new Error("symbol must be present in constructor argument");if(this.symbol=e.symbol,void 0===e.boundingRect)throw new Error("boundingRect must be present in constructor argument");if(this.boundingRect={x:e.boundingRect.x,y:e.boundingRect.y,width:e.boundingRect.width,height:e.boundingRect.height},void 0===e.recognitionConfidence)throw new Error("recognitionConfidence must be present in constructor argument");this.recognitionConfidence=e.recognitionConfidence}}class a{constructor(e={}){if(this.confidence=0,this.validationSuccessful=!1,void 0===e.rawText)throw new Error("rawText must be present in constructor argument");if(this.rawText=e.rawText,void 0===e.wordBoxes)throw new Error("wordBoxes must be present in constructor argument");if(this.wordBoxes=e.wordBoxes.map((e=>new r(e))),void 0===e.symbolBoxes)throw new Error("symbolBoxes must be present in constructor argument");this.symbolBoxes=e.symbolBoxes.map((e=>new o(e))),void 0!==e.confidence&&(this.confidence=e.confidence),void 0!==e.validationSuccessful&&(this.validationSuccessful=e.validationSuccessful)}}var s;!function(e){e.from=function(e){const t=e._type;switch(t){case"DefaultContentValidator":return new c(e);case"PatternContentValidator":return new l(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(s||(s={}));class c{constructor(e={}){this._type="DefaultContentValidator",this.allowedCharacters="",void 0!==e.allowedCharacters&&(this.allowedCharacters=e.allowedCharacters)}}class l{constructor(e={}){if(this._type="PatternContentValidator",this.allowedCharacters="",this.matchSubstring=!1,this.patternGrammar="WILDCARD",void 0!==e.allowedCharacters&&(this.allowedCharacters=e.allowedCharacters),void 0===e.pattern)throw new Error("pattern must be present in constructor argument");this.pattern=e.pattern,void 0!==e.matchSubstring&&(this.matchSubstring=e.matchSubstring),void 0!==e.patternGrammar&&(this.patternGrammar=e.patternGrammar)}}class u{constructor(e={}){this.ocrResolutionLimit=0,this.maximumNumberOfAccumulatedFrames=3,this.minimumNumberOfRequiredFramesWithEqualScanningResult=2,this.optimizeSingleLine=!1,this.validator=new c({}),void 0!==e.ocrResolutionLimit&&(this.ocrResolutionLimit=e.ocrResolutionLimit),void 0!==e.maximumNumberOfAccumulatedFrames&&(this.maximumNumberOfAccumulatedFrames=e.maximumNumberOfAccumulatedFrames),void 0!==e.minimumNumberOfRequiredFramesWithEqualScanningResult&&(this.minimumNumberOfRequiredFramesWithEqualScanningResult=e.minimumNumberOfRequiredFramesWithEqualScanningResult),void 0!==e.optimizeSingleLine&&(this.optimizeSingleLine=e.optimizeSingleLine),void 0!==e.validator&&(this.validator=s.from(e.validator))}}},6302:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var i=n(4537);class r{constructor(e,t){this.x=e,this.y=t}static toPolygon(e,t){return[r.scaleDownTo(e[0],t),r.scaleDownTo(e[1],t),r.scaleDownTo(e[2],t),r.scaleDownTo(e[3],t)]}static scaleToPoint(e,t,n,i){return new r(i*(e.x-t),i*(e.y-n))}static scaleListToHtmlElement(e,t,n){return e.map((e=>r.scaleToHtmlElement(e,t,n)))}static scaleToHtmlElement(e,t,n){return new r(e.x*(n.clientWidth/t.width),e.y*(n.clientHeight/t.height))}static scaleUpTo(e,t){return new r(e.x*t.width,e.y*t.height)}static scaleDownTo(e,t){return new r(e.x/t.width,e.y/t.height)}static fromHtmlElement(e){return new r(e.offsetLeft,e.offsetTop)}static withScale(e,t,n){return new r(e/n,t/n)}static fromCoordinates(e,t,n,i){if(!e||!t)return new r(0,0);const o=new r(e,t);return i=null!=i?i:1,1===(n=n?n%4:0)?r.withScale(o.y,-o.x,i):2===n?r.withScale(-o.x,-o.y,i):3===n?r.withScale(-o.y,o.x,i):r.withScale(o.x,o.y,i)}static centerOf(e){const t=e.reduce(((e,t)=>e+t.x),0)/e.length,n=e.reduce(((e,t)=>e+t.y),0)/e.length;return new r(t,n)}static smallerSizeOfQuad(e){const t=Math.max(...e.map((e=>e.x)))-Math.min(...e.map((e=>e.x))),n=Math.max(...e.map((e=>e.y)))-Math.min(...e.map((e=>e.y)));return Math.min(t,n)}static empty(){return new r(0,0)}static centerX(e){if(e)return(r.highestX(e)+r.lowestX(e))/2}static highestX(e){if(e)return Math.max(...e.map((e=>e.x)))}static lowestX(e){if(e)return Math.min(...e.map((e=>e.x)))}static lowestY(e){if(e)return Math.min(...e.map((e=>e.y)))}static highestY(e){if(e)return Math.max(...e.map((e=>e.y)))}static width(e){if(e)return r.highestX(e)-r.lowestX(e)}static left(e){if(e)return e.reduce(((e,t)=>e.x<t.x?e:t))}static right(e){if(e)return e.reduce(((e,t)=>e.x>t.x?e:t))}static toSvgString(e){if(void 0!==e)return e.map((e=>`${e.x.toFixed(2)},${e.y.toFixed(2)}`)).join(" ")}static toSvgPathStringWithRoundedCorners(e,t=0){if(void 0===e)return;function n(e,t,n){const i=Math.atan2(e.y-t.y,e.x-t.x);return{x:e.x-n*Math.cos(i),y:e.y-n*Math.sin(i)}}let i="";const o=n(e[0],e[1],r.distance(e[0],e[1])/2);i+=`M ${o.x} ${o.y}`;for(let o=0;o<e.length;o++){const a=e[o],s=e[(o+1)%e.length],c=e[(o+2)%e.length],l=n(s,c,r.distance(s,c)/2),u=Math.abs(Math.atan2(s.y-a.y,s.x-a.x)-Math.atan2(s.y-c.y,s.x-c.x)),d=u>Math.PI?2*Math.PI-u:u,m=Math.min(Math.sqrt(Math.pow(s.x-a.x,2)+Math.pow(s.y-a.y,2)),Math.sqrt(Math.pow(s.x-c.x,2)+Math.pow(s.y-c.y,2))),h=Math.min(t,m*Math.tan(d/2)/2),p=Math.abs(h/Math.tan(d/2)),E=(s.x-a.x)*(s.y-c.y)-(s.x-c.x)*(s.y-a.y)<0?1:0,A=n(s,a,p),g=n(s,c,p);i+=` L${A.x} ${A.y}`,i+=` A${h} ${h} 0 0 ${E} ${g.x} ${g.y}`,i+=` L${l.x} ${l.y}`}return i+" Z"}static distance(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}static subtract(e,t){return new r(e.x-t.x,e.y-t.y)}static add(e,t){return new r(e.x+t.x,e.y+t.y)}static multiply(e,t){return new r(e.x*t,e.y*t)}static cross(e,t){return e.x*t.y-e.y*t.x}static clamp(e,t){return new r((0,i.q)(e.x,0,t.width),(0,i.q)(e.y,0,t.height))}}},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);i&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},6396:(e,t,n)=>{"use strict";n.d(t,{$G:()=>m,D0:()=>u,Dq:()=>d,PU:()=>l,S5:()=>o,YA:()=>c,oB:()=>a,yJ:()=>s});var i=n(3415),r=n(525);class o{constructor(e={}){if(void 0===e.text)throw new Error("text must be present in constructor argument");if(this.text=e.text,void 0===e.confidence)throw new Error("confidence must be present in constructor argument");this.confidence=e.confidence}}const a=["INVALID","OBSTRUCTED","NONE","CONFIRMED","INFERRED","VALID","IGNORED"],s=["ISO_DATE","ISO_COUNTRY_ALPHA_2","ISO_COUNTRY_ALPHA_3","ISO_COUNTRY_NUMERIC","ISO_COUNTRY_NAME","GENDER"];class c{constructor(e={}){if(void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=e.type,void 0===e.value)throw new Error("value must be present in constructor argument");this.value=e.value}}class l{constructor(e={}){if(this.listIndex=null,void 0===e.name)throw new Error("name must be present in constructor argument");if(this.name=e.name,void 0===e.fullName)throw new Error("fullName must be present in constructor argument");if(this.fullName=e.fullName,void 0===e.normalizedName)throw new Error("normalizedName must be present in constructor argument");if(this.normalizedName=e.normalizedName,void 0===e.commonType)throw new Error("commonType must be present in constructor argument");this.commonType=null!=e.commonType&&i.W.includes(e.commonType)?e.commonType:null,void 0!==e.listIndex&&(this.listIndex=null!=e.listIndex?e.listIndex:null)}}class u{constructor(e={}){if(this.confidenceWeight=1,this.image=null,this.validationStatus="NONE",this.parsedData=[],void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=new l(e.type),void 0===e.value)throw new Error("value must be present in constructor argument");if(this.value=null!=e.value?new o(e.value):null,void 0!==e.confidenceWeight&&(this.confidenceWeight=e.confidenceWeight),void 0!==e.image&&(this.image=null!=e.image?new r._(e.image):null),void 0===e.polygonInRoot)throw new Error("polygonInRoot must be present in constructor argument");this.polygonInRoot=e.polygonInRoot.map((e=>({x:e.x,y:e.y}))),void 0!==e.validationStatus&&(this.validationStatus=e.validationStatus),void 0!==e.parsedData&&(this.parsedData=e.parsedData.map((e=>new c(e))))}}class d{constructor(e={}){if(this.listIndex=null,void 0===e.name)throw new Error("name must be present in constructor argument");if(this.name=e.name,void 0===e.fullName)throw new Error("fullName must be present in constructor argument");if(this.fullName=e.fullName,void 0===e.normalizedName)throw new Error("normalizedName must be present in constructor argument");this.normalizedName=e.normalizedName,void 0!==e.listIndex&&(this.listIndex=null!=e.listIndex?e.listIndex:null)}}class m{constructor(e={}){if(this.crop=null,this.confidence=0,this.confidenceWeight=0,void 0===e.type)throw new Error("type must be present in constructor argument");if(this.type=new d(e.type),void 0===e.fields)throw new Error("fields must be present in constructor argument");if(this.fields=e.fields.map((e=>new u(e))),void 0===e.children)throw new Error("children must be present in constructor argument");if(this.children=e.children.map((e=>new m(e))),void 0===e.quad)throw new Error("quad must be present in constructor argument");if(this.quad=e.quad.map((e=>({x:e.x,y:e.y}))),void 0===e.quadInRoot)throw new Error("quadInRoot must be present in constructor argument");this.quadInRoot=e.quadInRoot.map((e=>({x:e.x,y:e.y}))),void 0!==e.crop&&(this.crop=null!=e.crop?new r._(e.crop):null),void 0!==e.confidence&&(this.confidence=e.confidence),void 0!==e.confidenceWeight&&(this.confidenceWeight=e.confidenceWeight)}}},6437:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});var i=n(4751);class r{constructor(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i}scaleDown(e){return new r(this.x/e,this.y/e,this.width/e,this.height/e)}bottom(){return this.y+this.height}size(){return new i.o(this.width,this.height)}static withSize(e,t){return new r(0,0,e,t)}static empty(){return new r(0,0,0,0)}static fromRect(e){return e?new r(e.x,e.y,e.width,e.height):r.empty()}static fromPoint(e,t){return new r(e.x-t/2,e.y-t/2,t,t)}static fromDOMRect(e){return new r(e.x,e.y,e.width,e.height)}}},7047:(e,t,n)=>{"use strict";n.d(t,{FI:()=>i,_h:()=>s,aT:()=>c,eE:()=>o,yv:()=>a});var i,r=n(4169);!function(e){e.from=function(e){const t=e._type;switch(t){case"MrzIntroDefaultImage":return new o(e);case"MrzIntroNoImage":return new a(e);case"MrzIntroCustomImage":return new s(e);default:throw new Error(`Unknown child class name: ${t}`)}}}(i||(i={}));class o{constructor(e={}){this._type="MrzIntroDefaultImage"}}class a{constructor(e={}){this._type="MrzIntroNoImage"}}class s{constructor(e={}){if(this._type="MrzIntroCustomImage",void 0===e.uri)throw new Error("uri must be present in constructor argument");this.uri=e.uri}}class c{constructor(e={}){this.image=new o({}),this.backgroundColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.handlerColor="?sbColorOutline",this.showAutomatically=!1,this.title=new r.D7({text:"?introScreenTitle",color:"?sbColorOnSurface"}),this.explanation=new r.D7({text:"?introScreenText",color:"?sbColorOnSurface"}),this.doneButton=new r.z1({text:"?introScreenDoneButton",accessibilityDescription:"?accessibilityDescriptionIntroScreenDoneButton",background:new r.se({strokeColor:"#00000000",fillColor:"?sbColorPrimary",strokeWidth:0}),foreground:new r.X9({color:"?sbColorOnPrimary"})}),void 0!==e.image&&(this.image=i.from(e.image)),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.dividerColor&&(this.dividerColor=e.dividerColor),void 0!==e.handlerColor&&(this.handlerColor=e.handlerColor),void 0!==e.showAutomatically&&(this.showAutomatically=e.showAutomatically),void 0!==e.title&&(this.title=new r.D7(e.title)),void 0!==e.explanation&&(this.explanation=new r.D7(e.explanation)),void 0!==e.doneButton&&(this.doneButton=new r.z1(e.doneButton))}}},7049:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(7828),r=n(525),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new i.A9({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.DocumentScanner.create(new i.A9(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.DocumentScanner.run(this.objectId,e);return{result:new i.aJ(o.result),originalImage:new r._(o.originalImage)}}))}scan(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.DocumentScanner.scan(this.objectId,e);return{result:new i.EU(o.result),originalImage:new r._(o.originalImage)}}))}clearResult(){return o(this,void 0,void 0,(function*(){const e=this.workerBridge.copyArgs;return yield e.DocumentScanner.clearResult(this.objectId)}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.DocumentScanner.destroy(this.objectId)}))}}},7424:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class i{static initialize(e=!1){this.verbose=e}static debug(e){this.verbose&&console.log("ScanbotSDK:",e)}static debugWarn(e){this.verbose&&console.warn("ScanbotSDK:",e)}}},7581:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var i=n(525),r=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class o{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e){return r(this,void 0,void 0,(function*(){const t=yield e.copyArgs.ImageManipulator.create();return new o(e,t)}))}cropRect(e,t,n="COPY_IMAGE"){return r(this,void 0,void 0,(function*(){const r="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield r.ImageManipulator.cropRect(this.objectId,e,{x:t.x,y:t.y,width:t.width,height:t.height});return{result:new i._(o.result),originalImage:new i._(o.originalImage)}}))}rotate(e,t,n="COPY_IMAGE"){return r(this,void 0,void 0,(function*(){const r="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield r.ImageManipulator.rotate(this.objectId,e,t);return{result:new i._(o.result),originalImage:new i._(o.originalImage)}}))}flip(e,t,n="COPY_IMAGE"){return r(this,void 0,void 0,(function*(){const r="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield r.ImageManipulator.flip(this.objectId,e,t);return{result:new i._(o.result),originalImage:new i._(o.originalImage)}}))}resize(e,t,n="COPY_IMAGE"){return r(this,void 0,void 0,(function*(){const r="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield r.ImageManipulator.resize(this.objectId,e,t);return{result:new i._(o.result),originalImage:new i._(o.originalImage)}}))}destroy(){return r(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.ImageManipulator.destroy(this.objectId)}))}}},7684:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});var i=n(4151),r=n(525),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e,t=new i.zQ({})){return o(this,void 0,void 0,(function*(){const n=yield e.copyArgs.BarcodeScanner.create(new i.zQ(t));return new a(e,n)}))}run(e,t="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const n="COPY_IMAGE"===t?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield n.BarcodeScanner.run(this.objectId,e);return{result:new i.AG(o.result),originalImage:new r._(o.originalImage)}}))}clearFrameAccumulationCache(){return o(this,void 0,void 0,(function*(){const e=this.workerBridge.copyArgs;return yield e.BarcodeScanner.clearFrameAccumulationCache(this.objectId)}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.BarcodeScanner.destroy(this.objectId)}))}}},7771:(e,t,n)=>{"use strict";n.d(t,{h:()=>o,q:()=>r});var i=n(4169);class r{constructor(e={}){this.visible=!0,this.title=new i.D7({color:"?sbColorOnPrimary"}),this.background=new i.se({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow"}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.title&&(this.title=new i.D7(e.title)),void 0!==e.background&&(this.background=new i.se(e.background))}}class o{constructor(e={}){this.visible=!0,this.icon=new i.pO({color:"?sbColorOnPrimary"}),this.title=new i.D7({color:"?sbColorOnPrimary"}),this.background=new i.se({fillColor:"?sbColorSurfaceLow"}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.icon&&(this.icon=new i.pO(e.icon)),void 0!==e.title&&(this.title=new i.D7(e.title)),void 0!==e.background&&(this.background=new i.se(e.background))}}},7828:(e,t,n)=>{"use strict";n.d(t,{A9:()=>c,AE:()=>a,Bt:()=>u,EU:()=>h,Qz:()=>d,aJ:()=>m,mb:()=>s,tC:()=>o,zP:()=>l});var i=n(586),r=n(525);const o=["ML","LEGACY"];class a{constructor(e={}){this.acceptedAngleScore=75,this.acceptedSizeScore=80,this.acceptedBrightnessThreshold=0,this.acceptedAspectRatioScore=85,this.aspectRatios=[],this.ignoreOrientationMismatch=!1,void 0!==e.acceptedAngleScore&&(this.acceptedAngleScore=e.acceptedAngleScore),void 0!==e.acceptedSizeScore&&(this.acceptedSizeScore=e.acceptedSizeScore),void 0!==e.acceptedBrightnessThreshold&&(this.acceptedBrightnessThreshold=e.acceptedBrightnessThreshold),void 0!==e.acceptedAspectRatioScore&&(this.acceptedAspectRatioScore=e.acceptedAspectRatioScore),void 0!==e.aspectRatios&&(this.aspectRatios=e.aspectRatios.map((e=>new i.gl(e)))),void 0!==e.ignoreOrientationMismatch&&(this.ignoreOrientationMismatch=e.ignoreOrientationMismatch)}}class s{constructor(e={}){this.allowPartiallyVisibleDocuments=!1,this.accumulationDuration=700,this.retentionTime=1500,this.minimumBrightness=0,void 0!==e.allowPartiallyVisibleDocuments&&(this.allowPartiallyVisibleDocuments=e.allowPartiallyVisibleDocuments),void 0!==e.accumulationDuration&&(this.accumulationDuration=e.accumulationDuration),void 0!==e.retentionTime&&(this.retentionTime=e.retentionTime),void 0!==e.minimumBrightness&&(this.minimumBrightness=e.minimumBrightness)}}class c{constructor(e={}){this.engineMode="ML",this.processingMode="AUTO",this.parameters=new a({}),this.partiallyVisibleDocumentConfiguration=new s({}),void 0!==e.engineMode&&(this.engineMode=e.engineMode),void 0!==e.processingMode&&(this.processingMode=e.processingMode),void 0!==e.parameters&&(this.parameters=new a(e.parameters)),void 0!==e.partiallyVisibleDocumentConfiguration&&(this.partiallyVisibleDocumentConfiguration=new s(e.partiallyVisibleDocumentConfiguration))}}const l=["NONE","UP","UPPER_RIGHT","RIGHT","LOWER_RIGHT","DOWN","LOWER_LEFT","LEFT","UPPER_LEFT"],u=["NOT_ACQUIRED","OK","OK_BUT_TOO_SMALL","OK_BUT_BAD_ANGLES","OK_BUT_BAD_ASPECT_RATIO","OK_BUT_ORIENTATION_MISMATCH","OK_BUT_OFF_CENTER","OK_BUT_TOO_DARK","ERROR_NOTHING_DETECTED","ERROR_PARTIALLY_VISIBLE","ERROR_PARTIALLY_VISIBLE_TOO_CLOSE","ERROR_TOO_DARK","ERROR_TOO_NOISY"];class d{constructor(e={}){if(void 0===e.totalScore)throw new Error("totalScore must be present in constructor argument");if(this.totalScore=e.totalScore,void 0===e.distanceScore)throw new Error("distanceScore must be present in constructor argument");if(this.distanceScore=e.distanceScore,void 0===e.angleScore)throw new Error("angleScore must be present in constructor argument");if(this.angleScore=e.angleScore,void 0===e.sizeScore)throw new Error("sizeScore must be present in constructor argument");if(this.sizeScore=e.sizeScore,void 0===e.aspectRatioScore)throw new Error("aspectRatioScore must be present in constructor argument");if(this.aspectRatioScore=e.aspectRatioScore,void 0===e.lineCoverageScore)throw new Error("lineCoverageScore must be present in constructor argument");if(this.lineCoverageScore=e.lineCoverageScore,void 0===e.widthScore)throw new Error("widthScore must be present in constructor argument");if(this.widthScore=e.widthScore,void 0===e.heightScore)throw new Error("heightScore must be present in constructor argument");this.heightScore=e.heightScore}}class m{constructor(e={}){if(this.status="NOT_ACQUIRED",this.averageBrightness=0,this.displacement="NONE",void 0!==e.status&&(this.status=e.status),void 0===e.detectionScores)throw new Error("detectionScores must be present in constructor argument");if(this.detectionScores=new d(e.detectionScores),void 0===e.points)throw new Error("points must be present in constructor argument");if(this.points=e.points.map((e=>({x:e.x,y:e.y}))),void 0===e.horizontalLines)throw new Error("horizontalLines must be present in constructor argument");if(this.horizontalLines=e.horizontalLines.map((e=>new i.pk(e))),void 0===e.verticalLines)throw new Error("verticalLines must be present in constructor argument");if(this.verticalLines=e.verticalLines.map((e=>new i.pk(e))),void 0===e.pointsNormalized)throw new Error("pointsNormalized must be present in constructor argument");if(this.pointsNormalized=e.pointsNormalized.map((e=>({x:e.x,y:e.y}))),void 0===e.horizontalLinesNormalized)throw new Error("horizontalLinesNormalized must be present in constructor argument");if(this.horizontalLinesNormalized=e.horizontalLinesNormalized.map((e=>new i.sw(e))),void 0===e.verticalLinesNormalized)throw new Error("verticalLinesNormalized must be present in constructor argument");if(this.verticalLinesNormalized=e.verticalLinesNormalized.map((e=>new i.sw(e))),void 0===e.aspectRatio)throw new Error("aspectRatio must be present in constructor argument");if(this.aspectRatio=e.aspectRatio,void 0!==e.averageBrightness&&(this.averageBrightness=e.averageBrightness),void 0!==e.displacement&&(this.displacement=e.displacement),void 0===e.displacementVector)throw new Error("displacementVector must be present in constructor argument");this.displacementVector={x:e.displacementVector.x,y:e.displacementVector.y}}}class h{constructor(e={}){if(this.croppedImage=null,void 0===e.detectionResult)throw new Error("detectionResult must be present in constructor argument");this.detectionResult=new m(e.detectionResult),void 0!==e.croppedImage&&(this.croppedImage=null!=e.croppedImage?new r._(e.croppedImage):null)}}},7907:(e,t,n)=>{"use strict";n.d(t,{VY:()=>a});var i=n(376);class r{static isiOSBackTripleCamera(e){for(const t of Object.values(r.IOS_BACK_TRIPLE))if(e.includes(t))return!0}}r.IOS_BACK_TRIPLE={de:"Rückseitige Triple-Kamera",he:"מצלמה משולשת אחורית",ar:"كاميرا خلفية ثلاثية",el:"Πίσω τριπλή κάμερα",ja:"背面トリプルカメラ",en:"Back Triple Camera",uk:"Задня потроєна камера",es_419:"Cámara posterior triple",pt_PT:"Câmara tripla traseira",es:"Cámara trasera triple",da:"Back Triple Camera",it:"Fotocamera tripla (posteriore)",sk:"Zadná trojitá kamera",zh_CN:"后置三镜头",ms:"Tiga Kamera Belakang",sv:"Bakre trippelkamera",en_AU:"Back Triple Camera",cs:"Zadní trojný fotoaparát",ko:"후면 트리플 카메라",no:"Trippelt kamera bak",hu:"Hátsó, tripla kamera",tr:"Üçlü Arka Kamera",pl:"Tylny aparat trójobiektywowy",fr_CA:"Triple caméra arrière",vi:"Ba camera mặt sau",ru:"Задняя тройная камера",en_GB:"Back Triple Camera",fr:"Triple appareil photo arrière",fi:"Kolmoistakakamera",id:"Tiga Kamera Belakang",nl:"Back Triple Camera",th:"กล้องด้านหลังสามกล้อง",pt:"Câmera Tripla Traseira",ro:"Cameră triplă spate",zh_HK:"後置三鏡頭相機",hr:"Stražnja trostruka kamera",hi:"बैक ट्रिपल कैमरा",ca:"Càmera triple posterior",zh_TW:"後置三鏡頭相機"};var o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{static get INSTANCE(){return a._INSTANCE||(a._INSTANCE=new a),a._INSTANCE}constructor(){this.listOfCameras=[],this.strategy="FAST_DEFERRED"}initialize(e){if(e&&(this.strategy=e),"SLOW"===e||"FAST"===e){const t=e;this.load(t)}}load(e){return o(this,void 0,void 0,(function*(){if(!e)if("SLOW_DEFERRED"===this.strategy||"SLOW"===this.strategy)e="SLOW";else if("FAST_DEFERRED"===this.strategy||"FAST"===this.strategy)e="FAST";else if("NONE"===this.strategy)return this.listOfCameras;let t;if("SLOW"===e)t=this.loadSlow();else{if("FAST"!==e)throw new Error(`Unknown mode ${e}`);t=this.loadFast()}try{return this.listOfCameras=yield t,this.listOfCameras}catch(e){throw this.loadSlowResult=void 0,i.F.createFromDOMException(e)}}))}loadSlow(){return this.loadSlowResult=this.loadSlowResult||(()=>o(this,void 0,void 0,(function*(){yield this.assertPermissionsAreOk();const e=[];for(const t of yield this.getVideoDevices()){let n;try{n=yield this.getUserMedia({video:{deviceId:t.deviceId}}),e.push(a.getCameraInfoFromStream(n))}finally{this.stopStream(n),yield new Promise((e=>setTimeout(e,0)))}}return e})))(),this.loadSlowResult}loadFast(){return this.loadFastResult=this.loadFastResult||(()=>o(this,void 0,void 0,(function*(){yield this.assertPermissionsAreOk();const e=[];for(const t of yield this.getVideoDevices()){const n=a.guessparseCameraLabelFacingMode(t.label),i=a.guessparseCameraLabelMaxNumPixels(t.label);e.push({maxNumPixels:i,facingMode:n,supportsTorchControl:void 0,deviceId:t.deviceId,label:t.label})}return e})))(),this.loadFastResult}getMainCamera(e){var t,n,i,o,a,s;return null!==(s=null===(a=null===(o=null===(i=null===(n=null===(t=this.listOfCameras)||void 0===t?void 0:t.filter((t=>t.facingMode===e)))||void 0===n?void 0:n.map(((e,t)=>({camera:e,index:t}))))||void 0===i?void 0:i.sort(((e,t)=>{var n;return(r.isiOSBackTripleCamera(e.camera.label||"")?1:0)||(r.isiOSBackTripleCamera(t.camera.label||"")?1:0)||-(+e.camera.supportsTorchControl||0)-(+t.camera.supportsTorchControl||0)||-((e.camera.maxNumPixels||0)-(t.camera.maxNumPixels||0))||(null===(n=e.camera.label)||void 0===n?void 0:n.localeCompare(t.camera.label))||e.index-t.index})))||void 0===o?void 0:o[0])||void 0===a?void 0:a.camera)&&void 0!==s?s:null}getVideoDevices(){return o(this,void 0,void 0,(function*(){let e=yield navigator.mediaDevices.enumerateDevices();if(e=e.filter((e=>"videoinput"===e.kind)),e.some((e=>""===e.label))){let t;try{t=yield this.getUserMedia({video:{facingMode:{ideal:"environment"}},audio:!1}),e=yield navigator.mediaDevices.enumerateDevices(),e=e.filter((e=>"videoinput"===e.kind))}finally{this.stopStream(t)}}return e}))}stopStream(e){null==e||e.getTracks().forEach((e=>e.stop()))}static guessparseCameraLabelFacingMode(e){return function(e){const t=["rear","back","rück","arrière","trasera","trás","traseira","posteriore","后面","後面","背面","后置","後置","背置","задней","الخلفية","후","arka","achterzijde","หลัง","baksidan","bagside","sau","bak","tylny","takakamera","belakang","אחורית","πίσω","spate","hátsó","zadní","darrere","zadná","задня","stražnja","belakang","बैक"];for(const n of t)if(e.toLowerCase().includes(n.toLowerCase()))return!0;return!1}(e)?"back":"front"}static guessparseCameraLabelMaxNumPixels(e){const t=RegExp(/\b([0-9]+)mp?\b/).exec(e.toLowerCase()),n=t?1e6*parseInt(t[1],10):NaN;return Number.isNaN(n)?void 0:n}assertPermissionsAreOk(){return o(this,void 0,void 0,(function*(){if(i.F.hasCheckedPermission()||(yield i.F.tryCheckPermission()),i.F.hasDeniedPermission())throw i.F.permissionDenied();if(!navigator.mediaDevices)throw i.F.unknown()}))}static getCameraInfoFromStream(e){var t;return null===(t=e.getVideoTracks().map((e=>{var t,n,i,r,o,a;const s=null===(t=e.getCapabilities)||void 0===t?void 0:t.call(e),c=null===(n=e.getSettings)||void 0===n?void 0:n.call(e),l=e.label;let u=function(e){if("user"===(null==e?void 0:e.toLowerCase()))return"front";if("environment"===(null==e?void 0:e.toLowerCase()))return"back";return"unknown"}(null!==(r=null===(i=null==s?void 0:s.facingMode)||void 0===i?void 0:i[0])&&void 0!==r?r:c.facingMode);"unknown"===u&&(u=this.guessparseCameraLabelFacingMode(l));let d=function(e){var t,n;let i=(null===(t=null==e?void 0:e.width)||void 0===t?void 0:t.max)*(null===(n=null==e?void 0:e.height)||void 0===n?void 0:n.max);if(!i||Number.isNaN(i))return;return i}(s);Number.isNaN(d)&&(d=this.guessparseCameraLabelMaxNumPixels(l));return{facingMode:u,maxNumPixels:d,supportsTorchControl:null!==(a=null!==(o=null==s?void 0:s.torch)&&void 0!==o?o:"torch"in c)&&void 0!==a&&a,label:l,deviceId:c.deviceId}})).sort(((e,t)=>t.maxNumPixels-e.maxNumPixels)))||void 0===t?void 0:t[0]}getUserMedia(e){return o(this,void 0,void 0,(function*(){try{return yield navigator.mediaDevices.getUserMedia(e)}catch(e){throw i.F.mediaDeviceNotFound()}}))}}},8193:(e,t,n)=>{"use strict";n.d(t,{U:()=>i});class i{constructor(){this.values=new Map}}i.INSTANCE=new i},8233:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var i=n(525),r=n(177),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t){this.workerBridge=e,this.objectId=t}static create(e){return o(this,void 0,void 0,(function*(){const t=yield e.copyArgs.ImageProcessor.create();return new a(e,t)}))}crop(e,t,n="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const r="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield r.ImageProcessor.crop(this.objectId,e,t.map((e=>({x:e.x,y:e.y}))));return{result:new i._(o.result),originalImage:new i._(o.originalImage)}}))}resize(e,t,n="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const r="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield r.ImageProcessor.resize(this.objectId,e,t);return{result:new i._(o.result),originalImage:new i._(o.originalImage)}}))}rotate(e,t,n="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const r="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,o=yield r.ImageProcessor.rotate(this.objectId,e,t);return{result:new i._(o.result),originalImage:new i._(o.originalImage)}}))}applyFilter(e,t,n="COPY_IMAGE"){return o(this,void 0,void 0,(function*(){const o="COPY_IMAGE"===n?this.workerBridge.copyArgs:this.workerBridge.transferArgs,a=yield o.ImageProcessor.applyFilter(this.objectId,e,r.hI.from(t));return{result:new i._(a.result),originalImage:new i._(a.originalImage)}}))}destroy(){return o(this,void 0,void 0,(function*(){return this.workerBridge.copyArgs.ImageProcessor.destroy(this.objectId)}))}}},8350:(e,t,n)=>{"use strict";n.d(t,{$G:()=>i.$G,D0:()=>i.D0,Dq:()=>i.Dq,PU:()=>i.PU,S5:()=>i.S5,YA:()=>i.YA,oB:()=>i.oB,yJ:()=>i.yJ});var i=n(6396)},8382:(e,t,n)=>{"use strict";n.d(t,{FH:()=>s,PC:()=>c,dI:()=>a});var i=n(8763),r=n(5291),o=n(7424);(0,i.q6)(null);class a{static setPalette(e){this.palette=e}static setLocalization(e){this.localization=e}static getColorValue(e){return s(e,this.palette)}static getPolygonColorValues(e,t){return new r.PolygonStyle({fillColor:t?a.getColorValue(e.fillColor):"transparent",strokeColor:t?a.getColorValue(e.strokeColor):"transparent",strokeWidth:e.strokeWidth,cornerRadius:e.cornerRadius})}static getLocalizedText(e,t=[]){return c(e,t,this.localization)}}function s(e,t){if(e){if(e.startsWith("?")){if(!t)throw new Error("Palette is not set");const n=e.slice(1);if(n in t)return t[n];o.A.debugWarn(`Color ${n} not found in palette`)}return e}o.A.debugWarn("Color is missing")}function c(e,t=[],n){if(e.startsWith("?")){if(!n)throw new Error("Localization is not set");const t=e.slice(1);t in n?e=n[t]:o.A.debugWarn(`Text localization key ${t} was not found in the localization table`)}for(let n of t)e=e.replace("%d",n);return e}a.palette=null,a.localization=null},8480:(e,t,n)=>{"use strict";n.d(t,{A:()=>Jh});class i{}i.VERSION="8.1.0",i.BUILD_WITH_UI=!1;var r=n(718);class o extends Error{constructor(e){super("License error!",{cause:e})}}class a extends Error{constructor(){super('Error initializing the ScanbotSDK worker. Most likely, this is caused by an incorrect enginePath parameter set during the SDK initialization. Please check your browser\'s developer tools -> "Network" tab to see if any JS or WASM files failed to load. Note that you need to set up your webserver to serve these files under a certain path and then adjust the "enginePath" parameter accordingly. Please refer to the "Initialization" section in our documentation for more information.')}}class s extends Error{constructor(e,t,n){super(`Version mismatch! Version of ScanbotSDK.(ui2.)min.js is "${t}" \nbut the version of the loaded ScanbotSDK.Core*.js file is "${n}". \nThe ScanbotSDK.Core*.js file was loaded from ${e}.`)}}var c=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class l{constructor(e,t,n){this.copyArgs=this.createProxy("copy"),this.transferArgs=this.createProxy("transfer"),this.core=new r._(e,t),this.initializationStatus=(()=>c(this,void 0,void 0,(function*(){try{yield this.core.copyArgs.initialize(...n)}catch(e){return"InvalidLicense"===(null==e?void 0:e.errorType)?new o(e):new a}let t;try{t=yield this.core.copyArgs.version()}catch(e){t="Error"}const r=i.VERSION;return t!==r?new s(e,r,t):"OK"})))(),this.api=(()=>{const e={};for(const t in this.core.api){const n=this.core.api[t];e[t]={};for(const i in n)e[t][i]=(...e)=>c(this,void 0,void 0,(function*(){return(yield this.getCoreForCommand()).api[t][i](...e)}))}return e})()}awaitInitialized(){return c(this,void 0,void 0,(function*(){yield this.getCoreForCommand()}))}createProxy(e){return new Proxy({},{get:(t,n,i)=>(...t)=>c(this,void 0,void 0,(function*(){const i=yield this.getCoreForCommand(n),r="copy"===e?i.copyArgs:i.transferArgs;return yield r[n](...t)}))})}getCoreForCommand(e=""){return c(this,void 0,void 0,(function*(){const t=yield this.initializationStatus;if("OK"===t||"getLicenseInfo"===e&&t instanceof o)return this.core;throw t}))}}var u=n(3575),d=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class m{constructor(e,t){this._sdk=e,this._pdfOperation=t}addPage(e,t={}){return d(this,void 0,void 0,(function*(){const{consumeImage:n="COPY_IMAGE",binarization:i="ENABLED_IF_BINARIZATION_FILTER_SET",runOcr:r}=t,o=this._sdk.getBridge(n);r?yield o.addPageToPdfWithOcr(this._pdfOperation,e,i):yield o.addPageToPdf(this._pdfOperation,e,i)}))}addPages(e,t){return d(this,void 0,void 0,(function*(){for(const n of e.pages){const e=yield n.finalRawImage();yield this.addPage(e,{runOcr:t})}}))}complete(){return d(this,void 0,void 0,(function*(){return yield this._sdk.bridge.copyArgs.completePdf(this._pdfOperation)}))}}var h=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class p{constructor(e,t){this._sdk=e,this._tiffOperation=t}addPage(e,t={}){return h(this,void 0,void 0,(function*(){const{binarize:n="ENABLED_IF_BINARIZATION_FILTER_SET",consumeImage:i="COPY_IMAGE"}=t,r=this._sdk.getBridge(i);yield r.addPageToTiff(this._tiffOperation,e,n)}))}addPages(e,t={}){return h(this,void 0,void 0,(function*(){for(const n of e.pages){const e=yield n.finalRawImage();yield this.addPage(e,t)}}))}complete(){return h(this,void 0,void 0,(function*(){return yield this._sdk.bridge.copyArgs.completeTiff(this._tiffOperation)}))}}var E=n(6437);class A{static toPixelSize(e){return e+"px"}static containsString(e,t){return!!e&&-1!==e.indexOf(t)}static copy(e){return JSON.parse(JSON.stringify(e))}static getProperty(e,t){if(e&&e.hasOwnProperty(t))return e[t]}static uuid(){let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=t.length;for(let i=0;i<5;i++)e+=t.charAt(Math.floor(Math.random()*n));return e}}var g=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class f{static toDataUrl(e){return new Promise(((t,n)=>{const i=new Blob([e],{type:"image/jpeg"}),r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(r.error),r.readAsDataURL(i)}))}static getObjectFitSize(e,t,n=!0){const i=t.width/t.height,r=e.width/e.height;let o=0,a=0;(n?i>r:i<r)?(o=e.width,a=o/i):(a=e.height,o=a*i);const s=(e.width-o)/2,c=(e.height-a)/2;return new E.w(s,c,o,a)}static loadFromUrl(e){return new Promise(((t,n)=>{const i=document.createElement("img");i.src=e,i.onload=()=>g(this,void 0,void 0,(function*(){const e=document.createElement("canvas");e.width=i.width,e.height=i.height;const n=e.getContext("2d");n.drawImage(i,0,0);const r=n.getImageData(0,0,i.width,i.height);t(r)})),i.onerror=n}))}static saveImageData(e){const t=this.createImageDataCanvas(e),n=" ("+e.width+"x"+e.height+")";t.toBlob((e=>this.saveBlob(e,A.uuid()+n+".png")))}static createImageDataCanvas(e){const t=document.createElement("canvas");return t.className="scanbot-sdk-canvas-element",t.width=e.width,t.height=e.height,t.getContext("2d").putImageData(e,0,0),t}static saveBlob(e,t){let n=document.createElement("a");n.setAttribute("download",t);let i=URL.createObjectURL(e);n.setAttribute("href",i),n.click()}static convertImageDataWrapperToImageData(e){if(e)return new ImageData(e.data,e.width,e.height)}static wrapperToBase64(e){return f.createImageDataCanvas(f.convertImageDataWrapperToImageData(e)).toDataURL("image/png")}static toBase64(e,t=!0){return g(this,void 0,void 0,(function*(){const n=yield new Promise((t=>{const n=new FileReader;n.onload=()=>t(n.result),n.readAsDataURL(new Blob([e]))}));return t?n.slice(n.indexOf(",")+1):n}))}static imageUrlToImageData(e){return g(this,void 0,void 0,(function*(){return new Promise(((t,n)=>{const i=document.createElement("canvas"),r=document.createElement("img");r.src=e,r.onload=()=>g(this,void 0,void 0,(function*(){i.width=r.width,i.height=r.height;const e=i.getContext("2d");e.drawImage(r,0,0);const n=e.getImageData(0,0,r.width,r.height);t(n)})),r.onerror=n}))}))}static degreesToRotation(e){switch(e){case 180:case-180:return"CLOCKWISE_180";case 90:return"CLOCKWISE_90";case-90:return"COUNTERCLOCKWISE_90";default:return"NONE"}}static degreesToRotations(e){switch(e){case 180:case-180:return 2;case-90:return 1;case 90:return 3;default:return 0}}}class C{saveImageAsJpeg(e,t){if(!e||0===e.length)return void console.log("Data cannot be null or empty");t||(t=A.uuid()+".jpeg");let n=new Blob([e],{type:"image/jpeg"});f.saveBlob(n,t)}isCameraSupported(){return!!navigator.mediaDevices}flash(){let e=this.findFlashElement();e.style.display="block",this.animateFlashOpacity("0.5",(()=>{this.animateFlashOpacity("0.0",(()=>{e.style.opacity="1.0",e.style.display="none"}))}))}findFlashElement(){return this.getOrCreateElement("flash",{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","background-color":"#fff",display:"none","z-index":"5000"})}animateFlashOpacity(e,t){const n=this.getElementByClassName("flash");setTimeout((()=>{n.style.opacity=e,t()}),150)}getOrCreateElement(e,t){let n=this.getElementByClassName(e);return n||(this.createElement(e,t),n=this.getElementByClassName(e)),n}createElement(e,t){let n=document.createElement("div");n.className=e,n.style.cssText=this.cssToString(t),document.body.append(n)}cssToString(e){let t="";return Object.keys(e).forEach((n=>{t+=n+":"+e[n]+";"})),t}getElementByClassName(e){const t=document.getElementsByClassName(e);if(0!==t.length)return t[0]}}var _=n(982),D=n(1815),y=n(3296);class I extends D.W{constructor(){super(_.J.DEFAULT_VIDEO_RESOLUTION_HD),this.scannerConfiguration=new y.TextPatternScannerConfiguration,this.onTextDetected=function(e){},this.finder.aspectRatio=new y.AspectRatio({width:6,height:1}),this.userGuidance.title.text="Please hold the device over the text to start scanning"}static fromJson(e){var t;const n=new I;return this.mapFinderConfiguration(n,e),n.scannerConfiguration=new y.TextPatternScannerConfiguration(null!==(t=e.scannerConfiguration)&&void 0!==t?t:{}),this._fromJson(n,e)}}class v extends D.W{constructor(){super(_.J.DEFAULT_VIDEO_RESOLUTION_HD),this.scannerConfiguration=new y.VinScannerConfiguration,this.onVinDetected=function(e){},this.finder.aspectRatio=new y.AspectRatio({width:6,height:1}),this.userGuidance.title.text="Please hold the device over the vehicle identification number to start scanning"}static fromJson(e){var t;const n=new v;return this.mapFinderConfiguration(n,e),n.scannerConfiguration=new y.VinScannerConfiguration(null!==(t=e.scannerConfiguration)&&void 0!==t?t:{}),this._fromJson(n,e)}}class N extends Error{constructor(e){super(e.licenseStatusMessage),this.name="LicenseError"}}class S{static throwIfMissingBuffer(e){S.throwIfMissing(e,"ImageBuffer may not be null")}static throwIfMissing(e,t){if(!e)throw new Error(t)}}var b=n(7424),M=n(8763),L=n(4730),R=n(5291);const T=window["@mui"];var O=n.n(T),w=n(8382),F=n(500);function B(e){return{textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:`${e}`,overflow:"hidden",whiteSpace:e>1?"normal":"nowrap",display:e>1?"-webkit-box":"block"}}function P(e){if(e.loading)return M.Ay.createElement(T.Skeleton,{variant:"rounded",width:e.imageSize,height:e.imageSize,style:{borderRadius:8}});if(null===e.data.barcodeImage){const t={width:e.imageSize,height:e.imageSize,backgroundColor:"#E0E0E0",borderRadius:3};return M.Ay.createElement(T.Box,{sx:t})}const t={width:e.imageSize,height:e.imageSize,borderRadius:8};return M.Ay.createElement("img",{src:e.data.barcodeImage,alt:e.data.title,style:t})}function x(e){var t,n;const i=(null===(t=e.barcodeMappedData)||void 0===t?void 0:t.state)||"LOADING",r=(null===(n=e.barcodeMappedData)||void 0===n?void 0:n.value)||{title:"",subtitle:"",barcodeImage:""},o=!e||"LOADED"!==i,a=e.imageSize,s=e.barcodeTitle.visible||e.barcodeSubtitle.visible||e.counterForm,c=e.counterForm&&{"&:hover, &:focus, &:active, &":{borderColor:w.dI.getColorValue(e.counterForm.manualCountOutlineColor),backgroundColor:"transparent"}},l=(0,M.li)(),[u,d]=(0,M.J0)("100%");return(0,M.vJ)((()=>{var t;const n=e.readonlyCount?.87:.97,i=null===(t=l.current)||void 0===t?void 0:t.parentNode,r=i&&i.clientWidth>0?i.clientWidth*n:"100%";d(r)})),M.Ay.createElement(T.Box,{ref:l,sx:{display:"flex",maxWidth:u},"data-sb-barcode-info":"1"},e.barcodeImageVisible&&M.Ay.createElement(T.Box,{sx:{pr:s?"16px":0,display:"flex",alignItems:"center",justifyContent:"center"}},M.Ay.createElement(P,{data:r,imageSize:a,loading:o})),s&&M.Ay.createElement(T.Box,{sx:{flex:1,display:"flex",flexDirection:"column",verticalAlign:"middle",justifyContent:"center",m:0,p:0,minWidth:0}},e.barcodeTitle.visible&&M.Ay.createElement(T.Box,{display:o?"block":"flex",sx:{alignItems:"center"}},M.Ay.createElement(T.Typography,{fontSize:16,fontWeight:"bold",sx:Object.assign(Object.assign(Object.assign({},B(e.maxNumberOfTitleLines)),(0,F.E_)(e.barcodeTitle)),{textOverflow:"ellipsis",overflow:"hidden",display:"inline-block"})},o?M.Ay.createElement(T.Skeleton,{variant:"text"}):r.title),e.displayRightArrow&&!o&&M.Ay.createElement(O(),{sx:{fontSize:16,fontWeight:"bold",color:w.dI.getColorValue(e.barcodeTitle.color)}})),e.barcodeSubtitle.visible&&M.Ay.createElement(T.Typography,{fontSize:14,fontWeight:400,sx:Object.assign(Object.assign({},B(e.maxNumberOfSubtitleLines)),(0,F.E_)(e.barcodeSubtitle))},o?M.Ay.createElement(T.Skeleton,{variant:"text"}):r.subtitle),e.counterForm&&M.Ay.createElement(T.ButtonGroup,{variant:"outlined"},M.Ay.createElement(T.Button,{disabled:!e.counterForm.removeButtonEnabled,sx:c,style:{opacity:e.counterForm.removeButtonEnabled?1:.3},onClick:()=>e.counterForm.setCounter(e.counterForm.counter-1),disableRipple:!0},M.Ay.createElement(O(),{sx:{color:w.dI.getColorValue(e.counterForm.manualCountChangeColor)}})),M.Ay.createElement(T.Button,{sx:Object.assign(Object.assign({},c),{color:w.dI.getColorValue(e.counterForm.manualCountChangeColor),fontWeight:"bold",fontSize:16}),onClick:e.counterForm.onNumberClick,disableRipple:!0},e.counterForm.counter),M.Ay.createElement(T.Button,{disabled:!e.counterForm.addButtonEnabled,sx:c,style:{opacity:e.counterForm.addButtonEnabled?1:.3},onClick:()=>e.counterForm.setCounter(e.counterForm.counter+1),disableRipple:!0},M.Ay.createElement(O(),{sx:{color:w.dI.getColorValue(e.counterForm.manualCountChangeColor)}})))))}function k(e){var t;if(!e.visible)return null;const n={["data-sb-button-"+e.debugName]:!0};return M.Ay.createElement(T.Button,Object.assign({disabled:null!==(t=e.disabled)&&void 0!==t&&t,onClick:e.onClick,type:e.type,"aria-label":e.accessibilityDescription,sx:Object.assign(Object.assign({},e.style),{"&:hover, &:focus, &:active, &":{borderStyle:"solid",borderColor:w.dI.getColorValue(e.background.strokeColor),borderWidth:e.background.strokeWidth,backgroundColor:w.dI.getColorValue(e.background.fillColor),textTransform:"none",outline:"none"}}),disableRipple:!0},n),e.foreground.iconVisible&&e.icon&&M.Ay.createElement(e.icon,{sx:{color:w.dI.getColorValue(e.foreground.color),pr:2}}),M.Ay.createElement(F.D7,{config:{visible:!0,text:e.text,color:e.foreground.color,useShadow:e.foreground.useShadow}}))}var V=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function U(e){var t,{modalOverlayColor:n}=e,i=V(e,["modalOverlayColor"]);const r={backdrop:{style:{backgroundColor:w.dI.getColorValue(n)}}},o=Object.assign(Object.assign({},i.PaperProps),{sx:Object.assign(Object.assign({},null===(t=i.PaperProps)||void 0===t?void 0:t.sx),i.width?{width:i.width}:{maxWidth:400})});return M.Ay.createElement(T.Dialog,Object.assign({},i,{componentsProps:r,PaperProps:o}))}function Z(e){const t=!e.barcodeMappedData||"LOADED"!==e.barcodeMappedData.state,n=t?e.sheetColorLoading:e.sheetColorLoaded,i={backgroundColor:w.dI.getColorValue(n)},[r,o]=M.Ay.useState(),a=(0,M.li)((()=>{}));(0,M.vJ)((()=>{e.open&&o(!1)}),[e.open]);const s=()=>{a.current=e.handleCancel,o(!0)};return M.Ay.createElement(U,{modalOverlayColor:e.modalOverlayColor,open:e.open&&!r,fullWidth:!0,TransitionProps:{onExited:()=>{r&&a.current()}},onClose:()=>{t||s()}},M.Ay.createElement(T.DialogContent,{style:i},M.Ay.createElement(x,Object.assign({},e,{maxNumberOfTitleLines:2,maxNumberOfSubtitleLines:1,imageSize:68}))),M.Ay.createElement(T.DialogActions,{style:i},M.Ay.createElement(O(),{container:!0,spacing:2,sx:{overflow:"hidden"}},M.Ay.createElement(O(),{item:!0,xs:12},M.Ay.createElement(O(),{color:w.dI.getColorValue(e.dividerColor)})),t?M.Ay.createElement(O(),{item:!0,xs:12,sx:{textAlign:"center"}},M.Ay.createElement(T.Box,null,M.Ay.createElement(T.CircularProgress,{sx:{color:w.dI.getColorValue(e.loadingMessage.color),verticalAlign:"middle",mr:2}}),M.Ay.createElement(F.D7,{config:e.loadingMessage}))):M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(O(),{item:!0,xs:6},M.Ay.createElement(k,Object.assign({style:{width:"100%"},onClick:s},e.cancelButton))),M.Ay.createElement(O(),{item:!0,xs:6},M.Ay.createElement(k,Object.assign({style:{width:"100%"},onClick:()=>{a.current=e.handleSubmit,o(!0)}},e.submitButton)))))))}const W=16;function H(e){if(!1===e.visible)return null;const t={backgroundColor:e.active?w.dI.getColorValue(e.activeBackgroundColor):w.dI.getColorValue(e.backgroundColor),color:e.active?w.dI.getColorValue(e.activeForegroundColor):w.dI.getColorValue(e.foregroundColor)};return M.Ay.createElement(T.IconButton,{sx:Object.assign(Object.assign({},t),{"&:hover, &:focus":Object.assign({outline:"none"},t),width:48,height:48}),onClick:e.onClick},e.text&&M.Ay.createElement("span",{style:{fontSize:15}},w.dI.getLocalizedText(e.text)),e.icon&&M.Ay.createElement(e.icon,{style:{padding:7}}))}var G=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class z{constructor(){this.audioFile=new Audio}initialize(e){return G(this,void 0,void 0,(function*(){e.successBeepEnabled&&(this.audioFile.src="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAACAE00QSBpc29taXNvMgAAAAhmcmVlAAASCG1kYXQBQCKAo3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+aIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwBQCKAo3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+aIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwA6jQEQfEIQGIQaqctMIv9EpiYforpaDbT80WfPFRSswKfd8cy6kN/+IUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u//EKWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaXfViFLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwA6jQQpRY6EYNCcKDAqAAEUgC2wFy0kF7JTgecsqIp6pxd/lHO7kUuSCLFK6n2mPOKfj5aKhQPOaRtBEKFS85eIYbr71AGaAPJTSIHeIhXTcpA5i155UICz3nXk0Cz0A8QhxIhoqQIJ2Be9MIEiJ6GpuMa1fPXcJmIoxDUKpZuJozBa6iFmjy7O/genSlwPKL6xaiiL8Y1XtgBDY7ke/CAOoawOqmZm6suSVQPbxzaxZJpWFcWva4RqTil72HqDpc2N4eG3KA0JkU8G58RNabxVq9gSLwysPKIzL1fZVF1FQwllEs4YUKpPtoMw2VtepdbZHqGriAsZ5Lu154uiewW41szI4RHfpWOWSH7s1LAzlv/xClpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWl36AhS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0vAA6jQEYVEIDEQDEKCAYhAIXMdbaI5q82OvhmYS1FO11cD3Yt4EwZI+aTsqoctJJaN0FKvNqorQmK3SUWpNOtf+uKNIxX3xeTEq8LKb/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd/+IUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u+GEKWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpeABMDQD6WqsfRABwAUSib4c3/4hS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS7/8QpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpd+EIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS8AAAO4bW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAAAfgAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAiJ0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAAfgAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAH4AAAIAAABAAAAAAGabWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAAfQAAAF8BVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAABRW1pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABCXN0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAEAEAAAAAAfQAAAAAAAM2VzZHMAAAAAA4CAgCIAAQAEgICAFEAVAAAAAAH0AAAAvXkFgICAAhWIBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAAAUAAAQAAAAAAQAAA8AAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAYAAAABAAAAFHN0c3oAAAAAAAADAAAAAAYAAAAUc3RjbwAAAAAAAAABAAAALAAAABpzZ3BkAQAAAHJvbGwAAAACAAAAAf//AAAAHHNiZ3AAAAAAcm9sbAAAAAEAAAAGAAAAAQAAASJ1ZHRhAAABGm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAA7Wlsc3QAAAAzqW5hbQAAACtkYXRhAAAAAQAAAAAyNTAgTWlsbGlzZWNvbmRzIG9mIFNpbGVuY2UAAAApqUFSVAAAACFkYXRhAAAAAQAAAABBbmFyIFNvZnR3YXJlIExMQwAAAClhQVJUAAAAIWRhdGEAAAABAAAAAEFuYXIgU29mdHdhcmUgTExDAAAAI6lhbGIAAAAbZGF0YQAAAAEAAAAAQmxhbmsgQXVkaW8AAAAkqXRvbwAAABxkYXRhAAAAAQAAAABMYXZmNjAuMy4xMDAAAAAZY3BpbAAAABFkYXRhAAAAFQAAAAAA",yield this.play(),"MODERN_BEEP"===e.soundType&&(this.audioFile.src="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAACAE00QSBpc29taXNvMgAAAAhmcmVlAAAEcm1kYXQBQCKAo30ghS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwDmVAjh8QBrRiUH/88pKh3gJPmPt9t8oIUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLwDsl6UY83aVqFeq3aVmmYyFp70/kJT+A9hdePd7Z7aRSFKZBhCUP6E1rS/9+DhfmhvTknCnQzE+QHVPD6rhSIRpGIAFmBioF1XkxwAQjxKkQMc+qECgXnCAU1IcgpFDnWo02EdihsnrUx/1bJAUo+x6//p8VmoS0iuleHvPnKj9mjjHOoaDGI/s2DHcYI66Grp+5pezZuKJExJOzoyJRdmv6ltO6ibTdTDZ1YqLauKTebYOtpTWnh3/K3kBQmN3NsieqxzHeZKNiFphWuYSWMhaHIZRnRt6O/WzTXYFGrG0wBT54NCQ3wtSpqr5dHbQN2yY0jcckhLUieNtOSjS3u1NuMqWbOx1zHwlHfJKgI349OU9iZEzeN3rCVbBVdrdcAEW9Cm2Ji2FjQNkiFBViV6ofFsNVeVqpKgpsf3/iWtBG6cpMqFHjy2QhyBEnPtwTbWbm9b1u7frF3bnaVykqieEvTKfqnCYL2u4g1CLiQ4Zb8hkkTL9tnGmdMOeqIkUcHZ0zsspzvHOUXJTlssZTRjqcIsp514HJO9YhVRXALKaCRKQkbMEty3CstONNYzuhq57bbccc+/Pq22226ueWXLLbTTw4bFIoQoGWepZBRJWQFh4yui2+evKOqLp+rLKJ4LKcAtQ7XA0aLCyMRVDDOmuoYcnFEmIrpzmRQNQIJ5HWvOesgzjrK071chBhESdztJ0sMqhdAAyjegdEYPNyA4BCDQtLGRRKQQBQIhXYqGZ65Pu1S7XMxxVXEOWtJGMAARETyDKiMN4tsmFfcvmo+sHuHZrY196169rbT/sHFGNK1cnJrBK2vDu7b0AsBd9VaKrsNHL/KxFHm3Yma/+S365yvTF+abktGk7JSrS++mXLBw76AiuijMPpwzPoP4jNzZjI+R/p7zboMSKiFvZkMx8CDIPGB+K2Ee7XaOqAu8z6cWgazCp76DdzIwsmGw2TiczmQMAafEX0U6lQOAA6jQJAfCsBrSxVH+Hw8fPKIpB7JuhzAB/BwAAAw9tb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAATwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAACOnRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAEAAAAAAAAATwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAE4AAAgAAAEAAAAAAbJtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAVgFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAFdbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAAEhc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAQAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgABAASAgIAUQBUAAAAAARrvAAEa7wWAgIACEggGgICAAQIAAAAgc3R0cwAAAAAAAAACAAAABQAABAAAAAABAAABgAAAABxzdHNjAAAAAAAAAAEAAAABAAAABgAAAAEAAAAsc3RzegAAAAAAAAAAAAAABgAAALkAAAC6AAABIAAAAQAAAAC9AAAAGgAAABRzdGNvAAAAAAAAAAEAAAAsAAAAGnNncGQBAAAAcm9sbAAAAAIAAAAB//8AAAAcc2JncAAAAAByb2xsAAAAAQAAAAYAAAABAAAAYXVkdGEAAABZbWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAsaWxzdAAAACSpdG9vAAAAHGRhdGEAAAABAAAAAExhdmY2MC4zLjEwMA=="),"CLASSIC_BEEP"===e.soundType&&(this.audioFile.src="data:audio/mp4;base64,AAAAHGZ0eXBNNEEgAAAAAE00QSBtcDQyaXNvbQAAAAFtZGF0AAAAAAAACHchIANAaBv6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOCFO4v////////gyh+L1JkJB36Cv0yBUdzB8/8/b8vveozPf+/6eH18deTh9kOp11urWAB5ZsMnhMwSjUCF2MQub4hybjxDhHACGof0XiT9tAHVOwt4NPtPOMFr/ndlTpTNXy79GYIfXP7VkPs99ySHNOFkpNrBS1pClU3rRGHp6Dy9FBIlk4KbBNBLGMJRcWQxuVsVJCSMnGw1FuIUrBN2UJLoEMhurMxpIiyGAweBvyfNJy4FbxqDm3WDjCtzP+3yVmOjxhIBDANLYyeG05LNyCZONEOk/c4hCj3Y2XQkgTI7y/39g0a+MuEoAdbRz4gSgRJnjEGB0TnOB0LtiL0XB9kwz2SwCBB0MvIByUSWTPTsRdCA4PvEmwnNdTnJT5/kPGk4swkTgOOuWJBI0EkxFs5mmNIR6wSFql36Hn03/Lf/uHp+6aTmBY0HJ6P6X1atw/Y8vK72LCWpsq0beo5KkrrrMe1eabaDyfZRPYfgPwH4Dv4CHU663VrAA8wchbBRlqQNnYNlYNhYNigNhoTBsTCcTCgLBEQCX+XfNd+3y+piKntTerXdXpDWRpLzsKmJ4iRM4ig+I6R65pDawx8Ry4cxfeifbsbzK/TxNhafR9y2zFVicy8nCVkU6CkmLckGtqbuYvhruBP0TriLNTU1TNhW6tUCdUSyneDUWAox5RTMlF2W1san5MQRlj7Btm2bZhoqoUUAJlpaat54WVuTyOxqwzNVhPenFR9KBpuA3qrUrT+3ShOUdXAkGXmCrMBxH3XmROdVSkS8cccRMOKTN+7OOEIQrMYIcna5hipAqPHk6VSgy0gGXljIk7GR/O606SyhhgglQIZLyxxOa/ZANmzZkyZMlRoqIt/T6xZHaFLcZ6n8jSgTVoOGsK5MvOlIBBkR+AtM5hvkTG2UzEhEAcsA7bZfCZmmZmZjQnqfn/yRwXzQtlZljFYd93mGppQSDDV/oz8HKkKjElN9Pu/inFmh3IHFyXlrJ/dodwM2EUkLZff1jWCO84wYUa3JB52yTMCETuUgA0BWB+I4hDBR1xoligVhgVhgNhYdBcLCcakAb1XLO/eZ9cUtvv6cNzrRYdMWgFvJySSSSscWFxCQElKcwc2dFkyos8dHfXPYFSt0klO2wUeIUxNKf5LiWYGm57bV0dipv7Qpw9uRRu23CuNIbT7++AuwEnyFWIQP0OpdUhc7u2k2fKW3mTZZxCSb+gVCjOzNf7LzxdBpbZxYwuNkcRlqAMdRMhq+tXmbLkMGGph20w4JvwvBm+x4Wtomh4lz0GGBVGQ96+JUXhvqQQAQPRTHtn+e7SwaCKMXnEEWXevaFVrPVEX7wxIBbbcpAHXj2DQz/vO9M0FHzyQFtegQjjn+fM99jgBE2fLJs/PLcErzrmCGJdVHZ19uxTErdmR6viG6cetew2MYQFm5AIDdPmjeXifvbFcjkYQWUsqKoBQJAKMp50hLtJRCKLCTSw2f7e0wzzhr6eGhjlyOQ8blgBiR0fxcjQYM5rBBM/wzuDe972u2f/mN7u8zVqGu7QADPHgAK4PxW8nJJJJLgISwUZaaRYmFRWRBEIwQKfmepncccZoqHnVy0WnFag51Yt48agPiK7D59zNlI+6YR9SHvnKoiJCcRzsskEGDgIrLQoLEgDguNTzeNvuxVpc8wntXmUlTQMa9WLn/geS8F7ku6Vt+I9yiumFP6I5hbEGeXac1BCB3YA3gNA0rLFPwrWq//VvtF6JGKIOVA12lCnpZl8NJojK1yqVsVKp+ZqbDpq0S1duspmvSvCbwmftOnwnfuNqBCnzZfzZF9fkqxTCqlq8GmR3bGK+1uvEcF55cGGx8BNANhkk1438/rWbXeTtPGfukvhUxZBp0M5447+2SFiQW674ySiGSRHgyqcqU0x39tbz3afnWt5BKNHDYj1lzq6sg8dcJlJnSQDUEba4npgEoAqVUkksoqM0UUO3VXDo3Mablwd2GLAoXjgK071swbuWhQJ2AjGYsBx5dtOMYCyPVh+K3jxqA+IuAhTrc+3KVqmDuVmIO5TZmQbDr4vUV+0338fXQ3665PiYnII1REb2klWhUcwjqi/pMe4yYZaDbo9T1ougUKE5h1jUim2NZxM71zBZVa/tWam6wXlmFVVHGuvL76pT3PUGufbO9YwevQzCvXhsabRuJyJjz8A1Haftmewy4gZ0FWlMIO5BoXB49j0TeIiikaxP9ZHcD9oI6x2H4DajNt5WgRXj6/H72V+gj2bgMDVkIZ36j1Tl+wdO6fvFsz56a5V6t9lS+gyWSOvuQP9bqtYgqWlsthXSFkrTfNqni6jSQ5vN9Fp1iYJODbUg8Sg0lYLbNEM7oqvrggxzq13IfO9hGQ0MQVpMIAR0aSGMFWOZzpJmXG1IcjppdZkINTYN2UvrHmGUrVBHvRuueFPuy2GzQoSnMCvkT3WvaR/LoVYw7Voy47wdJee2Va623AFXWNINOpByyoc9SQU4vPQ6X0PMBLQs6GdMlx+RlC3VoMDOryeFFolCTD8B+A/A4AAANKbW9vdgAAAGxtdmhkAAAAANcxfvfXMX73AACsRAAADbEAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAdx0cmFrAAAAXHRraGQAAAAB1zF+99cxfvcAAAABAAAAAAAADbEAAAAAAAAAAAAAAAABAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAF4bWRpYQAAACBtZGhkAAAAANcxfvfXMX73AACsRAAAGABVxAAAAAAAMWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABDb3JlIE1lZGlhIEF1ZGlvAAAAAR9taW5mAAAAEHNtaGQAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAONzdGJsAAAAZ3N0c2QAAAAAAAAAAQAAAFdtcDRhAAAAAAAAAAEAAAAAAAAAAAACABAAAAAArEQAAAAAADNlc2RzAAAAAAOAgIAiAAAABICAgBRAFQAYAAAB9AAAAfQABYCAgAISEAaAgIABAgAAABhzdHRzAAAAAAAAAAEAAAAGAAAEAAAAABxzdHNjAAAAAAAAAAEAAAABAAAABgAAAAEAAAAsc3RzegAAAAAAAAAAAAAABgAAAP4AAAF+AAABjwAAAYQAAAFeAAABegAAABRzdGNvAAAAAAAAAAEAAAAsAAAA+nVkdGEAAADybWV0YQAAAAAAAAAiaGRscgAAAAAAAAAAbWRpcgAAAAAAAAAAAAAAAAAAAAAAxGlsc3QAAAC8LS0tLQAAABxtZWFuAAAAAGNvbS5hcHBsZS5pVHVuZXMAAAAUbmFtZQAAAABpVHVuU01QQgAAAIRkYXRhAAAAAQAAAAAgMDAwMDAwMDAgMDAwMDA4NDAgMDAwMDAyMEYgMDAwMDAwMDAwMDAwMERCMSAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMA=="))}))}beep(e){e.successBeepEnabled&&this.play()}play(){return G(this,void 0,void 0,(function*(){try{yield this.audioFile.play()}catch(e){}}))}}z.INSTANCE=new z;const Y=z;class q{constructor(){this.DURATION=200}vibrate(e){e.enabled&&navigator.vibrate&&navigator.vibrate(this.DURATION)}}q.INSTANCE=new q;const X=q;var j=n(9476),Q=n(5933),J=n(952),K=n(5215),$=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},ee={measureLayout:$(["layout","layoutId","drag","_layoutResetTransform"]),animation:$(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:$(["exit"]),drag:$(["drag","dragControls"]),focus:$(["whileFocus"]),hover:$(["whileHover","onHoverStart","onHoverEnd"]),tap:$(["whileTap","onTap","onTapStart","onTapCancel"]),pan:$(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:$(["layout","layoutId"])};var te=(0,M.q6)({strict:!1}),ne=Object.keys(ee),ie=ne.length;var re=(0,M.q6)({transformPagePoint:function(e){return e},isStatic:!1}),oe=(0,M.q6)({});var ae=(0,M.q6)(null);function se(e){var t=(0,M.li)(null);return null===t.current&&(t.current=e()),t.current}function ce(){var e=(0,M.NT)(ae);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,i=e.register,r=me();(0,M.vJ)((function(){return i(r)}),[]);return!t&&n?[!1,function(){return null==n?void 0:n(r)}]:[!0]}function le(e){return null===e||e.isPresent}var ue=0,de=function(){return ue++},me=function(){return se(de)},he=(0,M.q6)(null),pe="undefined"!=typeof window,Ee=pe?M.Nf:M.vJ;function Ae(e,t,n,i){var r=(0,M.NT)(re),o=(0,M.NT)(te),a=(0,M.NT)(oe).visualElement,s=(0,M.NT)(ae),c=function(e){var t=e.layoutId,n=(0,M.NT)(he);return n&&void 0!==t?n+"-"+t:t}(n),l=(0,M.li)(void 0);i||(i=o.renderer),!l.current&&i&&(l.current=i(e,{visualState:t,parent:a,props:(0,K.Cl)((0,K.Cl)({},n),{layoutId:c}),presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial)}));var u=l.current;return Ee((function(){u&&(u.setProps((0,K.Cl)((0,K.Cl)((0,K.Cl)({},r),n),{layoutId:c})),u.isPresent=le(s),u.isPresenceRoot=!a||a.presenceId!==(null==s?void 0:s.id),u.syncRender())})),(0,M.vJ)((function(){var e;u&&(null===(e=u.animationState)||void 0===e||e.animateChanges())})),Ee((function(){return function(){return null==u?void 0:u.notifyUnmount()}}),[]),u}function ge(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function fe(e){return Array.isArray(e)}function Ce(e){return"string"==typeof e||fe(e)}function _e(e,t,n,i,r){var o;return void 0===i&&(i={}),void 0===r&&(r={}),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t?t(null!=n?n:e.custom,i,r):t}function De(e,t,n){var i=e.getProps();return _e(i,t,null!=n?n:i.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function ye(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Ce(e.initial)||Ce(e.animate)||Ce(e.whileHover)||Ce(e.whileDrag)||Ce(e.whileTap)||Ce(e.whileFocus)||Ce(e.exit)}function Ie(e){return Boolean(ye(e)||e.variants)}function ve(e,t){var n=function(e,t){if(ye(e)){var n=e.initial,i=e.animate;return{initial:!1===n||Ce(n)?n:void 0,animate:Ce(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,M.NT)(oe)),i=n.initial,r=n.animate;return(0,M.Kr)((function(){return{initial:i,animate:r}}),t?[Ne(i),Ne(r)]:[])}function Ne(e){return Array.isArray(e)?e.join(" "):e}function Se(e){var t=e.preloadedFeatures,n=e.createVisualElement,i=e.useRender,r=e.useVisualState,o=e.Component;return t&&function(e){for(var t in e){var n=e[t];null!==n&&(ee[t].Component=n)}}(t),(0,M.Rf)((function(e,t){var a=(0,M.NT)(re).isStatic,s=null,c=ve(e,a),l=r(e,a);return!a&&pe&&(c.visualElement=Ae(o,l,e,n),s=function(e,t,n){var i=[];if((0,M.NT)(te),!t)return null;for(var r=0;r<ie;r++){var o=ne[r],a=ee[o],s=a.isEnabled,c=a.Component;s(e)&&c&&i.push(M.n(c,(0,K.Cl)({key:o},e,{visualElement:t})))}return i}(e,c.visualElement)),M.n(M.FK,null,M.n(oe.Provider,{value:c},i(o,e,function(e,t,n){return(0,M.hb)((function(i){var r;i&&(null===(r=e.mount)||void 0===r||r.call(e,i)),t&&(i?t.mount(i):t.unmount()),n&&("function"==typeof n?n(i):ge(n)&&(n.current=i))}),[t])}(l,c.visualElement,t),l,a)),s)}))}function be(e){function t(t,n){return void 0===n&&(n={}),Se(e(t,n))}var n=new Map;return new Proxy(t,{get:function(e,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var Me=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Le(e){return"string"==typeof e&&!e.includes("-")&&!!(Me.indexOf(e)>-1||/[A-Z]/.test(e))}var Re={};var Te=["","X","Y","Z"],Oe=["transformPerspective","x","y","z"];function we(e,t){return Oe.indexOf(e)-Oe.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Te.forEach((function(t){return Oe.push(e+t)}))}));var Fe=new Set(Oe);function Be(e){return Fe.has(e)}var Pe=new Set(["originX","originY","originZ"]);function xe(e){return Pe.has(e)}function ke(e,t){var n=t.layout,i=t.layoutId;return Be(e)||xe(e)||(n||void 0!==i)&&(!!Re[e]||"opacity"===e)}var Ve=function(e){return null!==e&&"object"==typeof e&&e.getVelocity},Ue={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Ze(e){return e.startsWith("--")}var We=function(e,t){return t&&"number"==typeof e?t.transform(e):e},He=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},Ge=function(e){return e%1?Number(e.toFixed(5)):e},ze=/(-)?([\d]*\.?[\d])+/g,Ye=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,qe=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Xe(e){return"string"==typeof e}var je=function(e){return{test:function(t){return Xe(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},Qe=je("deg"),Je=je("%"),Ke=je("px"),$e=je("vh"),et=je("vw"),tt=(0,K.Cl)((0,K.Cl)({},Je),{parse:function(e){return Je.parse(e)/100},transform:function(e){return Je.transform(100*e)}}),nt={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},it=(0,K.Cl)((0,K.Cl)({},nt),{transform:He(0,1)}),rt=(0,K.Cl)((0,K.Cl)({},nt),{default:1}),ot=(0,K.Cl)((0,K.Cl)({},nt),{transform:Math.round}),at={borderWidth:Ke,borderTopWidth:Ke,borderRightWidth:Ke,borderBottomWidth:Ke,borderLeftWidth:Ke,borderRadius:Ke,radius:Ke,borderTopLeftRadius:Ke,borderTopRightRadius:Ke,borderBottomRightRadius:Ke,borderBottomLeftRadius:Ke,width:Ke,maxWidth:Ke,height:Ke,maxHeight:Ke,size:Ke,top:Ke,right:Ke,bottom:Ke,left:Ke,padding:Ke,paddingTop:Ke,paddingRight:Ke,paddingBottom:Ke,paddingLeft:Ke,margin:Ke,marginTop:Ke,marginRight:Ke,marginBottom:Ke,marginLeft:Ke,rotate:Qe,rotateX:Qe,rotateY:Qe,rotateZ:Qe,scale:rt,scaleX:rt,scaleY:rt,scaleZ:rt,skew:Qe,skewX:Qe,skewY:Qe,distance:Ke,translateX:Ke,translateY:Ke,translateZ:Ke,x:Ke,y:Ke,z:Ke,perspective:Ke,transformPerspective:Ke,opacity:it,originX:tt,originY:tt,originZ:Ke,zIndex:ot,fillOpacity:it,strokeOpacity:it,numOctaves:ot};function st(e,t,n,i,r,o,a,s){var c,l=e.style,u=e.vars,d=e.transform,m=e.transformKeys,h=e.transformOrigin;m.length=0;var p=!1,E=!1,A=!0;for(var g in t){var f=t[g];if(Ze(g))u[g]=f;else{var C=at[g],_=We(f,C);if(Be(g)){if(p=!0,d[g]=_,m.push(g),!A)continue;f!==(null!==(c=C.default)&&void 0!==c?c:0)&&(A=!1)}else if(xe(g))h[g]=_,E=!0;else if((null==n?void 0:n.isHydrated)&&(null==i?void 0:i.isHydrated)&&Re[g]){var D=Re[g].process(f,i,n),y=Re[g].applyTo;if(y)for(var I=y.length,v=0;v<I;v++)l[y[v]]=D;else l[g]=D}else l[g]=_}}i&&n&&a&&s?(l.transform=a(i.deltaFinal,i.treeScale,p?d:void 0),o&&(l.transform=o(d,l.transform)),l.transformOrigin=s(i)):(p&&(l.transform=function(e,t,n,i){var r=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,c=t.allowTransformNone,l=void 0===c||c,u="";o.sort(we);for(var d=!1,m=o.length,h=0;h<m;h++){var p=o[h];u+=(Ue[p]||p)+"("+r[p]+") ","z"===p&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),i?u=i(r,n?"":u):l&&n&&(u="none"),u}(e,r,A,o)),E&&(l.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,i=e.originY,r=void 0===i?"50%":i,o=e.originZ;return n+" "+r+" "+(void 0===o?0:o)}(h)))}var ct=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function lt(e,t,n){for(var i in t)Ve(t[i])||ke(i,n)||(e[i]=t[i])}function ut(e,t,n){var i={};return lt(i,e.style||{},e),Object.assign(i,function(e,t,n){var i=e.transformTemplate;return(0,M.Kr)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};st(e,t,void 0,void 0,{enableHardwareAcceleration:!n},i);var r=e.vars,o=e.style;return(0,K.Cl)((0,K.Cl)({},r),o)}),[t])}(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function dt(e,t,n){var i={},r=ut(e,t,n);return Boolean(e.drag)&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),i.style=r,i}var mt=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function ht(e){return mt.has(e)}var pt=function(e){return!ht(e)};try{var Et=n(5218).A;pt=function(e){return e.startsWith("on")?!ht(e):Et(e)}}catch(e){}function At(e,t,n){return"string"==typeof e?e:Ke.transform(t+n*e)}var gt=function(e,t){return Ke.transform(e*t)},ft={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ct={offset:"strokeDashoffset",array:"strokeDasharray"};function _t(e,t,n,i,r,o,a,s){var c=t.attrX,l=t.attrY,u=t.originX,d=t.originY,m=t.pathLength,h=t.pathSpacing,p=void 0===h?1:h,E=t.pathOffset,A=void 0===E?0:E;st(e,(0,K.Tt)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,i,r,o,a,s),e.attrs=e.style,e.style={};var g=e.attrs,f=e.style,C=e.dimensions,_=e.totalPathLength;g.transform&&(C&&(f.transform=g.transform),delete g.transform),C&&(void 0!==u||void 0!==d||f.transform)&&(f.transformOrigin=function(e,t,n){return At(t,e.x,e.width)+" "+At(n,e.y,e.height)}(C,void 0!==u?u:.5,void 0!==d?d:.5)),void 0!==c&&(g.x=c),void 0!==l&&(g.y=l),void 0!==_&&void 0!==m&&function(e,t,n,i,r,o){void 0===i&&(i=1),void 0===r&&(r=0),void 0===o&&(o=!0);var a=o?ft:Ct;e[a.offset]=gt(-r,t);var s=gt(n,t),c=gt(i,t);e[a.array]=s+" "+c}(g,_,m,p,A,!1)}var Dt=function(){return(0,K.Cl)((0,K.Cl)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function yt(e,t){var n=(0,M.Kr)((function(){var n=Dt();return _t(n,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),(0,K.Cl)((0,K.Cl)({},n.attrs),{style:(0,K.Cl)({},n.style)})}),[t]);if(e.style){var i={};lt(i,e.style,e),n.style=(0,K.Cl)((0,K.Cl)({},i),n.style)}return n}function It(e){void 0===e&&(e=!1);return function(t,n,i,r,o){var a=r.latestValues,s=(Le(t)?yt:dt)(n,a,o),c=function(e,t,n){var i={};for(var r in e)(pt(r)||!0===n&&ht(r)||!t&&!ht(r))&&(i[r]=e[r]);return i}(n,"string"==typeof t,e),l=(0,K.Cl)((0,K.Cl)((0,K.Cl)({},c),s),{ref:i});return(0,M.n)(t,l)}}var vt=/([a-z])([A-Z])/g,Nt=function(e){return e.replace(vt,"$1-$2").toLowerCase()};function St(e,t){var n=t.style,i=t.vars;for(var r in Object.assign(e.style,n),i)e.style.setProperty(r,i[r])}var bt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function Mt(e,t){for(var n in St(e,t),t.attrs)e.setAttribute(bt.has(n)?n:Nt(n),t.attrs[n])}function Lt(e){var t=e.style,n={};for(var i in t)(Ve(t[i])||ke(i,e))&&(n[i]=t[i]);return n}function Rt(e){var t=Lt(e);for(var n in e){if(Ve(e[n]))t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]}return t}function Tt(e){return"object"==typeof e&&"function"==typeof e.start}var Ot=function(e){return Array.isArray(e)};function wt(e){var t,n=Ve(e)?e.get():e;return t=n,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?n.toValue():n}function Ft(e,t,n,i){var r=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:Pt(t,n,i,r),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var Bt=function(e){return function(t,n){var i=(0,M.NT)(oe),r=(0,M.NT)(ae);return n?Ft(e,t,i,r):se((function(){return Ft(e,t,i,r)}))}};function Pt(e,t,n,i){var r={},o=!1===(null==n?void 0:n.initial),a=i(e);for(var s in a)r[s]=wt(a[s]);var c=e.initial,l=e.animate,u=ye(e),d=Ie(e);t&&d&&!u&&!1!==e.inherit&&(null!=c||(c=t.initial),null!=l||(l=t.animate));var m=o||!1===c?l:c;m&&"boolean"!=typeof m&&!Tt(m)&&(Array.isArray(m)?m:[m]).forEach((function(t){var n=_e(e,t);if(n){var i=n.transitionEnd;n.transition;var o=(0,K.Tt)(n,["transitionEnd","transition"]);for(var a in o)r[a]=o[a];for(var a in i)r[a]=i[a]}}));return r}var xt={useVisualState:Bt({scrapeMotionValuesFromProps:Rt,createRenderState:Dt,onMount:function(e,t,n){var i=n.renderState,r=n.latestValues;try{i.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){i.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(i.totalPathLength=t.getTotalLength()),_t(i,r,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),Mt(t,i)}})};var kt,Vt={useVisualState:Bt({scrapeMotionValuesFromProps:Lt,createRenderState:ct})};function Ut(e,t,n,i){return e.addEventListener(t,n,i),function(){return e.removeEventListener(t,n,i)}}function Zt(e,t,n,i){(0,M.vJ)((function(){var r=e.current;if(n&&r)return Ut(r,t,n,i)}),[e,t,n,i])}function Wt(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Ht(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.Exit="exit"}(kt||(kt={}));var Gt={pageX:0,pageY:0};function zt(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Gt;return{x:n[t+"X"],y:n[t+"Y"]}}function Yt(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function qt(e,t){return void 0===t&&(t="page"),{point:Ht(e)?zt(e,t):Yt(e,t)}}var Xt=function(e,t){void 0===t&&(t=!1);var n,i=function(t){return e(t,qt(t))};return t?(n=i,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):i},jt={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Qt={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Jt(e){return pe&&null===window.onpointerdown?e:pe&&null===window.ontouchstart?Qt[e]:pe&&null===window.onmousedown?jt[e]:e}function Kt(e,t,n,i){return Ut(e,Jt(t),Xt(n,"pointerdown"===t),i)}function $t(e,t,n,i){return Zt(e,Jt(t),n&&Xt(n,"pointerdown"===t),i)}function en(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var tn=en("dragHorizontal"),nn=en("dragVertical");function rn(e){var t=!1;if("y"===e)t=nn();else if("x"===e)t=tn();else{var n=tn(),i=nn();n&&i?t=function(){n(),i()}:(n&&n(),i&&i())}return t}function on(){var e=rn(!0);return!e||(e(),!1)}function an(e,t,n){return function(i,r){var o;Wt(i)&&!on()&&(null==n||n(i,r),null===(o=e.animationState)||void 0===o||o.setActive(kt.Hover,t))}}var sn=function(e,t){return!!t&&(e===t||sn(e,t.parentElement))};function cn(e){return(0,M.vJ)((function(){return function(){return e()}}),[])}var ln=function(e,t){return function(n){return t(e(n))}},un=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(ln)};var dn=function(e){return function(t){return e(t),null}},mn={tap:dn((function(e){var t=e.onTap,n=e.onTapStart,i=e.onTapCancel,r=e.whileTap,o=e.visualElement,a=t||n||i||r,s=(0,M.li)(!1),c=(0,M.li)(null);function l(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function u(){var e;return l(),s.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(kt.Tap,!1),!on()}function d(e,n){u()&&(sn(o.getInstance(),e.target)?null==t||t(e,n):null==i||i(e,n))}function m(e,t){u()&&(null==i||i(e,t))}$t(o,"pointerdown",a?function(e,t){var i;l(),s.current||(s.current=!0,c.current=un(Kt(window,"pointerup",d),Kt(window,"pointercancel",m)),null==n||n(e,t),null===(i=o.animationState)||void 0===i||i.setActive(kt.Tap,!0))}:void 0),cn(l)})),focus:dn((function(e){var t=e.whileFocus,n=e.visualElement;Zt(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(kt.Focus,!0)}:void 0),Zt(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(kt.Focus,!1)}:void 0)})),hover:dn((function(e){var t=e.onHoverStart,n=e.onHoverEnd,i=e.whileHover,r=e.visualElement;$t(r,"pointerenter",t||i?an(r,!0,t):void 0),$t(r,"pointerleave",n||i?an(r,!1,n):void 0)}))};function hn(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}var pn=function(e,t,n){return Math.min(Math.max(n,e),t)},En=.001;function An(e){var t,n,i=e.duration,r=void 0===i?800:i,o=e.bounce,a=void 0===o?.25:o,s=e.velocity,c=void 0===s?0:s,l=e.mass,u=void 0===l?1:l,d=1-a;d=pn(.05,1,d),r=pn(.01,10,r/1e3),d<1?(t=function(e){var t=e*d,n=t*r,i=t-c,o=gn(e,d),a=Math.exp(-n);return En-i/o*a},n=function(e){var n=e*d*r,i=n*c+c,o=Math.pow(d,2)*Math.pow(e,2)*r,a=Math.exp(-n),s=gn(Math.pow(e,2),d);return(-t(e)+En>0?-1:1)*((i-o)*a)/s}):(t=function(e){return Math.exp(-e*r)*((e-c)*r+1)-.001},n=function(e){return Math.exp(-e*r)*(r*r*(c-e))});var m=function(e,t,n){for(var i=n,r=1;r<12;r++)i-=e(i)/t(i);return i}(t,n,5/r);if(r*=1e3,isNaN(m))return{stiffness:100,damping:10,duration:r};var h=Math.pow(m,2)*u;return{stiffness:h,damping:2*d*Math.sqrt(u*h),duration:r}}function gn(e,t){return e*Math.sqrt(1-t*t)}var fn=["duration","bounce"],Cn=["stiffness","damping","mass"];function _n(e,t){return t.some((function(t){return void 0!==e[t]}))}function Dn(e){var t=e.from,n=void 0===t?0:t,i=e.to,r=void 0===i?1:i,o=e.restSpeed,a=void 0===o?2:o,s=e.restDelta,c=(0,K.Tt)(e,["from","to","restSpeed","restDelta"]),l={done:!1,value:n},u=function(e){var t=(0,K.Cl)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!_n(e,Cn)&&_n(e,fn)){var n=An(e);(t=(0,K.Cl)((0,K.Cl)((0,K.Cl)({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(c),d=u.stiffness,m=u.damping,h=u.mass,p=u.velocity,E=u.duration,A=u.isResolvedFromDuration,g=yn,f=yn;function C(){var e=p?-p/1e3:0,t=r-n,i=m/(2*Math.sqrt(d*h)),o=Math.sqrt(d/h)/1e3;if(null!=s||(s=Math.abs(r-n)<=1?.01:.4),i<1){var a=gn(o,i);g=function(n){var s=Math.exp(-i*o*n);return r-s*((e+i*o*t)/a*Math.sin(a*n)+t*Math.cos(a*n))},f=function(n){var r=Math.exp(-i*o*n);return i*o*r*(Math.sin(a*n)*(e+i*o*t)/a+t*Math.cos(a*n))-r*(Math.cos(a*n)*(e+i*o*t)-a*t*Math.sin(a*n))}}else if(1===i)g=function(n){return r-Math.exp(-o*n)*(t+(e+o*t)*n)};else{var c=o*Math.sqrt(i*i-1);g=function(n){var a=Math.exp(-i*o*n),s=Math.min(c*n,300);return r-a*((e+i*o*t)*Math.sinh(s)+c*t*Math.cosh(s))/c}}}return C(),{next:function(e){var t=g(e);if(A)l.done=e>=E;else{var n=1e3*f(e),i=Math.abs(n)<=a,o=Math.abs(r-t)<=s;l.done=i&&o}return l.value=l.done?r:t,l},flipTarget:function(){var e;p=-p,n=(e=[r,n])[0],r=e[1],C()}}}Dn.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var yn=function(e){return 0},In=function(e,t,n){var i=t-e;return 0===i?1:(n-e)/i},vn=function(e,t,n){return-n*e+n*t+e},Nn=function(e,t){return function(n){return Boolean(Xe(n)&&qe.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},Sn=function(e,t,n){return function(i){var r;if(!Xe(i))return i;var o=i.match(ze),a=o[0],s=o[1],c=o[2],l=o[3];return(r={})[e]=parseFloat(a),r[t]=parseFloat(s),r[n]=parseFloat(c),r.alpha=void 0!==l?parseFloat(l):1,r}},bn=He(0,255),Mn=(0,K.Cl)((0,K.Cl)({},nt),{transform:function(e){return Math.round(bn(e))}}),Ln={test:Nn("rgb","red"),parse:Sn("red","green","blue"),transform:function(e){var t=e.red,n=e.green,i=e.blue,r=e.alpha,o=void 0===r?1:r;return"rgba("+Mn.transform(t)+", "+Mn.transform(n)+", "+Mn.transform(i)+", "+Ge(it.transform(o))+")"}};var Rn={test:Nn("#"),parse:function(e){var t="",n="",i="",r="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),i=e.substr(5,2),r=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),i=e.substr(3,1),r=e.substr(4,1),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:Ln.transform},Tn={test:Nn("hsl","hue"),parse:Sn("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,i=e.lightness,r=e.alpha,o=void 0===r?1:r;return"hsla("+Math.round(t)+", "+Je.transform(Ge(n))+", "+Je.transform(Ge(i))+", "+Ge(it.transform(o))+")"}},On=function(e,t,n){var i=e*e,r=t*t;return Math.sqrt(Math.max(0,n*(r-i)+i))},wn=[Rn,Ln,Tn],Fn=function(e){return wn.find((function(t){return t.test(e)}))},Bn=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},Pn=function(e,t){var n=Fn(e),i=Fn(t);Bn(e),Bn(t),n.transform,i.transform;var r=n.parse(e),o=i.parse(t),a=(0,K.Cl)({},r),s=n===Tn?vn:On;return function(e){for(var t in a)"alpha"!==t&&(a[t]=s(r[t],o[t],e));return a.alpha=vn(r.alpha,o.alpha,e),n.transform(a)}},xn={test:function(e){return Ln.test(e)||Rn.test(e)||Tn.test(e)},parse:function(e){return Ln.test(e)?Ln.parse(e):Tn.test(e)?Tn.parse(e):Rn.parse(e)},transform:function(e){return Xe(e)?e:e.hasOwnProperty("red")?Ln.transform(e):Tn.transform(e)}},kn="${c}",Vn="${n}";function Un(e){var t=[],n=0,i=e.match(Ye);i&&(n=i.length,e=e.replace(Ye,kn),t.push.apply(t,i.map(xn.parse)));var r=e.match(ze);return r&&(e=e.replace(ze,Vn),t.push.apply(t,r.map(nt.parse))),{values:t,numColors:n,tokenised:e}}function Zn(e){return Un(e).values}function Wn(e){var t=Un(e),n=t.values,i=t.numColors,r=t.tokenised,o=n.length;return function(e){for(var t=r,n=0;n<o;n++)t=t.replace(n<i?kn:Vn,n<i?xn.transform(e[n]):Ge(e[n]));return t}}var Hn=function(e){return"number"==typeof e?0:e};var Gn={test:function(e){var t,n,i,r;return isNaN(e)&&Xe(e)&&(null!==(n=null===(t=e.match(ze))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(r=null===(i=e.match(Ye))||void 0===i?void 0:i.length)&&void 0!==r?r:0)>0},parse:Zn,createTransformer:Wn,getAnimatableNone:function(e){var t=Zn(e);return Wn(e)(t.map(Hn))}},zn=function(e){return"number"==typeof e};function Yn(e,t){return zn(e)?function(n){return vn(e,t,n)}:xn.test(e)?Pn(e,t):Qn(e,t)}var qn=function(e,t){var n=(0,K.fX)([],e),i=n.length,r=e.map((function(e,n){return Yn(e,t[n])}));return function(e){for(var t=0;t<i;t++)n[t]=r[t](e);return n}},Xn=function(e,t){var n=(0,K.Cl)((0,K.Cl)({},e),t),i={};for(var r in n)void 0!==e[r]&&void 0!==t[r]&&(i[r]=Yn(e[r],t[r]));return function(e){for(var t in i)n[t]=i[t](e);return n}};function jn(e){for(var t=Gn.parse(e),n=t.length,i=0,r=0,o=0,a=0;a<n;a++)i||"number"==typeof t[a]?i++:void 0!==t[a].hue?o++:r++;return{parsed:t,numNumbers:i,numRGB:r,numHSL:o}}var Qn=function(e,t){var n=Gn.createTransformer(t),i=jn(e),r=jn(t);return i.numHSL===r.numHSL&&i.numRGB===r.numRGB&&(i.numNumbers,r.numNumbers),un(qn(i.parsed,r.parsed),n)},Jn=function(e,t){return function(n){return vn(e,t,n)}};function Kn(e,t,n){for(var i,r=[],o=n||("number"==typeof(i=e[0])?Jn:"string"==typeof i?xn.test(i)?Pn:Qn:Array.isArray(i)?qn:"object"==typeof i?Xn:void 0),a=e.length-1,s=0;s<a;s++){var c=o(e[s],e[s+1]);if(t){var l=Array.isArray(t)?t[s]:t;c=un(l,c)}r.push(c)}return r}function $n(e,t,n){var i=void 0===n?{}:n,r=i.clamp,o=void 0===r||r,a=i.ease,s=i.mixer,c=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[c-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var l=Kn(t,a,s),u=2===c?function(e,t){var n=e[0],i=e[1],r=t[0];return function(e){return r(In(n,i,e))}}(e,l):function(e,t){var n=e.length,i=n-1;return function(r){var o=0,a=!1;if(r<=e[0]?a=!0:r>=e[i]&&(o=i-1,a=!0),!a){for(var s=1;s<n&&!(e[s]>r||s===i);s++);o=s-1}var c=In(e[o],e[o+1],r);return t[o](c)}}(e,l);return o?function(t){return u(pn(e[0],e[c-1],t))}:u}var ei,ti=function(e){return function(t){return 1-e(1-t)}},ni=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},ii=function(e){return function(t){return t*t*((e+1)*t-e)}},ri=function(e){return e},oi=(ei=2,function(e){return Math.pow(e,ei)}),ai=ti(oi),si=ni(oi),ci=function(e){return 1-Math.sin(Math.acos(e))},li=ti(ci),ui=ni(li),di=ii(1.525),mi=ti(di),hi=ni(di),pi=function(e){var t=ii(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(1.525),Ei=function(e){if(1===e||0===e)return e;var t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Ai=ti(Ei);function gi(e,t){return e.map((function(){return t||si})).splice(0,e.length-1)}function fi(e){var t=e.from,n=void 0===t?0:t,i=e.to,r=void 0===i?1:i,o=e.ease,a=e.offset,s=e.duration,c=void 0===s?300:s,l={done:!1,value:n},u=Array.isArray(r)?r:[n,r],d=function(e,t){return e.map((function(e){return e*t}))}(a&&a.length===u.length?a:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(u),c);function m(){return $n(d,u,{ease:Array.isArray(o)?o:gi(u,o)})}var h=m();return{next:function(e){return l.value=h(e),l.done=e>=c,l},flipTarget:function(){u.reverse(),h=m()}}}var Ci={keyframes:fi,spring:Dn,decay:function(e){var t=e.velocity,n=void 0===t?0:t,i=e.from,r=void 0===i?0:i,o=e.power,a=void 0===o?.8:o,s=e.timeConstant,c=void 0===s?350:s,l=e.restDelta,u=void 0===l?.5:l,d=e.modifyTarget,m={done:!1,value:r},h=a*n,p=r+h,E=void 0===d?p:d(p);return E!==p&&(h=E-r),{next:function(e){var t=-h*Math.exp(-e/c);return m.done=!(t>u||t<-u),m.value=m.done?E:E+t,m},flipTarget:function(){}}}};var _i=1/60*1e3,Di="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},yi="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(Di())}),_i)};var Ii=!0,vi=!1,Ni=!1,Si={delta:0,timestamp:0},bi=["read","update","preRender","render","postRender"],Mi=bi.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],i=0,r=!1,o=new WeakSet,a={schedule:function(e,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var c=s&&r,l=c?t:n;return a&&o.add(e),-1===l.indexOf(e)&&(l.push(e),c&&r&&(i=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:function(s){var c;if(r=!0,t=(c=[n,t])[0],(n=c[1]).length=0,i=t.length)for(var l=0;l<i;l++){var u=t[l];u(s),o.has(u)&&(a.schedule(u),e())}r=!1}};return a}((function(){return vi=!0})),e}),{}),Li=bi.reduce((function(e,t){var n=Mi[t];return e[t]=function(e,t,i){return void 0===t&&(t=!1),void 0===i&&(i=!1),vi||Fi(),n.schedule(e,t,i)},e}),{}),Ri=bi.reduce((function(e,t){return e[t]=Mi[t].cancel,e}),{}),Ti=bi.reduce((function(e,t){return e[t]=function(){return Mi[t].process(Si)},e}),{}),Oi=function(e){return Mi[e].process(Si)},wi=function(e){vi=!1,Si.delta=Ii?_i:Math.max(Math.min(e-Si.timestamp,40),1),Si.timestamp=e,Ni=!0,bi.forEach(Oi),Ni=!1,vi&&(Ii=!1,yi(wi))},Fi=function(){vi=!0,Ii=!0,Ni||yi(wi)},Bi=function(){return Si};const Pi=Li;function xi(e,t,n){return void 0===n&&(n=0),e-t-n}var ki=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return Pi.update(t,!0)},stop:function(){return Ri.update(t)}}};function Vi(e){var t,n,i,r,o,a=e.from,s=e.autoplay,c=void 0===s||s,l=e.driver,u=void 0===l?ki:l,d=e.elapsed,m=void 0===d?0:d,h=e.repeat,p=void 0===h?0:h,E=e.repeatType,A=void 0===E?"loop":E,g=e.repeatDelay,f=void 0===g?0:g,C=e.onPlay,_=e.onStop,D=e.onComplete,y=e.onRepeat,I=e.onUpdate,v=(0,K.Tt)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),N=v.to,S=0,b=v.duration,M=!1,L=!0,R=function(e){if(Array.isArray(e.to))return fi;if(Ci[e.type])return Ci[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?fi:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Dn:fi}(v);(null===(n=(t=R).needsInterpolation)||void 0===n?void 0:n.call(t,a,N))&&(o=$n([0,100],[a,N],{clamp:!1}),a=0,N=100);var T=R((0,K.Cl)((0,K.Cl)({},v),{from:a,to:N}));function O(){S++,"reverse"===A?m=function(e,t,n,i){return void 0===n&&(n=0),void 0===i&&(i=!0),i?xi(t+-e,t,n):t-(e-t)+n}(m,b,f,L=S%2==0):(m=xi(m,b,f),"mirror"===A&&T.flipTarget()),M=!1,y&&y()}function w(e){if(L||(e=-e),m+=e,!M){var t=T.next(Math.max(0,m));r=t.value,o&&(r=o(r)),M=L?t.done:m<=0}null==I||I(r),M&&(0===S&&(null!=b||(b=m)),S<p?function(e,t,n,i){return i?e>=t+n:e<=-n}(m,b,f,L)&&O():(i.stop(),D&&D()))}return c&&(null==C||C(),(i=u(w)).start()),{stop:function(){null==_||_(),i.stop()}}}function Ui(e,t){return t?e*(1e3/t):0}var Zi=function(e){return 1e3*e},Wi=function(e,t){return 1-3*t+3*e},Hi=function(e,t){return 3*t-6*e},Gi=function(e){return 3*e},zi=function(e,t,n){return((Wi(t,n)*e+Hi(t,n))*e+Gi(t))*e},Yi=function(e,t,n){return 3*Wi(t,n)*e*e+2*Hi(t,n)*e+Gi(t)};var qi=.1;function Xi(e,t,n,i){if(e===t&&n===i)return ri;for(var r=new Float32Array(11),o=0;o<11;++o)r[o]=zi(o*qi,e,n);function a(t){for(var i=0,o=1;10!==o&&r[o]<=t;++o)i+=qi;--o;var a=i+(t-r[o])/(r[o+1]-r[o])*qi,s=Yi(a,e,n);return s>=.001?function(e,t,n,i){for(var r=0;r<8;++r){var o=Yi(t,n,i);if(0===o)return t;t-=(zi(t,n,i)-e)/o}return t}(t,a,e,n):0===s?a:function(e,t,n,i,r){var o,a,s=0;do{(o=zi(a=t+(n-t)/2,i,r)-e)>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,i,i+qi,e,n)}return function(e){return 0===e||1===e?e:zi(a(e),t,i)}}var ji={linear:ri,easeIn:oi,easeInOut:si,easeOut:ai,circIn:ci,circInOut:ui,circOut:li,backIn:di,backInOut:hi,backOut:mi,anticipate:pi,bounceIn:Ai,bounceInOut:function(e){return e<.5?.5*(1-Ei(1-2*e)):.5*Ei(2*e-1)+.5},bounceOut:Ei},Qi=function(e){if(Array.isArray(e)){e.length;var t=(0,K.zs)(e,4);return Xi(t[0],t[1],t[2],t[3])}return"string"==typeof e?ji[e]:e},Ji=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Gn.test(t)||t.startsWith("url(")))},Ki=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},$i=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},er=function(){return{type:"keyframes",ease:"linear",duration:.3}},tr=function(e){return{type:"keyframes",duration:.8,values:e}},nr={x:Ki,y:Ki,z:Ki,rotate:Ki,rotateX:Ki,rotateY:Ki,rotateZ:Ki,scaleX:$i,scaleY:$i,scale:$i,opacity:er,backgroundColor:er,color:er,default:$i},ir=new Set(["brightness","contrast","saturate","opacity"]);function rr(e){var t=e.slice(0,-1).split("("),n=t[0],i=t[1];if("drop-shadow"===n)return e;var r=(i.match(ze)||[])[0];if(!r)return e;var o=i.replace(r,""),a=ir.has(n)?1:0;return r!==i&&(a*=100),n+"("+a+o+")"}var or=/([a-z-]*)\(.*?\)/g,ar=(0,K.Cl)((0,K.Cl)({},Gn),{getAnimatableNone:function(e){var t=e.match(or);return t?t.map(rr).join(" "):e}}),sr=(0,K.Cl)((0,K.Cl)({},at),{color:xn,backgroundColor:xn,outlineColor:xn,fill:xn,stroke:xn,borderColor:xn,borderTopColor:xn,borderRightColor:xn,borderBottomColor:xn,borderLeftColor:xn,filter:ar,WebkitFilter:ar}),cr=function(e){return sr[e]};function lr(e,t){var n,i=cr(e);return i!==ar&&(i=Gn),null===(n=i.getAnimatableNone)||void 0===n?void 0:n.call(i,t)}function ur(e){var t=e.ease,n=e.times,i=e.yoyo,r=e.flip,o=e.loop,a=(0,K.Tt)(e,["ease","times","yoyo","flip","loop"]),s=(0,K.Cl)({},a);return n&&(s.offset=n),a.duration&&(s.duration=Zi(a.duration)),a.repeatDelay&&(s.repeatDelay=Zi(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Qi):Qi(t)),"tween"===a.type&&(s.type="keyframes"),(i||o||r)&&(!0,i?s.repeatType="reverse":o?s.repeatType="loop":r&&(s.repeatType="mirror"),s.repeat=o||i||r||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}function dr(e,t,n){var i,r,o,a;return Array.isArray(t.to)&&(null!==(i=e.duration)&&void 0!==i||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=(0,K.fX)([],(0,K.zs)(e.to)),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=(0,K.Tt)(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=(0,K.Cl)((0,K.Cl)({},e),(r=n,o=t.to,a=Ot(o)?tr:nr[r]||nr.default,(0,K.Cl)({to:o},a(o))))),(0,K.Cl)((0,K.Cl)({},t),ur(e))}function mr(e,t,n,i,r){var o,a=Er(i,e),s=null!==(o=a.from)&&void 0!==o?o:t.get(),c=Ji(e,n);"none"===s&&c&&"string"==typeof n?s=lr(e,n):hr(s)&&"string"==typeof n?s=pr(n):!Array.isArray(n)&&hr(n)&&"string"==typeof s&&(n=pr(s));var l=Ji(e,s);return l&&c&&!1!==a.type?function(){var i={from:s,to:n,velocity:t.getVelocity(),onComplete:r,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function(e){var t,n=e.from,i=void 0===n?0:n,r=e.velocity,o=void 0===r?0:r,a=e.min,s=e.max,c=e.power,l=void 0===c?.8:c,u=e.timeConstant,d=void 0===u?750:u,m=e.bounceStiffness,h=void 0===m?500:m,p=e.bounceDamping,E=void 0===p?10:p,A=e.restDelta,g=void 0===A?1:A,f=e.modifyTarget,C=e.driver,_=e.onUpdate,D=e.onComplete;function y(e){return void 0!==a&&e<a||void 0!==s&&e>s}function I(e){return void 0===a?s:void 0===s||Math.abs(a-e)<Math.abs(s-e)?a:s}function v(e){null==t||t.stop(),t=Vi((0,K.Cl)((0,K.Cl)({},e),{driver:C,onUpdate:function(t){var n;null==_||_(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:D}))}function N(e){v((0,K.Cl)({type:"spring",stiffness:h,damping:E,restDelta:g},e))}if(y(i))N({from:i,velocity:o,to:I(i)});else{var S=l*o+i;"undefined"!=typeof f&&(S=f(S));var b,M,L=I(S),R=L===a?-1:1;v({type:"decay",from:i,velocity:o,timeConstant:d,power:l,restDelta:g,modifyTarget:f,onUpdate:y(S)?function(e){b=M,M=e,o=Ui(e-b,Bi().delta),(1===R&&e>L||-1===R&&e<L)&&N({from:e,to:L,velocity:o})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}((0,K.Cl)((0,K.Cl)({},i),a)):Vi((0,K.Cl)((0,K.Cl)({},dr(a,i,e)),{onUpdate:function(e){var t;i.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;i.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e;return t.set(n),r(),null===(e=null==a?void 0:a.onComplete)||void 0===e||e.call(a),{stop:function(){}}}}function hr(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function pr(e){return"number"==typeof e?0:lr("",e)}function Er(e,t){return e[t]||e.default||e}function Ar(e,t,n,i){return void 0===i&&(i={}),t.start((function(r){var o,a,s=mr(e,t,n,i,r),c=function(e,t){var n;return null!==(n=(Er(e,t)||{}).delay)&&void 0!==n?n:0}(i,e),l=function(){return a=s()};return c?o=setTimeout(l,Zi(c)):l(),function(){clearTimeout(o),null==a||a.stop()}}))}function gr(e,t){-1===e.indexOf(t)&&e.push(t)}function fr(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Cr=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return gr(this.subscriptions,e),function(){return fr(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,n);else for(var r=0;r<i;r++){var o=this.subscriptions[r];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),_r=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Cr,this.velocityUpdateSubscribers=new Cr,this.renderSubscribers=new Cr,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var i=Bi(),r=i.delta,o=i.timestamp;n.lastUpdated!==o&&(n.timeDelta=r,n.lastUpdated=o,Pi.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Pi.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Ui(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Dr(e){return new _r(e)}var yr=function(e){return function(t){return t.test(e)}},Ir=[nt,Ke,Je,Qe,et,$e,{test:function(e){return"auto"===e},parse:function(e){return e}}],vr=function(e){return Ir.find(yr(e))},Nr=(0,K.fX)((0,K.fX)([],(0,K.zs)(Ir)),[xn,Gn]),Sr=function(e){return Nr.find(yr(e))};function br(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dr(n))}function Mr(e,t){var n=De(e,t),i=n?e.makeTargetAnimatable(n,!1):{},r=i.transitionEnd,o=void 0===r?{}:r;i.transition;var a,s=(0,K.Tt)(i,["transitionEnd","transition"]);for(var c in s=(0,K.Cl)((0,K.Cl)({},s),o)){br(e,c,(a=s[c],Ot(a)?a[a.length-1]||0:a))}}function Lr(e,t){if(t)return(t[e]||t.default||t).from}function Rr(e,t,n){var i;void 0===n&&(n={});var r=De(e,t,n.custom),o=(r||{}).transition,a=void 0===o?e.getDefaultTransition()||{}:o;n.transitionOverride&&(a=n.transitionOverride);var s=r?function(){return Tr(e,r,n)}:function(){return Promise.resolve()},c=(null===(i=e.variantChildren)||void 0===i?void 0:i.size)?function(i){void 0===i&&(i=0);var r=a.delayChildren,o=void 0===r?0:r,s=a.staggerChildren,c=a.staggerDirection;return function(e,t,n,i,r,o){void 0===n&&(n=0);void 0===i&&(i=0);void 0===r&&(r=1);var a=[],s=(e.variantChildren.size-1)*i,c=1===r?function(e){return void 0===e&&(e=0),e*i}:function(e){return void 0===e&&(e=0),s-e*i};return Array.from(e.variantChildren).sort(Or).forEach((function(e,i){a.push(Rr(e,t,(0,K.Cl)((0,K.Cl)({},o),{delay:n+c(i)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(a)}(e,t,o+i,s,c,n)}:function(){return Promise.resolve()},l=a.when;if(l){var u=(0,K.zs)("beforeChildren"===l?[s,c]:[c,s],2),d=u[0],m=u[1];return d().then(m)}return Promise.all([s(),c(n.delay)])}function Tr(e,t,n){var i,r=void 0===n?{}:n,o=r.delay,a=void 0===o?0:o,s=r.transitionOverride,c=r.type,l=e.makeTargetAnimatable(t),u=l.transition,d=void 0===u?e.getDefaultTransition():u,m=l.transitionEnd,h=(0,K.Tt)(l,["transition","transitionEnd"]);s&&(d=s);var p=[],E=c&&(null===(i=e.animationState)||void 0===i?void 0:i.getState()[c]);for(var A in h){var g=e.getValue(A),f=h[A];if(!(!g||void 0===f||E&&wr(E,A))){var C=Ar(A,g,f,(0,K.Cl)({delay:a},d));p.push(C)}}return Promise.all(p).then((function(){m&&Mr(e,m)}))}function Or(e,t){return e.sortNodePosition(t)}function wr(e,t){var n=e.protectedKeys,i=e.needsAnimating,r=n.hasOwnProperty(t)&&!0!==i[t];return i[t]=!1,r}var Fr=[kt.Animate,kt.Hover,kt.Tap,kt.Drag,kt.Focus,kt.Exit],Br=(0,K.fX)([],(0,K.zs)(Fr)).reverse(),Pr=Fr.length;function xr(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,i=t.options;return function(e,t,n){var i;if(void 0===n&&(n={}),e.notifyAnimationStart(),Array.isArray(t)){var r=t.map((function(t){return Rr(e,t,n)}));i=Promise.all(r)}else if("string"==typeof t)i=Rr(e,t,n);else{var o="function"==typeof t?De(e,t,n.custom):t;i=Tr(e,o,n)}return i.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,i)})))}}function kr(e){var t,n=xr(e),i=((t={})[kt.Animate]=Vr(!0),t[kt.Hover]=Vr(),t[kt.Tap]=Vr(),t[kt.Drag]=Vr(),t[kt.Focus]=Vr(),t[kt.Exit]=Vr(),t),r={},o=!0,a=function(t,n){var i=De(e,n);if(i){i.transition;var r=i.transitionEnd,o=(0,K.Tt)(i,["transition","transitionEnd"]);t=(0,K.Cl)((0,K.Cl)((0,K.Cl)({},t),o),r)}return t};function s(t,s){for(var c,l=e.getProps(),u=e.getVariantContext(!0)||{},d=[],m=new Set,h={},p=1/0,E=function(n){var r=Br[n],E=i[r],A=null!==(c=l[r])&&void 0!==c?c:u[r],g=Ce(A),f=r===s?E.isActive:null;!1===f&&(p=n);var C=A===u[r]&&A!==l[r]&&g;if(C&&o&&e.manuallyAnimateOnMount&&(C=!1),E.protectedKeys=(0,K.Cl)({},h),!E.isActive&&null===f||!A&&!E.prevProp||Tt(A)||"boolean"==typeof A)return"continue";var _=function(e,t){if("string"==typeof t)return t!==e;if(fe(t))return!hn(t,e);return!1}(E.prevProp,A)||r===s&&E.isActive&&!C&&g||n>p&&g,D=Array.isArray(A)?A:[A],y=D.reduce(a,{});!1===f&&(y={});var I=E.prevResolvedValues,v=void 0===I?{}:I,N=(0,K.Cl)((0,K.Cl)({},v),y),S=function(e){_=!0,m.delete(e),E.needsAnimating[e]=!0};for(var b in N){var M=y[b],L=v[b];h.hasOwnProperty(b)||(M!==L?Ot(M)&&Ot(L)?hn(M,L)?E.protectedKeys[b]=!0:S(b):void 0!==M?S(b):m.add(b):void 0!==M&&m.has(b)?S(b):E.protectedKeys[b]=!0)}E.prevProp=A,E.prevResolvedValues=y,E.isActive&&(h=(0,K.Cl)((0,K.Cl)({},h),y)),o&&e.blockInitialAnimation&&(_=!1),_&&!C&&d.push.apply(d,(0,K.fX)([],(0,K.zs)(D.map((function(e){return{animation:e,options:(0,K.Cl)({type:r},t)}})))))},A=0;A<Pr;A++)E(A);if(r=(0,K.Cl)({},h),m.size){var g={};m.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(g[t]=n)})),d.push({animation:g})}var f=Boolean(d.length);return o&&!1===l.initial&&!e.manuallyAnimateOnMount&&(f=!1),o=!1,f?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:s,setActive:function(t,n,r){var o;return i[t].isActive===n?Promise.resolve():(null===(o=e.variantChildren)||void 0===o||o.forEach((function(e){var i;return null===(i=e.animationState)||void 0===i?void 0:i.setActive(t,n)})),i[t].isActive=n,s(r,t))},setAnimateFunction:function(t){n=t(e)},getState:function(){return i}}}function Vr(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Ur={animation:dn((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=kr(t)),Tt(n)&&(0,M.vJ)((function(){return n.subscribe(t)}),[n])})),exit:dn((function(e){var t=e.custom,n=e.visualElement,i=(0,K.zs)(ce(),2),r=i[0],o=i[1],a=(0,M.NT)(ae);(0,M.vJ)((function(){var e,i,s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(kt.Exit,!r,{custom:null!==(i=null==a?void 0:a.custom)&&void 0!==i?i:t});!r&&(null==s||s.then(o))}),[r])}))},Zr=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Wr=function(e){return Zr(e)&&e.hasOwnProperty("z")},Hr=function(e,t){return Math.abs(e-t)};function Gr(e,t){if(zn(e)&&zn(t))return Hr(e,t);if(Zr(e)&&Zr(t)){var n=Hr(e.x,t.x),i=Hr(e.y,t.y),r=Wr(e)&&Wr(t)?Hr(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(r,2))}}var zr=function(){function e(e,t,n){var i=this,r=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var e=Xr(i.lastMoveEventInfo,i.history),t=null!==i.startEvent,n=Gr(e.offset,{x:0,y:0})>=3;if(t||n){var r=e.point,o=Bi().timestamp;i.history.push((0,K.Cl)((0,K.Cl)({},r),{timestamp:o}));var a=i.handlers,s=a.onStart,c=a.onMove;t||(s&&s(i.lastMoveEvent,e),i.startEvent=i.lastMoveEvent),c&&c(i.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){i.lastMoveEvent=e,i.lastMoveEventInfo=Yr(t,i.transformPagePoint),Wt(e)&&0===e.buttons?i.handlePointerUp(e,t):Pi.update(i.updatePoint,!0)},this.handlePointerUp=function(e,t){i.end();var n=i.handlers,r=n.onEnd,o=n.onSessionEnd,a=Xr(Yr(t,i.transformPagePoint),i.history);i.startEvent&&r&&r(e,a),o&&o(e,a)},!(Ht(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=r;var o=Yr(qt(e),this.transformPagePoint),a=o.point,s=Bi().timestamp;this.history=[(0,K.Cl)((0,K.Cl)({},a),{timestamp:s})];var c=t.onSessionStart;c&&c(e,Xr(o,this.history)),this.removeListeners=un(Kt(window,"pointermove",this.handlePointerMove),Kt(window,"pointerup",this.handlePointerUp),Kt(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Ri.update(this.updatePoint)},e}();function Yr(e,t){return t?{point:t(e.point)}:e}function qr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xr(e,t){var n=e.point;return{point:n,delta:qr(n,Qr(t)),offset:qr(n,jr(t)),velocity:Jr(t,.1)}}function jr(e){return e[0]}function Qr(e){return e[e.length-1]}function Jr(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,i=null,r=Qr(e);n>=0&&(i=e[n],!(r.timestamp-i.timestamp>Zi(t)));)n--;if(!i)return{x:0,y:0};var o=(r.timestamp-i.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Kr(e){return e}function $r(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}var eo={translate:0,scale:1,origin:0,originPoint:0};function to(){return{x:(0,K.Cl)({},eo),y:(0,K.Cl)({},eo)}}function no(e){return[e("x"),e("y")]}function io(e,t,n){var i=t.min,r=t.max;return void 0!==i&&e<i?e=n?vn(i,e,n.min):Math.max(e,i):void 0!==r&&e>r&&(e=n?vn(r,e,n.max):Math.min(e,r)),e}function ro(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function oo(e,t){var n,i=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&(i=(n=(0,K.zs)([r,i],2))[0],r=n[1]),{min:e.min+i,max:e.min+r}}function ao(e,t,n){return{min:so(e,t),max:so(e,n)}}function so(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function co(e,t){return $r(function(e,t){var n=e.top,i=e.left,r=e.bottom,o=e.right;void 0===t&&(t=Kr);var a=t({x:i,y:n}),s=t({x:o,y:r});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}function lo(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Gr(e,t)<n}function uo(e){return e.max-e.min}function mo(e,t){var n=.5,i=uo(e),r=uo(t);return r>i?n=In(t.min,t.max-i,e.min):i>r&&(n=In(e.min,e.max-r,t.min)),pn(0,1,n)}function ho(e,t,n,i){void 0===i&&(i=.5),e.origin=i,e.originPoint=vn(t.min,t.max,e.origin),e.scale=uo(n)/uo(t),lo(e.scale,1,1e-4)&&(e.scale=1),e.translate=vn(n.min,n.max,e.origin)-e.originPoint,lo(e.translate)&&(e.translate=0)}function po(e,t,n,i){ho(e.x,t.x,n.x,Eo(i.originX)),ho(e.y,t.y,n.y,Eo(i.originY))}function Eo(e){return"number"==typeof e?e:.5}function Ao(e,t,n){e.min=n.min+t.min,e.max=e.min+uo(t)}var go=function(e,t){return e.depth-t.depth};function fo(e){return e.projection.isEnabled||e.shouldResetTransform()}function Co(e,t){void 0===t&&(t=[]);var n=e.parent;return n&&Co(n,t),fo(e)&&t.push(e),t}function _o(e){if(!e.shouldResetTransform()){var t,n=e.getLayoutState();e.notifyBeforeLayoutMeasure(n.layout),n.isHydrated=!0,n.layout=e.measureViewportBox(),n.layoutCorrected=(t=n.layout,{x:(0,K.Cl)({},t.x),y:(0,K.Cl)({},t.y)}),e.notifyLayoutMeasure(n.layout,e.prevViewportBox||n.layout),Pi.update((function(){return e.rebaseProjectionTarget()}))}}function Do(e,t){return{min:t.min-e.min,max:t.max-e.min}}function yo(e,t){return{x:Do(e.x,t.x),y:Do(e.y,t.y)}}function Io(e,t){var n=e.getLayoutId(),i=t.getLayoutId();return n!==i||void 0===i&&e!==t}function vo(e){var t=e.getProps(),n=t.drag,i=t._dragX;return n&&!i}function No(e,t){e.min=t.min,e.max=t.max}function So(e,t,n){return n+t*(e-n)}function bo(e,t,n,i,r){return void 0!==r&&(e=So(e,r,i)),So(e,n,i)+t}function Mo(e,t,n,i,r){void 0===t&&(t=0),void 0===n&&(n=1),e.min=bo(e.min,t,n,i,r),e.max=bo(e.max,t,n,i,r)}function Lo(e,t){var n=t.x,i=t.y;Mo(e.x,n.translate,n.scale,n.originPoint),Mo(e.y,i.translate,i.scale,i.originPoint)}function Ro(e,t,n,i){var r=(0,K.zs)(i,3),o=r[0],a=r[1],s=r[2];e.min=t.min,e.max=t.max;var c=void 0!==n[s]?n[s]:.5,l=vn(t.min,t.max,c);Mo(e,n[o],n[a],l,n.scale)}var To=["x","scaleX","originX"],Oo=["y","scaleY","originY"];function wo(e,t,n){Ro(e.x,t.x,n,To),Ro(e.y,t.y,n,Oo)}function Fo(e,t,n,i,r){return e=So(e-=t,1/n,i),void 0!==r&&(e=So(e,1/r,i)),e}function Bo(e,t,n){var i=(0,K.zs)(n,3),r=i[0],o=i[1],a=i[2];!function(e,t,n,i,r){void 0===t&&(t=0),void 0===n&&(n=1),void 0===i&&(i=.5);var o=vn(e.min,e.max,i)-t;e.min=Fo(e.min,t,n,o,r),e.max=Fo(e.max,t,n,o,r)}(e,t[r],t[o],t[a],t.scale)}function Po(e,t){Bo(e.x,t,To),Bo(e.y,t,Oo)}var xo=new Set;function ko(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function Vo(e){return xo.add(e),function(){return xo.delete(e)}}function Uo(){if(xo.size){var e=0,t=[[]],n=[],i=function(n){return ko(t,n,e)},r=function(t){ko(n,t,e),e++};xo.forEach((function(t){t(i,r),e=0})),xo.clear();for(var o=n.length,a=0;a<=o;a++)t[a]&&t[a].forEach(Wo),n[a]&&n[a].forEach(Wo)}}var Zo,Wo=function(e){return e()},Ho=new WeakMap,Go=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),Ho.set(t,this)}return e.prototype.start=function(e,t){var n=this,i=void 0===t?{}:t,r=i.snapToCursor,o=void 0!==r&&r,a=i.cursorProgress,s=this.props.transformPagePoint;this.panSession=new zr(e,{onSessionStart:function(e){var t;n.stopMotion();var i=function(e){return qt(e,"client")}(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=Vo((function(e,t){var r=Co(n.visualElement),s=function(e){var t=[],n=function(e){fo(e)&&t.push(e),e.children.forEach(n)};return e.children.forEach(n),t.sort(go)}(n.visualElement),c=(0,K.fX)((0,K.fX)([],(0,K.zs)(r)),(0,K.zs)(s)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t((function(){c.forEach((function(e){return e.resetTransform()}))})),e((function(){_o(n.visualElement),s.forEach(_o)})),t((function(){c.forEach((function(e){return e.restoreTransform()})),o&&(l=n.snapToCursor(i))})),e((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;no((function(t){if(!l){var r=e.target[t],o=r.min,s=r.max;n.cursorProgress[t]=a?a[t]:In(o,s,i[t])}var c=n.getAxisMotionValue(t);c&&(n.originPoint[t]=c.get())}))})),t((function(){Ti.update(),Ti.preRender(),Ti.render(),Ti.postRender()})),e((function(){return n.resolveDragConstraints()}))}))},onStart:function(e,t){var i,r,o,a=n.props,s=a.drag,c=a.dragPropagation;(!s||c||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=rn(s),n.openGlobalLock))&&(Uo(),n.isDragging=!0,n.currentDirection=null,null===(r=(i=n.props).onDragStart)||void 0===r||r.call(i,e,t),null===(o=n.visualElement.animationState)||void 0===o||o.setActive(kt.Drag,!0))},onMove:function(e,t){var i,r,o,a,s=n.props,c=s.dragPropagation,l=s.dragDirectionLock;if(c||n.openGlobalLock){var u=t.offset;if(l&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(u),void(null!==n.currentDirection&&(null===(r=(i=n.props).onDirectionLock)||void 0===r||r.call(i,n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),null===(a=(o=n.props).onDrag)||void 0===a||a.call(o,e,t),Zo=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:s})},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,n=t.dragConstraints,i=t.dragElastic,r=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(ge(n)?this.resolveRefConstraints(r,n):function(e,t){var n=t.top,i=t.left,r=t.bottom,o=t.right;return{x:ro(e.x,i,o),y:ro(e.y,n,r)}}(r,n)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:ao(e,"left","right"),y:ao(e,"top","bottom")}}(i),this.constraints&&!this.hasMutatedConstraints&&no((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,i=n.onMeasureDragConstraints,r=n.transformPagePoint,o=t.current;this.constraintsBox=co(o,r);var a=function(e,t){return{x:oo(e.x,t.x),y:oo(e.y,t.y)}}(e,this.constraintsBox);if(i){var s=i(function(e){var t=e.x,n=e.y;return{top:n.min,bottom:n.max,left:t.min,right:t.max}}(a));this.hasMutatedConstraints=!!s,s&&(a=$r(s))}return a},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(kt.Drag,!1)},e.prototype.stop=function(e,t){var n,i,r;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var o=this.isDragging;if(this.cancelDrag(),o){var a=t.velocity;this.animateDragEnd(a),null===(r=(i=this.props).onDragEnd)||void 0===r||r.call(i,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return no((function(n){if(zo(n,t.props.drag,t.currentDirection)){var i=t.getAxisMotionValue(n);if(!i)return t.cursorProgress[n]=.5,!0;var r=t.visualElement.getLayoutState().layout,o=r[n].max-r[n].min,a=r[n].min+o/2,s=e[n]-a;t.originPoint[n]=e[n],i.set(s)}})).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(zo(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var i=this.originPoint[e]+t[e],r=this.constraints?io(i,this.constraints[e],this.elastic[e]):i;n.set(r)}},e.prototype.updateVisualElementAxis=function(e,t){var n,i=this.visualElement.getLayoutState().layout[e],r=i.max-i.min,o=this.cursorProgress[e],a=function(e,t,n,i,r){var o=e-t*n;return i?io(o,i,r):o}(t[e],r,o,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,a,a+r)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,i=e.dragDirectionLock,r=void 0!==i&&i,o=e.dragPropagation,a=void 0!==o&&o,s=e.dragConstraints,c=void 0!==s&&s,l=e.dragElastic,u=void 0===l?.35:l,d=e.dragMomentum,m=void 0===d||d,h=(0,K.Tt)(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,K.Cl)({drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:c,dragElastic:u,dragMomentum:m},h)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,i=t.layoutId,r="_drag"+e.toUpperCase();return this.props[r]?this.props[r]:n||void 0!==i?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,i=n.drag,r=n.dragMomentum,o=n.dragElastic,a=n.dragTransition,s=function(e,t){void 0===t&&(t=!0);var n,i=e.getProjectionParent();return!!i&&(t?Po(n=yo(i.projection.target,e.projection.target),i.getLatestValues()):n=yo(i.getLayoutState().layout,e.getLayoutState().layout),no((function(t){return e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),c=this.constraints||{};if(s&&Object.keys(c).length&&this.isLayoutDrag()){var l=this.visualElement.getProjectionParent();if(l){var u=yo(l.projection.targetFinal,c);no((function(e){var t=u[e],n=t.min,i=t.max;c[e]={min:isNaN(n)?void 0:n,max:isNaN(i)?void 0:i}}))}}var d=no((function(n){var l;if(zo(n,i,t.currentDirection)){var u=null!==(l=null==c?void 0:c[n])&&void 0!==l?l:{},d=o?200:1e6,m=o?40:1e7,h=(0,K.Cl)((0,K.Cl)({type:"inertia",velocity:r?e[n]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10},a),u);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,h):t.visualElement.startLayoutAnimation(n,h,s)}}));return Promise.all(d).then((function(){var e,n;null===(n=(e=t.props).onDragTransitionEnd)||void 0===n||n.call(e)}))},e.prototype.stopMotion=function(){var e=this;no((function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()}))},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var i=n.get();return n.set(i),n.set(i),Ar(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(ge(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var i={x:0,y:0};no((function(t){i[t]=mo(e.visualElement.projection.target[t],e.constraintsBox[t])})),this.updateConstraints((function(){no((function(t){if(zo(t,n,null)){var r=function(e,t,n){var i=e.max-e.min,r=vn(t.min,t.max-i,n);return{min:r,max:r+i}}(e.visualElement.projection.target[t],e.constraintsBox[t],i[t]),o=r.min,a=r.max;e.visualElement.setProjectionTargetAxis(t,o,a)}}))})),setTimeout(Uo,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=Vo((function(n,i){var r=Co(t.visualElement);i((function(){return r.forEach((function(e){return e.resetTransform()}))})),n((function(){return _o(t.visualElement)})),i((function(){return r.forEach((function(e){return e.restoreTransform()}))})),n((function(){t.resolveDragConstraints()})),e&&i(e)}))},e.prototype.mount=function(e){var t=this,n=Kt(e.getInstance(),"pointerdown",(function(e){var n=t.props,i=n.drag,r=n.dragListener;i&&(void 0===r||r)&&t.start(e)})),i=Ut(window,"resize",(function(){t.scalePoint()})),r=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),o=e.prevDragCursor;return o&&this.start(Zo,{cursorProgress:o}),function(){null==n||n(),null==i||i(),null==r||r(),t.cancelDrag()}},e}();function zo(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Yo,qo,Xo={pan:dn((function(e){var t=e.onPan,n=e.onPanStart,i=e.onPanEnd,r=e.onPanSessionStart,o=e.visualElement,a=t||n||i||r,s=(0,M.li)(null),c=(0,M.NT)(re).transformPagePoint,l={onSessionStart:r,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,i&&i(e,t)}};(0,M.vJ)((function(){null!==s.current&&s.current.updateHandlers(l)})),$t(o,"pointerdown",a&&function(e){s.current=new zr(e,l,{transformPagePoint:c})}),cn((function(){return s.current&&s.current.end()}))})),drag:dn((function(e){var t=e.dragControls,n=e.visualElement,i=(0,M.NT)(re).transformPagePoint,r=se((function(){return new Go({visualElement:n})}));r.setProps((0,K.Cl)((0,K.Cl)({},e),{transformPagePoint:i})),(0,M.vJ)((function(){return t&&t.subscribe(r)}),[r]),(0,M.vJ)((function(){return r.mount(n)}),[])}))};function jo(e){return"string"==typeof e&&e.startsWith("var(--")}!function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"}(Yo||(Yo={})),function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"}(qo||(qo={}));var Qo=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Jo(e,t,n){void 0===n&&(n=1);var i=(0,K.zs)(function(e){var t=Qo.exec(e);if(!t)return[,];var n=(0,K.zs)(t,3);return[n[1],n[2]]}(e),2),r=i[0],o=i[1];if(r){var a=window.getComputedStyle(t).getPropertyValue(r);return a?a.trim():jo(o)?Jo(o,t,n+1):o}}function Ko(e,t){return e/(t.max-t.min)*100}var $o="_$css";var ea={process:function(e,t,n){var i=n.target;if("string"==typeof e){if(!Ke.test(e))return e;e=parseFloat(e)}return Ko(e,i.x)+"% "+Ko(e,i.y)+"%"}},ta={borderRadius:(0,K.Cl)((0,K.Cl)({},ea),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ea,borderTopRightRadius:ea,borderBottomLeftRadius:ea,borderBottomRightRadius:ea,boxShadow:{process:function(e,t){var n=t.delta,i=t.treeScale,r=e,o=e.includes("var("),a=[];o&&(e=e.replace(Qo,(function(e){return a.push(e),$o})));var s=Gn.parse(e);if(s.length>5)return r;var c=Gn.createTransformer(e),l="number"!=typeof s[0]?1:0,u=n.x.scale*i.x,d=n.y.scale*i.y;s[0+l]/=u,s[1+l]/=d;var m=vn(u,d,.5);"number"==typeof s[2+l]&&(s[2+l]/=m),"number"==typeof s[3+l]&&(s[3+l]/=m);var h=c(s);if(o){var p=0;h=h.replace($o,(function(){var e=a[p];return p++,e}))}return h}}},na=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},t.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,i){void 0===i&&(i={});var r=i.originBox,o=i.targetBox,a=i.visibilityAction,s=i.shouldStackAnimate,c=i.onComplete,l=i.prevParent,u=(0,K.Tt)(i,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=t.props,m=d.visualElement,h=d.layout;if(!1===s)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===s){s&&(t.isAnimatingTree=!0),n=r||n,e=o||e;var p=!1,E=m.getProjectionParent();if(E){var A=E.prevViewportBox,g=E.getLayoutState().layout;l&&(o&&(g=l.getLayoutState().layout),r&&!Io(l,E)&&l.prevViewportBox&&(A=l.prevViewportBox)),A&&ca(l,r,o)&&(p=!0,n=yo(A,n),e=yo(g,e))}var f=ia(n,e),C=no((function(i){var r,o;if("position"===h){var s=e[i].max-e[i].min;n[i].max=n[i].min+s}if(!m.projection.isTargetLocked)return void 0===a?f?t.animateAxis(i,e[i],n[i],(0,K.Cl)((0,K.Cl)({},u),{isRelative:p})):(null===(o=(r=t.stopAxisAnimation)[i])||void 0===o||o.call(r),m.setProjectionTargetAxis(i,e[i].min,e[i].max,p)):void m.setVisibility(a===qo.Show)}));return m.syncRender(),Promise.all(C).then((function(){t.isAnimatingTree=!1,c&&c(),m.notifyLayoutAnimationComplete()}))}},t}return(0,K.C6)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=Ar,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)Re[t]=e[t]}(ta)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),no((function(t){var n,i;return null===(i=(n=e.stopAxisAnimation)[t])||void 0===i?void 0:i.call(n)}))},t.prototype.animateAxis=function(e,t,n,i){var r,o,a=this,s=void 0===i?{}:i,c=s.transition,l=s.isRelative;if(!this.isAnimating[e]||!aa(t,this.currentAnimationTarget[e])){null===(o=(r=this.stopAxisAnimation)[e])||void 0===o||o.call(r),this.isAnimating[e]=!0;var u=this.props.visualElement,d=this.frameTarget[e],m=u.getProjectionAnimationProgress()[e];m.clearListeners(),m.set(0),m.set(0);var h=function(){var i=m.get()/1e3;!function(e,t,n,i){e.min=vn(t.min,n.min,i),e.max=vn(t.max,n.max,i)}(d,n,t,i),u.setProjectionTargetAxis(e,d.min,d.max,l)};h();var p=m.onChange(h);this.stopAxisAnimation[e]=function(){a.isAnimating[e]=!1,m.stop(),p()},this.currentAnimationTarget[e]=t;var E=c||u.getDefaultTransition()||sa;return Ar("x"===e?"layoutX":"layoutY",m,1e3,E&&Er(E,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(M.uA);function ia(e,t){return!(oa(e)||oa(t)||aa(e.x,t.x)&&aa(e.y,t.y))}var ra={min:0,max:0};function oa(e){return aa(e.x,ra)&&aa(e.y,ra)}function aa(e,t){return e.min===t.min&&e.max===t.max}var sa={duration:.45,ease:[.4,0,.1,1]};function ca(e,t,n){return e||!e&&!(t||n)}var la={layoutReady:function(e){return e.notifyLayoutReady()}};function ua(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?la:t,i=n.layoutReady,r=n.parent;Vo((function(t,n){var o=Array.from(e).sort(go),a=r?Co(r):[];n((function(){(0,K.fX)((0,K.fX)([],(0,K.zs)(a)),(0,K.zs)(o)).forEach((function(e){return e.resetTransform()}))})),t((function(){o.forEach(_o)})),n((function(){a.forEach((function(e){return e.restoreTransform()})),o.forEach(i)})),t((function(){o.forEach((function(e){e.isPresent&&(e.presence=Yo.Present)}))})),n((function(){Ti.preRender(),Ti.render()})),t((function(){Pi.postRender((function(){return o.forEach(da)})),e.clear()}))})),Uo()}}}function da(e){e.prevViewportBox=e.projection.target}var ma=(0,M.q6)(ua()),ha=(0,M.q6)(ua());function pa(e){return!!e.forceUpdate}var Ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,K.C6)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,i=e.visualElement;pa(t)&&t.register(i),pa(n)&&n.register(i),i.onUnmount((function(){pa(t)&&t.remove(i),pa(n)&&n.remove(i)}))},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return pa(t)?t.syncUpdate():(!function(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;pa(e)||e.flush()},t.prototype.render=function(){return null},t}(M.Ay.Component);var Aa={measureLayout:function(e){var t=(0,M.NT)(ma),n=(0,M.NT)(ha);return M.Ay.createElement(Ea,(0,K.Cl)({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=(0,K.zs)(ce(),2)[1];return M.n(na,(0,K.Cl)({},e,{safeToRemove:t}))}};function ga(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:to(),deltaFinal:to(),deltaTransform:""}}var fa=ga();function Ca(e,t,n){var i=e.x,r=e.y,o="translate3d("+i.translate/t.x+"px, "+r.translate/t.y+"px, 0) ";if(n){var a=n.rotate,s=n.rotateX,c=n.rotateY;a&&(o+="rotate("+a+") "),s&&(o+="rotateX("+s+") "),c&&(o+="rotateY("+c+") ")}return o+="scale("+i.scale+", "+r.scale+")",n||o!==Da?o:""}function _a(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var Da=Ca(fa.delta,fa.treeScale,{x:1,y:1}),ya=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function Ia(e,t,n,i){var r,o,a=e.delta,s=e.layout,c=e.layoutCorrected,l=e.treeScale,u=t.target;o=s,No((r=c).x,o.x),No(r.y,o.y),function(e,t,n){var i=n.length;if(i){var r,o;t.x=t.y=1;for(var a=0;a<i;a++)o=(r=n[a]).getLayoutState().delta,t.x*=o.x.scale,t.y*=o.y.scale,Lo(e,o),vo(r)&&wo(e,e,r.getLatestValues())}}(c,l,n),po(a,c,u,i)}var va=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){gr(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){fr(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(go),this.isDirty=!1,this.children.forEach(e)},e}();var Na=function(e){var t=e.treeType,n=void 0===t?"":t,i=e.build,r=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,c=e.readValueFromInstance,l=e.resetTransform,u=e.restoreTransform,d=e.removeValueFromRenderState,m=e.sortNodePosition,h=e.scrapeMotionValuesFromProps;return function(e,t){var p=e.parent,E=e.props,A=e.presenceId,g=e.blockInitialAnimation,f=e.visualState;void 0===t&&(t={});var C,_,D,y,I,v,N=f.latestValues,S=f.renderState,b=function(){var e=ya.map((function(){return new Cr})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){return ya.forEach((function(i){var r;null===(r=t[i])||void 0===r||r.call(t);var o="on"+i,a=e[o];a&&(t[i]=n[o](a))}))}};return e.forEach((function(e,t){n["on"+ya[t]]=function(t){return e.add(t)},n["notify"+ya[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,(0,K.fX)([],(0,K.zs)(t)))}})),n}(),M={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},L=M,R=N,T=ga(),O=!1,w=new Map,F=new Map,B={},P=(0,K.Cl)({},N);function x(){C&&(Y.isProjectionReady()&&(wo(L.targetFinal,L.target,R),po(T.deltaFinal,T.layoutCorrected,L.targetFinal,N)),k(),s(C,S))}function k(){var e=N;if(y&&y.isActive()){var n=y.getCrossfadeState(Y);n&&(e=n)}i(Y,S,e,L,T,t,E)}function V(){b.notifyUpdate(N)}function U(){Y.layoutTree.forEach(ba)}var Z=h(E);for(var W in Z){var H=Z[W];void 0!==N[W]&&Ve(H)&&H.set(N[W],!1)}var G=ye(E),z=Ie(E),Y=(0,K.Cl)((0,K.Cl)({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,path:p?(0,K.fX)((0,K.fX)([],(0,K.zs)(p.path)),[p]):[],layoutTree:p?p.layoutTree:new va,presenceId:A,projection:M,variantChildren:z?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==p?void 0:p.isMounted()),blockInitialAnimation:g,isMounted:function(){return Boolean(C)},mount:function(e){C=Y.current=e,Y.pointTo(Y),z&&p&&!G&&(v=null==p?void 0:p.addVariantChild(Y)),null==p||p.children.add(Y)},unmount:function(){Ri.update(V),Ri.render(x),Ri.preRender(Y.updateLayoutProjection),F.forEach((function(e){return e()})),Y.stopLayoutAnimation(),Y.layoutTree.remove(Y),null==v||v(),null==p||p.children.delete(Y),null==D||D(),b.clearAllListeners()},addVariantChild:function(e){var t,n=Y.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return m&&n===e.treeType?m(Y.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return z?Y:null==p?void 0:p.getClosestVariantNode()},scheduleUpdateLayoutProjection:p?p.scheduleUpdateLayoutProjection:function(){return Pi.preRender(Y.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return E.layoutId},getInstance:function(){return C},getStaticValue:function(e){return N[e]},setStaticValue:function(e,t){return N[e]=t},getLatestValues:function(){return N},setVisibility:function(e){Y.isVisible!==e&&(Y.isVisible=e,Y.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(Y,e,E,t)},addValue:function(e,t){Y.hasValue(e)&&Y.removeValue(e),w.set(e,t),N[e]=t.get(),function(e,t){var n=t.onChange((function(t){N[e]=t,E.onUpdate&&Pi.update(V,!1,!0)})),i=t.onRenderRequest(Y.scheduleRender);F.set(e,(function(){n(),i()}))}(e,t)},removeValue:function(e){var t;w.delete(e),null===(t=F.get(e))||void 0===t||t(),F.delete(e),delete N[e],d(e,S)},hasValue:function(e){return w.has(e)},getValue:function(e,t){var n=w.get(e);return void 0===n&&void 0!==t&&(n=Dr(t),Y.addValue(e,n)),n},forEachValue:function(e){return w.forEach(e)},readValue:function(e){var n;return null!==(n=N[e])&&void 0!==n?n:c(C,e,t)},setBaseTarget:function(e,t){P[e]=t},getBaseTarget:function(e){if(r){var t=r(E,e);if(void 0!==t&&!Ve(t))return t}return P[e]}},b),{build:function(){return k(),S},scheduleRender:function(){Pi.render(x,!1,!0)},syncRender:x,setProps:function(e){E=e,b.updatePropListeners(e),B=function(e,t,n){var i;for(var r in t){var o=t[r],a=n[r];if(Ve(o))e.addValue(r,o);else if(Ve(a))e.addValue(r,Dr(o));else if(a!==o)if(e.hasValue(r)){var s=e.getValue(r);!s.hasAnimated&&s.set(o)}else e.addValue(r,Dr(null!==(i=e.getStaticValue(r))&&void 0!==i?i:o))}for(var r in n)void 0===t[r]&&e.removeValue(r);return t}(Y,h(E),B)},getProps:function(){return E},getVariant:function(e){var t;return null===(t=E.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return E.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==p?void 0:p.getVariantContext();if(!G){var t=(null==p?void 0:p.getVariantContext())||{};return void 0!==E.initial&&(t.initial=E.initial),t}for(var n={},i=0;i<Ra;i++){var r=La[i],o=E[r];(Ce(o)||!1===o)&&(n[r]=o)}return n},enableLayoutProjection:function(){M.isEnabled=!0,Y.layoutTree.add(Y)},lockProjectionTarget:function(){M.isTargetLocked=!0},unlockProjectionTarget:function(){Y.stopLayoutAnimation(),M.isTargetLocked=!1},getLayoutState:function(){return T},setCrossfader:function(e){y=e},isProjectionReady:function(){return M.isEnabled&&M.isHydrated&&T.isHydrated},startLayoutAnimation:function(e,t,n){void 0===n&&(n=!1);var i=Y.getProjectionAnimationProgress()[e],r=n?M.relativeTarget[e]:M.target[e],o=r.min,a=r.max-o;return i.clearListeners(),i.set(o),i.set(o),i.onChange((function(t){Y.setProjectionTargetAxis(e,t,t+a,n)})),Y.animateMotionValue(e,i,0,t)},stopLayoutAnimation:function(){no((function(e){return Y.getProjectionAnimationProgress()[e].stop()}))},measureViewportBox:function(e){void 0===e&&(e=!0);var n=a(C,t);return e||Po(n,N),n},getProjectionAnimationProgress:function(){return I||(I={x:Dr(0),y:Dr(0)}),I},setProjectionTargetAxis:function(e,t,n,i){var r;void 0===i&&(i=!1),i?(M.relativeTarget||(M.relativeTarget={x:{min:0,max:1},y:{min:0,max:1}}),r=M.relativeTarget[e]):(M.relativeTarget=void 0,r=M.target[e]),M.isHydrated=!0,r.min=t,r.max=n,O=!0,b.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=T.layout);var n=Y.getProjectionAnimationProgress(),i=n.x,r=n.y,o=!(M.relativeTarget||M.isTargetLocked||i.isAnimating()||r.isAnimating());(e||o)&&no((function(e){var n=t[e],i=n.min,r=n.max;Y.setProjectionTargetAxis(e,i,r)}))},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var n=yo(t.getLayoutState().layout,e.getLayoutState().layout);no((function(t){e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)}))}else e.rebaseProjectionTarget()}(Y),Y.notifyLayoutUpdate(T.layout,Y.prevViewportBox||T.layout,e)},resetTransform:function(){return l(Y,C,E)},restoreTransform:function(){return u(C,S)},updateLayoutProjection:function(){if(Y.isProjectionReady()){var e=T.delta,t=T.treeScale,n=t.x,i=t.y,r=T.deltaTransform;Ia(T,L,Y.path,N),O&&Y.notifyViewportBoxUpdate(L.target,e),O=!1;var o=Ca(e,t);o===r&&n===t.x&&i===t.y||Y.scheduleRender(),T.deltaTransform=o}},updateTreeLayoutProjection:function(){Y.layoutTree.forEach(Sa),Pi.preRender(U,!1,!0)},getProjectionParent:function(){if(void 0===_){for(var e=!1,t=Y.path.length-1;t>=0;t--){var n=Y.path[t];if(n.projection.isEnabled){e=n;break}}_=e}return _},resolveRelativeTargetBox:function(){var e=Y.getProjectionParent();if(M.relativeTarget&&e&&(function(e,t){Ao(e.target.x,e.relativeTarget.x,t.target.x),Ao(e.target.y,e.relativeTarget.y,t.target.y)}(M,e.projection),vo(e))){var t=M.target;wo(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(E._layoutResetTransform)},pointTo:function(e){L=e.projection,R=e.getLatestValues(),null==D||D(),D=un(e.onSetAxisTarget(Y.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;Y.isPresent?Y.presence=Yo.Present:null===(e=Y.layoutSafeToRemove)||void 0===e||e.call(Y)})))},isPresent:!0,presence:Yo.Entering});return Y}};function Sa(e){e.resolveRelativeTargetBox()}function ba(e){e.updateLayoutProjection()}var Ma,La=(0,K.fX)(["initial"],(0,K.zs)(Fr)),Ra=La.length,Ta=new Set(["width","height","top","left","right","bottom","x","y"]),Oa=function(e){return Ta.has(e)},wa=function(e,t){e.set(t,!1),e.set(t)},Fa=function(e){return e===nt||e===Ke};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Ma||(Ma={}));var Ba=function(e,t){return parseFloat(e.split(", ")[t])},Pa=function(e,t){return function(n,i){var r=i.transform;if("none"===r||!r)return 0;var o=r.match(/^matrix3d\((.+)\)$/);if(o)return Ba(o[1],t);var a=r.match(/^matrix\((.+)\)$/);return a?Ba(a[1],e):0}},xa=new Set(["x","y","z"]),ka=Oe.filter((function(e){return!xa.has(e)}));var Va={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,i=t.top;return parseFloat(i)+(n.max-n.min)},right:function(e,t){var n=e.x,i=t.left;return parseFloat(i)+(n.max-n.min)},x:Pa(4,13),y:Pa(5,14)},Ua=function(e,t,n,i){void 0===n&&(n={}),void 0===i&&(i={}),t=(0,K.Cl)({},t),i=(0,K.Cl)({},i);var r=Object.keys(t).filter(Oa),o=[],a=!1,s=[];if(r.forEach((function(r){var c=e.getValue(r);if(e.hasValue(r)){var l,u=n[r],d=t[r],m=vr(u);if(Ot(d))for(var h=d.length,p=null===d[0]?1:0;p<h;p++)l?vr(d[p]):(l=vr(d[p]))===m||Fa(m)&&Fa(l);else l=vr(d);if(m!==l)if(Fa(m)&&Fa(l)){var E=c.get();"string"==typeof E&&c.set(parseFloat(E)),"string"==typeof d?t[r]=parseFloat(d):Array.isArray(d)&&l===Ke&&(t[r]=d.map(parseFloat))}else(null==m?void 0:m.transform)&&(null==l?void 0:l.transform)&&(0===u||0===d)?0===u?c.set(l.transform(u)):t[r]=m.transform(d):(a||(o=function(e){var t=[];return ka.forEach((function(n){var i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),a=!0),s.push(r),i[r]=void 0!==i[r]?i[r]:t[r],wa(c,d))}})),s.length){var c=function(e,t,n){var i=t.measureViewportBox(),r=t.getInstance(),o=getComputedStyle(r),a=o.display,s={top:o.top,left:o.left,bottom:o.bottom,right:o.right,transform:o.transform};"none"===a&&t.setStaticValue("display",e.display||"block"),t.syncRender();var c=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);wa(r,Va[n](i,s)),e[n]=Va[n](c,o)})),e}(t,e,s);return o.length&&o.forEach((function(t){var n=(0,K.zs)(t,2),i=n[0],r=n[1];e.getValue(i).set(r)})),e.syncRender(),{target:c,transitionEnd:i}}return{target:t,transitionEnd:i}};function Za(e,t,n,i){return function(e){return Object.keys(e).some(Oa)}(t)?Ua(e,t,n,i):{target:t,transitionEnd:i}}var Wa=function(e,t,n,i){var r=function(e,t,n){var i,r=(0,K.Tt)(t,[]),o=e.getInstance();if(!(o instanceof HTMLElement))return{target:r,transitionEnd:n};for(var a in n&&(n=(0,K.Cl)({},n)),e.forEachValue((function(e){var t=e.get();if(jo(t)){var n=Jo(t,o);n&&e.set(n)}})),r){var s=r[a];if(jo(s)){var c=Jo(s,o);c&&(r[a]=c,n&&(null!==(i=n[a])&&void 0!==i||(n[a]=s)))}}return{target:r,transitionEnd:n}}(e,t,i);return Za(e,t=r.target,n,i=r.transitionEnd)};var Ha={treeType:"dom",readValueFromInstance:function(e,t){if(Be(t)){var n=cr(t);return n&&n.default||0}var i,r=(i=e,window.getComputedStyle(i));return(Ze(t)?r.getPropertyValue(t):r[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return co(e,t.transformPagePoint)},resetTransform:function(e,t,n){var i=n.transformTemplate;t.style.transform=i?i({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,i=t.style;delete n[e],delete i[e]},makeTargetAnimatable:function(e,t,n,i){var r=n.transformValues;void 0===i&&(i=!0);var o=t.transition,a=t.transitionEnd,s=(0,K.Tt)(t,["transition","transitionEnd"]),c=function(e,t,n){var i,r,o={};for(var a in e)o[a]=null!==(i=Lr(a,t))&&void 0!==i?i:null===(r=n.getValue(a))||void 0===r?void 0:r.get();return o}(s,o||{},e);if(r&&(a&&(a=r(a)),s&&(s=r(s)),c&&(c=r(c))),i){!function(e,t,n){var i,r,o,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),c=s.length;if(c)for(var l=0;l<c;l++){var u=s[l],d=t[u],m=null;Array.isArray(d)&&(m=d[0]),null===m&&(m=null!==(r=null!==(i=n[u])&&void 0!==i?i:e.readValue(u))&&void 0!==r?r:t[u]),null!=m&&("string"==typeof m&&/^\-?\d*\.?\d+$/.test(m)?m=parseFloat(m):!Sr(m)&&Gn.test(d)&&(m=lr(u,d)),e.addValue(u,Dr(m)),null!==(o=(a=n)[u])&&void 0!==o||(a[u]=m),e.setBaseTarget(u,m))}}(e,s,c);var l=Wa(e,s,c,a);a=l.transitionEnd,s=l.target}return(0,K.Cl)({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:Lt,build:function(e,t,n,i,r,o,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var s=i.isEnabled&&r.isHydrated;st(t,n,i,r,o,a.transformTemplate,s?Ca:void 0,s?_a:void 0)},render:St},Ga=Na(Ha),za=Na((0,K.Cl)((0,K.Cl)({},Ha),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Be(t)?(null===(n=cr(t))||void 0===n?void 0:n.default)||0:(t=bt.has(t)?t:Nt(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Rt,build:function(e,t,n,i,r,o,a){var s=i.isEnabled&&r.isHydrated;_t(t,n,i,r,o,a.transformTemplate,s?Ca:void 0,s?_a:void 0)},render:Mt})),Ya=function(e,t){return Le(e)?za(t,{enableHardwareAcceleration:!1}):Ga(t,{enableHardwareAcceleration:!0})},qa=(0,K.Cl)((0,K.Cl)((0,K.Cl)((0,K.Cl)({},Ur),mn),Xo),Aa),Xa=be((function(e,t){return function(e,t,n,i){var r=t.forwardMotionProps,o=void 0!==r&&r,a=Le(e)?xt:Vt;return(0,K.Cl)((0,K.Cl)({},a),{preloadedFeatures:n,useRender:It(o),createVisualElement:i,Component:e})}(e,t,qa,Ya)}));function ja(e,t){return e.format===t.format&&e.text===t.text}function Qa(e){return e.text+e.format}class Ja{constructor(e){this.highlighted=!1,this.code=e,this.points=[]}}var Ka=n(6302);class $a{static now(){return Date.now()}}function es(e){var t=se((function(){return Dr(e)}));if((0,M.NT)(re).isStatic){var n=(0,K.zs)((0,M.J0)(e),2)[1];(0,M.vJ)((function(){return t.onChange(n)}),[])}return t}var ts=function(e){return function(e){return"object"==typeof e&&e.mix}(e)?e.mix:void 0};function ns(e,t){var n=es(t()),i=function(){return n.set(t())};return i(),function(e,t){(0,M.vJ)((function(){var n=e.map((function(e){return e.onChange(t)}));return function(){return n.forEach((function(e){return e()}))}}))}(e,(function(){return Pi.update(i,!1,!0)})),n}function is(e,t,n,i){var r="function"==typeof t?t:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!Array.isArray(e[0]),i=n?0:-1,r=e[0+i],o=e[1+i],a=e[2+i],s=e[3+i],c=$n(o,a,(0,K.Cl)({mixer:ts(a[0])},s));return n?c(r):c}(t,n,i);return Array.isArray(e)?rs(e,r):rs([e],(function(e){var t=(0,K.zs)(e,1)[0];return r(t)}))}function rs(e,t){var n=se((function(){return[]}));return ns(e,(function(){n.length=0;for(var i=e.length,r=0;r<i;r++)n[r]=e[r].get();return t(n)}))}function os(e,t,n){void 0===n&&(n={});var i=Ve(e)?e:Dr(e);return Ar("",i,t,n),{stop:function(){return i.stop()}}}var as=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class ss extends M.Ay.Component{constructor(e){super(e),this.state={element:e.element}}update(e){this.setState({element:e})}style(e){this.customStyle=e,this.forceUpdate()}render(){var e,t,n,i,r,o,a,s,c;const l=this.state.element,u=this.props.configuration.style;!l.highlighted&&this.props.configuration.automaticSelectionEnabled&&this.props.onClick(l);const d=null!==(t=null===(e=this.customStyle)||void 0===e?void 0:e.fillColor)&&void 0!==t?t:l.highlighted?u.highlightedPolygonFillColor:u.polygonFillColor,m=null!==(i=null===(n=this.customStyle)||void 0===n?void 0:n.strokeColor)&&void 0!==i?i:l.highlighted?u.highlightedPolygonStrokeColor:u.polygonStrokeColor,h=null!==(o=null===(r=this.customStyle)||void 0===r?void 0:r.strokeWidth)&&void 0!==o?o:l.highlighted?u.highlightedPolygonStrokeWidth:u.polygonStrokeWidth,p=null!==(s=null===(a=this.customStyle)||void 0===a?void 0:a.cornerRadius)&&void 0!==s?s:l.highlighted?u.highlightedPolygonCornerRadius:u.polygonCornerRadius,E=null!==(c=this.props.animateToPoints)&&void 0!==c?c:l.points;return M.Ay.createElement(cs,{points:E,onClick:()=>{this.props.onClick&&this.props.onClick(l)},fill:d,stroke:m,strokeWidth:h,cornerRadius:p})}}function cs(e){var{points:t,cornerRadius:n}=e,i=as(e,["points","cornerRadius"]);const r=[t[0].x,t[0].y,t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y],o=r.map(es),a=is(o,(([e,t,i,r,o,a,s,c])=>{const l=[{x:e,y:t},{x:i,y:r},{x:o,y:a},{x:s,y:c}];return Ka.b.toSvgPathStringWithRoundedCorners(l,n)}));return(0,M.vJ)((()=>{const e=[];for(let t=0;t<r.length;t++)e.push(os(o[t],r[t]));return()=>{e.forEach((e=>e.stop()))}}),[t]),M.Ay.createElement(Xa.path,Object.assign({d:a},i))}class ls{constructor(){this.detectedAt=0}update(e,t,n,i,r,o){this.polygon=e,this.polygonRef=t,this.label=n,this.labelRef=i,this.element=r,this.updatedAt=o}}class us extends M.Ay.Component{constructor(e){super(e),this.state={polygonElements:[]}}update(e,t,n,i){const r=[];(class{static keepOnlyCenterMostDuplicate(e,t){const n=new Map;e.forEach((e=>{const t=Qa(e),i=n.get(t);i?i.push(e):n.set(t,[e])})),n.forEach(((t,i)=>{t.length<2?n.delete(i):t.forEach(((t,n)=>{e.splice(e.indexOf(t),1)}))})),n.forEach(((n,i)=>{const r=e=>{let t={x:0,y:0};return e.forEach((e=>{t.x+=e.x,t.y+=e.y})),t.x/=e.length,t.y/=e.length,t},o=t.width/2,a=n.reduce(((e,t)=>{const n=r(e.quad),i=r(t.quad);return Math.abs(o-n.x)<Math.abs(o-i.x)?e:t}));e.push(a)}))}}).keepOnlyCenterMostDuplicate(i,n),i.forEach((i=>{const o=new Ja(i);o.points=void 0===e?Ka.b.scaleListToHtmlElement(i.quad,n,t.video):i.quad.map((t=>{const i=new Ka.b(t.x,t.y);return i.x*=e.width/n.width,i.y*=e.height/n.height,i.y+=e.y,i.x+=e.x,i})),o.points.forEach((e=>{t.state.mirrored&&this.container&&(e.x=this.container.clientWidth-e.x)})),r.push(o)}));const o=[];this.state.polygonElements.forEach((e=>{const t=r.find((t=>ja(t.code,e.element.code)));let n=!1;const i=$a.now();void 0===t?e.updatedAt+1e3<i&&(n=!0):(e.element=t,e.polygon=M.Ay.createElement(ss,{key:Qa(e.element.code),ref:t=>e.polygonRef=t,configuration:this.props.configuration,element:e.element,animateToPoints:t.points,onClick:this.onPolygonClick.bind(this)}),e.label=M.Ay.createElement(this.props.LabelComponent,Object.assign({},this.props.labelComponentConfig,{key:Qa(e.element.code),ref:t=>e.labelRef=t,configuration:this.props.configuration,element:e.element,animateToPoints:t.points,onClick:this.onPolygonClick.bind(this)})),this.props.configuration.automaticSelectionEnabled&&this.props.configuration.countingRepeatDelay>-1&&e.detectedAt>0&&i>this.props.configuration.countingRepeatDelay+e.detectedAt&&(this.props.onPolygonSelected(t.code),e.detectedAt=i),e.updatedAt=i),n||o.push(e)})),r.forEach((e=>{if(void 0===this.state.polygonElements.find((t=>ja(t.element.code,e.code)))){let t,n;const i=new ls,r=M.Ay.createElement(ss,{key:Qa(e.code),ref:i=>{t=i,void 0!==n&&this.props.onBarcodeFound(e.code,t,n)},configuration:this.props.configuration,element:e,onClick:this.onPolygonClick.bind(this)}),a=M.Ay.createElement(this.props.LabelComponent,Object.assign({},this.props.labelComponentConfig,{key:Qa(e.code),ref:i=>{n=i,void 0!==t&&this.props.onBarcodeFound(e.code,t,n)},configuration:this.props.configuration,element:e,onClick:this.onPolygonClick.bind(this)}));i.update(r,t,a,n,e,$a.now()),o.push(i)}})),this.setState({polygonElements:o})}onPolygonClick(e){var t,n,i,r;let o;e.highlighted=!e.highlighted,this.forceUpdate(),this.state.polygonElements.forEach((t=>{var n;const i=t.labelRef,r=t.label.props.element;ja(r.code,e.code)&&(o=t),i&&ja(r.code,e.code)&&(i.update(e),null===(n=t.polygonRef)||void 0===n||n.update(e))})),e.highlighted&&(null===(n=(t=this.props).onPolygonSelected)||void 0===n||n.call(t,e.code),o&&(o.detectedAt=$a.now())),null===(r=(i=this.props).onPolygonClick)||void 0===r||r.call(i,e.code)}render(){var e,t;return M.Ay.createElement("div",{style:Object.assign({width:"100%",height:"100%",position:"absolute"},this.props.style),ref:e=>this.container=e},M.Ay.createElement(Xa.svg,{style:{position:"absolute",maxWidth:"100%",width:"100%",height:"100%"}},null===(e=this.state.polygonElements)||void 0===e?void 0:e.map((e=>e.polygon))),null===(t=this.state.polygonElements)||void 0===t?void 0:t.map((e=>e.label)))}}var ds=n(780);class ms extends M.Ay.Component{render(){if(!this.props.visible)return null;const e=ds.Ay.svg`
3
3
  animation: rotate 2s linear infinite;
4
4
  @keyframes rotate { 100% { transform: rotate(360deg); } }
5
5
  `;return M.Ay.createElement("div",{style:{top:0,left:0,width:"100%",height:"100%",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",zIndex:100}},M.Ay.createElement(e,{width:"101",height:"100",viewBox:"0 0 101 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("circle",{cx:"50.5",cy:"50",r:"50",fill:"#3E3E3E","fill-opacity":"0.35"}),M.Ay.createElement("path",{d:"M90.5153 49.6094C91.715 49.6094 92.6933 50.5827 92.6321 51.7808C92.1218 61.7815 88.0988 71.3096 81.2342 78.6635C73.8743 86.548 63.7963 91.3454 53.036 92.0868C42.2757 92.8282 31.6351 89.4582 23.2634 82.6576C15.455 76.3147 10.1633 67.4283 8.28624 57.5922C8.06135 56.4138 8.89694 55.3155 10.0853 55.1509C11.2737 54.9864 12.3642 55.8183 12.5959 56.9954C14.3176 65.7412 19.0487 73.6367 26.0026 79.2856C33.5201 85.3922 43.0751 88.4183 52.7374 87.7526C62.3998 87.0869 71.4494 82.7789 78.0584 75.699C84.1719 69.1497 87.7754 60.68 88.2814 51.7807C88.3495 50.5829 89.3156 49.6094 90.5153 49.6094Z",fill:"white"}),M.Ay.createElement("path",{d:"M40.7013 23.4514C40.2751 22.2667 40.8885 20.9518 42.1022 20.6166C45.5928 19.6526 49.2351 19.3251 52.8537 19.6567C57.2305 20.0577 61.4662 21.4131 65.2628 23.6273C69.0594 25.8416 72.3246 28.861 74.8286 32.4731C77.3326 36.0851 79.0146 40.2021 79.7562 44.5341C80.4978 48.8662 80.281 53.3082 79.121 57.5475C77.9611 61.7868 75.8862 65.7204 73.0423 69.0714C70.1985 72.4225 66.6548 75.1095 62.6606 76.9436C59.3583 78.4599 55.8145 79.3627 52.202 79.6146C50.9459 79.7022 49.9301 78.6662 49.9379 77.4072C49.9457 76.1481 50.9746 75.1443 52.2293 75.0398C55.1749 74.7942 58.0613 74.0382 60.758 72.8C64.1467 71.244 67.1532 68.9642 69.5659 66.1212C71.9787 63.2781 73.7391 59.9408 74.7232 56.3442C75.7073 52.7475 75.8912 48.9789 75.262 45.3035C74.6328 41.6281 73.2058 38.1353 71.0814 35.0708C68.957 32.0062 66.1867 29.4445 62.9657 27.5659C59.7446 25.6873 56.151 24.5374 52.4377 24.1972C49.4828 23.9265 46.5092 24.1737 43.6497 24.9219C42.4316 25.2406 41.1274 24.6362 40.7013 23.4514Z",fill:"white"}),M.Ay.createElement("path",{d:"M39.9232 61.6554C39.1643 62.5529 37.8105 62.673 37.0094 61.813C35.7171 60.4259 34.6502 58.8388 33.8523 57.1092C32.7564 54.7336 32.1944 52.1468 32.206 49.5307C32.2175 46.9146 32.8022 44.3328 33.9189 41.967C35.0356 39.6011 36.6573 37.5088 38.6697 35.8372C40.6822 34.1656 43.0365 32.9554 45.567 32.2916C48.0975 31.6279 50.7428 31.5268 53.3166 31.9954C55.8904 32.464 58.3303 33.4911 60.4644 35.0042C62.0183 36.1059 63.3827 37.4458 64.5093 38.9707C65.2077 39.916 64.8412 41.2247 63.8197 41.8061C62.7982 42.3875 61.5108 42.0174 60.7778 41.0986C59.9824 40.1015 59.0489 39.2181 58.0027 38.4763C56.3759 37.3229 54.5161 36.5401 52.5541 36.1828C50.5922 35.8256 48.5758 35.9027 46.6469 36.4086C44.7179 36.9146 42.9233 37.8371 41.3893 39.1113C39.8553 40.3855 38.6192 41.9804 37.7679 43.7838C36.9167 45.5872 36.471 47.5552 36.4622 49.5494C36.4534 51.5436 36.8818 53.5154 37.7172 55.3262C38.2544 56.4908 38.9515 57.5705 39.7858 58.5353C40.5545 59.4244 40.6821 60.7579 39.9232 61.6554Z",fill:"white"})))}}class hs extends M.Ay.Component{constructor(e){super(e),this.state={element:e.element}}style(e){this.customStyle=e,this.forceUpdate()}update(e){this.setState({element:e})}formatText(e,t){if("None"!==t)return"Text"===t?e.text:e.format+" ("+e.text+")"}render(){var e,t,n,i,r;const o=this.state.element,a=this.props.configuration.style,s=this.formatText(o.code,this.props.configuration.textFormat),c=Ka.b.width(null!==(e=this.props.animateToPoints)&&void 0!==e?e:o.points);if(!s)return null;if(!o.points)return null;const l=null!==(n=null===(t=this.customStyle)||void 0===t?void 0:t.backgroundColor)&&void 0!==n?n:o.highlighted?a.highlightedTextBackgroundColor:a.textBackgroundColor,u=null!==(r=null===(i=this.customStyle)||void 0===i?void 0:i.textColor)&&void 0!==r?r:o.highlighted?a.highlightedTextColor:a.textColor;return M.Ay.createElement(Xa.div,{ref:e=>this.label=e,onClick:()=>{this.props.onClick&&this.props.onClick(o)},style:{x:Ka.b.lowestX(o.points),y:Ka.b.highestY(o.points)+3,backgroundColor:l,fontSize:12,width:c,overflow:"hidden",color:u,borderRadius:5,position:"absolute",padding:"3px 7px",textAlign:"center",maxHeight:50,lineBreak:"anywhere",lineHeight:"22px",WebkitLineClamp:2,display:"-webkit-box",WebkitBoxOrient:"vertical"},animate:this.props.animateToPoints?{x:Ka.b.lowestX(this.props.animateToPoints),y:Ka.b.highestY(this.props.animateToPoints)+30}:{}},s)}}class ps{constructor(){this.defaultFillColor="rgba(255, 0, 0, 0.3)",this.defaultHighlightedFillColor="rgba(0, 255, 0, 0.3)",this.polygonStrokeColor="rgba(255, 0, 0, 1)",this.polygonFillColor=this.defaultFillColor,this.polygonStrokeWidth=1,this.polygonCornerRadius=0,this.highlightedPolygonStrokeColor="rgba(0, 255, 0, 1)",this.highlightedPolygonFillColor=this.defaultHighlightedFillColor,this.highlightedPolygonStrokeWidth=2,this.highlightedPolygonCornerRadius=0,this.textColor="white",this.textBackgroundColor="rgba(255, 0, 0, 0.9)",this.highlightedTextColor="white",this.highlightedTextBackgroundColor="rgba(0, 255, 0, 0.9)"}}class Es{constructor(){this.visible=!1,this.textFormat="Text",this.automaticSelectionEnabled=!1,this.countingRepeatDelay=-1,this.style=new ps}}class As extends D.W{constructor(){super(_.J.DEFAULT_VIDEO_RESOLUTION_HD),this.enable4kStream=!1,this.captureDelay=1e3,this.overlay=new Es,this.scannerConfiguration=new y.BarcodeScannerConfiguration,this.onBarcodesDetected=function(e){},this.fpsLimit=60}static fromJson(e){var t;const n=new As;return this.mapValues(e,n,["style","videoConstraints","overlay","finder","userGuidance"]),n.enable4kStream&&(n.videoConstraints.height.ideal=_.J.DEFAULT_VIDEO_RESOLUTION_4K.height,n.videoConstraints.width.ideal=_.J.DEFAULT_VIDEO_RESOLUTION_4K.width),this.mapFinderConfiguration(n,e),e.overlay&&(this.mapValues(e.overlay,n.overlay,["style"]),e.overlay.style&&this.mapValues(e.overlay.style,n.overlay.style)),this.mapVideoConstraints(e,n),n.scannerConfiguration=new y.BarcodeScannerConfiguration(null!==(t=e.scannerConfiguration)&&void 0!==t?t:{}),n}}var gs=n(4751);class fs{constructor(e){var t;if(this.barcodes=[],this.originalImageSize=null,this.barcodes=(null===(t=null==e?void 0:e.result)||void 0===t?void 0:t.barcodes)||[],null==e?void 0:e.originalImage){const t=e.originalImage.__image_data;this.originalImageSize=new gs.o(t.width,t.height)}}isEmpty(){return 0===this.barcodes.length}static fromBarcode(e){const t=new fs(void 0);return t.barcodes=[e],t}}var Cs=n(61),_s=n(5189);class Ds{constructor(e){this.fpsLimit=e,this.lastLapTime=0}lap(){if(this.fpsLimit&&this.fpsLimit>0){const e=Date.now()-this.lastLapTime;return e>=1e3/this.fpsLimit?void(this.lastLapTime=Date.now()):new Promise((t=>setTimeout((()=>{this.lastLapTime=Date.now(),t()}),1e3/this.fpsLimit-e)))}}}var ys=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};j.f2;class Is extends _s.Ay{constructor(e){var t;super(e),this.shouldComputeSize=!0,this.barcodeScannerHandle=null,this.barcodes=[],this.detectionRunning=!1,this.updateDimensionsCallback=this.updateDimensions.bind(this),this.desiredRecognitionResolution=void 0,this.desiredRecognitionResolution=this.configuration.desiredRecognitionResolution,this.fpsLimiter=new Ds(this.configuration.fpsLimit),Object.assign(this.state,{isFinderVisible:null===(t=this.configuration.finder.visible)||void 0===t||t,zoom:void 0,action:"manual",image:void 0,bottomHintText:void 0})}get configuration(){return this._configuration||(this._configuration=As.fromJson(this.props.configuration)),this._configuration}get enabled(){return!this.disposed}static create(e){return ys(this,void 0,void 0,(function*(){const t=Cs.Z.findContainerOrThrow(e);return new Promise(((n,i)=>{this.root&&this.root.unmount(),this.root=(0,L.Hr)(t),this.root.render(M.Ay.createElement(Is,{root:this.root,container:t,configuration:e,onSuccess:n,onFailure:i}))}))}))}onSdkReady(){return ys(this,void 0,void 0,(function*(){const e=this.configuration.scannerConfiguration;this.barcodeScannerHandle=yield this.bridge.api.BarcodeScanner.create(e)}))}componentDidMount(){const e=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return ys(this,void 0,void 0,(function*(){e.componentDidMount.call(this),window.addEventListener("resize",this.updateDimensionsCallback)}))}componentDidUpdate(e,t,n){e.configuration!==this.props.configuration&&(this._configuration=As.fromJson(this.props.configuration))}componentWillUnmount(){super.componentWillUnmount(),window.removeEventListener("resize",this.updateDimensionsCallback),this.barcodeScannerHandle&&this.barcodeScannerHandle.destroy()}updateDimensions(){return ys(this,void 0,void 0,(function*(){this.shouldComputeSize=!0,this.forceUpdate()}))}detect(){var e,t,n,i;return ys(this,void 0,void 0,(function*(){let r=!1;try{if(!this.enabled)return;if(this.paused)return;if(this.detectionRunning)return;yield this.fpsLimiter.lap(),this.detectionRunning=!0;const o=yield this.recognizeBarcodes(this.shouldComputeSize);if(this.shouldComputeSize=!1,!o)return;const a=new fs(o);a.isEmpty()?this.configuration._onDetectionFailed&&(null===(e=this.configuration)||void 0===e||e._onDetectionFailed(o.originalImage)):(r=!0,this.configuration.overlay.visible||this.configuration.onBarcodesDetected(a)),null===(t=this.overlay)||void 0===t||t.update(null===(n=this.finder)||void 0===n?void 0:n.holeRect,this.camera,a.originalImageSize,a.barcodes)}catch(e){console.log(e)}finally{this.detectionRunning=!1;const e=()=>requestAnimationFrame((()=>this.detect())),t=(null===(i=this.configuration.overlay)||void 0===i?void 0:i.visible)?0:this.configuration.captureDelay;r&&0!=t?setTimeout(e,t):e()}}))}recognizeBarcodes(e){var t,n,i,r,o,a,s,c;return ys(this,void 0,void 0,(function*(){try{const s=j.Ib.DETECTION_RESOLUTION_4K,c=null!==(t=this.desiredRecognitionResolution)&&void 0!==t?t:s;this.camera.finderFrame=null===(n=this.finder)||void 0===n?void 0:n.holeRect;const l=yield null===(i=this.camera)||void 0===i?void 0:i.createImageData(c,!1);if(!l||!this.barcodeScannerHandle)return;e&&this.forceUpdate();const u=y.Image.fromImageData(l),d=yield null===(r=this.barcodeScannerHandle)||void 0===r?void 0:r.run(u,"CONSUME_IMAGE");if(!this.enabled)return;return null===d||null===d.result?void(null===(a=(o=this.props).onLicenseError)||void 0===a||a.call(o)):(this.camera.reusableImageBuffer=d.originalImage,d)}catch(e){return void(null===(c=(s=this.props.configuration).onError)||void 0===c||c.call(s,e))}}))}setRecognitionResolution(e){this.desiredRecognitionResolution=e}getResolution(){return ys(this,void 0,void 0,(function*(){return new Promise(((e,t)=>{const n=this.camera.videoSize();n.width>0&&n.height>0?e(gs.o.fromJson(n)):this.camera.didLoadVideo=()=>{const t=this.camera.videoSize();e(gs.o.fromJson(t))}}))}))}saveExtractedImageData(){this.camera.saveExtractedData()}setFinderVisible(e){this.setState({isFinderVisible:e})}updateTorch(e){this.camera.videoStream.updateTorch(e)}render(){var e,t,n;return M.Ay.createElement("div",{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"black",minHeight:"100px"}},this.renderSpinner(null===(e=this.configuration)||void 0===e?void 0:e.spinnerColor),M.Ay.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},M.Ay.createElement(Q.A,{configuration:this.configuration,videoConstraints:this.configuration.videoConstraints,mirrored:this.configuration.mirrored,preferredCamera:this.configuration.preferredCamera,zoom:null!==(t=this.state.zoom)&&void 0!==t?t:this.configuration.zoom,onReady:this.onVideoReady,onError:this.onVideoError,ref:e=>{this.camera=e}})),this.state.isFinderVisible&&M.Ay.createElement(J.Ay,{ref:e=>{this.finder=e},guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder}),M.Ay.createElement(ms,{visible:"processing"===this.state.action}),(null===(n=this.configuration.overlay)||void 0===n?void 0:n.visible)&&M.Ay.createElement(us,{ref:e=>{e&&(this.overlay=e)},configuration:this.configuration.overlay,onPolygonSelected:e=>{const t=fs.fromBarcode(e);this.configuration.onBarcodesDetected(t)},onBarcodeFound:(e,t,n)=>{var i;(null===(i=this.configuration.overlay)||void 0===i?void 0:i.onBarcodeFound)&&this.configuration.overlay.onBarcodeFound(e,t,n)},LabelComponent:hs,labelComponentConfig:{}}))}}Is.root=null;const vs=Is;class Ns{static isConvex(e){if(e.length<4)return!0;let t=!1,n=e.length;for(let i=0;i<n;i++){const r=e[(i+2)%n].x-e[(i+1)%n].x,o=e[(i+2)%n].y-e[(i+1)%n].y,a=e[i].x-e[(i+1)%n].x,s=r*(e[i].y-e[(i+1)%n].y)-o*a;if(0==i)t=s>0;else if(t!=s>0)return!1}return!0}static distanceBetweenPoints(e,t){return Math.pow(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2),.5)}static intersection(e,t){const n=e[0],i=Ka.b.subtract(e[1],n),r=t[0],o=Ka.b.subtract(t[1],r);if(0===Ka.b.cross(i,o))return;const a=Ka.b.cross(Ka.b.subtract(r,n),i)/Ka.b.cross(i,o);return Ka.b.add(r,Ka.b.multiply(o,a))}static closest(e,t){let n=t[0],i=Math.abs(e-n);for(let r=0;r<t.length;r++){const o=Math.abs(e-t[r]);o<i&&(i=o,n=t[r])}return n}}class Ss{static setFromScanner(e,t){var n;if(!e.current)return;const i=e.current.getCapabilities();t({hasFacingOptions:(null==i?void 0:i.facingMode)&&i.facingMode.length>0,isTorchAvailable:null!==(n=e.current.getActiveCameraInfo().supportsTorchControl)&&void 0!==n&&n})}}function bs(e,t){return e&&(e.hasFacingOptions&&t.flipCameraButton.visible||e.isTorchAvailable&&t.flashButton.visible)||t.zoomButton.visible}function Ms(e){const t=Ns.closest(e.defaultZoomFactor,e.zoomSteps),n=e.zoomSteps.findIndex((e=>e==t)),[i,r]=(0,M.J0)(e.torchEnabledInitially),[o,a]=(0,M.J0)(n),s=e.zoomSteps[o],[c,l]=(0,M.J0)("BACK"==e.initialCameraModule?"environment":"user"),u=function(e){var t,n;const i=null===(n=null===(t=null==e?void 0:e.camera)||void 0===t?void 0:t.video)||void 0===n?void 0:n.parentElement,r=()=>i?i.getBoundingClientRect():null,[o,a]=(0,M.J0)(r());return(0,M.vJ)((()=>{if(i){const e=()=>a(r());e();const t=new ResizeObserver(e);return t.observe(i),()=>{t.disconnect()}}}),[i]),o}(e.scanner),d=!!u;if((0,M.vJ)((()=>{var t;(null===(t=e.capabilities)||void 0===t?void 0:t.isTorchAvailable)&&d&&e.scanner.setTorchState(i)}),[e.capabilities,d,i]),(0,M.vJ)((()=>{var t;d&&(null===(t=e.scanner)||void 0===t||t.setZoom(s))}),[d,s]),!e.capabilities||!u)return null;if(!bs(e.capabilities,e.config))return null;const m=u.height-e.bottomPadding-48;return M.Ay.createElement(T.Box,{style:{position:"absolute",marginTop:m,marginLeft:u.width/2,transform:"translateX(-50%)",display:"flex",justifyContent:"center",zIndex:1e3}},M.Ay.createElement(H,Object.assign({},e.config.flashButton,{visible:e.capabilities.isTorchAvailable&&e.config.flashButton.visible,icon:i?T.FlashlightOn:T.FlashlightOff,active:i,onClick:()=>r(!i)})),M.Ay.createElement("div",{style:{width:20}}),M.Ay.createElement(H,Object.assign({},e.config.zoomButton,{text:`${s.toFixed(1)}x`,active:o!==n,onClick:()=>a((o+1)%e.zoomSteps.length)})),M.Ay.createElement("div",{style:{width:20}}),M.Ay.createElement(H,Object.assign({},e.config.flipCameraButton,{visible:e.capabilities.hasFacingOptions&&e.config.flipCameraButton.visible,active:"user"===c,icon:T.FlipCameraIos,onClick:()=>{var t;const n="environment"===c?"user":"environment";l(n),null===(t=e.scanner)||void 0===t||t.setCameraDirection(n)}})))}const Ls=(0,M.q6)(null);var Rs=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function Ts(e){const{polygonConfig:t}=e,n=Rs(e,["polygonConfig"]),i=Object.assign(Object.assign({},e.style),{backgroundColor:w.dI.getColorValue(t.fillColor),borderColor:w.dI.getColorValue(t.strokeColor),borderWidth:t.strokeWidth,borderRadius:t.cornerRadius,borderStyle:"solid"});return M.Ay.createElement(T.Box,Object.assign({},n,{style:i}))}class Os{static compute(e,t,n){const i=(Ka.b.lowestY(e)+Ka.b.highestY(e))/2,r={badgeY:i,badgeStyle:{transform:"translateX(-50%) translateY(-50%)"}};return"BELOW"===n?Object.assign(Object.assign({},r),{labelY:Math.max(Ka.b.highestY(e)+Os.LABEL_AND_BADGE_PADDING,t?i-Os.AR_BADGE_SIZE/2-Os.LABEL_AND_BADGE_PADDING:-1/0),labelStyle:{transform:"translateX(-50%)"}}):"ABOVE"===n?Object.assign(Object.assign({},r),{labelY:Math.min(Ka.b.lowestY(e)-Os.LABEL_AND_BADGE_PADDING,t.visible?i+Os.AR_BADGE_SIZE/2+Os.LABEL_AND_BADGE_PADDING:1/0),labelStyle:{transform:"translateX(-50%) translateY(-100%)"}}):"STACKED"===n?{badgeY:i,badgeStyle:{transform:`translateX(-50%) translateY(calc(-100% - ${Os.LABEL_AND_BADGE_PADDING/2}px))`},labelY:i,labelStyle:{transform:t.visible?`translateX(-50%) translateY(${Os.LABEL_AND_BADGE_PADDING/2}px)`:"translateX(-50%) translateY(-50%)"}}:"DISABLED"===n?Object.assign(Object.assign({},r),{labelY:0,labelStyle:{display:"none"}}):void 0}}Os.AR_BADGE_SIZE=48,Os.LABEL_AND_BADGE_PADDING=10;const ws=Os;function Fs(e){return e.style.visible?""==e.content?null:M.Ay.createElement(Xa.div,{style:Object.assign({position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",zIndex:100},e.positionBadge),animate:e.animateToPoints?e.positionBadge:{},transition:e.transition},M.Ay.createElement(Ts,{polygonConfig:Object.assign(Object.assign({},e.style.background),{cornerRadius:ws.AR_BADGE_SIZE/2}),style:Object.assign(Object.assign({},e.verticalPositions.badgeStyle),{width:ws.AR_BADGE_SIZE,height:ws.AR_BADGE_SIZE,color:w.dI.getColorValue(e.style.foregroundColor),display:"flex",justifyContent:"center",alignItems:"center",zIndex:1500,cursor:"pointer"}),onClick:()=>null==e?void 0:e.onClick()},M.Ay.createElement(T.Typography,{fontSize:16,fontWeight:"500",style:{display:"flex",justifyContent:"center",alignItems:"center"}},e.content))):null}var Bs=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class Ps extends hs{constructor(){super(...arguments),this.count=0,this.setCount=e=>{this.count=e,this.forceUpdate()}}styleBadge(e,t){this.customBadgeStyle=e,this.customBadgeContent=t,this.forceUpdate()}badgeContent(){return this.customBadgeContent?this.customBadgeContent:0===this.count?"":"x"+this.count}render(){var e,t;let{barcodeItemConfiguration:n,barcodeItemInfoPosition:i,counterBadge:r}=this.props;const o=n,a=this.state.element,s=null!==(e=this.props.animateToPoints)&&void 0!==e?e:a.points,c=a.code,l=a.highlighted,u=(Ka.b.lowestX(s)+Ka.b.highestX(s))/2;void 0===i&&(i="BELOW");const d=ws.compute(s,r,i),m=void 0===o||!1===o.titleDeselected.visible&&!1===o.subtitleDeselected.visible,h={x:u,y:Math.round(d.labelY)},p={x:u,y:Math.round(d.badgeY)},E={duration:.25,easing:"linear"};return M.Ay.createElement(M.Ay.Fragment,null,o&&M.Ay.createElement(Xa.div,{ref:e=>this.label=e,style:Object.assign(Object.assign({},h),{position:"absolute",width:"100%",zIndex:100}),animate:this.props.animateToPoints?h:{},transition:E},M.Ay.createElement(Ts,{sx:Object.assign({p:1,maxWidth:232,cursor:"pointer",display:m?"inline-block":"block",zIndex:1500},d.labelStyle),polygonConfig:l?o.backgroundSelected:o.backgroundDeselected,"data-sb-ar-barcode-info":"1",onClick:()=>{var e;return null===(e=this.props)||void 0===e?void 0:e.onClick(a)}},M.Ay.createElement(xs,{barcode:c,barcodeImageVisible:o.imageVisible,maxNumberOfTitleLines:1,maxNumberOfSubtitleLines:1,imageSize:42,displayRightArrow:!0,barcodeTitle:l?o.titleSelected:o.titleDeselected,barcodeSubtitle:l?o.subtitleSelected:o.subtitleDeselected}))),M.Ay.createElement(Fs,{onClick:()=>{var e;return null===(e=this.props)||void 0===e?void 0:e.onClick(a)},style:null!==(t=this.customBadgeStyle)&&void 0!==t?t:r,positionBadge:p,content:this.badgeContent(),verticalPositions:d,transition:E,animateToPoints:this.props.animateToPoints}))}}function xs(e){var{barcode:t}=e,n=Bs(e,["barcode"]);const i=(0,M.NT)(Ls).useBarcodeMappedData(t);return M.Ay.createElement(x,Object.assign({barcodeMappedData:i},n))}var ks=n(4165);function Vs(e){const t=(0,M.li)(),n=(0,M.li)(null),[i,r]=(0,M.J0)(void 0),[o,a]=(0,M.J0)(!1);(0,M.vJ)((()=>{var n,i;e.scanningPaused?null===(n=t.current)||void 0===n||n.pauseDetection():null===(i=t.current)||void 0===i||i.resumeDetection(),t.current.fetchAvailableCameras().then()}),[e.scanningPaused]);const s=function(e){const t=new Es;t.visible=e.visible;const n=e.polygon instanceof ks.a7,i=e.polygon,r=e,o=n?i.selected:r.polygon.partiallyScanned,a=n?i.deselected:r.polygon.partiallyScanned;return e.polygon.visible?(t.style.highlightedPolygonFillColor=w.dI.getColorValue(o.fillColor),t.style.highlightedPolygonStrokeColor=w.dI.getColorValue(o.strokeColor),t.style.highlightedPolygonStrokeWidth=o.strokeWidth,t.style.highlightedPolygonCornerRadius=o.cornerRadius,t.style.polygonFillColor=w.dI.getColorValue(a.fillColor),t.style.polygonStrokeColor=w.dI.getColorValue(a.strokeColor),t.style.polygonStrokeWidth=a.strokeWidth,t.style.polygonCornerRadius=a.cornerRadius):(t.style.highlightedPolygonFillColor="transparent",t.style.highlightedPolygonStrokeColor="transparent",t.style.polygonFillColor="transparent",t.style.polygonStrokeColor="transparent"),t.automaticSelectionEnabled=!1,t}(e.arOverlay),c=Object.assign(Object.assign({},e.barcodeScannerViewConfig),{onBarcodesDetected:i=>{var r,o,a,s,c,l;null===(r=n.current)||void 0===r||r.update(null===(a=null===(o=t.current)||void 0===o?void 0:o.finder)||void 0===a?void 0:a.holeRect,null===(s=t.current)||void 0===s?void 0:s.camera,i.originalImageSize,i.barcodes),null===(l=(c=e.barcodeScannerViewConfig).onBarcodesDetected)||void 0===l||l.call(c,i)},_onDetectionFailed:i=>{var r,o,a,s,c,l;null===(r=n.current)||void 0===r||r.update(null===(a=null===(o=t.current)||void 0===o?void 0:o.finder)||void 0===a?void 0:a.holeRect,null===(s=t.current)||void 0===s?void 0:s.camera,new gs.o(i.__image_data.width,i.__image_data.height),[]),null===(l=(c=e.barcodeScannerViewConfig)._onDetectionFailed)||void 0===l||l.call(c,i)}});return(0,M.vJ)((()=>{const t=bs(i,e.actionBarConfig);e.setActionButtonsVisible(t),a(t)}),[i,e.actionBarConfig]),M.Ay.createElement(M.Ay.Fragment,null,e.arOverlay.visible&&M.Ay.createElement(us,{style:{zIndex:1e3,position:"absolute"},ref:n,LabelComponent:Ps,labelComponentConfig:e.arOverlay,onBarcodeFound:e.arOnBarcodeEnter,onPolygonClick:e.arOnBarcodeClick,configuration:s}),M.Ay.createElement(Ms,{config:e.actionBarConfig,scanner:t.current,capabilities:i,bottomPadding:e.actionBarBottomPadding,torchEnabledInitially:e.cameraConfiguration.flashEnabled,zoomSteps:e.cameraConfiguration.zoomSteps,defaultZoomFactor:e.cameraConfiguration.defaultZoomFactor,initialCameraModule:e.cameraConfiguration.cameraModule}),M.Ay.createElement(vs,{root:e.root,ref:t,configuration:c,onSuccess:()=>{var n;Ss.setFromScanner(t,r),null===(n=e.onSdkReady)||void 0===n||n.call(e,t.current)},onFailure:e.onCameraPermissionDenied,onLicenseError:e.onLicenseError}))}function Us(e){return(0,M.Kr)((()=>{const t=new As;t.scannerConfiguration=e.scannerConfiguration;const n=e.cameraConfiguration;t.videoConstraints.width.ideal=n.idealPreviewResolution.width,t.videoConstraints.height.ideal=n.idealPreviewResolution.height,t.videoConstraints.facingMode="FRONT"===n.cameraModule?"user":"environment",t.backgroundColor=w.dI.getColorValue(e.backgroundColor),t.userGuidance=e.userGuidance,t.finder=e.viewFinder,t.scannerConfiguration.returnBarcodeImage=!0,t.fpsLimit=e.cameraConfiguration.fpsLimit;const i=e.cameraConfiguration.cameraLiveScannerResolution;return"UHD"===i&&(t.desiredRecognitionResolution=3840),"FULL_HD"===i&&(t.desiredRecognitionResolution=1920),t}),[e])}const Zs="var(--1-sb-dvh, 1vh)";function Ws(){const e=(0,M.Kr)((()=>{var e,t;return null===(t=null===(e=null===window||void 0===window?void 0:window.CSS)||void 0===e?void 0:e.supports)||void 0===t?void 0:t.call(e,"height: 100dvh")}),[]),t=()=>{var t=e?"1dvh":window.innerHeight/100+"px";document.documentElement.style.setProperty("--1-sb-dvh",t)};return(0,M.vJ)((()=>{if(t(),!e)return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}})),null}const Hs=50;function Gs(e){return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.Box,{sx:Object.assign({display:"flex",justifyContent:"space-between",alignItems:"center",height:Hs,width:"100vw",zIndex:1e3},e.style)},M.Ay.createElement(T.Box,{style:{flexBasis:0,flexGrow:1}},e.leftContent),M.Ay.createElement(T.Box,null,M.Ay.createElement("h1",{style:{fontSize:18,fontWeight:500,textAlign:"center"}},M.Ay.createElement(F.D7,{config:e.centerTitle,replacementArgs:e.centerTitleReplacementArgs}))),M.Ay.createElement(T.Box,{style:{flexBasis:0,flexGrow:1,textAlign:"right",whiteSpace:"nowrap"}},e.rightContent)))}var zs=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function Ys(e){const t=`calc(100 * ${Zs} - 50px)`,n=e.navigationBarSize,[i,r]=(0,M.J0)(null),[o,a]=(0,M.J0)(!0),s=(0,M.Kr)((()=>"__sb_"+Math.random()),[]),c=e.barcodeMapper,l=e.configuration.useCase,u=Object.assign(Object.assign({},Us(e.configuration)),{onBarcodesDetected:t=>{t.barcodes.length>0&&!l.arOverlay.visible&&e.scanningEnabled.current&&r(t.barcodes[0])},onError:e.onError,containerId:s,captureDelay:0}),d=t=>zs(this,void 0,void 0,(function*(){let n;n=null===i?[]:[new R.BarcodeScannerUiItem({count:1,barcode:t})];const r={items:n,selectedZoomFactor:u.zoom};e.onSubmit(r)}));(0,M.vJ)((()=>{i&&(Y.INSTANCE.beep(e.configuration.sound),X.INSTANCE.vibrate(e.configuration.vibration))}),[i]),(0,M.vJ)((()=>{null===i||l.confirmationSheetEnabled||d(i)}),[i,l.confirmationSheetEnabled]);const m=c.useBarcodeMappedData(i);return(0,M.vJ)((()=>{"FAILED"===(null==m?void 0:m.state)&&r(null)}),[null==m?void 0:m.state]),(0,M.vJ)((()=>{const t=e.configuration.viewFinder.minimumInsets;t.top+=n.minTopPaddingForViewFinder,t.bottom+=o?80:0}),[]),M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(Ls.Provider,{value:e.barcodeMapper},M.Ay.createElement(Z,Object.assign({open:!!m&&["LOADED","LOADING"].includes(m.state)&&l.confirmationSheetEnabled,handleCancel:()=>{r(null)},handleSubmit:()=>{d(i)},barcodeMappedData:m},{sheetColorLoaded:(h=l).sheetColor,sheetColorLoading:h.barcodeInfoMapping.sheetColor,barcodeImageVisible:h.barcodeImageVisible,barcodeTitle:h.barcodeTitle,barcodeSubtitle:h.barcodeSubtitle,cancelButton:h.cancelButton,submitButton:h.submitButton,dividerColor:h.dividerColor,loadingMessage:h.barcodeInfoMapping.loadingMessage},{displayRightArrow:!1,modalOverlayColor:l.modalOverlayColor})),M.Ay.createElement(T.Box,{id:s,sx:{width:"100%",height:t}},M.Ay.createElement(Vs,{root:e.root,cameraConfiguration:e.configuration.cameraConfiguration,scanningPaused:null!==i,setActionButtonsVisible:a,barcodeScannerViewConfig:u,arOnBarcodeClick:e=>r(e),arOnBarcodeEnter:t=>{l.arOverlay.automaticSelectionEnabled&&e.scanningEnabled.current&&r(t)},arOverlay:Object.assign(Object.assign({},l.arOverlay),{counterBadge:Object.assign(Object.assign({},l.arOverlay.counterBadge),{visible:!1})}),containerId:s,actionBarConfig:e.configuration.actionBar,actionBarBottomPadding:W,onCameraPermissionDenied:e.onCameraPermissionDenied,onLicenseError:e.onError,onSdkReady:e.onSdkReady}))));var h}function qs(e){return e=w.dI.getColorValue(e),Object.assign(Object.assign({},function(e){return{color:e=w.dI.getColorValue(e),"&:hover":{textDecoration:"underline !important",backgroundColor:"transparent !important"}}}(e)),Xs(e))}function Xs(e){return{"&:focus-visible":{outlineColor:`${e=w.dI.getColorValue(e)} !important`,outlineWidth:"2px !important",outlineStyle:"solid !important"}}}function js(e){var t;const n=e.debugName?{[`data-sb-button-${e.debugName}`]:1}:{},[i,r]=M.Ay.useState(!1);return M.Ay.createElement(M.Ay.Fragment,null,e.config.visible&&M.Ay.createElement(T.IconButton,Object.assign({disabled:!e.enabled,component:null!==(t=e.iconButtonComponent)&&void 0!==t?t:"button","aria-label":w.dI.getLocalizedText(e.config.accessibilityDescription),sx:Object.assign({opacity:e.enabled?1:.5,backgroundColor:w.dI.getColorValue(e.config.background.fillColor),borderWidth:e.config.background.strokeWidth,borderColor:w.dI.getColorValue(e.config.background.strokeColor),borderStyle:"solid",borderRadius:"4px",visibility:e.config.visible?"visible":"hidden",flexDirection:"column"},qs(e.config.title.color)),onClick:()=>{i||(r(!0),e.onClick(),setTimeout((()=>r(!1)),100))}},n),e.config.icon.visible&&M.Ay.createElement(e.icon,{color:w.dI.getColorValue(e.config.icon.color)}),e.children,M.Ay.createElement(F.D7,{config:e.config.title,style:{fontSize:12,marginTop:8}})))}const Qs=new Map;function Js(e){const t=function(e){if(!Qs.has(e)){const t=document.createElement("canvas");t.width=1,t.height=1;const n=t.getContext("2d");n.clearRect(0,0,1,1),n.fillStyle="#000",n.fillStyle=e;const i=n.fillStyle;if(n.fillStyle="#fff",n.fillStyle=e,i!==n.fillStyle)return Qs.set(e,null),null;n.fillRect(0,0,1,1);const r=[...n.getImageData(0,0,1,1).data];Qs.set(e,{r:r[0],g:r[1],b:r[2],a:r[3]})}return Qs.get(e)}(e);return 0===(null==t?void 0:t.a)}function Ks(e){var t,n;if(!e.visible)return M.Ay.createElement("div",{style:{display:"flex",flex:1}});const i=e.debugName?{[`data-sb-button-${e.debugName}`]:1}:{},r="right"===(null!==(t=e.iconPosition)&&void 0!==t?t:"left");let o={};Js(w.dI.getColorValue(e.background.fillColor))&&(o={textDecoration:"underline"});return M.Ay.createElement(T.Button,Object.assign({id:e.id,"aria-label":e.ariaLabel,disabled:null!==(n=e.disabled)&&void 0!==n&&n,variant:"text",onClick:e.onClick,style:(0,F.E_)(e.foreground),sx:Object.assign({opacity:e.disabled?.5:1,flex:1,textTransform:"none",fontSize:18,"&:hover, &:focus, &:active, &":{outline:"none",backgroundColor:"transparent"},"&:hover":o,"&:focus-visible > div":{outlineColor:w.dI.getColorValue(e.foreground.color),outlineWidth:2,outlineStyle:"solid"},px:0,alignItems:"center"},e.buttonWidth?{width:(()=>{if(e.buttonWidth)return"string"==typeof e.buttonWidth?e.buttonWidth:`${e.buttonWidth}px`})(),minWidth:0}:{}),disableRipple:!0},i),M.Ay.createElement(Ts,{polygonConfig:Object.assign(Object.assign({},e.background),{cornerRadius:4}),sx:Object.assign({borderStyle:"solid",mx:"4px",px:"4px",display:"flex",alignItems:"center"},e.styleOverrides)},e.foreground.iconVisible&&!r&&e.icon,w.dI.getLocalizedText(e.text),e.foreground.iconVisible&&r&&e.icon))}function $s(e){const t=Object.assign(Object.assign({},e.title),{text:w.dI.getLocalizedText(e.title.text,e.textReplacementArgs)});return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(Ks,Object.assign({},e.leftButton)),M.Ay.createElement(T.Typography,{sx:{flex:2,textAlign:"center",fontWeight:600,fontSize:18}},M.Ay.createElement(F.D7,{config:t})),M.Ay.createElement(Ks,Object.assign({},e.rightButton)))}function ec(){return M.Ay.createElement("div",{style:{width:30,height:6,backgroundColor:T.grey[300],borderRadius:3,position:"absolute",top:8,left:"calc(50% - 15px)"},"data-sb-drawer-puller":"1"})}function tc(e){return M.Ay.createElement(T.Box,Object.assign({sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",paddingTop:2,paddingBottom:1,touchAction:"none"},ref:e.innerRef},e.dragProps),M.Ay.createElement(ec,null),M.Ay.createElement($s,Object.assign({},e.drawerHeaderContentProps)))}function nc(e){return M.Ay.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"41",height:"38",viewBox:"0 0 41 38",fill:"none"},M.Ay.createElement("path",{d:"M4.09514 37.0902V10.6304L0.019043 1.87823L3.18969 0.348877L7.76144 10.6304H32.6886L37.2484 0.348877L40.419 1.87823L36.3549 10.6304V37.0902H4.09514ZM15.994 22.013H24.494C24.9461 22.013 25.3211 21.8632 25.619 21.5637C25.9169 21.2641 26.0658 20.8871 26.0658 20.4325C26.0658 19.9779 25.9169 19.6038 25.619 19.3101C25.3211 19.0164 24.9461 18.8695 24.494 18.8695H15.994C15.5419 18.8695 15.167 19.0193 14.8691 19.3189C14.5712 19.6184 14.4223 19.9955 14.4223 20.45C14.4223 20.9046 14.5712 21.2788 14.8691 21.5725C15.167 21.8662 15.5419 22.013 15.994 22.013ZM7.50164 33.6837H32.9364V14.0489H7.50164V33.6837Z",fill:e.color}))}function ic(e){return e.isVisible?M.Ay.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",marginTop:"auto",marginBottom:"auto",overflowY:"scroll"}},e.style.placeholderIcon.visible&&M.Ay.createElement(T.Avatar,{style:{backgroundColor:w.dI.getColorValue(e.style.placeholderIconBackground),width:100,height:100}},M.Ay.createElement(nc,{color:w.dI.getColorValue(e.style.placeholderIcon.color)})),M.Ay.createElement(T.Typography,{style:{marginTop:20},variant:"h6"},M.Ay.createElement(F.D7,{config:e.style.placeholderTitle})),M.Ay.createElement(T.Typography,{style:{marginTop:20,paddingLeft:"10%",paddingRight:"10%",maxWidth:400,textAlign:"center"},variant:"body2"},M.Ay.createElement(F.D7,{config:e.style.placeholderSubtitle})),e.onStartClick&&e.style.startScanningButton.visible&&M.Ay.createElement(k,Object.assign({style:{width:"60%",marginTop:20}},e.style.startScanningButton,{visible:!0,onClick:e.onStartClick}))):null}function rc(e,t,n){const i=(0,M.li)(),r=(0,M.li)(null),[o,a]=(0,M.J0)(),[s,c]=(0,M.J0)(!1),l=(0,M.li)([]),u=e=>{let n="none";if(l.current.length>0){const t=200,i=((e,t)=>{let n=e[0],i=Math.abs(n.time-t);for(let r=1;r<e.length;r++){const o=Math.abs(e[r].time-t);o<i&&(n=e[r],i=o)}return n})(l.current,e.timeStamp-t),r=i.y-e.clientY,o=100;r>o?n="up":r<-o&&(n="down")}l.current.splice(0,l.current.length),t(new Ka.b(e.clientX,e.clientY),n)},d={onPointerDown:e=>{e.target.setPointerCapture(e.pointerId),c(!0),r.current=new Ka.b(e.clientX,e.clientY),a(Ka.b.empty()),e.stopPropagation()},onPointerMove:t=>{if(!s)return;const n=new Ka.b(t.clientX,t.clientY);i.current=t,a(n),e(n),l.current.push({x:t.clientX,y:t.clientY,time:t.timeStamp})},onPointerUp:e=>{e.target.releasePointerCapture(e.pointerId),c(!1),u(e)},onPointerCancel:e=>{e.target.releasePointerCapture(e.pointerId),c(!1),n()}};return{startPoint:r,currentPoint:o,props:d,stop:()=>{i.current.stopPropagation()},dragOngoing:s}}var oc=n(4537);function ac(e){const[t,n]=(0,M.J0)(0),[i,r]=(0,M.J0)(!1),o=(0,M.li)(null),a=e.navigationBarSize.height,s=e=>{n(e),r(!0),setTimeout((()=>{r(!1)}),500)},c=t=>{const n=t-l.startPoint.current.y;return(0,oc.q)((e.isOpen?100:0)-100*n/(window.innerHeight-a-e.closedSheetVisibleHeight),0,100)},l=rc((e=>{n(c(e.y))}),((t,n)=>{if(t.y===l.startPoint.current.y)return;let i;i=c(t.y)<50?"swipe-to-close":"swipe-to-open","up"===n&&(i="swipe-to-open"),"down"===n&&(i="swipe-to-close"),e.onSwipe(i)}),(()=>{}));return(0,M.vJ)((()=>{i||l.dragOngoing||!o||(e.isOpen||0===t?e.isOpen&&100!==t&&s(100):s(0))}),[e.isOpen,t,l.dragOngoing]),M.n("div",null,M.n(O(),{variant:"persistent",anchor:"bottom",open:!0,onClose:()=>{},onOpen:()=>{},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0},PaperProps:{style:{height:`calc((100 * ${Zs} - ${a}px - ${e.closedSheetVisibleHeight}px) * ${t} / 100 + ${e.closedSheetVisibleHeight}px)`,overflow:"hidden",borderRadius:10,borderBottomLeftRadius:0,borderBottomRightRadius:0,transition:i?"height 500ms":void 0,backgroundColor:w.dI.getColorValue(e.contentStyle.sheetColor)},elevation:24}},M.n(tc,{innerRef:e=>{o.current=e},drawerHeaderContentProps:e.drawerHeaderContentProps,dragProps:l.props}),e.children,M.n(ic,{isVisible:e.isPlaceholderVisible,style:e.contentStyle,onStartClick:()=>e.onSwipe("swipe-to-close")})))}var sc=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function cc(e){var{inputRef:t}=e,n=sc(e,["inputRef"]);const i=Object.assign(Object.assign({},n),{style:Object.assign(Object.assign({},n.style||{}),{border:"none",display:"block",outlineWidth:0,width:"100%"})});return M.Ay.createElement("input",Object.assign({},i,{ref:t}))}function lc(e){const t=!!e.barcode,[n,i]=M.Ay.useState(""),r=M.Ay.useRef(null),o={backgroundColor:w.dI.getColorValue(e.dialogStyling.sheetColor)};return(0,M.vJ)((()=>{t&&i(String(e.barcode.count))}),[t]),M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(U,{open:t,modalOverlayColor:e.dialogStyling.modalOverlayColor,TransitionProps:{onEnter:()=>{var e;return null===(e=r.current)||void 0===e?void 0:e.focus()}},onClose:e.onCancel,PaperProps:{component:"form",onSubmit:t=>{t.preventDefault(),e.setCounter(e.barcode.barcode,parseInt(n)||0)}}},M.Ay.createElement(T.DialogContent,{style:o},M.Ay.createElement(T.Typography,{fontSize:16,fontWeight:500,textAlign:"center"},M.Ay.createElement(F.D7,{config:e.dialogStyling.title})),M.Ay.createElement(T.Typography,{fontSize:14,textAlign:"center"},M.Ay.createElement(F.D7,{config:e.dialogStyling.info})),M.Ay.createElement(T.Box,{sx:{display:"flex",border:"2px solid",borderColor:w.dI.getColorValue(e.dialogStyling.dividerColor),mh:2,mb:0,p:1,borderRadius:1}},M.Ay.createElement(cc,{inputRef:r,value:n,onChange:e=>{const t=parseInt(e.target.value.replaceAll(/[^0-9]/g,""));i(t>=0?t.toString():"")},type:"text",pattern:"[0-9]*"}),e.dialogStyling.clearTextButton.visible&&M.Ay.createElement(O(),{sx:{marginLeft:"auto",paddingLeft:1},onClick:()=>i(""),htmlColor:w.dI.getColorValue(e.dialogStyling.clearTextButton.color)}))),M.Ay.createElement(T.DialogActions,{sx:Object.assign(Object.assign({},o),{pt:0})},M.Ay.createElement(O(),{container:!0,spacing:2},M.Ay.createElement(O(),{item:!0,xs:12},M.Ay.createElement(O(),{color:w.dI.getColorValue(e.dialogStyling.dividerColor)})),M.Ay.createElement(O(),{item:!0,xs:6},M.Ay.createElement(k,Object.assign({style:{width:"100%"},onClick:e.onCancel},e.dialogStyling.cancelButton))),M.Ay.createElement(O(),{item:!0,xs:6},M.Ay.createElement(k,Object.assign({icon:T.Replay,style:{width:"100%"},onClick:()=>{},type:"submit"},e.dialogStyling.updateButton)))))))}function uc(e){return M.Ay.createElement("div",{style:{top:0,width:"100%",marginTop:"1px",marginLeft:"1px",height:"calc(100% - 2px)",position:"absolute",backgroundColor:w.dI.getColorValue(e.config.backgroundColor),display:"flex",alignItems:"right",justifyContent:"right"}},M.Ay.createElement(O(),{style:{height:"100%",color:w.dI.getColorValue(e.config.iconColor),paddingRight:e.visibleOffset/2,cursor:"pointer"}}))}class dc{}dc.ScanbotPrimary="#c8193c",dc.LightGray="#F5F5F5",dc.Gray="#808080",dc.DarkGray="#333333",dc.Orange="#FF5533",dc.White="#FFFFFF",dc.TransparentGreen="rgba(0, 255, 0, 0.5)",dc.TransparentGray="rgba(50, 50, 50, 0.5)",dc.TransparentBlack="rgba(0, 0, 0, 0.3)",dc.SBNegative="#FF3737";const mc=dc,hc=0,pc=800,Ec=1200;function Ac(e){switch(e){case"mobile":return(0,T.useMediaQuery)("(min-width:"+hc+"px) and (max-width:"+(pc-1)+"px)");case"tablet":return(0,T.useMediaQuery)("(min-width:"+pc+"px) and (max-width:"+(Ec-1)+"px)");case"desktop":return(0,T.useMediaQuery)("(min-width:"+Ec+"px)")}}function gc(e){switch(e){case"mobile":return(0,T.useMediaQuery)("(min-width:"+hc+"px)");case"tablet":return(0,T.useMediaQuery)("(min-width:"+pc+"px)");case"desktop":return(0,T.useMediaQuery)("(min-width:"+Ec+"px)")}}const fc=150;function Cc(e){const[t,n]=(0,M.J0)(0),[i,r]=(0,M.J0)(!1);let o;const a=rc((e=>{let t=a.startPoint.current.x-e.x;t<0?a.stop():n(-t)}),(t=>{if(t.x===a.startPoint.current.x)return;if(a.startPoint.current.x-t.x>75){const t=e.animateBackAfterDelete?()=>{l(0)}:void 0;l(fc,t)}else l(0)}),(()=>{l(0)})),s=(0,M.NT)(Ls),c=s.useBarcodeMappedData(e.barcode);(0,M.vJ)((()=>{const t={barcode:e.barcode,callback:()=>e.onDelete(e.barcode)};return s.addOnEvictionListener(t),()=>{s.removeOnEvictionListener(t)}}),[]);const l=(t,i)=>{const a=t>=fc,s=-o.getBoundingClientRect().width;n(a?s:0),r(!0),setTimeout((()=>{r(!1),a&&e.onDelete(e.barcode),i&&i()}),200)},u=Ac("desktop")&&e.swipeToDeleteConfig.enabled,d=!u&&e.swipeToDeleteConfig.enabled;return(0,M.vJ)((()=>{d||l(0)}),[d]),M.Ay.createElement(T.Box,{sx:{px:2},style:{width:"100%",paddingRight:0},ref:e=>{e&&(o=e)}},M.Ay.createElement(uc,{config:e.swipeToDeleteConfig,visibleOffset:fc}),M.Ay.createElement(T.Box,Object.assign({sx:{width:"100%",backgroundColor:w.dI.getColorValue(e.sheetColor),transform:`translateX(${t}px)`,transition:i?"transform 200ms ease-in-out":void 0,touchAction:"pan-y",display:"flex",alignItems:"center",paddingTop:"16px",paddingBottom:"16px"}},d?a.props:{}),M.Ay.createElement(x,Object.assign({barcodeMappedData:c},e,{readonlyCount:e.readonlyCount})),null!==e.readonlyCount&&M.Ay.createElement(T.Box,{sx:{fontSize:18,marginTop:"auto",flex:1,textAlign:"right",paddingRight:"16px",color:w.dI.getColorValue("?sbColorOnSurfaceVariant")}},"x",e.readonlyCount),u&&M.Ay.createElement(O(),{sx:{height:"100%",marginLeft:"auto",cursor:"pointer",paddingRight:"16px",color:w.dI.getColorValue("?sbColorOnSurface")},onClick:()=>e.onDelete(e.barcode)}),M.Ay.createElement(T.Box,{sx:{width:"0px"}})))}function _c(e){const t=w.dI.getColorValue(e.sheetContent.dividerColor),n=e.sheetContent.manualCountChangeEnabled&&"COUNTING"===e.mode,i=(t,n)=>{let i=e.indicatorColor.partial;return n===t.count?i=e.indicatorColor.complete:0===n&&(i=e.indicatorColor.notScanned),w.dI.getColorValue(i)};return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.Divider,{style:{borderColor:t}}),e.barcodes.length>0&&M.Ay.createElement(O(),{sx:{width:"auto",flex:1,overflowY:"auto",overflowX:"hidden"},role:"presentation"},M.Ay.createElement(O(),{sx:{p:0}},e.barcodes.map((({barcode:r,count:o})=>{const a=e.expectedBarcodes.find((e=>e.barcodeValue===r.text)),s=r.text+r.format+o;return M.Ay.createElement(O(),{key:s,sx:{padding:0,borderBottom:`1px solid ${t}`}},e.indicatorColor&&M.Ay.createElement("div",{style:{display:"flex",width:4,height:"100%",backgroundColor:i(a,o),position:"absolute"}}),M.Ay.createElement(Cc,{barcode:r,animateBackAfterDelete:e.animateBackAfterDelete,onDelete:()=>e.onBarcodeChange({type:"remove",barcode:r}),counterForm:n&&{counter:o,manualCountChangeColor:e.sheetContent.manualCountChangeColor,manualCountOutlineColor:e.sheetContent.manualCountOutlineColor,addButtonEnabled:void 0===a||a.count>o,removeButtonEnabled:void 0===a||o>0,setCounter:t=>{e.onBarcodeChange({type:"setCount",barcodes:[r],computeNewCount:()=>t})},onNumberClick:()=>e.onNumberClick({barcode:r,count:o})},readonlyCount:"COUNTING"!==e.mode||e.sheetContent.manualCountChangeEnabled?null:o,maxNumberOfTitleLines:1,maxNumberOfSubtitleLines:1,displayRightArrow:!1,imageSize:n?84:40,barcodeImageVisible:e.sheetContent.barcodeItemImageVisible,barcodeTitle:e.sheetContent.barcodeItemTitle,barcodeSubtitle:e.sheetContent.barcodeItemSubtitle,swipeToDeleteConfig:e.sheetContent.swipeToDelete,sheetColor:e.sheetContent.sheetColor}))})))))}function Dc(e){const t=e.badgeStyle||{},n=e.overlap||"circular";return M.Ay.createElement(T.Badge,{anchorOrigin:{vertical:"top",horizontal:"left"},badgeContent:e.text,showZero:!0,color:"primary",overlap:n,slotProps:{badge:{style:Object.assign(Object.assign({},t),{backgroundColor:e.backgroundColor,color:e.foregroundColor,fontWeight:"bold"})}}},e.children)}function yc(e){if(!e.buttonStyling.visible)return null;return M.Ay.createElement(T.Box,{style:e.style},M.Ay.createElement(Dc,{text:e.text,backgroundColor:w.dI.getColorValue(e.buttonStyling.badgeBackgroundColor),foregroundColor:w.dI.getColorValue(e.buttonStyling.badgeForegroundColor)},M.Ay.createElement(T.IconButton,{sx:{backgroundColor:w.dI.getColorValue(e.buttonStyling.backgroundColor),width:60,height:60,"&:hover, &:focus":{backgroundColor:w.dI.getColorValue(e.buttonStyling.activeBackgroundColor),outline:"none"}},onClick:e.onClick,disableRipple:!0,disableFocusRipple:!0},M.Ay.createElement(O(),{sx:{color:w.dI.getColorValue(e.buttonStyling.foregroundColor),fontSize:"24pt","&:hover, &:focus":{color:w.dI.getColorValue(e.buttonStyling.activeForegroundColor)}}}))))}const Ic=(e,t)=>(null===e.format||null===t.format||e.format===t.format)&&e.text===t.text,vc=(e,t)=>e.find((e=>((e,t)=>e.barcodeValue===t.text)(e,t)));class Nc{constructor(e,t){this.expectedCount=e,this.foundCount=t}isFulFilled(){return void 0!==this.expectedCount&&void 0!==this.foundCount&&this.expectedCount===this.foundCount}toString(){return`${this.foundCount}/${this.expectedCount}`}}function Sc(e){const t={backgroundColor:w.dI.getColorValue(e.sheetColor)};return M.Ay.createElement(U,{modalOverlayColor:e.modalOverlayColor,open:e.open},M.Ay.createElement(T.DialogContent,{sx:Object.assign(Object.assign({},t),{p:2,pb:1,textAlign:"center"})},M.Ay.createElement(T.Typography,{sx:{fontSize:"16pt",fontWeight:"bold"}},M.Ay.createElement(F.D7,{config:e.title})),M.Ay.createElement(T.Typography,{sx:{fontSize:"14pt",lineHeight:"16pt"}},M.Ay.createElement(F.D7,{config:e.subtitle}))),M.Ay.createElement(T.DialogActions,{sx:Object.assign(Object.assign({},t),{pt:1})},M.Ay.createElement(O(),{container:!0,spacing:2},M.Ay.createElement(O(),{item:!0,xs:12},M.Ay.createElement(O(),{color:w.dI.getColorValue(e.dividerColor)})),M.Ay.createElement(O(),{item:!0,xs:6},M.Ay.createElement(k,Object.assign({style:{width:"100%"},icon:e.cancelButton.icon,onClick:e.cancelButton.onClick},e.cancelButton.style))),M.Ay.createElement(O(),{item:!0,xs:6},M.Ay.createElement(k,Object.assign({style:{width:"100%"},icon:e.okButton.icon,onClick:e.okButton.onClick},e.okButton.style))))))}function bc(e){return e.open?M.Ay.createElement(Sc,{open:e.open,dividerColor:e.style.dividerColor,modalOverlayColor:e.style.modalOverlayColor,sheetColor:e.style.sheetColor,title:e.style.title,subtitle:e.style.subtitle,cancelButton:{style:e.style.cancelButton,onClick:e.onDismiss},okButton:{style:e.style.okButton,onClick:e.onSubmit}}):null}class Mc{constructor(e,t,n){this.barcodeItemSubtitleText=e,this.foundBarcodes=t,this.expectedBarcodes=n}useBarcodeMappedData(e){var t,n,i;const r=null!==(n=null===(t=this.foundBarcodes.find((t=>Ic(t.barcode,e))))||void 0===t?void 0:t.count.toString())&&void 0!==n?n:"0",o=vc(this.expectedBarcodes,e);return{state:"LOADED",value:{title:`${null!==(i=o.title)&&void 0!==i?i:e.text}`,subtitle:w.dI.getLocalizedText(this.barcodeItemSubtitleText,[r,null==o?void 0:o.count.toString()]),barcodeImage:o.image}}}addOnEvictionListener(){}removeOnEvictionListener(){}}function Lc(e){const t=e.navigationBarSize;return M.Ay.createElement(O(),{item:!0,xs:5,component:"div",zIndex:1050,style:{paddingTop:t.minTopPaddingForContent,height:"100%",flexDirection:"column",display:"flex",backgroundColor:w.dI.getColorValue(e.sheetContent.sheetColor)}},M.Ay.createElement(O(),{sx:{display:"flex",justifyContent:"center",alignItems:"center"},zIndex:50},M.Ay.createElement($s,Object.assign({},e.headerProps))),e.barcodeList,M.Ay.createElement(ic,{isVisible:e.isEmptyStateVisible,style:e.sheetContent}))}var Rc=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function Tc(e){const t=(0,M.li)(),n=(0,M.li)(new Date("2001-01-01")),[i,r]=(0,M.WO)(function(e,t,n,i){return(r,o)=>{const a=e.useCase,s="FindAndPickScanningMode"===a._type,c=s?"COUNTING":a.mode,l=s?a.expectedBarcodes:[],u=e=>{let t=[...r];const n=o.barcodes||[o.barcode];for(const i of n){const n=t.findIndex((e=>Ic(e.barcode,i)));if(-1===n)t.push({barcode:i,count:e(0)});else{const i=t[n];t[n]=Object.assign(Object.assign({},i),{count:e(i.count,i)})}}return t},d=(e,n)=>{var r;if(t.current=new Date,!n)return e;const o=null===(r=vc(l,n.barcode))||void 0===r?void 0:r.count;return void 0===o||o===e?e:(i(),e+1)};switch(o.type){case"onBarcodesDetected":{if((new Date).getTime()-t.current.getTime()<a.countingRepeatDelay||!n.current)return[...r];if(s)return a.arOverlay.automaticSelectionEnabled?u(d):[...r];const e=a.arOverlay;if(!e.visible||e.automaticSelectionEnabled){let e=!1;return u((n=>{let r="COUNTING"===c?n+1:1;return r===n||e||(t.current=new Date,i()),r}))}return u((e=>e))}case"onARCodeClick":return u(((e,t)=>{if(s)return d(e,t);const n="UNIQUE"===c?1-e:e+1;return n>0&&i(),n}));case"onCountEditDialogChange":{let e=()=>o.count||0;if(s){const t=vc(l,o.barcode);o.count>t.count&&(e=()=>t.count)}return u(e)}case"setCount":return u(o.computeNewCount);case"remove":return r.map((e=>Object.assign(Object.assign({},e),{count:Ic(e.barcode,o.barcode)?0:e.count})));case"clear":return r.map((e=>Object.assign(Object.assign({},e),{count:0})));case"setHtmlElements":let e=!1;const m=r.map((t=>Ic(t.barcode,o.barcode)?(e=!0,Object.assign(Object.assign({},t),{polygonElement:o.polygonElement,labelElement:o.labelElement})):t));return e||m.push({barcode:o.barcode,count:0,labelElement:o.labelElement,polygonElement:o.polygonElement}),m}}}(e.configuration,n,e.scanningEnabled,(()=>{Y.INSTANCE.beep(e.configuration.sound),X.INSTANCE.vibrate(e.configuration.vibration)})),[]),[o,a]=M.Ay.useState(null),[s,c]=(0,M.J0)(!1),l=(0,M.Kr)((()=>"__sb_"+Math.random()),[]),[u,d]=(0,M.J0)(!0),m=e.barcodeMapper,[h,p]=(0,M.J0)(null),E="FindAndPickScanningMode"===e.configuration.useCase._type,A=e.configuration.useCase,g=E?"COUNTING":A.mode,f=(0,M.li)(Object.assign(Object.assign({},Us(e.configuration)),{onBarcodesDetected:e=>{r({type:"onBarcodesDetected",barcodes:e.barcodes})},_onDetectionFailed(e){},onError:e.onError,captureDelay:1e3/60}));(0,M.vJ)((()=>{if(E){const e=D();for(const n of e){const e=[(t=n.barcodeValue,new y.BarcodeItem({format:null,sourceImage:null,text:t,rawBytes:null,rawBytesEncodings:[],structuredAppendInfo:null,quad:[],quadNormalized:[],extendedQuad:[],extendedQuadNormalized:[],upcEanExtension:null,extractedDocument:null}))];r({type:"setCount",barcodes:e,computeNewCount:()=>0})}}var t;const n=e.configuration.viewFinder.minimumInsets;n.top+=V.minTopPaddingForContent,n.bottom+=k}),[]),(0,M.vJ)((()=>{f.current.container=t.current}),[t]),(0,M.vJ)((()=>{if(E)for(const e of i){const t=A.arOverlay,n=e.polygonElement,i=e.labelElement;if(v(e.barcode)){const r=U(e.barcode);let o=e.count+"/"+r.expectedCount;A.arOverlay.automaticSelectionEnabled||0!==e.count||(o=M.Ay.createElement(T.TouchApp,null)),r.isFulFilled()?(null==n||n.style(w.dI.getPolygonColorValues(t.polygon.completed,t.polygon.visible)),null==i||i.styleBadge(t.badge.completed,M.Ay.createElement(T.Check,null))):(null==n||n.style(w.dI.getPolygonColorValues(t.polygon.partiallyScanned,t.polygon.visible)),null==i||i.styleBadge(t.badge.partiallyScanned,o))}else null==n||n.style(w.dI.getPolygonColorValues(t.polygon.rejected,t.polygon.visible)),null==i||i.styleBadge(t.badge.rejected,M.Ay.createElement(T.Close,null))}else for(const e of i){if(e.polygonElement){const t=A.arOverlay.polygon,n=e.count>0?t.selected:t.deselected;e.polygonElement.style(w.dI.getPolygonColorValues(n,t.visible))}e.labelElement&&(e.labelElement.update(Object.assign(Object.assign({},e.labelElement.state.element),{highlighted:e.count>0})),e.labelElement.setCount(e.count))}}),[i]);const C=i.reduce(((e,t)=>e+t.count),0),_=()=>D().every((e=>i.some((t=>t.barcode.text===e.barcodeValue&&t.count===e.count)))),D=()=>E?A.expectedBarcodes:[],I=e=>vc(D(),e),v=e=>!!I(e),N=()=>E?i.filter((e=>v(e.barcode))):i.filter((e=>e.count>0)),S=()=>Rc(this,void 0,void 0,(function*(){const t=N().map((e=>new R.BarcodeScannerUiItem({count:"COUNTING"===g?e.count:1,barcode:e.barcode})));e.onSubmit({items:t,selectedZoomFactor:f.current.zoom})})),b=M.Ay.createElement(_c,{expectedBarcodes:D(),barcodes:N(),animateBackAfterDelete:E,onBarcodeChange:r,sheetContent:A.sheetContent,onNumberClick:e=>a(e),mode:g,indicatorColor:E&&{partial:A.scanningPartiallyColor,complete:A.scanningCompletedColor,notScanned:A.scanningNotScannedColor}}),L={textReplacementArgs:[C.toString()],leftButton:Object.assign(Object.assign({},A.sheetContent.clearAllButton),{onClick:()=>r({type:"clear"}),disabled:0===C}),rightButton:Object.assign(Object.assign({},A.sheetContent.submitButton),{onClick:()=>Rc(this,void 0,void 0,(function*(){if(E){const e=A;let t=null;e.partialScannedAlertDialogEnabled&&!_()&&(t=e.partialScannedAlertDialog),e.confirmationAlertDialogEnabled&&_()&&(t=e.confirmationAlertDialog),t?p(t):yield S()}else yield S()})),disabled:!E&&!A.allowEmptySubmission&&0===C}),title:A.sheetContent.title},F=Ac("mobile"),B="BUTTON"!==A.sheet.mode&&F?"SMALL"===A.sheet.collapsedVisibleHeight?69:128:0,P=F&&"BUTTON"===A.sheet.mode,x=P?76:0,k=(u?80:0)+x,V=e.navigationBarSize,U=e=>{const t=i.find((t=>t.barcode.text===e.text)),n=I(e);return new Nc(null==n?void 0:n.count,null==t?void 0:t.count)},Z=D().reduce(((e,t)=>e+t.count),0);E&&L.textReplacementArgs.push(Z.toString());const H=E?new Mc(A.sheetContent.barcodeItemSubtitle.text,i,D()):m,G=!E&&0===C;return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(Ls.Provider,{value:H},M.Ay.createElement(O(),{container:!0,sx:{display:"flex",flexDirection:F?"column":"row",height:`calc(${V.remainingVisibleBodyHeight} - ${B}px)`},alignItems:"stretch"},M.Ay.createElement(O(),{id:l,item:!0,ref:t,component:"div",xs:F?12:7,zIndex:100},P&&M.Ay.createElement(yc,{style:{position:"absolute",marginTop:`calc(${V.remainingVisibleBodyHeight} - 60px - 8px)`,width:"100%",display:"flex",justifyContent:"center",zIndex:1100},text:E?`${C}/${Z}`:C.toString(),onClick:()=>c(!s),buttonStyling:A.sheet.listButton}),M.Ay.createElement(Vs,{root:e.root,arOverlay:(()=>{if(E){const e=A.arOverlay;return Object.assign(Object.assign({},e),{counterBadge:Object.assign({},e.badge.partiallyScanned)})}const e=A.arOverlay,t=e.counterBadge;return Object.assign(Object.assign({},e),{counterBadge:Object.assign(Object.assign({},t),{visible:t.visible&&"COUNTING"===g})})})(),containerId:l,barcodeScannerViewConfig:f.current,onCameraPermissionDenied:e.onCameraPermissionDenied,actionBarConfig:e.configuration.actionBar,actionBarBottomPadding:W+x,setActionButtonsVisible:d,arOnBarcodeClick:e=>{r({type:"onARCodeClick",barcode:e})},arOnBarcodeEnter:(e,t,n)=>{if(!n||!t)return;r({type:"setHtmlElements",barcode:e,labelElement:n,polygonElement:t})},scanningPaused:s&&F,cameraConfiguration:e.configuration.cameraConfiguration,onLicenseError:e.onError,onSdkReady:e.onSdkReady}),F&&M.Ay.createElement(ac,{navigationBarSize:V,closedSheetVisibleHeight:B,sheetStyle:A.sheet,contentStyle:A.sheetContent,manualCountEditDialog:A.manualCountEditDialog,isPlaceholderVisible:G,onBarcodeChange:e=>r(e),drawerHeaderContentProps:L,isOpen:s,onSwipe:e=>{c("swipe-to-open"===e)}},b)),gc("tablet")&&M.Ay.createElement(Lc,{navigationBarSize:V,headerProps:L,sheetContent:A.sheetContent,isEmptyStateVisible:G,barcodeList:b})),M.Ay.createElement(lc,{barcode:o,dialogStyling:A.manualCountEditDialog,onCancel:()=>a(null),setCounter:(e,t)=>{r({type:"onCountEditDialogChange",barcode:e,count:t}),a(null)}}),M.Ay.createElement(bc,{open:null!==h,style:h,onDismiss:()=>p(null),onSubmit:S})))}const Oc=(0,M.q6)(null),wc={didCatch:!1,error:null};class Fc extends M.uA{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=wc}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:r,reason:"imperative-api"}),this.setState(wc)}}componentDidCatch(e,t){var n,i;null===(n=(i=this.props).onError)||void 0===n||n.call(i,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:i}=this.props;var r,o;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,i)&&(null===(r=(o=this.props).onReset)||void 0===r||r.call(o,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(wc))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:i}=this.props,{didCatch:r,error:o}=this.state;let a=e;if(r){const e={error:o,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=(0,M.n)(n,e);else{if(null!==i&&!(0,M.zO)(i))throw o;a=i}}return(0,M.n)(Oc.Provider,{value:{didCatch:r,error:o,resetErrorBoundary:this.resetErrorBoundary}},a)}}function Bc(){const e=(0,M.li)(!0);return(0,M.vJ)((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Pc(e){const t=Bc(),[,n]=(0,M.WO)((e=>e+1),0),i=(0,M.li)();return(0,M.Kr)((()=>{i.current={loading:!0,value:void 0,error:null}}),[e]),function(e,t){(0,M.Kr)((()=>{e&&e.then((e=>{t({loading:!1,error:null,value:e})})).catch((e=>{t({loading:!1,error:{reason:e},value:void 0})}))}),[e])}(e,(e=>{i.current=e,t.current&&n()})),e?i.current:null}var xc=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class kc{constructor(e,t){this.barcodeItemMapper=e,this.onError=t,this.cache=new Map,this.cacheEntryPendingRetries=[],this.hash=e=>Qa(e),this.onEvictionListeners=new Set}getBarcodeMappedData(e){const t=this.hash(e);if(!this.cache.has(t)){const n=(()=>xc(this,void 0,void 0,(function*(){if(this.barcodeItemMapper){const t=new R.BarcodeScannerUiItem({count:1,barcode:e});return this.barcodeItemMapper(t)}{let t=null;e.sourceImage&&(t=yield f.toDataUrl(yield Jh.instance.imageToJpeg(e.sourceImage)));const n=e.upcEanExtension?` ${e.upcEanExtension}`:"";return{title:e.text+n,subtitle:e.format,barcodeImage:t}}})))();this.cache.set(t,n)}return this.cache.get(t)}useBarcodeMappedData(e){const t=(0,M.li)(!1),n=Pc(e&&this.getBarcodeMappedData(e));if((0,M.vJ)((()=>{n&&n.error&&(t.current=!1,this.cacheEntryPendingRetries.push({barcode:e,retry:()=>{this.cache.delete(this.hash(e)),t.current=!0}}),this.onError((()=>{for(const e of this.cacheEntryPendingRetries)e.retry();this.cacheEntryPendingRetries.length=0}),(()=>{t.current=!0;for(const e of this.cacheEntryPendingRetries)for(const t of this.onEvictionListeners)this.hash(t.barcode)==this.hash(e.barcode)&&t.callback();this.cacheEntryPendingRetries.length=0})))}),[n&&n.error]),!n)return null;let i;return i=n.value?"LOADED":n.error&&!t.current?"RETRY_DIALOG_OPEN":n.error?"FAILED":"LOADING",{value:n.value,state:i}}addOnEvictionListener(e){this.onEvictionListeners.add(e)}removeOnEvictionListener(e){this.onEvictionListeners.delete(e)}}function Vc(e){return M.Ay.createElement(Sc,{open:e.open,dividerColor:e.dividerColor,modalOverlayColor:e.modalOverlayColor,sheetColor:e.sheetColor,title:e.title,subtitle:e.subtitle,cancelButton:{style:e.cancelButton,onClick:e.handleCancel},okButton:{style:e.retryButton,icon:T.Replay,onClick:e.handleRetry}})}function Uc(e){const t=e.navigationBarSize;if(!e.visible)return null;const n={textAlign:"center",maxWidth:"94%",wordWrap:"break-word"};return M.Ay.createElement(T.Box,{sx:{paddingTop:t.minTopPaddingForContent+"px",overflowY:"scroll",backgroundColor:w.dI.getColorValue(e.config.background)}},M.Ay.createElement(T.Box,{sx:{height:t.remainingVisibleBodyHeight,marginLeft:"auto",marginRight:"auto",maxWidth:280,display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}},e.config.icon.visible&&M.Ay.createElement(T.Box,null,M.Ay.createElement(T.Avatar,{sx:{width:100,height:100,backgroundColor:w.dI.getColorValue(e.config.iconBackground),margin:"24px"}},M.Ay.createElement(O(),{sx:{fontSize:50,color:w.dI.getColorValue(e.config.icon.color)}}))),M.Ay.createElement(T.Typography,{sx:Object.assign({fontSize:20},n)},M.Ay.createElement(F.D7,{config:e.config.enableCameraTitle})),M.Ay.createElement(T.Typography,{sx:Object.assign({fontSize:16,paddingTop:"12px"},n)},M.Ay.createElement(F.D7,{config:e.config.enableCameraExplanation,asHtml:!0})),M.Ay.createElement(T.Box,{sx:{paddingTop:"16px"}},M.Ay.createElement(Ks,Object.assign({},e.config.closeButton,{styleOverrides:{fontSize:14},onClick:e.onCloseClick})))))}class Zc extends M.Ay.Component{componentDidMount(){Cs.Z.disableScreenMovement()}componentWillUnmount(){Cs.Z.enableScreenMovement()}render(){return M.Ay.createElement("div",null)}}function Wc(e){return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.Menu,{anchorEl:e.anchor,open:null!==e.anchor,onClose:e.onClose,MenuListProps:{"aria-labelledby":"sb-button-review-more"},slotProps:{paper:{style:{backgroundColor:w.dI.getColorValue(e.backgroundColor),minWidth:e.minWidth}}}},e.children))}function Hc(e){const t=w.dI.getColorValue(e.textColor);return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.MenuItem,{tabIndex:0,disabled:e.disabled,autoFocus:e.autoFocus,"aria-label":w.dI.getLocalizedText(e.ariaLabel),onClick:e.onClick,sx:Object.assign(Object.assign({"&, &:hover, &:focus":{backgroundColor:"transparent"}},qs(t)),{paddingX:"8px",marginX:"8px"})},e.children))}function Gc(e){const[t,n]=M.Ay.useState(!1),[i,r]=M.Ay.useState(null),o=Boolean(i),a=e.config;return M.Ay.createElement(T.Box,{style:{flex:1}},M.Ay.createElement(Ks,{id:"sb-button-camera-select",ariaLabel:w.dI.getLocalizedText(a.button.accessibilityDescription),onClick:e=>r(e.currentTarget),visible:a.button.visible,text:"",background:{fillColor:"transparent",strokeColor:"transparent",strokeWidth:0},foreground:{color:a.button.color,iconVisible:!0,useShadow:!1},icon:M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(O(),null),!o&&M.Ay.createElement(O(),{sx:{marginX:"-4px"}}),o&&M.Ay.createElement(O(),{sx:{marginX:"-4px"}})),buttonWidth:48}),M.Ay.createElement(Wc,{anchor:i,ariaLabelledBy:"sb-button-camera-select",backgroundColor:a.backgroundColor,onClose:()=>r(null),minWidth:"calc(min(100% - 40px, 323px))"},M.Ay.createElement(T.MenuItem,{disabled:!0,sx:{borderBottomColor:w.dI.getColorValue(a.dividerColor),borderBottomStyle:"solid",borderBottomWidth:"1px",fontSize:14,marginTop:"-4px",marginBottom:"4px",marginX:"4px",width:"calc(100% - 8px)",opacity:"1 !important"}},M.Ay.createElement(F.D7,{config:a.title})),e.cameraSelectConfig.availableCameras.map((i=>{const o=i.deviceId===e.cameraSelectConfig.activeCamera.deviceId,s=o?a.menuEntryActive:a.menuEntry;return M.Ay.createElement(Hc,{disabled:t,key:i.deviceId,autoFocus:o,ariaLabel:s.accessibilityDescription,textColor:s.title.color,onClick:()=>{r(null),n(!0),e.cameraSelectConfig.onSelect(i).finally((()=>n(!1)))}},s.icon.visible&&M.Ay.createElement(O(),{style:{color:w.dI.getColorValue(s.icon.color),marginRight:"8px"}}),M.Ay.createElement(T.Typography,{variant:"inherit",noWrap:!0},M.Ay.createElement(F.D7,{config:Object.assign(Object.assign({},s.title),{text:i.label})})),o&&M.Ay.createElement(O(),{style:{color:w.dI.getColorValue(s.icon.color),marginLeft:"auto",paddingLeft:15,fontSize:16}}))}))))}class zc{constructor(){this.height=0,this.remainingVisibleBodyHeight="",this.minTopPaddingForContent=0,this.minTopPaddingForViewFinder=0}}function Yc(e){const t=e.backButton,n=e.introButton;if("HIDDEN"===e.mode)return null;const i="SOLID"===e.mode?0:Hs,r={height:Hs,remainingVisibleBodyHeight:"SOLID"===e.mode?`calc(100 * ${Zs} - 50px)`:`calc(100 * ${Zs})`,minTopPaddingForContent:i,minTopPaddingForViewFinder:10+i};(0,M.vJ)((()=>{e.onSizeCalculated&&e.onSizeCalculated(r);const t=document.createElement("meta");return t.name="theme-color",t.content=w.dI.getColorValue(e.backgroundColor),document.head.appendChild(t),()=>{document.head.removeChild(t)}}),[]);const o="SOLID"===e.mode?{backgroundColor:w.dI.getColorValue(e.backgroundColor)}:{backgroundImage:`linear-gradient(to bottom, ${w.dI.getColorValue(e.backgroundColor)}, #00000000)`,position:"absolute",backgroundColor:"transparent"};return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(Gs,{style:o,leftContent:M.Ay.createElement(Ks,{ariaLabel:w.dI.getLocalizedText(t.accessibilityDescription),onClick:e.onCloseButtonClick,visible:t.visible,text:t.text,background:t.background,foreground:t.foreground,disabled:e.isCancelDisabled,icon:M.Ay.createElement(O(),{sx:{fontSize:24}}),debugName:"close-camera-screen"}),centerTitle:e.title,rightContent:M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.Box,{style:{display:"flex",justifyContent:"end",alignItems:"center",whiteSpace:"nowrap",maxWidth:120,marginLeft:"auto",marginRight:5}},M.Ay.createElement(Gc,{config:e.cameraSelectConfig,cameraSelectConfig:e.cameraConfig}),n&&M.Ay.createElement(Ks,{ariaLabel:w.dI.getLocalizedText(n.accessibilityDescription),visible:n.visible,text:"",background:{fillColor:"transparent",strokeColor:"transparent",strokeWidth:0},foreground:{color:n.color,iconVisible:!0,useShadow:!1},debugName:"show-introduction",icon:M.Ay.createElement(O(),{sx:{fontSize:24}}),onClick:e.onShowIntroButtonClick,buttonWidth:20})))}))}var qc=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function Xc(e){const t=(0,M.li)((0,T.createTheme)({palette:{primary:{main:mc.ScanbotPrimary},secondary:{main:mc.DarkGray}}})),[n,i]=(0,M.J0)(!1),[r,o]=(0,M.J0)(!1),[a,s]=(0,M.J0)(e.configuration.timeouts.initialScanDelay<=0),[c,l]=(0,M.J0)(new zc),u=(0,M.li)(!1),d=(0,M.li)(),m=(0,M.li)(),[h,p]=(0,M.J0)(null),[E,A]=(0,M.J0)(null),[g,f]=(0,M.J0)([]),C=e.configuration.useCase,_="FindAndPickScanningMode"===C._type?null:C.barcodeInfoMapping,D=(0,M.Kr)((()=>new kc(null==_?void 0:_.barcodeItemMapper,((e,t)=>{i(!0),d.current=()=>{i(!1),e()},m.current=()=>{i(!1),t()}}))),[]);(0,M.Kr)((()=>{w.dI.setPalette(e.configuration.palette),w.dI.setLocalization(e.configuration.localization)}),[e.configuration]),(0,M.vJ)((()=>{if(e.configuration.timeouts.autoCancelTimeout>0){const t=setTimeout((()=>{e.onClose()}),e.configuration.timeouts.autoCancelTimeout);return()=>{clearTimeout(t)}}}),[]),(0,M.vJ)((()=>{if(e.configuration.timeouts.initialScanDelay>0){const t=setTimeout((()=>{s(!0)}),e.configuration.timeouts.initialScanDelay);return()=>{clearTimeout(t)}}}),[]),(0,M.vJ)((()=>{u.current=!n&&a}),[n,a]);const y=e=>{p(e);const t=null==e?void 0:e.getActiveCameraInfo();A(null!=t?t:null),f(t?[t]:[]),null==e||e.fetchAvailableCameras().then(f)};let I;if("SingleScanningMode"===C._type)I=M.Ay.createElement(Ys,{root:e.root,configuration:e.configuration,barcodeMapper:D,onSdkReady:e=>{y(e)},onClose:e.onClose,onSubmit:e.onSubmit,onError:e.onError,onCameraPermissionDenied:()=>o(!0),scanningEnabled:u,navigationBarSize:c});else{if("MultipleScanningMode"!==C._type&&"FindAndPickScanningMode"!==C._type)throw new Error("Unsupported use case type");I=M.Ay.createElement(Tc,{root:e.root,configuration:e.configuration,barcodeMapper:D,onSdkReady:e=>{y(e)},onSubmit:e.onSubmit,onError:e.onError,onCameraPermissionDenied:()=>o(!0),scanningEnabled:u,navigationBarSize:c})}return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(Ws,null),M.Ay.createElement(Zc,null),M.Ay.createElement(Fc,{onError:e.onError,fallback:M.Ay.createElement("div",null,"Error")},M.Ay.createElement(T.ThemeProvider,{theme:t.current},_&&M.Ay.createElement(Vc,Object.assign({open:n,handleCancel:m.current,handleRetry:d.current,modalOverlayColor:_.modalOverlayColor,dividerColor:_.dividerColor,sheetColor:_.sheetColor},_.errorState)),M.Ay.createElement(O(),{sx:{height:`100 * ${Zs}`,width:"100vw",backgroundColor:w.dI.getColorValue(e.configuration.backgroundColor)}},M.Ay.createElement(Yc,{title:e.configuration.topBar.title,backgroundColor:e.configuration.topBar.backgroundColor,backButton:e.configuration.topBar.cancelButton,mode:e.configuration.topBar.mode,cameraSelectConfig:e.configuration.topBar.cameraSelect,onCloseButtonClick:e.onClose,onShowIntroButtonClick:()=>{},cameraConfig:{availableCameras:g,activeCamera:E,onSelect:e=>qc(this,void 0,void 0,(function*(){A(e);yield h.switchCamera(e.deviceId,!1,e.facingMode)}))},isCancelDisabled:null===h,onSizeCalculated:e=>{l(e)}}),!r&&I,M.Ay.createElement(Uc,{navigationBarSize:c,visible:r,onCloseClick:e.onClose,config:e.configuration.cameraPermission})))))}class jc{constructor(e){this.document=e}}var Qc=n(3684),Jc=n(7047);function Kc(e){const{color:t}=e;return M.Ay.createElement("svg",{width:"286",height:"240",viewBox:"0 0 286 240",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("rect",{width:"286",height:"238.748",transform:"translate(0 0.489746)",fill:"transparent"}),M.Ay.createElement("path",{d:"M173.211 205.398H94.7913C93.9699 205.398 93.3054 204.733 93.3054 203.912V80.0909C93.3054 79.2695 93.9699 78.605 94.7913 78.605H173.211C174.033 78.605 174.697 79.2695 174.697 80.0909V203.912C174.697 204.733 174.033 205.398 173.211 205.398ZM96.2771 202.426H171.726V81.5767H96.2771V202.426ZM160.829 184.761H152.575V181.789H160.829V184.761ZM160.829 168.252H107.173V165.28H160.829V168.252ZM160.829 151.742H152.575V148.77H160.829V151.742ZM136.065 151.742H107.173V148.77H136.065V151.742ZM160.829 135.233H152.575V132.261H160.829V135.233ZM136.065 135.233H107.173V132.261H136.065V135.233ZM160.829 118.723H152.575V115.751H160.829V118.723ZM136.065 118.723H107.173V115.751H136.065V118.723ZM160.829 102.214H152.575V99.2419H160.829V102.214ZM136.065 102.214H107.173V99.2419H136.065V102.214Z",fill:t}),M.Ay.createElement("path",{d:"M178.826 66.5525H170.571V63.5808H178.826V66.5525ZM154.062 66.5525H125.17V63.5808H154.062V66.5525ZM178.826 50.043H170.571V47.0713H178.826V50.043ZM154.062 50.043H125.17V47.0713H154.062V50.043Z",fill:t}),M.Ay.createElement("path",{d:"M111.302 35.8152C111.302 34.9939 111.967 34.3293 112.788 34.3293H191.208C192.03 34.3293 192.694 34.9939 192.694 35.8152V135.232C192.694 136.053 192.03 136.718 191.208 136.718H173.213V133.746H189.722V37.3011H114.274V80.0903H111.302V35.8152Z",fill:t}),M.Ay.createElement("path",{d:"M174.46 79.6618C174.202 78.8819 173.363 78.4596 172.583 78.7174L172.105 82.0053L188.88 134.381L191.134 136.258C191.134 136.258 191.134 134.195 192.079 134.381L174.46 79.6618Z",fill:t}),M.Ay.createElement("g",{style:{mixBlendMode:"soft-light"}},M.Ay.createElement("path",{d:"M172.051 142.95V124.876L96.3274 152.397V170.471L172.051 142.95Z",fill:t})))}function $c(e){const{color:t}=e;return M.Ay.createElement("svg",{width:"286",height:"239",viewBox:"0 0 286 239",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("rect",{width:"286",height:"238.748",transform:"translate(0 0.237671)",fill:"transparent"}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.3575 73.6228C84.5124 73.6228 83.8287 74.3065 83.8287 75.1516V189.81C83.8287 190.655 84.5124 191.339 85.3575 191.339H174.536C175.381 191.339 176.065 190.655 176.065 189.81V100.631C176.065 100.224 175.904 99.8371 175.619 99.5526L150.139 74.073C149.851 73.7842 149.464 73.6228 149.057 73.6228H85.3575ZM86.8863 76.6804V188.281H173.007V102.16H149.057C148.212 102.16 147.528 101.476 147.528 100.631V76.6804H86.8863ZM170.846 99.1025L150.585 78.8419V99.1025H170.846Z",fill:t}),M.Ay.createElement("path",{d:"M147.528 177.665H96.5686V174.607H147.528V177.665ZM164.514 167.048H96.5686V163.991H164.514V167.048ZM164.514 156.432H96.5686V153.374H164.514V156.432ZM133.149 105.956L130.987 103.795L119.33 115.456L109.767 105.893C113.742 104.559 116.613 100.801 116.613 96.3846C116.613 90.8598 112.115 86.3626 106.591 86.3626H96.5686V121.864H99.6261V106.407H105.958L117.169 117.618L105.508 129.279L107.669 131.44L119.33 119.779L130.992 131.44L133.153 129.279L121.492 117.618L133.149 105.956ZM99.6261 103.349V89.4202H106.591C110.429 89.4202 113.555 92.5457 113.555 96.3846C113.555 100.224 110.429 103.349 106.591 103.349H99.6261Z",fill:t}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M98.0973 60.883C97.2523 60.883 96.5686 61.5667 96.5686 62.4118V73.6228H99.6261V63.9406H160.268V87.8914C160.268 88.7365 160.951 89.4202 161.796 89.4202H185.747V175.541H176.076V178.599H187.276C188.121 178.599 188.805 177.915 188.805 177.07V87.8914C188.805 87.4838 188.643 87.0973 188.359 86.8128L162.879 61.3331C162.591 61.0444 162.204 60.883 161.796 60.883H98.0973ZM183.586 86.3626L163.325 66.1021V86.3626H183.586Z",fill:t}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M110.837 48.1432C109.992 48.1432 109.308 48.8269 109.308 49.672V60.883H112.366V51.2007H173.007V75.1516C173.007 75.9967 173.691 76.6804 174.536 76.6804H198.487V162.802H188.816V165.859H200.016C200.861 165.859 201.545 165.175 201.545 164.33V75.1516C201.545 74.7439 201.383 74.3575 201.099 74.073L175.619 48.5933C175.33 48.3046 174.944 48.1432 174.536 48.1432H110.837ZM196.326 73.6228L176.065 53.3623V73.6228H196.326Z",fill:t}),M.Ay.createElement("g",{style:{mixBlendMode:"soft-light"}},M.Ay.createElement("path",{d:"M172.844 188.832H86.629V113.394L172.844 148.212V188.832Z",fill:"url(#paint0_linear_557_1465)"})),M.Ay.createElement("defs",null,M.Ay.createElement("linearGradient",{id:"paint0_linear_557_1465",x1:"130.151",y1:"118.368",x2:"129.736",y2:"188.832",gradientUnits:"userSpaceOnUse"},M.Ay.createElement("stop",{stopColor:t,stopOpacity:"0"}),M.Ay.createElement("stop",{offset:"0.722496",stopColor:t}))))}function el(e){const{color:t}=e;return M.Ay.createElement("svg",{width:"286",height:"239",viewBox:"0 0 286 239",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("rect",{width:"286",height:"238.748",fill:"transparent"}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.2563 72.9183C84.4112 72.9183 83.7275 73.607 83.7275 74.4583V189.956C83.7275 190.807 84.4112 191.496 85.2563 191.496H174.435C175.28 191.496 175.964 190.807 175.964 189.956V100.124C175.964 99.7137 175.802 99.3244 175.518 99.0378L150.038 73.3717C149.75 73.0808 149.363 72.9183 148.955 72.9183H85.2563ZM86.7851 75.9982V188.416H172.906V101.664H148.955C148.11 101.664 147.427 100.976 147.427 100.124V75.9982H86.7851ZM170.745 98.5844L150.484 78.1756V98.5844H170.745Z",fill:t}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M161.695 124.25H97.9961V127.33H161.695V124.25ZM161.695 137.084H97.9961V140.168H161.695V137.084ZM161.695 149.917H97.9961V153.001H161.695V149.917ZM161.695 162.75H97.9961V165.834H161.695V162.75Z",fill:t}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M97.9961 60.0852C97.1511 60.0852 96.4674 60.774 96.4674 61.6252V72.9183H99.5249V63.1652H160.166V87.2913C160.166 88.1426 160.85 88.8313 161.695 88.8313H185.646V175.583H175.975V178.663H187.175C188.02 178.663 188.704 177.974 188.704 177.123V87.2913C188.704 86.8807 188.542 86.4914 188.258 86.2048L162.778 60.5387C162.489 60.2478 162.103 60.0852 161.695 60.0852H97.9961ZM183.485 85.7513L163.224 65.3425V85.7513H183.485Z",fill:t}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M110.736 47.2522C109.891 47.2522 109.207 47.9409 109.207 48.7922V60.0852H112.265V50.3321H172.906V74.4583C172.906 75.3095 173.59 75.9982 174.435 75.9982H198.386V162.75H188.715V165.83H199.915C200.76 165.83 201.443 165.141 201.443 164.29V74.4583C201.443 74.0476 201.282 73.6583 200.998 73.3717L175.518 47.7056C175.229 47.4147 174.843 47.2522 174.435 47.2522H110.736ZM196.224 72.9183L175.964 52.5095V72.9183H196.224Z",fill:t}),M.Ay.createElement("g",{style:{mixBlendMode:"soft-light"}},M.Ay.createElement("path",{d:"M172.844 188.594H86.629V113.156L172.844 147.974V188.594Z",fill:"url(#paint0_linear_557_1462)"})),M.Ay.createElement("defs",null,M.Ay.createElement("linearGradient",{id:"paint0_linear_557_1462",x1:"130.151",y1:"118.13",x2:"129.736",y2:"188.594",gradientUnits:"userSpaceOnUse"},M.Ay.createElement("stop",{stopColor:t,stopOpacity:"0"}),M.Ay.createElement("stop",{offset:"0.722496",stopColor:t}))))}function tl(e){const{color:t}=e;return M.Ay.createElement("svg",{width:"286",height:"239",viewBox:"0 0 286 239",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("rect",{width:"286",height:"238.748",transform:"translate(0 0.252197)",fill:"transparent"}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8858 67.2461H206.331C207.315 67.2461 208.112 68.0427 208.112 69.0274V148.198C208.112 149.183 207.315 149.979 206.331 149.979H57.8858C56.9011 149.979 56.1045 149.183 56.1045 148.198V69.0274C56.1045 68.0427 56.9011 67.2461 57.8858 67.2461ZM204.549 70.8088H188.502L184.935 70.8038H79.2767L75.719 70.8088H59.6672V146.417H204.549V70.8088Z",fill:t}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.232 131.072H70.4609V134.579H192.232V131.072Z",fill:t}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M137.023 124.445H70.4609V127.951H137.023V124.445Z",fill:t}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M154.834 91.8126C156.378 91.2748 157.875 91.8812 159.135 93.0581C159.912 93.7836 160.383 94.9148 160.697 96.2223C161.89 101.192 158.931 105.086 155.401 107.747C154.487 108.436 153.507 109.065 152.504 109.634C152.629 111.883 152.971 113.886 153.518 115.307C153.958 116.449 154.414 116.91 154.695 117.045C154.824 117.106 155.197 117.245 156.082 116.593C157.154 115.804 158.48 114.339 160.054 111.889C162.325 108.353 163.811 105.745 164.733 103.853C164.871 103.57 164.994 103.305 165.105 103.06C164.618 101.743 165.065 100.362 165.498 99.625C165.624 99.4115 165.788 99.1797 165.997 98.9797C166.151 98.8316 166.576 98.4573 167.217 98.4428C167.593 98.4343 167.97 98.5556 168.278 98.8062C168.562 99.0368 168.712 99.3145 168.792 99.5191C168.942 99.9021 168.95 100.295 168.937 100.573C168.909 101.173 168.741 101.894 168.437 102.749C168.829 103.064 169.379 103.266 170.06 103.302C171.173 103.362 172.298 102.941 172.954 102.213C174.863 100.095 177.418 98.185 180.536 97.8253C181.365 97.7297 182.224 97.6408 183.098 97.5504C186.089 97.241 189.256 96.9135 191.961 96.2372C193.699 95.8027 195.099 95.2557 196.067 94.5713C196.998 93.9135 197.455 93.1906 197.539 92.3236L200.494 92.6118C200.305 94.546 199.225 95.9753 197.781 96.9957C196.375 97.9894 194.564 98.6466 192.681 99.1174C189.748 99.8507 186.282 100.208 183.263 100.519C182.426 100.606 181.624 100.688 180.876 100.775C178.776 101.017 176.834 102.343 175.159 104.201C173.808 105.699 171.758 106.366 169.903 106.267C168.995 106.219 168.054 105.978 167.227 105.507C166.23 107.501 164.725 110.11 162.552 113.493C160.889 116.083 159.331 117.887 157.843 118.984C156.448 120.011 154.889 120.429 153.414 119.723C152.091 119.09 151.273 117.738 150.747 116.374C150.182 114.907 149.821 113.068 149.634 111.082C147.662 111.967 145.746 112.619 144.193 113.033L143.427 110.165C145.145 109.706 147.328 108.933 149.482 107.874C149.478 107.086 149.496 106.294 149.536 105.509C149.738 101.57 150.496 97.4995 151.843 94.8477C152.501 93.5543 153.451 92.2939 154.834 91.8126ZM152.479 106.174C152.868 105.918 153.248 105.652 153.614 105.376C156.807 102.969 158.585 100.145 157.81 96.9152C157.538 95.781 157.238 95.349 157.108 95.2275C156.299 94.4715 155.923 94.577 155.81 94.6164C155.534 94.7123 155.042 95.107 154.49 96.1927C153.42 98.2992 152.695 101.883 152.501 105.661C152.493 105.832 152.485 106.003 152.479 106.174ZM165.971 100.375C165.971 100.375 165.972 100.379 165.972 100.388L165.971 100.375Z",fill:t}),M.Ay.createElement("path",{d:"M74.5812 93.19H81.7632C84.4565 93.19 86.647 95.3805 86.647 98.0737C86.647 100.767 84.4565 102.957 81.7632 102.957H79.4686V107.051H76.8794V102.957H70.9902V100.372H81.7632C83.0308 100.372 84.0615 99.3413 84.0615 98.0737C84.0615 96.8061 83.0308 95.7755 81.7632 95.7755H74.5812C71.888 95.7755 69.6974 93.585 69.6974 90.8917C69.6974 88.1985 71.888 86.0079 74.5812 86.0079H76.8794V81.9142H79.465V86.0079H85.3542V88.5935H74.5812C73.3136 88.5935 72.283 89.6241 72.283 90.8917C72.283 92.1593 73.3136 93.19 74.5812 93.19Z",fill:t}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.851 89.0878H74.5831C73.5888 89.0878 72.7797 89.8969 72.7797 90.8912C72.7797 91.8856 73.5888 92.6947 74.5831 92.6947H81.7651C84.7317 92.6947 87.1437 95.1067 87.1437 98.0732C87.1437 101.04 84.7317 103.452 81.7651 103.452H79.9653V107.546H76.3866V103.452H70.4973V99.8767H81.7651C82.7595 99.8767 83.5686 99.0676 83.5686 98.0732C83.5686 97.0789 82.7595 96.2698 81.7651 96.2698H74.5831C71.6166 96.2698 69.2046 93.8578 69.2046 90.8912C69.2046 87.9247 71.6166 85.5126 74.5831 85.5126H76.3866V81.4189H79.9617V85.5126H85.851V89.0878ZM85.3542 86.0079V88.5935H74.5812C73.3136 88.5935 72.283 89.6241 72.283 90.8917C72.283 92.1593 73.3136 93.19 74.5812 93.19H81.7632C84.4565 93.19 86.647 95.3805 86.647 98.0737C86.647 100.767 84.4565 102.957 81.7632 102.957H79.4686V107.051H76.8794V102.957H70.9902V100.372H81.7632C83.0308 100.372 84.0615 99.3413 84.0615 98.0737C84.0615 96.8061 83.0308 95.7755 81.7632 95.7755H74.5812C71.888 95.7755 69.6974 93.585 69.6974 90.8917C69.6974 88.1985 71.888 86.0079 74.5812 86.0079H76.8794V81.9142H79.465V86.0079H85.3542Z",fill:t}),M.Ay.createElement("path",{d:"M77.888 170.225C77.888 171.209 78.6847 172.006 79.6694 172.006H228.114C229.099 172.006 229.895 171.209 229.895 170.225V91.0542C229.895 90.0696 229.099 89.2729 228.114 89.2729H206.718V92.8306L210.286 92.8356H226.333V168.443H81.4507V148.197H77.888V170.225Z",fill:t}),M.Ay.createElement("g",{style:{mixBlendMode:"soft-light"}},M.Ay.createElement("path",{d:"M124.937 70.8245H143.011L115.49 146.438H97.4164L124.937 70.8245Z",fill:t})),M.Ay.createElement("g",{style:{mixBlendMode:"soft-light"}},M.Ay.createElement("path",{d:"M157.336 70.8245H162.725L134.954 146.438H129.565L157.336 70.8245Z",fill:t})))}function nl(e){const{color:t}=e;return M.Ay.createElement("svg",{width:"286",height:"240",viewBox:"0 0 286 240",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("rect",{width:"286",height:"238.748",transform:"translate(0 0.371094)",fill:"transparent"}),M.Ay.createElement("path",{d:"M130.218 153.186H68.4406C63.9202 153.186 60.516 149.782 60.516 145.272V72.9456C60.516 68.4316 63.9202 65.0322 68.4406 65.0322H183.475C187.996 65.0322 191.4 68.4316 191.4 72.9456V126.127H188.332V72.9456C188.332 70.1334 186.291 68.0955 183.475 68.0955H68.4406C65.6244 68.0955 63.5836 70.1334 63.5836 72.9456V145.272C63.5836 148.08 65.6244 150.122 68.4406 150.122H130.218V153.186ZM167.041 114.518H128.493V111.455H167.041V114.518Z",fill:t}),M.Ay.createElement("path",{d:"M121.698 153.186H183.476C187.997 153.186 191.401 149.782 191.401 145.272L191.4 72.9456C191.4 68.4316 187.996 65.0322 183.475 65.0322H68.4406C63.9202 65.0322 60.516 68.4316 60.516 72.9456L60.5169 126.127H63.5845L63.5836 72.9456C63.5836 70.1334 65.6244 68.0955 68.4406 68.0955H183.475C186.291 68.0955 188.332 70.1334 188.332 72.9456L188.333 145.272C188.333 148.08 186.292 150.122 183.476 150.122H121.698V153.186Z",fill:t}),M.Ay.createElement("path",{d:"M215.429 174.458H104.655C99.1122 174.458 94.6003 169.953 94.6003 164.418V152.25H97.6679V164.418C97.6679 168.264 100.804 171.395 104.655 171.395H215.429C219.281 171.395 222.417 168.268 222.417 164.418V96.3454C222.417 92.4994 219.285 89.368 215.429 89.368H190.462V86.3048H215.429C220.976 86.3048 225.484 90.8103 225.484 96.3454V164.418C225.484 169.957 220.976 174.458 215.429 174.458Z",fill:t}),M.Ay.createElement("path",{d:"M166.838 91.7213H128.493V88.658H166.838V91.7213Z",fill:"#A5A5A5"}),M.Ay.createElement("path",{d:"M167.041 103.232H128.696V100.169H167.041V103.232Z",fill:"#A5A5A5"}),M.Ay.createElement("path",{d:"M177.817 140.631H74.0316V137.568H177.817V140.631Z",fill:"#A5A5A5"}),M.Ay.createElement("path",{d:"M208.701 108.301H191.401V105.238H208.701V108.301Z",fill:"#A5A5A5"}),M.Ay.createElement("path",{d:"M208.904 119.812H191.603V116.748H208.904V119.812Z",fill:"#A5A5A5"}),M.Ay.createElement("path",{d:"M191.401 128.035V131.098H208.904V128.035H191.401Z",fill:"#A5A5A5"}),M.Ay.createElement("path",{d:"M112.159 121.403H115.229V119.282C115.229 111.233 110.38 103.947 103.123 100.631C106.044 98.1624 107.766 94.5534 107.766 90.656C107.766 83.3827 101.818 77.4666 94.5044 77.4666C87.1911 77.4666 81.2423 83.3827 81.2423 90.656C81.2423 94.5534 82.9651 98.1624 85.8862 100.631C78.6283 103.947 73.7798 111.233 73.7798 119.282V121.403H76.8501V119.282C76.8501 111.551 82.1165 104.643 89.6559 102.488C90.2614 102.314 90.7006 101.788 90.7603 101.165C90.82 100.542 90.4917 99.9436 89.9288 99.6595C86.4619 97.908 84.3127 94.4601 84.3127 90.656C84.3127 85.0664 88.884 80.5201 94.5044 80.5201C100.125 80.5201 104.696 85.0664 104.696 90.656C104.696 94.4601 102.543 97.908 99.08 99.6595C98.5171 99.9436 98.1888 100.542 98.2485 101.165C98.3082 101.788 98.7474 102.314 99.3529 102.488C106.892 104.643 112.159 111.551 112.159 119.282V121.403Z",fill:"#A5A5A5"}),M.Ay.createElement("g",{style:{mixBlendMode:"soft-light"}},M.Ay.createElement("path",{d:"M126.999 68.3479H145.072L117.552 150.417H99.4783L126.999 68.3479Z",fill:t})),M.Ay.createElement("g",{style:{mixBlendMode:"soft-light"}},M.Ay.createElement("path",{d:"M164.554 68.3479H169.942L142.171 150.417H136.783L164.554 68.3479Z",fill:t})))}function il(e){const{color:t}=e;return M.Ay.createElement("svg",{width:"286",height:"239",viewBox:"0 0 286 239",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("rect",{width:"286",height:"238.748",transform:"translate(0 0.118896)",fill:"transparent"}),M.Ay.createElement("path",{d:"M130.218 152.933H68.4406C63.9202 152.933 60.516 149.53 60.516 145.02V72.6932C60.516 68.1791 63.9202 64.7798 68.4406 64.7798H183.475C187.996 64.7798 191.4 68.1791 191.4 72.6932V125.875H188.332V72.6932C188.332 69.8809 186.291 67.843 183.475 67.843H68.4406C65.6244 67.843 63.5836 69.8809 63.5836 72.6932V145.02C63.5836 147.828 65.6244 149.87 68.4406 149.87H130.218V152.933ZM113.176 135.915H74.8314V132.852H113.176V135.915ZM100.395 101.879H74.8314C73.9836 101.879 73.2976 101.194 73.2976 100.348V79.075C73.2976 78.2283 73.9836 77.5433 74.8314 77.5433H100.395C101.242 77.5433 101.928 78.2283 101.928 79.075V100.348C101.928 101.194 101.242 101.879 100.395 101.879ZM93.4074 98.8159H98.8609V89.1156H93.4074V98.8159ZM84.8863 98.8159H90.344V87.584C90.344 86.7373 91.03 86.0524 91.8778 86.0524H98.8651V80.6066H84.8863V98.8159ZM76.3652 98.8159H81.8187V93.3701H76.3652V98.8159ZM76.3652 90.3069H81.8187V80.6066H76.3652V90.3069Z",fill:t}),M.Ay.createElement("path",{d:"M121.698 152.933H183.476C187.997 152.933 191.401 149.53 191.401 145.02L191.4 72.6932C191.4 68.1791 187.996 64.7798 183.475 64.7798H68.4406C63.9202 64.7798 60.516 68.1791 60.516 72.6932L60.5169 125.875H63.5845L63.5836 72.6932C63.5836 69.8809 65.6244 67.843 68.4406 67.843H183.475C186.291 67.843 188.332 69.8809 188.332 72.6932L188.333 145.02C188.333 147.828 186.292 149.87 183.476 149.87H121.698V152.933Z",fill:t}),M.Ay.createElement("path",{d:"M215.429 174.206H104.655C99.1122 174.206 94.6003 169.7 94.6003 164.165V151.997H97.6679V164.165C97.6679 168.011 100.804 171.143 104.655 171.143H215.429C219.281 171.143 222.417 168.016 222.417 164.165V118.897H190.462V115.834H222.417V106.134H190.462V103.07H222.417V96.093C222.417 92.2469 219.285 89.1156 215.429 89.1156H190.462V86.0524H215.429C220.976 86.0524 225.484 90.5579 225.484 96.093V164.165C225.484 169.705 220.976 174.206 215.429 174.206Z",fill:t}),M.Ay.createElement("g",{style:{mixBlendMode:"soft-light"}},M.Ay.createElement("path",{d:"M111.248 68.0957H129.322L101.801 150.165H83.7275L111.248 68.0957Z",fill:t})),M.Ay.createElement("g",{style:{mixBlendMode:"soft-light"}},M.Ay.createElement("path",{d:"M154.606 68.0957H159.994L132.223 150.165H126.835L154.606 68.0957Z",fill:t})))}function rl(e){const{color:t}=e;return M.Ay.createElement("svg",{width:"337",height:"239",viewBox:"0 0 337 239",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("g",{clipPath:"url(#clip0_1905_44505)"},M.Ay.createElement("g",{clipPath:"url(#clip1_1905_44505)"},M.Ay.createElement("rect",{x:"123.533",y:"171.794",width:"141.309",height:"98.298",rx:"4.5",transform:"rotate(-75 123.533 171.794)",fill:"#CCCCCC"}),M.Ay.createElement("rect",{x:"141.935",y:"103.117",width:"70.2",height:"98.3382",transform:"rotate(-75 141.935 103.117)",fill:"#707070"}),M.Ay.createElement("path",{d:"M186.43 78.0454C185.241 82.4824 180.658 85.123 176.213 83.9321C171.768 82.7411 169.12 78.1626 170.308 73.7256C171.497 69.2887 176.081 66.6478 180.525 67.8387C184.97 69.0297 187.619 73.6084 186.43 78.0454Z",fill:"#979696"}),M.Ay.createElement("path",{d:"M208.798 70.2396L201.899 95.989C201.454 97.6486 199.746 98.6329 198.083 98.1874C189.312 95.8371 184.085 86.8014 186.431 78.0452C188.777 69.2891 197.822 64.0775 206.593 66.4278C208.256 66.8735 209.243 68.5801 208.798 70.2396Z",fill:"#979696"}),M.Ay.createElement("rect",{x:"193.097",y:"176.458",width:"114.3",height:"5.4",rx:"2.7",transform:"rotate(-75 193.097 176.458)",fill:"black",fillOpacity:"0.48"}),M.Ay.createElement("rect",{x:"200.052",y:"178.321",width:"114.3",height:"5.4",rx:"2.7",transform:"rotate(-75 200.052 178.321)",fill:"black",fillOpacity:"0.48"}),M.Ay.createElement("rect",{x:"207.006",y:"180.184",width:"114.3",height:"5.4",rx:"2.7",transform:"rotate(-75 207.006 180.184)",fill:"black",fillOpacity:"0.48"}),M.Ay.createElement("rect",{x:"123.533",y:"171.794",width:"141.3",height:"12.6",transform:"rotate(-75 123.533 171.794)",fill:"black",fillOpacity:"0.15"})),M.Ay.createElement("rect",{x:"83.5",y:"60.7505",width:"98.2995",height:"141.306",rx:"4.5",fill:"#2D2D2D"}),M.Ay.createElement("path",{d:"M132.49 82.3113C112.132 82.3113 95.6279 98.8152 95.6279 119.174C95.6279 139.532 112.132 156.036 132.49 156.036C152.849 156.036 169.353 139.532 169.353 119.174C169.353 98.8152 152.849 82.3113 132.49 82.3113ZM159.771 105.35H146.486C145.215 98.9838 143.231 93.838 141.205 89.868C149.322 92.2906 155.987 97.9198 159.771 105.35ZM141.706 119.174C141.706 121.916 141.5 124.435 141.218 126.853H123.763C123.48 124.435 123.274 121.916 123.274 119.174C123.274 116.43 123.477 113.911 123.757 111.494H141.224C141.503 113.911 141.706 116.43 141.706 119.174ZM124.782 105.35C126.488 97.6518 129.302 92.0591 131.596 88.5448C131.899 88.536 132.184 88.455 132.49 88.455C132.799 88.455 133.085 88.5376 133.393 88.5464C135.698 92.0832 138.502 97.6783 140.199 105.35H124.782ZM123.776 89.868C121.757 93.8296 119.771 98.9811 118.499 105.35H105.209C108.994 97.9198 115.658 92.2921 123.776 89.868ZM102.862 111.494H117.566C117.309 113.927 117.131 116.457 117.131 119.174C117.131 121.891 117.314 124.419 117.575 126.853H102.862C102.22 124.384 101.771 121.841 101.771 119.174C101.772 116.507 102.22 113.963 102.862 111.494ZM105.209 132.997H118.514C119.798 139.378 121.785 144.567 123.767 148.476C115.654 146.052 108.992 140.425 105.209 132.997ZM131.596 149.802C129.395 146.416 126.527 140.808 124.79 132.997H140.191C138.457 140.803 135.592 146.408 133.383 149.802C133.08 149.811 132.797 149.892 132.491 149.892C132.185 149.892 131.901 149.812 131.596 149.802ZM141.217 148.476C143.201 144.564 145.187 139.378 146.468 132.997H159.771C155.988 140.424 149.329 146.051 141.217 148.476ZM162.119 126.853H147.407C147.667 124.419 147.85 121.891 147.85 119.174C147.85 116.457 147.673 113.927 147.416 111.494H162.118C162.76 113.963 163.209 116.506 163.209 119.174C163.209 121.841 162.76 124.385 162.119 126.853Z",fill:"#CCCCCC"}),M.Ay.createElement("path",{d:"M99.6611 180.618V171.822H102.979C103.563 171.822 104.009 171.85 104.317 171.906C104.749 171.979 105.111 172.116 105.403 172.317C105.695 172.519 105.93 172.803 106.108 173.166C106.286 173.53 106.375 173.93 106.375 174.366C106.375 175.114 106.137 175.747 105.661 176.265C105.185 176.783 104.325 177.042 103.081 177.042H100.825V180.618H99.6611ZM100.825 176.004H103.099C103.851 176.004 104.385 175.864 104.701 175.584C105.017 175.304 105.175 174.91 105.175 174.402C105.175 174.034 105.082 173.719 104.896 173.457C104.71 173.195 104.464 173.022 104.161 172.938C103.964 172.886 103.603 172.86 103.075 172.86H100.825V176.004Z",fill:"#CCCCCC"}),M.Ay.createElement("path",{d:"M105.979 180.618L109.357 171.822H110.611L114.211 180.618H112.885L111.859 177.954H108.182L107.216 180.618H105.979ZM108.517 177.006H111.499L110.581 174.57C110.301 173.83 110.093 173.222 109.957 172.746C109.845 173.31 109.687 173.87 109.483 174.426L108.517 177.006Z",fill:"#CCCCCC"}),M.Ay.createElement("path",{d:"M114.746 177.791L115.844 177.695C115.896 178.135 116.017 178.496 116.207 178.778C116.397 179.06 116.692 179.288 117.092 179.462C117.492 179.636 117.942 179.723 118.442 179.723C118.886 179.723 119.278 179.657 119.618 179.525C119.958 179.393 120.211 179.213 120.377 178.982C120.543 178.752 120.626 178.501 120.626 178.229C120.626 177.953 120.546 177.712 120.386 177.506C120.226 177.3 119.962 177.128 119.594 176.987C119.358 176.895 118.836 176.752 118.028 176.558C117.22 176.364 116.654 176.181 116.33 176.009C115.91 175.789 115.597 175.516 115.391 175.19C115.185 174.864 115.082 174.499 115.082 174.095C115.082 173.651 115.208 173.236 115.46 172.85C115.712 172.464 116.08 172.171 116.564 171.971C117.048 171.771 117.586 171.671 118.178 171.671C118.83 171.671 119.405 171.776 119.903 171.986C120.401 172.196 120.783 172.505 121.051 172.913C121.319 173.321 121.463 173.783 121.483 174.299L120.368 174.383C120.308 173.827 120.105 173.407 119.759 173.123C119.413 172.839 118.902 172.697 118.226 172.697C117.522 172.697 117.009 172.826 116.687 173.084C116.365 173.342 116.204 173.653 116.204 174.017C116.204 174.333 116.318 174.593 116.546 174.797C116.77 175.001 117.354 175.21 118.301 175.424C119.246 175.638 119.895 175.825 120.247 175.985C120.759 176.221 121.137 176.52 121.381 176.882C121.625 177.244 121.747 177.661 121.747 178.133C121.747 178.601 121.613 179.042 121.345 179.456C121.077 179.87 120.692 180.192 120.19 180.422C119.688 180.652 119.123 180.767 118.495 180.767C117.699 180.767 117.032 180.651 116.494 180.419C115.956 180.187 115.534 179.838 115.228 179.372C114.923 178.907 114.762 178.379 114.746 177.791Z",fill:"#CCCCCC"}),M.Ay.createElement("path",{d:"M122.939 177.791L124.037 177.695C124.089 178.135 124.21 178.496 124.4 178.778C124.59 179.06 124.885 179.288 125.285 179.462C125.685 179.636 126.135 179.723 126.635 179.723C127.079 179.723 127.471 179.657 127.811 179.525C128.151 179.393 128.404 179.213 128.571 178.982C128.736 178.752 128.819 178.501 128.819 178.229C128.819 177.953 128.74 177.712 128.579 177.506C128.419 177.3 128.155 177.128 127.787 176.987C127.551 176.895 127.029 176.752 126.221 176.558C125.413 176.364 124.847 176.181 124.523 176.009C124.103 175.789 123.79 175.516 123.585 175.19C123.378 174.864 123.275 174.499 123.275 174.095C123.275 173.651 123.401 173.236 123.653 172.85C123.905 172.464 124.273 172.171 124.757 171.971C125.241 171.771 125.779 171.671 126.371 171.671C127.023 171.671 127.598 171.776 128.096 171.986C128.594 172.196 128.977 172.505 129.245 172.913C129.513 173.321 129.657 173.783 129.677 174.299L128.561 174.383C128.501 173.827 128.298 173.407 127.952 173.123C127.606 172.839 127.095 172.697 126.419 172.697C125.715 172.697 125.202 172.826 124.88 173.084C124.558 173.342 124.397 173.653 124.397 174.017C124.397 174.333 124.511 174.593 124.739 174.797C124.963 175.001 125.548 175.21 126.494 175.424C127.44 175.638 128.089 175.825 128.441 175.985C128.953 176.221 129.33 176.52 129.575 176.882C129.818 177.244 129.941 177.661 129.941 178.133C129.941 178.601 129.807 179.042 129.539 179.456C129.271 179.87 128.885 180.192 128.384 180.422C127.881 180.652 127.316 180.767 126.689 180.767C125.893 180.767 125.226 180.651 124.688 180.419C124.15 180.187 123.728 179.838 123.422 179.372C123.116 178.907 122.955 178.379 122.939 177.791Z",fill:"#CCCCCC"}),M.Ay.createElement("path",{d:"M131.533 180.618V171.822H134.851C135.435 171.822 135.881 171.85 136.189 171.906C136.621 171.979 136.983 172.116 137.275 172.317C137.567 172.519 137.802 172.803 137.98 173.166C138.158 173.53 138.247 173.93 138.247 174.366C138.247 175.114 138.009 175.747 137.533 176.265C137.057 176.783 136.197 177.042 134.953 177.042H132.697V180.618H131.533ZM132.697 176.004H134.971C135.723 176.004 136.257 175.864 136.573 175.584C136.889 175.304 137.047 174.91 137.047 174.402C137.047 174.034 136.954 173.719 136.768 173.457C136.582 173.195 136.336 173.022 136.033 172.938C135.836 172.886 135.475 172.86 134.947 172.86H132.697V176.004Z",fill:"#CCCCCC"}),M.Ay.createElement("path",{d:"M139.374 176.334C139.374 174.874 139.766 173.731 140.55 172.905C141.334 172.079 142.346 171.666 143.586 171.666C144.398 171.666 145.13 171.86 145.782 172.248C146.434 172.636 146.931 173.177 147.273 173.871C147.615 174.565 147.786 175.352 147.786 176.231C147.786 177.123 147.606 177.921 147.246 178.625C146.886 179.329 146.376 179.862 145.716 180.224C145.056 180.586 144.344 180.767 143.58 180.767C142.752 180.767 142.012 180.567 141.36 180.167C140.708 179.767 140.215 179.221 139.879 178.529C139.542 177.838 139.374 177.106 139.374 176.334ZM140.574 176.352C140.574 177.412 140.859 178.247 141.429 178.856C141.999 179.467 142.714 179.771 143.574 179.771C144.45 179.771 145.171 179.463 145.737 178.848C146.303 178.232 146.586 177.358 146.586 176.226C146.586 175.51 146.465 174.885 146.223 174.351C145.981 173.817 145.627 173.403 145.161 173.109C144.695 172.815 144.172 172.668 143.592 172.668C142.768 172.668 142.059 172.951 141.465 173.517C140.871 174.083 140.574 175.028 140.574 176.352Z",fill:"#CCCCCC"}),M.Ay.createElement("path",{d:"M149.304 180.618V171.822H153.203C153.988 171.822 154.583 171.901 154.991 172.059C155.399 172.217 155.725 172.497 155.969 172.896C156.213 173.296 156.335 173.738 156.335 174.222C156.335 174.846 156.133 175.372 155.729 175.8C155.325 176.228 154.701 176.5 153.857 176.616C154.165 176.764 154.399 176.91 154.559 177.054C154.899 177.366 155.221 177.756 155.525 178.224L157.055 180.618H155.591L154.427 178.788C154.087 178.26 153.807 177.856 153.587 177.576C153.367 177.296 153.17 177.1 152.996 176.988C152.822 176.876 152.645 176.798 152.465 176.754C152.333 176.726 152.117 176.712 151.817 176.712H150.467V180.618H149.304V180.618ZM150.468 175.704H152.97C153.501 175.704 153.918 175.649 154.218 175.539C154.517 175.429 154.746 175.253 154.901 175.011C155.057 174.769 155.135 174.506 155.135 174.222C155.135 173.806 154.984 173.464 154.682 173.196C154.38 172.928 153.903 172.794 153.251 172.794H150.467L150.468 175.704Z",fill:"#CCCCCC"}),M.Ay.createElement("path",{d:"M160.174 180.618V172.86H157.276V171.822H164.248V172.86H161.338V180.618H160.174Z",fill:"#CCCCCC"})),M.Ay.createElement("defs",null,M.Ay.createElement("clipPath",{id:"clip0_1905_44505"},M.Ay.createElement("rect",{width:"337",height:"238.748",fill:"white"})),M.Ay.createElement("clipPath",{id:"clip1_1905_44505"},M.Ay.createElement("rect",{x:"123.533",y:"171.794",width:"141.309",height:"98.298",rx:"4.5",transform:"rotate(-75 123.533 171.794)",fill:"white"}))))}function ol(e){if(e.source instanceof Qc.Nc||e.source instanceof Jc.yv)return null;const t="#FFFFFF";return M.Ay.createElement(T.Box,{sx:{backgroundColor:e.fill,borderRadius:1,width:"100%",height:250}},M.Ay.createElement(T.Box,{sx:{padding:"10px",display:"flex",alignItems:"center",justifyContent:"center",height:"calc(100% - 20px)"}},(()=>{if(e.source instanceof Qc.ND)return M.Ay.createElement(Kc,{color:t});if(e.source instanceof Qc.ue)return M.Ay.createElement($c,{color:t});if(e.source instanceof Qc.fk)return M.Ay.createElement(el,{color:t});if(e.source instanceof Qc.CY)return M.Ay.createElement(tl,{color:t});if(e.source instanceof Qc.t6)return M.Ay.createElement(nl,{color:t});if(e.source instanceof Qc.XJ)return M.Ay.createElement(il,{color:t});if(e.source instanceof Jc.eE)return M.Ay.createElement(rl,{color:t});if(e.source instanceof Qc.$E||e.source instanceof Jc._h){const n=e.source;return M.Ay.createElement("img",{src:n.uri,style:{color:t,backgroundColor:e.fill,maxHeight:"100%",maxWidth:"100%"},alt:""})}throw new Error("Unknown intro image type")})()))}function al(e){return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(U,{modalOverlayColor:"rgba(0, 0, 0, 0.64)",open:e.isOpen,onClose:e.onClose,width:"min(calc(100% - 2 * 24px), 500px)",PaperProps:{sx:{m:"10px",p:"10px",maxHeight:`calc(100 * ${Zs} - 2 * 24px)`,backgroundColor:w.dI.getColorValue(e.backgroundColor)}}},M.Ay.createElement(T.Typography,{component:"div"},e.children)))}function sl(e){return M.Ay.createElement(al,{isOpen:e.isOpen,onClose:e.onClose,backgroundColor:e.config.backgroundColor},M.Ay.createElement(T.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"}},M.Ay.createElement(F.D7,{style:Object.assign({fontWeight:600,fontSize:16},B(1)),config:e.config.title}),M.Ay.createElement(T.Box,null,M.Ay.createElement(Ks,{onClick:e.onClose,visible:e.config.topBarDoneButton.visible,text:e.config.topBarDoneButton.text,background:e.config.topBarDoneButton.background,foreground:e.config.topBarDoneButton.foreground,icon:M.Ay.createElement(O(),{sx:{fontSize:24}}),debugName:"close-introduction"}))),M.Ay.createElement(T.Box,{sx:{width:"100%",border:`1px solid ${w.dI.getColorValue(e.config.dividerColor)}`,marginBottom:"12px"}}),M.Ay.createElement(F.D7,{config:e.config.subtitle,style:{fontSize:16,paddingBottom:"10px"}}),e.config.items.map(((e,t)=>{const n=e.image instanceof Qc.Nc;return M.Ay.createElement(T.Box,{key:t,sx:{display:"flex",flexDirection:"column"}},M.Ay.createElement(T.Box,{sx:{pt:n?0:"10px",pb:n?0:"10px",backgroundColor:"rgb(191, 191, 191)"}},M.Ay.createElement(ol,{source:e.image})),M.Ay.createElement(F.D7,{style:{fontWeight:500,fontSize:14,padding:1,paddingLeft:15,textIndent:-15},config:e.text}))})))}function cl(e){const t=w.dI.getColorValue(e.color);return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("path",{d:"M4 21C3.45 21 2.97917 20.8042 2.5875 20.4125C2.19583 20.0208 2 19.55 2 19V7C2 6.45 2.19583 5.97917 2.5875 5.5875C2.97917 5.19583 3.45 5 4 5H7.15L9 3H15L16.85 5H20C20.55 5 21.0208 5.19583 21.4125 5.5875C21.8042 5.97917 22 6.45 22 7V19C22 19.55 21.8042 20.0208 21.4125 20.4125C21.0208 20.8042 20.55 21 20 21H4ZM4 19H20V7H15.95L14.125 5H9.875L8.05 7H4V19Z",fill:t}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.80078 16.5L11.0008 7.5H13.0008L16.2008 16.5H14.3008L13.6008 14.5H10.4008L9.70078 16.5H7.80078ZM13.1508 13.15H10.8508L12.0008 9.5L13.1508 13.15Z",fill:t})))}function ll(e){const t=w.dI.getColorValue(e.color);return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement("svg",{width:"23",height:"22",viewBox:"0 0 23 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{paddingTop:2,paddingRight:1}},M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.018 15.145L22.018 17.145V5.01997C22.018 4.46997 21.8222 3.99914 21.4305 3.60747C21.0388 3.2158 20.568 3.01997 20.018 3.01997H16.868L15.018 1.01997H9.01799L7.51799 2.64497L8.94299 4.06997L9.89299 3.01997H14.143L15.968 5.01997H20.018V15.145ZM2.60549 18.4325C2.99716 18.8241 3.46799 19.02 4.01799 19.02H18.193L20.493 21.32L21.918 19.895L21.043 19.02L19.043 17.02L15.668 13.645L14.218 12.195L10.843 8.81997L9.39299 7.36997L7.04299 5.01997L5.04299 3.01997L2.11799 0.0949707L0.692993 1.51997L2.69533 3.52231C2.66494 3.54959 2.63499 3.57797 2.60549 3.60747C2.21383 3.99914 2.01799 4.46997 2.01799 5.01997V17.02C2.01799 17.57 2.21383 18.0408 2.60549 18.4325ZM4.19299 5.01997H4.01799V17.02H16.193L14.1538 14.9807L12.6236 13.4506L11.7055 12.5325H13.618L13.726 12.841C13.9158 12.6605 14.0761 12.4519 14.2069 12.2153L13.1654 11.1741L13.168 11.1825H10.868L11.4203 9.42965L10.8219 8.83152C10.4317 9.04725 10.1179 9.3434 9.88049 9.71997C9.74455 9.93561 9.64684 10.1671 9.58737 10.4143L11.7055 12.5325H10.418L9.71799 14.5325H7.81799L9.36226 10.1892L8.05722 8.8842L4.19299 5.01997ZM14.4768 9.63538L10.8494 6.00662L11.018 5.53247H13.018L14.4768 9.63538Z",fill:t}),M.Ay.createElement("path",{d:"M9.88049 9.71997C9.74455 9.93561 9.64684 10.1671 9.58737 10.4143L11.7055 12.5325H13.618L13.726 12.841C13.9158 12.6605 14.0761 12.4519 14.2069 12.2153L13.1654 11.1741L13.168 11.1825H10.868L11.4203 9.42965L10.8219 8.83152C10.4317 9.04725 10.1179 9.3434 9.88049 9.71997Z",fill:t})))}function ul(e){return"NoButtonMode"===e.config._type?M.Ay.createElement(M.Ay.Fragment,null):"PagePreviewMode"===e.config._type?M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.Button,{"data-sb-button-preview":!0,"arial-label":w.dI.getLocalizedText(e.config.accessibilityDescription),disabled:!e.enabled,sx:Object.assign({paddingY:"11px"},qs(e.config.pageCounter.background.fillColor)),onClick:e.onClick},M.Ay.createElement(Dc,{text:`${e.count}`,backgroundColor:w.dI.getColorValue(e.config.pageCounter.background.fillColor),badgeStyle:{borderColor:w.dI.getColorValue(e.config.pageCounter.background.strokeColor),borderWidth:e.config.pageCounter.background.strokeWidth,borderStyle:"solid"},overlap:"rectangular",foregroundColor:w.dI.getColorValue(e.config.pageCounter.foregroundColor)},e.previewImageUrl&&M.Ay.createElement("img",{style:{maxWidth:40,maxHeight:56},src:e.previewImageUrl,alt:"Preview image of the last page"}),!e.previewImageUrl&&M.Ay.createElement(T.Box,{style:{backgroundColor:w.dI.getColorValue(e.config.imagePlaceholderColor),width:40,height:56}})))):"TextButtonMode"===e.config._type?M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.Button,{"data-sb-button-preview":!0,disabled:!e.enabled,onClick:e.onClick,"aria-label":w.dI.getLocalizedText(e.config.accessibilityDescription),sx:Object.assign(Object.assign({},qs(e.config.style.color)),{textTransform:"none"})},M.Ay.createElement(F.D7,{config:e.config.style,replacementArgs:[`${e.count}`]}))):void 0}function dl(e){const t=w.dI.getColorValue(e.color);return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement("svg",{width:"65",height:"65",viewBox:"0 0 65 65",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("path",{d:"M6.72501 49.1933C6.13188 49.5779 5.33687 49.4102 4.97627 48.8021C1.72147 43.3141 0.176561 36.9684 0.556438 30.5796C0.96168 23.7643 3.53609 17.2572 7.90342 12.0093C12.2708 6.76151 18.202 3.04806 24.8305 1.41171C31.4589 -0.224643 38.4369 0.301896 44.7447 2.91437C51.0525 5.52685 56.3594 10.0883 59.8898 15.9321C63.4202 21.7758 64.989 28.5956 64.3669 35.3946C63.7449 42.1936 60.9646 48.6154 56.4323 53.7215C52.1838 58.508 46.6046 61.9032 40.4226 63.4828C39.7377 63.6578 39.0569 63.2143 38.9094 62.523C38.7619 61.8316 39.2037 61.1543 39.888 60.9769C45.5359 59.5128 50.6318 56.4001 54.5177 52.0221C58.6874 47.3245 61.2453 41.4164 61.8176 35.1613C62.3899 28.9063 60.9466 22.6321 57.6986 17.2558C54.4506 11.8796 49.5683 7.68302 43.7651 5.27954C37.9619 2.87607 31.5422 2.39165 25.444 3.89709C19.3459 5.40253 13.8891 8.81891 9.87115 13.6469C5.8532 18.4749 3.48475 24.4615 3.11192 30.7316C2.76447 36.5751 4.16728 42.3794 7.12605 47.4081C7.48454 48.0173 7.31814 48.8087 6.72501 49.1933Z",fill:"url(#paint0_linear_779_506)"},M.Ay.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",to:"0 32.5 32.5",from:"360 32.5 32.5",dur:"2s",begin:"0s",repeatCount:"indefinite"})),M.Ay.createElement("path",{d:"M6.72501 49.1933C6.13188 49.5779 5.33687 49.4102 4.97627 48.8021C1.72147 43.3141 0.176561 36.9684 0.556438 30.5796C0.96168 23.7643 3.53609 17.2572 7.90342 12.0093C12.2708 6.76151 18.202 3.04806 24.8305 1.41171C31.4589 -0.224643 38.4369 0.301896 44.7447 2.91437C51.0525 5.52685 56.3594 10.0883 59.8898 15.9321C63.4202 21.7758 64.989 28.5956 64.3669 35.3946C63.7449 42.1936 60.9646 48.6154 56.4323 53.7215C52.1838 58.508 46.6046 61.9032 40.4226 63.4828C39.7377 63.6578 39.0569 63.2143 38.9094 62.523C38.7619 61.8316 39.2037 61.1543 39.888 60.9769C45.5359 59.5128 50.6318 56.4001 54.5177 52.0221C58.6874 47.3245 61.2453 41.4164 61.8176 35.1613C62.3899 28.9063 60.9466 22.6321 57.6986 17.2558C54.4506 11.8796 49.5683 7.68302 43.7651 5.27954C37.9619 2.87607 31.5422 2.39165 25.444 3.89709C19.3459 5.40253 13.8891 8.81891 9.87115 13.6469C5.8532 18.4749 3.48475 24.4615 3.11192 30.7316C2.76447 36.5751 4.16728 42.3794 7.12605 47.4081C7.48454 48.0173 7.31814 48.8087 6.72501 49.1933Z",fill:"url(#paint1_linear_779_506)"},M.Ay.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",to:"0 32.5 32.5",from:"360 32.5 32.5",dur:"2s",begin:"0s",repeatCount:"indefinite"})),M.Ay.createElement("defs",null,M.Ay.createElement("linearGradient",{id:"paint0_linear_779_506",x1:"60.3614",y1:"33.7149",x2:"37.0173",y2:"64.479",gradientUnits:"userSpaceOnUse"},M.Ay.createElement("stop",{stopColor:t}),M.Ay.createElement("stop",{offset:"0.847585",stopColor:t,stopOpacity:"0"})),M.Ay.createElement("linearGradient",{id:"paint1_linear_779_506",x1:"8.69831",y1:"51.1273",x2:"20.179",y2:"68.157",gradientUnits:"userSpaceOnUse"},M.Ay.createElement("stop",{stopColor:t}),M.Ay.createElement("stop",{offset:"0.370714",stopColor:t,stopOpacity:"0"})))))}function ml(e){const t=w.dI.getColorValue(e.color);return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement("svg",{width:"45",height:"44",viewBox:"0 0 45 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("g",{clipPath:"url(#clip0_780_4723)"},M.Ay.createElement("path",{d:"M22.5127 8.09418C24.6704 8.09418 26.4195 6.34504 26.4195 4.18735C26.4195 2.02967 24.6704 0.280518 22.5127 0.280518C20.355 0.280518 18.6058 2.02967 18.6058 4.18735C18.6058 6.34504 20.355 8.09418 22.5127 8.09418Z",fill:t,fillOpacity:"0.2"},M.Ay.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"-1.4s",repeatCount:"indefinite"})),M.Ay.createElement("path",{d:"M9.93003 13.2714C12.0877 13.2714 13.8369 11.5223 13.8369 9.3646C13.8369 7.20691 12.0877 5.45776 9.93003 5.45776C7.77234 5.45776 6.02319 7.20691 6.02319 9.3646C6.02319 11.5223 7.77234 13.2714 9.93003 13.2714Z",fill:t,fillOpacity:"0.4"},M.Ay.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"-1.2s",repeatCount:"indefinite"})),M.Ay.createElement("path",{d:"M4.80063 25.8922C6.95832 25.8922 8.70747 24.143 8.70747 21.9853C8.70747 19.8276 6.95832 18.0785 4.80063 18.0785C2.64295 18.0785 0.893799 19.8276 0.893799 21.9853C0.893799 24.143 2.64295 25.8922 4.80063 25.8922Z",fill:t,fillOpacity:"0.6"},M.Ay.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"-1.0s",repeatCount:"indefinite"})),M.Ay.createElement("path",{d:"M9.9282 38.4743C12.0859 38.4743 13.835 36.7252 13.835 34.5675C13.835 32.4098 12.0859 30.6606 9.9282 30.6606C7.77051 30.6606 6.02136 32.4098 6.02136 34.5675C6.02136 36.7252 7.77051 38.4743 9.9282 38.4743Z",fill:t,fillOpacity:"0.8"},M.Ay.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"-0.8s",repeatCount:"indefinite"})),M.Ay.createElement("path",{d:"M22.5127 43.7196C24.6704 43.7196 26.4195 41.9704 26.4195 39.8127C26.4195 37.655 24.6704 35.9059 22.5127 35.9059C20.355 35.9059 18.6058 37.655 18.6058 39.8127C18.6058 41.9704 20.355 43.7196 22.5127 43.7196Z",fill:t,fillOpacity:"1"},M.Ay.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"-0.6s",repeatCount:"indefinite"})),M.Ay.createElement("path",{d:"M35.0819 38.4743C37.2396 38.4743 38.9887 36.7252 38.9887 34.5675C38.9887 32.4098 37.2396 30.6606 35.0819 30.6606C32.9242 30.6606 31.175 32.4098 31.175 34.5675C31.175 36.7252 32.9242 38.4743 35.0819 38.4743Z",fill:t,fillOpacity:"0.7"},M.Ay.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"-0.4s",repeatCount:"indefinite"})),M.Ay.createElement("path",{d:"M40.1988 25.8922C42.3565 25.8922 44.1057 24.143 44.1057 21.9853C44.1057 19.8276 42.3565 18.0785 40.1988 18.0785C38.0411 18.0785 36.292 19.8276 36.292 21.9853C36.292 24.143 38.0411 25.8922 40.1988 25.8922Z",fill:t,fillOpacity:"0.5"},M.Ay.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"-0.2s",repeatCount:"indefinite"})),M.Ay.createElement("path",{d:"M35.0819 13.31C37.2396 13.31 38.9887 11.5609 38.9887 9.40317C38.9887 7.24549 37.2396 5.49634 35.0819 5.49634C32.9242 5.49634 31.175 7.24549 31.175 9.40317C31.175 11.5609 32.9242 13.31 35.0819 13.31Z",fill:t,fillOpacity:"0.3"},M.Ay.createElement("animate",{attributeName:"fill-opacity",values:"1;0.75;0.5;0.25;0;0",dur:"1.6s",begin:"0s",repeatCount:"indefinite"}))),M.Ay.createElement("defs",null,M.Ay.createElement("clipPath",{id:"clip0_780_4723"},M.Ay.createElement("rect",{width:"44",height:"44",fill:t,transform:"translate(0.5)"})))))}function hl(e){const t=w.dI.getColorValue(e.innerColor),n=w.dI.getColorValue(e.outerColor);return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement("svg",{width:"65",height:"64",viewBox:"0 0 65 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.5 2.66666C16.2996 2.66666 3.16666 15.7996 3.16666 32C3.16666 48.2004 16.2996 61.3333 32.5 61.3333C48.7004 61.3333 61.8333 48.2004 61.8333 32C61.8333 15.7996 48.7004 2.66666 32.5 2.66666ZM0.5 32C0.5 14.3269 14.8269 0 32.5 0C50.1731 0 64.5 14.3269 64.5 32C64.5 49.6731 50.1731 64 32.5 64C14.8269 64 0.5 49.6731 0.5 32Z",fill:n}),M.Ay.createElement("path",{d:"M56.7425 32C56.7425 45.3885 45.8889 56.242 32.5004 56.242C19.1119 56.242 8.2584 45.3885 8.2584 32C8.2584 18.6115 19.1119 7.75793 32.5004 7.75793C45.8889 7.75793 56.7425 18.6115 56.7425 32Z",fill:t})))}function pl(e){const t="manual"===e.state||"auto"===e.state&&e.config.enabledInAutoSnappingMode;return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.Button,{disabled:!t,onClick:e.onClick,"aria-label":w.dI.getLocalizedText(e.config.accessibilityDescription),"data-sb-button-shutter":!0,sx:Object.assign({width:56,margin:0,padding:0},qs(e.config.innerColor))},"auto"===e.state&&M.Ay.createElement(dl,{key:"auto",color:e.config.outerColor}),"loading"===e.state&&M.Ay.createElement(ml,{key:"loading",color:e.config.outerColor}),"manual"===e.state&&M.Ay.createElement(hl,{key:"manual",innerColor:e.config.innerColor,outerColor:e.config.outerColor})))}function El(e){const t={backgroundColor:w.dI.getColorValue(e.config.sheetColor)};let n=[{config:e.config.okButton,onClick:e.onOkClick,debugName:"ok"},{config:e.config.actionButton,onClick:e.onActionClick,debugName:"action"},{config:e.config.cancelButton,onClick:e.onCancelClick,debugName:"cancel"}].filter((e=>e.config.visible));2===n.length&&(n=n.reverse());const i=2===n.length?6:12,[r,o]=M.Ay.useState(!0);(0,M.vJ)((()=>{o(e.open)}),[e.open]);const a=r?1:.5;return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(U,{modalOverlayColor:e.config.modalOverlayColor,open:e.open,PaperProps:{style:{borderRadius:"8px"}},onClose:e.onCancelClick},M.Ay.createElement(T.DialogContent,{sx:Object.assign(Object.assign({},t),{p:2,pb:1,textAlign:"center"})},M.Ay.createElement(T.Typography,{sx:{fontSize:"16px",fontWeight:"bold"}},M.Ay.createElement(F.D7,{config:e.config.title})),M.Ay.createElement(T.Typography,{sx:{fontSize:"14px",lineHeight:"16pt",pt:1}},M.Ay.createElement(F.D7,{config:e.config.subtitle}))),M.Ay.createElement(T.DialogActions,{sx:Object.assign(Object.assign({},t),{pt:1})},M.Ay.createElement(O(),{container:!0,spacing:2},M.Ay.createElement(O(),{item:!0,xs:12},M.Ay.createElement(O(),{color:w.dI.getColorValue(e.config.dividerColor)})),n.map(((e,t)=>{return M.Ay.createElement(O(),{item:!0,xs:i,key:t},M.Ay.createElement(k,{disabled:!r,style:Object.assign({width:"100%",opacity:a},(n=e.config,Js(w.dI.getColorValue(n.background.fillColor))?qs(n.foreground.color):Object.assign(Object.assign({},Xs(n.background.fillColor)),{"& span":{transition:"transform 0.3s !important"},"&:hover span":{transform:"translateX(6px) !important"},"& > div, &":{transition:"border-radius 0.3s !important"},"&:hover > div, &:hover":{borderRadius:"0px !important"}}))),onClick:()=>{o(!1),e.onClick()},visible:e.config.visible,text:e.config.text,foreground:e.config.foreground,background:e.config.background,debugName:e.debugName,accessibilityDescription:w.dI.getLocalizedText(e.config.accessibilityDescription)}));var n}))))))}const Al=["image/jpeg","image/jpg","image/png","image/bmp","image/dib","image/tiff"];var gl=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function fl(e){const t=e.config.screens.camera.bottomBar,n="auto"===e.buttonStates.snappingModeState?t.autoSnappingModeButton:t.manualSnappingModeButton,i="auto"===e.buttonStates.snappingModeState?cl:ll,r="on"===e.buttonStates.torchState?t.torchOnButton:t.torchOffButton,o=M.Ay.createRef();(0,M.vJ)((()=>{o.current&&(o.current.oncancel=e.onFileSelectDialogClosed)}),[o.current]);const[a,s]=M.Ay.useState(!1),c=()=>s(!0),l=w.dI.getColorValue(e.config.appearance.bottomBarBackgroundColor),u=`linear-gradient(360deg, ${l}, transparent)`,d="GRADIENT"===t.bottomBarMode;return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.Box,{"data-sb-bottom-bar":!0,sx:{backgroundImage:d?u:null,backgroundColor:d?null:l,height:112,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"}},M.Ay.createElement(T.Box,{sx:{maxWidth:400,display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:24,flexGrow:1,marginX:"min(24px, 5vw)"}},M.Ay.createElement("div",null,M.Ay.createElement(js,{onClick:e.scanLimitReached?c:e.onFileSelectDialogOpened,enabled:e.buttonStates.importButtonEnabled,config:t.importButton,iconButtonComponent:e.scanLimitReached?"button":"label",icon:({color:e})=>M.Ay.createElement(O(),{sx:{color:e}}),debugName:"import"},!e.scanLimitReached&&M.Ay.createElement("input",{hidden:!0,type:"file",accept:Al.join(", "),ref:o,onChange:t=>{var n,i;e.onFileSelectDialogClosed();const r=null===(i=null===(n=null==t?void 0:t.target)||void 0===n?void 0:n.files)||void 0===i?void 0:i[0];r&&(()=>{gl(this,void 0,void 0,(function*(){const t=y.Image.fromEncodedBinaryData(yield r.arrayBuffer()),n=yield e.sdk.detectAndCropDocument(t,"CONSUME_IMAGE");e.onFileUploaded(n)}))})()},value:""}))),M.Ay.createElement("div",null,M.Ay.createElement(js,{enabled:e.buttonStates.snappingModeButtonEnabled,config:n,icon:i,onClick:e.snappingModeButtonClick,debugName:"snapping-mode"})),M.Ay.createElement(pl,{state:e.buttonStates.shutterButtonState,onClick:e.scanLimitReached?c:e.onShutterButtonClick,config:e.config.screens.camera.bottomBar.shutterButton}),M.Ay.createElement("div",null,M.Ay.createElement(js,{enabled:e.buttonStates.torchButtonEnabled,config:r,icon:t=>(e.buttonStates.torchState,M.Ay.createElement(O(),{sx:t})),onClick:e.onTorchButtonClick,debugName:"torch"})),M.Ay.createElement("div",null,M.Ay.createElement(ul,{enabled:e.buttonStates.reviewButtonEnabled,config:t.previewButton,count:e.buttonStates.reviewButtonCount,previewImageUrl:e.buttonStates.reviewButtonPreviewImageUrl,onClick:e.onReviewButtonClick})))),M.Ay.createElement(El,{open:a,config:e.config.screens.camera.limitReachedAlertDialog,onCancelClick:()=>{},onActionClick:()=>{},onOkClick:()=>{s(!1)}}))}function Cl(e){return e.config.visible?M.Ay.createElement("div",{style:e.style},M.Ay.createElement(Ts,{polygonConfig:{strokeColor:e.config.background.strokeColor,fillColor:e.config.background.fillColor,cornerRadius:0,strokeWidth:0},sx:{minHeight:40,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",width:"100%"}},M.Ay.createElement(F.D7,{config:e.config.title,style:{textAlign:"center",maxWidth:"94%",wordWrap:"break-word"},debugName:"top-user-guidance"}))):null}function _l(e){const t=e.config.screens.camera.userGuidance.statesTitles,n="auto"===e.snappingMode?t.readyToCapture:t.captureManual,i={NOT_ACQUIRED:t.noDocumentFound,OK:n,OK_BUT_TOO_SMALL:t.tooSmall,OK_BUT_BAD_ANGLES:t.badAngles,OK_BUT_BAD_ASPECT_RATIO:t.badAspectRatio,OK_BUT_ORIENTATION_MISMATCH:t.orientationMismatch,OK_BUT_TOO_DARK:t.tooDark,OK_BUT_OFF_CENTER:t.textHintOffCenter,ERROR_NOTHING_DETECTED:t.noDocumentFound,ERROR_TOO_DARK:t.tooDark,ERROR_TOO_NOISY:t.tooNoisy,ERROR_PARTIALLY_VISIBLE:"TODO missing config. This is currently disabled in RTUUI",ERROR_PARTIALLY_VISIBLE_TOO_CLOSE:"TODO missing config. This is currently disabled in RTUUI",START:e.config.screens.camera.userGuidance.title.text};return M.Ay.createElement(F.D7,{config:Object.assign(Object.assign({},e.config.screens.camera.userGuidance.title),{text:w.dI.getLocalizedText(i[e.text])})})}function Dl(e){const t=w.dI.getColorValue(e.color),n=221/376,i=`calc(${e.maxHeight} - ${e.paddingTop}px - ${e.paddingBottom}px)`,r=e.maxWidth,o=`min(${`calc(${i} * ${n})`}, ${r})`,a=`min(${i}, ${`calc(${r} / ${n})`})`;return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement("svg",{style:{width:o,height:a,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom},viewBox:"0 0 221 376",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("path",{d:"M25.2696 149.527V20.2272C25.2696 9.60794 33.8814 1 44.5006 1H147.398C158.018 1 166.629 9.60794 166.629 20.2272V267.036C166.629 277.655 158.018 286.263 147.398 286.263H44.5006C33.8814 286.263 25.2696 277.655 25.2696 267.036V262.47M25.2696 200.917V183.453M27.5913 182.88V202.205M27.5913 224.958V239.567M27.5913 259.894V267.036C27.5913 267.902 27.6573 268.757 27.781 269.593L27.7889 269.64C27.8213 269.83 27.8538 270.021 27.8898 270.208C28.0875 271.246 28.3818 272.25 28.7617 273.212C28.8353 273.411 28.9166 273.609 29.0021 273.8C29.5369 275.014 30.211 276.159 31.0016 277.209C31.0791 277.304 31.157 277.411 31.2345 277.506C31.7807 278.205 32.3892 278.85 33.0366 279.457C33.3 279.701 33.5714 279.934 33.8505 280.159C33.9474 280.243 34.0482 280.32 34.149 280.392C34.4471 280.625 34.7532 280.847 35.0674 281.06L35.0712 281.063C35.0891 281.077 35.1074 281.092 35.1254 281.102C35.3193 281.228 35.5129 281.35 35.7068 281.473C35.924 281.602 36.1446 281.732 36.3656 281.854C36.5905 281.976 36.8153 282.095 37.044 282.209C37.1562 282.263 37.2726 282.32 37.3848 282.37L37.3905 282.372C37.5049 282.429 37.6194 282.485 37.7337 282.53C38.0865 282.683 38.443 282.824 38.8072 282.958C39.0477 283.045 39.2916 283.125 39.5359 283.202C39.6599 283.24 39.784 283.278 39.9081 283.313C40.2841 283.412 40.6639 283.511 41.0475 283.587C41.1716 283.614 41.2995 283.641 41.4311 283.664C41.5628 283.687 41.6907 283.713 41.8186 283.732C42.0782 283.774 42.3419 283.813 42.6053 283.839C42.7912 283.866 42.9775 283.877 43.1634 283.893C43.3184 283.904 43.4734 283.912 43.6284 283.919C43.9192 283.935 44.2059 283.942 44.5006 283.942H147.395C147.693 283.942 147.984 283.935 148.274 283.919C148.43 283.912 148.584 283.904 148.739 283.893C149.042 283.87 149.34 283.843 149.642 283.809C149.526 283.82 149.414 283.828 149.298 283.839C157.731 282.889 164.308 275.716 164.308 267.036V20.2272C164.308 11.2009 157.196 3.80228 148.274 3.34114H148.263C147.976 3.32548 147.689 3.31784 147.395 3.31784H44.5006C44.2059 3.31784 43.9231 3.32548 43.6326 3.34114H43.6284C43.4734 3.34878 43.3184 3.3568 43.1634 3.36825C43.0161 3.37969 42.8611 3.39535 42.7099 3.40679C34.2265 4.30614 27.5913 11.507 27.5913 20.2272V151.388M25.2696 238.278V226.254M34.1941 158.545V20.2306C34.1941 14.7975 38.4134 10.2996 43.8178 9.94611H43.9106L44.0499 9.93198C44.2141 9.92475 44.3641 9.92472 44.5034 9.92472H59.3495C60.1993 9.96748 60.8848 10.6244 60.9704 11.4631L60.9713 11.4779C60.9744 11.5301 60.9776 11.5829 60.9776 11.6383V11.6597C61.1811 16.011 64.772 19.4736 69.1698 19.4736H122.73C127.127 19.4736 130.718 16.011 130.922 11.6597V11.6383C130.922 11.5829 130.925 11.5304 130.928 11.4782L130.929 11.4631C131.015 10.6244 131.7 9.96748 132.549 9.92472H147.396C147.535 9.92472 147.685 9.92475 147.849 9.93198L147.988 9.94611H148.082C153.486 10.2996 157.705 14.7975 157.705 20.2306V267.036C157.705 272.376 153.536 276.892 148.217 277.308C148.165 277.312 148.123 277.315 148.081 277.319L148.078 277.319H148.042L148.014 277.323H147.953L147.932 277.327L147.93 277.327L147.929 277.327C147.751 277.335 147.574 277.342 147.396 277.342H44.5034C44.3255 277.342 44.148 277.335 43.9701 277.327L43.969 277.327L43.9679 277.327L43.9465 277.323H43.8858L43.8572 277.319H43.8217L43.8187 277.319C43.7769 277.315 43.7345 277.312 43.6823 277.308C38.3633 276.892 34.1941 272.376 34.1941 267.036V178.586M23.6521 148.301C23.6147 148.268 23.5193 148.222 23.3693 148.163C23.0612 148.043 22.636 148.008 22.2253 147.974C22.0313 147.958 21.8432 147.942 21.6714 147.919L20.8934 147.811C17.5128 147.337 13.6811 146.802 10.5597 147.83C10.3058 147.914 9.97642 148.033 9.68745 148.214C7.45931 149.607 2.80262 154.442 1.61011 159.826C0.977204 162.683 1.41084 165.294 2.89957 167.585C5.96789 172.306 10.5074 175.841 14.5438 178.676C15.524 179.364 16.6101 180.101 17.9614 180.995C18.1866 181.144 18.3939 181.293 18.5924 181.434C19.294 181.936 19.8482 182.332 20.7503 182.431C23.522 182.735 26.401 182.373 29.0765 181.383L29.3048 181.299C30.427 180.886 31.8238 180.373 32.4861 179.432C34.1031 177.136 36.2369 173.538 37.2172 169.433C37.6402 167.662 37.7405 166.251 37.5325 164.993C37.0481 162.071 34.9474 159.796 32.4452 157.346C32.1406 157.237 31.7749 156.862 31.0886 156.066C30.9542 155.91 30.8446 155.781 30.782 155.72L25.3035 150.365C24.763 149.837 24.3217 149.364 23.9259 148.769C23.8278 148.623 23.7709 148.512 23.7247 148.422M23.6521 148.301C23.6682 148.314 23.6819 148.338 23.7247 148.422M23.6521 148.301L23.6529 148.301C23.669 148.315 23.6819 148.338 23.7247 148.422M166.63 213.913L173.334 220.343M173.334 220.343L173.38 220.386C172.942 224.452 172.916 225.028 173.235 230.114M173.334 220.343C173.026 223.089 172.754 226.806 173.072 229.253M173.334 220.343C173.495 218.899 173.667 217.723 173.767 217.141M173.235 230.114C173.252 230.386 173.27 230.67 173.289 230.969L173.289 230.971M173.235 230.114L173.294 230.423C173.335 230.581 173.322 230.772 173.289 230.971M173.235 230.114L173.073 229.263M173.289 230.971L173.172 232.02M173.289 230.971C173.252 231.196 173.191 231.431 173.157 231.641M173.172 232.02L173.163 232.103M173.172 232.02C173.168 231.93 173.163 231.799 173.157 231.641M173.172 232.02C173.176 232.096 173.179 232.142 173.182 232.146M173.163 232.103L172.448 238.511M173.163 232.103C173.168 232.118 173.175 232.132 173.182 232.146M173.163 232.103C173.119 231.984 173.128 231.822 173.157 231.641M172.448 238.511L172.388 238.594C172.361 238.632 170.173 241.232 166.854 246.152M172.448 238.511L173.072 229.253M173.072 229.253C173.072 229.253 173.073 229.257 173.073 229.263M173.072 229.253L173.073 229.263M173.073 229.263C173.089 229.397 173.129 230.85 173.157 231.641M173.182 232.146C173.687 232.904 174.584 233.798 175.666 234.725M173.182 232.146C173.535 232.81 174.468 233.726 175.666 234.725M175.666 234.725C179.226 237.776 184.8 241.195 185.104 241.381C185.033 241.338 179.198 237.671 175.666 234.725ZM173.767 217.141C174.564 217.463 176.281 218.113 178.633 218.417M173.767 217.141C174.18 217.329 175.973 218.088 178.633 218.417M173.767 217.141L166.558 206.5M178.633 218.417C181.548 218.793 185.438 218.636 189.756 216.658M178.633 218.417C181.534 218.776 185.465 218.623 189.756 216.658M189.756 216.658C189.827 216.626 189.898 216.593 189.969 216.559M67.4683 323.631C70.4328 329.189 74.192 335.823 77.6768 341.522C92.8799 366.399 95.2 373.141 95.5527 374.664V375.7M67.4683 323.631C72.9296 307.707 97.7699 290.507 98.2854 290.15L98.2916 290.146C98.04 290.321 73.495 307.571 67.4683 323.631ZM67.4683 323.631C62.152 313.572 58.8077 305.831 56.9292 301.071C55.0301 296.265 52.4092 291.749 49.1397 287.657L47.9153 286.137M28.8505 204.209C31.3841 207.632 32.9003 212.464 31.6452 217.3C30.4889 221.756 27.8489 225.222 24.3855 226.861V237.921C27.7065 239.088 29.7911 241.302 30.5828 244.508C31.9643 250.084 29.9423 257.645 25.9796 261.726C24.1702 263.585 22.1669 264.543 20.1136 264.543C19.8662 264.543 19.6185 264.528 19.37 264.501L24.9855 268.636M34.147 152.964L26.212 149.313C25.8452 149.145 25.5564 149.529 25.8452 149.811L31.3237 155.166C31.3955 155.236 31.5222 155.382 31.6757 155.56L31.6786 155.563C31.9222 155.846 32.4736 156.485 32.6873 156.606H32.7968L32.9098 156.716C34.9429 158.703 37.7268 161.424 38.2968 164.867C38.5227 166.23 38.4193 167.738 37.9711 169.614C36.9622 173.838 34.7761 177.527 33.1198 179.879C32.3187 181.017 30.7957 181.577 29.5724 182.027L29.3457 182.11C27.1996 182.905 24.9271 183.312 22.6761 183.312C22.3249 183.312 21.9749 183.301 21.6252 183.281C22.2994 184.192 23.7392 186.664 25.2718 190.467M211.09 375.7V374.664L213.502 342.095L215.94 316.496L219.792 274.632C220.431 267.696 219.597 260.833 217.316 254.235C214.986 247.501 213.473 241.094 212.817 235.192C212.268 230.25 212.46 225.348 212.646 220.608C212.995 211.71 213.297 204.026 208.158 200.602C200.156 195.267 175.98 167.503 173.151 161.277C172.263 159.324 171 158.464 169.497 158.79C168.553 158.994 167.372 159.481 166.702 160.263M146.375 286.09C145.308 288.615 143.615 292.089 142.556 294.787M130.056 113.003H63.0631M130.056 84.3738H100.854M130.056 147.359H63.0631M130.056 181.714H63.0631M130.056 121.592H63.0631M130.056 92.9627H100.854M130.056 155.948H63.0631M130.056 190.303H63.0631M130.056 130.181H63.0631M130.056 164.537H63.0631M130.056 198.892H63.0631M130.056 138.77H63.0631M130.056 173.125H63.0631M130.056 207.481H63.0631M30.8954 217.105C29.7728 221.431 27.2014 224.769 23.8407 226.264C22.4226 226.896 20.8755 227.194 19.2463 227.145C13.854 226.987 9.84776 225.057 7.66123 221.564C5.3411 217.859 5.23957 212.578 7.39594 207.783C10.7883 200.246 23.0215 200.651 23.9228 200.691C25.9616 201.409 27.6374 202.632 28.9043 204.325C31.3378 207.564 32.1005 212.461 30.8954 217.105ZM23.8772 238.567C27.0829 239.619 29.0858 241.68 29.8306 244.695C31.154 250.036 29.2183 257.279 25.4236 261.184C24.0047 262.646 21.7086 264.253 18.833 263.627C16.7477 263.173 14.7108 261.619 12.78 259.001C5.82762 249.577 5.68905 247.795 8.07293 242.887C10.5545 237.78 14.2157 237.19 20.5306 237.867C21.6693 237.988 22.7263 238.2 23.6764 238.498L23.8772 238.567ZM135.782 224.965H56.7644C52.4952 224.965 49.0344 221.505 49.0344 217.235V79.8139C49.0344 75.5447 52.4952 72.0839 56.7644 72.0839H135.782C140.051 72.0839 143.512 75.5447 143.512 79.8139V217.235C143.512 221.505 140.051 224.965 135.782 224.965Z",stroke:t,strokeWidth:"1.75936"}),M.Ay.createElement("defs",null,M.Ay.createElement("linearGradient",{id:"paint0_linear_441_9693",x1:"110.664",y1:"375.7",x2:"110.664",y2:"1",gradientUnits:"userSpaceOnUse"},M.Ay.createElement("stop",{offset:"0.029183",stopColor:t,stopOpacity:"0"}),M.Ay.createElement("stop",{offset:"0.204626",stopColor:t})))))}function yl(e){const[t,n]=M.Ay.useState(!1);return e.animateOut?null:e.visible&&e.config.visible?M.Ay.createElement(T.Box,{key:"scanAssistanceOverlay",onTransitionEnd:()=>{n(!0)},style:{backgroundColor:w.dI.getColorValue(e.config.backgroundColor),height:"100%",display:"flex",justifyContent:"center",alignItems:"center",opacity:e.animateOut?0:1,transition:"opacity 0.5s"}},M.Ay.createElement(Dl,{color:e.config.foregroundColor,maxWidth:"80%",maxHeight:`min(calc(${e.constraints.containerHeight} * 0.85), 600px)`,paddingTop:e.constraints.padding.top,paddingBottom:e.constraints.padding.bottom})):null}const Il="0.5s";function vl(e){const t=e.config.screens.camera,n=t.bottomBar,i=`calc(100 * ${Zs} - 50px)`,r=`calc(100 * ${Zs} - 50px - 112px)`,o="HIDDEN"===n.bottomBarMode?i:r,a=e.bottomUserGuidanceVisible?56:0;return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement("div",{style:{position:"absolute",width:"100%",height:i}},e.documentScannerView),M.Ay.createElement("div",{style:{position:"absolute",width:"100%",height:o,backgroundColor:"white",opacity:e.showCameraBlink?1:0,transition:e.showCameraBlink?"":"opacity 0.5s ease-in"}}),M.Ay.createElement(T.Box,{sx:{height:o,position:"relative"}},M.Ay.createElement(Cl,{config:t.topUserGuidance}),e.bottomUserGuidanceVisible&&M.Ay.createElement(T.Box,{key:"bottomUserGuidance",sx:{position:"absolute",marginTop:`calc(${r} - ${a}px - 80px)`,width:"100%",display:"flex",justifyContent:"center"}},M.Ay.createElement(Ts,{polygonConfig:{fillColor:t.userGuidance.background.fillColor,strokeColor:t.userGuidance.background.strokeColor,strokeWidth:t.userGuidance.background.strokeWidth,cornerRadius:4},sx:{padding:"6px 10px"}},M.Ay.createElement(_l,{config:e.config,text:e.userGuidanceText,snappingMode:e.snappingMode}))),M.Ay.createElement(yl,{visible:!t.viewFinder.visible,config:t.scanAssistanceOverlay,animateOut:!e.showHand,constraints:{containerHeight:o,padding:{top:40,bottom:a}}})))}const Nl={NOT_ACQUIRED:"Scanning failed.",OK:"Capturing your document... Please do not move the camera.",OK_BUT_TOO_SMALL:"The document is too small. Try moving closer.",OK_BUT_BAD_ANGLES:"This is a bad camera angle. Hold the device straight over the document.",OK_BUT_BAD_ASPECT_RATIO:"Rotate the device sideways, so that the document fits better into the screen.",OK_BUT_ORIENTATION_MISMATCH:"The document seems to be upside down. Please rotate the device or document",OK_BUT_TOO_DARK:"A document was detected, but it is too dark. Try turning on a light.",ERROR_NOTHING_DETECTED:"Please hold the device over a document to start scanning.",ERROR_PARTIALLY_VISIBLE:"The document is partially visible. Please move the camera closer.",ERROR_PARTIALLY_VISIBLE_TOO_CLOSE:"The document is partially visible, but too close. Please move the camera further away.",ERROR_TOO_DARK:"It is too dark. Try turning on a light."};class Sl{constructor(e){this.initializing={enabled:!0,value:"Initializing..."},this.hint=e}}class bl{constructor(){this.outline=new Ml,this.captureButton=new Ol}}class Ml{constructor(){this.polygon=new Ll,this.path=new Rl,this.label=new Tl}}class Ll{constructor(){this.strokeCapturing="green",this.strokeSearching="yellow",this.fillCapturing="transparent",this.fillSearching="transparent",this.strokeWidthCapturing=2,this.strokeWidthSearching=2}}class Rl{constructor(){this.stroke="green",this.strokeWidth=4}}class Tl{}class Ol{constructor(){this.color="#FFF",this.visible=!0}}class wl extends _.J{constructor(){super(_.J.DEFAULT_VIDEO_RESOLUTION_4K),this.scannerConfiguration=new y.DocumentScannerConfiguration,this.autoCaptureEnabled=!0,this.autoCaptureSensitivity=.66,this.autoCaptureDelay=1e3,this.autoCrop=!0,this.useImageCaptureAPI=!1,this.text=new Sl(Nl),this.style=new bl,this.onDocumentDetected=function(e){},this.finder=(0,D.I)(),this.finder.visible=!1}static fromJson(e){var t,n;const i=new wl;if(_.J.mapValuesDeep(null!==(t=e.finder)&&void 0!==t?t:{},i.finder),this.mapValues(e,i,["text","style","videoConstraints","detectionParameters","finder"]),e.text&&e.text&&(e.text.hint&&this.mapValues(e.text.hint,i.text.hint),e.text.initializing&&this.mapValues(e.text.initializing,i.text.initializing)),e.style){this.mapValues(e.style,i.style,["outline","captureButton"]);const t=e.style.outline;if(t){this.mapValues(t,i.style.outline,["polygon","path","label"]);const e=t.polygon;e&&this.mapValues(e,i.style.outline.polygon);const n=t.path;n&&this.mapValues(n,i.style.outline.path);const r=t.label;r&&this.mapValues(r,i.style.outline.label)}const n=e.style.captureButton;n&&this.mapValues(n,i.style.captureButton)}return this.mapVideoConstraints(e,i),i.scannerConfiguration=new y.DocumentScannerConfiguration(null!==(n=e.scannerConfiguration)&&void 0!==n?n:{}),i}}var Fl=n(5072),Bl=n.n(Fl),Pl=n(5319),xl={insert:"head",singleton:!1};Bl()(Pl.A,xl);Pl.A.locals;var kl=n(2485),Vl=n.n(kl);class Ul{constructor(e){this.lastTime=0,this.lastDuration=0,this.t=0,this.element=null,this.animationClass="",this.animationClass=e}setDuration(e){const t=Date.now()/1e3,n=t-this.lastTime;this.lastDuration&&(this.t+=n%this.lastDuration/this.lastDuration,this.t-=0|this.t);const i=-e*this.t;this.element&&(this.element.style.animationDuration=`${e}s`,this.element.style.animationDelay=`${i}s`,this.element.classList.remove(this.animationClass),this.element.offsetHeight,this.element.classList.add(this.animationClass)),this.lastTime=t,this.lastDuration=e}}class Zl extends M.Ay.Component{constructor(){super(...arguments),this.inner1=new Ul("scanbot-shutter-rotate"),this.inner2=new Ul("scanbot-shutter-rotate")}render(){return this.props.style.visible?M.Ay.createElement("div",{className:"scanbot-shutter-button",style:this.props.style,onClick:this.props.onClick},this.captureBackground(),this.captureInnerCircle(),this.captureSearchingInner1(),this.captureSearchingInner2()):null}updateAnimationSpeed(e){"searching"==e?(this.inner1.setDuration(3),this.inner2.setDuration(2)):(this.inner1.setDuration(1.5),this.inner2.setDuration(.75))}componentDidMount(){this.updateAnimationSpeed(this.props.action)}componentDidUpdate(){this.updateAnimationSpeed(this.props.action)}captureBackground(){return this.svgBase(null,M.Ay.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M32 0c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32C14.327 64 0 49.673 0 32 0 14.327 14.327 0 32 0zm0 3C15.984 3 3 15.984 3 32s12.984 29 29 29 29-12.984 29-29S48.016 3 32 3z")))}captureInnerCircle(){const{action:e}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"processing"==e||"manual"==e,"scanbot-shutter-fade-out":"searching"==e||"capturing"==e,"scanbot-shutter-pulse-fast":"processing"==e},M.Ay.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},M.Ay.createElement("circle",{cx:"32",cy:"32",r:"24",fill:this.color,fillRule:"nonzero"})))}captureSearchingInner1(){const{action:e}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"searching"==e||"capturing"==e,"scanbot-shutter-fade-out":"processing"==e||"manual"==e},M.Ay.createElement("g",{fill:"none",fillOpacity:"0.7",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M44.24 51.476a1 1 0 01-1.066-1.692A20.981 20.981 0 0053 32c0-11.598-9.402-21-21-21a1 1 0 010-2c12.703 0 23 10.297 23 23a22.98 22.98 0 01-10.76 19.476z")),(e=>{this.inner1.element=e}))}captureSearchingInner2(){const{action:e}=this.props;return this.svgBase({"scanbot-shutter-button-part":!0,"scanbot-shutter-fade-in":"searching"==e||"capturing"==e,"scanbot-shutter-fade-out":"processing"==e||"manual"==e},M.Ay.createElement("g",{fill:"none",fillOpacity:"0.4",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},this.path("M46.624 35.35a1 1 0 01-1.95-.445C44.89 33.96 45 32.988 45 32c0-7.18-5.82-13-13-13a1 1 0 010-2c8.284 0 15 6.716 15 15 0 1.138-.127 2.26-.376 3.35z")),(e=>{this.inner2.element=e}))}get color(){var e;return(null===(e=this.props.style)||void 0===e?void 0:e.color)||"#FFF"}path(e){return M.Ay.createElement("path",{fill:this.color,fillRule:"nonzero",d:e})}svgBase(e,t,n){return M.Ay.createElement("div",{className:Vl()(e),ref:n},M.Ay.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64"},t))}}class Wl extends M.Ay.Component{constructor(){super(...arguments),this.LINE_COUNT=4}render(){return M.Ay.createElement("svg",{style:{width:"100%",height:"100%",position:"absolute",overflow:"visible",fill:this.props.polygonStyle.fill}},this.fill())}fill(){if(!this.props.points||0===this.props.points.length)return null;const e=[];for(let t=0;t<this.LINE_COUNT;t++){const n=this.props.points[t],i=this.props.points[(t+1)%this.LINE_COUNT];e.push(M.Ay.createElement("line",{key:t,style:this.props.polygonStyle,className:this.props.polygonClasses,x1:n.x,y1:n.y,x2:i.x,y2:i.y}))}return e}setFrame(){window.requestAnimationFrame((()=>this.forceUpdate()))}}Wl.CLASSNAME="scanbot-document-outline";class Hl extends M.Ay.Component{constructor(e){super(e),this.state={points:[],animatedPoints:[],isOk:!1,isVisible:!1}}update(e,t,n,i){if(t&&t.some((e=>Number.isNaN(e.x)||Number.isNaN(e.y))))return;const r={points:e,animatedPoints:t,isOk:n,isVisible:i};this.setState(r)}pointStringOrLatestValidPoints(e){return e&&e.length>0?Ka.b.toSvgString(e):Ka.b.toSvgString(this.latestValidPoints)}render(){var e;this.state.points&&(this.latestValidPoints=this.state.points);const t=null!==(e=this.props.style)&&void 0!==e?e:{},n=Vl()(Wl.CLASSNAME,{[`${Wl.CLASSNAME}-ok`]:this.state.isOk},{[`${Wl.CLASSNAME}-visible`]:this.state.isVisible},{[`${Wl.CLASSNAME}-hidden`]:!this.state.isVisible});return M.Ay.createElement(Xa.polygon,{ref:e=>this.polygon=e,transition:{duration:.1},animate:{points:this.pointStringOrLatestValidPoints(this.state.animatedPoints),opacity:this.state.isVisible?1:0,stroke:this.state.isOk?t.strokeCapturing:t.strokeSearching,fill:this.state.isOk?t.fillCapturing:t.fillSearching,strokeWidth:this.state.isOk?t.strokeWidthCapturing:t.strokeWidthSearching},onClick:()=>{},className:n})}}const Gl=Hl;class zl extends M.Ay.Component{constructor(e){super(e),this.state={path:void 0}}render(){var e,t;return this.state.path?M.Ay.createElement(Xa.path,{pathLength:"1",strokeDasharray:"1 1",initial:{strokeDashoffset:1},animate:{strokeDashoffset:0,d:this.state.path},transition:{strokeDashoffset:{duration:this.props.duration/1e3,ease:"easeInOut",repeat:0,repeatType:"loop",repeatDelay:1},d:{duration:.1}},stroke:(null===(e=this.props.style)||void 0===e?void 0:e.stroke)||"white",strokeWidth:(null===(t=this.props.style)||void 0===t?void 0:t.strokeWidth)||2,fill:"none",d:this.state.path,className:`${Wl.CLASSNAME}-path`}):null}animate(e){const t="M"+Ka.b.toSvgString(e)+"z";this.setState({path:t})}clear(){this.setState({path:void 0})}}class Yl extends M.Ay.Component{render(){return M.Ay.createElement(Xa.svg,{style:{width:"100%",height:"100%",position:"absolute",overflow:"visible"}},M.Ay.createElement(Gl,{ref:e=>this.polygon=e,style:this.props.polygonStyle}),M.Ay.createElement(zl,{ref:e=>this.path=e,style:this.props.pathStyle,duration:this.props.autoCaptureSensitivity}))}update(e,t,n){var i;const r="processing"!==n&&!!e,o=null!==(i=this.previous)&&void 0!==i?i:e,a=this.previous?e:void 0;this.polygon.update(o,a,t,r),this.previous=e,this.previous&&"capturing"===n?this.animateCapturing():this.clearAnimation()}animateCapturing(){this.path.animate(this.previous)}clearAnimation(){this.path.clear()}}class ql extends M.Ay.Component{constructor(){super(...arguments),this.state={text:this.props.initializationText,ok:!1,validPoints:!1}}render(){const{ok:e,text:t,validPoints:n}=this.state,i="processing"!==this.props.action&&n;return M.Ay.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",left:0,top:0}},M.Ay.createElement(Yl,{ref:e=>{this.polygon=e},action:this.props.action,style:{width:"100%",height:"100%"},polygonStyle:this.props.style.polygon,pathStyle:this.props.style.path,isOk:e,isVisible:i,autoCaptureSensitivity:this.props.autoCaptureSensitivity}),M.Ay.createElement("label",{ref:e=>this.label=e,style:Object.assign({position:"absolute",display:t.enabled?"inline":"none",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",color:"white",borderRadius:"0.25em",padding:"0.05em 0.3em 0.05em 0.3em",fontFamily:"sans-serif",fontSize:"0.9em",fontWeight:"300"},this.props.style.label),dangerouslySetInnerHTML:{__html:t.value}}))}update(e,t,n){this.polygon.update(t,e,this.props.action),"searching"===this.props.action||"capturing"===this.props.action?(this.label.innerHTML=n,this.label.style.display="inline"):(this.label.innerHTML="",this.label.style.display="none")}}class Xl{constructor(e,t=Xl.DEFAULT_SENSITIVITY){this.maxDistance=this.calculateMaxDistance(e),this.sensitivity=t}check(e){let t=!1;if(this.lastPolygon){for(var n=0;n<4;n++)if(this.isPointMoved(e[n],this.lastPolygon[n])){t=!0;break}}else t=!0;return t}reset(){this.lastPolygon=void 0}update(e){this.lastPolygon=e}isPointMoved(e,t){return Ns.distanceBetweenPoints(e,t)/this.maxDistance>this.sensitivity}calculateMaxDistance(e){let t=new Ka.b(0,0),n=new Ka.b(e.width,e.height);return Ns.distanceBetweenPoints(t,n)}}Xl.DEFAULT_SENSITIVITY=.5;var jl=n(7771),Ql=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class Jl extends j.Ib{constructor(e){if(super(e),this.preventAutoCapture=!1,this.defaultCaptureButtonClick=()=>Ql(this,void 0,void 0,(function*(){const e=yield this.detectAndCrop();this.configuration.onDocumentDetected(e)})),Object.assign(this.state,{action:this.defaultAction}),!this.isSupported()){throw Error("Camera can only be accessed if the content is served via HTTPS, or on localhost. Check DocumentScannerView.isSupported() before creating the scanner.")}if(!e.sdk)throw Error("Initialize the SDK by calling ScanbotSDK.initialize() before using the document scanner.")}get defaultAction(){return this.isAutoCaptureEnabled()?"searching":"manual"}get enabled(){return!("searching"!=this.state.action&&"capturing"!=this.state.action&&"manual"!=this.state.action||this.disposed||this.props.pauseAR)}get configuration(){return this._configuration||(this._configuration=wl.fromJson(this.props.configuration)),this._configuration}componentDidUpdate(e){e.configuration!==this.props.configuration&&(this._configuration=void 0)}get autoCaptureSensitivity(){return 3e3*(1-this.configuration.autoCaptureSensitivity)}static create(e,t){return Ql(this,void 0,void 0,(function*(){const n=Cs.Z.findContainerOrThrow(e);return new Promise(((i,r)=>{this.root&&this.root.unmount(),this.root=(0,L.Hr)(n),this.root.render(M.Ay.createElement(Jl,{root:this.root,container:n,configuration:e,onSuccess:i,onFailure:r,sdk:t}))}))}))}detectAndCrop(){var e,t,n,i,r;return Ql(this,void 0,void 0,(function*(){try{if(this.enabled){this.setState({action:"processing"}),this.camera.finderFrame=null===(e=this.finder)||void 0===e?void 0:e.holeRect;const i=yield null===(t=this.camera)||void 0===t?void 0:t.createImageData(Jl.DETECT_AND_CROP_RESOLUTION,this.configuration.useImageCaptureAPI);if(!i)return null;if(b.A.debug("Detect & Crop document of size: "+i.height*i.width),this.handle||(yield this.createHandle()),this.configuration.autoCrop)return yield null===(n=this.handle)||void 0===n?void 0:n.scan(new y.Image(i));{const e=yield this.handle.run(new y.Image(i));return{result:{detectionResult:Object.assign(Object.assign({},e.result),{points:[],pointsNormalized:[],status:"ERROR_NOTHING_DETECTED"}),croppedImage:null},originalImage:e.originalImage}}}}catch(e){return null===(r=(i=this.configuration).onError)||void 0===r||r.call(i,e),null}finally{this.setState({action:this.defaultAction})}}))}enableAutoCapture(){this.updateAutoCapture(!0)}disableAutoCapture(){this.updateAutoCapture(!1)}updateAutoCapture(e){this._configuration?this._configuration.autoCaptureEnabled=e:this.props.configuration.autoCaptureEnabled=e,this.setState({action:this.defaultAction})}isAutoCaptureEnabled(){return this._configuration?this._configuration.autoCaptureEnabled:this.props.configuration.autoCaptureEnabled}onSdkReady(){return Ql(this,void 0,void 0,(function*(){this.createHandle()}))}createHandle(){return Ql(this,void 0,void 0,(function*(){const e=new y.DocumentScannerConfiguration(this.configuration.scannerConfiguration);this.handle=yield this.bridge.api.DocumentScanner.create(e)}))}componentDidMount(){const e=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return Ql(this,void 0,void 0,(function*(){e.componentDidMount.call(this),this.detect()}))}componentWillUnmount(){const e=Object.create(null,{componentWillUnmount:{get:()=>super.componentWillUnmount}});var t;return Ql(this,void 0,void 0,(function*(){e.componentWillUnmount.call(this),this.handleAutoCapture(!1),yield null===(t=this.handle)||void 0===t?void 0:t.destroy()}))}detect(){var e,t,n,i;return Ql(this,void 0,void 0,(function*(){try{if(!this.enabled)return;const n=yield this.detectInWebWorker();if(!n||!this.enabled)return;if(!this.outline)return;this.camera.reusableImageBuffer=n.originalImage;const i=n.result,r=i.status,o="OK"===r,a=r.startsWith("OK")?this.scalePolygonPointsToPixels(i.pointsNormalized):void 0;this.outline.update(o,a,A.getProperty(this.configuration.text.hint,r)),null===(t=(e=this.props).onStatusStringUpdate)||void 0===t||t.call(e,r),yield this.handleAutoCapture(o,a)}catch(e){null===(i=(n=this.configuration).onError)||void 0===i||i.call(n,e)}finally{requestAnimationFrame(this.detect.bind(this))}}))}detectInWebWorker(){var e,t,n,i,r;return Ql(this,void 0,void 0,(function*(){try{this.camera.finderFrame=null===(e=this.finder)||void 0===e?void 0:e.holeRect;const i=yield null===(t=this.camera)||void 0===t?void 0:t.createImageData(j.Ib.DEFAULT_DETECTION_RESOLUTION,!1);return i&&this.enabled?yield null===(n=this.handle)||void 0===n?void 0:n.run(new y.Image(i),"CONSUME_IMAGE"):null}catch(e){return null===(r=(i=this.configuration).onError)||void 0===r||r.call(i,e),null}}))}handleAutoCapture(e,t){return Ql(this,void 0,void 0,(function*(){if(this.configuration.autoCaptureEnabled&&!this.preventAutoCapture)if(e&&!this.autoCaptureToken&&t){if(this.updateButton("capturing"),!this.polygonMovementPredicate){const e=this.getCameraFrameSize();this.polygonMovementPredicate=new Xl(e)}if(this.runMovementPredicate(t))return this.updateButton("searching"),clearTimeout(this.autoCaptureToken),void(this.autoCaptureToken=void 0);this.autoCaptureToken=setTimeout((()=>Ql(this,void 0,void 0,(function*(){if(this.autoCaptureToken=void 0,!this.enabled)return;if(!this.configuration.autoCaptureEnabled)return;const e=yield this.detectAndCrop(),t=e.result.detectionResult;if((null==t?void 0:t.pointsNormalized)&&t.pointsNormalized.length>0){const e=this.scalePolygonPointsToPixels(t.pointsNormalized);if(this.runMovementPredicate(e))return}(null==t?void 0:t.status.startsWith("OK"))&&this.configuration.onDocumentDetected&&(this.configuration.onDocumentDetected(e),this.preventAutoCapture=!0,setTimeout((()=>{this.preventAutoCapture=!1}),this.configuration.autoCaptureDelay))}))),this.autoCaptureSensitivity)}else!e&&this.autoCaptureToken&&(this.updateButton("searching"),clearTimeout(this.autoCaptureToken),this.autoCaptureToken=void 0)}))}updateButton(e){this.setState({action:e})}render(){var e,t;const{action:n}=this.state,{configuration:i}=this;return M.Ay.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.renderSpinner(null===(e=this.configuration)||void 0===e?void 0:e.spinnerColor),M.Ay.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},M.Ay.createElement(Q.A,{configuration:this.configuration,videoConstraints:i.videoConstraints,mirrored:i.mirrored,preferredCamera:this.configuration.preferredCamera,onReady:this.onVideoReady,onError:this.onVideoError,ref:e=>{this.camera=e}}),M.Ay.createElement(Zl,{style:i.style.captureButton,action:n,onClick:this.enabled?i.onCaptureButtonClick||this.defaultCaptureButtonClick:()=>{}})),this.configuration.finder.visible&&M.Ay.createElement(J.Ay,{ref:e=>{this.finder=e},guidanceConfiguration:new jl.q({visible:!1}),configuration:i.finder}),M.Ay.createElement(ql,{ref:e=>{this.outline=e},style:null===(t=i.style)||void 0===t?void 0:t.outline,initializationText:i.text.initializing,action:n,autoCaptureSensitivity:this.autoCaptureSensitivity}))}scalePolygonPointsToPixels(e){var t,n;if(e){const i=this.getCameraFrameSize(),r=gs.o.fromHtmlElement(this.camera.video);let o;if("FIT_IN"===this.configuration.previewMode){const e=this.camera.video.videoWidth/this.camera.video.videoHeight;if(e>r.width/r.height){const t=r.width,n=r.width/e,i=(r.height-n)/2;o=new E.w(0,i,t,n)}else{const t=r.height,n=r.height*e,i=(r.width-n)/2;o=new E.w(i,0,n,t)}}const a=Cs.Z.findScale(r,i),s=null!==(n=null===(t=this.finder)||void 0===t?void 0:t.holeRect)&&void 0!==n?n:o;s&&(e=e.map((e=>new Ka.b((e.x*s.width+s.x)/r.width,(e.y*s.height+s.y)/r.height)))),e=null==(e=Cs.Z.convertToViewportPointsFromParentSize(i,e))?void 0:e.map((e=>Ka.b.scaleToPoint(e,a.x,a.y,a.scale)))}return e}runMovementPredicate(e){const t=this.polygonMovementPredicate.check(e);return this.polygonMovementPredicate.update(e),t}getCameraFrameSize(){const e=this.camera.videoSize();return this.camera.calculateFrameSize(j.Ib.DEFAULT_DETECTION_RESOLUTION,e.width,e.height)}}Jl.DETECT_AND_CROP_RESOLUTION=0,Jl.root=null;const Kl=Jl;function $l(e){const[t,n]=(0,M.J0)(!1);return(0,M.vJ)((()=>{const t=setTimeout((()=>{n(!0)}),e);return()=>clearTimeout(t)}),[]),t}var eu=n(376);function tu(e){if(!e.visible)return null;const t=e.config.screens.camera.cameraPermission;return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.Dialog,{fullScreen:!0,open:e.visible,transitionDuration:0},M.Ay.createElement(Gs,{style:{backgroundColor:e.config.appearance.topBarBackgroundColor},leftContent:null,rightContent:null,centerTitle:e.config.screens.camera.topBarTitle}),M.Ay.createElement(T.Box,{style:{height:`calc(100 * ${Zs} - 50px)`,backgroundColor:w.dI.getColorValue(t.background),display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}},M.Ay.createElement(T.Box,{style:{backgroundColor:w.dI.getColorValue(t.iconBackground),borderRadius:40,width:80,height:80,display:"flex",justifyContent:"center",alignItems:"center"}},M.Ay.createElement(O(),{style:{color:w.dI.getColorValue(t.icon.color)},sx:{fontSize:40}})),M.Ay.createElement("h4",{style:{margin:12}},M.Ay.createElement(F.D7,{style:{fontSize:18,fontWeight:500},config:t.enableCameraTitle})),M.Ay.createElement(T.Box,{style:{marginBottom:"12px",maxWidth:350,textAlign:"center"}},M.Ay.createElement(F.D7,{config:t.enableCameraExplanation,asHtml:!0})),M.Ay.createElement(T.Box,null,M.Ay.createElement(Ks,{icon:M.Ay.createElement(T.Close,{style:{fontSize:18}}),iconPosition:"right",onClick:e.onCloseClick,visible:t.closeButton.visible,text:t.closeButton.text,background:t.closeButton.background,foreground:t.closeButton.foreground,ariaLabel:t.closeButton.accessibilityDescription,styleOverrides:{fontSize:14,padding:"8px 20px",gap:"6px"}})))))}var nu=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class iu{constructor(){this.analysis=null}static create(e,t){const n=new iu;return n.value=e,n.source=t,n}updateOriginalImage(e){this.value&&(this.value.originalImage=e)}updatedCroppedImage(e){var t;(null===(t=this.value)||void 0===t?void 0:t.result)&&(this.value.result.croppedImage=e)}setAnalysis(e){this.analysis=e}runAnalysis(e,t){return nu(this,void 0,void 0,(function*(){t.detectOrientation=!0;const n=yield e.createDocumentQualityAnalyzer(t),i=this.getImage(),r=yield n.run(i);this.setAnalysis(r.result),yield n.destroy()}))}getImage(){return this.value.result.croppedImage||this.value.originalImage}}var ru=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function ou(e){var t;const n=e.configuration.screens.camera,[i,r]=(0,M.J0)(n.cameraConfiguration.autoSnappingEnabled?"auto":"manual"),[o,a]=(0,M.J0)(n.cameraConfiguration.flashEnabled),[s,c]=M.Ay.useState(!1),l=(0,M.li)(null);const[u,d]=(0,M.J0)(n.introduction.showAutomatically);(0,M.vJ)((()=>{e.scanLimitReached&&r("manual")}),[e.scanLimitReached]);const m="ENABLED"===n.userGuidance.visibility||"AUTO_CAPTURE_ONLY"===n.userGuidance.visibility&&"auto"===i;(0,M.vJ)((()=>{const t=e.configuration.screens.camera.viewFinder.minimumInsets;t.top+=n.topUserGuidance.visible?40:0,t.bottom+=m?56:0;const i="HIDDEN"!==n.bottomBar.bottomBarMode;t.bottom+=i?80:0}),[]);const h=null===(t=e.pages)||void 0===t?void 0:t[e.pages.length-1],[p,E]=(0,M.J0)(null),A=Pc(null==h?void 0:h.finalImageUrl());(0,M.vJ)((()=>{0===e.pages.length?E(null):A.value&&E(A.value)}),[A,e.pages.length]);const[g,C]=(0,M.J0)(!1),_=0===n.timeouts.initialScanDelay||$l(n.timeouts.initialScanDelay),[D,y]=(0,M.J0)("START"),[I,v]=(0,M.J0)(!0),[N,S]=(0,M.J0)(!1),{documentScannerView:b,documentScannerViewRef:L,torchSupported:R,scannerInitialized:O,activeCamera:F,availableCameras:B,setActiveCamera:P}=function(e){const t=e.configuration.screens.camera,n=t.cameraConfiguration,i=t.scannerParameters,r=!e.pauseAR&&("ENABLED"===t.polygon.visibility||"AUTO_CAPTURE_ONLY"===t.polygon.visibility&&"auto"===e.snappingMode),o=e=>r?w.dI.getColorValue(e):"#00000000",a=(new wl).videoConstraints;a.width.ideal=n.idealPreviewResolution.width,a.height.ideal=n.idealPreviewResolution.height,a.facingMode="FRONT"===n.cameraModule?"user":"environment";const s=!e.scanningPaused&&"auto"===e.snappingMode,c={videoConstraints:a,onError:e.onError,backgroundColor:w.dI.getColorValue(t.backgroundColor),onDocumentDetected:e.onImageCaptured,autoCaptureEnabled:s,autoCaptureDelay:n.autoSnappingDelay,autoCaptureSensitivity:n.autoSnappingSensitivity,scannerConfiguration:{parameters:i,partiallyVisibleDocumentConfiguration:{allowPartiallyVisibleDocuments:!1}},useImageCaptureAPI:n.useImageCaptureAPI,autoCrop:n.autoCropOnManualSnap,previewMode:n.cameraPreviewMode,spinnerColor:"transparent",style:{outline:{label:{backgroundColor:"transparent",color:"transparent"},path:{stroke:o(t.polygon.autoSnapProgress.strokeColor),strokeWidth:t.polygon.autoSnapProgress.strokeWidth},polygon:{strokeWidthSearching:t.polygon.documentNotOk.strokeWidth,strokeSearching:o(t.polygon.documentNotOk.strokeColor),fillSearching:o(t.polygon.documentNotOk.fillColor),strokeWidthCapturing:t.polygon.documentOk.strokeWidth,fillCapturing:o(t.polygon.documentOk.fillColor),strokeCapturing:o(t.polygon.documentOk.strokeColor)}},captureButton:{visible:!1}},finder:t.viewFinder},l=(0,M.li)(null);(0,M.vJ)((()=>()=>{var e;return null===(e=l.current)||void 0===e?void 0:e.dispose()}),[]),(0,M.vJ)((()=>{l.current&&(s?l.current.enableAutoCapture():l.current.disableAutoCapture())}),[e.scanningPaused,e.snappingMode,l.current]);const[u,d]=(0,M.J0)(!1);(0,M.vJ)((()=>{l.current&&u&&l.current.setTorchState(e.torchEnabled).catch((e=>{}))}),[e.torchEnabled,l.current,u]);const[m,h]=(0,M.J0)(!1),[p,E]=(0,M.J0)(null),[A,g]=(0,M.J0)([]);(0,M.vJ)((()=>{l.current||h(!1)}),[l.current]);const f=M.Ay.createElement(Kl,{root:e.root,sdk:e.sdk,ref:l,configuration:c,onSuccess:function(){var t,n,i;e.onScannerLoaded(),d(null===(t=l.current)||void 0===t?void 0:t.getActiveCameraInfo().supportsTorchControl),h(!0);const r=null===(n=l.current)||void 0===n?void 0:n.getActiveCameraInfo();E(null!=r?r:null),g(r?[r]:[]),null===(i=l.current)||void 0===i||i.fetchAvailableCameras().then(g)},onFailure:e.onError,onStatusStringUpdate:e.onUserGuidanceTextUpdate,pauseAR:e.pauseAR});return{documentScannerView:f,documentScannerViewRef:l,torchSupported:u,scannerInitialized:m,activeCamera:p,availableCameras:A,setActiveCamera:function(e){var t;return E(e),null===(t=l.current)||void 0===t?void 0:t.switchCamera(e.deviceId,!1,e.facingMode)}}}({root:e.root,sdk:e.sdk,configuration:e.configuration,onScannerLoaded:()=>{S(!0)},onImageCaptured:e=>ru(this,void 0,void 0,(function*(){U(yield Z(e,"AUTO_SNAP"))})),onUserGuidanceTextUpdate:function(e){(!I||"ERROR_NOTHING_DETECTED"!==e&&x)&&(y(e),v(!1))},snappingMode:i,scanningPaused:e.scanningPaused||!_,torchEnabled:o,onError:t=>{t instanceof eu.F?C(!0):e.onError(t)},pauseAR:!e.visible||e.scanningPaused||!_}),x=$l(1e3),[k,V]=(0,M.J0)(!1);(0,M.vJ)((()=>{requestAnimationFrame((()=>V(!1)))}),[k]);function U(t){V(n.captureFeedback.cameraBlinkEnabled),X.INSTANCE.vibrate(e.configuration.screens.camera.vibration),e.onImageCaptured(t)}const Z=(t,i)=>ru(this,void 0,void 0,(function*(){const r=iu.create(t,i);if(n.autoRotateImages){const t=e.configuration.screens.camera.documentQualityAnalyzerConfiguration;yield r.runAnalysis(e.sdk,t);const n=f.degreesToRotation(r.analysis.orientation);if("NONE"!==n&&"CLOCKWISE_180"!==n){const t=yield e.sdk.createImageProcessor(),i=r.value.originalImage;if(i){const e=yield t.rotate(i,n,"COPY_IMAGE");r.updateOriginalImage(e.result)}const o=r.value.result.croppedImage;if(o){const e=yield t.rotate(o,n,"COPY_IMAGE");r.updatedCroppedImage(e.result)}yield t.destroy()}}return r}));return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.Box,{display:e.visible?"block":"none","data-sb-screen-camera":!0,style:{position:"absolute",width:"100vw"}},M.Ay.createElement(sl,{config:n.introduction,isOpen:u,onClose:()=>{d(!1)}}),M.Ay.createElement(Yc,{cameraConfig:{availableCameras:B,activeCamera:F,onSelect:e=>ru(this,void 0,void 0,(function*(){yield P(e),a(!1)}))},isCancelDisabled:!N,onCloseButtonClick:()=>{var t;0===e.pages.length?null===(t=e.onClose)||void 0===t||t.call(e):c(!0)},backgroundColor:e.configuration.appearance.topBarBackgroundColor,title:n.topBarTitle,cameraSelectConfig:n.topBarCameraSelect,backButton:n.topBarBackButton,introButton:n.topBarIntroButton,mode:"SOLID",onShowIntroButtonClick:()=>d(!0)}),M.Ay.createElement(vl,{config:e.configuration,sdk:e.sdk,documentScannerView:b,showHand:I,userGuidanceText:D,bottomUserGuidanceVisible:m,snappingMode:i,showCameraBlink:k}),M.Ay.createElement(fl,{buttonStates:{importButtonEnabled:!e.scanningPaused,snappingModeState:i,snappingModeButtonEnabled:!e.scanLimitReached,torchState:o&&R?"on":"off",torchButtonEnabled:R,reviewButtonCount:e.pages.length,reviewButtonPreviewImageUrl:p,reviewButtonEnabled:e.pages.length>0,shutterButtonState:e.scanningPaused||!O?"loading":i},sdk:e.sdk,onFileSelectDialogOpened:function(){l.current=i,r("manual")},onFileSelectDialogClosed:function(){l.current&&(r(l.current),l.current=null)},onFileUploaded:t=>ru(this,void 0,void 0,(function*(){e.onImageCaptured(yield Z(t,"IMPORTED"))})),snappingModeButtonClick:()=>r((e=>function(e){return"auto"===e?"manual":"auto"}(e))),onTorchButtonClick:()=>a((e=>!e)),onReviewButtonClick:e.onReviewButtonClick,onShutterButtonClick:function(){var t,n;return ru(this,void 0,void 0,(function*(){v(!1),null===(t=e.onShutterButtonClick)||void 0===t||t.call(e);const i=yield null===(n=L.current)||void 0===n?void 0:n.detectAndCrop();U(yield Z(i,"MANUAL_SNAP"))}))},scanLimitReached:e.scanLimitReached,config:e.configuration}),M.Ay.createElement(El,{open:s,config:e.configuration.screens.camera.cancelAlertDialog,onCancelClick:()=>c(!1),onActionClick:()=>{},onOkClick:e.onClose}),M.Ay.createElement(tu,{visible:g,onCloseClick:e.onClose,config:e.configuration})))}function au(e){const t=(0,M.Kr)((()=>(0,T.createTheme)({components:{MuiButtonBase:{styleOverrides:{root:{"&:hover, &:focus":{outline:"none"}}},defaultProps:{disableRipple:!0}}}})),[]);return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.ThemeProvider,{theme:t},M.Ay.createElement(T.Typography,{component:"div"},e.children)))}function su(e){const t=w.dI.getColorValue(e.color);return M.Ay.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("mask",{id:"mask0_856_1211",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},M.Ay.createElement("rect",{width:"24",height:"24",fill:"#D9D9D9"})),M.Ay.createElement("g",{mask:"url(#mask0_856_1211)"},M.Ay.createElement("path",{d:"M3 9V3H5V6.35C5.83333 5.31667 6.85417 4.5 8.0625 3.9C9.27083 3.3 10.5833 3 12 3C13.9667 3 15.7208 3.55833 17.2625 4.675C18.8042 5.79167 19.8833 7.23333 20.5 9H18.325C17.7583 7.8 16.9167 6.83333 15.8 6.1C14.6833 5.36667 13.4167 5 12 5C11.05 5 10.1542 5.175 9.3125 5.525C8.47083 5.875 7.73333 6.36667 7.1 7H9V9H3ZM6 18H18L14.25 13L11.25 17L9 14L6 18ZM5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V12H5V20H19V12H21V20C21 20.55 20.8042 21.0208 20.4125 21.4125C20.0208 21.8042 19.55 22 19 22H5Z",fill:t})))}function cu(e){const t=e.config,n=e.isQualityAcceptable?t.acceptWhenOkButton:t.acceptWhenNotOkButton;return M.Ay.createElement(T.Box,{sx:{backgroundColor:w.dI.getColorValue(e.backgroundColor),height:78,display:"flex",width:"100%",zIndex:1e3,justifyContent:"center"}},M.Ay.createElement(T.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:24,flexGrow:1,marginX:"min(24px, 5vw)",maxWidth:400}},M.Ay.createElement(js,{config:e.config.retakeButton,icon:su,enabled:!0,debugName:"ack-retake",onClick:e.onRetake}),M.Ay.createElement(js,{config:n,icon:e=>M.Ay.createElement(T.Check,{style:e}),enabled:!0,debugName:"ack-use-scan",onClick:e.onAccept})))}function lu(e){if(!e.config.visible)return null;const t=w.dI.getColorValue(e.config.color);return M.Ay.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("mask",{id:"mask0_447_6066",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},M.Ay.createElement("rect",{width:"24",height:"24",fill:"#D9D9D9"})),M.Ay.createElement("g",{mask:"url(#mask0_447_6066)"},M.Ay.createElement("path",{d:"M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H13V5H5V19H19V11H21V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM6 17H18L14.25 12L11.25 16L9 13L6 17Z",fill:t}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.17 8.83C15.95 9.61 16.8933 10 18 10C19.1067 10 20.05 9.61 20.83 8.83C21.61 8.05 22 7.10667 22 6C22 4.89333 21.61 3.95 20.83 3.17C20.05 2.39 19.1067 2 18 2C16.8933 2 15.95 2.39 15.17 3.17C14.39 3.95 14 4.89333 14 6C14 7.10667 14.39 8.05 15.17 8.83ZM18.4 6.8V3.6H17.6V6.8H18.4ZM18.28 8.28C18.2 8.36 18.1067 8.4 18 8.4C17.8933 8.4 17.8 8.36 17.72 8.28C17.64 8.2 17.6 8.10667 17.6 8C17.6 7.89333 17.64 7.8 17.72 7.72C17.8 7.64 17.8933 7.6 18 7.6C18.1067 7.6 18.2 7.64 18.28 7.72C18.36 7.8 18.4 7.89333 18.4 8C18.4 8.10667 18.36 8.2 18.28 8.28Z",fill:t})))}function uu(e){if(!e.visible||!e.config.visible)return null;const t=e.config.background;return M.Ay.createElement(T.Box,{style:Object.assign({backgroundColor:w.dI.getColorValue(t.fillColor),borderWidth:t.strokeWidth,borderColor:w.dI.getColorValue(t.strokeColor),display:"flex",alignItems:"center",flexDirection:"row",padding:"10px",borderRadius:"5px",alignSelf:"center",width:"calc(100% - 40px)",margin:10,maxWidth:"438px"},e.style)},M.Ay.createElement(lu,{config:e.config.icon}),M.Ay.createElement(F.D7,{style:{marginLeft:"10px",fontSize:"14px",lineHeight:"16px",fontWeight:400},config:e.config.title}))}function du(e){return M.Ay.createElement("img",{"data-sb-acknowledgment-image":!0,style:{display:"block",maxWidth:"90%",objectFit:"contain",flex:1,height:`calc(100 * ${Zs} - 78px - 52px - 20px)`,paddingTop:10},src:e.image,alt:""})}function mu(e){if(!e.visible)return null;const t=e.isQualityAcceptable;return M.Ay.createElement("div",{style:{display:"inherit",flexDirection:"inherit",justifyContent:"inherit",alignItems:"inherit",height:"100%",width:"100%"}},M.Ay.createElement(du,{image:e.base64Image}),M.Ay.createElement(uu,{visible:!t,config:e.banner.config}),M.Ay.createElement(cu,{isQualityAcceptable:t,backgroundColor:e.bottomBar.backgroundColor,config:e.bottomBar.config,onRetake:e.bottomBar.onRetake,onAccept:e.bottomBar.onAccept}))}function hu(e){const t=w.dI.getColorValue(e.config.checkMarkColor),n=w.dI.getColorValue(e.config.checkMarkBackgroundColor);return M.Ay.createElement("svg",{"data-sb-acknowledgment-checkmark":!0,width:"96",height:"96",viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("path",{d:"M71.2135 31.8234C72.376 32.9859 72.376 34.8984 71.2135 36.0609L43.0885 64.1859C42.5073 64.7672 41.7385 65.0672 40.9698 65.0672C40.201 65.0672 39.4323 64.7672 38.851 64.1859L24.7885 50.1234C23.626 48.9609 23.626 47.0484 24.7885 45.8859C25.951 44.7234 27.8635 44.7234 29.026 45.8859L40.9698 57.8297L66.976 31.8234C68.1385 30.6422 70.051 30.6422 71.2135 31.8234Z",fill:t}),M.Ay.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48 0C21.525 0 0 21.525 0 48C0 74.475 21.525 96 48 96C74.475 96 96 74.475 96 48C96 21.525 74.475 0 48 0ZM71.2135 36.0609C72.376 34.8984 72.376 32.9859 71.2135 31.8234C70.051 30.6422 68.1385 30.6422 66.976 31.8234L40.9698 57.8297L29.026 45.8859C27.8635 44.7234 25.951 44.7234 24.7885 45.8859C23.626 47.0484 23.626 48.9609 24.7885 50.1234L38.851 64.1859C39.4323 64.7672 40.201 65.0672 40.9698 65.0672C41.7385 65.0672 42.5073 64.7672 43.0885 64.1859L71.2135 36.0609Z",fill:n}))}function pu(e){if(!e.visible)return null;if("PageSnapFeedbackNone"===e.mode._type)return null;if("PageSnapFunnelAnimation"===e.mode._type)return M.Ay.createElement(du,{image:e.base64Image});if("PageSnapCheckMarkAnimation"===e.mode._type)return M.Ay.createElement(hu,{config:e.mode});throw new Error(`Unknown PageSnapFeedbackMode: ${e.mode}`)}var Eu=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function Au(e){const t=e.configuration.screens.camera.acknowledgement,n=e.configuration.screens.camera.captureFeedback,i=e.configuration.outputSettings,r=t.acknowledgementMode,[o,a]=M.Ay.useState(null),[s,c]=M.Ay.useState(null),l=M.Ay.useRef(null),u=null!==s,d=()=>"ALWAYS"===r||"NONE"!==r&&(!!u&&("BAD_QUALITY"===r&&!s)),m=t=>{setTimeout((()=>{h(),e.onAccept(t,l.current)}),1500)},h=()=>{a(null),c(null)},p={null:-1,VERY_POOR:0,POOR:1,REASONABLE:2,GOOD:3,EXCELLENT:4};let E;(0,M.vJ)((()=>{var o;const s=e.croppedDetectionResult;if(!s)return;const u=s.value;let d=null!==(o=u.result.croppedImage)&&void 0!==o?o:u.originalImage;return function(){Eu(this,void 0,void 0,(function*(){if(null!==i.defaultFilter&&"FILTERED_DOCUMENT"===i.documentAnalysisMode){const t=yield e.sdk.createImageProcessor();d=(yield t.applyFilter(d,i.defaultFilter,"COPY_IMAGE")).result}if("PageSnapFunnelAnimation"===n.snapFeedbackMode._type||"ALWAYS"===r||"BAD_QUALITY"===r){const t=yield e.sdk.imageToJpeg(d),n=yield f.toBase64(t,!1);a(n)}if("NONE"===r)return c(!0),void m(s);if(null===u.result.croppedImage)return void c(!1);if(null===s.analysis){const t=e.configuration.screens.camera.documentQualityAnalyzerConfiguration;yield s.runAnalysis(e.sdk,t)}l.current=s.analysis.quality;const o=p[s.analysis.quality]>=p[t.minimumQuality];c(o),o&&"BAD_QUALITY"===r&&m(s)}))}(),()=>{h()}}),[e.croppedDetectionResult]),E=d()?t.backgroundColor:"PageSnapFeedbackNone"===n.snapFeedbackMode._type?"transparent":n.snapFeedbackMode.overlayColor,E=w.dI.getColorValue(E);const A=n.cameraBlinkEnabled?Il:"0s";return M.Ay.createElement(O(),{open:e.visible},M.Ay.createElement(T.Fade,{tabIndex:-1,"data-sb-screen-acknowledgment":!0,in:e.visible,timeout:250,style:{position:"absolute",width:"100vw",height:`calc(100 * ${Zs})`,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",transitionDelay:e.visible?A:"0s"}},M.Ay.createElement(T.Box,{style:{display:e.visible?"flex":"none",flexDirection:"column",justifyContent:"center",alignItems:"center",backgroundColor:E,zIndex:1e3}},M.Ay.createElement(pu,{visible:!d()&&u,base64Image:o,mode:n.snapFeedbackMode}),M.Ay.createElement(mu,{visible:d(),isQualityAcceptable:s,base64Image:o,banner:{config:t.badImageHint},bottomBar:{backgroundColor:e.configuration.appearance.bottomBarBackgroundColor,config:t.bottomBar,onRetake:()=>{h(),e.onReject()},onAccept:()=>{h(),e.onAccept(e.croppedDetectionResult,l.current)}}}))))}var gu=n(4169);function fu(e){const t=e.config.screens.review,[n,i]=M.Ay.useState(null);return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(Gs,{style:{backgroundColor:w.dI.getColorValue(e.config.appearance.topBarBackgroundColor)},leftContent:M.Ay.createElement(Ks,{disabled:!e.buttonsEnabled,onClick:e.onCloseButtonClick,visible:t.topBarBackButton.visible,text:t.topBarBackButton.text,background:t.topBarBackButton.background,foreground:t.topBarBackButton.foreground,icon:M.Ay.createElement(O(),{sx:{fontSize:24}}),debugName:"close-review-screen"}),centerTitle:t.topBarTitle,centerTitleReplacementArgs:[`${e.numPages}`],rightContent:M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(Ks,{disabled:!e.buttonsEnabled,onClick:e=>i(e.currentTarget),visible:t.topBarMoreButton.visible,text:"",background:new gu.se({strokeColor:"transparent",fillColor:"transparent",strokeWidth:0}),foreground:new gu.X9({color:t.topBarMoreButton.color,iconVisible:!0}),icon:M.Ay.createElement(O(),{sx:{fontSize:24}}),debugName:"more",id:"sb-button-review-more",ariaLabel:w.dI.getLocalizedText(t.topBarMoreButton.accessibilityDescription)}),M.Ay.createElement(T.Menu,{anchorEl:n,open:null!==n,onClose:()=>i(null),MenuListProps:{"aria-labelledby":"sb-button-review-more"},slotProps:{paper:{style:{backgroundColor:w.dI.getColorValue(t.morePopup.backgroundColor)}}}},M.Ay.createElement(Hc,{disabled:!1,autoFocus:!0,ariaLabel:t.morePopup.deleteAll.accessibilityDescription,onClick:()=>{i(null),e.onDeleteButtonClick()},textColor:t.morePopup.deleteAll.title.color},M.Ay.createElement(O(),{sx:{color:w.dI.getColorValue(t.morePopup.deleteAll.icon.color),visibility:t.morePopup.deleteAll.icon.visible?"visible":"hidden"}}),M.Ay.createElement(F.D7,{config:t.morePopup.deleteAll.title,style:{marginLeft:8}}))))}))}function Cu(e){const t=w.dI.getColorValue(e.color);return M.Ay.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("path",{d:"M6 22C5.45 22 4.97917 21.8042 4.5875 21.4125C4.19583 21.0208 4 20.55 4 20V4C4 3.45 4.19583 2.97917 4.5875 2.5875C4.97917 2.19583 5.45 2 6 2H14L20 8V12.35C19.6833 12.2333 19.3583 12.1458 19.025 12.0875C18.6917 12.0292 18.35 12 18 12V9H13V4H6V20H12.35C12.4833 20.3833 12.65 20.7417 12.85 21.075C13.05 21.4083 13.2833 21.7167 13.55 22H6Z",fill:t}),M.Ay.createElement("path",{d:"M16.8624 19V22H18.8624V19H21.8624V17H18.8624V14H16.8624V17H13.8624V19H16.8624Z",fill:t}))}function _u(e){const t=w.dI.getColorValue(e.color);return M.Ay.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("mask",{id:"mask0_856_1229",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},M.Ay.createElement("rect",{width:"24",height:"24",fill:"#D9D9D9"})),M.Ay.createElement("g",{mask:"url(#mask0_856_1229)"},M.Ay.createElement("path",{d:"M7 21C6.45 21 5.97917 20.8042 5.5875 20.4125C5.19583 20.0208 5 19.55 5 19V6H4V4H9V3H15V4H20V6H19V19C19 19.55 18.8042 20.0208 18.4125 20.4125C18.0208 20.8042 17.55 21 17 21H7ZM17 6H7V19H17V6ZM9 17H11V8H9V17ZM13 17H15V8H13V17Z",fill:t})))}function Du(){return gc("tablet")?80:160}function yu(e){const t=gc("tablet"),n=e.config.screens.review,i=M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(Ts,{style:{height:42,display:"flex",alignItems:"center",justifyContent:"center",fontSize:16,textTransform:"none",padding:"0 20px",width:"100%"},polygonConfig:Object.assign(Object.assign({},n.bottomBar.submitButton.background),{cornerRadius:4})},M.Ay.createElement(F.D7,{config:{text:w.dI.getLocalizedText(n.bottomBar.submitButton.text),visible:!0,color:n.bottomBar.submitButton.foreground.color,useShadow:n.bottomBar.submitButton.foreground.useShadow}}))),r=Object.assign(Object.assign({padding:"4px"},Xs(n.bottomBar.submitButton.background.fillColor)),{"& span":{transition:"transform 0.3s !important"},"&:hover span":{transform:"translateX(6px) !important"},"& > div, &":{transition:"border-radius 0.3s !important"},"&:hover > div, &:hover":{borderRadius:"0px !important"}});return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.Box,{style:{backgroundColor:w.dI.getColorValue(e.config.appearance.bottomBarBackgroundColor),height:Du(),width:"100%"}},M.Ay.createElement(T.Box,{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:t?"space-between":"center",height:80}},t&&M.Ay.createElement(T.Box,{visibility:"hidden"}),M.Ay.createElement(T.Box,{style:{display:"flex",flexDirection:"row",maxWidth:"600px",justifyContent:"space-around",flexGrow:1}},M.Ay.createElement(js,{enabled:e.buttonsEnabled,config:n.bottomBar.addButton,icon:Cu,onClick:e.onAddPageClick,debugName:"add-page"}),M.Ay.createElement(js,{enabled:e.buttonsEnabled,config:n.bottomBar.retakeButton,icon:su,onClick:e.onRetakeClick,debugName:"retake"}),M.Ay.createElement(js,{enabled:e.buttonsEnabled,config:n.bottomBar.cropButton,icon:e=>M.Ay.createElement(O(),{sx:{color:e}}),onClick:e.onCropClick,debugName:"crop-button"}),M.Ay.createElement(js,{enabled:e.buttonsEnabled,config:n.bottomBar.rotateButton,icon:e=>M.Ay.createElement(O(),{sx:{color:e}}),onClick:e.onRotateClick,debugName:"rotate-button"}),M.Ay.createElement(js,{enabled:e.buttonsEnabled,config:n.bottomBar.deleteButton,icon:_u,onClick:e.onDeleteClick,debugName:"delete-button"})),t&&M.Ay.createElement(T.Button,{"data-sb-button-submit":!0,disabled:!e.buttonsEnabled,"aria-label":w.dI.getLocalizedText(n.bottomBar.submitButton.text),sx:Object.assign({flexGrow:1,maxWidth:172,marginX:"4px"},r),onClick:e.onSubmitClick},i)),!t&&M.Ay.createElement(T.Box,{style:{padding:"12px",display:"flex"}},M.Ay.createElement(T.Button,{"data-sb-button-submit":!0,disabled:!e.buttonsEnabled,"aria-label":w.dI.getLocalizedText(n.bottomBar.submitButton.text),sx:Object.assign({flexGrow:1,maxWidth:600,margin:"0 auto"},r),onClick:e.onSubmitClick},i))))}function Iu(e){const t=e.config.pageCounter;return M.Ay.createElement(T.Box,{style:{display:"flex",width:"100%",backgroundColor:w.dI.getColorValue(e.config.backgroundColor),justifyContent:"space-between",alignItems:"end",padding:"16px 0"}},M.Ay.createElement(T.Box,{style:{width:72,height:20}}),M.Ay.createElement(T.Box,null,M.Ay.createElement(Ts,{polygonConfig:{strokeColor:t.background.strokeColor,fillColor:t.background.fillColor,strokeWidth:t.background.strokeWidth,cornerRadius:4},style:{visibility:t.visible?"visible":"hidden"}},M.Ay.createElement(F.D7,{config:t.title,replacementArgs:[`${e.currentPage}`,`${e.totalNumPages}`],style:{fontSize:14,padding:"8px 12px"}}))),M.Ay.createElement(T.Box,null,M.Ay.createElement(T.IconButton,{onClick:e.onZoomButtonClick,"aria-label":w.dI.getLocalizedText(e.config.zoomButton.accessibilityDescription),sx:Object.assign({backgroundColor:w.dI.getColorValue(e.config.zoomButton.backgroundColor),color:w.dI.getColorValue(e.config.zoomButton.foregroundColor),margin:"0 16px",visibility:e.config.zoomButton.visible?"visible":"hidden","&:hover":{backgroundColor:w.dI.getColorValue(e.config.zoomButton.activeBackgroundColor),color:w.dI.getColorValue(e.config.zoomButton.activeForegroundColor)}},Xs(e.config.zoomButton.foregroundColor))},M.Ay.createElement(O(),null))))}function vu(){return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.Ay.createElement("path",{d:"M5.6236 27.7347C2.97532 25.2802 1.23517 22.0019 0.686077 18.4331C0.136983 14.8642 0.811227 11.2145 2.59919 8.0774C4.38716 4.94028 7.1837 2.50018 10.5342 1.15382C13.8847 -0.192539 17.592 -0.365996 21.0536 0.661651L20.0518 4.03609C17.3518 3.23452 14.46 3.36982 11.8467 4.41998C9.23329 5.47014 7.05198 7.37342 5.65737 9.82037C4.26276 12.2673 3.73685 15.1141 4.16514 17.8978C4.59343 20.6815 5.95075 23.2385 8.01641 25.1531L5.6236 27.7347Z",fill:"black",fillOpacity:"0.15"},M.Ay.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",to:"0 16.5 16",from:"360 16.5 16",dur:"2s",begin:"0s",repeatCount:"indefinite"})),M.Ay.createElement("path",{d:"M16.5 1.76C16.5 0.787979 17.2903 -0.0100083 18.2565 0.0967004C20.3808 0.331329 22.4428 0.989952 24.3179 2.04006C26.7065 3.37771 28.7119 5.30584 30.1422 7.64002C31.5726 9.9742 32.3802 12.6364 32.4877 15.3718C32.5951 18.1073 31.9989 20.8246 30.7561 23.2638C29.5133 25.7031 27.6654 27.7826 25.3891 29.3035C23.1129 30.8244 20.4845 31.7359 17.7553 31.9507C15.0262 32.1655 12.2876 31.6764 9.80145 30.5303C7.84973 29.6305 6.10487 28.3495 4.6664 26.7687C4.01218 26.0498 4.19322 24.9414 4.9796 24.3701C5.76598 23.7987 6.85859 23.9836 7.5348 24.6819C8.60362 25.7856 9.87071 26.6862 11.2751 27.3336C13.2143 28.2276 15.3504 28.6091 17.4792 28.4415C19.6079 28.274 21.6581 27.5631 23.4335 26.3767C25.209 25.1904 26.6503 23.5684 27.6198 21.6658C28.5892 19.7632 29.0542 17.6437 28.9704 15.51C28.8865 13.3764 28.2567 11.2999 27.1409 9.47922C26.0252 7.65856 24.4611 6.15461 22.598 5.11125C21.2487 4.35561 19.7753 3.85986 18.2542 3.6439C17.2918 3.50727 16.5 2.73202 16.5 1.76Z",fill:"black"},M.Ay.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",to:"0 16.5 16",from:"360 16.5 16",dur:"2s",begin:"0s",repeatCount:"indefinite"}))))}function Nu(e){return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.Dialog,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},slotProps:{backdrop:{style:{backgroundColor:"transparent"}}},open:e.open,transitionDuration:100},M.Ay.createElement(T.Box,{"data-sb-loading-spinner":!0,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-busy":open?"true":"false",style:{backgroundColor:"#EFEFEF",border:"1px solid #CCC",borderRadius:"4px",height:65,width:65,display:"flex",alignItems:"center",justifyContent:"center"}},M.Ay.createElement(vu,null))))}function Su(e){const t=e.config.visible&&e.active;return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement("div",{style:{width:"40px"}},M.Ay.createElement(T.Button,{[`data-sb-button-${e.debugName}`]:!0,sx:Object.assign({color:w.dI.getColorValue(e.config.color),minWidth:"auto",visibility:t?"visible":"hidden",paddingX:"4px",marginX:"4px"},qs(e.config.color)),onClick:e.onClick,"aria-label":w.dI.getLocalizedText(e.config.accessibilityDescription)},M.Ay.createElement(e.icon,null))))}var bu=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function Mu(e){var t,n;const i=Pc(e.page.finalImageUrl()),[r,o]=M.Ay.useState(null),[a,s]=M.Ay.useState(!1);(0,M.vJ)((()=>{(()=>{bu(this,void 0,void 0,(function*(){!e.animateRotation&&i.value&&(yield new Promise((e=>{const t=document.createElement("img");t.onload=e,t.src=i.value})),o(i.value),s(!1)),e.animateRotation&&s(!0)}))})()}),[i.value,e.animateRotation]);const c=M.Ay.useRef(null),l=(()=>{const e=c.current;if(a&&e){const t=e.parentElement;let n;if([e.clientHeight,e.clientWidth,t.clientHeight,e.clientHeight].some((e=>0===e)))n=1;else{const i=1/(e.clientWidth/e.clientHeight),r=t.clientWidth/t.clientHeight;n=t.clientHeight>e.naturalWidth&&t.clientWidth>e.naturalHeight?Math.max(e.naturalHeight/t.clientHeight,1):i<r?t.clientHeight/e.clientWidth:t.clientWidth/e.clientHeight}return{transform:`rotate(90deg) scale(${n})`,transition:"transform 0.5s"}}return{transform:"none",transition:"none"}})();return null===r&&null!==e.onAnimateRotationDone.current?(null===(n=(t=e.onAnimateRotationDone).current)||void 0===n||n.call(t),null):M.Ay.createElement(M.Ay.Fragment,null,r&&M.Ay.createElement("img",{"data-sb-carousel-page":!0,ref:c,onTransitionEnd:()=>{var t,n;return null===(n=(t=e.onAnimateRotationDone).current)||void 0===n?void 0:n.call(t)},style:Object.assign(Object.assign({},e.style),l),src:r,alt:`Page ${e.index}`}))}function Lu(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)||Array.isArray(e)}function Ru(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every((n=>{const i=e[n],r=t[n];return"function"==typeof i?`${i}`==`${r}`:Lu(i)&&Lu(r)?Ru(i,r):i===r}))}function Tu(e){return e.concat().sort(((e,t)=>e.name>t.name?1:-1)).map((e=>e.options))}function Ou(e){return"number"==typeof e}function wu(e){return"string"==typeof e}function Fu(e){return"boolean"==typeof e}function Bu(e){return"[object Object]"===Object.prototype.toString.call(e)}function Pu(e){return Math.abs(e)}function xu(e){return Math.sign(e)}function ku(e,t){return Pu(e-t)}function Vu(e){return Gu(e).map(Number)}function Uu(e){return e[Zu(e)]}function Zu(e){return Math.max(0,e.length-1)}function Wu(e,t){return t===Zu(e)}function Hu(e,t=0){return Array.from(Array(e),((e,n)=>t+n))}function Gu(e){return Object.keys(e)}function zu(e,t){return[e,t].reduce(((e,t)=>(Gu(t).forEach((n=>{const i=e[n],r=t[n],o=Bu(i)&&Bu(r);e[n]=o?zu(i,r):r})),e)),{})}function Yu(e,t){return"undefined"!=typeof t.MouseEvent&&e instanceof t.MouseEvent}function qu(){let e=[];const t={add:function(n,i,r,o={passive:!0}){let a;if("addEventListener"in n)n.addEventListener(i,r,o),a=()=>n.removeEventListener(i,r,o);else{const e=n;e.addListener(r),a=()=>e.removeListener(r)}return e.push(a),t},clear:function(){e=e.filter((e=>e()))}};return t}function Xu(e,t,n,i){const r=qu(),o=1e3/60;let a=null,s=0,c=0;function l(e){if(!c)return;a||(a=e);const r=e-a;for(a=e,s+=r;s>=o;)n(o),s-=o;i(s/o),c&&t.requestAnimationFrame(l)}function u(){t.cancelAnimationFrame(c),a=null,s=0,c=0}return{init:function(){r.add(e,"visibilitychange",(()=>{e.hidden&&(a=null,s=0)}))},destroy:function(){u(),r.clear()},start:function(){c||(c=t.requestAnimationFrame(l))},stop:u,update:()=>n(o),render:i}}function ju(e=0,t=0){const n=Pu(e-t);function i(t){return t<e}function r(e){return e>t}function o(e){return i(e)||r(e)}return{length:n,max:t,min:e,constrain:function(n){return o(n)?i(n)?e:t:n},reachedAny:o,reachedMax:r,reachedMin:i,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function Qu(e,t,n){const{constrain:i}=ju(0,e),r=e+1;let o=a(t);function a(e){return n?Pu((r+e)%r):i(e)}function s(){return o}function c(){return Qu(e,s(),n)}const l={get:s,set:function(e){return o=a(e),l},add:function(e){return c().set(s()+e)},clone:c};return l}function Ju(e,t,n,i,r,o,a,s,c,l,u,d,m,h,p,E,A,g,f){const{cross:C,direction:_}=e,D=["INPUT","SELECT","TEXTAREA"],y={passive:!1},I=qu(),v=qu(),N=ju(50,225).constrain(h.measure(20)),S={mouse:300,touch:400},b={mouse:500,touch:600},M=p?43:25;let L=!1,R=0,T=0,O=!1,w=!1,F=!1,B=!1;function P(e){if(!Yu(e,i)&&e.touches.length>=2)return x(e);const t=o.readPoint(e),n=o.readPoint(e,C),a=ku(t,R),c=ku(n,T);if(!w&&!B){if(!e.cancelable)return x(e);if(w=a>c,!w)return x(e)}const u=o.pointerMove(e);a>E&&(F=!0),l.useFriction(.3).useDuration(.75),s.start(),r.add(_(u)),e.preventDefault()}function x(e){const t=u.byDistance(0,!1).index!==d.get(),n=o.pointerUp(e)*(p?b:S)[B?"mouse":"touch"],i=function(e,t){const n=d.add(-1*xu(e)),i=u.byDistance(e,!p).distance;return p||Pu(e)<N?i:A&&t?.5*i:u.byIndex(n.get(),0).distance}(_(n),t),r=function(e,t){if(0===e||0===t)return 0;if(Pu(e)<=Pu(t))return 0;const n=ku(Pu(e),Pu(t));return Pu(n/e)}(n,i),a=M-10*r,s=g+r/50;w=!1,O=!1,v.clear(),l.useDuration(a).useFriction(s),c.distance(i,!p),B=!1,m.emit("pointerUp")}function k(e){F&&(e.stopPropagation(),e.preventDefault(),F=!1)}return{init:function(e){if(!f)return;function s(s){(Fu(f)||f(e,s))&&function(e){const s=Yu(e,i);if(B=s,F=p&&s&&!e.buttons&&L,L=ku(r.get(),a.get())>=2,s&&0!==e.button)return;if(function(e){const t=e.nodeName||"";return D.includes(t)}(e.target))return;O=!0,o.pointerDown(e),l.useFriction(0).useDuration(0),r.set(a),function(){const e=B?n:t;v.add(e,"touchmove",P,y).add(e,"touchend",x).add(e,"mousemove",P,y).add(e,"mouseup",x)}(),R=o.readPoint(e),T=o.readPoint(e,C),m.emit("pointerDown")}(s)}const c=t;I.add(c,"dragstart",(e=>e.preventDefault()),y).add(c,"touchmove",(()=>{}),y).add(c,"touchend",(()=>{})).add(c,"touchstart",s).add(c,"mousedown",s).add(c,"touchcancel",x).add(c,"contextmenu",x).add(c,"click",k,!0)},destroy:function(){I.clear(),v.clear()},pointerDown:function(){return O}}}function Ku(e,t){let n,i;function r(e){return e.timeStamp}function o(n,i){const r="client"+("x"===(i||e.scroll)?"X":"Y");return(Yu(n,t)?n:n.touches[0])[r]}return{pointerDown:function(e){return n=e,i=e,o(e)},pointerMove:function(e){const t=o(e)-o(i),a=r(e)-r(n)>170;return i=e,a&&(n=e),t},pointerUp:function(e){if(!n||!i)return 0;const t=o(i)-o(n),a=r(e)-r(n),s=r(e)-r(i)>170,c=t/a;return a&&!s&&Pu(c)>.1?c:0},readPoint:o}}function $u(e,t,n,i,r,o,a){const s=[e].concat(i);let c,l,u=[],d=!1;function m(e){return r.measureSize(a.measure(e))}return{init:function(r){o&&(l=m(e),u=i.map(m),c=new ResizeObserver((n=>{(Fu(o)||o(r,n))&&function(n){for(const o of n){if(d)return;const n=o.target===e,a=i.indexOf(o.target),s=n?l:u[a];if(Pu(m(n?e:i[a])-s)>=.5){r.reInit(),t.emit("resize");break}}}(n)})),n.requestAnimationFrame((()=>{s.forEach((e=>c.observe(e)))})))},destroy:function(){d=!0,c&&c.disconnect()}}}function ed(e,t,n,i,r){const o=r.measure(10),a=r.measure(50),s=ju(.1,.99);let c=!1;function l(){return!c&&(!!e.reachedAny(n.get())&&!!e.reachedAny(t.get()))}return{shouldConstrain:l,constrain:function(r){if(!l())return;const c=e.reachedMin(t.get())?"min":"max",u=Pu(e[c]-t.get()),d=n.get()-t.get(),m=s.constrain(u/a);n.subtract(d*m),!r&&Pu(d)<o&&(n.set(e.constrain(n.get())),i.useDuration(25).useBaseFriction())},toggleActive:function(e){c=!e}}}function td(e,t,n,i){const r=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:s}=ju(r,o);return{loop:function(t){if(!function(e){return 1===e?s(n.get()):-1===e&&a(n.get())}(t))return;const r=e*(-1*t);i.forEach((e=>e.add(r)))}}}function nd(e,t,n,i,r){const{reachedAny:o,removeOffset:a,constrain:s}=i;function c(e){return e.concat().sort(((e,t)=>Pu(e)-Pu(t)))[0]}function l(t,i){const r=[t,t+n,t-n];if(!e)return t;if(!i)return c(r);const o=r.filter((e=>xu(e)===i));return o.length?c(o):Uu(r)-n}const u={byDistance:function(n,i){const c=r.get()+n,{index:u,distance:d}=function(n){const i=e?a(n):s(n),r=t.map(((e,t)=>({diff:l(e-i,0),index:t}))).sort(((e,t)=>Pu(e.diff)-Pu(t.diff))),{index:o}=r[0];return{index:o,distance:i}}(c),m=!e&&o(c);return!i||m?{index:u,distance:n}:{index:u,distance:n+l(t[u]-d,0)}},byIndex:function(e,n){return{index:e,distance:l(t[e]-r.get(),n)}},shortcut:l};return u}function id(e,t,n,i,r,o,a,s){const c={passive:!0,capture:!0};let l=0;function u(e){"Tab"===e.code&&(l=(new Date).getTime())}return{init:function(d){s&&(o.add(document,"keydown",u,!1),t.forEach(((t,u)=>{o.add(t,"focus",(t=>{(Fu(s)||s(d,t))&&function(t){if((new Date).getTime()-l>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const o=n.findIndex((e=>e.includes(t)));Ou(o)&&(r.useDuration(0),i.index(o,0),a.emit("slideFocus"))}(u)}),c)})))}}}function rd(e){let t=e;function n(e){return Ou(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function od(e,t){const n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},i=t.style;let r=!1;return{clear:function(){r||(i.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){r||(i.transform=n(e.direction(t)))},toggleActive:function(e){r=!e}}}function ad(e,t,n,i,r,o,a,s,c){const l=Vu(r),u=Vu(r).reverse(),d=function(){const e=a[0];return p(h(u,e),n,!1)}().concat(function(){const e=t-a[0]-1;return p(h(l,e),-n,!0)}());function m(e,t){return e.reduce(((e,t)=>e-r[t]),t)}function h(e,t){return e.reduce(((e,n)=>m(e,t)>0?e.concat([n]):e),[])}function p(r,a,l){const u=function(e){return o.map(((n,r)=>({start:n-i[r]+.5+e,end:n+t-.5+e})))}(a);return r.map((t=>{const i=l?0:-n,r=l?n:0,o=l?"end":"start",a=u[t][o];return{index:t,loopPoint:a,slideLocation:rd(-1),translate:od(e,c[t]),target:()=>s.get()>a?i:r}}))}return{canLoop:function(){return d.every((({index:e})=>m(l.filter((t=>t!==e)),t)<=.1))},clear:function(){d.forEach((e=>e.translate.clear()))},loop:function(){d.forEach((e=>{const{target:t,translate:n,slideLocation:i}=e,r=t();r!==i.get()&&(n.to(r),i.set(r))}))},loopPoints:d}}function sd(e,t,n){let i,r=!1;return{init:function(o){n&&(i=new MutationObserver((e=>{r||(Fu(n)||n(o,e))&&function(e){for(const n of e)if("childList"===n.type){o.reInit(),t.emit("slidesChanged");break}}(e)})),i.observe(e,{childList:!0}))},destroy:function(){i&&i.disconnect(),r=!0}}}function cd(e,t,n,i){const r={};let o,a=null,s=null,c=!1;return{init:function(){o=new IntersectionObserver((e=>{c||(e.forEach((e=>{const n=t.indexOf(e.target);r[n]=e})),a=null,s=null,n.emit("slidesInView"))}),{root:e.parentElement,threshold:i}),t.forEach((e=>o.observe(e)))},destroy:function(){o&&o.disconnect(),c=!0},get:function(e=!0){if(e&&a)return a;if(!e&&s)return s;const t=function(e){return Gu(r).reduce(((t,n)=>{const i=parseInt(n),{isIntersecting:o}=r[i];return(e&&o||!e&&!o)&&t.push(i),t}),[])}(e);return e&&(a=t),e||(s=t),t}}}function ld(e,t,n,i,r,o,a,s,c){const{startEdge:l,endEdge:u,direction:d}=e,m=Ou(n);return{groupSlides:function(e){return m?function(e,t){return Vu(e).filter((e=>e%t==0)).map((n=>e.slice(n,n+t)))}(e,n):function(e){return e.length?Vu(e).reduce(((n,m,h)=>{const p=Uu(n)||0,E=0===p,A=m===Zu(e),g=r[l]-o[p][l],f=r[l]-o[m][u],C=!i&&E?d(a):0,_=Pu(f-(!i&&A?d(s):0)-(g+C));return h&&_>t+c&&n.push(m),A&&n.push(e.length),n}),[]).map(((t,n,i)=>{const r=Math.max(i[n-1]||0);return e.slice(r,t)})):[]}(e)}}}function ud(e,t,n,i,r,o,a){const{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:m,dragFree:h,dragThreshold:p,inViewThreshold:E,slidesToScroll:A,skipSnaps:g,containScroll:f,watchResize:C,watchSlides:_,watchDrag:D,watchFocus:y}=o,I={measure:function(e){const{offsetTop:t,offsetLeft:n,offsetWidth:i,offsetHeight:r}=e;return{top:t,right:n+i,bottom:t+r,left:n,width:i,height:r}}},v=I.measure(t),N=n.map(I.measure),S=function(e,t){const n="rtl"===t,i="y"===e,r=!i&&n?-1:1;return{scroll:i?"y":"x",cross:i?"x":"y",startEdge:i?"top":n?"right":"left",endEdge:i?"bottom":n?"left":"right",measureSize:function(e){const{height:t,width:n}=e;return i?t:n},direction:function(e){return e*r}}}(c,l),b=S.measureSize(v),M=function(e){return{measure:function(t){return e*(t/100)}}}(b),L=function(e,t){const n={start:function(){return 0},center:function(e){return i(e)/2},end:i};function i(e){return t-e}return{measure:function(i,r){return wu(e)?n[e](i):e(t,i,r)}}}(s,b),R=!d&&!!f,T=d||!!f,{slideSizes:O,slideSizesWithGaps:w,startGap:F,endGap:B}=function(e,t,n,i,r,o){const{measureSize:a,startEdge:s,endEdge:c}=e,l=n[0]&&r,u=function(){if(!l)return 0;const e=n[0];return Pu(t[s]-e[s])}(),d=function(){if(!l)return 0;const e=o.getComputedStyle(Uu(i));return parseFloat(e.getPropertyValue(`margin-${c}`))}(),m=n.map(a),h=n.map(((e,t,n)=>{const i=!t,r=Wu(n,t);return i?m[t]+u:r?m[t]+d:n[t+1][s]-e[s]})).map(Pu);return{slideSizes:m,slideSizesWithGaps:h,startGap:u,endGap:d}}(S,v,N,n,T,r),P=ld(S,b,A,d,v,N,F,B,2),{snaps:x,snapsAligned:k}=function(e,t,n,i,r){const{startEdge:o,endEdge:a}=e,{groupSlides:s}=r,c=s(i).map((e=>Uu(e)[a]-e[0][o])).map(Pu).map(t.measure),l=i.map((e=>n[o]-e[o])).map((e=>-Pu(e))),u=s(l).map((e=>e[0])).map(((e,t)=>e+c[t]));return{snaps:l,snapsAligned:u}}(S,L,v,N,P),V=-Uu(x)+Uu(w),{snapsContained:U,scrollContainLimit:Z}=function(e,t,n,i,r){const o=ju(-t+e,0),a=n.map(((e,t)=>{const{min:i,max:r}=o,a=o.constrain(e),s=!t,l=Wu(n,t);return s?r:l||c(i,a)?i:c(r,a)?r:a})).map((e=>parseFloat(e.toFixed(3)))),s=function(){const e=a[0],t=Uu(a);return ju(a.lastIndexOf(e),a.indexOf(t)+1)}();function c(e,t){return ku(e,t)<1}return{snapsContained:function(){if(t<=e+r)return[o.max];if("keepSnaps"===i)return a;const{min:n,max:c}=s;return a.slice(n,c)}(),scrollContainLimit:s}}(b,V,k,f,2),W=R?U:k,{limit:H}=function(e,t,n){const i=t[0];return{limit:ju(n?i-e:Uu(t),i)}}(V,W,d),G=Qu(Zu(W),u,d),z=G.clone(),Y=Vu(n),q=Xu(i,r,(e=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:i}},r)=>{i||n.constrain(e.pointerDown()),t.seek(r)})(se,e)),(e=>(({scrollBody:e,translate:t,location:n,offsetLocation:i,scrollLooper:r,slideLooper:o,dragHandler:a,animation:s,eventHandler:c,scrollBounds:l,options:{loop:u}},d)=>{const m=e.settled(),h=!l.shouldConstrain(),p=u?m:m&&h;p&&!a.pointerDown()&&(s.stop(),c.emit("settle")),p||c.emit("scroll");const E=n.get()*d+Q.get()*(1-d);i.set(E),u&&(r.loop(e.direction()),o.loop()),t.to(i.get())})(se,e))),X=W[G.get()],j=rd(X),Q=rd(X),J=rd(X),K=rd(X),$=function(e,t,n,i,r,o){let a=0,s=0,c=r,l=o,u=e.get(),d=0;function m(e){return c=e,p}function h(e){return l=e,p}const p={direction:function(){return s},duration:function(){return c},velocity:function(){return a},seek:function(t){const r=t/1e3,o=c*r,m=i.get()-e.get();let h=0;return c?(n.set(e),a+=m/o,a*=l,u+=a,e.add(a*r),h=u-d):(a=0,n.set(i),e.set(i),h=m),s=xu(h),d=u,p},settled:function(){return Pu(i.get()-t.get())<.001},useBaseFriction:function(){return h(o)},useBaseDuration:function(){return m(r)},useFriction:h,useDuration:m};return p}(j,J,Q,K,m,.68),ee=nd(d,W,V,H,K),te=function(e,t,n,i,r,o,a){function s(r){const s=r.distance,c=r.index!==t.get();o.add(s),s&&(i.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(r.index),a.emit("select"))}return{distance:function(e,t){s(r.byDistance(e,t))},index:function(e,n){const i=t.clone().set(e);s(r.byIndex(i.get(),n))}}}(q,G,z,$,ee,K,a),ne=function(e){const{max:t,length:n}=e;return{get:function(e){return n?(e-t)/-n:0}}}(H),ie=qu(),re=cd(t,n,a,E),{slideRegistry:oe}=function(e,t,n,i,r,o){const{groupSlides:a}=r,{min:s,max:c}=i;return{slideRegistry:function(){const i=a(o),r=!e||"keepSnaps"===t;return 1===n.length?[o]:r?i:i.slice(s,c).map(((e,t,n)=>{const i=!t,r=Wu(n,t);return i?Hu(Uu(n[0])+1):r?Hu(Zu(o)-Uu(n)[0]+1,Uu(n)[0]):e}))}()}}(R,f,W,Z,P,Y),ae=id(e,n,oe,te,$,ie,a,y),se={ownerDocument:i,ownerWindow:r,eventHandler:a,containerRect:v,slideRects:N,animation:q,axis:S,dragHandler:Ju(S,e,i,r,K,Ku(S,r),j,q,te,$,ee,G,a,M,h,p,g,.68,D),eventStore:ie,percentOfView:M,index:G,indexPrevious:z,limit:H,location:j,offsetLocation:J,previousLocation:Q,options:o,resizeHandler:$u(t,a,r,n,S,C,I),scrollBody:$,scrollBounds:ed(H,J,K,$,M),scrollLooper:td(V,H,J,[j,J,Q,K]),scrollProgress:ne,scrollSnapList:W.map(ne.get),scrollSnaps:W,scrollTarget:ee,scrollTo:te,slideLooper:ad(S,b,V,O,w,x,W,J,n),slideFocus:ae,slidesHandler:sd(t,a,_),slidesInView:re,slideIndexes:Y,slideRegistry:oe,slidesToScroll:P,target:K,translate:od(S,t)};return se}const dd={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function md(e){function t(e,t){return zu(e,t||{})}const n={mergeOptions:t,optionsAtMedia:function(n){const i=n.breakpoints||{},r=Gu(i).filter((t=>e.matchMedia(t).matches)).map((e=>i[e])).reduce(((e,n)=>t(e,n)),{});return t(n,r)},optionsMediaQueries:function(t){return t.map((e=>Gu(e.breakpoints||{}))).reduce(((e,t)=>e.concat(t)),[]).map(e.matchMedia)}};return n}function hd(e,t,n){const i=e.ownerDocument,r=i.defaultView,o=md(r),a=function(e){let t=[];const n={init:function(n,i){return t=i.filter((({options:t})=>!1!==e.optionsAtMedia(t).active)),t.forEach((t=>t.init(n,e))),i.reduce(((e,t)=>Object.assign(e,{[t.name]:t})),{})},destroy:function(){t=t.filter((e=>e.destroy()))}};return n}(o),s=qu(),c=function(){let e,t={};function n(e){return t[e]||[]}const i={init:function(t){e=t},emit:function(t){return n(t).forEach((n=>n(e,t))),i},off:function(e,r){return t[e]=n(e).filter((e=>e!==r)),i},on:function(e,r){return t[e]=n(e).concat([r]),i},clear:function(){t={}}};return i}(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=o,{on:m,off:h,emit:p}=c,E=S;let A,g,f,C,_=!1,D=l(dd,hd.globalOptions),y=l(D),I=[];function v(t){const n=ud(e,f,C,i,r,t,c);if(t.loop&&!n.slideLooper.canLoop()){return v(Object.assign({},t,{loop:!1}))}return n}function N(t,n){_||(D=l(D,t),y=u(D),I=n||I,function(){const{container:t,slides:n}=y,i=wu(t)?e.querySelector(t):t;f=i||e.children[0];const r=wu(n)?f.querySelectorAll(n):n;C=[].slice.call(r||f.children)}(),A=v(y),d([D,...I.map((({options:e})=>e))]).forEach((e=>s.add(e,"change",S))),y.active&&(A.translate.to(A.location.get()),A.animation.init(),A.slidesInView.init(),A.slideFocus.init(R),A.eventHandler.init(R),A.resizeHandler.init(R),A.slidesHandler.init(R),A.options.loop&&A.slideLooper.loop(),f.offsetParent&&C.length&&A.dragHandler.init(R),g=a.init(R,I)))}function S(e,t){const n=L();b(),N(l({startIndex:n},e),t),c.emit("reInit")}function b(){A.dragHandler.destroy(),A.eventStore.clear(),A.translate.clear(),A.slideLooper.clear(),A.resizeHandler.destroy(),A.slidesHandler.destroy(),A.slidesInView.destroy(),A.animation.destroy(),a.destroy(),s.clear()}function M(e,t,n){y.active&&!_&&(A.scrollBody.useBaseFriction().useDuration(!0===t?0:y.duration),A.scrollTo.index(e,n||0))}function L(){return A.index.get()}const R={canScrollNext:function(){return A.index.add(1).get()!==L()},canScrollPrev:function(){return A.index.add(-1).get()!==L()},containerNode:function(){return f},internalEngine:function(){return A},destroy:function(){_||(_=!0,s.clear(),b(),c.emit("destroy"),c.clear())},off:h,on:m,emit:p,plugins:function(){return g},previousScrollSnap:function(){return A.indexPrevious.get()},reInit:E,rootNode:function(){return e},scrollNext:function(e){M(A.index.add(1).get(),e,-1)},scrollPrev:function(e){M(A.index.add(-1).get(),e,1)},scrollProgress:function(){return A.scrollProgress.get(A.location.get())},scrollSnapList:function(){return A.scrollSnapList},scrollTo:M,selectedScrollSnap:L,slideNodes:function(){return C},slidesInView:function(){return A.slidesInView.get()},slidesNotInView:function(){return A.slidesInView.get(!1)}};return N(t,n),setTimeout((()=>c.emit("init")),0),R}function pd(e={},t=[]){const n=(0,M.li)(e),i=(0,M.li)(t),[r,o]=(0,M.J0)(),[a,s]=(0,M.J0)(),c=(0,M.hb)((()=>{r&&r.reInit(n.current,i.current)}),[r]);return(0,M.vJ)((()=>{Ru(n.current,e)||(n.current=e,c())}),[e,c]),(0,M.vJ)((()=>{(function(e,t){if(e.length!==t.length)return!1;const n=Tu(e),i=Tu(t);return n.every(((e,t)=>Ru(e,i[t])))})(i.current,t)||(i.current=t,c())}),[t,c]),(0,M.vJ)((()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&a){hd.globalOptions=pd.globalOptions;const e=hd(a,n.current,i.current);return o(e),()=>e.destroy()}o(void 0)}),[a,o]),[s,r]}hd.globalOptions=void 0,pd.globalOptions=void 0;function Ed(e){var t,n,i;const r=(0,M.Kr)((()=>{var t;return null!==(t=e.currentPosition)&&void 0!==t?t:0}),[]),o={duration:20,startIndex:r},[a,s]=pd(o);(0,M.vJ)((()=>{s&&s.on("select",(()=>{e.onGoToPage(null==s?void 0:s.selectedScrollSnap())}))}),[s]),(0,M.vJ)((()=>{s&&(e.buttonsEnabled?s.reInit({watchDrag:!0}):s.reInit({watchDrag:!1}))}),[e.buttonsEnabled]);const c=Du();return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.Box,{sx:{flexGrow:1,backgroundColor:w.dI.getColorValue(e.configuration.screens.review.backgroundColor),width:"100vw",display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"32px"}},M.Ay.createElement(Su,{config:e.configuration.screens.review.switchPreviousPageButton,icon:O(),onClick:()=>null==s?void 0:s.scrollTo(e.currentPosition-1),active:e.currentPosition>0,debugName:"carousel-back"}),M.Ay.createElement("div",{className:"embla",ref:a,style:{overflow:"hidden",width:"100%",height:"100%"}},M.Ay.createElement("div",{className:"embla__container",style:{display:"flex",height:"100%"}},null===(t=e.document)||void 0===t?void 0:t.pages.map(((t,n)=>{const i=`calc(100 * ${Zs} - ${Hs+c+72+32}px)`;return M.Ay.createElement("div",{className:"embla__slide",key:t.id,style:{position:"relative",minWidth:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0"}},M.Ay.createElement(Mu,{page:t,animateRotation:t.id===e.currentlyRotatingPageId,onAnimateRotationDone:e.onRotationAnimationDone,index:n+1,style:{maxHeight:i,maxWidth:"100%"}}))})))),M.Ay.createElement(Su,{config:e.configuration.screens.review.switchNextPageButton,icon:O(),onClick:()=>null==s?void 0:s.scrollTo(e.currentPosition+1),active:e.currentPosition<(null===(i=null===(n=e.document)||void 0===n?void 0:n.pages)||void 0===i?void 0:i.length)-1,debugName:"carousel-forward"})))}var Ad=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function gd(e){var t,n,i,r,o,a;const s=null===(t=e.document)||void 0===t?void 0:t.pageAtIndex(e.currentPosition),[c,l]=M.Ay.useState(!1);(0,M.vJ)((()=>{e.visible&&!e.configuration.screens.review.enabled&&e.onSubmit()}),[e.visible]),(0,M.vJ)((()=>{var t,n;0===(null===(n=null===(t=e.document)||void 0===t?void 0:t.pages)||void 0===n?void 0:n.length)&&e.visible&&!c&&e.onClose()}),[null===(n=e.document)||void 0===n?void 0:n.pages,e.visible,c]);const[u,d]=(0,M.J0)(!0),[m,h]=(0,M.J0)(null),p=(0,M.li)(null),[E,A]=(0,M.J0)(!1),[g,f]=(0,M.J0)(!1);return(0,M.vJ)((()=>{d(!E&&!g)}),[E,g]),e.visible?M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(Nu,{open:c}),M.Ay.createElement(El,{open:E,config:e.configuration.screens.review.deletePageAlertDialog,onCancelClick:()=>A(!1),onActionClick:()=>{A(!1),e.onRetakeImage(e.currentPosition)},onOkClick:()=>Ad(this,void 0,void 0,(function*(){var t,n,i;l(!0),(null===(n=null===(t=e.document)||void 0===t?void 0:t.pages)||void 0===n?void 0:n.length)>1&&e.onGoToPage(Math.max(e.currentPosition-1,0)),yield null===(i=e.document)||void 0===i?void 0:i.deletePage(s),l(!1),A(!1)}))}),M.Ay.createElement(El,{open:g,config:e.configuration.screens.review.deleteAllPagesAlertDialog,onCancelClick:()=>f(!1),onOkClick:()=>Ad(this,void 0,void 0,(function*(){var t;l(!0),yield null===(t=e.document)||void 0===t?void 0:t.deleteAllPages(),l(!1),f(!1)}))}),M.Ay.createElement(T.Box,{"data-sb-screen-review":!0,display:e.visible?"flex":"none",style:{position:"absolute",width:"100vw",height:`calc(100 * ${Zs})`,flexDirection:"column",alignItems:"center",justifyContent:"center"}},M.Ay.createElement(fu,{config:e.configuration,numPages:null===(r=null===(i=e.document)||void 0===i?void 0:i.pages)||void 0===r?void 0:r.length,onCloseButtonClick:e.onClose,onDeleteButtonClick:()=>f(!0),buttonsEnabled:u}),M.Ay.createElement(Ed,{buttonsEnabled:u,document:e.document,currentPosition:e.currentPosition,onGoToPage:e.onGoToPage,configuration:e.configuration,onRotationAnimationDone:p,currentlyRotatingPageId:m}),M.Ay.createElement(Iu,{config:e.configuration.screens.review,currentPage:e.currentPosition+1,totalNumPages:null===(a=null===(o=e.document)||void 0===o?void 0:o.pages)||void 0===a?void 0:a.length,onZoomButtonClick:()=>e.onZoomButtonClick(e.currentPosition)}),M.Ay.createElement(yu,{config:e.configuration,onSubmitClick:e.onSubmit,onAddPageClick:()=>{e.onInsertImage(e.currentPosition+1)},onRetakeClick:()=>e.onRetakeImage(e.currentPosition),onCropClick:()=>e.onCropButtonClick(e.currentPosition),onRotateClick:()=>Ad(this,void 0,void 0,(function*(){var t,n;if(null!==p.current)return;d(!1),l(!0);const i=null===(t=e.document)||void 0===t?void 0:t.pageAtIndex(e.currentPosition),r=new Promise((e=>{p.current=e,h(i.id)})),o=null===(n=e.document)||void 0===n?void 0:n.cropAndRotatePage(i,null,1);yield Promise.all([r,o]),yield i.finalImageUrl(),p.current=null,h(null),d(!0),l(!1)})),onDeleteClick:()=>A(!0),buttonsEnabled:u}))):null}var fd=function(e,t){return Number(e.toFixed(t))},Cd=function(e,t,n){n&&"function"==typeof n&&n(e,t)},_d={easeOut:function(e){return-Math.cos(e*Math.PI)/2+.5},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},Dd=function(e){"number"==typeof e&&cancelAnimationFrame(e)},yd=function(e){e.mounted&&(Dd(e.animation),e.animate=!1,e.animation=null,e.velocity=null)};function Id(e,t,n,i){if(e.mounted){var r=(new Date).getTime();yd(e),e.animation=function(){if(!e.mounted)return Dd(e.animation);var o=(new Date).getTime()-r,a=(0,_d[t])(o/n);o>=n?(i(1),e.animation=null):e.animation&&(i(a),requestAnimationFrame(e.animation))},requestAnimationFrame(e.animation)}}function vd(e,t,n,i){var r=function(e){var t=e.scale,n=e.positionX,i=e.positionY;return!(Number.isNaN(t)||Number.isNaN(n)||Number.isNaN(i))}(t);if(e.mounted&&r){var o=e.setTransformState,a=e.transformState,s=a.scale,c=a.positionX,l=a.positionY,u=t.scale-s,d=t.positionX-c,m=t.positionY-l;0===n?o(t.scale,t.positionX,t.positionY):Id(e,i,n,(function(e){o(s+u*e,c+d*e,l+m*e)}))}}var Nd=function(e,t){var n=e.wrapperComponent,i=e.contentComponent,r=e.setup.centerZoomedOut;if(!n||!i)throw new Error("Components are not mounted");var o=function(e,t,n){var i=e.offsetWidth,r=e.offsetHeight,o=t.offsetWidth*n,a=t.offsetHeight*n;return{wrapperWidth:i,wrapperHeight:r,newContentWidth:o,newDiffWidth:i-o,newContentHeight:a,newDiffHeight:r-a}}(n,i,t),a=o.wrapperWidth,s=o.wrapperHeight,c=function(e,t,n,i,r,o,a){var s=e>t?n*(a?1:.5):0,c=i>r?o*(a?1:.5):0;return{minPositionX:e-t-s,maxPositionX:s,minPositionY:i-r-c,maxPositionY:c}}(a,o.newContentWidth,o.newDiffWidth,s,o.newContentHeight,o.newDiffHeight,Boolean(r));return c},Sd=function(e,t,n,i){return fd(i?e<t?t:e>n?n:e:e,2)},bd=function(e,t){var n=Nd(e,t);return e.bounds=n,n};function Md(e,t,n,i,r,o,a){var s=n.minPositionX,c=n.minPositionY,l=n.maxPositionX,u=n.maxPositionY,d=0,m=0;return a&&(d=r,m=o),{x:Sd(e,s-d,l+d,i),y:Sd(t,c-m,u+m,i)}}function Ld(e,t,n,i,r,o){var a=e.transformState,s=a.scale,c=a.positionX,l=a.positionY,u=i-s;return"number"!=typeof t||"number"!=typeof n?(console.error("Mouse X and Y position were not provided!"),{x:c,y:l}):Md(c-t*u,l-n*u,r,o,0,0,null)}function Rd(e,t,n,i,r){var o=t-(r?i:0);return!Number.isNaN(n)&&e>=n?n:!Number.isNaN(t)&&e<=o?o:e}var Td=function(e,t){var n=e.setup.panning.excluded,i=e.isInitialized,r=e.wrapperComponent,o=t.target,a="shadowRoot"in o&&"composedPath"in t?t.composedPath().some((function(e){return e instanceof Element&&(null==r?void 0:r.contains(e))})):null==r?void 0:r.contains(o);return!!(i&&o&&a)&&!um(o,n)},Od=function(e){var t=e.isInitialized,n=e.isPanning,i=e.setup.panning.disabled;return!(!t||!n||i)};function wd(e,t,n,i,r){var o=e.setup.limitToBounds,a=e.wrapperComponent,s=e.bounds,c=e.transformState,l=c.scale,u=c.positionX,d=c.positionY;if(null!==a&&null!==s&&(t!==u||n!==d)){var m=Md(t,n,s,o,i,r,a),h=m.x,p=m.y;e.setTransformState(l,h,p)}}var Fd=function(e,t){var n=e.setup,i=e.transformState.scale,r=n.minScale,o=n.disablePadding;return t>0&&i>=r&&!o?t:0};function Bd(e,t,n,i,r,o,a,s,c,l){if(r){var u;if(t>a&&n>a)return(u=a+(e-a)*l)>c?c:u<a?a:u;if(t<o&&n<o)return(u=o+(e-o)*l)<s?s:u>o?o:u}return i?t:Sd(e,o,a,r)}function Pd(e,t){var n=function(e){var t=e.mounted,n=e.setup,i=n.disabled,r=n.velocityAnimation,o=e.transformState.scale;return!(r.disabled&&!(o>1)&&i&&!t)}(e);if(n){var i=e.lastMousePosition,r=e.velocityTime,o=e.setup,a=e.wrapperComponent,s=o.velocityAnimation.equalToMove,c=Date.now();if(i&&r&&a){var l=function(e,t){return t?Math.min(1,e.offsetWidth/window.innerWidth):1}(a,s),u=t.x-i.x,d=t.y-i.y,m=u/l,h=d/l,p=c-r,E=u*u+d*d,A=Math.sqrt(E)/p;e.velocity={velocityX:m,velocityY:h,total:A}}e.lastMousePosition=t,e.velocityTime=c}}function xd(e,t){var n=e.transformState.scale;yd(e),bd(e,n),void 0!==window.TouchEvent&&t instanceof TouchEvent?function(e,t){var n=t.touches,i=e.transformState,r=i.positionX,o=i.positionY;if(e.isPanning=!0,1===n.length){var a=n[0].clientX,s=n[0].clientY;e.startCoords={x:a-r,y:s-o}}}(e,t):function(e,t){var n=e.transformState,i=n.positionX,r=n.positionY;e.isPanning=!0;var o=t.clientX,a=t.clientY;e.startCoords={x:o-i,y:a-r}}(e,t)}function kd(e){var t=e.transformState.scale,n=e.setup,i=n.minScale,r=n.alignmentAnimation,o=r.disabled,a=r.sizeX,s=r.sizeY,c=r.animationTime,l=r.animationType;if(!(o||t<i||!a&&!s)){var u=function(e){var t=e.transformState,n=t.positionX,i=t.positionY,r=t.scale,o=e.setup,a=o.disabled,s=o.limitToBounds,c=o.centerZoomedOut,l=e.wrapperComponent;if(!a&&l&&e.bounds){var u=e.bounds,d=u.maxPositionX,m=u.minPositionX,h=u.maxPositionY,p=u.minPositionY,E=n>d||n<m,A=i>h||i<p,g=Ld(e,n>d?l.offsetWidth:e.setup.minPositionX||0,i>h?l.offsetHeight:e.setup.minPositionY||0,r,e.bounds,s||c),f=g.x,C=g.y;return{scale:r,positionX:E?f:n,positionY:A?C:i}}}(e);u&&vd(e,u,c,l)}}function Vd(e,t,n){var i=e.startCoords,r=e.setup.alignmentAnimation,o=r.sizeX,a=r.sizeY;if(i){var s=function(e,t,n){var i=e.startCoords,r=e.transformState,o=e.setup.panning,a=o.lockAxisX,s=o.lockAxisY,c=r.positionX,l=r.positionY;if(!i)return{x:c,y:l};var u=t-i.x,d=n-i.y;return{x:a?c:u,y:s?l:d}}(e,t,n),c=s.x,l=s.y,u=Fd(e,o),d=Fd(e,a);Pd(e,{x:c,y:l}),wd(e,c,l,u,d)}}function Ud(e){if(e.isPanning){var t=e.setup.panning.velocityDisabled,n=e.velocity,i=e.wrapperComponent,r=e.contentComponent;e.isPanning=!1,e.animate=!1,e.animation=null;var o=null==i?void 0:i.getBoundingClientRect(),a=null==r?void 0:r.getBoundingClientRect(),s=(null==o?void 0:o.width)||0,c=(null==o?void 0:o.height)||0,l=(null==a?void 0:a.width)||0,u=(null==a?void 0:a.height)||0,d=s<l||c<u;!t&&n&&(null==n?void 0:n.total)>.1&&d?function(e){var t=e.velocity,n=e.bounds,i=e.setup,r=e.wrapperComponent,o=function(e){var t=e.mounted,n=e.velocity,i=e.bounds,r=e.setup,o=r.disabled,a=r.velocityAnimation,s=e.transformState.scale;return!(a.disabled&&!(s>1)&&o&&!t||!n||!i)}(e);if(o&&t&&n&&r){var a=t.velocityX,s=t.velocityY,c=t.total,l=n.maxPositionX,u=n.minPositionX,d=n.maxPositionY,m=n.minPositionY,h=i.limitToBounds,p=i.alignmentAnimation,E=i.zoomAnimation,A=i.panning,g=A.lockAxisY,f=A.lockAxisX,C=E.animationType,_=p.sizeX,D=p.sizeY,y=p.velocityAlignmentTime,I=function(e,t){var n=e.setup.velocityAnimation,i=n.equalToMove,r=n.animationTime,o=n.sensitivity;return i?r*t*o:r}(e,c),v=Math.max(I,y),N=Fd(e,_),S=Fd(e,D),b=N*r.offsetWidth/100,M=S*r.offsetHeight/100,L=l+b,R=u-b,T=d+M,O=m-M,w=e.transformState,F=(new Date).getTime();Id(e,C,v,(function(t){var n=e.transformState,i=n.scale,r=n.positionX,o=n.positionY,c=((new Date).getTime()-F)/y,E=1-(0,_d[p.animationType])(Math.min(1,c)),A=1-t,C=r+a*A,_=o+s*A,D=Bd(C,w.positionX,r,f,h,u,l,R,L,E),I=Bd(_,w.positionY,o,g,h,m,d,O,T,E);r===C&&o===_||e.setTransformState(i,D,I)}))}}(e):kd(e)}}function Zd(e,t,n,i){var r=e.setup,o=r.minScale,a=r.maxScale,s=r.limitToBounds,c=Rd(fd(t,2),o,a,0,!1),l=Ld(e,n,i,c,bd(e,c),s);return{scale:c,positionX:l.x,positionY:l.y}}function Wd(e,t,n){var i=e.transformState.scale,r=e.wrapperComponent,o=e.setup,a=o.minScale,s=o.limitToBounds,c=o.zoomAnimation,l=c.disabled,u=c.animationTime,d=c.animationType,m=l||i>=a;if((i>=1||s)&&kd(e),!m&&r&&e.mounted){var h=Zd(e,a,t||r.offsetWidth/2,n||r.offsetHeight/2);h&&vd(e,h,u,d)}}var Hd=function(){return Hd=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Hd.apply(this,arguments)};function Gd(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var zd=1,Yd=0,qd=0,Xd={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,disablePadding:!1,smooth:!0,wheel:{step:.2,disabled:!1,smoothStep:.001,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,allowLeftClickPan:!0,allowMiddleClickPan:!0,allowRightClickPan:!0,wheelPanning:!1,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:!0}},jd=function(e){var t,n,i,r;return{previousScale:null!==(t=e.initialScale)&&void 0!==t?t:zd,scale:null!==(n=e.initialScale)&&void 0!==n?n:zd,positionX:null!==(i=e.initialPositionX)&&void 0!==i?i:Yd,positionY:null!==(r=e.initialPositionY)&&void 0!==r?r:qd}},Qd=function(e){var t=Hd({},Xd);return Object.keys(e).forEach((function(n){var i="undefined"!=typeof e[n];if("undefined"!=typeof Xd[n]&&i){var r=Object.prototype.toString.call(Xd[n]),o="[object Object]"===r,a="[object Array]"===r;t[n]=o?Hd(Hd({},Xd[n]),e[n]):a?Gd(Gd([],Xd[n],!0),e[n],!0):e[n]}})),t},Jd=function(e,t,n){var i=e.transformState.scale,r=e.wrapperComponent,o=e.setup,a=o.maxScale,s=o.minScale,c=o.zoomAnimation,l=o.smooth,u=c.size;if(!r)throw new Error("Wrapper is not mounted");var d=l?i*Math.exp(t*n):i+t*n;return Rd(fd(d,3),s,a,u,!1)};function Kd(e,t,n,i,r){var o=e.wrapperComponent,a=e.transformState,s=a.scale,c=a.positionX,l=a.positionY;if(!o)return console.error("No WrapperComponent found");var u=(o.offsetWidth/2-c)/s,d=(o.offsetHeight/2-l)/s,m=Zd(e,Jd(e,t,n),u,d);if(!m)return console.error("Error during zoom event. New transformation state was not calculated.");vd(e,m,i,r)}function $d(e,t,n,i){var r=e.setup,o=e.wrapperComponent,a=r.limitToBounds,s=jd(e.props),c=e.transformState,l=c.scale,u=c.positionX,d=c.positionY;if(o){var m=Nd(e,s.scale),h=Md(s.positionX,s.positionY,m,a,0,0,o),p={scale:s.scale,positionX:h.x,positionY:h.y};l===s.scale&&u===s.positionX&&d===s.positionY||(null==i||i(),vd(e,p,t,n))}}var em=function(e){return function(t,n,i){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===i&&(i="easeOut"),Kd(e,1,t,n,i)}},tm=function(e){return function(t,n,i){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===i&&(i="easeOut"),Kd(e,-1,t,n,i)}},nm=function(e){return function(t,n,i,r,o){void 0===r&&(r=300),void 0===o&&(o="easeOut");var a=e.transformState,s=a.positionX,c=a.positionY,l=a.scale,u=e.wrapperComponent,d=e.contentComponent;if(!e.setup.disabled&&u&&d){var m={positionX:Number.isNaN(t)?s:t,positionY:Number.isNaN(n)?c:n,scale:Number.isNaN(i)?l:i};vd(e,m,r,o)}}},im=function(e){return function(t,n){void 0===t&&(t=200),void 0===n&&(n="easeOut"),$d(e,t,n)}},rm=function(e){return function(t,n,i){void 0===n&&(n=200),void 0===i&&(i="easeOut");var r=e.transformState,o=e.wrapperComponent,a=e.contentComponent;if(o&&a){var s=mm(t||r.scale,o,a);vd(e,s,n,i)}}},om=function(e){return function(t,n,i,r){void 0===i&&(i=600),void 0===r&&(r="easeOut"),yd(e);var o=e.wrapperComponent,a="string"==typeof t?document.getElementById(t):t;if(o&&a&&o.contains(a)){var s=function(e,t,n){var i=e.wrapperComponent,r=e.contentComponent,o=e.transformState,a=e.setup,s=a.limitToBounds,c=a.minScale,l=a.maxScale;if(!i||!r)return o;var u,d,m,h,p,E,A,g,f=i.getBoundingClientRect(),C=t.getBoundingClientRect(),_=(u=i,d=r,m=o,h=t.getBoundingClientRect(),p=u.getBoundingClientRect(),E=d.getBoundingClientRect(),A=p.x*m.scale,g=p.y*m.scale,{x:(h.x-E.x+A)/m.scale,y:(h.y-E.y+g)/m.scale}),D=_.x,y=_.y,I=C.width/o.scale,v=C.height/o.scale,N=i.offsetWidth/I,S=i.offsetHeight/v,b=Rd(n||Math.min(N,S),c,l,0,!1),M=(f.width-I*b)/2,L=(f.height-v*b)/2,R=Md((f.left-D)*b+M,(f.top-y)*b+L,Nd(e,b),s,0,0,i);return{positionX:R.x,positionY:R.y,scale:b}}(e,a,n);vd(e,s,i,r)}}},am=function(e){return{instance:e,zoomIn:em(e),zoomOut:tm(e),setTransform:nm(e),resetTransform:im(e),centerView:rm(e),zoomToElement:om(e)}},sm=function(e){return{instance:e,state:e.transformState}},cm=function(e){var t={};return Object.assign(t,sm(e)),Object.assign(t,am(e)),t};function lm(){try{return{get passive(){return!0,!1}}}catch(e){return!1}}var um=function(e,t){return t.some((function(t){return e.matches("".concat(t,", .").concat(t,", ").concat(t," *, .").concat(t," *"))}))},dm=function(e){e&&clearTimeout(e)},mm=function(e,t,n){var i=n.offsetWidth*e,r=n.offsetHeight*e;return{scale:e,positionX:(t.offsetWidth-i)/2,positionY:(t.offsetHeight-r)/2}};function hm(e,t,n){var i=t.getBoundingClientRect(),r=0,o=0;if("clientX"in e)r=(e.clientX-i.left)/n,o=(e.clientY-i.top)/n;else{var a=e.touches[0];r=(a.clientX-i.left)/n,o=(a.clientY-i.top)/n}return(Number.isNaN(r)||Number.isNaN(o))&&console.error("No mouse or touch offset found"),{x:r,y:o}}var pm=function(e){return Math.sqrt(Math.pow(e.touches[0].pageX-e.touches[1].pageX,2)+Math.pow(e.touches[0].pageY-e.touches[1].pageY,2))},Em=function(e,t){var n=e.props,i=n.onWheel,r=n.onZoom,o=e.contentComponent,a=e.setup,s=e.transformState.scale,c=a.limitToBounds,l=a.centerZoomedOut,u=a.zoomAnimation,d=a.wheel,m=a.disablePadding,h=a.smooth,p=u.size,E=u.disabled,A=d.step,g=d.smoothStep;if(!o)throw new Error("Component not mounted");t.preventDefault(),t.stopPropagation();var f=function(e,t){var n,i,r=function(e){return e?e.deltaY<0?1:-1:0}(e);return i=r,"number"==typeof(n=t)?n:i}(t,null),C=function(e,t,n,i,r){var o=e.transformState.scale,a=e.wrapperComponent,s=e.setup,c=s.maxScale,l=s.minScale,u=s.zoomAnimation,d=s.disablePadding,m=u.size,h=u.disabled;if(!a)throw new Error("Wrapper is not mounted");var p=o+t*n;if(r)return p;var E=!i&&!h;return Rd(fd(p,3),l,c,m,E&&!d)}(e,f,h?g*Math.abs(t.deltaY):A,!t.ctrlKey);if(s!==C){var _=bd(e,C),D=hm(t,o,s),y=c&&(E||0===p||l||m),I=Ld(e,D.x,D.y,C,_,y),v=I.x,N=I.y;e.previousWheelEvent=t,e.setTransformState(C,v,N),Cd(cm(e),t,i),Cd(cm(e),t,r)}},Am=function(e,t){var n=e.props,i=n.onWheelStop,r=n.onZoomStop;dm(e.wheelAnimationTimer),e.wheelAnimationTimer=setTimeout((function(){e.mounted&&(Wd(e,t.x,t.y),e.wheelAnimationTimer=null)}),100);var o=function(e,t){var n=e.previousWheelEvent,i=e.transformState.scale,r=e.setup,o=r.maxScale,a=r.minScale;return!!n&&(i<o||i>a||Math.sign(n.deltaY)!==Math.sign(t.deltaY)||n.deltaY>0&&n.deltaY<t.deltaY||n.deltaY<0&&n.deltaY>t.deltaY||Math.sign(n.deltaY)!==Math.sign(t.deltaY))}(e,t);o&&(dm(e.wheelStopEventTimer),e.wheelStopEventTimer=setTimeout((function(){e.mounted&&(e.wheelStopEventTimer=null,Cd(cm(e),t,i),Cd(cm(e),t,r))}),160))},gm=function(e){for(var t=0,n=0,i=0;i<2;i+=1)t+=e.touches[i].clientX,n+=e.touches[i].clientY;return{x:t/2,y:n/2}},fm=function(e,t){var n=e.contentComponent,i=e.pinchStartDistance,r=e.wrapperComponent,o=e.transformState.scale,a=e.setup,s=a.limitToBounds,c=a.centerZoomedOut,l=a.zoomAnimation,u=a.alignmentAnimation,d=l.disabled,m=l.size;if(null!==i&&n){var h=function(e,t,n){var i=n.getBoundingClientRect(),r=e.touches,o=fd(r[0].clientX-i.left,5),a=fd(r[0].clientY-i.top,5);return{x:(o+fd(r[1].clientX-i.left,5))/2/t,y:(a+fd(r[1].clientY-i.top,5))/2/t}}(t,o,n);if(Number.isFinite(h.x)&&Number.isFinite(h.y)){var p=pm(t),E=function(e,t){var n=e.pinchStartScale,i=e.pinchStartDistance,r=e.setup,o=r.maxScale,a=r.minScale,s=r.zoomAnimation,c=r.disablePadding,l=s.size,u=s.disabled;if(!n||null===i||!t)throw new Error("Pinch touches distance was not provided");return t<0?e.transformState.scale:Rd(fd(t/i*n,2),a,o,l,!u&&!c)}(e,p),A=gm(t),g=A.x-(e.pinchLastCenterX||0),f=A.y-(e.pinchLastCenterY||0);if(E!==o||0!==g||0!==f){e.pinchLastCenterX=A.x,e.pinchLastCenterY=A.y;var C=bd(e,E),_=s&&(d||0===m||c),D=Ld(e,h.x,h.y,E,C,_),y=D.x,I=D.y;e.pinchMidpoint=h,e.lastDistance=p;var v=u.sizeX,N=u.sizeY,S=Md(y+g,I+f,C,s,Fd(e,v),Fd(e,N),r),b=S.x,M=S.y;e.setTransformState(E,b,M)}}}},Cm=function(e,t){var n=e.props.onZoomStop,i=e.setup.doubleClick.animationTime;dm(e.doubleClickStopEventTimer),e.doubleClickStopEventTimer=setTimeout((function(){e.doubleClickStopEventTimer=null,Cd(cm(e),t,n)}),i)};function _m(e,t){var n=e.setup,i=e.doubleClickStopEventTimer,r=e.transformState,o=e.contentComponent,a=r.scale,s=e.props,c=s.onZoomStart,l=s.onZoom,u=n.doubleClick,d=u.disabled,m=u.mode,h=u.step,p=u.animationTime,E=u.animationType;if(!d&&!i){if("reset"===m)return function(e,t){var n=e.props,i=n.onZoomStart,r=n.onZoom,o=e.setup.doubleClick,a=o.animationTime,s=o.animationType;Cd(cm(e),t,i),$d(e,a,s,(function(){return Cd(cm(e),t,r)})),Cm(e,t)}(e,t);if(!o)return console.error("No ContentComponent found");var A=function(e,t){return"toggle"===e?1===t?1:-1:"zoomOut"===e?-1:1}(m,e.transformState.scale),g=Jd(e,A,h);if(a!==g){Cd(cm(e),t,c);var f=hm(t,o,a),C=Zd(e,g,f.x,f.y);if(!C)return console.error("Error during zoom event. New transformation state was not calculated.");Cd(cm(e),t,l),vd(e,C,p,E),Cm(e,t)}}}var Dm=function(e){var t=this;this.mounted=!0,this.pinchLastCenterX=null,this.pinchLastCenterY=null,this.onChangeCallbacks=new Set,this.onInitCallbacks=new Set,this.wrapperComponent=null,this.contentComponent=null,this.isInitialized=!1,this.bounds=null,this.previousWheelEvent=null,this.wheelStopEventTimer=null,this.wheelAnimationTimer=null,this.isPanning=!1,this.isWheelPanning=!1,this.startCoords=null,this.lastTouch=null,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.animate=!1,this.animation=null,this.maxBounds=null,this.pressedKeys={},this.mount=function(){t.initializeWindowEvents()},this.unmount=function(){t.cleanupWindowEvents()},this.update=function(e){t.props=e,bd(t,t.transformState.scale),t.setup=Qd(e)},this.initializeWindowEvents=function(){var e,n,i=lm(),r=null===(e=t.wrapperComponent)||void 0===e?void 0:e.ownerDocument,o=null==r?void 0:r.defaultView;null===(n=t.wrapperComponent)||void 0===n||n.addEventListener("wheel",t.onWheelPanning,i),null==o||o.addEventListener("mousedown",t.onPanningStart,i),null==o||o.addEventListener("mousemove",t.onPanning,i),null==o||o.addEventListener("mouseup",t.onPanningStop,i),null==r||r.addEventListener("mouseleave",t.clearPanning,i),null==o||o.addEventListener("keyup",t.setKeyUnPressed,i),null==o||o.addEventListener("keydown",t.setKeyPressed,i)},this.cleanupWindowEvents=function(){var e,n,i=lm(),r=null===(e=t.wrapperComponent)||void 0===e?void 0:e.ownerDocument,o=null==r?void 0:r.defaultView;null==o||o.removeEventListener("mousedown",t.onPanningStart,i),null==o||o.removeEventListener("mousemove",t.onPanning,i),null==o||o.removeEventListener("mouseup",t.onPanningStop,i),null==r||r.removeEventListener("mouseleave",t.clearPanning,i),null==o||o.removeEventListener("keyup",t.setKeyUnPressed,i),null==o||o.removeEventListener("keydown",t.setKeyPressed,i),document.removeEventListener("mouseleave",t.clearPanning,i),yd(t),null===(n=t.observer)||void 0===n||n.disconnect()},this.handleInitializeWrapperEvents=function(e){var n=lm();e.addEventListener("wheel",t.onWheelZoom,n),e.addEventListener("dblclick",t.onDoubleClick,n),e.addEventListener("touchstart",t.onTouchPanningStart,n),e.addEventListener("touchmove",t.onTouchPanning,n),e.addEventListener("touchend",t.onTouchPanningStop,n)},this.handleInitialize=function(e){var n=t.setup.centerOnInit;t.applyTransformation(),t.onInitCallbacks.forEach((function(e){return e(cm(t))})),n&&(t.setCenter(),t.observer=new ResizeObserver((function(){var n,i=e.offsetWidth,r=e.offsetHeight;(i>0||r>0)&&(t.onInitCallbacks.forEach((function(e){return e(cm(t))})),t.setCenter(),null===(n=t.observer)||void 0===n||n.disconnect())})),setTimeout((function(){var e;null===(e=t.observer)||void 0===e||e.disconnect()}),5e3),t.observer.observe(e))},this.onWheelZoom=function(e){if(!t.setup.disabled){var n=function(e,t){var n=e.setup.wheel,i=n.disabled,r=n.wheelDisabled,o=n.touchPadDisabled,a=n.excluded,s=e.isInitialized,c=e.isPanning,l=t.target;return!(!s||c||i||!l||r&&!t.ctrlKey||o&&t.ctrlKey||um(l,a))}(t,e);n&&t.isPressingKeys(t.setup.wheel.activationKeys)&&(function(e,t){var n=e.props,i=n.onWheelStart,r=n.onZoomStart;e.wheelStopEventTimer||(yd(e),Cd(cm(e),t,i),Cd(cm(e),t,r))}(t,e),Em(t,e),Am(t,e))}},this.onWheelPanning=function(e){var n=t.setup,i=n.disabled,r=n.wheel,o=n.panning;if(t.wrapperComponent&&t.contentComponent&&!i&&r.wheelDisabled&&!o.disabled&&o.wheelPanning&&!e.ctrlKey){e.preventDefault(),e.stopPropagation();var a=t.transformState,s=a.positionX,c=a.positionY,l=s-e.deltaX,u=c-e.deltaY,d=o.lockAxisX?s:l,m=o.lockAxisY?c:u,h=t.setup.alignmentAnimation,p=h.sizeX,E=h.sizeY,A=Fd(t,p),g=Fd(t,E);d===s&&m===c||wd(t,d,m,A,g)}},this.onPanningStart=function(e){var n=t.setup.disabled,i=t.props.onPanningStart;n||Td(t,e)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(0!==e.button||t.setup.panning.allowLeftClickPan)&&(1!==e.button||t.setup.panning.allowMiddleClickPan)&&(2!==e.button||t.setup.panning.allowRightClickPan)&&(e.preventDefault(),e.stopPropagation(),yd(t),xd(t,e),Cd(cm(t),e,i))},this.onPanning=function(e){var n=t.setup.disabled,i=t.props.onPanning;n||Od(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),Vd(t,e.clientX,e.clientY),Cd(cm(t),e,i))},this.onPanningStop=function(e){var n=t.props.onPanningStop;t.isPanning&&(Ud(t),Cd(cm(t),e,n))},this.onPinchStart=function(e){var n=t.setup.disabled,i=t.props,r=i.onPinchingStart,o=i.onZoomStart;if(!n){var a=function(e,t){var n=e.setup.pinch,i=n.disabled,r=n.excluded,o=e.isInitialized,a=t.target;return!(!o||i||!a||um(a,r))}(t,e);a&&(function(e,t){var n=pm(t);e.pinchStartDistance=n,e.lastDistance=n,e.pinchStartScale=e.transformState.scale,e.isPanning=!1;var i=gm(t);e.pinchLastCenterX=i.x,e.pinchLastCenterY=i.y,yd(e)}(t,e),yd(t),Cd(cm(t),e,r),Cd(cm(t),e,o))}},this.onPinch=function(e){var n=t.setup.disabled,i=t.props,r=i.onPinching,o=i.onZoom;if(!n){var a=function(e){var t=e.setup.pinch.disabled,n=e.isInitialized,i=e.pinchStartDistance;return!(!n||t||!i)}(t);a&&(e.preventDefault(),e.stopPropagation(),fm(t,e),Cd(cm(t),e,r),Cd(cm(t),e,o))}},this.onPinchStop=function(e){var n,i,r=t.props,o=r.onPinchingStop,a=r.onZoomStop;t.pinchStartScale&&(i=(n=t).pinchMidpoint,n.velocity=null,n.lastDistance=null,n.pinchMidpoint=null,n.pinchStartScale=null,n.pinchStartDistance=null,Wd(n,null==i?void 0:i.x,null==i?void 0:i.y),Cd(cm(t),e,o),Cd(cm(t),e,a))},this.onTouchPanningStart=function(e){var n=t.setup.disabled,i=t.props.onPanningStart;if(!n&&Td(t,e))if(t.lastTouch&&+new Date-t.lastTouch<200&&1===e.touches.length)t.onDoubleClick(e);else{t.lastTouch=+new Date,yd(t);var r=e.touches,o=1===r.length,a=2===r.length;o&&(yd(t),xd(t,e),Cd(cm(t),e,i)),a&&t.onPinchStart(e)}},this.onTouchPanning=function(e){var n=t.setup.disabled,i=t.props.onPanning;if(t.isPanning&&1===e.touches.length){if(n)return;if(!Od(t))return;e.preventDefault(),e.stopPropagation();var r=e.touches[0];Vd(t,r.clientX,r.clientY),Cd(cm(t),e,i)}else e.touches.length>1&&t.onPinch(e)},this.onTouchPanningStop=function(e){t.onPanningStop(e),t.onPinchStop(e)},this.onDoubleClick=function(e){if(!t.setup.disabled){var n=function(e,t){var n=e.isInitialized,i=e.setup,r=e.wrapperComponent,o=i.doubleClick,a=o.disabled,s=o.excluded,c=t.target,l=null==r?void 0:r.contains(c);return!(!(n&&c&&l)||a||um(c,s))}(t,e);n&&_m(t,e)}},this.clearPanning=function(e){t.isPanning&&t.onPanningStop(e)},this.setKeyPressed=function(e){t.pressedKeys[e.key]=!0},this.setKeyUnPressed=function(e){t.pressedKeys[e.key]=!1},this.isPressingKeys=function(e){return!e.length||Boolean(e.find((function(e){return t.pressedKeys[e]})))},this.setTransformState=function(e,n,i){var r=t.props.onTransformed;if(Number.isNaN(e)||Number.isNaN(n)||Number.isNaN(i))console.error("Detected NaN set state values");else{e!==t.transformState.scale&&(t.transformState.previousScale=t.transformState.scale,t.transformState.scale=e),t.transformState.positionX=n,t.transformState.positionY=i,t.applyTransformation();var o=cm(t);t.onChangeCallbacks.forEach((function(e){return e(o)})),Cd(o,{scale:e,positionX:n,positionY:i},r)}},this.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var e=mm(t.transformState.scale,t.wrapperComponent,t.contentComponent);t.setTransformState(e.scale,e.positionX,e.positionY)}},this.handleTransformStyles=function(e,n,i){return t.props.customTransform?t.props.customTransform(e,n,i):function(e,t,n){return"translate(".concat(e,"px, ").concat(t,"px) scale(").concat(n,")")}(e,n,i)},this.applyTransformation=function(){if(t.mounted&&t.contentComponent){var e=t.transformState,n=e.scale,i=e.positionX,r=e.positionY,o=t.handleTransformStyles(i,r,n);t.contentComponent.style.transform=o}},this.getContext=function(){return cm(t)},this.onChange=function(e){return t.onChangeCallbacks.has(e)||t.onChangeCallbacks.add(e),function(){t.onChangeCallbacks.delete(e)}},this.onInit=function(e){return t.onInitCallbacks.has(e)||t.onInitCallbacks.add(e),function(){t.onInitCallbacks.delete(e)}},this.init=function(e,n){t.cleanupWindowEvents(),t.wrapperComponent=e,t.contentComponent=n,bd(t,t.transformState.scale),t.handleInitializeWrapperEvents(e),t.handleInitialize(n),t.initializeWindowEvents(),t.isInitialized=!0;var i=cm(t);Cd(i,void 0,t.props.onInit)},this.props=e,this.setup=Qd(this.props),this.transformState=jd(this.props)},ym=M.Ay.createContext(null),Im=M.Ay.forwardRef((function(e,t){var n,i,r=(0,M.li)(new Dm(e)).current,o=(n=e.children,i=am(r),"function"==typeof n?n(i):n);return(0,M.Yn)(t,(function(){return am(r)}),[r]),(0,M.vJ)((function(){r.update(e)}),[r,e]),M.Ay.createElement(ym.Provider,{value:r},o)}));M.Ay.forwardRef((function(e,t){var n,i=(0,M.li)(null),r=(0,M.NT)(ym);return(0,M.vJ)((function(){return r.onChange((function(e){if(i.current){i.current.style.transform=r.handleTransformStyles(0,0,1/e.instance.transformState.scale)}}))}),[r]),M.Ay.createElement("div",Hd({},e,{ref:(n=[i,t],function(e){n.forEach((function(t){"function"==typeof t?t(e):null!=t&&(t.current=e)}))})}))}));var vm="transform-component-module_wrapper__SPB86",Nm="transform-component-module_content__FBWxo";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".transform-component-module_wrapper__SPB86 {\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n overflow: hidden;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n margin: 0;\n padding: 0;\n}\n.transform-component-module_content__FBWxo {\n display: flex;\n flex-wrap: wrap;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n margin: 0;\n padding: 0;\n transform-origin: 0% 0%;\n}\n.transform-component-module_content__FBWxo img {\n pointer-events: none;\n}\n");var Sm=function(e){var t=e.children,n=e.wrapperClass,i=void 0===n?"":n,r=e.contentClass,o=void 0===r?"":r,a=e.wrapperStyle,s=e.contentStyle,c=e.wrapperProps,l=void 0===c?{}:c,u=e.contentProps,d=void 0===u?{}:u,m=(0,M.NT)(ym),h=m.init,p=m.cleanupWindowEvents,E=(0,M.li)(null),A=(0,M.li)(null);return(0,M.vJ)((function(){var e=E.current,t=A.current;return null!==e&&null!==t&&h&&(null==h||h(e,t)),function(){null==p||p()}}),[]),M.Ay.createElement("div",Hd({},l,{ref:E,className:"react-transform-wrapper ".concat(vm," ").concat(i),style:a}),M.Ay.createElement("div",Hd({},d,{ref:A,className:"react-transform-component ".concat(Nm," ").concat(o),style:s}),t))};function bm(e){var t;const n=Pc(null===(t=e.page)||void 0===t?void 0:t.finalImageUrl());if(!(e.visible&&n.value))return null;const i=e.config.closeButton;return M.Ay.createElement(M.Ay.Fragment,null,M.Ay.createElement(T.Box,{style:{touchAction:"none",backgroundColor:w.dI.getColorValue(e.config.overlayColor)}},M.Ay.createElement(T.Box,{style:{textAlign:"right",height:"45px",paddingRight:8}},M.Ay.createElement(Ks,{onClick:e.onCloseButtonClick,visible:i.visible,text:i.text,background:i.background,foreground:i.foreground,ariaLabel:w.dI.getLocalizedText(i.accessibilityDescription),iconPosition:"right",icon:M.Ay.createElement(O(),{style:{paddingLeft:4}})})),M.Ay.createElement(Im,{centerOnInit:!0},M.Ay.createElement(Sm,{wrapperStyle:{width:"100%"},contentStyle:{width:"100%"}},M.Ay.createElement(T.Box,{style:{width:"100%",height:`calc(100 *${Zs} - 45px)`,display:"flex",justifyContent:"center",alignItems:"center",touchAction:"none"}},M.Ay.createElement("img",{src:n.value,alt:"Zoomed image",style:{maxWidth:"100%",maxHeight:"100%"}}))))))}var Mm=n(2381);class Lm{constructor(){this.disabled=!1,this.color="transparent"}}class Rm{constructor(){this.color="white",this.border="1px solid lightgray",this.size=20,this.filter=""}}class Tm{constructor(){this.color="#1ec31e",this.width=4}}class Om{constructor(){this.padding=10}}class wm{constructor(){this.margin=15,this.size=100,this.zoom=1.5}}class Fm{constructor(){this.width=2,this.color="white"}}class Bm{constructor(){this.size=20,this.color="white"}}class Pm extends Mm.m{constructor(){super(),this.disableScroll=!0,this.rotations=0,this.style=new Om,this.style.magneticLines=new Lm,this.style.polygon=new Tm,this.style.polygon.handles=new Rm,this.style.magnifier=new wm,this.style.magnifier.border=new Fm,this.style.magnifier.crosshair=new Bm}static fromJson(e){const t=new Pm;return this.mapValues(e,t,["style"]),e.style&&(this.mapValues(e.style,t.style,["polygon","magneticLines","magnifier"]),e.style.polygon&&(this.mapValues(e.style.polygon,t.style.polygon,["handles"]),e.style.polygon.handles&&this.mapValues(e.style.polygon.handles,t.style.polygon.handles)),e.style.magneticLines&&this.mapValues(e.style.magneticLines,t.style.magneticLines,[]),e.style.magnifier&&(this.mapValues(e.style.magnifier,t.style.magnifier,["border","crosshair"]),e.style.magnifier.border&&this.mapValues(e.style.magnifier.border,t.style.magnifier.border,[]),e.style.magnifier.crosshair&&this.mapValues(e.style.magnifier.crosshair,t.style.magnifier.crosshair,[]))),t}}class xm extends M.Ay.Component{constructor(){super(...arguments),this.BUFFER=4}fromPoint(e){return M.Ay.createElement("svg",{style:{width:"100%",height:"100%",position:"absolute"}},M.Ay.createElement("line",{x1:e.start.x.toString(),y1:e.start.y.toString(),x2:e.end.x.toString(),y2:e.end.y.toString(),style:{stroke:this.props.style.color,strokeWidth:2}}))}componentDidUpdate(e,t,n){this.props.style.disabled||this.snapToClosestIfAnyAreClose()}render(){var e,t,n,i,r,o;return M.Ay.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"}},null===(n=null===(t=null===(e=this.props.lines)||void 0===e?void 0:e.horizontal)||void 0===t?void 0:t.scaled)||void 0===n?void 0:n.map((e=>this.fromPoint(e))),null===(o=null===(r=null===(i=this.props.lines)||void 0===i?void 0:i.vertical)||void 0===r?void 0:r.scaled)||void 0===o?void 0:o.map((e=>this.fromPoint(e))))}snapToClosestIfAnyAreClose(){var e,t,n,i;const r=this.props.movingLine;let o=null===(t=null===(e=this.props.lines)||void 0===e?void 0:e.vertical)||void 0===t?void 0:t.scaled;if(r.isHorizontal&&(o=null===(i=null===(n=this.props.lines)||void 0===n?void 0:n.horizontal)||void 0===i?void 0:i.scaled),!o||0===o.length)return;const a=this.midPoint(r.points[0].coordinates,r.points[1].coordinates),s=o.map((e=>({distance:this.distanceToLine(e,a),mLine:e})));s.sort(((e,t)=>e.distance-t.distance)),s[0].distance<this.BUFFER&&this.props.snapTo({magneticLine:s[0].mLine,polygonLine:r})}distanceToLine(e,t){const n=t.x-e.start.x,i=t.y-e.start.y,r=e.end.x-e.start.x,o=e.end.y-e.start.y,a=r*r+o*o;if(0===a)return 1/0;const s=(n*r+i*o)/a;let c;return c=s<=0?e.start:s>=1?e.end:new Ka.b(e.start.x+s*r,e.start.y+s*o),Ka.b.distance(t,c)}midPoint(e,t){return new Ka.b((e.x+t.x)/2,(e.y+t.y)/2)}}class km extends M.Ay.Component{constructor(){super(...arguments),this.POINT_COUNT=4,this.items=[],this.DRAG_BUFFER=5}get pointSize(){var e,t;return(null===(e=this.props.style)||void 0===e?void 0:e.size)?(null===(t=this.props)||void 0===t?void 0:t.scale)?this.props.style.size/this.props.scale:this.props.style.size:0}get pointStyle(){var e,t,n;return{width:this.pointSize+"px",height:this.pointSize+"px",border:null===(e=this.props.style)||void 0===e?void 0:e.border,borderRadius:this.pointSize/2+"px",backgroundColor:null===(t=this.props.style)||void 0===t?void 0:t.color,position:"absolute",cursor:"pointer",zIndex:500,filter:null===(n=this.props.style)||void 0===n?void 0:n.filter}}nextIndex(e){return(e+1)%this.POINT_COUNT}previousIndex(e){return(e-1+this.POINT_COUNT)%this.POINT_COUNT}isHorizontal(e){return e%2==0}isOutOfBounds(e,t){return e<-this.DRAG_BUFFER||e>t+this.DRAG_BUFFER}get invisibleHandleStyle(){return{width:"50px",height:"50px",opacity:0,position:"relative",top:this.pointSize/2-25+"px",left:this.pointSize/2-25+"px",borderRadius:"25px"}}}class Vm extends km{create(){if(!this.props.points||4!==this.props.points.length)return null;const e=[];for(let t=0;t<this.POINT_COUNT;t++){const n=this.props.points[t],i=M.Ay.createElement("div",{style:Object.assign(Object.assign({},this.pointStyle),{left:n.x-this.pointSize/2+"px",top:n.y-this.pointSize/2+"px"}),key:t.toString(),ref:e=>this.items[t]=e,onPointerDown:e=>this.cornerTouchStart(e,t),onPointerUp:e=>this.cornerTouchEnd(e),onPointerMove:e=>this.cornerTouchMove(e,t),"data-sb-cropping-corner":t},M.Ay.createElement("div",{style:Object.assign({},this.invisibleHandleStyle)}));e.push(i)}return e}cornerTouchStart(e,t){e.target.setPointerCapture(e.pointerId);const n=Ka.b.fromCoordinates(e.clientX,e.clientY,this.props.rotations,this.props.scale),i=this.items[t],r=Ka.b.fromHtmlElement(i);this.parentOffset=new Ka.b(n.x-r.x,n.y-r.y),this.props.cornerMoveStart({index:t,point:this.props.points[t]})}cornerTouchMove(e,t){if(!this.parentOffset)return;const n=Ka.b.fromCoordinates(e.clientX,e.clientY,this.props.rotations,this.props.scale),{x:i,y:r}=(0,oc.$)({x:n.x-this.parentOffset.x,y:n.y-this.parentOffset.y},this.pointSize,this.props.containerSize),o=this.pointSize/2,a=this.props.points[t];this.props.points[t]=new Ka.b(i+o,r+o),Ns.isConvex(this.props.points)?this.props.cornerMoved({index:t,point:this.props.points[t]}):this.props.points[t]=a}cornerTouchEnd(e){e.target.releasePointerCapture(e.pointerId),this.parentOffset=null,this.props.cornerMoveEnd()}render(){return M.Ay.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",cursor:"pointer",zIndex:500,userSelect:"none",msUserSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none"}},this.create())}}class Um extends km{create(){if(!this.props.points||4!==this.props.points.length)return null;const e=[];for(let t=0;t<this.POINT_COUNT;t++){const n=this.props.points[t];let i=this.props.points[this.nextIndex(t)];const r=M.Ay.createElement("div",{style:Object.assign(Object.assign({},this.pointStyle),{left:n.x+(i.x-n.x)/2-this.pointSize/2+"px",top:n.y+(i.y-n.y)/2-this.pointSize/2+"px"}),key:t.toString(),ref:e=>this.items[t]=e,onPointerDown:e=>this.lineTouchStart(e,t),onPointerMove:e=>this.lineTouchMove(e,t),onPointerUp:e=>this.lineTouchEnd(e),"data-sb-cropping-side":t},M.Ay.createElement("div",{style:this.invisibleHandleStyle}));e.push(r)}return e}lineTouchStart(e,t){e.target.setPointerCapture(e.pointerId);const n=Ka.b.fromCoordinates(e.clientX,e.clientY,this.props.rotations,this.props.scale),i=this.items[t],r=Ka.b.fromHtmlElement(i),o=this.props.points[t],a=this.props.points[this.nextIndex(t)];this.point0Start=A.copy(this.props.points[this.previousIndex(t)]),this.point1Start=A.copy(o),this.point2Start=A.copy(a),this.point3Start=A.copy(this.props.points[this.nextIndex(this.nextIndex(t))]),this.point1Offset=new Ka.b(o.x-r.x,o.y-r.y),this.point2Offset=new Ka.b(a.x-r.x,a.y-r.y),this.parentOffset=new Ka.b(n.x-r.x,n.y-r.y)}lineTouchMove(e,t){if(!this.parentOffset)return;const n=Ka.b.fromCoordinates(e.clientX,e.clientY,this.props.rotations,this.props.scale),i=this.props.points[this.previousIndex(t)];let r=new Ka.b(null,null),o=new Ka.b(null,null);const a=this.props.points[this.nextIndex(t+1)],s=n.x-this.parentOffset.x,c=n.y-this.parentOffset.y;if(this.isHorizontal(t)){const e=c+this.point1Offset.y,t=c+this.point2Offset.y,n=e-this.point1Start.y;r.x=this.point1Start.x+(this.point1Start.x-this.point0Start.x)*(n/(this.point1Start.y-this.point0Start.y)),o.x=this.point2Start.x+(this.point2Start.x-this.point3Start.x)*(n/(this.point2Start.y-this.point3Start.y)),r.y=e,o.y=t}else{const e=s+this.point1Offset.x,t=s+this.point2Offset.x,n=e-this.point1Start.x;r.y=this.point1Start.y+(this.point1Start.y-this.point0Start.y)*(n/(this.point1Start.x-this.point0Start.x)),o.y=this.point2Start.y+(this.point2Start.y-this.point3Start.y)*(n/(this.point2Start.x-this.point3Start.x)),r.x=e,o.x=t}r=Ka.b.clamp(r,this.props.containerSize),o=Ka.b.clamp(o,this.props.containerSize),this.isNearOpposingPoint(this.point1Start,r,i,this.isHorizontal(t)?"y":"x")||this.isNearOpposingPoint(this.point1Start,o,a,this.isHorizontal(t)?"y":"x")||this.areEdgesCrossing(i,r,o,a)||Ns.isConvex([i,r,o,a])&&(this.props.points[t].x=r.x,this.props.points[t].y=r.y,this.props.points[this.nextIndex(t)].x=o.x,this.props.points[this.nextIndex(t)].y=o.y,this.props.lineMoved({points:[{index:t,coordinates:r},{index:this.nextIndex(t),coordinates:o}],previousPoint:i,nextPoint:a,isHorizontal:this.isHorizontal(t)}))}lineTouchEnd(e){e.target.releasePointerCapture(e.pointerId),this.parentOffset=null}isNearOpposingPoint(e,t,n,i){if(e[i]>n[i]){if(t[i]-10<n[i])return!0}else if(t[i]>n[i]-10)return!0;return!1}areEdgesCrossing(e,t,n,i){const r=e.x,o=e.y,a=t.x,s=t.y,c=n.x,l=n.y,u=i.x,d=i.y;return((r-c)*(s-l)-(o-l)*(a-c))*((r-u)*(s-d)-(o-d)*(a-u))<0&&((c-r)*(d-o)-(l-o)*(u-r))*((c-a)*(d-s)-(l-s)*(u-a))<0}render(){return M.Ay.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"}},this.create())}}class Zm extends M.Ay.Component{render(){return M.Ay.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"}},M.Ay.createElement(Vm,{ref:e=>this.corners=e,style:this.props.style,containerSize:this.props.containerSize,scale:this.props.scale,rotations:this.props.rotations,points:this.props.coordinatePoints,cornerMoveStart:this.props.cornerMoveStart,cornerMoved:this.props.cornerMoved,cornerMoveEnd:this.props.cornerMoveEnd}),M.Ay.createElement(Um,{ref:e=>this.lines=e,style:this.props.style,containerSize:this.props.containerSize,scale:this.props.scale,rotations:this.props.rotations,points:this.props.coordinatePoints,lineMoved:this.props.lineMoved}))}setFrame(){for(let e=0;e<this.corners.POINT_COUNT;e++){const t=this.props.coordinatePoints[e];this.corners.items[e]&&(this.corners.items[e].style.left=t.x-this.corners.pointSize/2+"px",this.corners.items[e].style.top=t.y-this.corners.pointSize/2+"px");let n=this.props.coordinatePoints[this.corners.nextIndex(e)];this.lines.items[e]&&(this.lines.items[e].style.left=t.x+(n.x-t.x)/2-this.corners.pointSize/2+"px",this.lines.items[e].style.top=t.y+(n.y-t.y)/2-this.corners.pointSize/2+"px")}}snapTo(e){const t=[e.polygonLine.previousPoint,e.polygonLine.points[0].coordinates],n=[e.polygonLine.points[1].coordinates,e.polygonLine.nextPoint],i=[e.magneticLine.start,e.magneticLine.end];this.props.coordinatePoints[e.polygonLine.points[0].index]=Ns.intersection(t,i),this.props.coordinatePoints[e.polygonLine.points[1].index]=Ns.intersection(n,i),this.props.cornerMoveEnd(),this.setFrame()}}class Wm extends M.Ay.Component{constructor(e){super(e),this.state={movingLine:void 0}}render(){return M.Ay.createElement("div",null,M.Ay.createElement(Zm,{ref:e=>this.handles=e,containerSize:this.props.size,coordinatePoints:this.props.points,rotations:this.props.rotations,scale:this.props.scale,style:this.props.handleStyle,cornerMoveStart:this.props.cornerMoveStart,cornerMoved:e=>{this.setFrame(),this.props.cornerMoved(e)},cornerMoveEnd:this.props.cornerMoveEnd,lineMoved:e=>{this.setFrame(),this.setState({movingLine:e})}}),M.Ay.createElement(xm,{style:this.props.magneticLineStyle,lines:this.props.magneticLines,movingLine:this.state.movingLine,snapTo:e=>{var t,n;null===(t=this.handles)||void 0===t||t.snapTo(e),null===(n=this.polygon)||void 0===n||n.setFrame()}}),M.Ay.createElement(Wl,{size:this.props.size,points:this.props.points,polygonStyle:this.props.polygonStyle,polygonClasses:this.props.polygonClasses,ref:e=>this.polygon=e}))}setFrame(){var e,t;null===(e=this.polygon)||void 0===e||e.setFrame(),null===(t=this.handles)||void 0===t||t.setFrame()}}class Hm extends M.Ay.Component{render(){return M.Ay.createElement("img",{ref:e=>this.image=e,style:{width:"100%",height:"100%",objectFit:"cover",position:"absolute"},src:this.props.src,alt:".",onLoad:e=>{e.target&&this.props.onImageLoaded(e.target)}})}}class Gm extends M.Ay.Component{constructor(){super(...arguments),this.animating=!1}width(){return this.container.offsetWidth-2*this.container.offsetLeft}height(){return this.container.offsetHeight-2*this.container.offsetTop}isAnimating(){return this.animating}render(){const{size:e,imageMargin:t,rotations:n,scale:i,duration:r}=this.props,o=90*(n-1),a=90*n;this.previousScale||(this.previousScale=1);const s=ds.i7`