@zkpassport/ui 0.14.2

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.
@@ -0,0 +1,565 @@
1
+ "use client";
2
+ import {useRef,useEffect}from'react';import be from'qrcode';import {ZKPassport}from'@zkpassport/sdk';import {jsx}from'react/jsx-runtime';var W,v,w1,P,z1,M1,Z1,n1,G,T,L1,i1,o1,a1,K={},$=[],fe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Y=Array.isArray;function Z(t,e){for(var r in e)t[r]=e[r];return t}function p1(t){t&&t.parentNode&&t.parentNode.removeChild(t);}function l1(t,e,r){var a,s,n,p={};for(n in e)n=="key"?a=e[n]:n=="ref"?s=e[n]:p[n]=e[n];if(arguments.length>2&&(p.children=arguments.length>3?W.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(n in t.defaultProps)p[n]===void 0&&(p[n]=t.defaultProps[n]);return j(t,p,a,s,null)}function j(t,e,r,a,s){var n={type:t,props:e,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++w1,__i:-1,__u:0};return s==null&&v.vnode!=null&&v.vnode(n),n}function L(t){return t.children}function F(t,e){this.props=t,this.context=e;}function O(t,e){if(e==null)return t.__?O(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?O(t):null}function he(t){if(t.__P&&t.__d){var e=t.__v,r=e.__e,a=[],s=[],n=Z({},e);n.__v=e.__v+1,v.vnode&&v.vnode(n),c1(t.__P,n,e,t.__n,t.__P.namespaceURI,32&e.__u?[r]:null,a,r??O(e),!!(32&e.__u),s),n.__v=e.__v,n.__.__k[n.__i]=n,P1(a,n,s),e.__e=e.__=null,n.__e!=r&&S1(n);}}function S1(t){if((t=t.__)!=null&&t.__c!=null)return t.__e=t.__c.base=null,t.__k.some(function(e){if(e!=null&&e.__e!=null)return t.__e=t.__c.base=e.__e}),S1(t)}function x1(t){(!t.__d&&(t.__d=true)&&P.push(t)&&!Q.__r++||z1!=v.debounceRendering)&&((z1=v.debounceRendering)||M1)(Q);}function Q(){try{for(var t,e=1;P.length;)P.length>e&&P.sort(Z1),t=P.shift(),e=P.length,he(t);}finally{P.length=Q.__r=0;}}function R1(t,e,r,a,s,n,p,l,u,i,f){var o,_,d,m,C,z,g,h=a&&a.__k||$,M=e.length;for(u=ve(r,e,h,u,M),o=0;o<M;o++)(d=r.__k[o])!=null&&(_=d.__i!=-1&&h[d.__i]||K,d.__i=o,z=c1(t,d,_,s,n,p,l,u,i,f),m=d.__e,d.ref&&_.ref!=d.ref&&(_.ref&&_1(_.ref,null,d),f.push(d.ref,d.__c||m,d)),C==null&&m!=null&&(C=m),(g=!!(4&d.__u))||_.__k===d.__k?(u=N1(d,u,t,g),g&&_.__e&&(_.__e=null)):typeof d.type=="function"&&z!==void 0?u=z:m&&(u=m.nextSibling),d.__u&=-7);return r.__e=C,u}function ve(t,e,r,a,s){var n,p,l,u,i,f=r.length,o=f,_=0;for(t.__k=new Array(s),n=0;n<s;n++)(p=e[n])!=null&&typeof p!="boolean"&&typeof p!="function"?(typeof p=="string"||typeof p=="number"||typeof p=="bigint"||p.constructor==String?p=t.__k[n]=j(null,p,null,null,null):Y(p)?p=t.__k[n]=j(L,{children:p},null,null,null):p.constructor===void 0&&p.__b>0?p=t.__k[n]=j(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):t.__k[n]=p,u=n+_,p.__=t,p.__b=t.__b+1,l=null,(i=p.__i=ge(p,r,u,o))!=-1&&(o--,(l=r[i])&&(l.__u|=2)),l==null||l.__v==null?(i==-1&&(s>f?_--:s<f&&_++),typeof p.type!="function"&&(p.__u|=4)):i!=u&&(i==u-1?_--:i==u+1?_++:(i>u?_--:_++,p.__u|=4))):t.__k[n]=null;if(o)for(n=0;n<f;n++)(l=r[n])!=null&&(2&l.__u)==0&&(l.__e==a&&(a=O(l)),H1(l,l));return a}function N1(t,e,r,a){var s,n;if(typeof t.type=="function"){for(s=t.__k,n=0;s&&n<s.length;n++)s[n]&&(s[n].__=t,e=N1(s[n],e,r,a));return e}t.__e!=e&&(a&&(e&&t.type&&!e.parentNode&&(e=O(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function ge(t,e,r,a){var s,n,p,l=t.key,u=t.type,i=e[r],f=i!=null&&(2&i.__u)==0;if(i===null&&l==null||f&&l==i.key&&u==i.type)return r;if(a>(f?1:0)){for(s=r-1,n=r+1;s>=0||n<e.length;)if((i=e[p=s>=0?s--:n++])!=null&&(2&i.__u)==0&&l==i.key&&u==i.type)return p}return -1}function C1(t,e,r){e[0]=="-"?t.setProperty(e,r??""):t[e]=r==null?"":typeof r!="number"||fe.test(e)?r:r+"px";}function B(t,e,r,a,s){var n,p;e:if(e=="style")if(typeof r=="string")t.style.cssText=r;else {if(typeof a=="string"&&(t.style.cssText=a=""),a)for(e in a)r&&e in r||C1(t.style,e,"");if(r)for(e in r)a&&r[e]==a[e]||C1(t.style,e,r[e]);}else if(e[0]=="o"&&e[1]=="n")n=e!=(e=e.replace(L1,"$1")),p=e.toLowerCase(),e=p in t||e=="onFocusOut"||e=="onFocusIn"?p.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+n]=r,r?a?r[T]=a[T]:(r[T]=i1,t.addEventListener(e,n?a1:o1,n)):t.removeEventListener(e,n?a1:o1,n);else {if(s=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=r??"";break e}catch{}typeof r=="function"||(r==null||r===false&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&r==1?"":r));}}function b1(t){return function(e){if(this.l){var r=this.l[e.type+t];if(e[G]==null)e[G]=i1++;else if(e[G]<r[T])return;return r(v.event?v.event(e):e)}}}function c1(t,e,r,a,s,n,p,l,u,i){var f,o,_,d,m,C,z,g,h,M,R,H,t1,E,U,b=e.type;if(e.constructor!==void 0)return null;128&r.__u&&(u=!!(32&r.__u),n=[l=e.__e=r.__e]),(f=v.__b)&&f(e);e:if(typeof b=="function")try{if(g=e.props,h=b.prototype&&b.prototype.render,M=(f=b.contextType)&&a[f.__c],R=f?M?M.props.value:f.__:a,r.__c?z=(o=e.__c=r.__c).__=o.__E:(h?e.__c=o=new b(g,R):(e.__c=o=new F(g,R),o.constructor=b,o.render=ke),M&&M.sub(o),o.state||(o.state={}),o.__n=a,_=o.__d=!0,o.__h=[],o._sb=[]),h&&o.__s==null&&(o.__s=o.state),h&&b.getDerivedStateFromProps!=null&&(o.__s==o.state&&(o.__s=Z({},o.__s)),Z(o.__s,b.getDerivedStateFromProps(g,o.__s))),d=o.props,m=o.state,o.__v=e,_)h&&b.getDerivedStateFromProps==null&&o.componentWillMount!=null&&o.componentWillMount(),h&&o.componentDidMount!=null&&o.__h.push(o.componentDidMount);else {if(h&&b.getDerivedStateFromProps==null&&g!==d&&o.componentWillReceiveProps!=null&&o.componentWillReceiveProps(g,R),e.__v==r.__v||!o.__e&&o.shouldComponentUpdate!=null&&o.shouldComponentUpdate(g,o.__s,R)===!1){e.__v!=r.__v&&(o.props=g,o.state=o.__s,o.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some(function(N){N&&(N.__=e);}),$.push.apply(o.__h,o._sb),o._sb=[],o.__h.length&&p.push(o);break e}o.componentWillUpdate!=null&&o.componentWillUpdate(g,o.__s,R),h&&o.componentDidUpdate!=null&&o.__h.push(function(){o.componentDidUpdate(d,m,C);});}if(o.context=R,o.props=g,o.__P=t,o.__e=!1,H=v.__r,t1=0,h)o.state=o.__s,o.__d=!1,H&&H(e),f=o.render(o.props,o.state,o.context),$.push.apply(o.__h,o._sb),o._sb=[];else do o.__d=!1,H&&H(e),f=o.render(o.props,o.state,o.context),o.state=o.__s;while(o.__d&&++t1<25);o.state=o.__s,o.getChildContext!=null&&(a=Z(Z({},a),o.getChildContext())),h&&!_&&o.getSnapshotBeforeUpdate!=null&&(C=o.getSnapshotBeforeUpdate(d,m)),E=f!=null&&f.type===L&&f.key==null?A1(f.props.children):f,l=R1(t,Y(E)?E:[E],e,r,a,s,n,p,l,u,i),o.base=e.__e,e.__u&=-161,o.__h.length&&p.push(o),z&&(o.__E=o.__=null);}catch(N){if(e.__v=null,u||n!=null)if(N.then){for(e.__u|=u?160:128;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;n[n.indexOf(l)]=null,e.__e=l;}else {for(U=n.length;U--;)p1(n[U]);s1(e);}else e.__e=r.__e,e.__k=r.__k,N.then||s1(e);v.__e(N,e,r);}else n==null&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):l=e.__e=me(r.__e,e,r,a,s,n,p,u,i);return (f=v.diffed)&&f(e),128&e.__u?void 0:l}function s1(t){t&&(t.__c&&(t.__c.__e=true),t.__k&&t.__k.some(s1));}function P1(t,e,r){for(var a=0;a<r.length;a++)_1(r[a],r[++a],r[++a]);v.__c&&v.__c(e,t),t.some(function(s){try{t=s.__h,s.__h=[],t.some(function(n){n.call(s);});}catch(n){v.__e(n,s.__v);}});}function A1(t){return typeof t!="object"||t==null||t.__b>0?t:Y(t)?t.map(A1):t.constructor!==void 0?null:Z({},t)}function me(t,e,r,a,s,n,p,l,u){var i,f,o,_,d,m,C,z=r.props||K,g=e.props,h=e.type;if(h=="svg"?s="http://www.w3.org/2000/svg":h=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),n!=null){for(i=0;i<n.length;i++)if((d=n[i])&&"setAttribute"in d==!!h&&(h?d.localName==h:d.nodeType==3)){t=d,n[i]=null;break}}if(t==null){if(h==null)return document.createTextNode(g);t=document.createElementNS(s,h,g.is&&g),l&&(v.__m&&v.__m(e,n),l=false),n=null;}if(h==null)z===g||l&&t.data==g||(t.data=g);else {if(n=h=="textarea"&&g.defaultValue!=null?null:n&&W.call(t.childNodes),!l&&n!=null)for(z={},i=0;i<t.attributes.length;i++)z[(d=t.attributes[i]).name]=d.value;for(i in z)d=z[i],i=="dangerouslySetInnerHTML"?o=d:i=="children"||i in g||i=="value"&&"defaultValue"in g||i=="checked"&&"defaultChecked"in g||B(t,i,null,d,s);for(i in g)d=g[i],i=="children"?_=d:i=="dangerouslySetInnerHTML"?f=d:i=="value"?m=d:i=="checked"?C=d:l&&typeof d!="function"||z[i]===d||B(t,i,d,z[i],s);if(f)l||o&&(f.__html==o.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(o&&(t.innerHTML=""),R1(e.type=="template"?t.content:t,Y(_)?_:[_],e,r,a,h=="foreignObject"?"http://www.w3.org/1999/xhtml":s,n,p,n?n[0]:r.__k&&O(r,0),l,u),n!=null)for(i=n.length;i--;)p1(n[i]);l&&h!="textarea"||(i="value",h=="progress"&&m==null?t.removeAttribute("value"):m!=null&&(m!==t[i]||h=="progress"&&!m||h=="option"&&m!=z[i])&&B(t,i,m,z[i],s),i="checked",C!=null&&C!=t[i]&&B(t,i,C,z[i],s));}return t}function _1(t,e,r){try{if(typeof t=="function"){var a=typeof t.__u=="function";a&&t.__u(),a&&e==null||(t.__u=t(e));}else t.current=e;}catch(s){v.__e(s,r);}}function H1(t,e,r){var a,s;if(v.unmount&&v.unmount(t),(a=t.ref)&&(a.current&&a.current!=t.__e||_1(a,null,e)),(a=t.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount();}catch(n){v.__e(n,e);}a.base=a.__P=null;}if(a=t.__k)for(s=0;s<a.length;s++)a[s]&&H1(a[s],e,r||typeof t.type!="function");r||p1(t.__e),t.__c=t.__=t.__e=void 0;}function ke(t,e,r){return this.constructor(t,r)}function d1(t,e,r){var a,s,n,p;e==document&&(e=document.documentElement),v.__&&v.__(t,e),s=(a="undefined"=="function")?null:e.__k,n=[],p=[],c1(e,t=(e).__k=l1(L,null,[t]),s||K,K,e.namespaceURI,s?null:e.firstChild?W.call(e.childNodes):null,n,s?s.__e:e.firstChild,a,p),P1(n,t,p);}W=$.slice,v={__e:function(t,e,r,a){for(var s,n,p;e=e.__;)if((s=e.__c)&&!s.__)try{if((n=s.constructor)&&n.getDerivedStateFromError!=null&&(s.setState(n.getDerivedStateFromError(t)),p=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,a||{}),p=s.__d),p)return s.__E=s}catch(l){t=l;}throw t}},w1=0,F.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Z({},this.state),typeof t=="function"&&(t=t(Z({},r),this.props)),t&&Z(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),x1(this));},F.prototype.forceUpdate=function(t){this.__v&&(this.__e=true,t&&this.__h.push(t),x1(this));},F.prototype.render=L,P=[],M1=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Z1=function(t,e){return t.__v.__b-e.__v.__b},Q.__r=0,n1=Math.random().toString(8),G="__d"+n1,T="__a"+n1,L1=/(PointerCapture)$|Capture$/i,i1=0,o1=b1(false),a1=b1(true);var q,k,u1,O1,I=0,B1=[],y=v,q1=y.__b,E1=y.__r,T1=y.diffed,I1=y.__c,D1=y.unmount,V1=y.__;function X(t,e){y.__h&&y.__h(k,t,I||e),I=0;var r=k.__H||(k.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function D(t){return I=1,ye(K1,t)}function ye(t,e,r){var a=X(q++,2);if(a.t=t,!a.__c&&(a.__=[K1(void 0,e),function(l){var u=a.__N?a.__N[0]:a.__[0],i=a.t(u,l);u!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}));}],a.__c=k,!k.__f)){var s=function(l,u,i){if(!a.__c.__H)return true;var f=a.__c.__H.__.filter(function(_){return _.__c});if(f.every(function(_){return !_.__N}))return !n||n.call(this,l,u,i);var o=a.__c.props!==l;return f.some(function(_){if(_.__N){var d=_.__[0];_.__=_.__N,_.__N=void 0,d!==_.__[0]&&(o=true);}}),n&&n.call(this,l,u,i)||o};k.__f=true;var n=k.shouldComponentUpdate,p=k.componentWillUpdate;k.componentWillUpdate=function(l,u,i){if(this.__e){var f=n;n=void 0,s(l,u,i),n=f;}p&&p.call(this,l,u,i);},k.shouldComponentUpdate=s;}return a.__N||a.__}function e1(t,e){var r=X(q++,3);!y.__s&&v1(r.__H,e)&&(r.__=t,r.u=e,k.__H.__h.push(r));}function G1(t,e){var r=X(q++,4);!y.__s&&v1(r.__H,e)&&(r.__=t,r.u=e,k.__h.push(r));}function h1(t){return I=5,j1(function(){return {current:t}},[])}function j1(t,e){var r=X(q++,7);return v1(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function F1(t,e){return I=8,j1(function(){return t},e)}function ze(){for(var t;t=B1.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(J),e.__h.some(f1),e.__h=[];}catch(r){e.__h=[],y.__e(r,t.__v);}}}y.__b=function(t){k=null,q1&&q1(t);},y.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),V1&&V1(t,e);},y.__r=function(t){E1&&E1(t),q=0;var e=(k=t.__c).__H;e&&(u1===k?(e.__h=[],k.__h=[],e.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0;})):(e.__h.some(J),e.__h.some(f1),e.__h=[],q=0)),u1=k;},y.diffed=function(t){T1&&T1(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(B1.push(e)!==1&&O1===y.requestAnimationFrame||((O1=y.requestAnimationFrame)||xe)(ze)),e.__H.__.some(function(r){r.u&&(r.__H=r.u),r.u=void 0;})),u1=k=null;},y.__c=function(t,e){e.some(function(r){try{r.__h.some(J),r.__h=r.__h.filter(function(a){return !a.__||f1(a)});}catch(a){e.some(function(s){s.__h&&(s.__h=[]);}),e=[],y.__e(a,r.__v);}}),I1&&I1(t,e);},y.unmount=function(t){D1&&D1(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.some(function(a){try{J(a);}catch(s){e=s;}}),r.__H=void 0,e&&y.__e(e,r.__v));};var U1=typeof requestAnimationFrame=="function";function xe(t){var e,r=function(){clearTimeout(a),U1&&cancelAnimationFrame(e),setTimeout(t);},a=setTimeout(r,35);U1&&(e=requestAnimationFrame(r));}function J(t){var e=k,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),k=e;}function f1(t){var e=k;t.__c=t.__(),k=e;}function v1(t,e){return !t||t.length!==e.length||e.some(function(r,a){return r!==t[a]})}function K1(t,e){return typeof e=="function"?e(t):e}var $1="https://zkpassport.id/r",Q1="https://apps.apple.com/us/app/zkpassport/id6477371975",W1="https://play.google.com/store/apps/details?id=app.zkpassport.zkpassport",g1='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" fill="none" aria-hidden="true"><path d="M15.0417 29.516C23.0399 29.516 29.5237 23.0338 29.5237 15.0378C29.5237 7.04166 23.0399 0.559547 15.0417 0.559547C7.04352 0.559547 0.559692 7.04166 0.559692 15.0378C0.559692 23.0338 7.04352 29.516 15.0417 29.516Z" fill="#2139A3"/><path d="M15.0417 0C23.349 0 30.0834 6.73263 30.0834 15.0377C30.0834 23.3429 23.349 30.0755 15.0417 30.0755C6.73441 30.0755 0 23.3429 0 15.0377C0 6.73263 6.73441 0 15.0417 0ZM15.0417 1.60869C7.62309 1.60869 1.60911 7.62108 1.60911 15.0377C1.60911 22.4544 7.62309 28.4668 15.0417 28.4668C22.4603 28.4668 28.4743 22.4544 28.4743 15.0377C28.4743 7.62108 22.4603 1.60869 15.0417 1.60869ZM15.0592 3.09498C21.6662 3.09498 27.0226 8.44173 27.0226 15.0377C27.0226 21.6338 21.6662 26.9805 15.0592 26.9805C8.45221 26.9805 3.09579 21.6338 3.09579 15.0377C3.09579 8.44173 8.45221 3.09498 15.0592 3.09498ZM9.96458 22.0322L6.92138 22.0322C8.39067 23.7337 10.3865 24.9694 12.6564 25.4872C11.5835 24.7598 10.6605 23.5567 9.96458 22.0322ZM23.197 22.0322L20.1538 22.0322C19.4579 23.5567 18.5349 24.7598 17.4621 25.4874C19.7319 24.9694 21.7277 23.7337 23.197 22.0322ZM14.3421 22.032L11.2161 22.0321C12.0187 23.8592 13.1229 25.1125 14.3421 25.4638L14.3421 22.032ZM18.8674 22.0321L15.7413 22.032L15.7414 25.4638C16.9606 25.1125 18.0648 23.8591 18.8674 22.0321ZM25.7572 15.9821L21.5259 15.982C21.4396 17.8044 21.1057 19.5076 20.5786 20.9831L23.9963 20.983C24.9699 19.5278 25.5963 17.8215 25.7572 15.9821ZM8.59253 15.982L4.36123 15.9821C4.5221 17.8215 5.14847 19.5278 6.1221 20.983L9.53983 20.9831C9.01269 19.5076 8.67877 17.8044 8.59253 15.982ZM20.1638 15.9821L15.7413 15.982V20.9829L19.2733 20.983C19.7636 19.5382 20.0831 17.8314 20.1638 15.9821ZM14.3421 15.982L9.91967 15.9821C10.0003 17.8314 10.3198 19.5382 10.8101 20.983L14.3421 20.9829V15.982ZM24.2843 9.54718L20.7326 9.54709C21.2388 11.1259 21.5307 12.9383 21.5474 14.8629L25.7969 14.8629L25.7969 14.8605C25.7653 12.9205 25.2174 11.1057 24.2843 9.54718ZM9.38584 9.54709L5.83411 9.54718C4.9006 11.1063 4.35262 12.922 4.32152 14.8629L8.57108 14.8629L8.57113 14.8531C8.58872 12.9322 8.88051 11.1232 9.38584 9.54709ZM19.4086 9.54708L15.7413 9.54722V14.8629L20.183 14.8629C20.1655 12.9105 19.8822 11.0944 19.4086 9.54708ZM14.3421 9.54722L10.6748 9.54708C10.2012 11.0944 9.91791 12.9105 9.90041 14.8629L14.3421 14.8629V9.54722ZM17.462 4.5883L17.5252 4.6316C18.6751 5.43583 19.6492 6.78889 20.3507 8.49789H23.5684C22.073 6.56232 19.9294 5.15119 17.462 4.5883ZM12.6563 4.58812L12.6442 4.59108C10.182 5.15582 8.04296 6.5655 6.54996 8.49789H9.76772C10.4821 6.75769 11.479 5.38655 12.6563 4.58812ZM15.7414 4.64663L15.7413 8.49807L19.0424 8.49792C18.2293 6.4439 17.0518 5.02425 15.7414 4.64663ZM11.0411 8.49792L14.3421 8.49807L14.3421 4.64662C13.0317 5.02423 11.8541 6.44388 11.0411 8.49792Z" fill="url(#zkp-mark-grad)"/><defs><linearGradient id="zkp-mark-grad" x1="15.0417" y1="0" x2="15.0417" y2="30.0755" gradientUnits="userSpaceOnUse"><stop stop-color="#F2DCB0"/><stop offset="1" stop-color="#F6D38F"/></linearGradient></defs></svg>',Y1=`
3
+ <svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
4
+ <defs>
5
+ <linearGradient id="zkp-spin-mark-grad" x1="15.0417" y1="0" x2="15.0417" y2="30.0755" gradientUnits="userSpaceOnUse">
6
+ <stop stop-color="#F2DCB0"/>
7
+ <stop offset="1" stop-color="#F6D38F"/>
8
+ </linearGradient>
9
+ </defs>
10
+ <g transform="translate(27.5 27.5) scale(1.5)">
11
+ <path d="M15.0417 29.516C23.0399 29.516 29.5237 23.0338 29.5237 15.0378C29.5237 7.04166 23.0399 0.559547 15.0417 0.559547C7.04352 0.559547 0.559692 7.04166 0.559692 15.0378C0.559692 23.0338 7.04352 29.516 15.0417 29.516Z" fill="#2139A3"/>
12
+ <path d="M15.0417 0C23.349 0 30.0834 6.73263 30.0834 15.0377C30.0834 23.3429 23.349 30.0755 15.0417 30.0755C6.73441 30.0755 0 23.3429 0 15.0377C0 6.73263 6.73441 0 15.0417 0ZM15.0417 1.60869C7.62309 1.60869 1.60911 7.62108 1.60911 15.0377C1.60911 22.4544 7.62309 28.4668 15.0417 28.4668C22.4603 28.4668 28.4743 22.4544 28.4743 15.0377C28.4743 7.62108 22.4603 1.60869 15.0417 1.60869ZM15.0592 3.09498C21.6662 3.09498 27.0226 8.44173 27.0226 15.0377C27.0226 21.6338 21.6662 26.9805 15.0592 26.9805C8.45221 26.9805 3.09579 21.6338 3.09579 15.0377C3.09579 8.44173 8.45221 3.09498 15.0592 3.09498ZM9.96458 22.0322L6.92138 22.0322C8.39067 23.7337 10.3865 24.9694 12.6564 25.4872C11.5835 24.7598 10.6605 23.5567 9.96458 22.0322ZM23.197 22.0322L20.1538 22.0322C19.4579 23.5567 18.5349 24.7598 17.4621 25.4874C19.7319 24.9694 21.7277 23.7337 23.197 22.0322ZM14.3421 22.032L11.2161 22.0321C12.0187 23.8592 13.1229 25.1125 14.3421 25.4638L14.3421 22.032ZM18.8674 22.0321L15.7413 22.032L15.7414 25.4638C16.9606 25.1125 18.0648 23.8591 18.8674 22.0321ZM25.7572 15.9821L21.5259 15.982C21.4396 17.8044 21.1057 19.5076 20.5786 20.9831L23.9963 20.983C24.9699 19.5278 25.5963 17.8215 25.7572 15.9821ZM8.59253 15.982L4.36123 15.9821C4.5221 17.8215 5.14847 19.5278 6.1221 20.983L9.53983 20.9831C9.01269 19.5076 8.67877 17.8044 8.59253 15.982ZM20.1638 15.9821L15.7413 15.982V20.9829L19.2733 20.983C19.7636 19.5382 20.0831 17.8314 20.1638 15.9821ZM14.3421 15.982L9.91967 15.9821C10.0003 17.8314 10.3198 19.5382 10.8101 20.983L14.3421 20.9829V15.982ZM24.2843 9.54718L20.7326 9.54709C21.2388 11.1259 21.5307 12.9383 21.5474 14.8629L25.7969 14.8629L25.7969 14.8605C25.7653 12.9205 25.2174 11.1057 24.2843 9.54718ZM9.38584 9.54709L5.83411 9.54718C4.9006 11.1063 4.35262 12.922 4.32152 14.8629L8.57108 14.8629L8.57113 14.8531C8.58872 12.9322 8.88051 11.1232 9.38584 9.54709ZM19.4086 9.54708L15.7413 9.54722V14.8629L20.183 14.8629C20.1655 12.9105 19.8822 11.0944 19.4086 9.54708ZM14.3421 9.54722L10.6748 9.54708C10.2012 11.0944 9.91791 12.9105 9.90041 14.8629L14.3421 14.8629V9.54722ZM17.462 4.5883L17.5252 4.6316C18.6751 5.43583 19.6492 6.78889 20.3507 8.49789H23.5684C22.073 6.56232 19.9294 5.15119 17.462 4.5883ZM12.6563 4.58812L12.6442 4.59108C10.182 5.15582 8.04296 6.5655 6.54996 8.49789H9.76772C10.4821 6.75769 11.479 5.38655 12.6563 4.58812ZM15.7414 4.64663L15.7413 8.49807L19.0424 8.49792C18.2293 6.4439 17.0518 5.02425 15.7414 4.64663ZM11.0411 8.49792L14.3421 8.49807L14.3421 4.64662C13.0317 5.02423 11.8541 6.44388 11.0411 8.49792Z" fill="url(#zkp-spin-mark-grad)"/>
13
+ </g>
14
+ <circle class="zkp-spinner-arc" cx="50" cy="50" r="27" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-dasharray="42 128"/>
15
+ </svg>`,J1='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7V5a2 2 0 0 1 2-2h2"/><path d="M17 3h2a2 2 0 0 1 2 2v2"/><path d="M21 17v2a2 2 0 0 1-2 2h-2"/><path d="M7 21H5a2 2 0 0 1-2-2v-2"/><line x1="7" y1="12" x2="17" y2="12"/></svg>',X1='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>',ee='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>',m1='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>',te='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="6" y1="6" x2="18" y2="18"/><line x1="6" y1="18" x2="18" y2="6"/></svg>',re='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="2" width="14" height="20" rx="2.5" ry="2.5"/><line x1="11" y1="18" x2="13" y2="18"/></svg>',ne='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>',oe={ariaLabel:"Download on the App Store",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 119.66407 40" role="img" aria-hidden="true"><path d="M110.13477,0H9.53468c-.3667,0-.729,0-1.09473.002-.30615.002-.60986.00781-.91895.0127A13.21476,13.21476,0,0,0,5.5171.19141a6.66509,6.66509,0,0,0-1.90088.627A6.43779,6.43779,0,0,0,1.99757,1.99707,6.25844,6.25844,0,0,0,.81935,3.61816a6.60119,6.60119,0,0,0-.625,1.90332,12.993,12.993,0,0,0-.1792,2.002C.00587,7.83008.00489,8.1377,0,8.44434V31.5586c.00489.3105.00587.6113.01515.9219a12.99232,12.99232,0,0,0,.1792,2.0019,6.58756,6.58756,0,0,0,.625,1.9043A6.20778,6.20778,0,0,0,1.99757,38.001a6.27445,6.27445,0,0,0,1.61865,1.1787,6.70082,6.70082,0,0,0,1.90088.6308,13.45514,13.45514,0,0,0,2.0039.1768c.30909.0068.6128.0107.91895.0107C8.80567,40,9.168,40,9.53468,40H110.13477c.3594,0,.7246,0,1.084-.002.3047,0,.6172-.0039.9219-.0107a13.279,13.279,0,0,0,2-.1768,6.80432,6.80432,0,0,0,1.9082-.6308,6.27742,6.27742,0,0,0,1.6172-1.1787,6.39482,6.39482,0,0,0,1.1816-1.6143,6.60413,6.60413,0,0,0,.6191-1.9043,13.50643,13.50643,0,0,0,.1856-2.0019c.0039-.3106.0039-.6114.0039-.9219.0078-.3633.0078-.7246.0078-1.0938V9.53613c0-.36621,0-.72949-.0078-1.09179,0-.30664,0-.61426-.0039-.9209a13.5071,13.5071,0,0,0-.1856-2.002,6.6177,6.6177,0,0,0-.6191-1.90332,6.46619,6.46619,0,0,0-2.7988-2.7998,6.76754,6.76754,0,0,0-1.9082-.627,13.04394,13.04394,0,0,0-2-.17676c-.3047-.00488-.6172-.01074-.9219-.01269-.3594-.002-.7246-.002-1.084-.002Z" fill="#a6a6a6"/><path d="M8.44483,39.125c-.30468,0-.602-.0039-.90429-.0107a12.68714,12.68714,0,0,1-1.86914-.1631,5.88381,5.88381,0,0,1-1.65674-.5479,5.40573,5.40573,0,0,1-1.397-1.0166,5.32082,5.32082,0,0,1-1.02051-1.3965,5.72186,5.72186,0,0,1-.543-1.6572,12.41351,12.41351,0,0,1-.1665-1.875c-.00634-.2109-.01464-.9131-.01464-.9131V8.44434S.88185,7.75293.8877,7.5498a12.37039,12.37039,0,0,1,.16553-1.87207,5.7555,5.7555,0,0,1,.54346-1.6621A5.37349,5.37349,0,0,1,2.61183,2.61768,5.56543,5.56543,0,0,1,4.01417,1.59521a5.82309,5.82309,0,0,1,1.65332-.54394A12.58589,12.58589,0,0,1,7.543.88721L8.44532.875H111.21387l.9131.0127a12.38493,12.38493,0,0,1,1.8584.16259,5.93833,5.93833,0,0,1,1.6709.54785,5.59374,5.59374,0,0,1,2.415,2.41993,5.76267,5.76267,0,0,1,.5352,1.64892,12.995,12.995,0,0,1,.1738,1.88721c.0029.2832.0029.5874.0029.89014.0079.375.0079.73193.0079,1.09179V30.4648c0,.3633,0,.7178-.0079,1.0752,0,.3252,0,.6231-.0039.9297a12.73126,12.73126,0,0,1-.1709,1.8535,5.739,5.739,0,0,1-.54,1.67,5.48029,5.48029,0,0,1-1.0156,1.3857,5.4129,5.4129,0,0,1-1.3994,1.0225,5.86168,5.86168,0,0,1-1.668.5498,12.54218,12.54218,0,0,1-1.8692.1631c-.2929.0068-.5996.0107-.8974.0107l-1.084.002Z"/><path d="M24.76888,20.30068a4.94881,4.94881,0,0,1,2.35656-4.15206,5.06566,5.06566,0,0,0-3.99116-2.15768c-1.67924-.17626-3.30719,1.00483-4.1629,1.00483-.87227,0-2.18977-.98733-3.6085-.95814a5.31529,5.31529,0,0,0-4.47292,2.72787c-1.934,3.34842-.49141,8.26947,1.3612,10.97608.9269,1.32535,2.01018,2.8058,3.42763,2.7533,1.38706-.05753,1.9051-.88448,3.5794-.88448,1.65876,0,2.14479.88448,3.591.8511,1.48838-.02416,2.42613-1.33124,3.32051-2.66914a10.962,10.962,0,0,0,1.51842-3.09251A4.78205,4.78205,0,0,1,24.76888,20.30068Z" fill="#fff"/><path d="M22.03725,12.21089a4.87248,4.87248,0,0,0,1.11452-3.49062,4.95746,4.95746,0,0,0-3.20758,1.65961,4.63634,4.63634,0,0,0-1.14371,3.36139A4.09905,4.09905,0,0,0,22.03725,12.21089Z" fill="#fff"/><path d="M42.30227,27.13965h-4.7334l-1.13672,3.35645H34.42727l4.4834-12.418h2.083l4.4834,12.418H43.438ZM38.0591,25.59082h3.752l-1.84961-5.44727h-.05176Z" fill="#fff"/><path d="M55.15969,25.96973c0,2.81348-1.50586,4.62109-3.77832,4.62109a3.0693,3.0693,0,0,1-2.84863-1.584h-.043v4.48438h-1.8584V21.44238H48.4302v1.50586h.03418a3.21162,3.21162,0,0,1,2.88281-1.60059C53.645,21.34766,55.15969,23.16406,55.15969,25.96973Zm-1.91016,0c0-1.833-.94727-3.03809-2.39258-3.03809-1.41992,0-2.375,1.23047-2.375,3.03809,0,1.82422.95508,3.0459,2.375,3.0459C52.30227,29.01563,53.24953,27.81934,53.24953,25.96973Z" fill="#fff"/><path d="M65.12453,25.96973c0,2.81348-1.50586,4.62109-3.77832,4.62109a3.0693,3.0693,0,0,1-2.84863-1.584h-.043v4.48438h-1.8584V21.44238H58.395v1.50586h.03418A3.21162,3.21162,0,0,1,61.312,21.34766C63.60988,21.34766,65.12453,23.16406,65.12453,25.96973Zm-1.91016,0c0-1.833-.94727-3.03809-2.39258-3.03809-1.41992,0-2.375,1.23047-2.375,3.03809,0,1.82422.95508,3.0459,2.375,3.0459C62.26711,29.01563,63.21438,27.81934,63.21438,25.96973Z" fill="#fff"/><path d="M71.71047,27.03613c.1377,1.23145,1.334,2.04,2.96875,2.04,1.56641,0,2.69336-.80859,2.69336-1.91895,0-.96387-.67969-1.541-2.28906-1.93652l-1.60937-.3877c-2.28027-.55078-3.33887-1.61719-3.33887-3.34766,0-2.14258,1.86719-3.61426,4.51855-3.61426,2.624,0,4.42285,1.47168,4.4834,3.61426h-1.876c-.1123-1.23926-1.13672-1.9873-2.63379-1.9873s-2.52148.75684-2.52148,1.8584c0,.87793.6543,1.39453,2.25488,1.79l1.36816.33594c2.54785.60254,3.60645,1.626,3.60645,3.44238,0,2.32324-1.85059,3.77832-4.79395,3.77832-2.75391,0-4.61328-1.4209-4.7334-3.667Z" fill="#fff"/><path d="M83.34621,19.2998v2.14258h1.72168v1.47168H83.34621v4.99121c0,.77539.34473,1.13672,1.10156,1.13672a5.80752,5.80752,0,0,0,.61133-.043v1.46289a5.10351,5.10351,0,0,1-1.03223.08594c-1.833,0-2.54785-.68848-2.54785-2.44434V22.91406H80.16262V21.44238H81.479V19.2998Z" fill="#fff"/><path d="M86.065,25.96973c0-2.84863,1.67773-4.63867,4.29395-4.63867,2.625,0,4.29492,1.79,4.29492,4.63867,0,2.85645-1.66113,4.63867-4.29492,4.63867C87.72609,30.6084,86.065,28.82617,86.065,25.96973Zm6.69531,0c0-1.9541-.89551-3.10742-2.40137-3.10742s-2.40039,1.16211-2.40039,3.10742c0,1.96191.89453,3.10645,2.40039,3.10645S92.76027,27.93164,92.76027,25.96973Z" fill="#fff"/><path d="M96.18606,21.44238h1.77246v1.541h.043a2.1594,2.1594,0,0,1,2.17773-1.63574,2.86616,2.86616,0,0,1,.63672.06934v1.73828a2.59794,2.59794,0,0,0-.835-.1123,1.87264,1.87264,0,0,0-1.93652,2.083v5.37012h-1.8584Z" fill="#fff"/><path d="M109.3843,27.83691c-.25,1.64355-1.85059,2.77148-3.89844,2.77148-2.63379,0-4.26855-1.76465-4.26855-4.5957,0-2.83984,1.64355-4.68164,4.19043-4.68164,2.50488,0,4.08008,1.7207,4.08008,4.46582v.63672h-6.39453v.1123a2.358,2.358,0,0,0,2.43555,2.56445,2.04834,2.04834,0,0,0,2.09082-1.27344Zm-6.28223-2.70215h4.52637a2.1773,2.1773,0,0,0-2.2207-2.29785A2.292,2.292,0,0,0,103.10207,25.13477Z" fill="#fff"/><path d="M37.82619,8.731a2.63964,2.63964,0,0,1,2.80762,2.96484c0,1.90625-1.03027,3.002-2.80762,3.002H35.67092V8.731Zm-1.22852,5.123h1.125a1.87588,1.87588,0,0,0,1.96777-2.146,1.881,1.881,0,0,0-1.96777-2.13379h-1.125Z" fill="#fff"/><path d="M41.68068,12.44434a2.13323,2.13323,0,1,1,4.24707,0,2.13358,2.13358,0,1,1-4.24707,0Zm3.333,0c0-.97607-.43848-1.54687-1.208-1.54687-.77246,0-1.207.5708-1.207,1.54688,0,.98389.43457,1.55029,1.207,1.55029C44.57522,13.99463,45.01369,13.42432,45.01369,12.44434Z" fill="#fff"/><path d="M51.57326,14.69775h-.92187l-.93066-3.31641h-.07031l-.92676,3.31641h-.91309l-1.24121-4.50293h.90137l.80664,3.436h.06641l.92578-3.436h.85254l.92578,3.436h.07031l.80273-3.436h.88867Z" fill="#fff"/><path d="M53.85354,10.19482H54.709v.71533h.06641a1.348,1.348,0,0,1,1.34375-.80225,1.46456,1.46456,0,0,1,1.55859,1.6748v2.915h-.88867V12.00586c0-.72363-.31445-1.0835-.97168-1.0835a1.03294,1.03294,0,0,0-1.0752,1.14111v2.63428h-.88867Z" fill="#fff"/><path d="M59.09377,8.437h.88867v6.26074h-.88867Z" fill="#fff"/><path d="M61.21779,12.44434a2.13346,2.13346,0,1,1,4.24756,0,2.1338,2.1338,0,1,1-4.24756,0Zm3.333,0c0-.97607-.43848-1.54687-1.208-1.54687-.77246,0-1.207.5708-1.207,1.54688,0,.98389.43457,1.55029,1.207,1.55029C64.11232,13.99463,64.5508,13.42432,64.5508,12.44434Z" fill="#fff"/><path d="M66.4009,13.42432c0-.81055.60352-1.27783,1.6748-1.34424l1.21973-.07031v-.38867c0-.47559-.31445-.74414-.92187-.74414-.49609,0-.83984.18213-.93848.50049h-.86035c.09082-.77344.81836-1.26953,1.83984-1.26953,1.12891,0,1.76563.562,1.76563,1.51318v3.07666h-.85547v-.63281h-.07031a1.515,1.515,0,0,1-1.35254.707A1.36026,1.36026,0,0,1,66.4009,13.42432Zm2.89453-.38477v-.37646l-1.09961.07031c-.62012.0415-.90137.25244-.90137.64941,0,.40527.35156.64111.835.64111A1.0615,1.0615,0,0,0,69.29543,13.03955Z" fill="#fff"/><path d="M71.34816,12.44434c0-1.42285.73145-2.32422,1.86914-2.32422a1.484,1.484,0,0,1,1.38086.79h.06641V8.437h.88867v6.26074h-.85156v-.71143h-.07031a1.56284,1.56284,0,0,1-1.41406.78564C72.0718,14.772,71.34816,13.87061,71.34816,12.44434Zm.918,0c0,.95508.4502,1.52979,1.20313,1.52979.749,0,1.21191-.583,1.21191-1.52588,0-.93848-.46777-1.52979-1.21191-1.52979C72.72121,10.91846,72.26613,11.49707,72.26613,12.44434Z" fill="#fff"/><path d="M79.23,12.44434a2.13323,2.13323,0,1,1,4.24707,0,2.13358,2.13358,0,1,1-4.24707,0Zm3.333,0c0-.97607-.43848-1.54687-1.208-1.54687-.77246,0-1.207.5708-1.207,1.54688,0,.98389.43457,1.55029,1.207,1.55029C82.12453,13.99463,82.563,13.42432,82.563,12.44434Z" fill="#fff"/><path d="M84.66945,10.19482h.85547v.71533h.06641a1.348,1.348,0,0,1,1.34375-.80225,1.46456,1.46456,0,0,1,1.55859,1.6748v2.915H87.605V12.00586c0-.72363-.31445-1.0835-.97168-1.0835a1.03294,1.03294,0,0,0-1.0752,1.14111v2.63428h-.88867Z" fill="#fff"/><path d="M93.51516,9.07373v1.1416h.97559v.74854h-.97559V13.2793c0,.47168.19434.67822.63672.67822a2.96657,2.96657,0,0,0,.33887-.02051v.74023a2.9155,2.9155,0,0,1-.4834.04541c-.98828,0-1.38184-.34766-1.38184-1.21582v-2.543h-.71484v-.74854h.71484V9.07373Z" fill="#fff"/><path d="M95.70461,8.437h.88086v2.48145h.07031a1.3856,1.3856,0,0,1,1.373-.80664,1.48339,1.48339,0,0,1,1.55078,1.67871v2.90723H98.69v-2.688c0-.71924-.335-1.0835-.96289-1.0835a1.05194,1.05194,0,0,0-1.13379,1.1416v2.62988h-.88867Z" fill="#fff"/><path d="M104.76125,13.48193a1.828,1.828,0,0,1-1.95117,1.30273A2.04531,2.04531,0,0,1,100.73,12.46045a2.07685,2.07685,0,0,1,2.07617-2.35254c1.25293,0,2.00879.856,2.00879,2.27V12.688h-3.17969v.0498a1.1902,1.1902,0,0,0,1.19922,1.29,1.07934,1.07934,0,0,0,1.07129-.5459Zm-3.126-1.45117h2.27441a1.08647,1.08647,0,0,0-1.1084-1.1665A1.15162,1.15162,0,0,0,101.63527,12.03076Z" fill="#fff"/></svg>'},ae={ariaLabel:"Get it on Google Play",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 238.96 70.87" role="img" aria-hidden="true"><rect x="-.11" width="239.17" height="70.87" rx="8.86" ry="8.86"/><path fill="#a6a6a6" d="M230.21,1.42c4.1,0,7.44,3.34,7.44,7.44v53.15c0,4.1-3.34,7.44-7.44,7.44H8.75c-4.1,0-7.44-3.34-7.44-7.44V8.86C1.31,4.76,4.65,1.42,8.75,1.42h221.46M230.21,0H8.75C3.88,0-.11,3.99-.11,8.86v53.15c0,4.87,3.99,8.86,8.86,8.86h221.46c4.87,0,8.86-3.99,8.86-8.86V8.86c0-4.87-3.99-8.86-8.86-8.86h0Z"/><g fill="#fff" stroke="#fff" stroke-miterlimit="10" stroke-width="0.2"><path d="M83.9,18.15c0,1.48-.44,2.67-1.32,3.55-1,1.05-2.3,1.57-3.9,1.57s-2.84-.53-3.91-1.59c-1.07-1.06-1.61-2.38-1.61-3.96s.54-2.89,1.61-3.96c1.07-1.06,2.38-1.6,3.91-1.6.76,0,1.49.15,2.18.44.69.3,1.25.69,1.66,1.19l-.93.94c-.7-.84-1.67-1.26-2.91-1.26-1.12,0-2.09.39-2.9,1.18s-1.22,1.81-1.22,3.06.41,2.28,1.22,3.06c.82.79,1.78,1.18,2.9,1.18,1.19,0,2.18-.4,2.97-1.19.51-.52.81-1.23.89-2.15h-3.86v-1.28h5.15c.05.28.07.54.07.8Z"/><path d="M92.07,13.71h-4.84v3.37h4.37v1.28h-4.37v3.37h4.84v1.31h-6.21v-10.63h6.21v1.31h0Z"/><path d="M97.83,23.03h-1.37v-9.32h-2.97v-1.31h7.3v1.31h-2.97s0,9.32,0,9.32Z"/><path d="M106.08,23.03v-10.63h1.36v10.63h-1.36Z"/><path d="M113.51,23.03h-1.37v-9.32h-2.97v-1.31h7.3v1.31h-2.97s0,9.32,0,9.32Z"/><path d="M130.3,21.66c-1.05,1.08-2.34,1.61-3.9,1.61s-2.85-.54-3.9-1.61c-1.05-1.07-1.57-2.39-1.57-3.94s.52-2.87,1.57-3.94c1.04-1.08,2.34-1.61,3.9-1.61s2.84.54,3.89,1.62c1.05,1.08,1.57,2.39,1.57,3.93s-.52,2.87-1.57,3.94ZM123.52,20.77c.79.8,1.75,1.19,2.89,1.19s2.1-.4,2.89-1.19c.79-.8,1.18-1.81,1.18-3.05s-.4-2.26-1.18-3.05c-.78-.8-1.75-1.19-2.89-1.19s-2.1.4-2.89,1.19c-.78.8-1.18,1.81-1.18,3.05s.4,2.26,1.18,3.05Z"/><path d="M133.79,23.03v-10.63h1.66l5.17,8.27h.06l-.06-2.05v-6.22h1.37v10.63h-1.43l-5.41-8.67h-.06l.06,2.05v6.62h-1.37,0Z"/></g><path fill="#fff" d="M120.61,38.54c-4.17,0-7.56,3.17-7.56,7.53s3.4,7.53,7.56,7.53,7.56-3.2,7.56-7.53-3.4-7.53-7.56-7.53ZM120.61,50.64c-2.28,0-4.25-1.88-4.25-4.57s1.97-4.57,4.25-4.57,4.25,1.85,4.25,4.57-1.97,4.57-4.25,4.57ZM104.11,38.54c-4.17,0-7.56,3.17-7.56,7.53s3.4,7.53,7.56,7.53,7.56-3.2,7.56-7.53-3.4-7.53-7.56-7.53ZM104.11,50.64c-2.28,0-4.25-1.88-4.25-4.57s1.97-4.57,4.25-4.57,4.25,1.85,4.25,4.57-1.97,4.57-4.25,4.57ZM84.48,40.85v3.2h7.65c-.23,1.8-.83,3.11-1.74,4.03-1.11,1.11-2.85,2.34-5.91,2.34-4.71,0-8.39-3.8-8.39-8.51s3.68-8.51,8.39-8.51c2.54,0,4.4,1,5.76,2.28l2.26-2.26c-1.91-1.83-4.45-3.22-8.02-3.22-6.45,0-11.87,5.25-11.87,11.7s5.42,11.7,11.87,11.7c3.48,0,6.11-1.14,8.16-3.28,2.11-2.11,2.77-5.08,2.77-7.48,0-.74-.06-1.43-.17-2h-10.76,0ZM164.75,43.33c-.63-1.68-2.54-4.8-6.45-4.8s-7.11,3.05-7.11,7.53c0,4.22,3.2,7.53,7.48,7.53,3.45,0,5.45-2.11,6.28-3.34l-2.57-1.71c-.86,1.26-2.03,2.08-3.71,2.08s-2.88-.77-3.65-2.28l10.08-4.17-.34-.86h0ZM154.47,45.84c-.09-2.91,2.26-4.4,3.94-4.4,1.31,0,2.43.66,2.8,1.6l-6.74,2.8ZM146.28,53.15h3.31v-22.15h-3.31v22.15ZM140.86,40.22h-.11c-.74-.88-2.17-1.68-3.97-1.68-3.77,0-7.22,3.31-7.22,7.56s3.45,7.51,7.22,7.51c1.8,0,3.22-.8,3.97-1.71h.11v1.08c0,2.88-1.54,4.42-4.03,4.42-2.03,0-3.28-1.46-3.8-2.68l-2.88,1.2c.83,2,3.03,4.45,6.68,4.45,3.88,0,7.16-2.28,7.16-7.85v-13.53h-3.14v1.23ZM137.06,50.64c-2.28,0-4.2-1.91-4.2-4.54s1.91-4.6,4.2-4.6,4.03,1.94,4.03,4.6-1.77,4.54-4.03,4.54ZM180.26,31h-7.92v22.15h3.31v-8.39h4.62c3.66,0,7.27-2.65,7.27-6.88s-3.6-6.88-7.27-6.88ZM180.34,41.68h-4.7v-7.59h4.7c2.47,0,3.87,2.05,3.87,3.8s-1.4,3.8-3.87,3.8h0ZM200.77,38.5c-2.39,0-4.87,1.05-5.9,3.39l2.94,1.23c.63-1.23,1.79-1.62,3.02-1.62,1.71,0,3.45,1.03,3.48,2.85v.23c-.6-.34-1.88-.86-3.45-.86-3.16,0-6.38,1.74-6.38,4.99,0,2.96,2.59,4.87,5.5,4.87,2.22,0,3.45-1,4.22-2.16h.11v1.71h3.19v-8.49c0-3.93-2.94-6.13-6.73-6.13h0ZM200.38,50.63c-1.08,0-2.59-.54-2.59-1.88,0-1.71,1.88-2.37,3.5-2.37,1.45,0,2.14.31,3.02.74-.26,2.05-2.02,3.5-3.93,3.5ZM219.12,38.98l-3.79,9.6h-.11l-3.93-9.6h-3.56l5.9,13.42-3.36,7.47h3.45l9.09-20.89h-3.68ZM189.35,53.15h3.31v-22.15h-3.31v22.15Z"/><path fill="#ea4335" d="M36.6,34.41l-18.86,20.02s0,0,0,.01c.58,2.17,2.56,3.77,4.92,3.77.94,0,1.83-.26,2.58-.7l.06-.04,21.23-12.25-9.94-10.82Z"/><path fill="#fbbc04" d="M55.68,31h-.02s-9.17-5.33-9.17-5.33l-10.33,9.19,10.36,10.36,9.12-5.26c1.6-.86,2.68-2.55,2.68-4.49s-1.07-3.61-2.65-4.47h0Z"/><path fill="#4285f4" d="M17.73,16.44c-.11.42-.17.86-.17,1.31v35.38c0,.45.06.89.17,1.31l19.51-19.51-19.51-18.49Z"/><path fill="#34a853" d="M36.74,35.43l9.76-9.76-21.21-12.3c-.77-.46-1.67-.73-2.63-.73-2.36,0-4.34,1.6-4.92,3.78h0s19,19,19,19h0Z"/></svg>'};var se=`@layer zkpassport {
16
+ .zkp-card {
17
+ --zkp-bg: #ffffff;
18
+ --zkp-fg: #111827;
19
+ --zkp-muted: #6b7280;
20
+ --zkp-border: #e5e7eb;
21
+ --zkp-surface: #f3f4f6;
22
+ --zkp-accent: #111827;
23
+ --zkp-brand: #2139a3;
24
+ --zkp-success: #16a34a;
25
+ --zkp-error: #dc2626;
26
+
27
+ all: revert;
28
+ position: relative;
29
+ box-sizing: border-box;
30
+ display: flex;
31
+ flex-direction: column;
32
+ width: 100%;
33
+ min-width: 280px;
34
+ max-width: 380px;
35
+ padding: 26px 20px 18px;
36
+ border: 1px solid var(--zkp-border);
37
+ border-radius: 14px;
38
+ background: var(--zkp-bg);
39
+ color: var(--zkp-fg);
40
+ font-family: ui-sans-serif, system-ui, sans-serif;
41
+ font-size: 14px;
42
+ line-height: 1.4;
43
+ }
44
+
45
+ .zkp-card[data-theme="dark"] {
46
+ --zkp-bg: #0f172a;
47
+ --zkp-fg: #f1f5f9;
48
+ --zkp-muted: #94a3b8;
49
+ --zkp-border: #334155;
50
+ --zkp-surface: #1e293b;
51
+ --zkp-accent: #f1f5f9;
52
+ --zkp-brand: #6b86d8;
53
+ --zkp-success: #4ade80;
54
+ --zkp-error: #f87171;
55
+ }
56
+
57
+ @media (prefers-color-scheme: dark) {
58
+ .zkp-card[data-theme="auto"] {
59
+ --zkp-bg: #0f172a;
60
+ --zkp-fg: #f1f5f9;
61
+ --zkp-muted: #94a3b8;
62
+ --zkp-border: #334155;
63
+ --zkp-surface: #1e293b;
64
+ --zkp-accent: #f1f5f9;
65
+ --zkp-brand: #6b86d8;
66
+ --zkp-success: #4ade80;
67
+ --zkp-error: #f87171;
68
+ }
69
+ }
70
+
71
+ .zkp-card * {
72
+ box-sizing: border-box;
73
+ }
74
+ .zkp-card button {
75
+ font: inherit;
76
+ cursor: pointer;
77
+ }
78
+
79
+ /* Header */
80
+ .zkp-header {
81
+ display: flex;
82
+ flex-direction: column;
83
+ align-items: center;
84
+ gap: 16px;
85
+ }
86
+ .zkp-header-icons {
87
+ display: flex;
88
+ align-items: center;
89
+ justify-content: center;
90
+ gap: 10px;
91
+ }
92
+ .zkp-zkp-icon,
93
+ .zkp-app-icon-slot {
94
+ flex: 0 0 auto;
95
+ height: 32px;
96
+ display: grid;
97
+ place-items: center;
98
+ }
99
+ .zkp-zkp-icon {
100
+ width: 32px;
101
+ }
102
+ .zkp-zkp-icon svg {
103
+ width: 100%;
104
+ height: 100%;
105
+ display: block;
106
+ }
107
+ .zkp-app-icon-slot {
108
+ max-width: 96px;
109
+ min-width: 32px;
110
+ }
111
+ .zkp-app-icon {
112
+ max-height: 100%;
113
+ max-width: 100%;
114
+ width: auto;
115
+ height: auto;
116
+ object-fit: contain;
117
+ display: block;
118
+ }
119
+ .zkp-header-dots {
120
+ display: flex;
121
+ gap: 4px;
122
+ }
123
+ .zkp-header-dots span {
124
+ width: 4px;
125
+ height: 4px;
126
+ border-radius: 50%;
127
+ background: var(--zkp-muted);
128
+ opacity: 0.5;
129
+ }
130
+ .zkp-title {
131
+ margin: 0;
132
+ text-align: center;
133
+ color: var(--zkp-muted);
134
+ font-size: 13px;
135
+ line-height: 1.45;
136
+ }
137
+ .zkp-title strong {
138
+ color: var(--zkp-fg);
139
+ font-weight: 600;
140
+ }
141
+
142
+ /* Restart button */
143
+ .zkp-restart {
144
+ position: absolute;
145
+ top: 6px;
146
+ right: 8px;
147
+ width: 24px;
148
+ height: 24px;
149
+ padding: 0;
150
+ border: 1px solid var(--zkp-border);
151
+ border-radius: 999px;
152
+ background: var(--zkp-bg);
153
+ color: var(--zkp-muted);
154
+ display: grid;
155
+ place-items: center;
156
+ transition:
157
+ color 120ms ease,
158
+ border-color 120ms ease;
159
+ }
160
+ .zkp-restart:hover {
161
+ color: var(--zkp-accent);
162
+ border-color: var(--zkp-accent);
163
+ }
164
+ .zkp-restart svg {
165
+ width: 14px;
166
+ height: 14px;
167
+ }
168
+
169
+ /* Dividers */
170
+ .zkp-divider {
171
+ height: 1px;
172
+ background: var(--zkp-border);
173
+ }
174
+ .zkp-divider-header {
175
+ margin: 16px 0 0;
176
+ }
177
+ .zkp-divider-top {
178
+ margin: 14px 0;
179
+ }
180
+ .zkp-divider-bottom {
181
+ margin: 10px 0 14px;
182
+ }
183
+
184
+ /* QR slot */
185
+ .zkp-qr-slot {
186
+ position: relative;
187
+ width: 100%;
188
+ aspect-ratio: 1;
189
+ margin: 16px 0 0;
190
+ background: var(--zkp-bg);
191
+ display: grid;
192
+ place-items: center;
193
+ overflow: hidden;
194
+ }
195
+ .zkp-qr {
196
+ width: 100%;
197
+ height: 100%;
198
+ color: black;
199
+ transition:
200
+ opacity 200ms ease,
201
+ transform 200ms ease;
202
+ }
203
+ .zkp-qr svg {
204
+ width: 100%;
205
+ height: 100%;
206
+ display: block;
207
+ }
208
+ .zkp-qr-logo {
209
+ position: absolute;
210
+ top: 50%;
211
+ left: 50%;
212
+ transform: translate(-50%, -50%);
213
+ width: 14%;
214
+ aspect-ratio: 1;
215
+ background: var(--zkp-bg);
216
+ padding: 3px;
217
+ border-radius: 50%;
218
+ display: grid;
219
+ place-items: center;
220
+ }
221
+ .zkp-qr-logo svg {
222
+ width: 100%;
223
+ height: 100%;
224
+ display: block;
225
+ }
226
+ .zkp-skeleton {
227
+ position: absolute;
228
+ inset: 0;
229
+ border-radius: 8px;
230
+ background: var(--zkp-surface);
231
+ }
232
+
233
+ /* QR slot state visibility */
234
+ .zkp-qr-slot[data-state="preparing"] .zkp-qr,
235
+ .zkp-qr-slot[data-state="preparing"] .zkp-qr-logo {
236
+ visibility: hidden;
237
+ }
238
+ .zkp-qr-slot[data-state="preparing"] .zkp-skeleton {
239
+ display: block;
240
+ }
241
+ .zkp-qr-slot:not([data-state="preparing"]) .zkp-skeleton {
242
+ display: none;
243
+ }
244
+ .zkp-qr-slot[data-state="connecting"] .zkp-qr,
245
+ .zkp-qr-slot[data-state="scanned"] .zkp-qr {
246
+ opacity: 0.65;
247
+ }
248
+ .zkp-qr-slot[data-state="generating"] .zkp-qr,
249
+ .zkp-qr-slot[data-state="success"] .zkp-qr,
250
+ .zkp-qr-slot[data-state="error"] .zkp-qr {
251
+ opacity: 0.35;
252
+ }
253
+ .zkp-qr-slot[data-state="generating"] .zkp-qr-logo,
254
+ .zkp-qr-slot[data-state="success"] .zkp-qr-logo,
255
+ .zkp-qr-slot[data-state="error"] .zkp-qr-logo {
256
+ opacity: 0;
257
+ }
258
+ .zkp-qr-slot[data-state="connecting"] .zkp-overlay,
259
+ .zkp-qr-slot[data-state="scanned"] .zkp-overlay,
260
+ .zkp-qr-slot[data-state="generating"] .zkp-overlay,
261
+ .zkp-qr-slot[data-state="success"] .zkp-overlay,
262
+ .zkp-qr-slot[data-state="error"] .zkp-overlay {
263
+ display: block;
264
+ }
265
+
266
+ /* Overlay */
267
+ .zkp-overlay {
268
+ position: absolute;
269
+ inset: 0;
270
+ display: none;
271
+ text-align: center;
272
+ background: color-mix(in srgb, var(--zkp-bg) 80%, transparent);
273
+ }
274
+ .zkp-overlay-body {
275
+ position: absolute;
276
+ top: 50%;
277
+ left: 50%;
278
+ transform: translate(-50%, -50%);
279
+ display: grid;
280
+ place-items: center;
281
+ }
282
+ .zkp-overlay-caption {
283
+ position: absolute;
284
+ top: calc(50% + 40px);
285
+ left: 8%;
286
+ right: 8%;
287
+ text-align: center;
288
+ color: var(--zkp-fg);
289
+ font-size: 14px;
290
+ font-weight: 500;
291
+ line-height: 1.4;
292
+ }
293
+
294
+ /* State icons */
295
+ .zkp-spinner {
296
+ width: 96px;
297
+ height: 96px;
298
+ color: var(--zkp-brand);
299
+ }
300
+ .zkp-spinner svg {
301
+ width: 100%;
302
+ height: 100%;
303
+ display: block;
304
+ }
305
+ .zkp-spinner-arc {
306
+ transform-origin: 50% 50%;
307
+ animation: zkp-spinner-rotate 1.4s linear infinite;
308
+ }
309
+ .zkp-scanned-phone {
310
+ width: 56px;
311
+ height: 56px;
312
+ border-radius: 50%;
313
+ background: #efefef;
314
+ color: var(--zkp-accent);
315
+ display: grid;
316
+ place-items: center;
317
+ animation: zkp-scanned-pulse 1.6s ease-in-out infinite;
318
+ }
319
+ .zkp-scanned-phone svg {
320
+ width: 28px;
321
+ height: 28px;
322
+ }
323
+ .zkp-check,
324
+ .zkp-error-icon {
325
+ width: 44px;
326
+ height: 44px;
327
+ border-radius: 50%;
328
+ color: #fff;
329
+ display: grid;
330
+ place-items: center;
331
+ animation: zkp-pop 220ms ease both;
332
+ }
333
+ .zkp-check {
334
+ background: var(--zkp-success);
335
+ }
336
+ .zkp-error-icon {
337
+ background: var(--zkp-error);
338
+ }
339
+ .zkp-check svg,
340
+ .zkp-error-icon svg {
341
+ width: 60%;
342
+ height: 60%;
343
+ }
344
+
345
+ /* Steps */
346
+ .zkp-steps {
347
+ display: flex;
348
+ flex-direction: column;
349
+ gap: 6px;
350
+ }
351
+ .zkp-step {
352
+ display: grid;
353
+ grid-template-columns: 28px 1fr;
354
+ column-gap: 10px;
355
+ align-items: center;
356
+ min-height: 28px;
357
+ transition: opacity 200ms ease;
358
+ }
359
+ .zkp-step-marker {
360
+ width: 20px;
361
+ height: 20px;
362
+ border-radius: 50%;
363
+ border: 2px solid var(--zkp-muted);
364
+ background: var(--zkp-surface);
365
+ color: transparent;
366
+ display: grid;
367
+ place-items: center;
368
+ justify-self: center;
369
+ align-self: center;
370
+ transition:
371
+ width 200ms ease,
372
+ height 200ms ease,
373
+ background 200ms ease,
374
+ border-color 200ms ease,
375
+ color 200ms ease;
376
+ }
377
+ .zkp-step-marker svg {
378
+ width: 12px;
379
+ height: 12px;
380
+ }
381
+ .zkp-step[data-status="done"] .zkp-step-marker {
382
+ background: var(--zkp-success);
383
+ border-color: var(--zkp-success);
384
+ color: #fff;
385
+ }
386
+ .zkp-step[data-status="current"] .zkp-step-marker {
387
+ border-color: var(--zkp-brand);
388
+ animation: zkp-step-pulse 1.4s ease-in-out infinite;
389
+ }
390
+ .zkp-step[data-mode="icon"] .zkp-step-marker {
391
+ width: 28px;
392
+ height: 28px;
393
+ border-radius: 7px;
394
+ border: 1px solid var(--zkp-border);
395
+ color: var(--zkp-fg);
396
+ animation: none;
397
+ }
398
+ .zkp-step[data-mode="icon"] .zkp-step-marker svg {
399
+ width: 14px;
400
+ height: 14px;
401
+ }
402
+ .zkp-step-text {
403
+ font-size: 13px;
404
+ color: var(--zkp-muted);
405
+ line-height: 1.4;
406
+ transition: color 200ms ease;
407
+ }
408
+ .zkp-step[data-status="current"] .zkp-step-text,
409
+ .zkp-step[data-status="pending"] .zkp-step-text {
410
+ color: var(--zkp-fg);
411
+ }
412
+ .zkp-step[data-status="current"] .zkp-step-text {
413
+ font-weight: 500;
414
+ }
415
+ .zkp-step-text a {
416
+ color: inherit;
417
+ text-decoration: underline;
418
+ font-weight: 600;
419
+ }
420
+
421
+ /* Collapse */
422
+ .zkp-collapse {
423
+ display: flex;
424
+ flex-direction: column;
425
+ gap: 6px;
426
+ height: auto;
427
+ transition: height 320ms ease;
428
+ }
429
+ .zkp-collapse-out {
430
+ height: 0;
431
+ overflow: hidden;
432
+ }
433
+
434
+ /* Open-in-app deep link (mobile only, waiting state) */
435
+ .zkp-open-app {
436
+ display: none;
437
+ margin: 16px 0 0;
438
+ padding: 12px 16px;
439
+ border-radius: 10px;
440
+ background: var(--zkp-accent);
441
+ color: var(--zkp-bg);
442
+ font-size: 15px;
443
+ font-weight: 600;
444
+ text-align: center;
445
+ text-decoration: none;
446
+ box-shadow: 0 4px 12px rgba(17, 24, 39, 0.18);
447
+ transition: transform 150ms ease;
448
+ }
449
+ .zkp-open-app:active {
450
+ transform: translateY(1px);
451
+ }
452
+ @media (hover: none) and (pointer: coarse) {
453
+ .zkp-card[data-state="waiting"] .zkp-open-app {
454
+ display: block;
455
+ }
456
+ }
457
+
458
+ /* Retry */
459
+ .zkp-result-actions {
460
+ display: flex;
461
+ align-items: center;
462
+ justify-content: center;
463
+ }
464
+ .zkp-result-actions:empty {
465
+ display: none;
466
+ }
467
+ .zkp-retry {
468
+ margin-top: 4px !important;
469
+ padding: 10px 20px !important;
470
+ border: none !important;
471
+ border-radius: 999px !important;
472
+ background: var(--zkp-accent) !important;
473
+ color: var(--zkp-bg) !important;
474
+ font-size: 14px !important;
475
+ font-weight: 600 !important;
476
+ line-height: 1.2 !important;
477
+ transition: transform 150ms ease;
478
+ }
479
+ .zkp-retry:active {
480
+ transform: translateY(1px);
481
+ }
482
+
483
+ /* Footer */
484
+ .zkp-footer {
485
+ display: flex;
486
+ align-items: center;
487
+ justify-content: space-between;
488
+ gap: 8px;
489
+ }
490
+ .zkp-footer-label {
491
+ font-size: 13px;
492
+ color: var(--zkp-muted);
493
+ }
494
+ .zkp-store-buttons {
495
+ display: flex;
496
+ align-items: center;
497
+ gap: 6px;
498
+ }
499
+ .zkp-store-button {
500
+ display: inline-flex;
501
+ text-decoration: none;
502
+ transition: transform 150ms ease;
503
+ }
504
+ .zkp-store-button:hover {
505
+ transform: translateY(-1px);
506
+ }
507
+ .zkp-store-button svg {
508
+ display: block;
509
+ height: 28px;
510
+ width: auto;
511
+ }
512
+
513
+ /* Keyframes */
514
+ @keyframes zkp-spinner-rotate {
515
+ to {
516
+ transform: rotate(360deg);
517
+ }
518
+ }
519
+ @keyframes zkp-pop {
520
+ from {
521
+ transform: scale(0.6);
522
+ opacity: 0;
523
+ }
524
+ to {
525
+ transform: scale(1);
526
+ opacity: 1;
527
+ }
528
+ }
529
+ @keyframes zkp-scanned-pulse {
530
+ 0%,
531
+ 100% {
532
+ transform: scale(1);
533
+ }
534
+ 50% {
535
+ transform: scale(1.08);
536
+ }
537
+ }
538
+ @keyframes zkp-step-pulse {
539
+ 0%,
540
+ 100% {
541
+ transform: scale(1);
542
+ }
543
+ 50% {
544
+ transform: scale(1.08);
545
+ }
546
+ }
547
+
548
+ /* Reduced motion */
549
+ @media (prefers-reduced-motion: reduce) {
550
+ .zkp-qr {
551
+ transition: none;
552
+ }
553
+ .zkp-spinner-arc {
554
+ animation-duration: 3.5s;
555
+ }
556
+ .zkp-scanned-phone,
557
+ .zkp-check,
558
+ .zkp-error-icon {
559
+ animation: none;
560
+ }
561
+ }
562
+ }
563
+ `;function ie(t){let[e,r]=D("preparing"),[a,s]=D(null),[n,p]=D(null),[l,u]=D(0),i=h1(t);i.current=t;let f=h1(null);f.current===null&&(f.current=new ZKPassport(t.domain)),e1(()=>{let _=false,d=false;r("preparing"),s(null),p(null);let{domain:m,theme:C,query:z,onReady:g,onRetryClicked:h,onBridgeConnect:M,onRequestReceived:R,onGeneratingProof:H,onProofGenerated:t1,onResult:E,onReject:U,onError:b,...N}=i.current,y1=()=>{d||(d=true,S(i.current.onReady));},A=r1=>(...x)=>{if(!_)try{r1(...x);}catch{r("error");}};return f.current.request(N).then(r1=>{if(_)return;let x;try{x=z(r1);}catch{r("error");return}x.onBridgeConnect(A(()=>{r(w=>w==="preparing"||w==="connecting"?"waiting":w),y1(),S(i.current.onBridgeConnect);})),x.onRequestReceived(A(()=>{r("scanned"),S(i.current.onRequestReceived);})),x.onGeneratingProof(A(()=>{r("generating"),S(i.current.onGeneratingProof);})),x.onProofGenerated(A(w=>{S(i.current.onProofGenerated,w);})),x.onResult(A(w=>{r(w.verified?"success":"error"),S(i.current.onResult,w);})),x.onReject(A(()=>{r("error"),S(i.current.onReject);})),x.onError(A(w=>{r("error"),S(i.current.onError,w);}));try{x.requestReceived()?r("scanned"):x.isBridgeConnected()?(r("waiting"),y1()):r("connecting");}catch{r("error");}s(x.url);try{p(Me(x.url));}catch{r("error");}}).catch(()=>{_||r("error");}),()=>{_=true;}},[l]);let o=F1(()=>{S(i.current.onRetryClicked),u(_=>_+1);},[]);return {state:e,url:a,qrSvg:n,retry:o}}function Me(t){let e=be.create(t,{errorCorrectionLevel:"H"}),r=e.modules.size,a=e.modules.data,s=100/r,n=o=>o.toFixed(3),p=[[0,0],[0,r-7],[r-7,0]],l=(o,_)=>p.some(([d,m])=>o>=d&&o<d+7&&_>=m&&_<m+7),u="",i=s*.42;for(let o=0;o<r;o++)for(let _=0;_<r;_++){if(!a[o*r+_]||l(o,_))continue;let d=(_+.5)*s,m=(o+.5)*s;u+=`<circle cx="${n(d)}" cy="${n(m)}" r="${n(i)}"/>`;}let f="";for(let[o,_]of p){let d=(_+3.5)*s,m=(o+3.5)*s;f+=`<circle cx="${n(d)}" cy="${n(m)}" r="${n(s*3)}" fill="none" stroke="currentColor" stroke-width="${n(s)}"/><circle cx="${n(d)}" cy="${n(m)}" r="${n(s*1.5)}"/>`;}return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" shape-rendering="geometricPrecision" fill="currentColor">${f}${u}</svg>`}function S(t,...e){if(t)try{t(...e);}catch{}}var Ze=0;function c(t,e,r,a,s,n){e||(e={});var p,l,u=e;if("ref"in u)for(l in u={},e)l=="ref"?p=e[l]:u[l]=e[l];var i={type:t,props:u,key:r,ref:p,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ze,__i:-1,__u:0,__source:s,__self:n};if(typeof t=="function"&&(p=t.defaultProps))for(l in p)u[l]===void 0&&(u[l]=p[l]);return v.vnode&&v.vnode(i),i}function ce({options:t,controlRef:e}){G1(Ne,[]);let{state:r,url:a,qrSvg:s,retry:n}=ie(t);e1(()=>{if(e)return e.current={retry:n},()=>{e.current=null;}},[n,e]);let p=t.name??t.domain??"",l=t.logo??"",u=r==="scanned"||r==="generating"||r==="success"||r==="error",i=Se(r),f=Le(r),o=r==="waiting"||r==="scanned";return c("div",{className:"zkp-card","data-state":r,"data-theme":t.theme??"auto",children:[o?c("button",{type:"button",className:"zkp-restart","aria-label":"Restart verification",title:"Restart verification",onClick:n,dangerouslySetInnerHTML:{__html:ne}}):null,c("div",{className:"zkp-header",children:[c("div",{className:"zkp-header-icons",children:[c("div",{className:"zkp-zkp-icon",dangerouslySetInnerHTML:{__html:g1}}),l?c(L,{children:[c("div",{className:"zkp-header-dots",children:[c("span",{}),c("span",{}),c("span",{})]}),c("div",{className:"zkp-app-icon-slot",children:c("img",{className:"zkp-app-icon",src:l,alt:p?`${p} icon`:""})})]}):null]}),c("p",{className:"zkp-title",children:[c("strong",{children:p||"This app"})," uses ",c("strong",{children:"ZKPassport"})," to verify identity without compromising your privacy."]})]}),c("div",{className:"zkp-divider zkp-divider-header"}),c(Re,{state:r,qrSvg:s,caption:f}),r==="waiting"&&a?c("a",{className:"zkp-open-app",href:a,children:"Open in ZKPassport App"}):null,c("div",{className:"zkp-divider zkp-divider-top"}),c("div",{className:"zkp-steps",children:[c(V,{status:i[0],icon:u?null:ee,children:[c("a",{href:$1,target:"_blank",rel:"noopener noreferrer",children:"Download"})," the ZKPassport mobile app."]}),c(V,{status:i[1],icon:u?null:J1,children:"Scan this QR code with the ZKPassport app."}),c(V,{status:i[2],icon:u?null:X1,children:"Approve the request on your phone."}),c("div",{className:`zkp-collapse${u?"":" zkp-collapse-out"}`,children:c(L,{children:[c(V,{status:i[3],icon:null,children:"Generate proof on your device."}),c(V,{status:i[4],icon:null,children:"Verify the proof."})]})})]}),c("div",{className:`zkp-collapse${u?" zkp-collapse-out":""}`,children:c("div",{className:"zkp-collapse-inner",children:[c("div",{className:"zkp-divider zkp-divider-bottom"}),c("div",{className:"zkp-footer",children:[c("span",{className:"zkp-footer-label",children:"ZKPassport App"}),c("div",{className:"zkp-store-buttons",children:[c(pe,{href:Q1,badge:oe}),c(pe,{href:W1,badge:ae})]})]})]})}),r==="error"?c("div",{className:"zkp-result-actions",children:c("button",{type:"button",className:"zkp-retry",onClick:n,children:"Try again"})}):null]})}function Le(t){switch(t){case "scanned":return "Approve the request on your phone";case "generating":return "Generating proof\u2026";case "success":return "Verification complete";case "error":return "Something went wrong";default:return ""}}function Se(t){switch(t){case "scanned":return ["done","done","current","pending","pending"];case "generating":return ["done","done","done","current","pending"];case "success":return ["done","done","done","done","done"];default:return ["pending","pending","pending","pending","pending"]}}function Re({state:t,qrSvg:e,caption:r}){return c("div",{className:"zkp-qr-slot","data-state":t,children:[c("div",{className:"zkp-skeleton"}),c("div",{className:"zkp-qr",dangerouslySetInnerHTML:e?{__html:e}:void 0}),e?c("div",{className:"zkp-qr-logo",dangerouslySetInnerHTML:{__html:g1}}):null,c("div",{className:"zkp-overlay",children:[c("div",{className:"zkp-overlay-body",children:[t==="connecting"||t==="generating"?c("div",{className:"zkp-spinner",dangerouslySetInnerHTML:{__html:Y1}}):null,t==="scanned"?c("div",{className:"zkp-scanned-phone",dangerouslySetInnerHTML:{__html:re}}):null,t==="success"?c("div",{className:"zkp-check",dangerouslySetInnerHTML:{__html:m1}}):null,t==="error"?c("div",{className:"zkp-error-icon",dangerouslySetInnerHTML:{__html:te}}):null]}),r?c("div",{className:"zkp-overlay-caption",children:r},t):null]})]})}function V({status:t,icon:e,children:r}){return c("div",{className:"zkp-step","data-status":t,"data-mode":e?"icon":"progress",children:[c("div",{className:"zkp-step-marker",dangerouslySetInnerHTML:{__html:e??m1}}),c("div",{className:"zkp-step-text",children:r})]})}function pe({href:t,badge:e}){return c("a",{className:"zkp-store-button",href:t,target:"_blank",rel:"noopener noreferrer","aria-label":e.ariaLabel,dangerouslySetInnerHTML:{__html:e.svg}})}var le="data-zkpassport-ui",k1=false;function Ne(){if(k1||typeof document>"u")return;if(document.querySelector(`style[${le}]`)){k1=true;return}let t=document.createElement("style");t.setAttribute(le,""),t.textContent=se,document.head.appendChild(t),k1=true;}function tt(t){let e=useRef(null);return useEffect(()=>{let r=e.current;if(r)return ()=>{d1(null,r);}},[]),useEffect(()=>{let r=e.current;r&&d1(l1(ce,{options:t}),r);}),jsx("div",{ref:e})}
564
+ export{tt as ZKPassportQRCode};//# sourceMappingURL=react.js.map
565
+ //# sourceMappingURL=react.js.map