@azure/ai-vision-face-ui 1.4.6 → 1.4.7
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/FaceLivenessDetector.js +1 -1
- package/package.json +2 -2
package/FaceLivenessDetector.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var n={22:(n,t,e)=>{n=e.nmd(n);var r=c;!function(n){for(var t=c,e=n();;)try{if(132856==-parseInt(t(221))/1*(-parseInt(t(219))/2)+parseInt(t(223))/3+-parseInt(t(228))/4+-parseInt(t(231))/5*(parseInt(t(226))/6)+-parseInt(t(207))/7*(-parseInt(t(218))/8)+parseInt(t(216))/9+-parseInt(t(222))/10*(parseInt(t(215))/11))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(u);var s=[];function a(n){for(var t=c,e=-1,r=0;r<s[t(209)];r++)if(s[r][t(213)]===n){e=r;break}return e}function i(n,t){for(var e=c,r={},i=[],u=0;u<n[e(209)];u++){var d=n[u],l=t[e(220)]?d[0]+t.base:d[0],p=r[l]||0,h=""[e(212)](l," ")[e(212)](p);r[l]=p+1;var f=a(h),I={css:d[1],media:d[2],sourceMap:d[3],supports:d[4],layer:d[5]};if(-1!==f)s[f][e(227)]++,s[f].updater(I);else{var m=o(I,t);t[e(217)]=u,s.splice(u,0,{identifier:h,updater:m,references:1})}i.push(h)}return i}function o(n,t){var e=c,r=t[e(210)](t);return r[e(229)](n),function(t){var s=e;if(t){if(t[s(232)]===n[s(232)]&&t.media===n[s(230)]&&t[s(211)]===n[s(211)]&&t[s(205)]===n[s(205)]&&t[s(208)]===n[s(208)])return;r[s(229)](n=t)}else r[s(206)]()}}function c(n,t){var e=u();return(c=function(n,t){return e[n-=205]})(n,t)}function u(){var n=["layer","length","domAPI","sourceMap","concat","identifier","splice","89815mBhvSr","1515573cAShfk","byIndex","538152BpXNcG","451384FyBYxY","base","1SVuCrE","170lqbyPn","421812fpSgHn","updater","exports","46674ensaPr","references","894760fcrCDh","update","media","155LmBOcC","css","supports","remove","21ZoKLTm"];return(u=function(){return n})()}n[r(225)]=function(n,t){var e=i(n=n||[],t=t||{});return function(n){var r=c;n=n||[];for(var o=0;o<e.length;o++){var u=a(e[o]);s[u][r(227)]--}for(var d=i(n,t),l=0;l<e.length;l++){var p=a(e[l]);0===s[p][r(227)]&&(s[p][r(224)](),s[r(214)](p,1))}e=d}}},64:n=>{function t(n,r){var s=e();return(t=function(n,t){return s[n-=398]})(n,r)}function e(){var n=[") {","length","@supports (","4072649bmIfMI","1448QfLSEc","push","5350110qcEeWy","2335SREeyy","1137104lMmEUd","5joXwFU","4057365UHrUNk","@media ","906CRmGjm","undefined","@layer","concat","15172630UAHzQa","21789CkRmaT","toString","map"];return(e=function(){return n})()}!function(n){for(var e=t,r=n();;)try{if(779608==parseInt(e(406))/1*(-parseInt(e(411))/2)+parseInt(e(409))/3+-parseInt(e(407))/4*(parseInt(e(408))/5)+-parseInt(e(405))/6+parseInt(e(402))/7+parseInt(e(403))/8*(-parseInt(e(416))/9)+parseInt(e(415))/10)break;r.push(r.shift())}catch(n){r.push(r.shift())}}(e),n.exports=function(n){var e=t,r=[];return r[e(417)]=function(){var t=e;return this[t(398)](function(e){var r=t,s="",a=typeof e[5]!==r(412);return e[4]&&(s+="@supports ("[r(414)](e[4],r(399))),e[2]&&(s+=r(410).concat(e[2]," {")),a&&(s+="@layer"[r(414)](e[5][r(400)]>0?" "[r(414)](e[5]):""," {")),s+=n(e),a&&(s+="}"),e[2]&&(s+="}"),e[4]&&(s+="}"),s}).join("")},r.i=function(n,t,s,a,i){var o=e;"string"==typeof n&&(n=[[null,n,void 0]]);var c={};if(s)for(var u=0;u<this.length;u++){var d=this[u][0];null!=d&&(c[d]=!0)}for(var l=0;l<n[o(400)];l++){var p=[][o(414)](n[l]);s&&c[p[0]]||(typeof i!==o(412)&&(typeof p[5]===o(412)||(p[1]=o(413)[o(414)](p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=i),t&&(p[2]?(p[1]=o(410)[o(414)](p[2]," {")[o(414)](p[1],"}"),p[2]=t):p[2]=t),a&&(p[4]?(p[1]=o(401)[o(414)](p[4],o(399))[o(414)](p[1],"}"),p[4]=a):p[4]="".concat(a)),r[o(404)](p))}},r}},137:(n,t,e)=>{e.d(t,{A:()=>o});var r=e(431),s=e.n(r),a=e(64),i=e.n(a)()(s());i.push([n.id,"/* Loading container styles */\n#face-liveness-loading {\n display: flex;\n flex-direction: column;\n gap: 10px;\n /*justify-content: space-around;*/\n align-items: center;\n margin: auto;\n position: absolute;\n top: 10svh;\n height: 80svh;\n bottom: 10svh;\n left: 10vw;\n right: 10vw;\n font-size: 2rem;\n z-index: 2147483647;\n background-color: white;\n}\n\n/* Loading text styles */\n.loading-text {\n display: flex;\n position: relative;\n left: 0;\n top: 0;\n width: 100%;\n text-align: center;\n justify-content: center;\n z-index: 2147483646;\n margin-top: 40px;\n font-size: 1.5rem;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n}\n\n/* Dots container styles */\n.dots-container {\n display: flex;\n gap: 5px;\n margin-bottom: 30px;\n}\n\n/* Dot styles */\n.loading-dot {\n width: 12px;\n height: 12px;\n background: #0078d4;\n border-radius: 50%;\n animation: loading-bounce 1.4s ease-in-out infinite both;\n}\n\n.loading-dot:nth-child(1) {\n animation-delay: 0s;\n}\n\n.loading-dot:nth-child(2) {\n animation-delay: 0.16s;\n}\n\n.loading-dot:nth-child(3) {\n animation-delay: 0.32s;\n}\n\n/* Cancel button styles */\n.cancel-button {\n background-color: #0078d7;\n color: white;\n border: none;\n padding: 2vmin 3vmin;\n margin-top: 20px;\n font-size: 1rem;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n border-radius: 5px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\n.cancel-button:hover {\n background-color: #005a9e;\n}\n\n/* Loading animation keyframes */\n@keyframes loading-bounce {\n 0%, 80%, 100% {\n transform: scale(0);\n opacity: 0.5;\n }\n 40% {\n transform: scale(1);\n opacity: 1;\n }\n}",""]);const o=i},271:n=>{function t(n,r){var s=e();return(t=function(n,t){return s[n-=465]})(n,r)}function e(){var n=["295182LwkLyi","media","length","stringify","7gxUCWV","sourceMap","concat","422363PHtTrz","711qtGrsa","layer","996exFhxJ","5521480ytrmxU","styleTagTransform","parentNode","removeChild","3442028JgKEUV",") {","supports","8mgxASp","@media ","3HSolsP","undefined","19160qIXcci","51983620jEMttX"," */","\n/*# sourceMappingURL=data:application/json;base64,","78045SwdKSk","45maoHAC","@supports (","css"];return(e=function(){return n})()}!function(n){for(var e=t,r=n();;)try{if(955944==parseInt(e(470))/1*(-parseInt(e(481))/2)+-parseInt(e(483))/3*(parseInt(e(478))/4)+-parseInt(e(490))/5*(parseInt(e(493))/6)+-parseInt(e(467))/7*(-parseInt(e(474))/8)+parseInt(e(471))/9*(-parseInt(e(485))/10)+parseInt(e(489))/11*(-parseInt(e(473))/12)+parseInt(e(486))/13)break;r.push(r.shift())}catch(n){r.push(r.shift())}}(e),n.exports=function(n){if(typeof document===t(484))return{update:function(){},remove:function(){}};var e=n.insertStyleElement(n);return{update:function(r){!function(n,e,r){var s=t,a="";r[s(480)]&&(a+=s(491).concat(r[s(480)],s(479))),r[s(494)]&&(a+=s(482)[s(469)](r.media," {"));var i=void 0!==r[s(472)];i&&(a+="@layer"[s(469)](r[s(472)][s(465)]>0?" "[s(469)](r[s(472)]):""," {")),a+=r[s(492)],i&&(a+="}"),r[s(494)]&&(a+="}"),r[s(480)]&&(a+="}");var o=r[s(468)];o&&typeof btoa!==s(484)&&(a+=s(488)[s(469)](btoa(unescape(encodeURIComponent(JSON[s(466)](o)))),s(487))),e[s(475)](a,n,e.options)}(e,n,r)},remove:function(){!function(n){var e=t;if(null===n[e(476)])return!1;n[e(476)][e(477)](n)}(e)}}}},365:(n,t,e)=>{n=e.nmd(n);var r=a;!function(n){for(var t=a,e=n();;)try{if(658373==parseInt(t(210))/1+parseInt(t(209))/2+-parseInt(t(211))/3*(parseInt(t(208))/4)+-parseInt(t(206))/5*(-parseInt(t(197))/6)+parseInt(t(199))/7*(-parseInt(t(195))/8)+parseInt(t(198))/9*(parseInt(t(196))/10)+parseInt(t(200))/11*(-parseInt(t(204))/12))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(i);var s={};function a(n,t){var e=i();return(a=function(n,t){return e[n-=195]})(n,t)}function i(){var n=["head","184sBYhji","10AVsvpy","220638TWKflI","1817271xJrnjd","127295eLjZlw","337161XhkWWK","querySelector","exports","contentDocument","204uRAsvz","HTMLIFrameElement","135MNkFgc","appendChild","4008020qaNgTh","1916938rPrdZO","446441SifCFP","3crAtjv"];return(i=function(){return n})()}n[r(202)]=function(n,t){var e=a,r=function(n){var t=a;if(void 0===s[n]){var e=document[t(201)](n);if(window[t(205)]&&e instanceof window[t(205)])try{e=e[t(203)][t(212)]}catch(n){e=null}s[n]=e}return s[n]}(n);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r[e(207)](t)}},431:(n,t,e)=>{function r(){var n=["93776hwGzev","208zZxBeM","10172503TXheDJ","305028NDVFyn","90UsFSgs","4752020eydTsi","3215082HGzCPj","2718325jaBUuX","exports","394vLCeay","10DCqNrL","4301ZMTQVN"];return(r=function(){return n})()}n=e.nmd(n);var s=a;function a(n,t){var e=r();return(a=function(n,t){return e[n-=311]})(n,t)}!function(n){for(var t=a,e=n();;)try{if(501048==-parseInt(t(315))/1*(-parseInt(t(313))/2)+-parseInt(t(320))/3*(parseInt(t(316))/4)+parseInt(t(311))/5+parseInt(t(322))/6+-parseInt(t(321))/7+-parseInt(t(317))/8*(-parseInt(t(319))/9)+-parseInt(t(314))/10*(parseInt(t(318))/11))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(r),n[s(312)]=function(n){return n[1]}},439:(n,t,e)=>{function r(){var n=["styleSheet","8dgzQmd","appendChild","createTextNode","6215839IRlAcb","244026bVZMZj","8669898ihUokq","removeChild","1526547bIYpAW","78RRzyKX","17832030iuMkCG","10grkFFg","4589880hJqmMJ","463955dVudGT","exports","firstChild"];return(r=function(){return n})()}n=e.nmd(n);var s=a;function a(n,t){var e=r();return(a=function(n,t){return e[n-=274]})(n,t)}!function(n){for(var t=a,e=n();;)try{if(692870==parseInt(t(281))/1*(-parseInt(t(287))/2)+-parseInt(t(284))/3+parseInt(t(288))/4+-parseInt(t(289))/5*(-parseInt(t(285))/6)+parseInt(t(280))/7*(parseInt(t(277))/8)+parseInt(t(282))/9+-parseInt(t(286))/10)break;e.push(e.shift())}catch(n){e.push(e.shift())}}(r),n[s(274)]=function(n,t){var e=a;if(t[e(276)])t[e(276)].cssText=n;else{for(;t[e(275)];)t[e(283)](t[e(275)]);t[e(278)](document[e(279)](n))}}},614:(n,t,e)=>{n=e.nmd(n);var r=s;function s(n,t){var e=a();return(s=function(n,t){return e[n-=468]})(n,t)}function a(){var n=["1514zhBpCi","undefined","5291208PzrqdR","10HUFxnJ","exports","setAttribute","173789Okiokw","4938664HIBysw","85805jmiqwX","nonce","150eBgwxD","74520vsauvf","5270177DRJHHr","92NUcKBo","1653BBTUca"];return(a=function(){return n})()}!function(n){for(var t=s,e=n();;)try{if(333071==parseInt(t(468))/1+-parseInt(t(472))/2*(parseInt(t(471))/3)+-parseInt(t(470))/4*(parseInt(t(480))/5)+parseInt(t(482))/6*(parseInt(t(478))/7)+-parseInt(t(479))/8+parseInt(t(474))/9+-parseInt(t(475))/10*(-parseInt(t(469))/11))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(a),n[r(476)]=function(n){var t=s,r=typeof e.nc!==t(473)?e.nc:null;r&&n[t(477)](t(481),r)}},866:(n,t,e)=>{n=e.nmd(n);var r=s;function s(n,t){var e=a();return(s=function(n,t){return e[n-=319]})(n,t)}function a(){var n=["721393OiVddw","34470pPrQWz","770590wqnnib","8kORZMz","1085xlnzBW","3343449edEscq","setAttributes","2675500jIJuOq","9384rZgjNM","8091DblLJb","options","278927umlnxo","createElement","style","insert","exports","320LTHWAk"];return(a=function(){return n})()}!function(n){for(var t=s,e=n();;)try{if(595095==-parseInt(t(331))/1+parseInt(t(333))/2+-parseInt(t(319))/3+-parseInt(t(334))/4*(-parseInt(t(321))/5)+-parseInt(t(332))/6*(parseInt(t(335))/7)+parseInt(t(322))/8*(parseInt(t(323))/9)+-parseInt(t(330))/10*(-parseInt(t(325))/11))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(a),n[r(329)]=function(n){var t=s,e=document[t(326)](t(327));return n[t(320)](e,n.attributes),n[t(328)](e,n[t(324)]),e}}},t={};function e(r){var s=t[r];if(void 0!==s)return s.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return n[r](a,a.exports,e),a.loaded=!0,a.exports}e.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return e.d(t,{a:t}),t},e.d=(n,t)=>{for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},e.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),e.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),e.p="./",e.nc=void 0;const r=e.p+"facelivenessdetector-assets/images/Smile.svg",s=e.p+"facelivenessdetector-assets/images/Brightness.svg",a=e.p+"facelivenessdetector-assets/images/FaceId.svg",i=e.p+"facelivenessdetector-assets/images/activeMotionVisualHint.png",o=e.p+"facelivenessdetector-assets/images/logo.svg";function c(n,t){const e=d();return(c=function(n,t){return e[n-=436]})(n,t)}const u=c;function d(){const n=["516KtpKtb","120ZPJtrO","1533330QVsFbK","5392852CKjifZ","5530ySXbMC","342993MjjFaV","102pDHnxk","1624509iIdPzb","62711fyoqWo","arc","478865NjyXQm","4767VvoCXu"];return(d=function(){return n})()}!function(){const n=c,t=d();for(;;)try{if(826231==parseInt(n(446))/1+parseInt(n(439))/2*(-parseInt(n(438))/3)+-parseInt(n(442))/4+parseInt(n(437))/5*(-parseInt(n(445))/6)+parseInt(n(444))/7*(-parseInt(n(440))/8)+parseInt(n(441))/9+-parseInt(n(443))/10*(-parseInt(n(447))/11))break;t.push(t.shift())}catch(n){t.push(t.shift())}}();const l=["ar",u(436),"dv","fa","ha","he","khw","ks","ku","ps","ur","yi"];var p=e(22),h=e.n(p),f=e(271),I=e.n(f),m=e(365),v=e.n(m),g=e(614),y=e.n(g),b=e(866),k=e.n(b),x=e(439),w=e.n(x),A=e(137),M={};M.styleTagTransform=w(),M.setAttributes=y(),M.insert=v().bind(null,"head"),M.domAPI=I(),M.insertStyleElement=k(),h()(A.A,M),A.A&&A.A.locals&&A.A.locals;const S=C;function _(){const n=[" strings file: ","buttonStyles","getAttemptEndPath","locale","loading-text","10967PQOOOJ","disconnectedCallback","isHTMLInit","find","_showBranding",".wasm","brandingText","skipInstructions","substring","AZAIF_FeedbackTakingLong","FaceRecoEngineAdapter","_baseAssetsURL","text","53PdXlLa","Failed to send module abort error:","fontFamily","cancelButton","loadingContainer","div","head","Module loading aborted:","checkModuleDefined","connectedCallback","attempt/end","267zbsxGQ","className","bind","parse","4057780agVIFz","remove","30pLpcuK","brightnessSVGPath","Unknown Module abort error","Bearer ","onclick","5509251dBPWpa","logo","body","face-liveness-loading","_AzureAIVisionFace_ModuleErrorSent","showBranding","statusText","append","_brandingText","11600kEDmrM","fontSize","POST","allowed-paths","replace","_handleModuleAbortedStart","createElement","_locale","length","button","hideLoadingAnimation","1340283dJInNN","cancelLoadingButtonTimeout","validate","_continueButtonStyles","_userCorrelationId","_fontFamily","invalid token","4364320GhJZZB","cleanup","/en.json","AzureAIVisionFace","mediaInfoDeviceId","User reuse a cancelled or failed module, causing new failure: ","1322IpWRjK","_moduleAbortedError","start","Module error not available before cancellation","_brightnessImagePath","AZAIF_CancelPrompt","faceId","_brandingImage","_originalStart","isRtl","userCorrelationId","Error parsing JWT token:","Unexpected","stringify","cancel-button","src","_mediaInfoDeviceId","smilePath","_feedbackMessageStyles","_skipInstructions","_cancelModuleLoading","cancelLoading","73208DiSqtq","None","activeMotionVisualHint","_fontSize","sendErrorToServer","isDefined","error","textContent","appendChild","_moduleAborted","face","_deviceCorrelationId","includes","loadLanguageDictionary","AzureAIVisionFace_SIMD.js","authToken","deviceCorrelationId","showLoadingAnimation","AzureAIVisionFace.js","_languageDictionary","path","undefined","UserCancelledLoading","dots-container","hasOwnProperty","./facelivenessdetector-assets/i18n/","en-US","endpoint","loading-dot","script"];return(_=function(){return n})()}function C(n,t){const e=_();return(C=function(n,t){return e[n-=213]})(n,t)}!function(){const n=C,t=_();for(;;)try{if(866143==-parseInt(n(252))/1*(-parseInt(n(307))/2)+-parseInt(n(263))/3*(parseInt(n(329))/4)+-parseInt(n(267))/5+parseInt(n(269))/6*(parseInt(n(294))/7)+parseInt(n(301))/8+parseInt(n(274))/9+-parseInt(n(283))/10*(-parseInt(n(239))/11))break;t.push(t.shift())}catch(n){t.push(t.shift())}}();var E=S(218);try{0==WebAssembly[S(296)](new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))&&(E=S(222))}catch(n){E=S(222)}class T extends HTMLElement{constructor(){const n=S;super(),this[n(324)]=r,this[n(309)]=this[n(309)][n(265)](this),this[n(311)]="",this._continueButtonStyles="",this[n(325)]="",this[n(332)]="",this[n(299)]="",this[n(223)]={},this[n(316)]=!1,this[n(290)]=n(230),this[n(250)]="./",this[n(323)]="",this._skipInstructions=!0,this._deviceCorrelationId="",this[n(298)]="",this[n(334)]=!1,this[n(241)]=!1,this[n(219)]="",this[n(313)]=a,this[n(331)]=i,this[n(270)]=s,this[n(314)]="",this._brandingText="",this[n(243)]=!1,this[n(275)]=o,this[n(213)]=!1,this._moduleAbortedError="",this[n(315)]=null,this[n(327)]=!1}set brightnessImagePath(n){this[S(311)]=n}set[S(284)](n){this[S(332)]=n}set[S(254)](n){this[S(299)]=n}set[S(235)](n){this[S(297)]=n}set feedbackMessageStyles(n){this[S(325)]=n}set[S(237)](n){const t=S;this[t(290)]=n,l[t(216)](n)&&(this[t(316)]=!0)}set languageDictionary(n){this._languageDictionary=n||this._languageDictionary}set[S(305)](n){this[S(323)]=n}set[S(246)](n){this[S(326)]=n}set[S(220)](n){this[S(215)]=n}set[S(317)](n){this[S(298)]=n}set[S(279)](n){this[S(243)]=Boolean(n)}set brandingImage(n){this[S(314)]=n}set[S(245)](n){const t=S;n&&n.length>30&&(n=n[t(247)](0,30)),this[t(282)]=n}[S(236)](n){const t=S;try{const e=n.split(".");if(3===e[t(291)]){const n=JSON[t(266)](atob(e[1]));if(n[t(228)](t(214))){const e=JSON[t(266)](n[t(214)]);if(e&&e[t(231)]&&n[t(228)](t(286))){const r=JSON[t(266)](n["allowed-paths"])[t(242)](n=>n[t(224)]&&n.path[t(216)](t(262)));return r?e.endpoint+"/"+r[t(224)]:(console.warn(t(300)),null)}}}}catch(n){return console.error(t(318),n),null}return null}async sendErrorToServer(n,t){const e=S;window._AzureAIVisionFace_ModuleErrorSent&&(t=e(306)+t);const r=this[e(236)](n);if(r)try{const s=new FormData;s[e(281)]("metadata",JSON[e(320)]({clientSDKversion:"1.4.6",failureReason:t}));const a=await fetch(r,{method:e(285),headers:{Authorization:e(272)+n},body:s});return window[e(278)]=!0,a}catch(n){throw console[e(335)]("Error sending error:",n),n}else console.warn("No attempt end path found")}[S(288)]=async n=>{const t=S;try{await this[t(333)](n,""+this[t(308)])}catch(n){console[t(335)](t(253),n)}return new Promise((n,e)=>{const r=t;e({livenessError:r(319),recognitionError:r(330)})})};start=async n=>{const t=S;if(this[t(219)]=n,this.isDefined=await this.checkModuleDefined(1,1),await this[t(217)](),!this[t(334)]&&this.showLoadingAnimation(),this[t(334)]=await this.checkModuleDefined(1e3,30),this[t(293)](),!this[t(334)])return!this._moduleAbortedError&&(this[t(308)]="Module not loaded on timeout"),this._cancelModuleLoading?new Promise((n,e)=>{const r=t;e({livenessError:r(226),recognitionError:r(330)})}):this[t(288)](n);if(this[t(327)])return new Promise((n,e)=>{const r=t;e({livenessError:r(226),recognitionError:r(330)})});try{return Module.start(this)}catch{return this[t(288)](n)}};async[S(261)](){const n=S;if(this.isConnected&&(typeof Module===n(225)||typeof Module[n(249)]===n(225))){const t=this[n(250)][n(287)](/\/$/,"")+"/facelivenessdetector-assets/js/";window.Module={locateFile:function(e,r){const s=n;return e[s(216)](s(304))&&e.endsWith(s(244))?t+e:r+e},onAbort:t=>{const e=n;console.error(e(259),t);const r=t||e(271);this[e(213)]=!0,this._moduleAbortedError=r}};const e=document[n(289)](n(233));e[n(322)]=t+E,document[n(258)].appendChild(e)}}[S(240)](){const n=S;typeof Module!==n(225)&&"function"==typeof Module[n(302)]&&Module[n(302)]()}async[S(217)](){const n=S;if(0===Object.keys(this[n(223)])[n(291)]){let t=await fetch(n(229)+this[n(290)]+n(303));if(!t.ok)throw new Error("Failed to load locale: "+this._locale+n(234)+t[n(280)]+".");let e=await t[n(251)]();this._languageDictionary=JSON.parse(e)}}async[S(260)](n,t){const e=S;let r=0;for(;r<t;){if(r++,"undefined"!=typeof Module&&typeof Module[e(249)]!==e(225))return!0;if(this[e(327)])return!this._moduleAbortedError&&(this._moduleAbortedError=e(310)),!1;if(this._moduleAborted)return!1;await new Promise(t=>setTimeout(t,n))}return!1}async[S(221)](){const n=S;this.hideLoadingAnimation();const t=document[n(289)]("div");t.id=n(277);const e=document[n(289)]("div");e[n(264)]=n(238),e[n(336)]=this[n(223)].AZAIF_FeedbackStarting;const r=document[n(289)](n(257));r[n(264)]=n(227);for(let t=0;t<3;t++){const t=document.createElement(n(257));t[n(264)]=n(232),r[n(337)](t)}const s=document[n(289)](n(292));s.className=n(321),s[n(336)]=this[n(223)][n(312)],s[n(273)]=()=>this[n(328)](),t[n(337)](e),t[n(337)](r),this[n(295)]=setTimeout(()=>{const r=n;this.loadingContainer&&(e[r(336)]=this[r(223)][r(248)],t[r(337)](s))},1e4),document[n(276)].appendChild(t),this[n(256)]=t}hideLoadingAnimation(){const n=S;this.loadingContainer&&(this[n(256)][n(268)](),this[n(256)]=null),this[n(295)]&&(clearTimeout(this.cancelLoadingButtonTimeout),this[n(295)]=null),this[n(255)]&&(this[n(255)][n(268)](),this.cancelButton=null)}cancelLoading(){const n=S;this.hideLoadingAnimation(),this[n(327)]=!0,this[n(333)](this[n(219)],n(226))}}function F(n,t){var e=L();return(F=function(n,t){return e[n-=295]})(n,t)}function L(){var n=["36UlxIbT","50MYhGEu","72FFEtBR","218585QCFXnW","define","24156pnQTlx","7682570rfixnF","123908BqVWpU","370SHRXWi","5969MjTVSH","15361797xltDOi","1668952MPBkNv"];return(L=function(){return n})()}var B=F;!function(){for(var n=F,t=L();;)try{if(736089==-parseInt(n(304))/1*(-parseInt(n(303))/2)+parseInt(n(295))/3*(-parseInt(n(302))/4)+-parseInt(n(298))/5*(-parseInt(n(297))/6)+parseInt(n(301))/7+-parseInt(n(306))/8+-parseInt(n(300))/9*(parseInt(n(296))/10)+-parseInt(n(305))/11)break;t.push(t.shift())}catch(n){t.push(t.shift())}}(),customElements[B(299)]("azure-ai-vision-face-ui",T);export var LivenessStatus;
|
|
1
|
+
var n={137(n,t,e){e.d(t,{A:()=>o});var r=e(431),s=e.n(r),a=e(64),i=e.n(a)()(s());i.push([n.id,"/* Loading container styles */\n#face-liveness-loading {\n display: flex;\n flex-direction: column;\n gap: 10px;\n /*justify-content: space-around;*/\n align-items: center;\n margin: auto;\n position: absolute;\n top: 10svh;\n height: 80svh;\n bottom: 10svh;\n left: 10vw;\n right: 10vw;\n font-size: 2rem;\n z-index: 2147483647;\n background-color: white;\n}\n\n/* Loading text styles */\n.loading-text {\n display: flex;\n position: relative;\n left: 0;\n top: 0;\n width: 100%;\n text-align: center;\n justify-content: center;\n z-index: 2147483646;\n margin-top: 40px;\n font-size: 1.5rem;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n}\n\n/* Dots container styles */\n.dots-container {\n display: flex;\n gap: 5px;\n margin-bottom: 30px;\n}\n\n/* Dot styles */\n.loading-dot {\n width: 12px;\n height: 12px;\n background: #0078d4;\n border-radius: 50%;\n animation: loading-bounce 1.4s ease-in-out infinite both;\n}\n\n.loading-dot:nth-child(1) {\n animation-delay: 0s;\n}\n\n.loading-dot:nth-child(2) {\n animation-delay: 0.16s;\n}\n\n.loading-dot:nth-child(3) {\n animation-delay: 0.32s;\n}\n\n/* Cancel button styles */\n.cancel-button {\n background-color: #0078d7;\n color: white;\n border: none;\n padding: 2vmin 3vmin;\n margin-top: 20px;\n font-size: 1rem;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n border-radius: 5px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\n.cancel-button:hover {\n background-color: #005a9e;\n}\n\n/* Loading animation keyframes */\n@keyframes loading-bounce {\n 0%, 80%, 100% {\n transform: scale(0);\n opacity: 0.5;\n }\n 40% {\n transform: scale(1);\n opacity: 1;\n }\n}",""]);const o=i},64(n,t,e){n=e.nmd(n);var r=s;function s(n,t){return n-=230,a()[n]}function a(){var n=["16jSukmB","@media ","960764wYVRro","undefined","map","exports","822830LYhEvV","415768EqmMkz","@supports (","string","join","8376648BvxZOZ","72MmMSnp","@layer","2574596LOAtuF","195944lBXZwc","68532GJhwyC","length",") {","concat"];return(a=function(){return n})()}!function(n){for(var t=s,e=n();;)try{if(776242==parseInt(t(248))/1+-parseInt(t(240))/2+-parseInt(t(242))/3+-parseInt(t(246))/4*(parseInt(t(232))/5)+parseInt(t(237))/6+-parseInt(t(241))/7+-parseInt(t(233))/8*(-parseInt(t(238))/9))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(a),n[r(231)]=function(n){var t=[];return t.toString=function(){var t=s;return this[t(230)](function(e){var r=t,s="",a=typeof e[5]!==r(249);return e[4]&&(s+=r(234)[r(245)](e[4],r(244))),e[2]&&(s+="@media ".concat(e[2]," {")),a&&(s+="@layer"[r(245)](e[5][r(243)]>0?" "[r(245)](e[5]):""," {")),s+=n(e),a&&(s+="}"),e[2]&&(s+="}"),e[4]&&(s+="}"),s})[t(236)]("")},t.i=function(n,e,r,a,i){var o=s;typeof n===o(235)&&(n=[[null,n,void 0]]);var c={};if(r)for(var u=0;u<this.length;u++){var d=this[u][0];null!=d&&(c[d]=!0)}for(var p=0;p<n[o(243)];p++){var l=[].concat(n[p]);r&&c[l[0]]||(typeof i!==o(249)&&(typeof l[5]===o(249)||(l[1]=o(239)[o(245)](l[5][o(243)]>0?" "[o(245)](l[5]):""," {")[o(245)](l[1],"}")),l[5]=i),e&&(l[2]?(l[1]=o(247)[o(245)](l[2]," {")[o(245)](l[1],"}"),l[2]=e):l[2]=e),a&&(l[4]?(l[1]=o(234)[o(245)](l[4],") {")[o(245)](l[1],"}"),l[4]=a):l[4]=""[o(245)](a)),t.push(l))}},t}},431(n,t,e){n=e.nmd(n);var r=a;function s(){var n=["946915ROmvXt","2709NtAlKu","36pMKHOh","2189768CzlIXS","161673XGVugC","1362345WamoCN","6GKsIlD","11139810ZunqIG","exports","19568oxkmAu","2155786YUUSTn"];return(s=function(){return n})()}function a(n,t){return n-=168,s()[n]}!function(n){for(var t=a,e=n();;)try{if(893943==parseInt(t(178))/1+-parseInt(t(172))/2+-parseInt(t(177))/3*(-parseInt(t(175))/4)+parseInt(t(173))/5*(parseInt(t(168))/6)+parseInt(t(176))/7+parseInt(t(171))/8*(parseInt(t(174))/9)+-parseInt(t(169))/10)break;e.push(e.shift())}catch(n){e.push(e.shift())}}(s),n[r(170)]=function(n){return n[1]}},22(n,t,e){n=e.nmd(n);var r=a;function s(){var n=["exports","319315fSdPiX","1771KpHVNG","base","supports","819123xVlapm","length","21SnYqvq","updater","10960OgCzrh","19920GzCsUE","concat","update","1897960VubSEw","81DSBIkq","push","splice","references","426966NVnTCV","domAPI","layer","2SqLCtk","media","css","315kVpUcr","159688pEeUjY","byIndex","identifier","sourceMap"];return(s=function(){return n})()}function a(n,t){return n-=321,s()[n]}!function(n){for(var t=a,e=n();;)try{if(190270==-parseInt(t(341))/1+parseInt(t(332))/2*(parseInt(t(345))/3)+parseInt(t(349))/4*(parseInt(t(335))/5)+-parseInt(t(329))/6*(parseInt(t(347))/7)+parseInt(t(336))/8*(-parseInt(t(325))/9)+parseInt(t(324))/10+-parseInt(t(342))/11*(-parseInt(t(321))/12))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(s);var i=[];function o(n){for(var t=a,e=-1,r=0;r<i.length;r++)if(i[r][t(338)]===n){e=r;break}return e}function c(n,t){for(var e=a,r={},s=[],c=0;c<n[e(346)];c++){var d=n[c],p=t[e(343)]?d[0]+t[e(343)]:d[0],l=r[p]||0,h=""[e(322)](p," ")[e(322)](l);r[p]=l+1;var f=o(h),I={css:d[1],media:d[2],sourceMap:d[3],supports:d[4],layer:d[5]};if(-1!==f)i[f][e(328)]++,i[f].updater(I);else{var m=u(I,t);t[e(337)]=c,i[e(327)](c,0,{identifier:h,updater:m,references:1})}s[e(326)](h)}return s}function u(n,t){var e=a,r=t[e(330)](t);return r[e(323)](n),function(t){var s=e;if(t){if(t[s(334)]===n.css&&t[s(333)]===n[s(333)]&&t.sourceMap===n[s(339)]&&t[s(344)]===n[s(344)]&&t[s(331)]===n[s(331)])return;r[s(323)](n=t)}else r.remove()}}n[r(340)]=function(n,t){var e=c(n=n||[],t=t||{});return function(n){var r=a;n=n||[];for(var s=0;s<e[r(346)];s++){var u=o(e[s]);i[u][r(328)]--}for(var d=c(n,t),p=0;p<e[r(346)];p++){var l=o(e[p]);0===i[l].references&&(i[l][r(348)](),i[r(327)](l,1))}e=d}}},365(n,t,e){function r(){var n=["2044626qhsgyp","exports","668806rSsyzx","4120FKcOtD","HTMLIFrameElement","6667031yOWzVR","10PVahyP","head","contentDocument","9fCPhpr","appendChild","517BOPBXy","374756cEwCyW","1548297tGygRQ","Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.","5319hqGBlI","514110WZPzup","undefined"];return(r=function(){return n})()}n=e.nmd(n);var s=i;!function(n){for(var t=i,e=n();;)try{if(929376==parseInt(t(504))/1+-parseInt(t(511))/2*(parseInt(t(500))/3)+-parseInt(t(503))/4+parseInt(t(515))/5*(-parseInt(t(509))/6)+-parseInt(t(514))/7+parseInt(t(512))/8*(-parseInt(t(506))/9)+parseInt(t(507))/10*(parseInt(t(502))/11))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(r);var a={};function i(n,t){return n-=498,r()[n]}n[s(510)]=function(n,t){var e=i,r=function(n){var t=i;if(typeof a[n]===t(508)){var e=document.querySelector(n);if(window[t(513)]&&e instanceof window[t(513)])try{e=e[t(499)][t(498)]}catch(n){e=null}a[n]=e}return a[n]}(n);if(!r)throw new Error(e(505));r[e(501)](t)}},866(n,t,e){n=e.nmd(n);var r=s;function s(n,t){return n-=147,a()[n]}function a(){var n=["style","options","29132jvDYnT","insert","20xqzkaj","6188130BkywwV","exports","840088BvugYW","7vnjJLb","2ShZkzp","5403310ODsvjX","1613037AecAgC","811575FKpELr","355NusMkh","createElement","49326YHDkLd","setAttributes"];return(a=function(){return n})()}!function(n){for(var t=s,e=n();;)try{if(424079==parseInt(t(147))/1+-parseInt(t(161))/2*(-parseInt(t(163))/3)+parseInt(t(154))/4*(-parseInt(t(148))/5)+-parseInt(t(150))/6+-parseInt(t(160))/7*(parseInt(t(159))/8)+parseInt(t(157))/9+parseInt(t(156))/10*(-parseInt(t(162))/11))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(a),n[r(158)]=function(n){var t=s,e=document[t(149)](t(152));return n[t(151)](e,n.attributes),n[t(155)](e,n[t(153)]),e}},614(n,t,e){n=e.nmd(n);var r=a;function s(){var n=["5424688XSjVBn","1KueGPh","20rMokIZ","nonce","1388628iwujby","3532527uDBHXh","14juBoWg","exports","181851VOrmcV","4321396YTnRfT","setAttribute","18267160ugDhrn","1774854rkMLDY","undefined"];return(s=function(){return n})()}function a(n,t){return n-=382,s()[n]}!function(n){for(var t=a,e=n();;)try{if(750254==parseInt(t(388))/1*(parseInt(t(385))/2)+-parseInt(t(395))/3+-parseInt(t(382))/4+parseInt(t(389))/5*(parseInt(t(391))/6)+-parseInt(t(393))/7*(parseInt(t(387))/8)+-parseInt(t(392))/9+parseInt(t(384))/10)break;e.push(e.shift())}catch(n){e.push(e.shift())}}(s),n[r(394)]=function(n){var t=a,r=typeof e.nc!==t(386)?e.nc:null;r&&n[t(383)](t(390),r)}},271(n,t,e){n=e.nmd(n);var r=a;function s(){var n=["1IlZpOR","media","styleTagTransform","removeChild","319524CVjcOk","3730275DpTGNa","11128KMeMtn","supports"," */","17405uBaQko","length","1193106OBmdiX","784dkEibV",") {","\n/*# sourceMappingURL=data:application/json;base64,","layer","11831650yVjQgA","104JmdPze","1038418jwPMGt","@supports (","undefined","exports","parentNode","@media ","@layer","concat","options","css"];return(s=function(){return n})()}function a(n,t){return n-=245,s()[n]}!function(n){for(var t=a,e=n();;)try{if(276538==parseInt(t(262))/1*(-parseInt(t(252))/2)+-parseInt(t(266))/3+parseInt(t(251))/4*(parseInt(t(271))/5)+parseInt(t(245))/6+-parseInt(t(246))/7*(parseInt(t(268))/8)+-parseInt(t(267))/9+parseInt(t(250))/10)break;e.push(e.shift())}catch(n){e.push(e.shift())}}(s),n[r(255)]=function(n){if(typeof document===a(254))return{update:function(){},remove:function(){}};var t=n.insertStyleElement(n);return{update:function(e){!function(n,t,e){var r=a,s="";e[r(269)]&&(s+=r(253)[r(259)](e[r(269)],r(247))),e.media&&(s+=r(257)[r(259)](e[r(263)]," {"));var i=typeof e[r(249)]!==r(254);i&&(s+=r(258).concat(e.layer[r(272)]>0?" "[r(259)](e[r(249)]):""," {")),s+=e[r(261)],i&&(s+="}"),e.media&&(s+="}"),e[r(269)]&&(s+="}");var o=e.sourceMap;o&&typeof btoa!==r(254)&&(s+=r(248)[r(259)](btoa(unescape(encodeURIComponent(JSON.stringify(o)))),r(270))),t[r(264)](s,n,t[r(260)])}(t,n,e)},remove:function(){!function(n){var t=a;if(null===n[t(256)])return!1;n[t(256)][t(265)](n)}(t)}}}},439(n){function t(n,t){return n-=362,e()[n]}function e(){var n=["removeChild","cssText","34409151Pgncnv","appendChild","2404478wccSPU","createTextNode","516128FBdwXg","64wYOCpJ","5098944UEJIGQ","128958vRoLOg","4431395smzfDG","1143871oOSYpJ","styleSheet","10YaWUhY","14jkWPBk"];return(e=function(){return n})()}!function(n){for(var e=t,r=n();;)try{if(696776==-parseInt(e(364))/1+-parseInt(e(372))/2+-parseInt(e(362))/3*(parseInt(e(375))/4)+parseInt(e(363))/5+-parseInt(e(376))/6+-parseInt(e(367))/7*(parseInt(e(374))/8)+parseInt(e(370))/9*(parseInt(e(366))/10))break;r.push(r.shift())}catch(n){r.push(r.shift())}}(e),n.exports=function(n,e){var r=t;if(e.styleSheet)e[r(365)][r(369)]=n;else{for(;e.firstChild;)e[r(368)](e.firstChild);e[r(371)](document[r(373)](n))}}}},t={};function e(r){var s=t[r];if(void 0!==s)return s.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return n[r](a,a.exports,e),a.loaded=!0,a.exports}e.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return e.d(t,{a:t}),t},e.d=(n,t)=>{for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},e.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),e.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),e.p="./",e.nc=void 0;const r=e.p+"facelivenessdetector-assets/images/Smile.svg",s=e.p+"facelivenessdetector-assets/images/Brightness.svg",a=e.p+"facelivenessdetector-assets/images/FaceId.svg",i=e.p+"facelivenessdetector-assets/images/activeMotionVisualHint.png",o=e.p+"facelivenessdetector-assets/images/logo.svg";function c(){const n=["168wWczAs","385160fKbulK","1386087qAnPPr","1208PrRuHD","171PFSAxk","7297715ywbGxp","842970iTLyBB","1221KfUBnm","khw","1402962JcboFw","2130366LICrXe","arc"];return(c=function(){return n})()}const u=d;function d(n,t){return n-=147,c()[n]}!function(){const n=d,t=c();for(;;)try{if(806749==-parseInt(n(147))/1+parseInt(n(154))/2+-parseInt(n(152))/3*(-parseInt(n(148))/4)+parseInt(n(150))/5+parseInt(n(155))/6+-parseInt(n(157))/7*(-parseInt(n(158))/8)+parseInt(n(149))/9*(-parseInt(n(151))/10))break;t.push(t.shift())}catch(n){t.push(t.shift())}}();const p=["ar",u(156),"dv","fa","ha","he",u(153),"ks","ku","ps","ur","yi"];var l=e(22),h=e.n(l),f=e(271),I=e.n(f),m=e(365),v=e.n(m),g=e(614),y=e.n(g),b=e(866),w=e.n(b),k=e(439),S=e.n(k),x=e(137),A={};A.styleTagTransform=S(),A.setAttributes=y(),A.insert=v().bind(null,"head"),A.domAPI=I(),A.insertStyleElement=w(),h()(x.A,A),x.A&&x.A.locals&&x.A.locals;const C=M;function M(n,t){return n-=249,T()[n]}!function(){const n=M,t=T();for(;;)try{if(323973==-parseInt(n(336))/1+-parseInt(n(342))/2+parseInt(n(295))/3+parseInt(n(347))/4+parseInt(n(313))/5+parseInt(n(346))/6+-parseInt(n(291))/7)break;t.push(t.shift())}catch(n){t.push(t.shift())}}();var P=C(358);function T(){const n=["undefined","keys","className","765995CRiPTL","cancelButton","warn","start","cancelLoadingButtonTimeout","Failed to load locale: ","_feedbackMessageStyles","brandingImage","cleanup","path","_mediaInfoDeviceId","Module not loaded on timeout","loading-dot","getAttemptEndPath","_brandingText","metadata","checkModuleDefined","loadLanguageDictionary","_skipInstructions","/facelivenessdetector-assets/js/","AZAIF_CancelPrompt","endpoint","bind","248495ZFwDBa","FaceRecoEngineAdapter","_languageDictionary","src","languageDictionary","text","273326uLArMv","userCorrelationId","_handleModuleAbortedStart","loadingContainer","1914744dBCncZ","1058380SYYPEC","head","button","_moduleAborted","_baseAssetsURL","_moduleAbortedError","hasOwnProperty","length","split","remove","Bearer ","AzureAIVisionFace_SIMD.js","No attempt end path found","None","Error parsing JWT token:","connectedCallback","_brightnessImagePath","textContent","logo","_cancelModuleLoading","_AzureAIVisionFace_ModuleErrorSent","isRtl","POST","Module error not available before cancellation","_brandingImage","face","script","_continueButtonStyles","fontSize","endsWith","_locale","sendErrorToServer","_userCorrelationId","AzureAIVisionFace","locale","AzureAIVisionFace.js","_originalStart","authToken","mediaInfoDeviceId","stringify","AZAIF_FeedbackStarting","brightnessSVGPath","div","replace","find","appendChild","cancel-button","cancelLoading","feedbackMessageStyles","deviceCorrelationId","includes","brightnessImagePath","isDefined"," strings file: ","allowed-paths","en-US","validate","createElement","4064130JroURf","body","_showBranding","_fontFamily","1658409dzNybO","error","skipInstructions","_deviceCorrelationId","/en.json","hideLoadingAnimation","_fontSize","function","append","./facelivenessdetector-assets/i18n/","UserCancelledLoading","Unknown Module abort error","parse","invalid token","AZAIF_FeedbackTakingLong"];return(T=function(){return n})()}try{0==WebAssembly[C(289)](new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))&&(P=C(268))}catch(n){P=C(268)}class B extends HTMLElement{constructor(){const n=C;super(),this.smilePath=r,this.start=this.start[n(335)](this),this._brightnessImagePath="",this[n(260)]="",this[n(319)]="",this[n(301)]="",this[n(294)]="",this[n(338)]={},this[n(254)]=!1,this[n(263)]=n(288),this[n(351)]="./",this[n(323)]="",this[n(331)]=!0,this._deviceCorrelationId="",this[n(265)]="",this[n(285)]=!1,this.isHTMLInit=!1,this[n(270)]="",this.faceId=a,this.activeMotionVisualHint=i,this[n(274)]=s,this[n(257)]="",this._brandingText="",this._showBranding=!1,this[n(251)]=o,this[n(350)]=!1,this[n(352)]="",this[n(269)]=null,this[n(252)]=!1}set[C(284)](n){this[C(249)]=n}set[C(261)](n){this[C(301)]=n}set fontFamily(n){this[C(294)]=n}set buttonStyles(n){this[C(260)]=n}set[C(281)](n){this[C(319)]=n}set[C(267)](n){const t=C;this._locale=n,p[t(283)](n)&&(this[t(254)]=!0)}set[C(340)](n){const t=C;this[t(338)]=n||this[t(338)]}set[C(271)](n){this[C(323)]=n}set[C(297)](n){this[C(331)]=n}set[C(282)](n){this[C(298)]=n}set[C(343)](n){this[C(265)]=n}set showBranding(n){this[C(293)]=Boolean(n)}set[C(320)](n){this[C(257)]=n}set brandingText(n){const t=C;n&&n[t(354)]>30&&(n=n.substring(0,30)),this[t(327)]=n}[C(326)](n){const t=C;try{const e=n[t(355)](".");if(3===e[t(354)]){const n=JSON[t(307)](atob(e[1]));if(n.hasOwnProperty(t(258))){const e=JSON[t(307)](n.face);if(e&&e[t(334)]&&n[t(353)](t(287))){const r=JSON.parse(n[t(287)])[t(277)](n=>n[t(322)]&&n[t(322)].includes("attempt/end"));return r?e.endpoint+"/"+r[t(322)]:(console.warn(t(308)),null)}}}}catch(n){return console[t(296)](t(361),n),null}return null}async[C(264)](n,t){const e=C;window[e(253)]&&(t="User reuse a cancelled or failed module, causing new failure: "+t);const r=this[e(326)](n);if(r)try{const s=new FormData;s[e(303)](e(328),JSON[e(272)]({clientSDKversion:"1.4.7",failureReason:t}));const a=await fetch(r,{method:e(255),headers:{Authorization:e(357)+n},body:s});return window[e(253)]=!0,a}catch(n){throw console[e(296)]("Error sending error:",n),n}else console[e(315)](e(359))}[C(344)]=async n=>{const t=C;try{await this.sendErrorToServer(n,""+this[t(352)])}catch(n){console.error("Failed to send module abort error:",n)}return new Promise((n,e)=>{e({livenessError:"Unexpected",recognitionError:t(360)})})};[C(316)]=async n=>{const t=C;if(this.authToken=n,this[t(285)]=await this.checkModuleDefined(1,1),await this.loadLanguageDictionary(),!this.isDefined&&this.showLoadingAnimation(),this[t(285)]=await this[t(329)](1e3,30),this.hideLoadingAnimation(),!this[t(285)])return!this[t(352)]&&(this[t(352)]=t(324)),this[t(252)]?new Promise((n,e)=>{const r=t;e({livenessError:r(305),recognitionError:r(360)})}):this[t(344)](n);if(this[t(252)])return new Promise((n,e)=>{const r=t;e({livenessError:r(305),recognitionError:r(360)})});try{return Module[t(316)](this)}catch{return this[t(344)](n)}};async[C(362)](){const n=C;if(this.isConnected&&(typeof Module===n(310)||typeof Module[n(337)]===n(310))){const t=this[n(351)][n(276)](/\/$/,"")+n(332);window.Module={locateFile:function(e,r){const s=n;return e.includes(s(266))&&e[s(262)](".wasm")?t+e:r+e},onAbort:t=>{const e=n;console[e(296)]("Module loading aborted:",t);const r=t||e(306);this[e(350)]=!0,this[e(352)]=r}};const e=document[n(290)](n(259));e[n(339)]=t+P,document[n(348)].appendChild(e)}}disconnectedCallback(){const n=C;"undefined"!=typeof Module&&typeof Module[n(321)]===n(302)&&Module.cleanup()}async[C(330)](){const n=C;if(0===Object[n(311)](this[n(338)]).length){let t=await fetch(n(304)+this[n(263)]+n(299));if(!t.ok)throw new Error(n(318)+this._locale+n(286)+t.statusText+".");let e=await t[n(341)]();this[n(338)]=JSON.parse(e)}}async[C(329)](n,t){const e=C;let r=0;for(;r<t;){if(r++,"undefined"!=typeof Module&&void 0!==Module.FaceRecoEngineAdapter)return!0;if(this[e(252)])return!this[e(352)]&&(this[e(352)]=e(256)),!1;if(this[e(350)])return!1;await new Promise(t=>setTimeout(t,n))}return!1}async showLoadingAnimation(){const n=C;this.hideLoadingAnimation();const t=document[n(290)](n(275));t.id="face-liveness-loading";const e=document[n(290)]("div");e[n(312)]="loading-text",e[n(250)]=this[n(338)][n(273)];const r=document.createElement("div");r[n(312)]="dots-container";for(let t=0;t<3;t++){const t=document[n(290)](n(275));t[n(312)]=n(325),r.appendChild(t)}const s=document[n(290)](n(349));s[n(312)]=n(279),s[n(250)]=this[n(338)][n(333)],s.onclick=()=>this.cancelLoading(),t.appendChild(e),t[n(278)](r),this.cancelLoadingButtonTimeout=setTimeout(()=>{const r=n;this[r(345)]&&(e[r(250)]=this[r(338)][r(309)],t[r(278)](s))},1e4),document[n(292)][n(278)](t),this[n(345)]=t}[C(300)](){const n=C;this[n(345)]&&(this.loadingContainer.remove(),this[n(345)]=null),this[n(317)]&&(clearTimeout(this[n(317)]),this.cancelLoadingButtonTimeout=null),this[n(314)]&&(this[n(314)][n(356)](),this[n(314)]=null)}[C(280)](){const n=C;this[n(300)](),this[n(252)]=!0,this[n(264)](this[n(270)],n(305))}}var L=O;function O(n,t){return n-=251,E()[n]}function E(){var n=["173gYMnsO","4HBkBCC","1408505ndabRY","azure-ai-vision-face-ui","define","1457344AIqlde","37325547hpvtqW","7304549ORVkMS","14722TloUPU","696219fKChxL","4184310qYdyyT"];return(E=function(){return n})()}!function(){for(var n=O,t=E();;)try{if(901142==-parseInt(n(252))/1*(parseInt(n(260))/2)+parseInt(n(261))/3+parseInt(n(253))/4*(-parseInt(n(254))/5)+-parseInt(n(251))/6+-parseInt(n(259))/7+-parseInt(n(257))/8+parseInt(n(258))/9)break;t.push(t.shift())}catch(n){t.push(t.shift())}}(),customElements[L(256)](L(255),B);export var LivenessStatus;
|
|
2
2
|
(function (LivenessStatus) {
|
|
3
3
|
LivenessStatus["RealFace"] = "RealFace";
|
|
4
4
|
LivenessStatus["SpoofFace"] = "SpoofFace";
|
package/package.json
CHANGED