@regulaforensics/vp-frontend-document-components 9.9.3126-rc → 9.9.3128-rc

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.
package/dist/main.iife.js CHANGED
@@ -24,10 +24,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24
24
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qx(e,t){if(e){if(typeof e==`string`)return $x(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$x(e,t):void 0}}function $x(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eS(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function tS(e){if(Array.isArray(e))return e}var nS=ec.create(`main`);function rS(e){let t=e.scenario,n=e.onError,r=Mc().onEvent,i=window.RegulaDocumentSDK,a=Xx(q({initialized:!1,initData:i.initData}),2),o=a[0],s=a[1];return J(()=>{if(!(!o.initData||o.initialized||!t)){if(o.initData.license.errorCode===0&&o.initData.license.status){let e=o.initData.scenario.filter(e=>e.name!==wi);e.some(e=>e.name===t)?(s({initialized:!0,initData:{scenario:e,license:o.initData.license}}),r({action:ti.SERVICE_INITIALIZED,data:null})):(n(new Uu(ei.INCORRECT_SCENARIO)),nS(`Incorrect scenario: ${t}`))}else n(new Uu(ei.WASM_LICENSE,o.initData.license.message)),nS(`Problems with initialization.`)}},[o,t]),J(()=>{!i||i.isInitialized||i.initData||(i.initializeListener=e=>{!e.isInitialized||!i.initData||s(e=>Kx(Kx({},e),{},{initData:i.initData}))})},[i]),o}oo();function iS(e,t){return lS(e)||cS(e,t)||oS(e,t)||aS()}function aS(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
25
25
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oS(e,t){if(e){if(typeof e==`string`)return sS(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sS(e,t):void 0}}function sS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cS(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function lS(e){if(Array.isArray(e))return e}function uS(e,t){let n=iS(q(e),2),r=n[0],i=n[1],a=iS(q(!1),2),o=a[0],s=a[1];return J(()=>{o||i(e)},[o,e]),J(()=>{s(!0);let e=setTimeout(()=>{s(!1)},t);return()=>{clearTimeout(e)}},[r]),r}oo();function dS(e,t){return gS(e)||hS(e,t)||pS(e,t)||fS()}function fS(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
26
26
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pS(e,t){if(e){if(typeof e==`string`)return mS(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mS(e,t):void 0}}function mS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hS(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function gS(e){if(Array.isArray(e))return e}var _S=ec.create(`main`),vS=5;function yS(e){let t=dS(q(!1),2),n=t[0],r=t[1],i=Ma({x:0,y:0,z:0}),a=uS(n,1e3),o=e=>{var t,n;if(!((t=e.acceleration)!=null&&t.x)||!((n=e.acceleration)!=null&&n.y)||!e.acceleration.z)return;let a=Math.abs(e.acceleration.x-i.current.x)+Math.abs(e.acceleration.y-i.current.y)+Math.abs(e.acceleration.z-i.current.z);r(a>vS),i.current.x=e.acceleration.x,i.current.y=e.acceleration.y,i.current.z=e.acceleration.z};return J(()=>{if(!e)return;let t=DeviceOrientationEvent.requestPermission;if(typeof t==`function`)t().then(e=>{e===`granted`?window.addEventListener(`devicemotion`,o):_S(`Device orientation service permission denied`)}).catch(e=>`Device orientation service error: ${e}`);else if(`permissions`in navigator)navigator.permissions.query({name:`accelerometer`}).then(e=>{e.state===`granted`?window.addEventListener(`devicemotion`,o):_S(`Device orientation service permission denied`)}).catch(e=>`Device orientation service error: ${e}`);else return _S(`Device orientation service is missing`);return()=>{window.removeEventListener(`devicemotion`,o)}},[]),{isShake:a}}oo();function bS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bS(Object(n),!0).forEach(function(t){SS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SS(e,t,n){return(t=CS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CS(e){var t=wS(e,`string`);return typeof t==`symbol`?t:t+``}function wS(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function TS(e,t){return AS(e)||kS(e,t)||DS(e,t)||ES()}function ES(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
27
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DS(e,t){if(e){if(typeof e==`string`)return OS(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?OS(e,t):void 0}}function OS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kS(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function AS(e){if(Array.isArray(e))return e}var jS=ec.create(`main`);function MS(e){let t=e.videoElementParams,n=e.videoStatusParams,r=e.mirroring,i=e.onError,a=e.controlsWidth,o=e.captureMode,s=window.RegulaDocumentSDK,c=Mc(),l=c.onEvent,u=c.multipageProcessing,d=c.internalScenario,f=c.videoCaptureMotionControl,p=c.nextPageAnimationStartDelay,m=p===void 0?Ei:p,h=c.nextPageAnimationEndDelay,g=h===void 0?Di:h,_=c.processingDelay,v=_===void 0?0:_,y=c.manualMultipageMode,b=yS(f).isShake,x=Ma(!1),S=Ma(!1),C=TS(q(!1),2),w=C[0],T=C[1],E=TS(q(!1),2),D=E[0],O=E[1],k=TS(q(!1),2),A=k[0],j=k[1],M=TS(q(void 0),2),ee=M[0],N=M[1],P=TS(q(null),2),F=P[0],I=P[1],L=TS(q(void 0),2),R=L[0],z=L[1],B=TS(q({status:G.SERVICE_PREPARING,response:null}),2),V=B[0],H=B[1],te=rS({scenario:ee,onError:i}),ne=te.initData,re=te.initialized,ie=zu({videoSize:t.videoParams,mirroring:r,controlsWidth:a,scenario:ee,scenarioParams:ne==null?void 0:ne.scenario}),ae=o===ni.captureFrame,oe=V.status===G.START_NEXT_PAGE;return J(()=>{if(s){if(s.recognizerProcessParam=Ls(Ni,s.recognizerProcessParam),u!==void 0){let e={processParam:{multipageProcessing:u}};s.recognizerProcessParam=Ls(s.recognizerProcessParam,e)}if(d!==void 0){let e={processParam:{scenario:d}};s.recognizerProcessParam=Ls(s.recognizerProcessParam,e)}jS(`Current scenario: ${s.recognizerProcessParam.processParam.scenario}`),N(s.recognizerProcessParam.processParam.scenario)}},[s,d,u]),J(()=>{let e=ie||{},t=e.frameTop,n=e.frameBottom,r=e.frameLeft,i=e.frameRight;jS(`Frame params: ${JSON.stringify(ie)}`),s.recognizerProcessParam=Ls(s.recognizerProcessParam,{imageInputParam:{frameTop:t,frameBottom:n,frameLeft:r,frameRight:i,light:R,resolutionType:0}})},[ie,R]),J(()=>{(function(){var e=W(function*(e){if(!s||!re||D||ae||n.videoStatus!==Bi.PLAY||!n.sortedDevices)return;if(y){O(!0),jS(`New document started (manual multipage)`);return}let t=yield Ws({cameras:[...n.sortedDevices.frontCameras,...n.sortedDevices.backCameras],cameraID:n.camera.deviceId,sdkVersion:`9.9.3126-rc`,serviceUrl:((e=s.recognizerProcessParam.processParam.backendProcessing)==null?void 0:e.serviceURL)||``});jS(`Metadata: ${JSON.stringify(t)}`);try{s.recognizerProcessParam.processParam.backendProcessing?yield s.createBackendTransaction(t):yield s.startNewDocument(t),O(!0),jS(`New document started`)}catch(e){H(e=>xS(xS({},e),{},{status:G.FAILED})),i(new Uu(ei.WASM_ERROR,e))}});return function(t){return e.apply(this,arguments)}})()()},[re,D,o,n,y]),J(()=>{let e=D&&(!o||o===ni.auto),t=D&&o===ni.captureVideo;(re&&o===ni.captureFrame||t||e)&&(H(e=>xS(xS({},e),{},{status:G.FINDING})),e&&setTimeout(()=>T(!0),v))},[D,o,re,v]),J(()=>{let e=n.videoStatus===Bi.PLAY;if(!s||!e||A||!w||!t.videoElement)return;if(x.current||(l({action:ti.CAMERA_PROCESS_STARTED,data:null}),x.current=!0),b)return H(e=>xS(xS({},e),{},{status:G.SHAKING}));j(!0);let r=Wx(t.videoElement,Ri.UINT).imageData;jS(`Image processing started`),s.process(r).then(e=>{var t;let n=Vx(e.rawResponse,(t=s.pageIdx)==null?0:t,s.recognizerProcessParam.processParam.multipageProcessing);H(t=>xS(xS({},t),{},{status:n,response:e})),j(!1),jS(`Image processing is finished`);let r=!!Ai[n];if(n===G.START_NEXT_PAGE||r){let t=e.rawResponse.multipageAnimationImage;t&&!y&&I({type:mi.Flip,image:t}),T(!1)}if(`lightType`in e.rawResponse){let t=e.rawResponse,n=t.lightType,r=t.liveness;r&&(r.hologramTiltType!==void 0&&(0,Ul.default)(n)===67108870?I({type:mi.Tilt,image:[r.livenessAnimationImage],tiltType:r.hologramTiltType}):I(null),S.current||(l({action:ti.PROCESS_LIVENESS,data:null}),S.current=!0)),z((0,Ul.default)(n))}else z(void 0)}).catch(e=>{H({response:null,status:G.FAILED}),i(new Uu(ei.WASM_ERROR,e)),T(!1)})},[A,t.videoElement,n.videoStatus,w,b,y]),J(()=>{if(!s||!oe||y)return;jS(`More pages available`),l({action:ti.NEW_PAGE_AVAILABLE,data:null});let e=setTimeout(W(function*(){try{yield s.startNewPage(),l({action:ti.NEW_PAGE_STARTED,data:null}),T(!0),I(null),jS(`New page started`)}catch(e){H(e=>xS(xS({},e),{},{status:G.FAILED})),i(new Uu(ei.WASM_ERROR,e))}}),m+Ti+g);return()=>{clearTimeout(e)}},[oe,y]),xS(xS({},V),{},{frameParams:ie,setIsRecognitionStarted:T,animation:F})}oo();function NS(e,t){return RS(e)||LS(e,t)||FS(e,t)||PS()}function PS(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
27
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DS(e,t){if(e){if(typeof e==`string`)return OS(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?OS(e,t):void 0}}function OS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kS(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function AS(e){if(Array.isArray(e))return e}var jS=ec.create(`main`);function MS(e){let t=e.videoElementParams,n=e.videoStatusParams,r=e.mirroring,i=e.onError,a=e.controlsWidth,o=e.captureMode,s=window.RegulaDocumentSDK,c=Mc(),l=c.onEvent,u=c.multipageProcessing,d=c.internalScenario,f=c.videoCaptureMotionControl,p=c.nextPageAnimationStartDelay,m=p===void 0?Ei:p,h=c.nextPageAnimationEndDelay,g=h===void 0?Di:h,_=c.processingDelay,v=_===void 0?0:_,y=c.manualMultipageMode,b=yS(f).isShake,x=Ma(!1),S=Ma(!1),C=TS(q(!1),2),w=C[0],T=C[1],E=TS(q(!1),2),D=E[0],O=E[1],k=TS(q(!1),2),A=k[0],j=k[1],M=TS(q(void 0),2),ee=M[0],N=M[1],P=TS(q(null),2),F=P[0],I=P[1],L=TS(q(void 0),2),R=L[0],z=L[1],B=TS(q({status:G.SERVICE_PREPARING,response:null}),2),V=B[0],H=B[1],te=rS({scenario:ee,onError:i}),ne=te.initData,re=te.initialized,ie=zu({videoSize:t.videoParams,mirroring:r,controlsWidth:a,scenario:ee,scenarioParams:ne==null?void 0:ne.scenario}),ae=o===ni.captureFrame,oe=V.status===G.START_NEXT_PAGE;return J(()=>{if(s){if(s.recognizerProcessParam=Ls(Ni,s.recognizerProcessParam),u!==void 0){let e={processParam:{multipageProcessing:u}};s.recognizerProcessParam=Ls(s.recognizerProcessParam,e)}if(d!==void 0){let e={processParam:{scenario:d}};s.recognizerProcessParam=Ls(s.recognizerProcessParam,e)}jS(`Current scenario: ${s.recognizerProcessParam.processParam.scenario}`),N(s.recognizerProcessParam.processParam.scenario)}},[s,d,u]),J(()=>{let e=ie||{},t=e.frameTop,n=e.frameBottom,r=e.frameLeft,i=e.frameRight;jS(`Frame params: ${JSON.stringify(ie)}`),s.recognizerProcessParam=Ls(s.recognizerProcessParam,{imageInputParam:{frameTop:t,frameBottom:n,frameLeft:r,frameRight:i,light:R,resolutionType:0}})},[ie,R]),J(()=>{(function(){var e=W(function*(e){if(!s||!re||D||ae||n.videoStatus!==Bi.PLAY||!n.sortedDevices)return;if(y){O(!0),jS(`New document started (manual multipage)`);return}let t=yield Ws({cameras:[...n.sortedDevices.frontCameras,...n.sortedDevices.backCameras],cameraID:n.camera.deviceId,sdkVersion:`9.9.3128-rc`,serviceUrl:((e=s.recognizerProcessParam.processParam.backendProcessing)==null?void 0:e.serviceURL)||``});jS(`Metadata: ${JSON.stringify(t)}`);try{s.recognizerProcessParam.processParam.backendProcessing?yield s.createBackendTransaction(t):yield s.startNewDocument(t),O(!0),jS(`New document started`)}catch(e){H(e=>xS(xS({},e),{},{status:G.FAILED})),i(new Uu(ei.WASM_ERROR,e))}});return function(t){return e.apply(this,arguments)}})()()},[re,D,o,n,y]),J(()=>{let e=D&&(!o||o===ni.auto),t=D&&o===ni.captureVideo;(re&&o===ni.captureFrame||t||e)&&(H(e=>xS(xS({},e),{},{status:G.FINDING})),e&&setTimeout(()=>T(!0),v))},[D,o,re,v]),J(()=>{let e=n.videoStatus===Bi.PLAY;if(!s||!e||A||!w||!t.videoElement)return;if(x.current||(l({action:ti.CAMERA_PROCESS_STARTED,data:null}),x.current=!0),b)return H(e=>xS(xS({},e),{},{status:G.SHAKING}));j(!0);let r=Wx(t.videoElement,Ri.UINT).imageData;jS(`Image processing started`),s.process(r).then(e=>{var t;let n=Vx(e.rawResponse,(t=s.pageIdx)==null?0:t,s.recognizerProcessParam.processParam.multipageProcessing);H(t=>xS(xS({},t),{},{status:n,response:e})),j(!1),jS(`Image processing is finished`);let r=!!Ai[n];if(n===G.START_NEXT_PAGE||r){let t=e.rawResponse.multipageAnimationImage;t&&!y&&I({type:mi.Flip,image:t}),T(!1)}if(`lightType`in e.rawResponse){let t=e.rawResponse,n=t.lightType,r=t.liveness;r&&(r.hologramTiltType!==void 0&&(0,Ul.default)(n)===67108870?I({type:mi.Tilt,image:[r.livenessAnimationImage],tiltType:r.hologramTiltType}):I(null),S.current||(l({action:ti.PROCESS_LIVENESS,data:null}),S.current=!0)),z((0,Ul.default)(n))}else z(void 0)}).catch(e=>{H({response:null,status:G.FAILED}),i(new Uu(ei.WASM_ERROR,e)),T(!1)})},[A,t.videoElement,n.videoStatus,w,b,y]),J(()=>{if(!s||!oe||y)return;jS(`More pages available`),l({action:ti.NEW_PAGE_AVAILABLE,data:null});let e=setTimeout(W(function*(){try{yield s.startNewPage(),l({action:ti.NEW_PAGE_STARTED,data:null}),T(!0),I(null),jS(`New page started`)}catch(e){H(e=>xS(xS({},e),{},{status:G.FAILED})),i(new Uu(ei.WASM_ERROR,e))}}),m+Ti+g);return()=>{clearTimeout(e)}},[oe,y]),xS(xS({},V),{},{frameParams:ie,setIsRecognitionStarted:T,animation:F})}oo();function NS(e,t){return RS(e)||LS(e,t)||FS(e,t)||PS()}function PS(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
28
28
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FS(e,t){if(e){if(typeof e==`string`)return IS(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IS(e,t):void 0}}function IS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function LS(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function RS(e){if(Array.isArray(e))return e}var zS=ec.create(`main`);function BS(){var e,t,n;let r=Mc().mobileDelegate,i=NS(q(ri.CHECKING),2),a=i[0],o=i[1],s=window.RegulaDocumentSDK,c=((e=s.recognizerProcessParam)==null?void 0:e.tag)||``,l=((t=s.recognizerProcessParam.processParam.backendProcessing)==null?void 0:t.serviceURL)||``,u=((n=s.recognizerProcessParam.processParam.backendProcessing)==null?void 0:n.httpHeaders)||{};return J(()=>{if(!r)return zS(`Transaction check is disabled`),o(ri.NOT_AVAILABLE);zS(`Transaction check parameters: ${JSON.stringify({tag:c,basePath:l,headers:u})}`),(function(){var e=W(function*(){try{var e;let t=(yield new Px({basePath:l,baseOptions:{headers:u}}).getTransactionsByTag(c,{headers:u})).data;zS(`Transaction check data: ${JSON.stringify(t)}`);let n=(e=t.items)!=null&&e.some(e=>e.state===fi.PROCESSED)?ri.AVAILABLE:ri.NOT_AVAILABLE;zS(`Transaction check status: ${n}`),o(n)}catch(e){zS(`Transaction check status: ERROR. Details: ${e}`),o(ri.ERROR)}});return function(){return e.apply(this,arguments)}})()()},[r]),a}oo();var VS=[`data`];function HS(e,t){if(e==null)return{};var n,r,i=US(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function US(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function WS(e,t){return YS(e)||JS(e,t)||KS(e,t)||GS()}function GS(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
29
29
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KS(e,t){if(e){if(typeof e==`string`)return qS(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qS(e,t):void 0}}function qS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function JS(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function YS(e){if(Array.isArray(e))return e}function XS(e){let t=e.direction,n=e.onStatusChange,r=e.onFileImageSet,i=e.onError,a=e.onClose,o=Mc(),s=o.onEvent,c=o.cameraId,l=o.startScreen,u=o.captureButton,d=o.newLayout,f=o.captureMode,p=o.resolution,m=o.cameraMode,h=o.videoRecord,g=o.mirrorType,_=o.mobileDelegate,v=o.finalizeOnTimeout,y=v===void 0||v,b=o.manualMultipageMode,x=window.RegulaDocumentSDK,S=Pa(()=>({width:(p==null?void 0:p.width)||Xi.FULL_HD.width,height:(p==null?void 0:p.height)||Xi.FULL_HD.height}),[p]),C=Ma(!0),w=Ma(null),T=Ma(null),E=WS(q(!1),2),D=E[0],O=E[1],k=WS(q(0),2),A=k[0],j=k[1],M=WS(q({videoElement:null,videoParams:{width:0,height:0},videoContainerParams:{width:0,height:0}}),2),ee=M[0],N=M[1],P=WS(q({videoStatus:Bi.PREPARING,camera:{deviceId:``,facing:void 0,groupId:``,label:``},sortedDevices:null}),2),F=P[0],I=P[1],L=WS(q(c),2),R=L[0],z=L[1],B=MS({videoElementParams:ee,videoStatusParams:F,mirroring:D,onError:i,captureMode:f,controlsWidth:A}),V=B.status,H=B.response,te=B.frameParams,ne=B.setIsRecognitionStarted,re=B.animation,ie=BS(),ae=WS(q(null),2),oe=ae[0],se=ae[1],ce=function(){var e=W(function*(e,t,r){n(K.PROCESSING);let i=x.recognizerProcessParam.processParam.backendProcessing,a={status:e,response:r};if(h&&oe){let e=yield oe.getRecord();if(!e)return;if(a.video=e,i){let t=e.data,n=HS(e,VS),r=yield new Promise((e,n)=>{let r=new FileReader;r.onload=()=>e(r.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)}),i=new Uint8ClampedArray(r);yield x.addDataToPackage(i,{sizeBytes:t.size,dataName:`processingVideo`,metadata:n})}}if(i){if(t===K.TIMEOUT&&!y){n(_?K.DELEGATE_SUCCESS:t),s({action:ti.PROCESS_FINISHED,data:a});return}x.onFinalize=e=>{if(!e.transactionId)return n(K.FAILED);n(_?K.DELEGATE_SUCCESS:K.SUCCESS)}}s({action:ti.PROCESS_FINISHED,data:a}),n(i?K.PROCESSING:t)});return function(t,n,r){return e.apply(this,arguments)}}(),le=()=>{var e;s({action:ti.PRESS_MIRRORING_BUTTON,data:null}),(e=w.current)==null||e.changeMirror()},ue=Fa(()=>{s({action:ti.CAMERA_PROCESS_CLOSED,data:null}),l&&n(K.CHOOSE_INPUT_SOURCE)},[l]),de=function(){var e=W(function*(){s({action:ti.PRESS_SKIP_BUTTON,data:null}),T.current&&(yield ce(zi.OK,K.SUCCESS,T.current))});return function(){return e.apply(this,arguments)}}(),fe=Fa(()=>{if(s({action:ti.PRESS_CHANGE_CAMERA_BUTTON,data:null}),!F.sortedDevices)return;let e=Is(F.sortedDevices,F.camera.deviceId);e&&z(e)},[F.camera.deviceId,F.sortedDevices]),pe=Fa(()=>{if(s({action:ti.PRESS_CAPTURE_BUTTON,data:null}),f===ni.captureVideo&&C.current)C.current=!1,ne(!0);else{if(!ee.videoElement)return;ne(!1);let e=Wx(ee.videoElement,Ri.UINT).imageData;r(e)}},[ee.videoElement,f]),me=e=>{i(new Uu(e))},he=(u===void 0?!d:u)||f===ni.captureFrame||f===ni.captureVideo;J(()=>{if(H){if(V===G.START_NEXT_PAGE&&(T.current=H,b&&ce(zi.OK,K.SUCCESS,H)),V===G.SUCCESS){let e=_?K.DELEGATE_SUCCESS:K.SUCCESS;ce(zi.OK,e,H)}if(V===G.TIMEOUT){let e=_?K.DELEGATE_SUCCESS:K.TIMEOUT;ce(zi.TIMEOUT,e,H)}}},[V,H,_,b]),J(()=>{ie===ri.AVAILABLE&&n(K.DELEGATE_SUCCESS),ie===ri.ERROR&&i(new Uu(ei.CONNECTION_ERROR,`Transaction check failed.`))},[ie]),J(()=>{z(c)},[c]);let ge=()=>{s({action:ti.VIDEO_STARTED,data:null})},_e=()=>{s({action:ti.VIDEO_STOPPED,data:null})};return Pa(()=>Z(Eu,{direction:t,mirroring:D,onChangeMirroring:le,status:V,videoStatusParams:F,frameParams:te,videoElementParams:ee,onProcessClose:ue,onClose:a,onSnapshotProcess:pe,onSkip:de,onChangeCamera:fe,captureButton:he,animation:re,onControlsWidth:j,children:ie===ri.NOT_AVAILABLE?Z(Dc,{onVideoSizeChange:N,onVideoStatusChange:I,resolution:S,onFailStatus:me,mode:m||Vi.environment,cameraId:R,onRecordService:se,videoRecord:h,onVideoStarted:ge,onVideoStopped:_e,onMirroringChange:O,mirrorType:g,ref:w}):null}),[R,D,pe,V,F,te,ue,fe,ee,he,S,m,h,re,ie])}var ZS={"info-message":`_info-message_1wx3b_1`,"text-container":`_text-container_1wx3b_10`,title:`_title_1wx3b_28`,subtitle:`_subtitle_1wx3b_37`,"retry-button":`_retry-button_1wx3b_46`,verified:`_verified_1wx3b_50`,error:`_error_1wx3b_54`,"camera-disabled":`_camera-disabled_1wx3b_58`},QS={button:`_button_7h3jm_1`};function $S(e){let t=e.children,n=e.className,r=e.part,i=e.onClick,a=e.e2e;return Z(`button`,{part:r,className:`${QS.button} ${n==null?``:n}`,"data-e2e":a,onClick:i,children:t})}var eC={[_i.Verified]:`verified`,[_i.Error]:`error`,[_i.CameraDisabled]:`camera-disabled`};function tC(e){let t=e.title,n=e.subtitle,r=e.type,i=e.onReset,a=Zc().translate,o=eC[r];return Z(Xt,{children:[Z(Vl,{text:t}),Z(`div`,{part:`info-container`,className:ZS[`info-message`],children:Z(`div`,{part:`info-text-container ${o}`,className:`${ZS[`text-container`]} ${ZS[o]}`,children:[Z(`h1`,{part:`info-title`,"data-e2e":`info-msg-title`,className:ZS.title,children:t}),n&&Z(`p`,{part:`info-subtitle`,"data-e2e":`info-msg-subtitle`,className:ZS.subtitle,children:n}),i&&Z($S,{part:`info-try-again-button`,className:ZS[`retry-button`],onClick:i,children:a(`tryAgain`)})]})})]})}var nC={"start-window":`_start-window_1ywb7_1`,text:`_text_1ywb7_11`,title:`_title_1ywb7_19`,subtitle:`_subtitle_1ywb7_28`,buttons:`_buttons_1ywb7_38`,"camera-button":`_camera-button_1ywb7_46`,"gallery-button":`_gallery-button_1ywb7_50`,"phone-button":`_phone-button_1ywb7_54`};oo();function rC(e){let t=e.onStart,n=e.onFileImageSet,r=e.title,i=e.subtitle,a=e.allowRemote,o=a!==void 0&&a,s=e.onRemoteDevice,c=Mc(),l=c.onEvent,u=c.multipleFileInput,d=u===void 0||u,f=c.fromCameraButton,p=f===void 0||f,m=c.uploadFileButton,h=m===void 0||m,g=Ma(null),_=Zc().translate;return Z(`div`,{part:`menu-container`,className:nC[`start-window`],children:[Z(`div`,{"aria-live":`polite`,part:`menu-text-container`,className:nC.text,children:[Z(`h1`,{part:`menu-title`,className:nC.title,children:r}),Z(`p`,{part:`menu-subtitle`,className:nC.subtitle,children:i})]}),Z(`div`,{part:`menu-buttons-container`,className:nC.buttons,children:[p&&Z($S,{part:`menu-from-camera-button`,e2e:`from-camera`,className:nC[`camera-button`],onClick:t,children:_(`camera`)}),h&&Z($S,{part:`menu-from-gallery-button`,e2e:`from-gallery`,className:nC[`gallery-button`],onClick:()=>{let e=g.current;e&&(l({action:ti.PRESS_FILE_BUTTON,data:null}),e.click())},children:_(_s.isMobile?`gallery`:`files`)}),o&&s&&Z($S,{part:`menu-from-mobile-button`,e2e:`from-other-phone`,className:nC[`phone-button`],onClick:()=>{l({action:ti.PRESS_REMOTE_DEVICE_BUTTON,data:null}),s==null||s()},children:_(`mobileDevice`)})]}),Z(`input`,{ref:g,style:{display:`none`},type:`file`,multiple:d,accept:Li.join(`,`),onInput:e=>{var t;(t=e.currentTarget.files)!=null&&t.length&&n(e.currentTarget.files)},"aria-hidden":`true`})]})}c((()=>{var e=He(),t=Rt(),n=ae(),r=R(),i=Ct(),a=Tt(),o=jt(),s=nt(),c=y(),l=TypeError,u=c(function(){[].keys().reduce(function(){},void 0)}),d=!u&&o(`reduce`,l);e({target:`Iterator`,proto:!0,real:!0,forced:u||d},{reduce:function(e){r(this);try{n(e)}catch(e){a(this,`throw`,e)}var o=arguments.length<2,c=o?void 0:arguments[1];if(d)return s(d,this,o?[e]:[e,c]);var u=i(this),f=0;if(t(u,function(t){o?(o=!1,c=t):c=e(c,t,f),f++},{IS_RECORD:!0}),o)throw new l(`Reduce of empty iterator with no initial value`);return c}})}))(),oo();function iC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?iC(Object(n),!0).forEach(function(t){oC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oC(e,t,n){return(t=sC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sC(e){var t=cC(e,`string`);return typeof t==`symbol`?t:t+``}function cC(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function lC(e,t){return mC(e)||pC(e,t)||dC(e,t)||uC()}function uC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
30
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dC(e,t){if(e){if(typeof e==`string`)return fC(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fC(e,t):void 0}}function fC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pC(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function mC(e){if(Array.isArray(e))return e}var hC=ec.create(`main`);function gC(e){let t=e.imageDataArray,n=e.onEvent,r=e.onError,i=e.isRecognizerProcessParam,a=window.RegulaDocumentSDK,o=Mc().internalScenario,s=lC(q(void 0),2),c=s[0],l=s[1],u=lC(q({status:G.SERVICE_PREPARING,response:null}),2),d=u[0],f=u[1],p=rS({scenario:c,onError:r}).initialized;return J(()=>{if(a){if(a.imageProcessParam=Ls(Pi,a.imageProcessParam),o!==void 0){let e={processParam:{scenario:o}};a.imageProcessParam=Ls(a.imageProcessParam,e)}l(i?a.recognizerProcessParam.processParam.scenario:a.imageProcessParam.processParam.scenario)}},[a,o,i]),J(()=>{let e=!!Ai[d.status];if(!a||!p||!t.length||e)return;n({action:ti.FILE_PROCESS_STARTED,data:null});let o=i?a.recognizerProcessParam:a.imageProcessParam;a.processingListener=function(){var e=W(function*(e){if(!e.isProcessing){a.processingListener=null,hC(`Image processing started`);try{var n;if((n=a.imageProcessParam.processParam)!=null&&n.backendProcessing){let e=yield Ws({sdkVersion:`9.9.3126-rc`});yield a.createBackendTransaction(e,a.imageProcessParam)}let e=yield a.processImage(t,o);f(t=>aC(aC({},t),{},{status:G.SUCCESS,response:e})),hC(`Image processing is finished`)}catch(e){f({response:null,status:G.FAILED}),r(new Uu(ei.WASM_ERROR,e))}}});return function(t){return e.apply(this,arguments)}}()},[p,d.status,t,i]),d}oo();function _C(e,t){return SC(e)||xC(e,t)||yC(e,t)||vC()}function vC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dC(e,t){if(e){if(typeof e==`string`)return fC(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fC(e,t):void 0}}function fC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pC(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function mC(e){if(Array.isArray(e))return e}var hC=ec.create(`main`);function gC(e){let t=e.imageDataArray,n=e.onEvent,r=e.onError,i=e.isRecognizerProcessParam,a=window.RegulaDocumentSDK,o=Mc().internalScenario,s=lC(q(void 0),2),c=s[0],l=s[1],u=lC(q({status:G.SERVICE_PREPARING,response:null}),2),d=u[0],f=u[1],p=rS({scenario:c,onError:r}).initialized;return J(()=>{if(a){if(a.imageProcessParam=Ls(Pi,a.imageProcessParam),o!==void 0){let e={processParam:{scenario:o}};a.imageProcessParam=Ls(a.imageProcessParam,e)}l(i?a.recognizerProcessParam.processParam.scenario:a.imageProcessParam.processParam.scenario)}},[a,o,i]),J(()=>{let e=!!Ai[d.status];if(!a||!p||!t.length||e)return;n({action:ti.FILE_PROCESS_STARTED,data:null});let o=i?a.recognizerProcessParam:a.imageProcessParam;a.processingListener=function(){var e=W(function*(e){if(!e.isProcessing){a.processingListener=null,hC(`Image processing started`);try{var n;if((n=a.imageProcessParam.processParam)!=null&&n.backendProcessing){let e=yield Ws({sdkVersion:`9.9.3128-rc`});yield a.createBackendTransaction(e,a.imageProcessParam)}let e=yield a.processImage(t,o);f(t=>aC(aC({},t),{},{status:G.SUCCESS,response:e})),hC(`Image processing is finished`)}catch(e){f({response:null,status:G.FAILED}),r(new Uu(ei.WASM_ERROR,e))}}});return function(t){return e.apply(this,arguments)}}()},[p,d.status,t,i]),d}oo();function _C(e,t){return SC(e)||xC(e,t)||yC(e,t)||vC()}function vC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
31
31
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yC(e,t){if(e){if(typeof e==`string`)return bC(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bC(e,t):void 0}}function bC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xC(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function SC(e){if(Array.isArray(e))return e}function CC(e){let t=e.onStatusChange,n=e.images,r=e.onError,i=window.RegulaDocumentSDK,a=Ma(!1),o=Mc(),s=o.onEvent,c=o.mobileDelegate,l=o.maxImageSize,u=o.maxResolutionSize,d=_C(q(!1),2),f=d[0],p=d[1],m=_C(q([]),2),h=m[0],g=m[1],_=gC({imageDataArray:h,onEvent:s,onError:r,isRecognizerProcessParam:f}),v=_.status,y=_.response;return J(()=>{if(!(!n||a.current)){if(a.current=!0,!(n instanceof FileList))return p(!0),g(n);Rx(n).then(e=>{let t=e.reduce((e,t)=>(e.resolution+=t.width*t.height,e.bytes+=t.data.byteLength,e),{resolution:0,bytes:0}),n=t.resolution,i=t.bytes,a=l&&i/1024>l;if(n>(u||25e6)||a)r(new Uu(ei.FILE_SIZE));else{let t=e.map(e=>e.data);g(t)}}).catch(e=>{r(e)}).then(()=>{a.current=!1})}},[n,l,u]),J(()=>{if(v===G.SUCCESS&&y){let e=i.recognizerProcessParam.processParam.backendProcessing&&f;e&&(i.onFinalize=()=>t(c?K.DELEGATE_SUCCESS:K.SUCCESS)),s({action:ti.PROCESS_FINISHED,data:{status:zi.OK,response:y}}),t(e?K.PROCESSING:K.SUCCESS)}},[v,y,f,i,c]),Z(gu,{})}function wC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function TC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wC(Object(n),!0).forEach(function(t){EC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EC(e,t,n){return(t=DC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DC(e){var t=OC(e,`string`);return typeof t==`symbol`?t:t+``}function OC(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function kC(){if(typeof document>`u`)return null;let e=document.documentElement;return e&&typeof e.getAttribute==`function`?e.getAttribute(`lang`):null}function AC(){return typeof navigator<`u`?window.navigator.language:null}var jC={ckb:`ku-arab`,"ckb-iq":`ku-arab`,"zh-cn":`zh-hans`,"zh-sg":`zh-hans`,"zh-hans-cn":`zh-hans`,"zh-hans-sg":`zh-hans`,"zh-chs":`zh-hans`,"zh-tw":`zh-hant`,"zh-hk":`zh-hant`,"zh-mo":`zh-hant`,"zh-hant-tw":`zh-hant`,"zh-hant-hk":`zh-hant`,"zh-hant-mo":`zh-hant`,"zh-cht":`zh-hant`};function MC(e){function t(t){let n=t.locale,r=t.translations,i=t.dictionaries,a=i;if(r)for(let e in r){let t=e.toLowerCase();if(i[t]){a=Ls(a,{[t]:r[e]});continue}if(t.length===2){let n=!1;for(let o in i)o.startsWith(t+`-`)&&(a=Ls(a,{[o]:r[e]}),n=!0);if(n)continue}let n=Ls(i[`en-us`],r[e]);a=Ls(a,{[t]:n})}let o=qi,s=[n,kC(),AC()],c=Object.keys(a);for(let e of s){if(!e)continue;let t=e.toLowerCase();if(jC[t]&&c.includes(jC[t])){o=jC[t];break}if(a[t]){o=t;break}if(/^[a-z]{2}-/i.test(t)){let e=t.substring(0,3),n=c.find(t=>t.startsWith(e));if(n){o=n;break}}if(t.length===2){let e=c.find(e=>e.startsWith(t+`-`));if(e){o=e;break}}}let l=Ji.includes(o.substring(0,2))?Gi.Rtl:Gi.Ltr;return Z(Yc,{disableCache:!0,locale:o,translations:a,children:Z(e,TC(TC({},t),{},{direction:l}))})}return t}function NC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?NC(Object(n),!0).forEach(function(t){FC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function FC(e,t,n){return(t=IC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IC(e){var t=LC(e,`string`);return typeof t==`symbol`?t:t+``}function LC(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function RC(e){function t(t){return Z(jc.Provider,{value:t,children:Z(e,PC({},t))})}return t}Hn();function zC(e,t,n){return(t=BC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BC(e){var t=VC(e,`string`);return typeof t==`symbol`?t:t+``}function VC(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var HC=class extends Zt{constructor(e){super(e),zC(this,`onError`,void 0),zC(this,`supportedBrowserVersions`,void 0),this.supportedBrowserVersions=e.supportedBrowserVersions,this.onError=e.onError}componentDidCatch(e){this.onError(new Uu(`UNKNOWN_ERROR`,e))}componentDidMount(){if(this.supportedBrowserVersions){let e=null;if(_s.isMobile&&_s.osName in this.supportedBrowserVersions&&(e=this.supportedBrowserVersions[_s.osName]),_s.isDesktop&&(e=this.supportedBrowserVersions.desktop),e&&_s.browserName in e){let t=e[_s.browserName];t!==void 0&&Number(_s.browserVersion)<t&&this.onError(new Uu(`NOT_SUPPORTED`))}}}render(){return this.props.children}};oo();function UC(e,t){return JC(e)||qC(e,t)||GC(e,t)||WC()}function WC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
32
32
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GC(e,t){if(e){if(typeof e==`string`)return KC(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KC(e,t):void 0}}function KC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qC(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function JC(e){if(Array.isArray(e))return e}function YC(){let e=()=>window.matchMedia(`(orientation: landscape)`).matches?`landscape`:`portrait`,t=UC(q(()=>{let t=e();return{isPortrait:t===`portrait`,isLandscape:t===`landscape`,orientation:t}}),2),n=t[0],r=t[1],i=Fa(()=>{let t=e();r(e=>e.orientation===t?e:{isPortrait:t===`portrait`,isLandscape:t===`landscape`,orientation:t})},[]);return J(()=>(typeof window<`u`&&(i(),window.addEventListener(`load`,i,!1),window.addEventListener(`resize`,i,!1)),()=>{window.removeEventListener(`load`,i,!1),window.removeEventListener(`resize`,i,!1)}),[i]),n}var XC={"remote-scanner-wrapper":`_remote-scanner-wrapper_18b5u_1`,"qr-container":`_qr-container_18b5u_11`,text:`_text_18b5u_19`,title:`_title_18b5u_27`,subtitle:`_subtitle_18b5u_36`,"content-container":`_content-container_18b5u_46`,divider:`_divider_18b5u_52`,button:`_button_18b5u_71`};cs();var ZC=Object.defineProperty,QC=Object.getOwnPropertySymbols,$C=Object.prototype.hasOwnProperty,ew=Object.prototype.propertyIsEnumerable,tw=(e,t,n)=>t in e?ZC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nw=(e,t)=>{for(var n in t||(t={}))$C.call(t,n)&&tw(e,n,t[n]);if(QC)for(var n of QC(t))ew.call(t,n)&&tw(e,n,t[n]);return e},rw=(e,t)=>{var n={};for(var r in e)$C.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&QC)for(var r of QC(e))t.indexOf(r)<0&&ew.call(e,r)&&(n[r]=e[r]);return n},iw;(e=>{let t=class t{constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError(`Version value out of range`);if(a<-1||a>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();let s=this.addEccAndInterleave(r);if(this.drawCodewords(s),a==-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(a=t,e=n),this.applyMask(t)}}i(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}static encodeText(n,r){let i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){let i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,r,a=1,s=40,c=-1,l=!0){if(!(t.MIN_VERSION<=a&&a<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw RangeError(`Invalid value`);let u,d;for(u=a;;u++){let n=t.getNumDataCodewords(u,r)*8,i=o.getTotalBits(e,u);if(i<=n){d=i;break}if(u>=s)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=t.getNumDataCodewords(u,e)*8&&(r=e);let f=[];for(let t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(u),f);for(let e of t.getData())f.push(e)}i(f.length==d);let p=t.getNumDataCodewords(u,r)*8;i(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)n(e,8,f);let m=[];for(;m.length*8<f.length;)m.push(0);return f.forEach((e,t)=>m[t>>>3]|=e<<7-(t&7)),new t(u,r,m,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n==0&&r==0||n==0&&r==t-1||n==t-1&&r==0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let a=(t<<10|n)^21522;i(!(a>>>15));for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(!(t>>>18));for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,i!=2&&i!=4)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!=1)}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){let n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw RangeError(`Invalid argument`);let a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=a-s%a,l=Math.floor(s/a),u=[],d=t.reedSolomonComputeDivisor(o);for(let n=0,r=0;n<a;n++){let i=e.slice(r,r+l-o+(n<c?0:1));r+=i.length;let a=t.reedSolomonComputeRemainder(i,d);n<c&&i.push(0),u.push(i.concat(a))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach((t,n)=>{(e!=l-o||n>=c)&&f.push(t[e])});return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t==6&&(t=5);for(let i=0;i<this.size;i++)for(let a=0;a<2;a++){let o=t-a,s=t+1&2?i:this.size-1-i;!this.isFunction[s][o]&&n<e.length*8&&(this.modules[s][o]=r(e[n>>>3],7-(n&7)),n++)}}i(n==e.length*8)}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]==r?(i++,i==5?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]==r?(i++,i==5?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){let i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(let e of this.modules)n=e.reduce((e,t)=>e+ +!!t,n);let r=this.size*this.size,a=Math.ceil(Math.abs(n*20-r*10)/r)-1;return i(0<=a&&a<=9),e+=a*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map(e=>0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return i(!(n>>>8)),n}finderPenaltyCountPatterns(e){let t=e[1];i(t<=this.size*3);let n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return!!(e>>>t&1)}function i(e){if(!e)throw Error(`Assertion error`)}let a=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}static makeBytes(t){let r=[];for(let e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError(`String contains non-numeric characters`);let r=[];for(let e=0;e<t.length;){let i=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+i),10),i*3+1,r),e+=i}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let r=[],i;for(i=0;i+2<=t.length;i+=2){let a=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i))*45;a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i+1)),n(a,11,r)}return i<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i)),6,r),new e(e.Mode.ALPHANUMERIC,t.length,r)}static makeSegments(t){return t==``?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw RangeError(`ECI assignment value out of range`);if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else if(t<1e6)n(6,3,r),n(t,21,r);else throw RangeError(`ECI assignment value out of range`);return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(let r of e){let e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)e.charAt(n)==`%`?(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2):t.push(e.charCodeAt(n));return t}};a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`;let o=a;e.QrSegment=a})(iw||(iw={})),(e=>{(e=>{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})(e.QrCode||(e.QrCode={}))})(iw||(iw={})),(e=>{(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||(e.QrSegment={}))})(iw||(iw={}));var aw=iw,ow={L:aw.QrCode.Ecc.LOW,M:aw.QrCode.Ecc.MEDIUM,Q:aw.QrCode.Ecc.QUARTILE,H:aw.QrCode.Ecc.HIGH},sw=128,cw=`L`,lw=`#FFFFFF`,uw=`#000000`,dw=!1,fw=1,pw=4,mw=0,hw=.1;function gw(e,t=0){let n=[];return e.forEach(function(e,r){let i=null;e.forEach(function(a,o){if(!a&&i!==null){n.push(`M${i+t} ${r+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!a)return;i===null?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${i+t},${r+t} h${o+1-i}v1H${i+t}z`);return}a&&i===null&&(i=o)})}),n.join(``)}function _w(e,t){return e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>n<t.x||n>=t.x+t.w?e:!1))}function vw(e,t,n,r){if(r==null)return null;let i=e.length+n*2,a=Math.floor(t*hw),o=i/t,s=(r.width||a)*o,c=(r.height||a)*o,l=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-c/2:r.y*o,d=r.opacity==null?1:r.opacity,f=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(u);f={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(c+u-t)}}let p=r.crossOrigin;return{x:l,y:u,h:c,w:s,excavation:f,opacity:d,crossOrigin:p}}function yw(e,t){return t==null?e?pw:mw:Math.max(Math.floor(t),0)}function bw({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:a,size:o,boostLevel:s}){let c=Y.useMemo(()=>{let r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...aw.QrSegment.makeSegments(t)),e),[]);return aw.QrCode.encodeSegments(r,ow[t],n,void 0,void 0,s)},[e,t,n,s]),{cells:l,margin:u,numCells:d,calculatedImageSettings:f}=Y.useMemo(()=>{let e=c.getModules(),t=yw(r,i);return{cells:e,margin:t,numCells:e.length+t*2,calculatedImageSettings:vw(e,o,t,a)}},[c,o,a,r,i]);return{qrcode:c,margin:u,cells:l,numCells:d,calculatedImageSettings:f}}var xw=function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}return!0}(),Sw=Y.forwardRef(function(e,t){let n=e,{value:r,size:i=sw,level:a=cw,bgColor:o=lw,fgColor:s=uw,includeMargin:c=dw,minVersion:l=fw,boostLevel:u,marginSize:d,imageSettings:f}=n,p=rw(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`marginSize`,`imageSettings`]),{style:m}=p,h=rw(p,[`style`]),g=f==null?void 0:f.src,_=Y.useRef(null),v=Y.useRef(null),y=Y.useCallback(e=>{_.current=e,typeof t==`function`?t(e):t&&(t.current=e)},[t]),[b,x]=Y.useState(!1),{margin:S,cells:C,numCells:w,calculatedImageSettings:T}=bw({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:d,imageSettings:f,size:i});Y.useEffect(()=>{if(_.current!=null){let e=_.current,t=e.getContext(`2d`);if(!t)return;let n=C,r=v.current,a=T!=null&&r!==null&&r.complete&&r.naturalHeight!==0&&r.naturalWidth!==0;a&&T.excavation!=null&&(n=_w(C,T.excavation));let c=window.devicePixelRatio||1;e.height=e.width=i*c;let l=i/w*c;t.scale(l,l),t.fillStyle=o,t.fillRect(0,0,w,w),t.fillStyle=s,xw?t.fill(new Path2D(gw(n,S))):C.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+S,n+S,1,1)})}),T&&(t.globalAlpha=T.opacity),a&&t.drawImage(r,T.x+S,T.y+S,T.w,T.h)}}),Y.useEffect(()=>{x(!1)},[g]);let E=nw({height:i,width:i},m),D=null;return g!=null&&(D=Y.createElement(`img`,{src:g,key:g,style:{display:`none`},onLoad:()=>{x(!0)},ref:v,crossOrigin:T==null?void 0:T.crossOrigin})),Y.createElement(Y.Fragment,null,Y.createElement(`canvas`,nw({style:E,height:i,width:i,ref:y,role:`img`},h)),D)});Sw.displayName=`QRCodeCanvas`;var Cw=Y.forwardRef(function(e,t){let n=e,{value:r,size:i=sw,level:a=cw,bgColor:o=lw,fgColor:s=uw,includeMargin:c=dw,minVersion:l=fw,boostLevel:u,title:d,marginSize:f,imageSettings:p}=n,m=rw(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`title`,`marginSize`,`imageSettings`]),{margin:h,cells:g,numCells:_,calculatedImageSettings:v}=bw({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:f,imageSettings:p,size:i}),y=g,b=null;p!=null&&v!=null&&(v.excavation!=null&&(y=_w(g,v.excavation)),b=Y.createElement(`image`,{href:p.src,height:v.h,width:v.w,x:v.x+h,y:v.y+h,preserveAspectRatio:`none`,opacity:v.opacity,crossOrigin:v.crossOrigin}));let x=gw(y,h);return Y.createElement(`svg`,nw({height:i,width:i,viewBox:`0 0 ${_} ${_}`,ref:t,role:`img`},m),!!d&&Y.createElement(`title`,null,d),Y.createElement(`path`,{fill:o,d:`M0,0 h${_}v${_}H0z`,shapeRendering:`crispEdges`}),Y.createElement(`path`,{fill:s,d:x,shapeRendering:`crispEdges`}),b)});Cw.displayName=`QRCodeSVG`;var ww=c(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Tw=c(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),Ew=c(((e,t)=>{var n=Tw();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Dw=c(((e,t)=>{var n=Ew(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Ow=c(((e,t)=>{var n=Ew();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),kw=c(((e,t)=>{var n=Ew();function r(e){return n(this.__data__,e)>-1}t.exports=r})),Aw=c(((e,t)=>{var n=Ew();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),jw=c(((e,t)=>{var n=ww(),r=Dw(),i=Ow(),a=kw(),o=Aw();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Mw=c(((e,t)=>{var n=jw();function r(){this.__data__=new n,this.size=0}t.exports=r})),Nw=c(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),Pw=c(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),Fw=c(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),Iw=c(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),Lw=c(((e,t)=>{var n=Iw(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),Rw=c(((e,t)=>{t.exports=Lw().Symbol})),zw=c(((e,t)=>{var n=Rw(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch(e){}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Bw=c(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),Vw=c(((e,t)=>{var n=Rw(),r=zw(),i=Bw(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),Hw=c(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),Uw=c(((e,t)=>{var n=Vw(),r=Hw(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),Ww=c(((e,t)=>{t.exports=Lw()[`__core-js_shared__`]})),Gw=c(((e,t)=>{var n=Ww(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),Kw=c(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch(e){}try{return e+``}catch(e){}}return``}t.exports=r})),qw=c(((e,t)=>{var n=Uw(),r=Gw(),i=Hw(),a=Kw(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),Jw=c(((e,t)=>{function n(e,t){return e==null?void 0:e[t]}t.exports=n})),Yw=c(((e,t)=>{var n=qw(),r=Jw();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),Xw=c(((e,t)=>{t.exports=Yw()(Lw(),`Map`)})),Zw=c(((e,t)=>{t.exports=Yw()(Object,`create`)})),Qw=c(((e,t)=>{var n=Zw();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),$w=c(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),eT=c(((e,t)=>{var n=Zw(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),tT=c(((e,t)=>{var n=Zw(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),nT=c(((e,t)=>{var n=Zw(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),rT=c(((e,t)=>{var n=Qw(),r=$w(),i=eT(),a=tT(),o=nT();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),iT=c(((e,t)=>{var n=rT(),r=jw(),i=Xw();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),aT=c(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),oT=c(((e,t)=>{var n=aT();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),sT=c(((e,t)=>{var n=oT();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),cT=c(((e,t)=>{var n=oT();function r(e){return n(this,e).get(e)}t.exports=r})),lT=c(((e,t)=>{var n=oT();function r(e){return n(this,e).has(e)}t.exports=r})),uT=c(((e,t)=>{var n=oT();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),dT=c(((e,t)=>{var n=iT(),r=sT(),i=cT(),a=lT(),o=uT();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),fT=c(((e,t)=>{var n=jw(),r=Xw(),i=dT(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),pT=c(((e,t)=>{var n=jw(),r=Mw(),i=Nw(),a=Pw(),o=Fw(),s=fT();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),mT=c(((e,t)=>{function n(e){return this.__data__.set(e,`__lodash_hash_undefined__`),this}t.exports=n})),hT=c(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),gT=c(((e,t)=>{var n=dT(),r=mT(),i=hT();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),_T=c(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),vT=c(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),yT=c(((e,t)=>{var n=gT(),r=_T(),i=vT(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),bT=c(((e,t)=>{t.exports=Lw().Uint8Array})),xT=c(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),ST=c(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),CT=c(((e,t)=>{var n=Rw(),r=bT(),i=Tw(),a=yT(),o=xT(),s=ST(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||(E=s),e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C})),wT=c(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),TT=c(((e,t)=>{t.exports=Array.isArray})),ET=c(((e,t)=>{var n=wT(),r=TT();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),DT=c(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),OT=c(((e,t)=>{function n(){return[]}t.exports=n})),kT=c(((e,t)=>{var n=DT(),r=OT(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),AT=c(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),jT=c(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),MT=c(((e,t)=>{var n=Vw(),r=jT(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),NT=c(((e,t)=>{var n=MT(),r=jT(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),PT=c(((e,t)=>{function n(){return!1}t.exports=n})),FT=c(((e,t)=>{var n=Lw(),r=PT(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),IT=c(((e,t)=>{var n=/^(?:0|[1-9]\d*)$/;function r(e,t){var r=typeof e;return t=t==null?9007199254740991:t,!!t&&(r==`number`||r!=`symbol`&&n.test(e))&&e>-1&&e%1==0&&e<t}t.exports=r})),LT=c(((e,t)=>{function n(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}t.exports=n})),RT=c(((e,t)=>{var n=Vw(),r=LT(),i=jT(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),zT=c(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),BT=c(((e,t)=>{var n=Iw(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch(e){}}()})),VT=c(((e,t)=>{var n=RT(),r=zT(),i=BT(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),HT=c(((e,t)=>{var n=AT(),r=NT(),i=TT(),a=FT(),o=IT(),s=VT(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),UT=c(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),WT=c(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),GT=c(((e,t)=>{t.exports=WT()(Object.keys,Object)})),KT=c(((e,t)=>{var n=UT(),r=GT(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),qT=c(((e,t)=>{var n=Uw(),r=LT();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),JT=c(((e,t)=>{var n=HT(),r=KT(),i=qT();function a(e){return i(e)?n(e):r(e)}t.exports=a})),YT=c(((e,t)=>{var n=ET(),r=kT(),i=JT();function a(e){return n(e,i,r)}t.exports=a})),XT=c(((e,t)=>{var n=YT(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||(_=p==`constructor`)}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),ZT=c(((e,t)=>{t.exports=Yw()(Lw(),`DataView`)})),QT=c(((e,t)=>{t.exports=Yw()(Lw(),`Promise`)})),$T=c(((e,t)=>{t.exports=Yw()(Lw(),`Set`)})),eE=c(((e,t)=>{t.exports=Yw()(Lw(),`WeakMap`)})),tE=c(((e,t)=>{var n=ZT(),r=Xw(),i=QT(),a=$T(),o=eE(),s=Vw(),c=Kw(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),nE=c(((e,t)=>{var n=pT(),r=yT(),i=CT(),a=XT(),o=tE(),s=TT(),c=FT(),l=VT(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||(v=new n),y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||(v=new n),_(O,k,h,g,v)}}return T?(v||(v=new n),a(e,t,h,g,_,v)):!1}t.exports=h})),rE=c(((e,t)=>{var n=nE(),r=jT();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),iE=c(((e,t)=>{var n=rE();function r(e,t){return n(e,t)}t.exports=r})),aE=c(((e,t)=>{var n=Vw(),r=jT(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),oE=c(((e,t)=>{var n=TT(),r=aE(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),sE=c(((e,t)=>{var n=dT(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),cE=c(((e,t)=>{var n=sE(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),lE=c(((e,t)=>{var n=cE(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),uE=c(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),dE=c(((e,t)=>{var n=Rw(),r=uE(),i=TT(),a=aE(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),fE=c(((e,t)=>{var n=dE();function r(e){return e==null?``:n(e)}t.exports=r})),pE=c(((e,t)=>{var n=TT(),r=oE(),i=lE(),a=fE();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),mE=c(((e,t)=>{var n=aE(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),hE=c(((e,t)=>{var n=pE(),r=mE();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),gE=c(((e,t)=>{var n=Yw();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch(e){}}()})),_E=c(((e,t)=>{var n=gE();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),vE=c(((e,t)=>{var n=_E(),r=Tw(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),yE=c(((e,t)=>{var n=vE(),r=pE(),i=IT(),a=Hw(),o=mE();function s(e,t,s,c){if(!a(e))return e;t=r(t,e);for(var l=-1,u=t.length,d=u-1,f=e;f!=null&&++l<u;){var p=o(t[l]),m=s;if(p===`__proto__`||p===`constructor`||p===`prototype`)return e;if(l!=d){var h=f[p];m=c?c(h,p,f):void 0,m===void 0&&(m=a(h)?h:i(t[l+1])?[]:{})}n(f,p,m),f=f[p]}return e}t.exports=s})),bE=c(((e,t)=>{var n=hE(),r=yE(),i=pE();function a(e,t,a){for(var o=-1,s=t.length,c={};++o<s;){var l=t[o],u=n(e,l);a(u,l)&&r(c,i(l,e),u)}return c}t.exports=a})),xE=c(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),SE=c(((e,t)=>{var n=pE(),r=NT(),i=TT(),a=IT(),o=LT(),s=mE();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),CE=c(((e,t)=>{var n=xE(),r=SE();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),wE=c(((e,t)=>{var n=bE(),r=CE();function i(e,t){return n(e,t,function(t,n){return r(e,n)})}t.exports=i})),TE=c(((e,t)=>{var n=Rw(),r=NT(),i=TT(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),EE=c(((e,t)=>{var n=wT(),r=TE();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||(a=r),s||(s=[]);++c<l;){var u=e[c];t>0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),DE=c(((e,t)=>{var n=EE();function r(e){return e!=null&&e.length?n(e,1):[]}t.exports=r})),OE=c(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),kE=c(((e,t)=>{var n=OE(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),AE=c(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),jE=c(((e,t)=>{function n(e){return e}t.exports=n})),ME=c(((e,t)=>{var n=AE(),r=gE(),i=jE();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),NE=c(((e,t)=>{var n=Date.now;function r(e){var t=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=r})),PE=c(((e,t)=>{var n=ME();t.exports=NE()(n)})),FE=c(((e,t)=>{var n=DE(),r=kE(),i=PE();function a(e){return i(r(e,void 0,n),e+``)}t.exports=a})),IE=c(((e,t)=>{var n=wE();t.exports=FE()(function(e,t){return e==null?{}:n(e,t)})})),LE=c(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),RE=c(((e,t)=>{t.exports=LE()()})),zE=c(((e,t)=>{var n=RE(),r=JT();function i(e,t){return e&&n(e,t,r)}t.exports=i})),BE=c(((e,t)=>{var n=qT();function r(e,t){return function(r,i){if(r==null)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&i(s[o],o,s)!==!1;);return r}}t.exports=r})),VE=c(((e,t)=>{var n=zE();t.exports=BE()(n)})),HE=c(((e,t)=>{var n=VE();function r(e,t){var r=[];return n(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}t.exports=r})),UE=c(((e,t)=>{var n=pT(),r=rE(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=o[c];var f=d[0],p=e[f],m=d[1];if(u&&d[2]){if(p===void 0&&!(f in e))return!1}else{var h=new n;if(s)var g=s(p,m,f,e,t,h);if(!(g===void 0?r(m,p,i|a,s,h):g))return!1}}return!0}t.exports=o})),WE=c(((e,t)=>{var n=Hw();function r(e){return e===e&&!n(e)}t.exports=r})),GE=c(((e,t)=>{var n=WE(),r=JT();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),KE=c(((e,t)=>{function n(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),qE=c(((e,t)=>{var n=UE(),r=GE(),i=KE();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),JE=c(((e,t)=>{var n=hE();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),YE=c(((e,t)=>{var n=rE(),r=JE(),i=CE(),a=oE(),o=WE(),s=KE(),c=mE(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),XE=c(((e,t)=>{function n(e){return function(t){return t==null?void 0:t[e]}}t.exports=n})),ZE=c(((e,t)=>{var n=hE();function r(e){return function(t){return n(t,e)}}t.exports=r})),QE=c(((e,t)=>{var n=XE(),r=ZE(),i=oE(),a=mE();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),$E=c(((e,t)=>{var n=qE(),r=YE(),i=jE(),a=TT(),o=QE();function s(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=s})),eD=c(((e,t)=>{var n=DT(),r=HE(),i=$E(),a=TT();function o(e,t){return(a(e)?n:r)(e,i(t,3))}t.exports=o})),tD=c(((e,t)=>{var n=aE();function r(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===void 0?s===s&&!n(s):r(s,c)))var c=s,l=o}return l}t.exports=r})),nD=c(((e,t)=>{function n(e,t){return e>t}t.exports=n})),rD=c(((e,t)=>{var n=tD(),r=nD(),i=$E();function a(e,t){return e&&e.length?n(e,i(t,2),r):void 0}t.exports=a})),iD=d(iE(),1),aD=d(IE(),1),oD=d(eD(),1),sD=d(rD(),1),cD=e=>{let t=(0,Ul.default)(e);if(e&&(e==null?void 0:e.length)>1){let n=(0,sD.default)(e,`state`),r=(0,oD.default)(e,{state:n==null?void 0:n.state});t=(0,sD.default)(r,e=>new Date(e.updatedAt))}return t};oo();function lD(e,t){return mD(e)||pD(e,t)||dD(e,t)||uD()}function uD(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
33
33
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dD(e,t){if(e){if(typeof e==`string`)return fD(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fD(e,t):void 0}}function fD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pD(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function mD(e){if(Array.isArray(e))return e}var hD=ec.create(`main`),gD=e=>{var t;return((t=e.recognizerProcessParam.delegateProcessing)==null?void 0:t.httpHeaders)||{}};function _D(e){var t,n,r;let i=e.onError,a=e.onStatusChange,o=Mc(),s=o.onEvent,c=o.continueInBrowserButton,l=c===void 0||c,u=Zc().translate,d=window.RegulaDocumentSDK,f=((t=d.recognizerProcessParam)==null?void 0:t.tag)||hs(),p=(((n=d.recognizerProcessParam)==null||(n=n.delegateProcessing)==null?void 0:n.delegateURL)||window.location.href).replace(`{tag}`,f),m=new Px({basePath:((r=d.recognizerProcessParam.delegateProcessing)==null?void 0:r.serviceURL)||``,baseOptions:{headers:gD(d)}}),h=Ma(),g=Ma(),_=lD(q(!1),2),v=_[0],y=_[1];return J(()=>{hD(`Remote scanner parameters: ${JSON.stringify({tag:f,url:p})}`);let e=function(){var e=W(function*(){try{let e=(yield m.getTransactionsByTag(f,{headers:gD(d)})).data,t=cD(e.items);if(hD(`Remote scanner transaction data: ${JSON.stringify(e)}`),t&&((0,iD.default)((0,aD.default)(t,[`state`]),(0,aD.default)(h.current,[`state`]))||(t.state===fi.UPLOADED&&(s({action:ti.REMOTE_TRANSACTION_UPLOADED,data:t}),y(!0)),hD(`Remote scanner status: UPLOADED`),h.current=t),t.state===fi.PROCESSED&&t.id)){clearInterval(g.current);let e=yield m.getReprocessTransactionResult(t.id,!0);hD(`Remote scanner reprocess result: ${JSON.stringify(e)}`),s({action:ti.REMOTE_PROCESS_FINISHED,data:{status:zi.OK,response:e}}),a(K.SUCCESS)}}catch(e){clearInterval(g.current),i(new Uu(ei.CONNECTION_ERROR,e)),a(K.FAILED)}});return function(){return e.apply(this,arguments)}}();return e(),g.current=setInterval(e,5e3),()=>clearInterval(g.current)},[]),v?Z(gu,{}):Z(`div`,{part:`remote-scanner-container`,className:XC[`remote-scanner-wrapper`],children:[Z(`div`,{"aria-live":`assertive`,part:`remote-scanner-text`,className:XC.text,children:[Z(`h1`,{part:`remote-scanner-title`,className:XC.title,children:u(`switchToMobile`)}),Z(`p`,{part:`remote-scanner-subtitle`,className:XC.subtitle,children:u(`openPhoneCamera`)})]}),Z(`div`,{part:`remote-scanner-content`,className:XC[`content-container`],children:[Z(`div`,{part:`remote-scanner-qr`,className:XC[`qr-container`],children:Z(Cw,{"aria-label":u(`QRCodeForScanning`),value:p})}),l&&Z(Xt,{children:[Z(`div`,{part:`remote-scanner-divider`,className:XC.divider,children:u(`or`)}),Z(`button`,{part:`remote-scanner-continue-button`,className:XC.button,onClick:()=>a(K.CAMERA_PROCESSING),children:u(`continueInBrowser`)})]})]})]})}var vD=e=>{var t;let n=((t=window.RegulaDocumentSDK.recognizerProcessParam)==null?void 0:t.delegateProcessing)||{},r=n.serviceURL,i=n.delegateURL;return!!r&&!!i&&(navigator.maxTouchPoints<=0&&!_s.isMobile||e)},yD=(e,t,n,r)=>e?t?n?`fromCameraGalleryMobile`:`fromMobileDesktop`:n?`fromGalleryMobile`:``:t?n?r?`fromCameraFilesMobileDesktop`:`fromCameraFilesDesktop`:r?`fromCameraMobileDesktop`:`fromCameraDesktop`:n?r?`fromFilesMobileDesktop`:`fromFilesDesktop`:r?`fromMobileDesktop`:``,bD=(e,t,n,r)=>e?K.CHOOSE_INPUT_SOURCE:t?K.CAMERA_PROCESSING:!t&&r&&!n?K.REMOTE_SCANNER:K.CONFIGURATION_ERROR,xD=(e,t,n,r,i,a)=>e?(!n||n&&(i||t))&&(!r||r&&(a||t)):i||t;oo(),cs();function SD(e,t){return DD(e)||ED(e,t)||wD(e,t)||CD()}function CD(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -53,4 +53,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
53
53
  <slot />
54
54
  `}},zO=function(e,t){return zO=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])},zO(e,t)};function BO(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);zO(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function VO(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function HO(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function UO(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function WO(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function GO(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function KO(e){return this instanceof KO?(this.v=e,this):new KO(e)}function qO(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof KO?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function JO(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof UO==`function`?UO(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function YO(e){return typeof e==`function`}function XO(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ZO=XO(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
55
55
  `+t.map(function(e,t){return t+1+`) `+e.toString()}).join(`
56
- `):``,this.name=`UnsubscriptionError`,this.errors=t}});function QO(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var $O=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a){if(this._parentage=null,Array.isArray(a))try{for(var o=UO(a),s=o.next();!s.done;s=o.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else a.remove(this)}var c=this.initialTeardown;if(YO(c))try{c()}catch(e){i=e instanceof ZO?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=UO(l),d=u.next();!d.done;d=u.next()){var f=d.value;try{nk(f)}catch(e){i=i==null?[]:i,e instanceof ZO?i=GO(GO([],WO(i)),WO(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new ZO(i)}},e.prototype.add=function(t){var n;if(t&&t!==this){if(this.closed)nk(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)==null?[]:n).push(t)}}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&QO(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&QO(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e}(),ek=$O.EMPTY;function tk(e){return e instanceof $O||e&&`closed`in e&&YO(e.remove)&&YO(e.add)&&YO(e.unsubscribe)}function nk(e){YO(e)?e():e.unsubscribe()}var rk={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ik={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ik.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,GO([e,t],WO(n))):setTimeout.apply(void 0,GO([e,t],WO(n)))},clearTimeout:function(e){var t=ik.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ak(e){ik.setTimeout(function(){var t=rk.onUnhandledError;if(t)t(e);else throw e})}function ok(){}var sk=(function(){return uk(`C`,void 0,void 0)})();function ck(e){return uk(`E`,void 0,e)}function lk(e){return uk(`N`,e,void 0)}function uk(e,t,n){return{kind:e,value:t,error:n}}var dk=null;function fk(e){if(rk.useDeprecatedSynchronousErrorHandling){var t=!dk;if(t&&(dk={errorThrown:!1,error:null}),e(),t){var n=dk,r=n.errorThrown,i=n.error;if(dk=null,r)throw i}}else e()}function pk(e){rk.useDeprecatedSynchronousErrorHandling&&dk&&(dk.errorThrown=!0,dk.error=e)}var mk=function(e){BO(t,e);function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,tk(t)&&t.add(n)):n.destination=Sk,n}return t.create=function(e,t,n){return new vk(e,t,n)},t.prototype.next=function(e){this.isStopped?xk(lk(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?xk(ck(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?xk(sk,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}($O),hk=Function.prototype.bind;function gk(e,t){return hk.call(e,t)}var _k=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){yk(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){yk(e)}else yk(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){yk(e)}},e}(),vk=function(e){BO(t,e);function t(t,n,r){var i=e.call(this)||this,a;if(YO(t)||!t)a={next:t==null?void 0:t,error:n==null?void 0:n,complete:r==null?void 0:r};else{var o;i&&rk.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=function(){return i.unsubscribe()},a={next:t.next&&gk(t.next,o),error:t.error&&gk(t.error,o),complete:t.complete&&gk(t.complete,o)}):a=t}return i.destination=new _k(a),i}return t}(mk);function yk(e){rk.useDeprecatedSynchronousErrorHandling?pk(e):ak(e)}function bk(e){throw e}function xk(e,t){var n=rk.onStoppedNotification;n&&ik.setTimeout(function(){return n(e,t)})}var Sk={closed:!0,next:ok,error:bk,complete:ok},Ck=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})();function wk(e){return e}function Tk(e){return e.length===0?wk:e.length===1?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var Ek=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this,i=kk(e)?e:new vk(e,t,n);return fk(function(){var e=r,t=e.operator,n=e.source;i.add(t?t.call(i,n):n?r._subscribe(i):r._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return t=Dk(t),new t(function(t,r){var i=new vk({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){var t;return(t=this.source)==null?void 0:t.subscribe(e)},e.prototype[Ck]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Tk(e)(this)},e.prototype.toPromise=function(e){var t=this;return e=Dk(e),new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function Dk(e){var t;return(t=e==null?rk.Promise:e)==null?Promise:t}function Ok(e){return e&&YO(e.next)&&YO(e.error)&&YO(e.complete)}function kk(e){return e&&e instanceof mk||Ok(e)&&tk(e)}function Ak(e){return YO(e==null?void 0:e.lift)}function jk(e){return function(t){if(Ak(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError(`Unable to lift unknown Observable type`)}}function Mk(e,t,n,r,i){return new Nk(e,t,n,r,i)}var Nk=function(e){BO(t,e);function t(t,n,r,i,a,o){var s=e.call(this,t)||this;return s.onFinalize=a,s.shouldUnsubscribe=o,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)==null||t.call(this))}},t}(mk),Pk=XO(function(e){return function(){e(this),this.name=`ObjectUnsubscribedError`,this.message=`object unsubscribed`}}),Fk=function(e){BO(t,e);function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return t.prototype.lift=function(e){var t=new Ik(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Pk},t.prototype.next=function(e){var t=this;fk(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=UO(t.currentObservers),a=i.next();!a.done;a=i.next())a.value.next(e)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;fk(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;fk(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)==null?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?ek:(this.currentObservers=null,a.push(e),new $O(function(){t.currentObservers=null,QO(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new Ek;return e.source=this,e},t.create=function(e,t){return new Ik(e,t)},t}(Ek),Ik=function(e){BO(t,e);function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return t.prototype.next=function(e){var t,n;(n=(t=this.destination)==null?void 0:t.next)==null||n.call(t,e)},t.prototype.error=function(e){var t,n;(n=(t=this.destination)==null?void 0:t.error)==null||n.call(t,e)},t.prototype.complete=function(){var e,t;(t=(e=this.destination)==null?void 0:e.complete)==null||t.call(e)},t.prototype._subscribe=function(e){var t,n;return(n=(t=this.source)==null?void 0:t.subscribe(e))==null?ek:n},t}(Fk),Lk=(function(e){return e&&typeof e.length==`number`&&typeof e!=`function`});function Rk(e){return YO(e==null?void 0:e.then)}function zk(e){return YO(e[Ck])}function Bk(e){return Symbol.asyncIterator&&YO(e==null?void 0:e[Symbol.asyncIterator])}function Vk(e){return TypeError(`You provided `+(typeof e==`object`&&e?`an invalid object`:`'`+e+`'`)+` where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Hk(){return typeof Symbol!=`function`||!Symbol.iterator?`@@iterator`:Symbol.iterator}var Uk=Hk();function Wk(e){return YO(e==null?void 0:e[Uk])}function Gk(e){return qO(this,arguments,function(){var t,n,r,i;return HO(this,function(a){switch(a.label){case 0:t=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,KO(t.read())];case 3:return n=a.sent(),r=n.value,i=n.done,i?[4,KO(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,KO(r)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Kk(e){return YO(e==null?void 0:e.getReader)}function qk(e){if(e instanceof Ek)return e;if(e!=null){if(zk(e))return Jk(e);if(Lk(e))return Yk(e);if(Rk(e))return Xk(e);if(Bk(e))return Qk(e);if(Wk(e))return Zk(e);if(Kk(e))return $k(e)}throw Vk(e)}function Jk(e){return new Ek(function(t){var n=e[Ck]();if(YO(n.subscribe))return n.subscribe(t);throw TypeError(`Provided object does not correctly implement Symbol.observable`)})}function Yk(e){return new Ek(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Xk(e){return new Ek(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,ak)})}function Zk(e){return new Ek(function(t){var n,r;try{for(var i=UO(e),a=i.next();!a.done;a=i.next()){var o=a.value;if(t.next(o),t.closed)return}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function Qk(e){return new Ek(function(t){eA(e,t).catch(function(e){return t.error(e)})})}function $k(e){return Qk(Gk(e))}function eA(e,t){var n,r,i,a;return VO(this,void 0,void 0,function(){var o,s;return HO(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=JO(e),c.label=1;case 1:return[4,n.next()];case 2:if(r=c.sent(),r.done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),i={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(a=n.return)?[4,a.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function tA(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(a),!i)return a}function nA(e,t){return t===void 0&&(t=0),jk(function(n,r){n.subscribe(Mk(r,function(n){return tA(r,e,function(){return r.next(n)},t)},function(){return tA(r,e,function(){return r.complete()},t)},function(n){return tA(r,e,function(){return r.error(n)},t)}))})}function rA(e,t){return t===void 0&&(t=0),jk(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function iA(e,t){return qk(e).pipe(rA(t),nA(t))}function aA(e,t){return qk(e).pipe(rA(t),nA(t))}function oA(e,t){return new Ek(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function sA(e,t){return new Ek(function(n){var r;return tA(n,t,function(){r=e[Uk](),tA(n,t,function(){var e,t,i;try{e=r.next(),t=e.value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return YO(r==null?void 0:r.return)&&r.return()}})}function cA(e,t){if(!e)throw Error(`Iterable cannot be null`);return new Ek(function(n){tA(n,t,function(){var r=e[Symbol.asyncIterator]();tA(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function lA(e,t){return cA(Gk(e),t)}function uA(e,t){if(e!=null){if(zk(e))return iA(e,t);if(Lk(e))return oA(e,t);if(Rk(e))return aA(e,t);if(Bk(e))return cA(e,t);if(Wk(e))return sA(e,t);if(Kk(e))return lA(e,t)}throw Vk(e)}function dA(e,t){return t?uA(e,t):qk(e)}function fA(e,t){return jk(function(n,r){var i=0;n.subscribe(Mk(r,function(n){r.next(e.call(t,n,i++))}))})}function pA(e,t,n,r,i,a,o,s){var c=[],l=0,u=0,d=!1,f=function(){d&&!c.length&&!l&&t.complete()},p=function(e){return l<r?m(e):c.push(e)},m=function(e){a&&t.next(e),l++;var s=!1;qk(n(e,u++)).subscribe(Mk(t,function(e){i==null||i(e),a?p(e):t.next(e)},function(){s=!0},void 0,function(){if(s)try{l--;for(var e=function(){var e=c.shift();o?tA(t,o,function(){return m(e)}):m(e)};c.length&&l<r;)e();f()}catch(e){t.error(e)}}))};return e.subscribe(Mk(t,p,function(){d=!0,f()})),function(){s==null||s()}}function mA(e,t,n){return n===void 0&&(n=1/0),YO(t)?mA(function(n,r){return fA(function(e,i){return t(n,e,r,i)})(qk(e(n,r)))},n):(typeof t==`number`&&(n=t),jk(function(t,r){return pA(t,r,e,n)}))}function hA(e){return jk(function(t,n){var r=null,i=!1,a;r=t.subscribe(Mk(n,void 0,void 0,function(o){a=qk(e(o,hA(e)(t))),r?(r.unsubscribe(),r=null,a.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,a.subscribe(n))})}function gA(e,t){return YO(t)?mA(e,t,1):mA(e,1)}function _A(e,t,n){return(t=vA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vA(e){var t=yA(e,`string`);return typeof t==`symbol`?t:t+``}function yA(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var bA=class{constructor(){_A(this,`taskSubject`,new Fk),this.taskSubject.pipe(gA(e=>dA(e()).pipe(hA(e=>dA(Promise.reject(e)))))).subscribe()}addTask(e){return new Promise((t,n)=>{this.taskSubject.next(W(function*(){try{t(yield e())}catch(e){n(e)}}))})}},xA=`text/plain`,SA=`us-ascii`,CA=`%(?:3A|2F|3F|23|5B|5D|40|21|24|26|27|28|29|2A|2B|2C|3B|3D)`,wA=`__normalize_url_encoded_reserved__`,TA=/__normalize_url_encoded_reserved__(\d+)__/g,EA=new RegExp(CA,`i`),DA=new RegExp(CA,`gi`),OA=(e,t)=>Array.isArray(t)&&t.some(t=>t instanceof RegExp?t.flags.includes(`g`)||t.flags.includes(`y`)?new RegExp(t.source,t.flags.replaceAll(/[gy]/g,``)).test(e):t.test(e):t===e),kA=new Set([`https:`,`http:`,`file:`]),AA=e=>{if(typeof e!=`string`)return;let t=e.trim().toLowerCase().replace(/:$/,``);return t===``?void 0:`${t}:`},jA=e=>{try{let{protocol:t}=new URL(e),n=e.slice(0,t.length+2).toLowerCase()===`${t}//`;if(t===`localhost:`&&!n&&/^\d{1,5}([/?#]|$)/.test(e.slice(t.length)))return;if(t.endsWith(`:`)&&(!t.includes(`.`)||n)&&!kA.has(t))return t}catch(e){}},MA=e=>{try{return decodeURIComponent(e.replaceAll(`+`,`%20`))}catch(t){return new URLSearchParams(`${e}=`).keys().next().value}},NA=e=>{let t=new Set;if(!e)return t;for(let n of e.slice(1).split(`&`))n&&!n.includes(`=`)&&t.add(MA(n));return t},PA=e=>{let t=e;try{t=decodeURIComponent(e)}catch(n){t=new URLSearchParams(e).toString()}let n=e=>{let t=new Set;for(let n of e.matchAll(TA))t.add(Number.parseInt(n[1],10));return t},r=n(e);for(let e of n(t))r.add(e);let i=0;for(;r.has(i);)i++;return`${wA}${i}__`},FA=(e,t)=>{if(!t)return e.sort(),e.toString();let n=e=>e.replace(t,(e,t)=>String.fromCodePoint(Number.parseInt(t,16))),r=[...e.entries()];return r.sort(([e],[t])=>{let r=n(e),i=n(t);return r<i?-1:+(r>i)}),new URLSearchParams(r).toString()},IA=(e,t)=>t?e.replace(t,(e,t)=>String.fromCodePoint(Number.parseInt(t,16))):e,LA=(e,t,n)=>{let r=t===`always`,i=t===`never`,a=r||i?void 0:NA(n),o=e=>e.replaceAll(`+`,`%20`),s=e=>r?`${e}=`:i||a.has(MA(e))?e:`${e}=`,c=e=>{let t=e.indexOf(`=`);if(t===-1)return s(o(e));let n=e.slice(0,t),r=e.slice(t+1);return r===``?n===``?`=`:s(o(n)):`${o(n)}=${r}`},l=e.slice(1).split(`&`).filter(Boolean);return l.length===0?``:`?${l.map(e=>c(e)).join(`&`)}`},RA=(e,{stripHash:t})=>{let n=RegExp(`^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$`,``).exec(e);if(!n)throw Error(`Invalid URL: ${e}`);let{type:r,data:i,hash:a}=n.groups,o=r.split(`;`),s=o.at(-1)===`base64`;s&&o.pop();let c=o.shift().toLowerCase(),l=[...o.map(e=>{let[t,n=``]=e.split(`=`).map(e=>e.trim());return t===`charset`&&(n=n.toLowerCase(),n===SA)?``:`${t}${n?`=${n}`:``}`}).filter(Boolean)];s&&l.push(`base64`),(l.length>0||c&&c!==xA)&&l.unshift(c);let u=t||!a?``:`#${a}`;return`data:${l.join(`;`)},${s?i.trim():i}${u}`};function zA(e,t){if(t=X({defaultProtocol:`http`,normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,removePath:!1,transformPath:!1,emptyQueryValue:`preserve`},t),typeof t.defaultProtocol==`string`&&!t.defaultProtocol.endsWith(`:`)&&(t.defaultProtocol=`${t.defaultProtocol}:`),e=e.trim(),/^data:/i.test(e))return RA(e,t);let n=Array.isArray(t.customProtocols)?t.customProtocols:[],r=new Set(n.map(e=>AA(e)).filter(Boolean)),i=jA(e);if(i&&!r.has(i))return e;let a=e.startsWith(`//`);!(!a&&/^\.*\//.test(e))&&!i&&(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let o=new URL(e);if(t.forceHttp&&t.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&o.protocol===`https:`&&(o.protocol=`http:`),t.forceHttps&&o.protocol===`http:`&&(o.protocol=`https:`),t.stripAuthentication&&(o.username=``,o.password=``),t.stripHash?o.hash=``:t.stripTextFragment&&(o.hash=o.hash.replace(/#?:~:text.*?$/i,``)),o.pathname){let e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,t=0,n=``;for(;;){let r=e.exec(o.pathname);if(!r)break;let i=r[0],a=r.index,s=o.pathname.slice(t,a);n+=s.replaceAll(/\/{2,}/g,`/`),n+=i,t=a+i.length}let r=o.pathname.slice(t);n+=r.replaceAll(/\/{2,}/g,`/`),o.pathname=n}if(o.pathname)try{o.pathname=decodeURI(o.pathname).replaceAll(`\\`,`%5C`)}catch(e){}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=o.pathname.split(`/`).filter(Boolean),n=e.at(-1);n&&OA(n,t.removeDirectoryIndex)&&(e.pop(),o.pathname=e.length>0?`/${e.join(`/`)}/`:`/`)}if(t.removePath&&(o.pathname=`/`),t.transformPath&&typeof t.transformPath==`function`){let e=o.pathname.split(`/`).filter(Boolean),n=t.transformPath(e);o.pathname=(n==null?void 0:n.length)>0?`/${n.join(`/`)}`:`/`}o.hostname&&(o.hostname=o.hostname.replace(/\.$/,``),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(o.hostname)&&(o.hostname=o.hostname.replace(/^www\./,``)));let s=o.search,c;if(t.sortQueryParameters&&EA.test(s)){let e=PA(s);o.search=s.replaceAll(DA,t=>`${e}${t.slice(1).toUpperCase()}`),c=RegExp(`${e}([0-9A-F]{2})`,`g`)}let l=Array.isArray(t.keepQueryParameters),{searchParams:u}=o;if(!l&&Array.isArray(t.removeQueryParameters)&&t.removeQueryParameters.length>0)for(let e of[...u.keys()])OA(IA(e,c),t.removeQueryParameters)&&u.delete(e);if(!l&&t.removeQueryParameters===!0&&(o.search=``),l&&t.keepQueryParameters.length>0)for(let e of[...u.keys()])OA(IA(e,c),t.keepQueryParameters)||u.delete(e);else l&&(o.search=``);t.sortQueryParameters&&(o.search=FA(o.searchParams,c),o.search=decodeURIComponent(o.search.replaceAll(/%(?:26|23|3f|25|2b)/gi,e=>`%25${e.slice(1)}`)),c&&(o.search=o.search.replace(c,`%$1`))),o.search=LA(o.search,t.emptyQueryValue,s),t.removeTrailingSlash&&(o.pathname=o.pathname.replace(/\/$/,``)),t.removeExplicitPort&&o.port&&(o.port=``);let d=e;return e=o.toString(),!t.removeSingleSlash&&o.pathname===`/`&&!d.endsWith(`/`)&&o.hash===``&&(e=e.replace(/\/$/,``)),(t.removeTrailingSlash||o.pathname===`/`)&&o.hash===``&&t.removeSingleSlash&&(e=e.replace(/\/$/,``)),a&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,`//`)),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,``)),e}function BA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function VA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?BA(Object(n),!0).forEach(function(t){HA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function HA(e,t,n){return(t=UA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UA(e){var t=WA(e,`string`);return typeof t==`symbol`?t:t+``}function WA(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var GA=ec.create(`wasm`),KA=ec.create(`main`),qA=class{constructor(){HA(this,`_worker`,null),HA(this,`_initializeListener`,null),HA(this,`_processingListener`,null),HA(this,`_queueService`,new bA),HA(this,`_initProcess`,null),HA(this,`version`,{component:`9.9.3126-rc`}),HA(this,`onFinalize`,null),HA(this,`isPrepared`,!1),HA(this,`isInitialized`,!1),HA(this,`isProcessing`,!1),HA(this,`initData`,null),HA(this,`recognizerProcessParam`,{processParam:{}}),HA(this,`imageProcessParam`,{processParam:{}}),HA(this,`recognizeListener`,null),HA(this,`workerPath`,`https://wasm-development.regulaforensics.com/document/rc/9.9/barcodemrz/554d99ca-fe3c75d4e`),HA(this,`pageIdx`,null)}get processingListener(){return this._processingListener}set processingListener(e){this._processingListener=e,e&&e({isProcessing:this.isProcessing})}get initializeListener(){return this._initializeListener}set initializeListener(e){this._initializeListener=e,e&&e({isInitialized:this.isInitialized})}createProcessImageRequest(e,t){let n=e.map((e,t)=>({data:e,light:6,pageIdx:t}));return VA(VA({},t),{},{imagesList:n})}prepareImageData(e){return e.map(e=>e instanceof ImageData?{width:e.width,height:e.height,data:e.data.buffer}:{data:e})}sendMessage(e){return this._queueService.addTask(()=>new Promise((t,n)=>{if(!this._worker)return KA(`Worker is missing)`),n(`Worker is missing`);this._worker.onmessage=e=>{if(e.data.target===Wi.custom){let r=e.data.data,i=r.method,a=r.response,o=r.code,s=a&&`reject_message`in a?a.reject_message:``;if(o===ui.ok||o===ui.badLicense&&!s)KA(`Method ${i}: { code: ${o} } `),t(a);else{let e=`Method ${i}: ${ji[o]||o}${s?` Reject message: ${s}`:``}`;KA(e),n(e)}}e.data.target===Wi.stdout&&GA(JSON.stringify(e.data.content)),e.data.target===Wi.stderr&&(GA(JSON.stringify(e.data.content)),n(e.data.content))},this._worker.onerror=e=>{GA(JSON.stringify(e.message)),n(e)},KA(`Send message to worker: { target: ${e.target}, method: ${e.method} }`),this._worker.postMessage(VA(VA({},e),{},{preMain:!0}),`data`in e&&e.data?e.data.map(e=>e.data):[])}))}prepare(e){var t=this;return W(function*(){var n;KA(`Preparing the service`);{let n=t.workerPath===`https://wasm-development.regulaforensics.com/document/rc/9.9/barcodemrz/554d99ca-fe3c75d4e`,r=zA(e&&n?Ux(e,`PROD`):t.workerPath),i=yield(yield fetch(`${r}/${Oi}`)).text();n||(i=Hx(i,r));let a=new Blob([i],{type:`text/plain`}),o=URL.createObjectURL(a);t._worker=new Worker(o),URL.revokeObjectURL(o)}(n=t._worker)==null||n.postMessage({method:si.prepare,target:Wi.gl,preMain:!0,op:`setPrefetched`}),yield t.sendMessage({method:si.prepare,target:Wi.init,URL:document.URL}),t.isPrepared=!0,KA(`Service prepared`)})()}initialize(e){var t=this;return W(function*(){return t._initProcess||(t._initProcess=t.doInitialize(e),t._initProcess.catch(()=>{t._initProcess=null})),t._initProcess})()}doInitialize(e){var t=this;return W(function*(){var n,r;t.isPrepared||(yield t.prepare(e==null?void 0:e.module)),KA(`Initializing the service`);let i=yield t.sendMessage({target:Wi.custom,method:si.initialize,request:{systemInfo:{userID:Bs($i),hostName:(n=document.location)==null?void 0:n.origin,license:e==null?void 0:e.license},telemetry:yield Ws({sdkVersion:`9.9.3126-rc`}),processParam:t.recognizerProcessParam.processParam||t.imageProcessParam.processParam}}),a=i.scenario,o=i.license;return t.initData={scenario:a,license:o},t.isInitialized=!0,(r=t._initializeListener)==null||r.call(t,{isInitialized:t.isInitialized}),KA(`Service initialized: ${JSON.stringify({scenario:a,license:o})}`),t.initData})()}doProcess(e,t,n){var r=this;return W(function*(){var i,a;KA(`Process method ${e} started`),r.isProcessing=!0,(i=r._processingListener)==null||i.call(r,{isProcessing:r.isProcessing});let o=yield r.sendMessage({target:Wi.custom,method:e,request:t,data:n});return r.isProcessing=!1,(a=r._processingListener)==null||a.call(r,{isProcessing:r.isProcessing}),KA(`Process method ${e} finished`),new Ax(o)})()}processImageBase64(e,t){var n=this;return W(function*(){return n.doProcess(si.processImage,n.createProcessImageRequest(e,t))})()}process(e,t){var n=this;return W(function*(){var r;let i=n.prepareImageData(e),a=yield n.doProcess(si.process,t||n.recognizerProcessParam,i);return(r=n.recognizeListener)==null||r.call(n,a),a})()}processImage(e,t){var n=this;return W(function*(){let r=n.prepareImageData(e);return n.doProcess(si.processImage,t||n.imageProcessParam,r)})()}startNewPage(){var e=this;return W(function*(){KA(`Starting new page`),yield e.sendMessage({target:Wi.custom,method:si.startNewPage}),typeof e.pageIdx==`number`&&(e.pageIdx+=1)})()}startNewDocument(e,t){var n=this;return W(function*(){return KA(`Starting new document`),n.pageIdx=0,yield n.sendMessage({target:Wi.custom,method:si.startNewDocument,request:VA(VA({},t||n.recognizerProcessParam),{},{metadata:e})})})()}createBackendTransaction(e,t){var n=this;return W(function*(){return KA(`Create backend transaction`),n.pageIdx=0,yield n.sendMessage({target:Wi.custom,method:si.createBackendTransaction,request:VA(VA({},t||n.recognizerProcessParam),{},{metadata:e})})})()}finalizePackage(){var e=this;return W(function*(){try{var t;KA(`Finalize package`);let n=yield e.sendMessage({target:Wi.custom,method:si.finalizePackage});return(t=e.onFinalize)==null||t.call(e,n),n}catch(t){var n;return(n=e.onFinalize)==null||n.call(e,{tag:``,transactionId:``}),Promise.reject(t)}})()}addDataToPackage(e,t){var n=this;return W(function*(){KA(`Add data to package`),yield n.sendMessage({target:Wi.custom,method:si.addDataToPackage,request:t,data:[{data:e.buffer}]}),KA(`Data added to package`)})()}shutdown(){KA(`Shutdown service`),this._worker&&(this._worker.terminate(),KA(`Worker terminated`)),this.isPrepared=!1,this.isInitialized=!1,this.isProcessing=!1,this.pageIdx=null,this._initProcess=null}};function JA(e,t,n){return(t=YA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YA(e){var t=XA(e,`string`);return typeof t==`symbol`?t:t+``}function XA(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ZA=class{constructor(e){JA(this,`_streamData`,null),JA(this,`_documentReaderService`,new qA),JA(this,`_canvas`,document.createElement(`canvas`)),JA(this,`_cameraInfo`,null),JA(this,`_sortedDevices`,null),JA(this,`_devices`,null),JA(this,`_videoEventListener`,null),JA(this,`_frameListener`,null),JA(this,`_pageIdx`,0),JA(this,`_streamParam`,{cameraMode:Vi.environment,preferredCameraId:``,resolution:Xi.HD}),JA(this,`isProcessing`,!1),JA(this,`isInitialized`,!1),JA(this,`videoElement`,null),this.videoElement=e||null,this._documentReaderService.recognizerProcessParam=Fi,this._documentReaderService.imageProcessParam=Ii}get recognizeListener(){return this._documentReaderService.recognizeListener}set recognizeListener(e){this._documentReaderService.recognizeListener=e}get streamParam(){return this._streamParam}set streamParam(e){this._streamParam=Ls(this._streamParam,e)}get recognizerProcessParam(){return this._documentReaderService.recognizerProcessParam}set recognizerProcessParam(e){this._documentReaderService.recognizerProcessParam=Ls(this._documentReaderService.recognizerProcessParam,e)}get imageProcessParam(){return this._documentReaderService.imageProcessParam}set imageProcessParam(e){this._documentReaderService.imageProcessParam=Ls(this._documentReaderService.imageProcessParam,e)}get workerPath(){return this._documentReaderService.workerPath}set workerPath(e){this._documentReaderService.workerPath=e}startStream(){var e=this;return new Promise((t,n)=>{(function(){var r=W(function*(){try{e._devices||(e._devices=yield Ds()),e._sortedDevices||(e._sortedDevices=yield As(e._devices),e._devices.isCameraAllowed=!0),e._cameraInfo=Ms(e._streamParam.cameraMode,e._sortedDevices,e._streamParam.preferredCameraId),e._streamData=yield new Promise((t,n)=>{(function(){var r=W(function*(){yield Rs(_s.isFirefox?500:0);try{if(!e._cameraInfo)return;t(yield Ps({width:e._streamParam.resolution.width||Xi.HD.width,height:e._streamParam.resolution.height||Xi.HD.height},e._cameraInfo,e._streamParam.preferredCameraId))}catch(e){n(e)}});return function(){return r.apply(this,arguments)}})()()}),e._cameraInfo=e._streamData.camera,e._streamData.stream&&e.videoElement?(e.videoElement.srcObject=e._streamData.stream,e._videoEventListener=()=>{e.videoElement&&(e._canvas.width=e.videoElement.videoWidth,e._canvas.height=e.videoElement.videoHeight,t())},e.videoElement.addEventListener(`loadeddata`,e._videoEventListener)):n(new Uu(Qi[e._streamData.status]||ei.CAMERA_UNKNOWN_ERROR))}catch(e){if(e instanceof Error&&e.name===`NotAllowedError`)return n(new Uu(ei.CAMERA_PERMISSION_DENIED,e));n(new Uu(ei.CAMERA_UNKNOWN_ERROR,e))}});return function(){return r.apply(this,arguments)}})()()})}stopStream(){var e;this._videoEventListener&&this.videoElement&&(this.videoElement.removeEventListener(`play`,this._videoEventListener),this._videoEventListener=null),(e=this._streamData)!=null&&e.stream&&(Ns(this._streamData.stream),this._streamData=null)}startRecognizeProcess(){var e=this;return W(function*(){for(e.isProcessing=!0;e.isProcessing;){if(!e.videoElement)return;let t=Wx(e.videoElement,Ri.UINT).imageData,n=yield e._documentReaderService.process(t);e._frameListener?e._frameListener(n):e.stopRecognizeProcess()}})()}stopRecognizeProcess(){this.isProcessing=!1}startNewPage(){var e=this;return W(function*(){e._pageIdx++,yield e._documentReaderService.startNewPage()})()}startNewDocument(){var e=this;return W(function*(){yield e._documentReaderService.startNewDocument()})()}switchCamera(){var e=this;return W(function*(){e._cameraInfo&&(e.stopRecognizeProcess(),e.stopStream(),e._sortedDevices&&(e._streamParam.preferredCameraId=Is(e._sortedDevices,e._cameraInfo.deviceId),yield e.startStream(),yield e.startRecognizeProcess()))})()}startRecognition(e){var t=this;return W(function*(){return yield t.startNewDocument(),t._streamData||(yield t.startStream()),new Promise(n=>{t._frameListener=r=>{let i=Vx(r.rawResponse,t._pageIdx,t._documentReaderService.recognizerProcessParam.processParam.multipageProcessing),a=()=>{t.stopRecognition(),n(r)},o=function(){var e=W(function*(){yield t.startNewPage(),yield t.startRecognizeProcess()});return function(){return e.apply(this,arguments)}}();if(i===G.START_NEXT_PAGE&&e)return t.stopRecognizeProcess(),e({data:r,startNextPage:o,finishRecognition:a});if(Ai[i])return a();if(!t.isProcessing&&!t._devices&&!t._cameraInfo)return n(null)},t.startRecognizeProcess()})})()}processImage(e){var t=this;return W(function*(){let n=yield Rx(e);if(n.reduce((e,t)=>e+t.width*t.height,0)>25e6)return Promise.reject(new Uu(ei.FILE_SIZE));{let e=n.map(e=>e.data);return yield t._documentReaderService.processImage(e)}})()}stopRecognition(){this._pageIdx=0,this._cameraInfo=null,this._devices=null,this._sortedDevices=null,this.stopRecognizeProcess(),this.stopStream()}initialize(e){var t=this;return W(function*(){let n=yield t._documentReaderService.initialize({license:e==null?void 0:e.license});return t.isInitialized=t._documentReaderService.isInitialized,n})()}shutdown(){this.isProcessing=!1,this.isInitialized=!1,this._documentReaderService.shutdown()}};function QA(){return $A.apply(this,arguments)}function $A(){return $A=W(function*(){let e=window.customElements.get(`document-reader`),t=window.customElements.get(`camera-snapshot`),n=window.customElements.get(`fullscreen-container`);e||window.customElements.define(`document-reader`,QD),t||window.customElements.define(`camera-snapshot`,PO),n||window.customElements.define(`fullscreen-container`,RO);let r=window.customElements.whenDefined(`document-reader`),i=window.customElements.whenDefined(`camera-snapshot`),a=window.customElements.whenDefined(`fullscreen-container`);yield Promise.all([r,i,a])}),$A.apply(this,arguments)}return e.Authenticity=Lg,e.AuthenticityResultType=Dh,e.BarCodeModuleType=Oh,e.BarcodeType=kh,e.CameraFacingMode=Vi,e.CaptureMode=ni,e.CheckDiagnose=Ah,e.CheckResult=jh,e.Configuration=Mx,e.Critical=Mh,e.DocumentFormat=Nh,e.DocumentReaderApi=Px,e.DocumentReaderCaptureWebComponent=PO,e.DocumentReaderProcessor=ZA,e.DocumentReaderService=qA,e.DocumentReaderWebComponent=QD,e.DocumentType=Ph,e.DocumentTypeRecognitionResult=Fh,e.ErrorTypes=ei,e.EventActions=ti,e.FiberChecks=Mg,e.FrameLineCap=li,e.FrameShapeType=ci,e.FullScreenContainer=RO,e.GraphicFieldType=Ih,e.IdentChecks=Ng,e.ImageQualityCheckType=Lh,e.ImageQualityChecks=di,e.ImagesExt=kg,e.ImagesFieldWrapper=Ag,e.InputBarcodeType=Rh,e.InputImageQualityChecks=zh,e.InternalScenarios=oi,e.LCID=Bh,e.Light=Vh,e.LogLevel=Hh,e.Logger=ec,e.LowLvlResponse=jx,e.MDLDeviceEngagement=Uh,e.MDLDeviceRetrieval=Wh,e.MDLServerRetrieval=Gh,e.MRZFormat=Kh,e.MeasureSystem=qh,e.MirrorType=Ki,e.ModuleType=gi,e.MrzDetectModeEnum=Jh,e.OCRSecurityTextChecks=Fg,e.ParsingErrorCodes=Yh,e.ParsingNotificationCodes=Xh,e.ProcessResult=Ax,e.Response=Ax,e.ProcessingStatus=Zh,e.RFIDErrorCodes=Qh,e.RFIDPKDResourceType=$h,e.ResponseCode=zi,e.Result=eg,e.RfidAChip=tg,e.RfidAccessControl=ng,e.RfidAccessControlProcedureType=rg,e.RfidApplicationType=ig,e.RfidAuthenticationProcedureType=ag,e.RfidBaudRate=og,e.RfidCertificateOrigin=sg,e.RfidCertificateType=cg,e.RfidDataFileType=lg,e.RfidLocation=ug,e.RfidPasswordType=dg,e.RfidTerminalType=fg,e.RfidType=pg,e.Scenario=mg,e.SecurityFeatureChecks=Ig,e.SecurityFeatureType=hg,e.Source=gg,e.TextExt=Cg,e.TextFieldExt=Sg,e.TextFieldType=_g,e.TextPostProcessing=vg,e.TransactionStateStatus=fi,e.VerificationResult=yg,e.Visibility=bg,e.defineComponents=QA,e.instanceOfProcessRequest=Nx,e.requestToBaseRequest=Fx,e})({});
56
+ `):``,this.name=`UnsubscriptionError`,this.errors=t}});function QO(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var $O=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a){if(this._parentage=null,Array.isArray(a))try{for(var o=UO(a),s=o.next();!s.done;s=o.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else a.remove(this)}var c=this.initialTeardown;if(YO(c))try{c()}catch(e){i=e instanceof ZO?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=UO(l),d=u.next();!d.done;d=u.next()){var f=d.value;try{nk(f)}catch(e){i=i==null?[]:i,e instanceof ZO?i=GO(GO([],WO(i)),WO(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new ZO(i)}},e.prototype.add=function(t){var n;if(t&&t!==this){if(this.closed)nk(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)==null?[]:n).push(t)}}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&QO(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&QO(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e}(),ek=$O.EMPTY;function tk(e){return e instanceof $O||e&&`closed`in e&&YO(e.remove)&&YO(e.add)&&YO(e.unsubscribe)}function nk(e){YO(e)?e():e.unsubscribe()}var rk={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ik={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ik.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,GO([e,t],WO(n))):setTimeout.apply(void 0,GO([e,t],WO(n)))},clearTimeout:function(e){var t=ik.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ak(e){ik.setTimeout(function(){var t=rk.onUnhandledError;if(t)t(e);else throw e})}function ok(){}var sk=(function(){return uk(`C`,void 0,void 0)})();function ck(e){return uk(`E`,void 0,e)}function lk(e){return uk(`N`,e,void 0)}function uk(e,t,n){return{kind:e,value:t,error:n}}var dk=null;function fk(e){if(rk.useDeprecatedSynchronousErrorHandling){var t=!dk;if(t&&(dk={errorThrown:!1,error:null}),e(),t){var n=dk,r=n.errorThrown,i=n.error;if(dk=null,r)throw i}}else e()}function pk(e){rk.useDeprecatedSynchronousErrorHandling&&dk&&(dk.errorThrown=!0,dk.error=e)}var mk=function(e){BO(t,e);function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,tk(t)&&t.add(n)):n.destination=Sk,n}return t.create=function(e,t,n){return new vk(e,t,n)},t.prototype.next=function(e){this.isStopped?xk(lk(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?xk(ck(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?xk(sk,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}($O),hk=Function.prototype.bind;function gk(e,t){return hk.call(e,t)}var _k=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){yk(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){yk(e)}else yk(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){yk(e)}},e}(),vk=function(e){BO(t,e);function t(t,n,r){var i=e.call(this)||this,a;if(YO(t)||!t)a={next:t==null?void 0:t,error:n==null?void 0:n,complete:r==null?void 0:r};else{var o;i&&rk.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=function(){return i.unsubscribe()},a={next:t.next&&gk(t.next,o),error:t.error&&gk(t.error,o),complete:t.complete&&gk(t.complete,o)}):a=t}return i.destination=new _k(a),i}return t}(mk);function yk(e){rk.useDeprecatedSynchronousErrorHandling?pk(e):ak(e)}function bk(e){throw e}function xk(e,t){var n=rk.onStoppedNotification;n&&ik.setTimeout(function(){return n(e,t)})}var Sk={closed:!0,next:ok,error:bk,complete:ok},Ck=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})();function wk(e){return e}function Tk(e){return e.length===0?wk:e.length===1?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var Ek=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this,i=kk(e)?e:new vk(e,t,n);return fk(function(){var e=r,t=e.operator,n=e.source;i.add(t?t.call(i,n):n?r._subscribe(i):r._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return t=Dk(t),new t(function(t,r){var i=new vk({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){var t;return(t=this.source)==null?void 0:t.subscribe(e)},e.prototype[Ck]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Tk(e)(this)},e.prototype.toPromise=function(e){var t=this;return e=Dk(e),new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function Dk(e){var t;return(t=e==null?rk.Promise:e)==null?Promise:t}function Ok(e){return e&&YO(e.next)&&YO(e.error)&&YO(e.complete)}function kk(e){return e&&e instanceof mk||Ok(e)&&tk(e)}function Ak(e){return YO(e==null?void 0:e.lift)}function jk(e){return function(t){if(Ak(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError(`Unable to lift unknown Observable type`)}}function Mk(e,t,n,r,i){return new Nk(e,t,n,r,i)}var Nk=function(e){BO(t,e);function t(t,n,r,i,a,o){var s=e.call(this,t)||this;return s.onFinalize=a,s.shouldUnsubscribe=o,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)==null||t.call(this))}},t}(mk),Pk=XO(function(e){return function(){e(this),this.name=`ObjectUnsubscribedError`,this.message=`object unsubscribed`}}),Fk=function(e){BO(t,e);function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return t.prototype.lift=function(e){var t=new Ik(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Pk},t.prototype.next=function(e){var t=this;fk(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=UO(t.currentObservers),a=i.next();!a.done;a=i.next())a.value.next(e)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;fk(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;fk(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)==null?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?ek:(this.currentObservers=null,a.push(e),new $O(function(){t.currentObservers=null,QO(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new Ek;return e.source=this,e},t.create=function(e,t){return new Ik(e,t)},t}(Ek),Ik=function(e){BO(t,e);function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return t.prototype.next=function(e){var t,n;(n=(t=this.destination)==null?void 0:t.next)==null||n.call(t,e)},t.prototype.error=function(e){var t,n;(n=(t=this.destination)==null?void 0:t.error)==null||n.call(t,e)},t.prototype.complete=function(){var e,t;(t=(e=this.destination)==null?void 0:e.complete)==null||t.call(e)},t.prototype._subscribe=function(e){var t,n;return(n=(t=this.source)==null?void 0:t.subscribe(e))==null?ek:n},t}(Fk),Lk=(function(e){return e&&typeof e.length==`number`&&typeof e!=`function`});function Rk(e){return YO(e==null?void 0:e.then)}function zk(e){return YO(e[Ck])}function Bk(e){return Symbol.asyncIterator&&YO(e==null?void 0:e[Symbol.asyncIterator])}function Vk(e){return TypeError(`You provided `+(typeof e==`object`&&e?`an invalid object`:`'`+e+`'`)+` where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Hk(){return typeof Symbol!=`function`||!Symbol.iterator?`@@iterator`:Symbol.iterator}var Uk=Hk();function Wk(e){return YO(e==null?void 0:e[Uk])}function Gk(e){return qO(this,arguments,function(){var t,n,r,i;return HO(this,function(a){switch(a.label){case 0:t=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,KO(t.read())];case 3:return n=a.sent(),r=n.value,i=n.done,i?[4,KO(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,KO(r)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Kk(e){return YO(e==null?void 0:e.getReader)}function qk(e){if(e instanceof Ek)return e;if(e!=null){if(zk(e))return Jk(e);if(Lk(e))return Yk(e);if(Rk(e))return Xk(e);if(Bk(e))return Qk(e);if(Wk(e))return Zk(e);if(Kk(e))return $k(e)}throw Vk(e)}function Jk(e){return new Ek(function(t){var n=e[Ck]();if(YO(n.subscribe))return n.subscribe(t);throw TypeError(`Provided object does not correctly implement Symbol.observable`)})}function Yk(e){return new Ek(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Xk(e){return new Ek(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,ak)})}function Zk(e){return new Ek(function(t){var n,r;try{for(var i=UO(e),a=i.next();!a.done;a=i.next()){var o=a.value;if(t.next(o),t.closed)return}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function Qk(e){return new Ek(function(t){eA(e,t).catch(function(e){return t.error(e)})})}function $k(e){return Qk(Gk(e))}function eA(e,t){var n,r,i,a;return VO(this,void 0,void 0,function(){var o,s;return HO(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=JO(e),c.label=1;case 1:return[4,n.next()];case 2:if(r=c.sent(),r.done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),i={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(a=n.return)?[4,a.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function tA(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(a),!i)return a}function nA(e,t){return t===void 0&&(t=0),jk(function(n,r){n.subscribe(Mk(r,function(n){return tA(r,e,function(){return r.next(n)},t)},function(){return tA(r,e,function(){return r.complete()},t)},function(n){return tA(r,e,function(){return r.error(n)},t)}))})}function rA(e,t){return t===void 0&&(t=0),jk(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function iA(e,t){return qk(e).pipe(rA(t),nA(t))}function aA(e,t){return qk(e).pipe(rA(t),nA(t))}function oA(e,t){return new Ek(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function sA(e,t){return new Ek(function(n){var r;return tA(n,t,function(){r=e[Uk](),tA(n,t,function(){var e,t,i;try{e=r.next(),t=e.value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return YO(r==null?void 0:r.return)&&r.return()}})}function cA(e,t){if(!e)throw Error(`Iterable cannot be null`);return new Ek(function(n){tA(n,t,function(){var r=e[Symbol.asyncIterator]();tA(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function lA(e,t){return cA(Gk(e),t)}function uA(e,t){if(e!=null){if(zk(e))return iA(e,t);if(Lk(e))return oA(e,t);if(Rk(e))return aA(e,t);if(Bk(e))return cA(e,t);if(Wk(e))return sA(e,t);if(Kk(e))return lA(e,t)}throw Vk(e)}function dA(e,t){return t?uA(e,t):qk(e)}function fA(e,t){return jk(function(n,r){var i=0;n.subscribe(Mk(r,function(n){r.next(e.call(t,n,i++))}))})}function pA(e,t,n,r,i,a,o,s){var c=[],l=0,u=0,d=!1,f=function(){d&&!c.length&&!l&&t.complete()},p=function(e){return l<r?m(e):c.push(e)},m=function(e){a&&t.next(e),l++;var s=!1;qk(n(e,u++)).subscribe(Mk(t,function(e){i==null||i(e),a?p(e):t.next(e)},function(){s=!0},void 0,function(){if(s)try{l--;for(var e=function(){var e=c.shift();o?tA(t,o,function(){return m(e)}):m(e)};c.length&&l<r;)e();f()}catch(e){t.error(e)}}))};return e.subscribe(Mk(t,p,function(){d=!0,f()})),function(){s==null||s()}}function mA(e,t,n){return n===void 0&&(n=1/0),YO(t)?mA(function(n,r){return fA(function(e,i){return t(n,e,r,i)})(qk(e(n,r)))},n):(typeof t==`number`&&(n=t),jk(function(t,r){return pA(t,r,e,n)}))}function hA(e){return jk(function(t,n){var r=null,i=!1,a;r=t.subscribe(Mk(n,void 0,void 0,function(o){a=qk(e(o,hA(e)(t))),r?(r.unsubscribe(),r=null,a.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,a.subscribe(n))})}function gA(e,t){return YO(t)?mA(e,t,1):mA(e,1)}function _A(e,t,n){return(t=vA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vA(e){var t=yA(e,`string`);return typeof t==`symbol`?t:t+``}function yA(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var bA=class{constructor(){_A(this,`taskSubject`,new Fk),this.taskSubject.pipe(gA(e=>dA(e()).pipe(hA(e=>dA(Promise.reject(e)))))).subscribe()}addTask(e){return new Promise((t,n)=>{this.taskSubject.next(W(function*(){try{t(yield e())}catch(e){n(e)}}))})}},xA=`text/plain`,SA=`us-ascii`,CA=`%(?:3A|2F|3F|23|5B|5D|40|21|24|26|27|28|29|2A|2B|2C|3B|3D)`,wA=`__normalize_url_encoded_reserved__`,TA=/__normalize_url_encoded_reserved__(\d+)__/g,EA=new RegExp(CA,`i`),DA=new RegExp(CA,`gi`),OA=(e,t)=>Array.isArray(t)&&t.some(t=>t instanceof RegExp?t.flags.includes(`g`)||t.flags.includes(`y`)?new RegExp(t.source,t.flags.replaceAll(/[gy]/g,``)).test(e):t.test(e):t===e),kA=new Set([`https:`,`http:`,`file:`]),AA=e=>{if(typeof e!=`string`)return;let t=e.trim().toLowerCase().replace(/:$/,``);return t===``?void 0:`${t}:`},jA=e=>{try{let{protocol:t}=new URL(e),n=e.slice(0,t.length+2).toLowerCase()===`${t}//`;if(t===`localhost:`&&!n&&/^\d{1,5}([/?#]|$)/.test(e.slice(t.length)))return;if(t.endsWith(`:`)&&(!t.includes(`.`)||n)&&!kA.has(t))return t}catch(e){}},MA=e=>{try{return decodeURIComponent(e.replaceAll(`+`,`%20`))}catch(t){return new URLSearchParams(`${e}=`).keys().next().value}},NA=e=>{let t=new Set;if(!e)return t;for(let n of e.slice(1).split(`&`))n&&!n.includes(`=`)&&t.add(MA(n));return t},PA=e=>{let t=e;try{t=decodeURIComponent(e)}catch(n){t=new URLSearchParams(e).toString()}let n=e=>{let t=new Set;for(let n of e.matchAll(TA))t.add(Number.parseInt(n[1],10));return t},r=n(e);for(let e of n(t))r.add(e);let i=0;for(;r.has(i);)i++;return`${wA}${i}__`},FA=(e,t)=>{if(!t)return e.sort(),e.toString();let n=e=>e.replace(t,(e,t)=>String.fromCodePoint(Number.parseInt(t,16))),r=[...e.entries()];return r.sort(([e],[t])=>{let r=n(e),i=n(t);return r<i?-1:+(r>i)}),new URLSearchParams(r).toString()},IA=(e,t)=>t?e.replace(t,(e,t)=>String.fromCodePoint(Number.parseInt(t,16))):e,LA=(e,t,n)=>{let r=t===`always`,i=t===`never`,a=r||i?void 0:NA(n),o=e=>e.replaceAll(`+`,`%20`),s=e=>r?`${e}=`:i||a.has(MA(e))?e:`${e}=`,c=e=>{let t=e.indexOf(`=`);if(t===-1)return s(o(e));let n=e.slice(0,t),r=e.slice(t+1);return r===``?n===``?`=`:s(o(n)):`${o(n)}=${r}`},l=e.slice(1).split(`&`).filter(Boolean);return l.length===0?``:`?${l.map(e=>c(e)).join(`&`)}`},RA=(e,{stripHash:t})=>{let n=RegExp(`^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$`,``).exec(e);if(!n)throw Error(`Invalid URL: ${e}`);let{type:r,data:i,hash:a}=n.groups,o=r.split(`;`),s=o.at(-1)===`base64`;s&&o.pop();let c=o.shift().toLowerCase(),l=[...o.map(e=>{let[t,n=``]=e.split(`=`).map(e=>e.trim());return t===`charset`&&(n=n.toLowerCase(),n===SA)?``:`${t}${n?`=${n}`:``}`}).filter(Boolean)];s&&l.push(`base64`),(l.length>0||c&&c!==xA)&&l.unshift(c);let u=t||!a?``:`#${a}`;return`data:${l.join(`;`)},${s?i.trim():i}${u}`};function zA(e,t){if(t=X({defaultProtocol:`http`,normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,removePath:!1,transformPath:!1,emptyQueryValue:`preserve`},t),typeof t.defaultProtocol==`string`&&!t.defaultProtocol.endsWith(`:`)&&(t.defaultProtocol=`${t.defaultProtocol}:`),e=e.trim(),/^data:/i.test(e))return RA(e,t);let n=Array.isArray(t.customProtocols)?t.customProtocols:[],r=new Set(n.map(e=>AA(e)).filter(Boolean)),i=jA(e);if(i&&!r.has(i))return e;let a=e.startsWith(`//`);!(!a&&/^\.*\//.test(e))&&!i&&(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let o=new URL(e);if(t.forceHttp&&t.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&o.protocol===`https:`&&(o.protocol=`http:`),t.forceHttps&&o.protocol===`http:`&&(o.protocol=`https:`),t.stripAuthentication&&(o.username=``,o.password=``),t.stripHash?o.hash=``:t.stripTextFragment&&(o.hash=o.hash.replace(/#?:~:text.*?$/i,``)),o.pathname){let e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,t=0,n=``;for(;;){let r=e.exec(o.pathname);if(!r)break;let i=r[0],a=r.index,s=o.pathname.slice(t,a);n+=s.replaceAll(/\/{2,}/g,`/`),n+=i,t=a+i.length}let r=o.pathname.slice(t);n+=r.replaceAll(/\/{2,}/g,`/`),o.pathname=n}if(o.pathname)try{o.pathname=decodeURI(o.pathname).replaceAll(`\\`,`%5C`)}catch(e){}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=o.pathname.split(`/`).filter(Boolean),n=e.at(-1);n&&OA(n,t.removeDirectoryIndex)&&(e.pop(),o.pathname=e.length>0?`/${e.join(`/`)}/`:`/`)}if(t.removePath&&(o.pathname=`/`),t.transformPath&&typeof t.transformPath==`function`){let e=o.pathname.split(`/`).filter(Boolean),n=t.transformPath(e);o.pathname=(n==null?void 0:n.length)>0?`/${n.join(`/`)}`:`/`}o.hostname&&(o.hostname=o.hostname.replace(/\.$/,``),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(o.hostname)&&(o.hostname=o.hostname.replace(/^www\./,``)));let s=o.search,c;if(t.sortQueryParameters&&EA.test(s)){let e=PA(s);o.search=s.replaceAll(DA,t=>`${e}${t.slice(1).toUpperCase()}`),c=RegExp(`${e}([0-9A-F]{2})`,`g`)}let l=Array.isArray(t.keepQueryParameters),{searchParams:u}=o;if(!l&&Array.isArray(t.removeQueryParameters)&&t.removeQueryParameters.length>0)for(let e of[...u.keys()])OA(IA(e,c),t.removeQueryParameters)&&u.delete(e);if(!l&&t.removeQueryParameters===!0&&(o.search=``),l&&t.keepQueryParameters.length>0)for(let e of[...u.keys()])OA(IA(e,c),t.keepQueryParameters)||u.delete(e);else l&&(o.search=``);t.sortQueryParameters&&(o.search=FA(o.searchParams,c),o.search=decodeURIComponent(o.search.replaceAll(/%(?:26|23|3f|25|2b)/gi,e=>`%25${e.slice(1)}`)),c&&(o.search=o.search.replace(c,`%$1`))),o.search=LA(o.search,t.emptyQueryValue,s),t.removeTrailingSlash&&(o.pathname=o.pathname.replace(/\/$/,``)),t.removeExplicitPort&&o.port&&(o.port=``);let d=e;return e=o.toString(),!t.removeSingleSlash&&o.pathname===`/`&&!d.endsWith(`/`)&&o.hash===``&&(e=e.replace(/\/$/,``)),(t.removeTrailingSlash||o.pathname===`/`)&&o.hash===``&&t.removeSingleSlash&&(e=e.replace(/\/$/,``)),a&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,`//`)),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,``)),e}function BA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function VA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?BA(Object(n),!0).forEach(function(t){HA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function HA(e,t,n){return(t=UA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UA(e){var t=WA(e,`string`);return typeof t==`symbol`?t:t+``}function WA(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var GA=ec.create(`wasm`),KA=ec.create(`main`),qA=class{constructor(){HA(this,`_worker`,null),HA(this,`_initializeListener`,null),HA(this,`_processingListener`,null),HA(this,`_queueService`,new bA),HA(this,`_initProcess`,null),HA(this,`version`,{component:`9.9.3128-rc`}),HA(this,`onFinalize`,null),HA(this,`isPrepared`,!1),HA(this,`isInitialized`,!1),HA(this,`isProcessing`,!1),HA(this,`initData`,null),HA(this,`recognizerProcessParam`,{processParam:{}}),HA(this,`imageProcessParam`,{processParam:{}}),HA(this,`recognizeListener`,null),HA(this,`workerPath`,`https://wasm-development.regulaforensics.com/document/rc/9.9/barcodemrz/554d99ca-fe3c75d4e`),HA(this,`pageIdx`,null)}get processingListener(){return this._processingListener}set processingListener(e){this._processingListener=e,e&&e({isProcessing:this.isProcessing})}get initializeListener(){return this._initializeListener}set initializeListener(e){this._initializeListener=e,e&&e({isInitialized:this.isInitialized})}createProcessImageRequest(e,t){let n=e.map((e,t)=>({data:e,light:6,pageIdx:t}));return VA(VA({},t),{},{imagesList:n})}prepareImageData(e){return e.map(e=>e instanceof ImageData?{width:e.width,height:e.height,data:e.data.buffer}:{data:e})}sendMessage(e){return this._queueService.addTask(()=>new Promise((t,n)=>{if(!this._worker)return KA(`Worker is missing)`),n(`Worker is missing`);this._worker.onmessage=e=>{if(e.data.target===Wi.custom){let r=e.data.data,i=r.method,a=r.response,o=r.code,s=a&&`reject_message`in a?a.reject_message:``;if(o===ui.ok||o===ui.badLicense&&!s)KA(`Method ${i}: { code: ${o} } `),t(a);else{let e=`Method ${i}: ${ji[o]||o}${s?` Reject message: ${s}`:``}`;KA(e),n(e)}}e.data.target===Wi.stdout&&GA(JSON.stringify(e.data.content)),e.data.target===Wi.stderr&&(GA(JSON.stringify(e.data.content)),n(e.data.content))},this._worker.onerror=e=>{GA(JSON.stringify(e.message)),n(e)},KA(`Send message to worker: { target: ${e.target}, method: ${e.method} }`),this._worker.postMessage(VA(VA({},e),{},{preMain:!0}),`data`in e&&e.data?e.data.map(e=>e.data):[])}))}prepare(e){var t=this;return W(function*(){var n;KA(`Preparing the service`);{let n=t.workerPath===`https://wasm-development.regulaforensics.com/document/rc/9.9/barcodemrz/554d99ca-fe3c75d4e`,r=zA(e&&n?Ux(e,`PROD`):t.workerPath),i=yield(yield fetch(`${r}/${Oi}`)).text();n||(i=Hx(i,r));let a=new Blob([i],{type:`text/plain`}),o=URL.createObjectURL(a);t._worker=new Worker(o),URL.revokeObjectURL(o)}(n=t._worker)==null||n.postMessage({method:si.prepare,target:Wi.gl,preMain:!0,op:`setPrefetched`}),yield t.sendMessage({method:si.prepare,target:Wi.init,URL:document.URL}),t.isPrepared=!0,KA(`Service prepared`)})()}initialize(e){var t=this;return W(function*(){return t._initProcess||(t._initProcess=t.doInitialize(e),t._initProcess.catch(()=>{t._initProcess=null})),t._initProcess})()}doInitialize(e){var t=this;return W(function*(){var n,r;t.isPrepared||(yield t.prepare(e==null?void 0:e.module)),KA(`Initializing the service`);let i=yield t.sendMessage({target:Wi.custom,method:si.initialize,request:{systemInfo:{userID:Bs($i),hostName:(n=document.location)==null?void 0:n.origin,license:e==null?void 0:e.license},telemetry:yield Ws({sdkVersion:`9.9.3128-rc`}),processParam:t.recognizerProcessParam.processParam||t.imageProcessParam.processParam}}),a=i.scenario,o=i.license;return t.initData={scenario:a,license:o},t.isInitialized=!0,(r=t._initializeListener)==null||r.call(t,{isInitialized:t.isInitialized}),KA(`Service initialized: ${JSON.stringify({scenario:a,license:o})}`),t.initData})()}doProcess(e,t,n){var r=this;return W(function*(){var i,a;KA(`Process method ${e} started`),r.isProcessing=!0,(i=r._processingListener)==null||i.call(r,{isProcessing:r.isProcessing});let o=yield r.sendMessage({target:Wi.custom,method:e,request:t,data:n});return r.isProcessing=!1,(a=r._processingListener)==null||a.call(r,{isProcessing:r.isProcessing}),KA(`Process method ${e} finished`),new Ax(o)})()}processImageBase64(e,t){var n=this;return W(function*(){return n.doProcess(si.processImage,n.createProcessImageRequest(e,t))})()}process(e,t){var n=this;return W(function*(){var r;let i=n.prepareImageData(e),a=yield n.doProcess(si.process,t||n.recognizerProcessParam,i);return(r=n.recognizeListener)==null||r.call(n,a),a})()}processImage(e,t){var n=this;return W(function*(){let r=n.prepareImageData(e);return n.doProcess(si.processImage,t||n.imageProcessParam,r)})()}startNewPage(){var e=this;return W(function*(){KA(`Starting new page`),yield e.sendMessage({target:Wi.custom,method:si.startNewPage}),typeof e.pageIdx==`number`&&(e.pageIdx+=1)})()}startNewDocument(e,t){var n=this;return W(function*(){return KA(`Starting new document`),n.pageIdx=0,yield n.sendMessage({target:Wi.custom,method:si.startNewDocument,request:VA(VA({},t||n.recognizerProcessParam),{},{metadata:e})})})()}createBackendTransaction(e,t){var n=this;return W(function*(){return KA(`Create backend transaction`),n.pageIdx=0,yield n.sendMessage({target:Wi.custom,method:si.createBackendTransaction,request:VA(VA({},t||n.recognizerProcessParam),{},{metadata:e})})})()}finalizePackage(){var e=this;return W(function*(){try{var t;KA(`Finalize package`);let n=yield e.sendMessage({target:Wi.custom,method:si.finalizePackage});return(t=e.onFinalize)==null||t.call(e,n),n}catch(t){var n;return(n=e.onFinalize)==null||n.call(e,{tag:``,transactionId:``}),Promise.reject(t)}})()}addDataToPackage(e,t){var n=this;return W(function*(){KA(`Add data to package`),yield n.sendMessage({target:Wi.custom,method:si.addDataToPackage,request:t,data:[{data:e.buffer}]}),KA(`Data added to package`)})()}shutdown(){KA(`Shutdown service`),this._worker&&(this._worker.terminate(),KA(`Worker terminated`)),this.isPrepared=!1,this.isInitialized=!1,this.isProcessing=!1,this.pageIdx=null,this._initProcess=null}};function JA(e,t,n){return(t=YA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YA(e){var t=XA(e,`string`);return typeof t==`symbol`?t:t+``}function XA(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ZA=class{constructor(e){JA(this,`_streamData`,null),JA(this,`_documentReaderService`,new qA),JA(this,`_canvas`,document.createElement(`canvas`)),JA(this,`_cameraInfo`,null),JA(this,`_sortedDevices`,null),JA(this,`_devices`,null),JA(this,`_videoEventListener`,null),JA(this,`_frameListener`,null),JA(this,`_pageIdx`,0),JA(this,`_streamParam`,{cameraMode:Vi.environment,preferredCameraId:``,resolution:Xi.HD}),JA(this,`isProcessing`,!1),JA(this,`isInitialized`,!1),JA(this,`videoElement`,null),this.videoElement=e||null,this._documentReaderService.recognizerProcessParam=Fi,this._documentReaderService.imageProcessParam=Ii}get recognizeListener(){return this._documentReaderService.recognizeListener}set recognizeListener(e){this._documentReaderService.recognizeListener=e}get streamParam(){return this._streamParam}set streamParam(e){this._streamParam=Ls(this._streamParam,e)}get recognizerProcessParam(){return this._documentReaderService.recognizerProcessParam}set recognizerProcessParam(e){this._documentReaderService.recognizerProcessParam=Ls(this._documentReaderService.recognizerProcessParam,e)}get imageProcessParam(){return this._documentReaderService.imageProcessParam}set imageProcessParam(e){this._documentReaderService.imageProcessParam=Ls(this._documentReaderService.imageProcessParam,e)}get workerPath(){return this._documentReaderService.workerPath}set workerPath(e){this._documentReaderService.workerPath=e}startStream(){var e=this;return new Promise((t,n)=>{(function(){var r=W(function*(){try{e._devices||(e._devices=yield Ds()),e._sortedDevices||(e._sortedDevices=yield As(e._devices),e._devices.isCameraAllowed=!0),e._cameraInfo=Ms(e._streamParam.cameraMode,e._sortedDevices,e._streamParam.preferredCameraId),e._streamData=yield new Promise((t,n)=>{(function(){var r=W(function*(){yield Rs(_s.isFirefox?500:0);try{if(!e._cameraInfo)return;t(yield Ps({width:e._streamParam.resolution.width||Xi.HD.width,height:e._streamParam.resolution.height||Xi.HD.height},e._cameraInfo,e._streamParam.preferredCameraId))}catch(e){n(e)}});return function(){return r.apply(this,arguments)}})()()}),e._cameraInfo=e._streamData.camera,e._streamData.stream&&e.videoElement?(e.videoElement.srcObject=e._streamData.stream,e._videoEventListener=()=>{e.videoElement&&(e._canvas.width=e.videoElement.videoWidth,e._canvas.height=e.videoElement.videoHeight,t())},e.videoElement.addEventListener(`loadeddata`,e._videoEventListener)):n(new Uu(Qi[e._streamData.status]||ei.CAMERA_UNKNOWN_ERROR))}catch(e){if(e instanceof Error&&e.name===`NotAllowedError`)return n(new Uu(ei.CAMERA_PERMISSION_DENIED,e));n(new Uu(ei.CAMERA_UNKNOWN_ERROR,e))}});return function(){return r.apply(this,arguments)}})()()})}stopStream(){var e;this._videoEventListener&&this.videoElement&&(this.videoElement.removeEventListener(`play`,this._videoEventListener),this._videoEventListener=null),(e=this._streamData)!=null&&e.stream&&(Ns(this._streamData.stream),this._streamData=null)}startRecognizeProcess(){var e=this;return W(function*(){for(e.isProcessing=!0;e.isProcessing;){if(!e.videoElement)return;let t=Wx(e.videoElement,Ri.UINT).imageData,n=yield e._documentReaderService.process(t);e._frameListener?e._frameListener(n):e.stopRecognizeProcess()}})()}stopRecognizeProcess(){this.isProcessing=!1}startNewPage(){var e=this;return W(function*(){e._pageIdx++,yield e._documentReaderService.startNewPage()})()}startNewDocument(){var e=this;return W(function*(){yield e._documentReaderService.startNewDocument()})()}switchCamera(){var e=this;return W(function*(){e._cameraInfo&&(e.stopRecognizeProcess(),e.stopStream(),e._sortedDevices&&(e._streamParam.preferredCameraId=Is(e._sortedDevices,e._cameraInfo.deviceId),yield e.startStream(),yield e.startRecognizeProcess()))})()}startRecognition(e){var t=this;return W(function*(){return yield t.startNewDocument(),t._streamData||(yield t.startStream()),new Promise(n=>{t._frameListener=r=>{let i=Vx(r.rawResponse,t._pageIdx,t._documentReaderService.recognizerProcessParam.processParam.multipageProcessing),a=()=>{t.stopRecognition(),n(r)},o=function(){var e=W(function*(){yield t.startNewPage(),yield t.startRecognizeProcess()});return function(){return e.apply(this,arguments)}}();if(i===G.START_NEXT_PAGE&&e)return t.stopRecognizeProcess(),e({data:r,startNextPage:o,finishRecognition:a});if(Ai[i])return a();if(!t.isProcessing&&!t._devices&&!t._cameraInfo)return n(null)},t.startRecognizeProcess()})})()}processImage(e){var t=this;return W(function*(){let n=yield Rx(e);if(n.reduce((e,t)=>e+t.width*t.height,0)>25e6)return Promise.reject(new Uu(ei.FILE_SIZE));{let e=n.map(e=>e.data);return yield t._documentReaderService.processImage(e)}})()}stopRecognition(){this._pageIdx=0,this._cameraInfo=null,this._devices=null,this._sortedDevices=null,this.stopRecognizeProcess(),this.stopStream()}initialize(e){var t=this;return W(function*(){let n=yield t._documentReaderService.initialize({license:e==null?void 0:e.license});return t.isInitialized=t._documentReaderService.isInitialized,n})()}shutdown(){this.isProcessing=!1,this.isInitialized=!1,this._documentReaderService.shutdown()}};function QA(){return $A.apply(this,arguments)}function $A(){return $A=W(function*(){let e=window.customElements.get(`document-reader`),t=window.customElements.get(`camera-snapshot`),n=window.customElements.get(`fullscreen-container`);e||window.customElements.define(`document-reader`,QD),t||window.customElements.define(`camera-snapshot`,PO),n||window.customElements.define(`fullscreen-container`,RO);let r=window.customElements.whenDefined(`document-reader`),i=window.customElements.whenDefined(`camera-snapshot`),a=window.customElements.whenDefined(`fullscreen-container`);yield Promise.all([r,i,a])}),$A.apply(this,arguments)}return e.Authenticity=Lg,e.AuthenticityResultType=Dh,e.BarCodeModuleType=Oh,e.BarcodeType=kh,e.CameraFacingMode=Vi,e.CaptureMode=ni,e.CheckDiagnose=Ah,e.CheckResult=jh,e.Configuration=Mx,e.Critical=Mh,e.DocumentFormat=Nh,e.DocumentReaderApi=Px,e.DocumentReaderCaptureWebComponent=PO,e.DocumentReaderProcessor=ZA,e.DocumentReaderService=qA,e.DocumentReaderWebComponent=QD,e.DocumentType=Ph,e.DocumentTypeRecognitionResult=Fh,e.ErrorTypes=ei,e.EventActions=ti,e.FiberChecks=Mg,e.FrameLineCap=li,e.FrameShapeType=ci,e.FullScreenContainer=RO,e.GraphicFieldType=Ih,e.IdentChecks=Ng,e.ImageQualityCheckType=Lh,e.ImageQualityChecks=di,e.ImagesExt=kg,e.ImagesFieldWrapper=Ag,e.InputBarcodeType=Rh,e.InputImageQualityChecks=zh,e.InternalScenarios=oi,e.LCID=Bh,e.Light=Vh,e.LogLevel=Hh,e.Logger=ec,e.LowLvlResponse=jx,e.MDLDeviceEngagement=Uh,e.MDLDeviceRetrieval=Wh,e.MDLServerRetrieval=Gh,e.MRZFormat=Kh,e.MeasureSystem=qh,e.MirrorType=Ki,e.ModuleType=gi,e.MrzDetectModeEnum=Jh,e.OCRSecurityTextChecks=Fg,e.ParsingErrorCodes=Yh,e.ParsingNotificationCodes=Xh,e.ProcessResult=Ax,e.Response=Ax,e.ProcessingStatus=Zh,e.RFIDErrorCodes=Qh,e.RFIDPKDResourceType=$h,e.ResponseCode=zi,e.Result=eg,e.RfidAChip=tg,e.RfidAccessControl=ng,e.RfidAccessControlProcedureType=rg,e.RfidApplicationType=ig,e.RfidAuthenticationProcedureType=ag,e.RfidBaudRate=og,e.RfidCertificateOrigin=sg,e.RfidCertificateType=cg,e.RfidDataFileType=lg,e.RfidLocation=ug,e.RfidPasswordType=dg,e.RfidTerminalType=fg,e.RfidType=pg,e.Scenario=mg,e.SecurityFeatureChecks=Ig,e.SecurityFeatureType=hg,e.Source=gg,e.TextExt=Cg,e.TextFieldExt=Sg,e.TextFieldType=_g,e.TextPostProcessing=vg,e.TransactionStateStatus=fi,e.VerificationResult=yg,e.Visibility=bg,e.defineComponents=QA,e.instanceOfProcessRequest=Nx,e.requestToBaseRequest=Fx,e})({});
package/dist/main.js CHANGED
@@ -13642,7 +13642,7 @@ function jS(e) {
13642
13642
  let t = yield Us({
13643
13643
  cameras: [...n.sortedDevices.frontCameras, ...n.sortedDevices.backCameras],
13644
13644
  cameraID: n.camera.deviceId,
13645
- sdkVersion: "9.9.3126-rc",
13645
+ sdkVersion: "9.9.3128-rc",
13646
13646
  serviceUrl: ((e = s.recognizerProcessParam.processParam.backendProcessing) == null ? void 0 : e.serviceURL) || ""
13647
13647
  });
13648
13648
  AS(`Metadata: ${JSON.stringify(t)}`);
@@ -14371,7 +14371,7 @@ function hC(e) {
14371
14371
  try {
14372
14372
  var n;
14373
14373
  if ((n = a.imageProcessParam.processParam) != null && n.backendProcessing) {
14374
- let e = yield Us({ sdkVersion: "9.9.3126-rc" });
14374
+ let e = yield Us({ sdkVersion: "9.9.3128-rc" });
14375
14375
  yield a.createBackendTransaction(e, a.imageProcessParam);
14376
14376
  }
14377
14377
  let e = yield a.processImage(t, o);
@@ -21544,7 +21544,7 @@ function UA(e, t) {
21544
21544
  }
21545
21545
  var WA = $s.create("wasm"), GA = $s.create("main"), KA = class {
21546
21546
  constructor() {
21547
- VA(this, "_worker", null), VA(this, "_initializeListener", null), VA(this, "_processingListener", null), VA(this, "_queueService", new yA()), VA(this, "_initProcess", null), VA(this, "version", { component: "9.9.3126-rc" }), VA(this, "onFinalize", null), VA(this, "isPrepared", !1), VA(this, "isInitialized", !1), VA(this, "isProcessing", !1), VA(this, "initData", null), VA(this, "recognizerProcessParam", { processParam: {} }), VA(this, "imageProcessParam", { processParam: {} }), VA(this, "recognizeListener", null), VA(this, "workerPath", "https://wasm-development.regulaforensics.com/document/rc/9.9/barcodemrz/554d99ca-fe3c75d4e"), VA(this, "pageIdx", null);
21547
+ VA(this, "_worker", null), VA(this, "_initializeListener", null), VA(this, "_processingListener", null), VA(this, "_queueService", new yA()), VA(this, "_initProcess", null), VA(this, "version", { component: "9.9.3128-rc" }), VA(this, "onFinalize", null), VA(this, "isPrepared", !1), VA(this, "isInitialized", !1), VA(this, "isProcessing", !1), VA(this, "initData", null), VA(this, "recognizerProcessParam", { processParam: {} }), VA(this, "imageProcessParam", { processParam: {} }), VA(this, "recognizeListener", null), VA(this, "workerPath", "https://wasm-development.regulaforensics.com/document/rc/9.9/barcodemrz/554d99ca-fe3c75d4e"), VA(this, "pageIdx", null);
21548
21548
  }
21549
21549
  get processingListener() {
21550
21550
  return this._processingListener;
@@ -21636,7 +21636,7 @@ var WA = $s.create("wasm"), GA = $s.create("main"), KA = class {
21636
21636
  hostName: (n = document.location) == null ? void 0 : n.origin,
21637
21637
  license: e == null ? void 0 : e.license
21638
21638
  },
21639
- telemetry: yield Us({ sdkVersion: "9.9.3126-rc" }),
21639
+ telemetry: yield Us({ sdkVersion: "9.9.3128-rc" }),
21640
21640
  processParam: t.recognizerProcessParam.processParam || t.imageProcessParam.processParam
21641
21641
  }
21642
21642
  }), a = i.scenario, o = i.license;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/vp-frontend-document-components",
3
- "version": "9.9.3126-rc",
3
+ "version": "9.9.3128-rc",
4
4
  "description": "Regula framework agnostic web components to work with webcamera",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/main.js",
@@ -22,7 +22,7 @@
22
22
  "build": "vite build"
23
23
  },
24
24
  "dependencies": {
25
- "@regulaforensics/document-reader-webclient": "^9.9.1116-rc",
25
+ "@regulaforensics/document-reader-webclient": "^9.9.1118-rc",
26
26
  "qrcode.react": "^4.2.0"
27
27
  }
28
28
  }