@abtnode/blocklet-services 1.16.14-beta-c308dc3b → 1.16.14-beta-963cb583
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/api/libs/connect/session.js +20 -18
- package/api/libs/image.js +16 -6
- package/api/routes/oauth.js +15 -7
- package/api/routes/user.js +2 -2
- package/build/asset-manifest.json +141 -124
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/service-worker.js.map +1 -1
- package/build/static/css/{4603.dce369d5.chunk.css → 5355.c4fb5c4a.chunk.css} +1 -1
- package/build/static/css/{780.e3db6e49.chunk.css → 5982.ac464505.chunk.css} +1 -1
- package/build/static/css/{2130.b9437a64.chunk.css → 7272.0ae9f678.chunk.css} +1 -1
- package/build/static/js/1132.c008fe16.chunk.js +3 -0
- package/build/static/js/1480.f89236fc.chunk.js +2 -0
- package/build/static/js/1546.05fce5c0.chunk.js +2 -0
- package/build/static/js/1565.4331eeaf.chunk.js +2 -0
- package/build/static/js/1660.e2ff5a21.chunk.js +2 -0
- package/build/static/js/1760.0f19b880.chunk.js +2 -0
- package/build/static/js/1980.79862e88.chunk.js +2 -0
- package/build/static/js/2291.80adfd96.chunk.js +2 -0
- package/build/static/js/2393.9c045444.chunk.js +2 -0
- package/build/static/js/252.8dd19212.chunk.js +3 -0
- package/build/static/js/2653.58a5430b.chunk.js +2 -0
- package/build/static/js/2664.a42cbb96.chunk.js +2 -0
- package/build/static/js/2686.3a7c583a.chunk.js +2 -0
- package/build/static/js/3179.03c92dcb.chunk.js +2 -0
- package/build/static/js/3551.a3cfa6aa.chunk.js +2 -0
- package/build/static/js/3593.98d9341a.chunk.js +2 -0
- package/build/static/js/3595.d4510796.chunk.js +3 -0
- package/build/static/js/4023.f88d8f4b.chunk.js +2 -0
- package/build/static/js/4164.5adbbbba.chunk.js +2 -0
- package/build/static/js/4319.8d9e189e.chunk.js +2 -0
- package/build/static/js/{445.7ad42b19.chunk.js → 445.9fc4bb72.chunk.js} +3 -3
- package/build/static/js/4682.23dd054e.chunk.js +2 -0
- package/build/static/js/4716.58477c5c.chunk.js +2 -0
- package/build/static/js/4764.51208c0d.chunk.js +2 -0
- package/build/static/js/5176.9f08e927.chunk.js +2 -0
- package/build/static/js/5355.4b07ad55.chunk.js +2 -0
- package/build/static/js/5434.523d071d.chunk.js +2 -0
- package/build/static/js/5465.f32033e1.chunk.js +2 -0
- package/build/static/js/5541.1d065ac6.chunk.js +2 -0
- package/build/static/js/5645.3c5c0f93.chunk.js +2 -0
- package/build/static/js/5683.46331372.chunk.js +2 -0
- package/build/static/js/5848.487098c8.chunk.js +2 -0
- package/build/static/js/5859.9b88d959.chunk.js +2 -0
- package/build/static/js/5960.6c234993.chunk.js +2 -0
- package/build/static/js/5982.19c5663f.chunk.js +2 -0
- package/build/static/js/617.ecc73170.chunk.js +3 -0
- package/build/static/js/6186.cc8ce4a4.chunk.js +2 -0
- package/build/static/js/6326.3a3cb154.chunk.js +2 -0
- package/build/static/js/6378.29466d9e.chunk.js +2 -0
- package/build/static/js/6700.e22cc266.chunk.js +2 -0
- package/build/static/js/6711.38948be4.chunk.js +2 -0
- package/build/static/js/6737.5aef67e7.chunk.js +2 -0
- package/build/static/js/6771.583c16c9.chunk.js +3 -0
- package/build/static/js/6856.163537c7.chunk.js +2 -0
- package/build/static/js/6921.2f39f974.chunk.js +2 -0
- package/build/static/js/7.c01bf0f4.chunk.js +2 -0
- package/build/static/js/7006.b21fb368.chunk.js +2 -0
- package/build/static/js/7272.608c5875.chunk.js +3 -0
- package/build/static/js/7977.38c9fc34.chunk.js +2 -0
- package/build/static/js/8143.6b921364.chunk.js +2 -0
- package/build/static/js/8179.34de3f17.chunk.js +2 -0
- package/build/static/js/8365.9904e38d.chunk.js +3 -0
- package/build/static/js/8437.0d88b9db.chunk.js +2 -0
- package/build/static/js/8527.437a8769.chunk.js +2 -0
- package/build/static/js/861.a19bf499.chunk.js +2 -0
- package/build/static/js/878.4424e6e9.chunk.js +2 -0
- package/build/static/js/9102.7087c66c.chunk.js +2 -0
- package/build/static/js/9106.783701ea.chunk.js +2 -0
- package/build/static/js/9107.967c2ac1.chunk.js +2 -0
- package/build/static/js/926.d1421ce1.chunk.js +2 -0
- package/build/static/js/9260.d8f59a75.chunk.js +3 -0
- package/build/static/js/9260.d8f59a75.chunk.js.LICENSE.txt +7 -0
- package/build/static/js/9409.0d5d4de2.chunk.js +2 -0
- package/build/static/js/9620.4b7c9e8b.chunk.js +2 -0
- package/build/static/js/9657.e974d577.chunk.js +2 -0
- package/build/static/js/9899.18509ac9.chunk.js +2 -0
- package/build/static/js/main.081afde0.js +3 -0
- package/build/static/js/{main.3e42ffde.js.LICENSE.txt → main.081afde0.js.LICENSE.txt} +0 -6
- package/build/static/media/empty-space-nft.3878bc5c8ba6490ef5075fdda24be921.svg +59 -0
- package/build/static/media/space-connected.9a4e18fd2bc7d065191b0d241a131c28.svg +3 -0
- package/package.json +35 -35
- package/api/libs/translate.js +0 -12
- package/build/static/js/1162.ff3136ae.chunk.js +0 -2
- package/build/static/js/1210.b6221400.chunk.js +0 -2
- package/build/static/js/1255.0e8a8a45.chunk.js +0 -2
- package/build/static/js/1832.3ac49edc.chunk.js +0 -2
- package/build/static/js/1980.dc299167.chunk.js +0 -2
- package/build/static/js/2130.f123740e.chunk.js +0 -3
- package/build/static/js/2139.341406d2.chunk.js +0 -2
- package/build/static/js/3242.c54d8ce1.chunk.js +0 -2
- package/build/static/js/3464.12806bfe.chunk.js +0 -2
- package/build/static/js/3800.f5b8660e.chunk.js +0 -2
- package/build/static/js/3963.2e06f9bc.chunk.js +0 -3
- package/build/static/js/4056.7104fbed.chunk.js +0 -2
- package/build/static/js/4319.e99b5af9.chunk.js +0 -2
- package/build/static/js/4359.5ed52fe3.chunk.js +0 -2
- package/build/static/js/4492.97b0d4f6.chunk.js +0 -2
- package/build/static/js/4547.3692fa06.chunk.js +0 -2
- package/build/static/js/4603.7a55b2c4.chunk.js +0 -2
- package/build/static/js/4651.3fbbf7ac.chunk.js +0 -3
- package/build/static/js/4682.81053e18.chunk.js +0 -2
- package/build/static/js/4716.a1240199.chunk.js +0 -2
- package/build/static/js/5050.7feba723.chunk.js +0 -3
- package/build/static/js/5052.8d91917d.chunk.js +0 -2
- package/build/static/js/5176.68fd3fde.chunk.js +0 -2
- package/build/static/js/5233.faabaae9.chunk.js +0 -2
- package/build/static/js/5376.9c06ee1e.chunk.js +0 -3
- package/build/static/js/5430.6aa38ea1.chunk.js +0 -2
- package/build/static/js/5491.f227b5b4.chunk.js +0 -2
- package/build/static/js/5645.a17cd258.chunk.js +0 -2
- package/build/static/js/5711.aa17ef28.chunk.js +0 -2
- package/build/static/js/5813.3f792b20.chunk.js +0 -2
- package/build/static/js/6315.59e078f6.chunk.js +0 -2
- package/build/static/js/652.9c9e49fa.chunk.js +0 -2
- package/build/static/js/655.cdee65b4.chunk.js +0 -2
- package/build/static/js/6711.a62d0bcd.chunk.js +0 -2
- package/build/static/js/6737.4f37dd4a.chunk.js +0 -2
- package/build/static/js/6792.a534f860.chunk.js +0 -3
- package/build/static/js/6792.a534f860.chunk.js.LICENSE.txt +0 -21
- package/build/static/js/6891.6c7018ab.chunk.js +0 -2
- package/build/static/js/7006.0aa7d1b3.chunk.js +0 -2
- package/build/static/js/7291.5553195e.chunk.js +0 -2
- package/build/static/js/731.9f99f66f.chunk.js +0 -2
- package/build/static/js/7371.d13e6cd3.chunk.js +0 -2
- package/build/static/js/7518.5b02f3ba.chunk.js +0 -2
- package/build/static/js/766.ab730327.chunk.js +0 -2
- package/build/static/js/780.32bf1f5b.chunk.js +0 -2
- package/build/static/js/8031.9944bf3c.chunk.js +0 -2
- package/build/static/js/8395.b1ffb35e.chunk.js +0 -2
- package/build/static/js/8437.e4b47fc3.chunk.js +0 -2
- package/build/static/js/861.1e3923ec.chunk.js +0 -2
- package/build/static/js/8669.814198b8.chunk.js +0 -2
- package/build/static/js/868.60de5f6d.chunk.js +0 -2
- package/build/static/js/8960.2b3e5e40.chunk.js +0 -2
- package/build/static/js/9381.4be08f8a.chunk.js +0 -2
- package/build/static/js/9409.ce15e157.chunk.js +0 -2
- package/build/static/js/9476.bc480cfc.chunk.js +0 -2
- package/build/static/js/9506.d732d124.chunk.js +0 -2
- package/build/static/js/982.11dc355f.chunk.js +0 -3
- package/build/static/js/main.3e42ffde.js +0 -3
- package/build/static/media/iconify.212917dd32288c600255.cjs +0 -2
- /package/build/static/{media/iconify.212917dd32288c600255.cjs.LICENSE.txt → js/1132.c008fe16.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{982.11dc355f.chunk.js.LICENSE.txt → 252.8dd19212.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4651.3fbbf7ac.chunk.js.LICENSE.txt → 3595.d4510796.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{445.7ad42b19.chunk.js.LICENSE.txt → 445.9fc4bb72.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3963.2e06f9bc.chunk.js.LICENSE.txt → 617.ecc73170.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{5050.7feba723.chunk.js.LICENSE.txt → 6771.583c16c9.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2130.f123740e.chunk.js.LICENSE.txt → 7272.608c5875.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{5376.9c06ee1e.chunk.js.LICENSE.txt → 8365.9904e38d.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[6856,6378],{26658:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return k}});var o,s=t(71171),r=t(32723),a=t(34795),i=t(30969),c=t(16380),l=t(30734),u=t(94308),f=t(238),d=t(94984),p=t(50007),v=t(47333),h=t(20244),x=t(85752),w=t(37574);var g=(0,x.Z)((function(e){var n=e.SessionContext,t=e.webWalletUrl,o=e.onSuccess,s=(0,i.useContext)(n),c=s.api,x=s.session,g=(0,v.PE)(),b=g.t,P=g.locale,k=(0,l.useNavigate)(),Z=new URL(window.location.href).searchParams,_=Z.get("redirect"),E=function(){var e=(0,a.Z)((0,r.Z)().mark((function e(n,t){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(n,t),e.next=3,x.refresh();case 3:d.Z.success(b("exchangePassport.success")),setTimeout((function(){if(_){var e=decodeURIComponent(_);e.startsWith(h.WELLKNOWN_SERVICE_PATH_PREFIX)?k(e,{replace:!0}):window.location=e}else window.location=window.env.pathPrefix||window.env.apiPrefix||"/"}),3e3);case 5:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),j={},y=Z.get("componentId");return y&&(j.componentId=y),x.loading?(0,w.jsx)(f.Z,{children:(0,w.jsx)(u.Z,{})}):(0,w.jsx)(m,{children:(0,w.jsx)("div",{className:"connect-wrapper",children:(0,w.jsx)(p.default,{className:"connect",action:"exchange-passport",checkFn:c.get,checkTimeout:6e5,webWalletUrl:t,onSuccess:E,onError:function(e){d.Z.error(e.message)},locale:P,messages:{title:b("exchangePassport.dialog.title"),scan:b("exchangePassport.dialog.scan"),confirm:b("exchangePassport.dialog.confirm"),success:b("exchangePassport.dialog.success")},extraParams:j,extraContent:null})})})})),m=c.default.div(o||(o=(0,s.Z)(["\n box-sizing: border-box;\n width: 100%;\n height: 100vh;\n position: relative;\n display: flex;\n flex-direction: column;\n .connect-wrapper {\n flex: 1;\n }\n .connect {\n background: #fafafa;\n }\n"]))),b=t(4485),P=t(38507);function k(){var e=(0,P.yP)();return(0,w.jsx)(g,{SessionContext:b.B3,webWalletUrl:e,onSuccess:function(e,n){e.sessionToken&&((0,P.ZB)(n(e.sessionToken)),(0,P.zI)(n(e.refreshToken)))}})}},19477:function(e,n,t){var o=t(2717),s=t(37095),r=t(93113);e.exports={translations:{zh:o(r),en:o(s)}}},85752:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var o=t(33028),s=t(47333),r=t(19477),a=t(37574);function i(e){return function(n){return(0,a.jsx)(s.Iw,{translations:r.translations,children:(0,a.jsx)(e,(0,o.Z)({},n))})}}},46378:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isNavigator=n.isBrowser=n.off=n.on=n.noop=void 0;n.noop=function(){},n.on=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];e&&e.addEventListener&&e.addEventListener.apply(e,n)},n.off=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];e&&e.removeEventListener&&e.removeEventListener.apply(e,n)},n.isBrowser="undefined"!==typeof window,n.isNavigator="undefined"!==typeof navigator}}]);
|
|
2
|
+
//# sourceMappingURL=6856.163537c7.chunk.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[6921],{23586:function(e,t,n){var r=n(33028),o=n(59740),a=n(30969),i=n(24974),l=n.n(i),c=n(9214),s=n(79164),d=n(22797),p=n(79216),v=n(37574),u=["did"],m={did:l().string.isRequired,size:l().number,component:l().string,copyable:l().bool,responsive:l().bool,showCopyButtonInTooltip:l().bool,inline:l().bool,append:l().any,compact:l().bool,startChars:l().number,endChars:l().number,locale:l().oneOf(["en","zh"])},f=function(e,t,n){if(n){var r=Uint8Array.from(e.slice(2).match(/.{1,2}/g).map((function(e){return parseInt(e,16)}))).slice(0,8).reduce((function(e,t){return e+t}),0)%c.colors.length;return c.colors[r]}return t.color},b=function(e,t,n){return t?.75*n:{0:!0,6:!0,17:!0}[e.roleType]?n:.75*n},Z=(0,a.forwardRef)((function(e,t){var n=e.did,a=(0,o.Z)(e,u),i=(0,p.Zu)(n),l=i?void 0:(0,c.getDIDMotifInfo)(n),m=(0,p.yv)(a.size),Z=[(0,v.jsx)("span",{style:{fontSize:m,color:f(n,l,i)},children:"DID:"},"prefix-did"),(0,v.jsx)("span",{className:"did-address-text",style:{fontSize:m},children:"ABT:"},"prefix-abt"),(0,v.jsx)(d.Z,{did:n,size:b(l,i,a.size||18),style:{display:"inline-flex",alignItems:"center",marginLeft:2,marginRight:4},blockiesPadding:!1,className:"did-address-avatar"},"avatar")];return(0,v.jsx)(s.Z,(0,r.Z)((0,r.Z)({ref:t},a),{},{prepend:Z,children:n}))}));t.Z=Z,Z.propTypes=m,Z.defaultProps={size:0,component:"span",copyable:!0,responsive:!0,showCopyButtonInTooltip:!1,inline:!1,append:null,compact:!1,startChars:6,endChars:6,locale:"en"}},27724:function(e,t,n){var r=n(71600);t.Z=void 0;var o=r(n(48035)),a=n(37574),i=(0,o.default)((0,a.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done");t.Z=i},70576:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(31461),o=n(7896),a=n(30969),i=n(81856),l=n(26540),c=n(40679),s=n(94982),d=n(17363),p=n(45971),v=n(62746),u=n(2975);function m(e){return(0,u.Z)("MuiStep",e)}(0,v.Z)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);var f=n(37574),b=["active","children","className","component","completed","disabled","expanded","index","last"],Z=(0,p.ZP)("div",{name:"MuiStep",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((function(e){var t=e.ownerState;return(0,o.Z)({},"horizontal"===t.orientation&&{paddingLeft:8,paddingRight:8},t.alternativeLabel&&{flex:1,position:"relative"})})),h=a.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiStep"}),p=n.active,v=n.children,u=n.className,h=n.component,x=void 0===h?"div":h,S=n.completed,L=n.disabled,y=n.expanded,g=void 0!==y&&y,C=n.index,w=n.last,M=(0,r.Z)(n,b),z=a.useContext(c.Z),N=z.activeStep,R=z.connector,j=z.alternativeLabel,I=z.orientation,P=z.nonLinear,k=void 0!==p&&p,T=void 0!==S&&S,D=void 0!==L&&L;N===C?k=void 0===p||p:!P&&N>C?T=void 0===S||S:!P&&N<C&&(D=void 0===L||L);var A=a.useMemo((function(){return{index:C,last:w,expanded:g,icon:C+1,active:k,completed:T,disabled:D}}),[C,w,g,k,T,D]),_=(0,o.Z)({},n,{active:k,orientation:I,alternativeLabel:j,completed:T,disabled:D,expanded:g,component:x}),B=function(e){var t=e.classes,n={root:["root",e.orientation,e.alternativeLabel&&"alternativeLabel",e.completed&&"completed"]};return(0,l.Z)(n,m,t)}(_),W=(0,f.jsxs)(Z,(0,o.Z)({as:x,className:(0,i.default)(B.root,u),ref:t,ownerState:_},M,{children:[R&&j&&0!==C?R:null,v]}));return(0,f.jsx)(s.Z.Provider,{value:A,children:R&&!j&&0!==C?(0,f.jsxs)(a.Fragment,{children:[R,W]}):W})}))},94982:function(e,t,n){var r=n(30969).createContext({});t.Z=r},50624:function(e,t,n){n.d(t,{Z:function(){return D}});var r=n(56666),o=n(31461),a=n(7896),i=n(30969),l=n(81856),c=n(26540),s=n(45971),d=n(17363),p=n(17469),v=n(37574),u=(0,p.Z)((0,v.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),m=(0,p.Z)((0,v.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning"),f=n(95088),b=n(62746),Z=n(2975);function h(e){return(0,Z.Z)("MuiStepIcon",e)}var x,S=(0,b.Z)("MuiStepIcon",["root","active","completed","error","text"]),L=["active","className","completed","error","icon"],y=(0,s.ZP)(f.Z,{name:"MuiStepIcon",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t,n=e.theme;return t={display:"block",transition:n.transitions.create("color",{duration:n.transitions.duration.shortest}),color:(n.vars||n).palette.text.disabled},(0,r.Z)(t,"&.".concat(S.completed),{color:(n.vars||n).palette.primary.main}),(0,r.Z)(t,"&.".concat(S.active),{color:(n.vars||n).palette.primary.main}),(0,r.Z)(t,"&.".concat(S.error),{color:(n.vars||n).palette.error.main}),t})),g=(0,s.ZP)("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:function(e,t){return t.text}})((function(e){var t=e.theme;return{fill:(t.vars||t).palette.primary.contrastText,fontSize:t.typography.caption.fontSize,fontFamily:t.typography.fontFamily}})),C=i.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiStepIcon"}),r=n.active,i=void 0!==r&&r,s=n.className,p=n.completed,f=void 0!==p&&p,b=n.error,Z=void 0!==b&&b,S=n.icon,C=(0,o.Z)(n,L),w=(0,a.Z)({},n,{active:i,completed:f,error:Z}),M=function(e){var t=e.classes,n={root:["root",e.active&&"active",e.completed&&"completed",e.error&&"error"],text:["text"]};return(0,c.Z)(n,h,t)}(w);if("number"===typeof S||"string"===typeof S){var z=(0,l.default)(s,M.root);return Z?(0,v.jsx)(y,(0,a.Z)({as:m,className:z,ref:t,ownerState:w},C)):f?(0,v.jsx)(y,(0,a.Z)({as:u,className:z,ref:t,ownerState:w},C)):(0,v.jsxs)(y,(0,a.Z)({className:z,ref:t,ownerState:w},C,{children:[x||(x=(0,v.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,v.jsx)(g,{className:M.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:w,children:S})]}))}return S})),w=n(40679),M=n(94982);function z(e){return(0,Z.Z)("MuiStepLabel",e)}var N=(0,b.Z)("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),R=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],j=(0,s.ZP)("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation]]}})((function(e){var t,n=e.ownerState;return(0,a.Z)((t={display:"flex",alignItems:"center"},(0,r.Z)(t,"&.".concat(N.alternativeLabel),{flexDirection:"column"}),(0,r.Z)(t,"&.".concat(N.disabled),{cursor:"default"}),t),"vertical"===n.orientation&&{textAlign:"left",padding:"8px 0"})})),I=(0,s.ZP)("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:function(e,t){return t.label}})((function(e){var t,n=e.theme;return(0,a.Z)({},n.typography.body2,(t={display:"block",transition:n.transitions.create("color",{duration:n.transitions.duration.shortest})},(0,r.Z)(t,"&.".concat(N.active),{color:(n.vars||n).palette.text.primary,fontWeight:500}),(0,r.Z)(t,"&.".concat(N.completed),{color:(n.vars||n).palette.text.primary,fontWeight:500}),(0,r.Z)(t,"&.".concat(N.alternativeLabel),{marginTop:16}),(0,r.Z)(t,"&.".concat(N.error),{color:(n.vars||n).palette.error.main}),t))})),P=(0,s.ZP)("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:function(e,t){return t.iconContainer}})((function(){return(0,r.Z)({flexShrink:0,display:"flex",paddingRight:8},"&.".concat(N.alternativeLabel),{paddingRight:0})})),k=(0,s.ZP)("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:function(e,t){return t.labelContainer}})((function(e){var t=e.theme;return(0,r.Z)({width:"100%",color:(t.vars||t).palette.text.secondary},"&.".concat(N.alternativeLabel),{textAlign:"center"})})),T=i.forwardRef((function(e,t){var n,r=(0,d.Z)({props:e,name:"MuiStepLabel"}),s=r.children,p=r.className,u=r.componentsProps,m=void 0===u?{}:u,f=r.error,b=void 0!==f&&f,Z=r.icon,h=r.optional,x=r.slotProps,S=void 0===x?{}:x,L=r.StepIconComponent,y=r.StepIconProps,g=(0,o.Z)(r,R),N=i.useContext(w.Z),T=N.alternativeLabel,D=N.orientation,A=i.useContext(M.Z),_=A.active,B=A.disabled,W=A.completed,F=A.icon,H=Z||F,q=L;H&&!q&&(q=C);var E=(0,a.Z)({},r,{active:_,alternativeLabel:T,completed:W,disabled:B,error:b,orientation:D}),O=function(e){var t=e.classes,n=e.orientation,r=e.active,o=e.completed,a=e.error,i=e.disabled,l=e.alternativeLabel,s={root:["root",n,a&&"error",i&&"disabled",l&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],labelContainer:["labelContainer",l&&"alternativeLabel"]};return(0,c.Z)(s,z,t)}(E),U=null!=(n=S.label)?n:m.label;return(0,v.jsxs)(j,(0,a.Z)({className:(0,l.default)(O.root,p),ref:t,ownerState:E},g,{children:[H||q?(0,v.jsx)(P,{className:O.iconContainer,ownerState:E,children:(0,v.jsx)(q,(0,a.Z)({completed:W,active:_,error:b,icon:H},y))}):null,(0,v.jsxs)(k,{className:O.labelContainer,ownerState:E,children:[s?(0,v.jsx)(I,(0,a.Z)({ownerState:E},U,{className:(0,l.default)(O.label,null==U?void 0:U.className),children:s})):null,h]})]}))}));T.muiName="StepLabel";var D=T},38219:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(31461),o=n(7896),a=n(30969),i=n(81856),l=n(26540),c=n(17363),s=n(45971),d=n(62746),p=n(2975);function v(e){return(0,p.Z)("MuiStepper",e)}(0,d.Z)("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);var u=n(24099),m=n(40679),f=n(94982);function b(e){return(0,p.Z)("MuiStepConnector",e)}(0,d.Z)("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);var Z=n(37574),h=["className"],x=(0,s.ZP)("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((function(e){var t=e.ownerState;return(0,o.Z)({flex:"1 1 auto"},"vertical"===t.orientation&&{marginLeft:12},t.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})})),S=(0,s.ZP)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:function(e,t){var n=e.ownerState;return[t.line,t["line".concat((0,u.Z)(n.orientation))]]}})((function(e){var t=e.ownerState,n=e.theme,r="light"===n.palette.mode?n.palette.grey[400]:n.palette.grey[600];return(0,o.Z)({display:"block",borderColor:n.vars?n.vars.palette.StepConnector.border:r},"horizontal"===t.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===t.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})})),L=a.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiStepConnector"}),s=n.className,d=(0,r.Z)(n,h),p=a.useContext(m.Z),v=p.alternativeLabel,L=p.orientation,y=void 0===L?"horizontal":L,g=a.useContext(f.Z),C=g.active,w=g.disabled,M=g.completed,z=(0,o.Z)({},n,{alternativeLabel:v,orientation:y,active:C,completed:M,disabled:w}),N=function(e){var t=e.classes,n=e.orientation,r={root:["root",n,e.alternativeLabel&&"alternativeLabel",e.active&&"active",e.completed&&"completed",e.disabled&&"disabled"],line:["line","line".concat((0,u.Z)(n))]};return(0,l.Z)(r,b,t)}(z);return(0,Z.jsx)(x,(0,o.Z)({className:(0,i.default)(N.root,s),ref:t,ownerState:z},d,{children:(0,Z.jsx)(S,{className:N.line,ownerState:z})}))})),y=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],g=(0,s.ZP)("div",{name:"MuiStepper",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})((function(e){var t=e.ownerState;return(0,o.Z)({display:"flex"},"horizontal"===t.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===t.orientation&&{flexDirection:"column"},t.alternativeLabel&&{alignItems:"flex-start"})})),C=(0,Z.jsx)(L,{}),w=a.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiStepper"}),s=n.activeStep,d=void 0===s?0:s,p=n.alternativeLabel,u=void 0!==p&&p,f=n.children,b=n.className,h=n.component,x=void 0===h?"div":h,S=n.connector,L=void 0===S?C:S,w=n.nonLinear,M=void 0!==w&&w,z=n.orientation,N=void 0===z?"horizontal":z,R=(0,r.Z)(n,y),j=(0,o.Z)({},n,{alternativeLabel:u,orientation:N,component:x}),I=function(e){var t=e.orientation,n=e.alternativeLabel,r=e.classes,o={root:["root",t,n&&"alternativeLabel"]};return(0,l.Z)(o,v,r)}(j),P=a.Children.toArray(f).filter(Boolean),k=P.map((function(e,t){return a.cloneElement(e,(0,o.Z)({index:t,last:t+1===P.length},e.props))})),T=a.useMemo((function(){return{activeStep:d,alternativeLabel:u,connector:L,nonLinear:M,orientation:N}}),[d,u,L,M,N]);return(0,Z.jsx)(m.Z.Provider,{value:T,children:(0,Z.jsx)(g,(0,o.Z)({as:x,ownerState:j,className:(0,i.default)(I.root,b),ref:t},R,{children:k}))})}))},40679:function(e,t,n){var r=n(30969).createContext({});t.Z=r}}]);
|
|
2
|
+
//# sourceMappingURL=6921.2f39f974.chunk.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[7],{75260:function(t,e,n){"use strict";n.d(e,{Z:function(){return r.Z}});var r=n(79164)},62399:function(t,e,n){"use strict";n.d(e,{Z:function(){return r.Z}});var r=n(22797)},50007:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Ue},useSecurity:function(){return I}});var r=n(33028),o=n(59740),i=n(24974),a=n.n(i),s=n(56666),c=n(96234),u=n(32723),l=n(34795),d=n(30969),f=n(46292),h=n.n(f),p=n(24221),g=n.n(p),v=n(70306),w=n.n(v),m=n(60523),y=n.n(m),b=n(11681),x=n(32681),_=function(t){var e=(0,b.__read)((0,d.useState)(t),2),n=e[0],r=e[1];return[n,(0,d.useCallback)((function(t){r((function(e){var n=(0,x.mf)(t)?t(e):t;return n?(0,b.__assign)((0,b.__assign)({},e),n):e}))}),[])]},k=n(65457),C=n(92771),S=n(79216),j=n(13022),Z=n(1775),O={en:{generateError:"Request new qrcode failed",checkError:"Status check failed!",scanned:"Use your wallet to continue operation...",mfaCode:"We sent you a verification request on your DID Wallet, enter the digits below to confirm.",refresh:"Refresh",open:"Open in DID Wallet",error:"We encountered some errors when processing the request",invalidSessionStatus:"Invalid session status",success:"Success",wait:"Wait a second",waiting:"Waiting for next workflow to complete...",failed:"Failed",oops:"Oops",forbidden:"Login user and wallet user mismatch, please logout, then login to retry",webWallet:"Auth with Web Wallet",cancel:"Cancel",retry:"Retry",retryForbidden:"Please start this workflow from the beginning",getWallet:"Don't have the DID Wallet? Get it now.",back:"Back",connect:"Use the following to connect",connecting:"Connecting to your",connectingSuffix:"Or use the following to connect",connected:"Connected to your",busyTitle:"Busy",busyDesc:"Busy processing another DID Connect request",loginWithBefore:"Login with ",loginWithAfter:"",bindOAuth:"Bind third party login",bind:"Bind ",loginOAuthFailed:"Login with third party failed"},zh:{generateError:"\u4e8c\u7ef4\u7801\u751f\u6210\u5931\u8d25",checkError:"\u626b\u7801\u72b6\u6001\u68c0\u67e5\u5931\u8d25",scanned:"\u8bf7\u5230\u60a8\u7684\u94b1\u5305\u4e0a\u7ee7\u7eed\u64cd\u4f5c\u2026\u2026",mfaCode:"\u6211\u4eec\u7ed9\u4f60\u7684 DID \u94b1\u5305\u53d1\u9001\u4e86\u4e00\u4e2a\u4e8c\u6b21\u9a8c\u8bc1\u8bf7\u6c42\uff0c\u8bf7\u8f93\u5165\u4e0b\u9762\u7684\u6570\u5b57\u5b8c\u6210\u9a8c\u8bc1",refresh:"\u5237\u65b0",open:"\u5728 DID \u94b1\u5305\u4e2d\u6253\u5f00",error:"\u670d\u52a1\u5668\u5f00\u5c0f\u5dee\u4e86!",invalidSessionStatus:"\u65e0\u6548\u7684\u4f1a\u8bdd\u72b6\u6001",success:"\u6210\u529f",failed:"\u5931\u8d25",wait:"\u8bf7\u7a0d\u5019",waiting:"\u6b63\u5728\u7b49\u5f85\u4e0b\u4e2a\u6d41\u7a0b\u5b8c\u6210...",forbidden:"\u767b\u5f55\u7528\u6237\u548c\u626b\u7801\u7528\u6237\u4e0d\u5339\u914d\uff0c\u4e3a\u4fdd\u969c\u5b89\u5168\uff0c\u8bf7\u9000\u51fa\u540e\u91cd\u65b0\u767b\u5f55",oops:"\u54ce\u5440",webWallet:"\u4f7f\u7528 Web Wallet \u9a8c\u8bc1",cancel:"\u53d6\u6d88",retry:"\u91cd\u8bd5",retryForbidden:"\u8bf7\u5173\u95ed\u5f53\u524d\u5f39\u7a97\u5e76\u91cd\u65b0\u5f00\u59cb\u5f53\u524d\u6d41\u7a0b",getWallet:"\u8fd8\u6ca1\u6709 DID Wallet? \u73b0\u5728\u4e0b\u8f7d.",back:"\u8fd4\u56de",connect:"\u8bf7\u9009\u62e9\u4ee5\u4e0b\u65b9\u5f0f\u4e4b\u4e00\u8fde\u63a5",connecting:"\u6b63\u5728\u81ea\u52a8\u8fde\u63a5\u60a8\u7684",connectingSuffix:"\u6216\u9009\u62e9\u4ee5\u4e0b\u65b9\u5f0f\u624b\u52a8\u8fde\u63a5",connected:"\u5df2\u8fde\u63a5\u60a8\u7684",busyTitle:"\u94b1\u5305\u7e41\u5fd9",busyDesc:"\u6b63\u5728\u5904\u7406\u5176\u4ed6\u8bf7\u6c42",loginWithBefore:"\u4f7f\u7528",loginWithAfter:"\u767b\u5f55",bindOAuth:"\u7ed1\u5b9a\u7b2c\u4e09\u65b9\u767b\u5f55",bind:"\u7ed1\u5b9a",loginOAuthFailed:"\u7b2c\u4e09\u65b9\u767b\u5f55\u5931\u8d25"}},P=n(90117),z=n.n(P),M=n(35147),A=n(5713);var D,R=n(65679),E=(D=function(){return R.Z?localStorage:void 0},function(t,e){var n;void 0===e&&(e={});var r=e.onError,o=void 0===r?function(t){console.error(t)}:r;try{n=D()}catch(u){o(u)}function i(){try{var r=null===n||void 0===n?void 0:n.getItem(t);if(r)return i=r,(null===e||void 0===e?void 0:e.deserializer)?null===e||void 0===e?void 0:e.deserializer(i):JSON.parse(i)}catch(a){o(a)}var i;return(0,x.mf)(null===e||void 0===e?void 0:e.defaultValue)?null===e||void 0===e?void 0:e.defaultValue():null===e||void 0===e?void 0:e.defaultValue}var a=(0,b.__read)((0,d.useState)((function(){return i()})),2),s=a[0],c=a[1];return(0,A.Z)((function(){c(i())}),[t]),[s,(0,M.Z)((function(r){var o=(0,x.mf)(r)?r(s):r;if(c(o),(0,x.G7)(o))null===n||void 0===n||n.removeItem(t);else try{null===n||void 0===n||n.setItem(t,function(t){return(null===e||void 0===e?void 0:e.serializer)?null===e||void 0===e?void 0:e.serializer(t):JSON.stringify(t)}(o))}catch(i){console.error(i)}}))]});function I(){var t=E("__encKey",{deserializer:function(t){return t},serializer:function(t){return t}}),e=(0,c.Z)(t,2),n=e[0],r=e[1],o=E("__decKey",{deserializer:function(t){return t},serializer:function(t){return t}}),i=(0,c.Z)(o,2),a=i[0],s=i[1];if(!n&&!a){var u=z().box.keyPair();r((0,Z.z)(u.publicKey)),s((0,Z.z)(u.secretKey))}return{encryptKey:n,decryptKey:a,decrypt:function(t){return(0,Z.pe)(t,n,a)}}}var L=function(t){var e=(0,d.useRef)(t);(0,d.useEffect)((function(){e.current=t}),[t]),(0,d.useEffect)((function(){var t=function(t){!document.hidden&&e.current&&e.current(t)};return document.addEventListener("visibilitychange",t),function(){document.removeEventListener("visibilitychange",t)}}),[])};function q(t){var e={},n=t||window.location.href;if(n){var r=new URL(n),o=r.hostname,i=r.protocol,a=r.port;e["x-real-hostname"]=o,e["x-real-port"]=a,e["x-real-protocol"]=i.endsWith(":")?i.substring(0,i.length-1):i}return e}var B={};var W=function(){try{var t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;var e=(0,Z.D$)(t);return{token:(0,Z.bk)(e),url:e}}catch(n){return{error:n}}},N="/.well-known/service",T=function(){return h()(window,"blocklet.appPid")||h()(window,"blocklet.appId")||h()(window,"env.appId")||""},U=function(){return(h()(window,"env.apiPrefix")||"/").replace(/\/$/,"").replace(N,"")},F=function(t){return"relay:".concat(T(),":").concat(t)},H=function(){return"https:"===window.location.protocol?"wss:":"ws:"},V=function(t){return!t||new URL(t).origin===window.location.origin},K=function(t){return["succeed","error","timeout","busy"].includes(t)};function Q(t){var e,n=t.action,o=t.checkFn,i=t.checkInterval,a=t.checkTimeout,f=t.extraParams,h=t.locale,p=t.prefix,v=t.tokenKey,m=t.encKey,b=t.onError,x=t.onSuccess,P=t.baseUrl,z=t.autoConnect,M=void 0===z||z,A=t.forceConnected,D=void 0===A||A,R=t.saveConnect,E=void 0===R||R,Q=t.useSocket,G=void 0===Q||Q,X=t.provider,$=void 0===X?"wallet":X,Y=_({checking:!1,loading:!1,token:"",url:"",store:null,status:"created",error:"",checkCount:0,mfaCode:0,appInfo:null,connectedDid:"",saveConnect:!1,inExistingSession:!1,nextWorkflow:"",baseUrl:P,prefix:"".concat(p,"/").concat(n),extraParams:w()(f,y()),checkFn:o,results:{},action:n,provider:$}),J=(0,c.Z)(Y,2),tt=J[0],et=J[1],nt=O[h]||O.en,rt=(0,d.useMemo)((function(){return W()}),[]),ot=Math.ceil(a/i),it=(0,d.useState)(!1),at=(0,c.Z)(it,2),st=at[0],ct=at[1],ut=I(),lt=ut.encryptKey,dt=ut.decrypt,ft=(0,d.useState)(0),ht=(0,c.Z)(ft,2),pt=ht[0],gt=ht[1],vt=(0,C.Z)(),wt=function(t){var e=t.action,n=t.prefix,r=t.checkFn,o=t.extraParams,i=t.baseUrl,a="".concat(n,"/token?").concat((0,S.Oh)(o));return B[a]||(B[a]=function(){var t=(0,l.Z)((0,u.Z)().mark((function t(){var o;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r(a,{headers:q(i)});case 2:if(!(o=t.sent).data||!o.data.token){t.next=5;break}return t.abrupt("return",o.data);case 5:if(!o.data||!o.data.error){t.next=7;break}throw new Error(o.data.error);case 7:throw new Error("Error generating ".concat(e," qrcode from: ").concat(i).concat(n));case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()),B[a]}({action:n,prefix:tt.prefix,baseUrl:tt.baseUrl,checkFn:tt.checkFn,extraParams:(0,r.Z)((0,r.Z)((0,s.Z)({},m,lt),tt.extraParams),{},{locale:h,forceConnected:D,autoConnect:M&&!vt.wallet&&!pt&&["ios","android"].includes(g().get("connected_wallet_os")),provider:tt.provider})});(0,d.useEffect)((function(){pt>0&&(f.nw?b(new Error(nt.retryForbidden)):jt())}),[pt]);var mt=(0,d.useRef)(null),yt=(0,d.useRef)(null),bt=(0,d.useState)(!1),xt=(0,c.Z)(bt,2),_t=xt[0],kt=xt[1];(0,d.useEffect)((function(){G&&V(tt.baseUrl)&&T()?(!mt.current||!1===mt.current.isConnected()||mt.current.baseUrl!==tt.baseUrl)&&(mt.current=new j.WsClient("".concat(H(),"//").concat(function(t){var e=t||window.location.href;return new URL(e).host}(tt.baseUrl)).concat(U()).concat(N,"/relay"),{longpollerTimeout:5e3,heartbeatIntervalMs:3e4}),mt.current.baseUrl=tt.baseUrl,mt.current.onOpen((function(){return kt(!0)})),mt.current.connect()):_t&&kt(!1);return function(){mt.current&&(mt.current.disconnect(),mt.current=null)}}),[tt.baseUrl]);var Ct=Object.assign({},tt.extraParams,(e={locale:h},(0,s.Z)(e,v,tt.token||(null===rt||void 0===rt?void 0:rt.token)),(0,s.Z)(e,"provider",tt.provider),e)),St=function(){try{Ct[v]&&tt.checkFn("".concat(tt.prefix,"/timeout?").concat((0,S.Oh)(Ct)),{headers:q(tt.baseUrl)})}catch(t){}try{tt.token&&yt.current&&(mt.current.unsubscribe(F(tt.token)),yt.current=null)}catch(t){}},jt=function(){var t=(0,l.Z)((0,u.Z)().mark((function t(){var e,n,r=arguments;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(!(r.length>0&&void 0!==r[0])||r[0])&&St(),t.prev=2,et({loading:!0,token:"",url:"",store:null}),t.next=6,wt();case 6:e=t.sent,n=e.extra||{},et({loading:!1,token:e.token,url:e.url,status:"created",error:"",checkCount:0,appInfo:e.appInfo,connectedDid:n.connectedDid,saveConnect:n.saveConnect}),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(2),et({loading:!1,status:"error",error:"".concat(nt.generateError,": ").concat(t.t0.message)});case 14:case"end":return t.stop()}}),t,null,[[2,11]])})));return function(){return t.apply(this,arguments)}}(),Zt=(0,d.useRef)(null);(0,d.useEffect)((function(){Zt.current={state:tt,params:Ct}})),(0,d.useEffect)((function(){return function(){var t=Zt.current,e=t.state,n=t.params;"created"===e.status&&n[v]&&e.checkFn("".concat(e.prefix,"/timeout?").concat((0,S.Oh)(n)),{headers:q(e.baseUrl)})}}),[]);var Ot=function(){var t=(0,l.Z)((0,u.Z)().mark((function t(){var e;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!rt.error){t.next=3;break}throw rt.error;case 3:return et({loading:!0,token:rt.token,url:rt.url,inExistingSession:!0}),t.next=6,Pt();case 6:if(null===(e=t.sent)||void 0===e||!e.status||"created"===(null===e||void 0===e?void 0:e.status)){t.next=9;break}throw new Error("".concat(nt.invalidSessionStatus," [").concat(e.status,"]"));case 9:t.next=15;break;case 11:t.prev=11,t.t0=t.catch(0),et({status:"error",error:t.t0.message}),b(t.t0,null===tt||void 0===tt?void 0:tt.store,dt);case 15:return t.prev=15,et({loading:!1}),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[0,11,15,18]])})));return function(){return t.apply(this,arguments)}}();(0,d.useEffect)((function(){if(!tt.token&&!tt.store&&!tt.loading&&!tt.error){if(!rt)return void jt(!1);Ot()}if("timeout"!==tt.status&&tt.checkCount>ot)return et({status:"timeout"}),void St();if("succeed"===tt.status&&!st&&(V(tt.baseUrl)&&E&&tt.saveConnect&&tt.store.did&&(0,Z.SJ)((0,r.Z)((0,r.Z)({},tt.store),{},{appInfo:tt.appInfo})),tt.store)){var t=tt.store.nextWorkflow;if(t)try{var e=(0,Z.Qz)(t,v);et((function(n){return(0,r.Z)((0,r.Z)({nextWorkflow:t},e),{},{store:null,error:"",url:"",appInfo:null,checkCount:0,status:"scanned",results:(0,r.Z)((0,r.Z)({},n.results),{},(0,s.Z)({},n.token,tt.store)),checkFn:(0,Z.Vl)({baseURL:e.baseUrl,timeout:8e3}).get})})),Pt()}catch(o){console.error("Invalid nextWorkflow: ".concat(t),o),et({status:"error",error:"Invalid nextWorkflow: ".concat(t,": ").concat(o.message)})}else if(tt.nextWorkflow&&et({nextWorkflow:"",url:""}),"function"===typeof x){var n=Object.values((0,r.Z)((0,r.Z)({},tt.results),{},(0,s.Z)({},tt.token,tt.store)));ct(!0),x(n.length>1?n:n[0],dt)}}})),(0,d.useEffect)((function(){if(tt.token&&_t&&mt.current){var t=!1;yt.current?yt.current.token!==tt.token&&(mt.current.unsubscribe(F(yt.current.token)),t=!0):t=!0,t&&(yt.current=mt.current.subscribe(F(tt.token)),yt.current.token=tt.token,yt.current.on("updated",(function(t){var e=t.response,n=e.status,r=e.error;"forbidden"===n&&(r=nt.forbidden,n="error"),et({status:n,mfaCode:e.mfaCode||0,store:e,error:r})})))}}),[tt.token,_t,mt.current]);var Pt=function(){var t=(0,l.Z)((0,u.Z)().mark((function t(){var e,n,r,o,i,a,s,c,l,d,f,h=arguments;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=h.length>0&&void 0!==h[0]&&h[0],!tt.checking){t.next=3;break}return t.abrupt("return",null);case 3:if(et((function(t){return{checkCount:t.checkCount+1}})),!_t||e){t.next=6;break}return t.abrupt("return",null);case 6:return t.prev=6,et({checking:!0}),t.next=10,tt.checkFn("".concat(tt.prefix,"/status?").concat((0,S.Oh)(Ct)),{headers:q(tt.baseUrl)});case 10:if(n=t.sent,r=n.data,o=r.status,i=r.error,a=r.mfaCode,s=void 0===a?0:a,et({store:n.data,mfaCode:s,checking:!1,status:o}),"error"!==o||!i){t.next=17;break}throw(c=new Error(i)).response=n,c;case 17:return t.abrupt("return",n.data);case 20:t.prev=20,t.t0=t.catch(6),(l=t.t0.response)&&l.status?(Ct[v]&&tt.checkFn("".concat(tt.prefix,"/timeout?").concat((0,S.Oh)(Ct)),{headers:q(tt.baseUrl)}),d=l.data&&l.data.error?l.data.error:t.t0.message,(f=new Error(d)).code=l.status,et({status:"error",checking:!1,error:d}),b(f,null===tt||void 0===tt?void 0:tt.store,dt)):et({status:"error",checking:!1,error:nt.generateError});case 24:return t.abrupt("return",null);case 25:case"end":return t.stop()}}),t,null,[[6,20]])})));return function(){return t.apply(this,arguments)}}();return(0,k.Z)(Pt,tt.token?tt.loading||K(tt.status)?null:i:null),L((function(){_t&&tt.token&&!1===K(tt.status)&&Pt(!0)})),{state:tt,generate:jt,cancelWhenScanned:function(){return gt((function(t){return t+1}))}}}var G=n(71171),X=n(54470),$=n(38361),Y=n(78879),J=n(20510),tt=n(29996),et=n(94308),nt=n(6200),rt=n(72395),ot=n(55581),it=n(37574),at=(0,d.createContext)({isWalletWebview:!1,isMobile:!1}),st=at.Provider;at.Consumer;function ct(t){var e=t.children,n=(0,C.Z)(),r={isWalletWebview:n.wallet,isMobile:n.mobile.any};return(0,it.jsx)(st,{value:r,children:e})}var ut,lt,dt=n(75260),ft=n(62399),ht=n(46840),pt=["children"],gt=["children","layout"];function vt(t){var e=t.children,n=(0,o.Z)(t,pt);return(0,it.jsx)(wt,(0,r.Z)((0,r.Z)({},n),{},{children:e}))}var wt=(0,ot.zo)($.Z)(ut||(ut=(0,G.Z)(["\n display: inline-block;\n padding: 16px;\n overflow: hidden;\n border: 1px solid #f0f0f0;\n border-radius: 12px;\n background-color: #fff;\n /* safari \u5706\u89d2\u95ee\u9898, https://stackoverflow.com/questions/49066011/overflow-hidden-with-border-radius-not-working-on-safari */\n transform: translateZ(0);\n"])));function mt(t){var e=t.children,n=t.layout,i=(0,o.Z)(t,gt);if(!e)return null;var a=(0,ht.Z)(e),s=a[0],c=a[1],u=a.slice(2);return(0,it.jsxs)(xt,(0,r.Z)((0,r.Z)({layout:n},i),{},{children:[(0,it.jsx)("div",{children:s}),(0,it.jsx)("div",{children:c}),u]}))}vt.propTypes={children:a().any.isRequired},mt.propTypes={layout:a().oneOf(["tb","lr"]),children:a().any},mt.defaultProps={layout:"tb",children:null};var yt,bt,xt=(0,ot.zo)(vt)(lt||(lt=(0,G.Z)(["\n display: flex;\n flex-direction: ",";\n justify-content: space-between;\n > div {\n flex: 0 0 auto;\n ","\n }\n\n /* web wallet provider \u5185\u5bb9\u53ef\u80fd\u6bd4\u8f83\u957f, \u7a84\u5c4f\u4e0b\u9700\u8981\u652f\u6301 shrink, \u5e76\u4e14\u4e0e\u53f3\u8fb9\u7684 icon \u4fdd\u6301\u95f4\u8ddd */\n ","\n"])),(function(t){return"tb"===t.layout?"column":"row"}),(function(t){return"lr"===t.layout?"align-self: center;":""}),(function(t){return"tb"!==t.layout&&"\n > div:first-of-type {\n flex-shrink: 1;\n min-width: 80px;\n margin-right: 8px;\n }\n "})),_t=n(72097),kt=n(33359),Ct=n(38996),St=n(44181),jt=n(58082),Zt=n(87138),Ot=n(61923),Pt=["status","nextWorkflow","mfaCode","onCancel","onRetry","messages","locale"],zt=(0,ot.zo)(_t.Z)(yt||(yt=(0,G.Z)(["\n && {\n padding: 4px 16px;\n color: #4598fa;\n background-color: #eaf4ff;\n\n &:hover {\n color: #fff;\n background-color: #4598fa;\n }\n }\n"])));function Mt(t){var e=t.status,n=t.nextWorkflow,i=t.mfaCode,a=t.onCancel,s=t.onRetry,c=t.messages,u=t.locale,l=(0,o.Z)(t,Pt),d=O[u]||O.en;return(0,it.jsxs)(At,(0,r.Z)((0,r.Z)({},l),{},{children:["scanned"===e&&!n&&(0,it.jsxs)($.Z,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",children:[(0,it.jsx)($.Z,{children:(0,it.jsx)(Ot.Z,{style:{width:48,height:48,fill:"#4598FA"}})}),(0,it.jsx)($.Z,{mt:2,lineHeight:"34px",color:"#4598fa",fontSize:24,textAlign:"center",fontWeight:400,children:d.scanned}),(0,it.jsxs)($.Z,{mt:1.5,display:"flex",alignItems:"center",children:[(0,it.jsx)($.Z,{color:"#a8b4c5",fontSize:16,fontWeight:400,children:d.connected}),(0,it.jsx)(rt.Z,{style:{height:"1em",marginLeft:8}})]}),i>0&&(0,it.jsxs)($.Z,{mt:3,padding:1,className:"status-mfa",children:[(0,it.jsx)($.Z,{className:"status-mfa-tip",children:d.mfaCode}),(0,it.jsx)(kt.Z,{className:"status-mfa-code",children:i})]}),(0,it.jsx)($.Z,{mt:4,children:(0,it.jsx)(zt,{onClick:function(){return a()},children:d.back})})]}),"scanned"===e&&!!n&&(0,it.jsxs)($.Z,{textAlign:"center",className:"status--waiting",children:[(0,it.jsx)("span",{className:"status-icon",children:(0,it.jsx)(jt.Z,{})}),(0,it.jsx)($.Z,{component:"p",className:"status-icon-text",children:d.wait}),(0,it.jsx)($.Z,{className:"status-desc",children:d.waiting}),i>0&&(0,it.jsxs)($.Z,{mt:3,padding:1,className:"status-mfa",children:[(0,it.jsx)($.Z,{className:"status-mfa-tip",children:d.mfaCode}),(0,it.jsx)(kt.Z,{className:"status-mfa-code",children:i})]})]}),"succeed"===e&&(0,it.jsxs)($.Z,{textAlign:"center",className:"status--succeed",children:[(0,it.jsx)("span",{className:"status-icon",children:(0,it.jsx)(Ct.default,{})}),(0,it.jsx)($.Z,{component:"p",className:"status-icon-text",children:d.success}),(0,it.jsx)($.Z,{className:"status-desc",children:c.success})]}),"error"===e&&(0,it.jsxs)($.Z,{textAlign:"center",className:"status--error",children:[(0,it.jsx)("span",{className:"status-icon",children:(0,it.jsx)(St.default,{})}),(0,it.jsx)($.Z,{component:"p",className:"status-icon-text",children:d.failed}),(0,it.jsx)($.Z,{className:"status-desc",children:c.error||d.error}),(0,it.jsx)($.Z,{mt:5,children:(0,it.jsx)(zt,{onClick:s,children:d.retry})})]}),"busy"===e&&(0,it.jsxs)($.Z,{textAlign:"center",className:"status--busy",children:[(0,it.jsx)("span",{className:"status-icon",children:(0,it.jsx)(Zt.Z,{})}),(0,it.jsx)($.Z,{component:"p",className:"status-icon-text",children:d.busyTitle}),(0,it.jsx)($.Z,{className:"status-desc",children:c.error||d.busyDesc}),(0,it.jsx)($.Z,{mt:5,children:(0,it.jsx)(zt,{onClick:s,children:d.retry})})]})]}))}Mt.propTypes={status:a().string,nextWorkflow:a().string,mfaCode:a().number,onCancel:a().func,onRetry:a().func,messages:a().shape({confirm:a().string.isRequired,success:a().any.isRequired,error:a().any.isRequired}).isRequired,locale:a().oneOf(["en","zh"])},Mt.defaultProps={status:"",nextWorkflow:"",mfaCode:0,onCancel:function(){},onRetry:function(){},locale:"en"};var At=(0,ot.zo)(vt)(bt||(bt=(0,G.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n border: 0;\n border-radius: 0;\n background-color: transparent;\n .status-icon {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n width: 48px;\n height: 48px;\n border-radius: 100%;\n color: #fff;\n }\n .status-icon-text {\n margin: 16px 0;\n font-size: 24px;\n font-weight: 400;\n }\n .status-mfa {\n display: flex;\n align-items: center;\n flex-direction: column;\n background: #fff;\n border: 1px solid #ddd;\n border-radius: 4px;\n max-width: 360px;\n .status-mfa-tip {\n text-align: center;\n }\n .status-mfa-code {\n margin-top: 8px;\n line-height: 36px;\n font-size: 36px;\n font-weight: 700;\n letter-spacing: 8px;\n }\n }\n .status-desc {\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n font-size: 14px;\n white-space: pre-wrap;\n }\n .status--succeed {\n .status-icon {\n background-color: #3ab39d;\n }\n .status-icon-text {\n color: #3ab39d;\n }\n }\n .status--error {\n .status-icon {\n background-color: #f16e6e;\n }\n .status-icon-text {\n color: #f16e6e;\n }\n .status-desc {\n word-break: break-all;\n }\n }\n .status--busy {\n .status-icon {\n background-color: #ed6c02;\n }\n .status-icon-text {\n color: #ed6c02;\n }\n }\n .status--waiting {\n .status-icon {\n background-color: #4598fa;\n }\n .status-icon-text {\n color: #4598fa;\n }\n }\n"]))),Dt=n(68848),Rt=n.n(Dt),Et=["data","size","image","config"],It={margin:0,dotsOptions:{type:"dots"},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}};function Lt(t){var e=t.data,n=t.size,i=t.image,a=t.config,s=(0,o.Z)(t,Et),u=(0,d.useRef)(null),l=(0,d.useMemo)((function(){return(0,r.Z)((0,r.Z)((0,r.Z)({},It),{},{data:e,width:n,height:n},i&&{image:i,imageOptions:{crossOrigin:"anonymous",margin:0}}),a)}),[e,n,i,a]),f=(0,d.useState)(new(Rt())(l)),h=(0,c.Z)(f,1)[0];return(0,d.useEffect)((function(){u.current&&h.append(u.current)}),[h,u]),(0,d.useEffect)((function(){h&&h.update(l)}),[e,n,i,a]),(0,it.jsx)("div",(0,r.Z)({ref:u},s))}Lt.propTypes={data:a().string.isRequired,size:a().number.isRequired,image:a().string,config:a().object},Lt.defaultProps={image:null,config:{}};var qt,Bt=Lt,Wt=n(10452),Nt=["onRefresh"];function Tt(t){var e=t.onRefresh,n=(0,o.Z)(t,Nt);return(0,it.jsx)(Ut,(0,r.Z)((0,r.Z)({},n),{},{onClick:function(t){t.stopPropagation(),e()},children:(0,it.jsx)("span",{children:(0,it.jsx)(Wt.Z,{})})}))}var Ut=(0,ot.zo)("div")(qt||(qt=(0,G.Z)(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgba(0, 0, 0, 0.1);\n cursor: pointer;\n\n > span {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n width: 48px;\n height: 48px;\n border-radius: 100%;\n color: #fff;\n background-color: #4598fa;\n }\n .MuiSvgIcon-root {\n font-size: 28px;\n }\n"])));Tt.propTypes={onRefresh:a().func.isRequired};var Ft=["qrcodeSize","tokenState","onRefresh"];function Ht(t){var e=t.qrcodeSize,n=t.tokenState,i=t.onRefresh,a=(0,o.Z)(t,Ft);return(0,it.jsxs)(mt,(0,r.Z)((0,r.Z)({},a),{},{position:"relative",color:"#A8B4C5",fontWeight:700,status:n.status,children:[(0,it.jsx)("div",{children:(0,it.jsx)($.Z,{mt:.5,fontSize:20,color:"#666",children:"Mobile Wallet"})}),(0,it.jsx)(Bt,{data:n.url,size:e}),"timeout"===n.status&&(0,it.jsx)(Tt,{onRefresh:i})]}))}Ht.propTypes={tokenState:a().object.isRequired,qrcodeSize:a().number.isRequired,onRefresh:a().func.isRequired};var Vt,Kt=n(38222),Qt=["tokenState","onRefresh","webWalletUrl"];function Gt(t){var e=t.tokenState,n=t.onRefresh,i=t.webWalletUrl,a=(0,o.Z)(t,Qt),s="lr"===a.layout?48:64,c="timeout"===e.status,u="".concat(a.className||""," ").concat(c?"card-timeout":""),l=new URL(i);return(0,it.jsxs)($t,(0,r.Z)((0,r.Z)({},a),{},{color:"#A8B4C5",bgcolor:"#FFF",fontWeight:700,className:u,children:[(0,it.jsxs)("div",{children:[(0,it.jsx)($.Z,{mt:.5,fontSize:20,color:"#666",children:"Web Wallet"}),(0,S.HG)()?(0,it.jsx)($.Z,{mt:.5,fontSize:12,style:{wordBreak:"break-all"},children:"Web Wallet Extension"}):i?(0,it.jsx)($.Z,{mt:.5,fontSize:12,style:{wordBreak:"break-all"},children:l.hostname}):null]}),(0,it.jsx)(Kt.Z,{style:{width:s,height:s}}),c&&(0,it.jsx)(Tt,{onRefresh:n})]}))}Gt.propTypes={tokenState:a().object.isRequired,onRefresh:a().func.isRequired,webWalletUrl:a().string},Gt.defaultProps={webWalletUrl:""};var Xt,$t=(0,ot.zo)(mt)(Vt||(Vt=(0,G.Z)(["\n position: relative;\n cursor: pointer;\n &:not(.card-timeout):hover {\n background-color: #f2f8ff;\n svg {\n color: #4598fa;\n }\n }\n"]))),Yt=n(12118),Jt=["tokenState","onRefresh","deepLink"];function te(t){var e=t.tokenState,n=t.onRefresh,i=t.deepLink,a=(0,o.Z)(t,Jt),s="lr"===a.layout?[20,34]:[40,68],c=(0,d.useRef)();return(0,it.jsxs)(ne,(0,r.Z)((0,r.Z)({},a),{},{color:"#A8B4C5",fontWeight:700,onClick:function(){return c.current.click()},children:[(0,it.jsxs)("div",{children:[(0,it.jsx)($.Z,{fontSize:16,children:"Open In"}),(0,it.jsx)($.Z,{mt:.5,fontSize:20,color:"#334660",children:"Mobile Wallet"})]}),(0,it.jsx)(Yt.Z,{style:{width:s[0],height:s[1]}}),"timeout"===e.status&&(0,it.jsx)(Tt,{onRefresh:n}),(0,it.jsx)("a",{href:i,target:"_blank",ref:c,style:{display:"none"},rel:"noreferrer",children:"link"})]}))}var ee,ne=(0,ot.zo)(mt)(Xt||(Xt=(0,G.Z)(["\n position: relative;\n cursor: pointer;\n"])));te.propTypes={tokenState:a().object.isRequired,onRefresh:a().func.isRequired,deepLink:a().string.isRequired};var re=["locale"];function oe(t){var e=t.locale,n=(0,o.Z)(t,re),i=(0,d.useRef)();return(0,it.jsxs)(de,(0,r.Z)((0,r.Z)({},n),{},{onClick:function(){return i.current.click()},children:[(0,it.jsx)($.Z,{component:"span",ml:1,fontWeight:700,fontSize:14,color:"#9397A1",dangerouslySetInnerHTML:{__html:(O[e]||O.en).getWallet}}),(0,it.jsx)("a",{href:"https://www.didwallet.io/".concat("zh"===e?"zh":"en"),target:"_blank",ref:i,style:{display:"none"},rel:"noreferrer",children:"link"})]}))}oe.propTypes={locale:a().oneOf(["en","zh"])},oe.defaultProps={locale:"en"};var ie,ae,se,ce,ue,le,de=(0,ot.zo)($.Z)(ee||(ee=(0,G.Z)(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"]))),fe=n(14720),he=["appInfo"],pe=["locale","tokenKey","messages","qrcodeSize","showDownload","webWalletUrl","tokenState","generate","cancelWhenScanned","enabledConnectTypes","onRecreateSession","extraContent","loadingEle","onError","onSuccess","extraParams","provider","allowWallet"],ge=!document.hidden,ve=function(t){return t?t.split(":").pop():""};function we(t){var e=t.appInfo,n=(0,o.Z)(t,he),i=(0,d.useState)(!1),a=(0,c.Z)(i,2),s=a[0],u=a[1];return s?(0,it.jsx)(ft.Z,{did:e.publisher,size:32}):(0,it.jsx)(J.Z,(0,r.Z)((0,r.Z)({src:e.icon,alt:e.title||"Blocklet Icon",width:32,height:32},n),{},{onError:function(){return u(!0)}}))}function me(t){var e=t.locale,i=t.tokenKey,a=t.messages,s=t.qrcodeSize,f=(t.showDownload,t.webWalletUrl),h=t.tokenState,p=t.generate,v=t.cancelWhenScanned,w=t.enabledConnectTypes,m=t.onRecreateSession,y=t.extraContent,b=t.loadingEle,x=t.onError,_=t.onSuccess,k=t.extraParams,C=t.provider,j=t.allowWallet,P=(0,o.Z)(t,pe);O[e]||(e="en");var z=O[e];f=(0,d.useMemo)((function(){return f||(0,Z.yP)()}),[f]);var M={checking:!1,loading:!1,error:"",status:h.status},A=(0,d.useState)((0,r.Z)({},M)),D=(0,c.Z)(A,2),R=D[0],E=D[1];(0,d.useEffect)((function(){E((function(t){return(0,r.Z)((0,r.Z)({},t),{},{status:h.status})}))}),[h.status]);var I=(0,r.Z)((0,r.Z)({},h),R),L=(0,ot.Fg)(),q=(0,d.useRef)(null),B=(0,Y.Z)(q),W=((null===B||void 0===B?void 0:B.width)||0)<600,N=(0,d.useContext)(at),T=N.isWalletWebview,U=N.isMobile,F=(0,Z.PF)(f),H=(0,d.useState)(!1),V=(0,c.Z)(H,2),K=V[0],Q=V[1],G=(0,d.useState)(!1),X=(0,c.Z)(G,2),J=X[0],st=X[1],ct=(0,d.useState)(0),ut=(0,c.Z)(ct,2),lt=ut[0],ft=ut[1],ht=(0,fe.F5)(),pt=ht.configs,gt=ht.loginOAuth,vt=ht.loginOAuthLoading,wt=ht.getProvider,mt=ht.logoutOAuth,yt=ht.oauthUser,bt=Object.entries(pt).map((function(t){var e=(0,c.Z)(t,2),n=e[0],o=e[1];return(0,r.Z)((0,r.Z)({},o),{},{provider:n})})).filter((function(t){return t.enabled})),xt=function(){if(!I.url)return"";var t=I.url;if(U){t=t.replace(/^https?:\/\//,"abt://");var e=window.location.href;e.indexOf("?")>0?e+="&".concat(i,"=").concat(I.token):e+="?".concat(i,"=").concat(I.token),e=encodeURIComponent(e),t.indexOf("?")>0?t+="&callback=".concat(e,"&callback_delay=1500"):t+="?callback=".concat(e,"&callback_delay=1500")}return t},_t=function(){m(),I.inExistingSession||p(!1)};(0,d.useEffect)((function(){if(T){var t=xt();"created"===I.status&&t&&!K&&(n.e(5434).then(n.t.bind(n,45434,23)).then((function(e){e.call("authAction",{action:"auth",deepLink:t})})),Q(!0))}}),[I]);var kt=function(t){(0,S.E7)({webWalletUrl:f,url:t,locale:e})},Ct=!1,St=!1,jt=(0,d.useMemo)((function(){return!!["created","timeout"].includes(I.status)&&(0!==bt.length&&(!!["login","invite"].includes(I.action)&&!yt))}),[I.status,I.action,bt.length,yt]);["created","timeout"].includes(I.status)&&!T&&(w.includes("web")&&(F||(0,S.HG)())&&(Ct=!0),St=w.includes("mobile"));var Zt=(0,d.useCallback)(function(){var t=(0,l.Z)((0,u.Z)().mark((function t(e){var n,o,i,a,s;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,E((function(t){return(0,r.Z)((0,r.Z)({},t),{},{loading:!0})})),t.next=4,gt(e,(0,r.Z)({action:I.action},k));case 4:if(n=t.sent,o=n.sessionToken,i=n.refreshToken,a=(0,S.$Q)({returnDomain:!1}),g().remove("connected_did",a),g().remove("connected_pk",a),g().remove("connected_wallet_os",a),g().set("connected_app",(0,Z.rh)(I.appInfo),a),!o){t.next=16;break}return E((function(t){return(0,r.Z)((0,r.Z)({},t),{},{loading:!1})})),_({sessionToken:o,refreshToken:i,encrypted:!1},(function(t){return t})),t.abrupt("return");case 16:t.next=24;break;case 18:t.prev=18,t.t0=t.catch(0),s=(0,Z.iC)(t.t0,z.loginOAuthFailed),E((function(t){return(0,r.Z)((0,r.Z)({},t),{},{loading:!1,error:s,status:"error"})})),mt(),x(new Error(s));case 24:case"end":return t.stop()}}),t,null,[[0,18]])})));return function(e){return t.apply(this,arguments)}}(),[gt,I.action,I.appInfo,k,_,mt,x,e]),Ot=(0,d.useMemo)((function(){if(lt>0)return!1;if("created"===I.status){if(T&&xt())return!0;if(Ct&&I.saveConnect&&"created"===I.status&&ge&&"web"===g().get("connected_wallet_os"))return!0}return!1}),[I.status,Ct,I.saveConnect]);if((0,d.useEffect)((function(){!1===j&&jt&&Zt(bt[0])}),[]),!1===j&&(jt||vt||R.loading))return(0,it.jsx)(_e,{children:b||(0,it.jsx)(et.Z,{sx:{color:nt.Z.did.primary}})});var Pt=h.loading||R.loading||"error"!==I.status&&!I.token||!["error","succeed","busy"].includes(I.status)&&T,zt=["scanned","succeed","error","busy"].includes(I.status),At=!Pt&&(T||U);if(Pt)return(0,it.jsx)(_e,{children:b||(0,it.jsx)(et.Z,{sx:{color:nt.Z.did.primary}})});Ct&&I.saveConnect&&"created"===I.status&&"web"===g().get("connected_wallet_os")&&!J&&I.url&&ge&&(st(!0),kt(I.url));var Dt={confirm:a.confirm,success:a.success,error:R.error||h.error||""};return(0,it.jsx)(xe,(0,r.Z)((0,r.Z)({},P),{},{theme:L,ref:q,"data-did-auth-url":I.url,children:(0,it.jsxs)("div",{className:"auth-inner",children:[!zt&&I.appInfo&&(0,it.jsxs)(ke,{children:[(0,it.jsx)(we,{appInfo:I.appInfo}),(0,it.jsxs)("div",{className:"app-info-content",children:[(0,it.jsx)($.Z,{className:"app-info-name",children:I.appInfo.name}),I.appInfo.publisher&&(0,it.jsx)(dt.Z,{size:14,className:"app-info-did",children:ve(I.appInfo.publisher)})]})]}),!zt&&(0,it.jsxs)(Ce,{theme:L,children:[(0,it.jsx)("h6",{className:"action-info-title",children:a.title}),a.scan&&(0,it.jsx)("p",{className:"action-info-desc",children:a.scan})]}),(0,it.jsx)(Se,{className:W?"auth-main--small":"",children:(0,it.jsxs)("div",{children:[!zt&&!Ot&&(0,it.jsxs)($.Z,{display:"flex",alignItems:"center",justifyContent:"center",children:[(0,it.jsx)($.Z,{color:"#999",fontSize:14,fontWeight:400,lineHeight:1,children:z.connect}),(0,it.jsx)(rt.Z,{style:{height:"1em",marginLeft:8}})]}),!zt&&Ot&&(0,it.jsxs)($.Z,{display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"wrap",lineHeight:"24px",color:"#999",fontSize:14,fontWeight:400,children:[(0,it.jsx)(et.Z,{size:12,sx:{color:nt.Z.did.primary}}),(0,it.jsxs)($.Z,{display:"flex",alignItems:"center",ml:1,lineHeight:1,children:[z.connecting,(0,it.jsx)(rt.Z,{style:{height:"1em",marginLeft:8}})]}),(0,it.jsx)($.Z,{ml:1,children:z.connectingSuffix})]}),(0,it.jsxs)("div",{className:"auth-main-inner",style:{alignItems:"scanned"===I.status?"center":"stretch"},children:[zt&&(0,it.jsx)(Mt,{status:I.status,nextWorkflow:I.nextWorkflow,mfaCode:I.mfaCode,onCancel:function(){m(),I.inExistingSession||(ft(lt+1),v())},onRetry:function(){m(),E((0,r.Z)({},M)),!1!==j?I.inExistingSession||(Q(!1),p()):Zt(bt[0])},messages:Dt,locale:e,className:"auth-status"}),(Ct||St)&&(0,it.jsxs)("div",{className:"auth-connect-types",children:[!U&&Ct&&(0,it.jsx)(Gt,{className:"auth-connect-type",layout:W?"lr":"tb",tokenState:I,onRefresh:_t,onClick:function(){return kt(I.url)},webWalletUrl:f}),St&&(0,it.jsx)(Ht,{className:"auth-connect-type",qrcodeSize:s,tokenState:I,onRefresh:_t,layout:W?"lr":"tb"}),At&&(0,it.jsx)(te,{deepLink:xt(),className:"auth-connect-type",tokenState:I,onRefresh:_t,layout:W?"lr":"tb"})]})]}),"federated"!==C&&(jt||vt)&&(0,it.jsx)($.Z,{display:"flex",justifyContent:"center",mt:2,className:"auth-oauth-panel",children:bt.map((function(t){return(0,it.jsxs)(tt.Z,{variant:"contained",onClick:function(){return Zt(t)},loading:vt&&t.provider===wt(),children:[z.loginWithBefore,t.provider,z.loginWithAfter]},t.provider)}))}),!T&&(0,it.jsx)(oe,{locale:e,width:1,p:2,pb:1,mt:2,visibility:zt?"hidden":"visible"}),(Ct||St)&&y]})})]})}))}we.propTypes={appInfo:a().object.isRequired},me.propTypes={locale:a().oneOf(["en","zh"]),tokenKey:a().string,qrcodeSize:a().number,webWalletUrl:a().string,messages:a().shape({title:a().string.isRequired,scan:a().string.isRequired,confirm:a().string.isRequired,success:a().any.isRequired}).isRequired,showDownload:a().bool,tokenState:a().object.isRequired,generate:a().func.isRequired,cancelWhenScanned:a().func.isRequired,enabledConnectTypes:a().array,onRecreateSession:a().func,extraContent:a().any,loadingEle:a().any,onSuccess:a().func,onError:a().func,extraParams:a().object,provider:a().oneOf(["federated","wallet","auth0"]),allowWallet:a().bool},me.defaultProps={locale:"en",tokenKey:"_t_",qrcodeSize:184,showDownload:!0,webWalletUrl:"",enabledConnectTypes:["web","mobile"],onRecreateSession:function(){},extraContent:null,loadingEle:"",onSuccess:function(){},onError:function(){},extraParams:{},provider:"wallet",allowWallet:!0};var ye,be=(0,X.css)(ie||(ie=(0,G.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n"]))),xe=(0,ot.zo)("div")(ae||(ae=(0,G.Z)(["\n ",";\n position: relative;\n height: 100%;\n overflow-y: auto;\n line-height: 1.2;\n font-family: 'Lato';\n color: #334660;\n background-color: #fbfcfd;\n\n &,\n & *,\n & *:before,\n & *:after {\n box-sizing: border-box;\n }\n\n .auth-inner {\n width: 100%;\n margin: auto 0;\n padding: 40px 16px;\n }\n"])),be),_e=(0,ot.zo)("div")(se||(se=(0,G.Z)(["\n ",";\n height: 100%;\n min-width: 160px;\n min-height: 160px;\n"])),be),ke=(0,ot.zo)("div")(ce||(ce=(0,G.Z)(["\n display: flex;\n align-items: center;\n position: absolute;\n left: 24px;\n right: 24px;\n top: 24px;\n font-size: 16px;\n font-weight: 700;\n color: #222;\n\n /* \u7981\u6b62 app icon shrink */\n > *:first-of-type {\n flex: 0 0 auto;\n }\n\n .app-info-content {\n padding-left: 16px;\n overflow: hidden;\n }\n\n .app-info-name {\n max-width: 100%;\n padding-right: 32px;\n line-height: 1;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .app-info-did .did-address-text {\n color: #666;\n font-size: 12px;\n }\n"]))),Ce=(0,ot.zo)("div")(ue||(ue=(0,G.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 48px;\n text-align: center;\n .action-info-title {\n margin: 0;\n font-size: 28px;\n color: #222;\n }\n .action-info-desc {\n margin: 8px 0 0 0;\n font-size: 18px;\n color: #9397a1;\n }\n "," {\n .action-info-title {\n font-size: 24px;\n }\n .action-info-desc {\n font-size: 14px;\n }\n }\n"])),(function(t){return t.theme.breakpoints.down("md")})),Se=(0,ot.zo)("main")(le||(le=(0,G.Z)(["\n ",";\n .auth-main-inner {\n ",";\n align-items: stretch;\n height: 264px;\n margin-top: 24px;\n }\n .auth-connect-type {\n width: 264px;\n }\n .auth-status {\n width: auto;\n }\n .auth-connect-types {\n ",";\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n align-items: stretch;\n flex-wrap: wrap;\n }\n .auth-connect-type + .auth-connect-type {\n margin-left: 24px;\n }\n\n /* \u7a84\u5c4f\u6837\u5f0f */\n &.auth-main--small {\n .auth-main-inner {\n height: auto;\n }\n .auth-connect-types {\n align-items: center;\n flex-direction: column;\n }\n .auth-connect-type {\n width: 340px;\n }\n .auth-connect-type + .auth-connect-type {\n margin: 24px 0 0 0;\n }\n }\n"])),be,be,be),je=n(84636),Ze=n(59071),Oe=n(75255),Pe=n(10524),ze=["popup","open","dialogStyle","responsive","hideCloseButton"],Me=(0,d.forwardRef)((function(t,e){return(0,it.jsx)(Pe.Z,(0,r.Z)({direction:"up",ref:e},t))}));var Ae,De=(0,ot.zo)("div")(ye||(ye=(0,G.Z)(["\n position: absolute;\n top: 1rem;\n right: 1rem;\n z-index: 999;\n color: #222222;\n font-size: 2rem;\n line-height: 1rem;\n cursor: pointer;\n user-select: none;\n"]))),Re=n(20281),Ee=n(23283),Ie=["webWalletUrl","maxIdleTime"],Le=function(){!function(){var t=document.getElementById(Ae);t&&document.body.removeChild(t)}(),Ae=null},qe=function(t){Ae||(Ae="web_wallet_sw_keeper_".concat(Date.now()),function(t){var e=document.createElement("iframe");e.title="abt wallet",e.id=Ae,e.style.width=0,e.style.height=0,e.style.border=0,e.style.display="block",e.style.position="absolute",e.style.top=0,e.src="".concat(t,"?action=iframe"),document.body.appendChild(e)}(t))};function Be(t){var e=t.webWalletUrl,n=t.maxIdleTime,r=(0,d.useRef)(!!Ae),o=(0,Re.Z)(n),i=function(){r.current||Le()};return(0,d.useEffect)((function(){o?i():qe(e)}),[o]),(0,d.useEffect)((function(){return function(){return i()}}),[]),null}Be.propTypes={webWalletUrl:a().string.isRequired,maxIdleTime:a().number},Be.defaultProps={maxIdleTime:18e5};n(40622),n(82236);var We=["onClose","onSuccess","onError","action","prefix","checkFn","checkInterval","checkTimeout","extraParams","locale","tokenKey","encKey","baseUrl","autoConnect","forceConnected","saveConnect","useSocket","allowWallet","provider"];function Ne(t){t.onClose;var e=t.onSuccess,n=t.onError,i=t.action,a=t.prefix,s=t.checkFn,c=t.checkInterval,u=t.checkTimeout,l=t.extraParams,d=t.locale,f=t.tokenKey,h=t.encKey,p=t.baseUrl,g=t.autoConnect,v=t.forceConnected,w=t.saveConnect,m=t.useSocket,y=t.allowWallet,b=t.provider,x=(0,o.Z)(t,We);if("function"!==typeof s)throw new Error("Cannot initialize did connect component without a fetchFn");var _=Q({action:i,baseUrl:p,checkFn:s,checkInterval:c,checkTimeout:u,extraParams:l,prefix:a,onError:n,onSuccess:e,locale:d,tokenKey:f,encKey:h,autoConnect:g,forceConnected:v,saveConnect:w,useSocket:m,allowWallet:y,provider:b}),k=_.state,C=_.generate,S=_.cancelWhenScanned,j=(0,r.Z)((0,r.Z)({},x),{},{provider:b,tokenState:k,generate:C,cancelWhenScanned:S,locale:d,tokenKey:f,onError:n,onSuccess:e,extraParams:l,allowWallet:y});return(0,it.jsx)(ct,{children:(0,it.jsx)(me,(0,r.Z)({},j))})}Ne.propTypes={onClose:a().func,onError:a().func,onSuccess:a().func.isRequired,action:a().string.isRequired,checkFn:a().func.isRequired,prefix:a().string,checkInterval:a().number,checkTimeout:a().number,extraParams:a().object,locale:a().oneOf(["en","zh"]),tokenKey:a().string,encKey:a().string,baseUrl:a().string,autoConnect:a().bool,forceConnected:a().bool,saveConnect:a().bool,useSocket:a().bool,allowWallet:a().bool,provider:a().oneOf(["federated","wallet","auth0"])},Ne.defaultProps={prefix:"/api/did",onClose:function(){},onError:function(){},checkInterval:2e3,checkTimeout:6e4,extraParams:{},locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"wallet"};var Te,Ue=(Te=function(t){function e(e){var n=e.popup,i=e.open,a=e.dialogStyle,s=e.responsive,c=e.hideCloseButton,u=(0,o.Z)(e,ze),l=(0,C.Z)(),d=(0,ot.Fg)(),f=(0,Oe.Z)(d.breakpoints.down("md"))&&l.mobile.any;if(!n&&!s)return(0,it.jsx)(t,(0,r.Z)({},u));var h=!!s||i;return(0,it.jsx)(je.Z,(0,r.Z)((0,r.Z)({open:h,fullScreen:f,maxWidth:"lg",onClose:function(t,e){}},f&&{TransitionComponent:Me,PaperProps:{style:{background:"transparent"}},style:{paddingTop:44}}),{},{children:(0,it.jsxs)(Ze.Z,{style:(0,r.Z)((0,r.Z)({width:f?"100%":720,height:f?"100%":780,maxWidth:"100%",maxHeight:"100%",padding:0},a),f&&{position:"relative",borderRadius:"16px 16px 0 0",background:"#fff"}),children:[!c&&(0,it.jsx)(De,{onClick:function(){u.onClose&&u.onClose()},children:"\xd7"}),(0,it.jsx)(t,(0,r.Z)({},u))]})}))}return e.propTypes={responsive:a().bool,popup:a().bool,open:a().bool,dialogStyle:a().object,hideCloseButton:a().bool},e.defaultProps={responsive:!1,popup:!1,open:!1,dialogStyle:{},hideCloseButton:!1},e}(Ne),function(t){var e=t.webWalletUrl,n=t.maxIdleTime,i=(0,o.Z)(t,Ie),a=(0,C.Z)();e=e||(0,Ee.yP)();var s=E("wallet_sw_keeper_disabled",{defaultValue:1}),u=(0,c.Z)(s,1)[0],l=(0,S.HG)(),d=(0,Ee.PF)(e),f=a.wallet;return(0,it.jsxs)(it.Fragment,{children:[!u&&!l&&d&&!f&&(0,it.jsx)(Be,{webWalletUrl:e,maxIdleTime:n}),(0,it.jsx)(Te,(0,r.Z)({webWalletUrl:e},i))]})})},38222:function(t,e,n){"use strict";e.Z=void 0;(r=n(30969))&&r.__esModule;var r,o=n(37574);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(t){return(0,o.jsx)("svg",a(a({},t),{},{children:(0,o.jsx)("path",{d:"M5.472.371H60.94c3.061 0 5.565 2.412 5.565 5.473v35.431c0 3.061-2.504 5.658-5.565 5.658H39.328v9.183h15.768c2.319 0 2.504 7.606 2.782 7.884H8.626s0-7.884 2.783-7.884h15.768v-9.183H5.472C2.412 46.933 0 44.336 0 41.275V5.844C0 2.783 2.412.37 5.472.37zm0 40.904H60.94V5.844H5.472v35.431z"})}))};c.defaultProps={width:"67",height:"64",viewBox:"0 0 67 64",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},c.displayName="computer";var u=c;e.Z=u},61923:function(t,e,n){"use strict";e.Z=void 0;(r=n(30969))&&r.__esModule;var r,o=n(37574);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(t){return(0,o.jsxs)("svg",a(a({},t),{},{children:[(0,o.jsx)("circle",{cx:"24",cy:"24",r:"24"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.76 28.844a1.4 1.4 0 0 1 1.98 0l2.917 2.916a1.4 1.4 0 0 1 0 1.98l-2.917 2.917a1.4 1.4 0 0 1-1.98-1.98l1.927-1.927-1.927-1.927a1.4 1.4 0 0 1 0-1.98zM12.027 12.027a3.733 3.733 0 1 1 5.28 5.28 3.733 3.733 0 0 1-5.28-5.28zm2.64 1.707a.933.933 0 1 0 0 1.866.933.933 0 0 0 0-1.866z",fill:"#fff"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6 14.667a1.4 1.4 0 0 1 1.4-1.4h4.667A3.733 3.733 0 0 1 25.4 17v13.417a.933.933 0 0 0 .933.933h9.334a1.4 1.4 0 1 1 0 2.8h-9.334a3.733 3.733 0 0 1-3.733-3.733V17a.933.933 0 0 0-.933-.933H17a1.4 1.4 0 0 1-1.4-1.4z",fill:"#fff"})]}))};c.defaultProps={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.displayName="connect";var u=c;e.Z=u},72395:function(t,e,n){"use strict";e.Z=void 0;(r=n(30969))&&r.__esModule;var r,o=n(37574);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(t){return(0,o.jsxs)("svg",a(a({},t),{},{children:[(0,o.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.791a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z",fill:"#6BBDFE"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z",fill:"#4598FA"}),(0,o.jsx)("path",{d:"M152.732 9.627l-7.02 22.502h-3.009l-5.484-16.688a7.8 7.8 0 0 1-.329-1.207c-.115.48-.225.883-.329 1.207l-5.548 16.688h-2.993L121 9.627h2.789c.293 0 .538.073.737.22a.955.955 0 0 1 .392.563l4.434 15.06c.084.292.157.61.22.955.073.345.146.706.219 1.082.073-.377.146-.737.219-1.082.084-.344.178-.663.282-.956l5.078-15.059c.062-.209.193-.391.391-.548.209-.157.455-.235.737-.235h.956c.292 0 .533.073.721.22.188.145.323.334.407.563l5.061 15.06c.189.574.356 1.227.502 1.958.125-.72.261-1.374.407-1.959l4.451-15.059c.052-.209.183-.391.391-.548.209-.157.455-.235.737-.235h2.601zM162.039 25.062c-1.244.042-2.299.141-3.166.298-.867.146-1.572.345-2.115.595-.543.25-.935.549-1.175.893-.241.335-.361.71-.361 1.129 0 .397.063.741.188 1.034.136.282.314.517.533.705.23.178.496.308.799.392a3.7 3.7 0 0 0 .987.125 5.433 5.433 0 0 0 2.398-.533c.345-.177.674-.391.987-.642.314-.25.622-.538.925-.862v-3.134zm-8.964-6.629c.888-.846 1.849-1.478 2.884-1.896 1.044-.418 2.188-.626 3.431-.626.909 0 1.714.151 2.414.454.7.293 1.29.705 1.77 1.238.481.533.841 1.17 1.082 1.912.25.741.376 1.561.376 2.46v10.154h-1.364c-.303 0-.532-.047-.689-.14-.157-.105-.282-.293-.376-.565l-.329-1.395c-.408.377-.81.71-1.207 1.003a8.387 8.387 0 0 1-1.254.737c-.428.198-.888.35-1.379.454a7.84 7.84 0 0 1-1.629.157 6.1 6.1 0 0 1-1.771-.25 4.064 4.064 0 0 1-1.426-.8 3.824 3.824 0 0 1-.971-1.332c-.23-.533-.345-1.154-.345-1.865 0-.626.167-1.227.501-1.802.345-.585.899-1.107 1.661-1.567.773-.46 1.776-.835 3.009-1.128 1.243-.293 2.768-.46 4.576-.501v-1.16c0-1.201-.256-2.1-.768-2.695-.512-.596-1.264-.893-2.257-.893-.668 0-1.232.083-1.692.25a6.476 6.476 0 0 0-1.175.564 26.04 26.04 0 0 0-.862.549 1.3 1.3 0 0 1-.752.25.904.904 0 0 1-.549-.172 1.49 1.49 0 0 1-.36-.407l-.549-.988zM172.256 9v23.13h-3.071V9h3.071zM179.755 9v23.13h-3.072V9h3.072zM194.665 22.398c0-.606-.088-1.165-.266-1.677a3.714 3.714 0 0 0-.752-1.332 3.46 3.46 0 0 0-1.223-.877c-.48-.21-1.034-.314-1.661-.314-1.285 0-2.298.371-3.04 1.113-.731.742-1.196 1.77-1.394 3.087h8.336zm2.523 7.46c-.376.438-.809.82-1.3 1.143a7.805 7.805 0 0 1-1.567.768 9.5 9.5 0 0 1-1.724.439c-.585.094-1.165.14-1.74.14-1.096 0-2.115-.182-3.055-.548a7.001 7.001 0 0 1-2.429-1.63c-.679-.72-1.212-1.608-1.599-2.663-.376-1.066-.564-2.288-.564-3.667 0-1.108.173-2.137.517-3.087a7.51 7.51 0 0 1 1.473-2.508 6.915 6.915 0 0 1 2.367-1.676c.929-.408 1.974-.611 3.134-.611.971 0 1.865.161 2.679.485a5.869 5.869 0 0 1 2.132 1.38c.595.605 1.06 1.352 1.394 2.24.345.888.517 1.902.517 3.04 0 .47-.052.789-.156.956-.105.157-.298.235-.58.235H186.25c.032.95.168 1.781.408 2.492.24.7.569 1.285.987 1.755.428.47.935.82 1.52 1.05.585.23 1.238.344 1.959.344.679 0 1.264-.078 1.755-.235.501-.156.93-.323 1.285-.501.366-.188.668-.36.909-.517.25-.157.47-.235.658-.235.251 0 .444.094.58.282l.877 1.128zM205.568 32.38c-1.285 0-2.277-.36-2.977-1.081-.689-.721-1.034-1.75-1.034-3.087v-9.528h-1.849a.688.688 0 0 1-.455-.157c-.115-.114-.172-.282-.172-.5v-1.239l2.585-.36.69-4.748a.72.72 0 0 1 .235-.408.708.708 0 0 1 .47-.156h1.551v5.343h4.514v2.225h-4.514v9.324c0 .627.152 1.097.455 1.41.313.303.71.455 1.191.455.282 0 .522-.037.721-.11.209-.073.386-.151.532-.235.147-.094.272-.178.377-.25a.507.507 0 0 1 .282-.11c.104 0 .182.026.235.078a.691.691 0 0 1 .188.22l.909 1.472a5.282 5.282 0 0 1-1.787 1.066 6.232 6.232 0 0 1-2.147.376z",fill:"#4598FA"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z",fill:"#363844"})]}))};c.defaultProps={viewBox:"0 0 210 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.displayName="did-wallet-logo";var u=c;e.Z=u},12118:function(t,e,n){"use strict";e.Z=void 0;(r=n(30969))&&r.__esModule;var r,o=n(37574);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(t){return(0,o.jsx)("svg",a(a({},t),{},{children:(0,o.jsx)("path",{d:"M3.833.833h13.334A3.333 3.333 0 0 1 20.5 4.167v26.666a3.333 3.333 0 0 1-3.333 3.334H3.833A3.333 3.333 0 0 1 .5 30.833V4.168A3.333 3.333 0 0 1 3.833.833zm0 3.334v25h13.334v-25H3.833z"})}))};c.defaultProps={width:"21",height:"35",viewBox:"0 0 21 35",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},c.displayName="mobile";var u=c;e.Z=u},65457:function(t,e,n){"use strict";e.Z=function(t,e){var n=(0,r.useRef)();(0,r.useEffect)((function(){n.current=t}),[t]),(0,r.useEffect)((function(){if(null!==e){var t=setInterval((function(){n.current()}),e);return function(){return clearInterval(t)}}}),[e])};var r=n(30969)},44181:function(t,e,n){"use strict";var r=n(71600);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(48035)),i=n(37574),a=(0,o.default)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");e.default=a},58082:function(t,e,n){"use strict";var r=n(71600);e.Z=void 0;var o=r(n(48035)),i=n(37574),a=(0,o.default)((0,i.jsx)("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5-4-4V4h8v3.5l-4 4z"}),"HourglassEmptyOutlined");e.Z=a},10452:function(t,e,n){"use strict";var r=n(71600);e.Z=void 0;var o=r(n(48035)),i=n(37574),a=(0,o.default)((0,i.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),"Refresh");e.Z=a},68848:function(t){t.exports=function(){var t={192:function(t,e){var n,r,o=function(){var t=function(t,e){var n=t,r=a[e],o=null,i=0,c=null,v=[],w={},y=function(t,e){o=function(t){for(var e=new Array(t),n=0;n<t;n+=1){e[n]=new Array(t);for(var r=0;r<t;r+=1)e[n][r]=null}return e}(i=4*n+17),b(0,0),b(i-7,0),b(0,i-7),_(),x(),C(t,e),n>=7&&k(t),null==c&&(c=j(n,r,v)),S(c,e)},b=function(t,e){for(var n=-1;n<=7;n+=1)if(!(t+n<=-1||i<=t+n))for(var r=-1;r<=7;r+=1)e+r<=-1||i<=e+r||(o[t+n][e+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},x=function(){for(var t=8;t<i-8;t+=1)null==o[t][6]&&(o[t][6]=t%2==0);for(var e=8;e<i-8;e+=1)null==o[6][e]&&(o[6][e]=e%2==0)},_=function(){for(var t=s.getPatternPosition(n),e=0;e<t.length;e+=1)for(var r=0;r<t.length;r+=1){var i=t[e],a=t[r];if(null==o[i][a])for(var c=-2;c<=2;c+=1)for(var u=-2;u<=2;u+=1)o[i+c][a+u]=-2==c||2==c||-2==u||2==u||0==c&&0==u}},k=function(t){for(var e=s.getBCHTypeNumber(n),r=0;r<18;r+=1){var a=!t&&1==(e>>r&1);o[Math.floor(r/3)][r%3+i-8-3]=a}for(r=0;r<18;r+=1)a=!t&&1==(e>>r&1),o[r%3+i-8-3][Math.floor(r/3)]=a},C=function(t,e){for(var n=r<<3|e,a=s.getBCHTypeInfo(n),c=0;c<15;c+=1){var u=!t&&1==(a>>c&1);c<6?o[c][8]=u:c<8?o[c+1][8]=u:o[i-15+c][8]=u}for(c=0;c<15;c+=1)u=!t&&1==(a>>c&1),c<8?o[8][i-c-1]=u:c<9?o[8][15-c-1+1]=u:o[8][15-c-1]=u;o[i-8][8]=!t},S=function(t,e){for(var n=-1,r=i-1,a=7,c=0,u=s.getMaskFunction(e),l=i-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var d=0;d<2;d+=1)if(null==o[r][l-d]){var f=!1;c<t.length&&(f=1==(t[c]>>>a&1)),u(r,l-d)&&(f=!f),o[r][l-d]=f,-1==(a-=1)&&(c+=1,a=7)}if((r+=n)<0||i<=r){r-=n,n=-n;break}}},j=function(t,e,n){for(var r=l.getRSBlocks(t,e),o=d(),i=0;i<n.length;i+=1){var a=n[i];o.put(a.getMode(),4),o.put(a.getLength(),s.getLengthInBits(a.getMode(),t)),a.write(o)}var c=0;for(i=0;i<r.length;i+=1)c+=r[i].dataCount;if(o.getLengthInBits()>8*c)throw"code length overflow. ("+o.getLengthInBits()+">"+8*c+")";for(o.getLengthInBits()+4<=8*c&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*c||(o.put(236,8),o.getLengthInBits()>=8*c));)o.put(17,8);return function(t,e){for(var n=0,r=0,o=0,i=new Array(e.length),a=new Array(e.length),c=0;c<e.length;c+=1){var l=e[c].dataCount,d=e[c].totalCount-l;r=Math.max(r,l),o=Math.max(o,d),i[c]=new Array(l);for(var f=0;f<i[c].length;f+=1)i[c][f]=255&t.getBuffer()[f+n];n+=l;var h=s.getErrorCorrectPolynomial(d),p=u(i[c],h.getLength()-1).mod(h);for(a[c]=new Array(h.getLength()-1),f=0;f<a[c].length;f+=1){var g=f+p.getLength()-a[c].length;a[c][f]=g>=0?p.getAt(g):0}}var v=0;for(f=0;f<e.length;f+=1)v+=e[f].totalCount;var w=new Array(v),m=0;for(f=0;f<r;f+=1)for(c=0;c<e.length;c+=1)f<i[c].length&&(w[m]=i[c][f],m+=1);for(f=0;f<o;f+=1)for(c=0;c<e.length;c+=1)f<a[c].length&&(w[m]=a[c][f],m+=1);return w}(o,r)};w.addData=function(t,e){var n=null;switch(e=e||"Byte"){case"Numeric":n=f(t);break;case"Alphanumeric":n=h(t);break;case"Byte":n=p(t);break;case"Kanji":n=g(t);break;default:throw"mode:"+e}v.push(n),c=null},w.isDark=function(t,e){if(t<0||i<=t||e<0||i<=e)throw t+","+e;return o[t][e]},w.getModuleCount=function(){return i},w.make=function(){if(n<1){for(var t=1;t<40;t++){for(var e=l.getRSBlocks(t,r),o=d(),i=0;i<v.length;i++){var a=v[i];o.put(a.getMode(),4),o.put(a.getLength(),s.getLengthInBits(a.getMode(),t)),a.write(o)}var c=0;for(i=0;i<e.length;i++)c+=e[i].dataCount;if(o.getLengthInBits()<=8*c)break}n=t}y(!1,function(){for(var t=0,e=0,n=0;n<8;n+=1){y(!0,n);var r=s.getLostPoint(w);(0==n||t>r)&&(t=r,e=n)}return e}())},w.createTableTag=function(t,e){t=t||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(e=void 0===e?4*t:e)+"px;",n+='">',n+="<tbody>";for(var r=0;r<w.getModuleCount();r+=1){n+="<tr>";for(var o=0;o<w.getModuleCount();o+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+t+"px;",n+=" height: "+t+"px;",n+=" background-color: ",n+=w.isDark(r,o)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return(n+="</tbody>")+"</table>"},w.createSvgTag=function(t,e,n,r){var o={};"object"==typeof arguments[0]&&(t=(o=arguments[0]).cellSize,e=o.margin,n=o.alt,r=o.title),t=t||2,e=void 0===e?4*t:e,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var i,a,s,c,u=w.getModuleCount()*t+2*e,l="";for(c="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ",l+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',l+=o.scalable?"":' width="'+u+'px" height="'+u+'px"',l+=' viewBox="0 0 '+u+" "+u+'" ',l+=' preserveAspectRatio="xMinYMin meet"',l+=r.text||n.text?' role="img" aria-labelledby="'+Z([r.id,n.id].join(" ").trim())+'"':"",l+=">",l+=r.text?'<title id="'+Z(r.id)+'">'+Z(r.text)+"</title>":"",l+=n.text?'<description id="'+Z(n.id)+'">'+Z(n.text)+"</description>":"",l+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',l+='<path d="',a=0;a<w.getModuleCount();a+=1)for(s=a*t+e,i=0;i<w.getModuleCount();i+=1)w.isDark(a,i)&&(l+="M"+(i*t+e)+","+s+c);return(l+='" stroke="transparent" fill="black"/>')+"</svg>"},w.createDataURL=function(t,e){t=t||2,e=void 0===e?4*t:e;var n=w.getModuleCount()*t+2*e,r=e,o=n-e;return m(n,n,(function(e,n){if(r<=e&&e<o&&r<=n&&n<o){var i=Math.floor((e-r)/t),a=Math.floor((n-r)/t);return w.isDark(a,i)?0:1}return 1}))},w.createImgTag=function(t,e,n){t=t||2,e=void 0===e?4*t:e;var r=w.getModuleCount()*t+2*e,o="";return o+="<img",o+=' src="',o+=w.createDataURL(t,e),o+='"',o+=' width="',o+=r,o+='"',o+=' height="',o+=r,o+='"',n&&(o+=' alt="',o+=Z(n),o+='"'),o+"/>"};var Z=function(t){for(var e="",n=0;n<t.length;n+=1){var r=t.charAt(n);switch(r){case"<":e+="<";break;case">":e+=">";break;case"&":e+="&";break;case'"':e+=""";break;default:e+=r}}return e};return w.createASCII=function(t,e){if((t=t||1)<2)return function(t){t=void 0===t?2:t;var e,n,r,o,i,a=1*w.getModuleCount()+2*t,s=t,c=a-t,u={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},l={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},d="";for(e=0;e<a;e+=2){for(r=Math.floor((e-s)/1),o=Math.floor((e+1-s)/1),n=0;n<a;n+=1)i="\u2588",s<=n&&n<c&&s<=e&&e<c&&w.isDark(r,Math.floor((n-s)/1))&&(i=" "),s<=n&&n<c&&s<=e+1&&e+1<c&&w.isDark(o,Math.floor((n-s)/1))?i+=" ":i+="\u2588",d+=t<1&&e+1>=c?l[i]:u[i];d+="\n"}return a%2&&t>0?d.substring(0,d.length-a-1)+Array(a+1).join("\u2580"):d.substring(0,d.length-1)}(e);t-=1,e=void 0===e?2*t:e;var n,r,o,i,a=w.getModuleCount()*t+2*e,s=e,c=a-e,u=Array(t+1).join("\u2588\u2588"),l=Array(t+1).join(" "),d="",f="";for(n=0;n<a;n+=1){for(o=Math.floor((n-s)/t),f="",r=0;r<a;r+=1)i=1,s<=r&&r<c&&s<=n&&n<c&&w.isDark(o,Math.floor((r-s)/t))&&(i=0),f+=i?u:l;for(o=0;o<t;o+=1)d+=f+"\n"}return d.substring(0,d.length-1)},w.renderTo2dContext=function(t,e){e=e||2;for(var n=w.getModuleCount(),r=0;r<n;r++)for(var o=0;o<n;o++)t.fillStyle=w.isDark(r,o)?"black":"white",t.fillRect(r*e,o*e,e,e)},w};t.stringToBytes=(t.stringToBytesFuncs={default:function(t){for(var e=[],n=0;n<t.length;n+=1){var r=t.charCodeAt(n);e.push(255&r)}return e}}).default,t.createStringToBytes=function(t,e){var n=function(){for(var n=w(t),r=function(){var t=n.read();if(-1==t)throw"eof";return t},o=0,i={};;){var a=n.read();if(-1==a)break;var s=r(),c=r()<<8|r();i[String.fromCharCode(a<<8|s)]=c,o+=1}if(o!=e)throw o+" != "+e;return i}(),r="?".charCodeAt(0);return function(t){for(var e=[],o=0;o<t.length;o+=1){var i=t.charCodeAt(o);if(i<128)e.push(i);else{var a=n[t.charAt(o)];"number"==typeof a?(255&a)==a?e.push(a):(e.push(a>>>8),e.push(255&a)):e.push(r)}}return e}};var e,n,r,o,i,a={L:1,M:0,Q:3,H:2},s=(e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,r=7973,i=function(t){for(var e=0;0!=t;)e+=1,t>>>=1;return e},(o={}).getBCHTypeInfo=function(t){for(var e=t<<10;i(e)-i(n)>=0;)e^=n<<i(e)-i(n);return 21522^(t<<10|e)},o.getBCHTypeNumber=function(t){for(var e=t<<12;i(e)-i(r)>=0;)e^=r<<i(e)-i(r);return t<<12|e},o.getPatternPosition=function(t){return e[t-1]},o.getMaskFunction=function(t){switch(t){case 0:return function(t,e){return(t+e)%2==0};case 1:return function(t,e){return t%2==0};case 2:return function(t,e){return e%3==0};case 3:return function(t,e){return(t+e)%3==0};case 4:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case 5:return function(t,e){return t*e%2+t*e%3==0};case 6:return function(t,e){return(t*e%2+t*e%3)%2==0};case 7:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw"bad maskPattern:"+t}},o.getErrorCorrectPolynomial=function(t){for(var e=u([1],0),n=0;n<t;n+=1)e=e.multiply(u([1,c.gexp(n)],0));return e},o.getLengthInBits=function(t,e){if(1<=e&&e<10)switch(t){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+t}else if(e<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+t}else{if(!(e<41))throw"type:"+e;switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+t}}},o.getLostPoint=function(t){for(var e=t.getModuleCount(),n=0,r=0;r<e;r+=1)for(var o=0;o<e;o+=1){for(var i=0,a=t.isDark(r,o),s=-1;s<=1;s+=1)if(!(r+s<0||e<=r+s))for(var c=-1;c<=1;c+=1)o+c<0||e<=o+c||0==s&&0==c||a==t.isDark(r+s,o+c)&&(i+=1);i>5&&(n+=3+i-5)}for(r=0;r<e-1;r+=1)for(o=0;o<e-1;o+=1){var u=0;t.isDark(r,o)&&(u+=1),t.isDark(r+1,o)&&(u+=1),t.isDark(r,o+1)&&(u+=1),t.isDark(r+1,o+1)&&(u+=1),0!=u&&4!=u||(n+=3)}for(r=0;r<e;r+=1)for(o=0;o<e-6;o+=1)t.isDark(r,o)&&!t.isDark(r,o+1)&&t.isDark(r,o+2)&&t.isDark(r,o+3)&&t.isDark(r,o+4)&&!t.isDark(r,o+5)&&t.isDark(r,o+6)&&(n+=40);for(o=0;o<e;o+=1)for(r=0;r<e-6;r+=1)t.isDark(r,o)&&!t.isDark(r+1,o)&&t.isDark(r+2,o)&&t.isDark(r+3,o)&&t.isDark(r+4,o)&&!t.isDark(r+5,o)&&t.isDark(r+6,o)&&(n+=40);var l=0;for(o=0;o<e;o+=1)for(r=0;r<e;r+=1)t.isDark(r,o)&&(l+=1);return n+Math.abs(100*l/e/e-50)/5*10},o),c=function(){for(var t=new Array(256),e=new Array(256),n=0;n<8;n+=1)t[n]=1<<n;for(n=8;n<256;n+=1)t[n]=t[n-4]^t[n-5]^t[n-6]^t[n-8];for(n=0;n<255;n+=1)e[t[n]]=n;return{glog:function(t){if(t<1)throw"glog("+t+")";return e[t]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t[e]}}}();function u(t,e){if(void 0===t.length)throw t.length+"/"+e;var n=function(){for(var n=0;n<t.length&&0==t[n];)n+=1;for(var r=new Array(t.length-n+e),o=0;o<t.length-n;o+=1)r[o]=t[o+n];return r}(),r={getAt:function(t){return n[t]},getLength:function(){return n.length},multiply:function(t){for(var e=new Array(r.getLength()+t.getLength()-1),n=0;n<r.getLength();n+=1)for(var o=0;o<t.getLength();o+=1)e[n+o]^=c.gexp(c.glog(r.getAt(n))+c.glog(t.getAt(o)));return u(e,0)},mod:function(t){if(r.getLength()-t.getLength()<0)return r;for(var e=c.glog(r.getAt(0))-c.glog(t.getAt(0)),n=new Array(r.getLength()),o=0;o<r.getLength();o+=1)n[o]=r.getAt(o);for(o=0;o<t.getLength();o+=1)n[o]^=c.gexp(c.glog(t.getAt(o))+e);return u(n,0).mod(t)}};return r}var l=function(){var t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e=function(t,e){var n={};return n.totalCount=t,n.dataCount=e,n},n={getRSBlocks:function(n,r){var o=function(e,n){switch(n){case a.L:return t[4*(e-1)+0];case a.M:return t[4*(e-1)+1];case a.Q:return t[4*(e-1)+2];case a.H:return t[4*(e-1)+3];default:return}}(n,r);if(void 0===o)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var i=o.length/3,s=[],c=0;c<i;c+=1)for(var u=o[3*c+0],l=o[3*c+1],d=o[3*c+2],f=0;f<u;f+=1)s.push(e(l,d));return s}};return n}(),d=function(){var t=[],e=0,n={getBuffer:function(){return t},getAt:function(e){var n=Math.floor(e/8);return 1==(t[n]>>>7-e%8&1)},put:function(t,e){for(var r=0;r<e;r+=1)n.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return e},putBit:function(n){var r=Math.floor(e/8);t.length<=r&&t.push(0),n&&(t[r]|=128>>>e%8),e+=1}};return n},f=function(t){var e=t,n={getMode:function(){return 1},getLength:function(t){return e.length},write:function(t){for(var n=e,o=0;o+2<n.length;)t.put(r(n.substring(o,o+3)),10),o+=3;o<n.length&&(n.length-o==1?t.put(r(n.substring(o,o+1)),4):n.length-o==2&&t.put(r(n.substring(o,o+2)),7))}},r=function(t){for(var e=0,n=0;n<t.length;n+=1)e=10*e+o(t.charAt(n));return e},o=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+t};return n},h=function(t){var e=t,n={getMode:function(){return 2},getLength:function(t){return e.length},write:function(t){for(var n=e,o=0;o+1<n.length;)t.put(45*r(n.charAt(o))+r(n.charAt(o+1)),11),o+=2;o<n.length&&t.put(r(n.charAt(o)),6)}},r=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);if("A"<=t&&t<="Z")return t.charCodeAt(0)-"A".charCodeAt(0)+10;switch(t){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+t}};return n},p=function(e){var n=t.stringToBytes(e);return{getMode:function(){return 4},getLength:function(t){return n.length},write:function(t){for(var e=0;e<n.length;e+=1)t.put(n[e],8)}}},g=function(e){var n=t.stringToBytesFuncs.SJIS;if(!n)throw"sjis not supported.";!function(t,e){var r=n("\u53cb");if(2!=r.length||38726!=(r[0]<<8|r[1]))throw"sjis not supported."}();var r=n(e),o={getMode:function(){return 8},getLength:function(t){return~~(r.length/2)},write:function(t){for(var e=r,n=0;n+1<e.length;){var o=(255&e[n])<<8|255&e[n+1];if(33088<=o&&o<=40956)o-=33088;else{if(!(57408<=o&&o<=60351))throw"illegal char at "+(n+1)+"/"+o;o-=49472}o=192*(o>>>8&255)+(255&o),t.put(o,13),n+=2}if(n<e.length)throw"illegal char at "+(n+1)}};return o},v=function(){var t=[],e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,n,r){n=n||0,r=r||t.length;for(var o=0;o<r;o+=1)e.writeByte(t[o+n])},writeString:function(t){for(var n=0;n<t.length;n+=1)e.writeByte(t.charCodeAt(n))},toByteArray:function(){return t},toString:function(){var e="";e+="[";for(var n=0;n<t.length;n+=1)n>0&&(e+=","),e+=t[n];return e+"]"}};return e},w=function(t){var e=t,n=0,r=0,o=0,i={read:function(){for(;o<8;){if(n>=e.length){if(0==o)return-1;throw"unexpected end of file./"+o}var t=e.charAt(n);if(n+=1,"="==t)return o=0,-1;t.match(/^\s$/)||(r=r<<6|a(t.charCodeAt(0)),o+=6)}var i=r>>>o-8&255;return o-=8,i}},a=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw"c:"+t};return i},m=function(t,e,n){for(var r=function(t,e){var n=t,r=e,o=new Array(t*e),i={setPixel:function(t,e,r){o[e*n+t]=r},write:function(t){t.writeString("GIF87a"),t.writeShort(n),t.writeShort(r),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(n),t.writeShort(r),t.writeByte(0);var e=a(2);t.writeByte(2);for(var o=0;e.length-o>255;)t.writeByte(255),t.writeBytes(e,o,255),o+=255;t.writeByte(e.length-o),t.writeBytes(e,o,e.length-o),t.writeByte(0),t.writeString(";")}},a=function(t){for(var e=1<<t,n=1+(1<<t),r=t+1,i=s(),a=0;a<e;a+=1)i.add(String.fromCharCode(a));i.add(String.fromCharCode(e)),i.add(String.fromCharCode(n));var c,u,l,d=v(),f=(c=d,u=0,l=0,{write:function(t,e){if(t>>>e!=0)throw"length over";for(;u+e>=8;)c.writeByte(255&(t<<u|l)),e-=8-u,t>>>=8-u,l=0,u=0;l|=t<<u,u+=e},flush:function(){u>0&&c.writeByte(l)}});f.write(e,r);var h=0,p=String.fromCharCode(o[h]);for(h+=1;h<o.length;){var g=String.fromCharCode(o[h]);h+=1,i.contains(p+g)?p+=g:(f.write(i.indexOf(p),r),i.size()<4095&&(i.size()==1<<r&&(r+=1),i.add(p+g)),p=g)}return f.write(i.indexOf(p),r),f.write(n,r),f.flush(),d.toByteArray()},s=function(){var t={},e=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;t[r]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return void 0!==t[e]}};return n};return i}(t,e),o=0;o<e;o+=1)for(var i=0;i<t;i+=1)r.setPixel(i,o,n(i,o));var a=v();r.write(a);for(var s=function(){var t=0,e=0,n=0,r="",o={},i=function(t){r+=String.fromCharCode(a(63&t))},a=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw"n:"+t};return o.writeByte=function(r){for(t=t<<8|255&r,e+=8,n+=1;e>=6;)i(t>>>e-6),e-=6},o.flush=function(){if(e>0&&(i(t<<6-e),t=0,e=0),n%3!=0)for(var o=3-n%3,a=0;a<o;a+=1)r+="="},o.toString=function(){return r},o}(),c=a.toByteArray(),u=0;u<c.length;u+=1)s.writeByte(c[u]);return s.flush(),"data:image/gif;base64,"+s};return t}();o.stringToBytesFuncs["UTF-8"]=function(t){return function(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e.push(r):r<2048?e.push(192|r>>6,128|63&r):r<55296||r>=57344?e.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&t.charCodeAt(n)),e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return e}(t)},void 0===(r="function"==typeof(n=function(){return o})?n.apply(e,[]):n)||(t.exports=r)},676:function(t,e,n){"use strict";n.d(e,{default:function(){return N}});var r="Numeric",o="Alphanumeric",i="Byte",a=function(){return a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a.apply(this,arguments)},s=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},c=function(t){return!!t&&"object"==typeof t&&!Array.isArray(t)};function u(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!e.length)return t;var r=e.shift();return void 0!==r&&c(t)&&c(r)?(t=a({},t),Object.keys(r).forEach((function(e){var n=t[e],o=r[e];Array.isArray(n)&&Array.isArray(o)?t[e]=o:c(n)&&c(o)?t[e]=u(Object.assign({},n),o):t[e]=o})),u.apply(void 0,s([t],e))):t}function l(t,e){var n=document.createElement("a");n.download=e,n.href=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)}var d=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},f=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};function h(t){return d(this,void 0,void 0,(function(){return f(this,(function(e){return[2,new Promise((function(e){var n=new XMLHttpRequest;n.onload=function(){var t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsDataURL(n.response)},n.open("GET",t),n.responseType="blob",n.send()}))]}))}))}for(var p={L:.07,M:.15,Q:.25,H:.3},g=function(){return g=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},g.apply(this,arguments)},v=function(){function t(t){var e=t.svg,n=t.type;this._svg=e,this._type=n}return t.prototype.draw=function(t,e,n,r){var o;switch(this._type){case"dots":o=this._drawDot;break;case"classy":o=this._drawClassy;break;case"classy-rounded":o=this._drawClassyRounded;break;case"rounded":o=this._drawRounded;break;case"extra-rounded":o=this._drawExtraRounded;break;default:o=this._drawSquare}o.call(this,{x:t,y:e,size:n,getNeighbor:r})},t.prototype._rotateFigure=function(t){var e,n=t.x,r=t.y,o=t.size,i=t.rotation,a=void 0===i?0:i,s=n+o/2,c=r+o/2;(0,t.draw)(),null===(e=this._element)||void 0===e||e.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+c+")")},t.prototype._basicDot=function(t){var e=this,n=t.size,r=t.x,o=t.y;this._rotateFigure(g(g({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),e._element.setAttribute("cx",String(r+n/2)),e._element.setAttribute("cy",String(o+n/2)),e._element.setAttribute("r",String(n/2))}}))},t.prototype._basicSquare=function(t){var e=this,n=t.size,r=t.x,o=t.y;this._rotateFigure(g(g({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),e._element.setAttribute("x",String(r)),e._element.setAttribute("y",String(o)),e._element.setAttribute("width",String(n)),e._element.setAttribute("height",String(n))}}))},t.prototype._basicSideRounded=function(t){var e=this,n=t.size,r=t.x,o=t.y;this._rotateFigure(g(g({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("d","M "+r+" "+o+"v "+n+"h "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, 0 "+-n)}}))},t.prototype._basicCornerRounded=function(t){var e=this,n=t.size,r=t.x,o=t.y;this._rotateFigure(g(g({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("d","M "+r+" "+o+"v "+n+"h "+n+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},t.prototype._basicCornerExtraRounded=function(t){var e=this,n=t.size,r=t.x,o=t.y;this._rotateFigure(g(g({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("d","M "+r+" "+o+"v "+n+"h "+n+"a "+n+" "+n+", 0, 0, 0, "+-n+" "+-n)}}))},t.prototype._basicCornersRounded=function(t){var e=this,n=t.size,r=t.x,o=t.y;this._rotateFigure(g(g({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("d","M "+r+" "+o+"v "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+n/2+" "+n/2+"h "+n/2+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},t.prototype._drawDot=function(t){var e=t.x,n=t.y,r=t.size;this._basicDot({x:e,y:n,size:r,rotation:0})},t.prototype._drawSquare=function(t){var e=t.x,n=t.y,r=t.size;this._basicSquare({x:e,y:n,size:r,rotation:0})},t.prototype._drawRounded=function(t){var e=t.x,n=t.y,r=t.size,o=t.getNeighbor,i=o?+o(-1,0):0,a=o?+o(1,0):0,s=o?+o(0,-1):0,c=o?+o(0,1):0,u=i+a+s+c;if(0!==u)if(u>2||i&&a||s&&c)this._basicSquare({x:e,y:n,size:r,rotation:0});else{if(2===u){var l=0;return i&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&c&&(l=-Math.PI/2),void this._basicCornerRounded({x:e,y:n,size:r,rotation:l})}if(1===u)return l=0,s?l=Math.PI/2:a?l=Math.PI:c&&(l=-Math.PI/2),void this._basicSideRounded({x:e,y:n,size:r,rotation:l})}else this._basicDot({x:e,y:n,size:r,rotation:0})},t.prototype._drawExtraRounded=function(t){var e=t.x,n=t.y,r=t.size,o=t.getNeighbor,i=o?+o(-1,0):0,a=o?+o(1,0):0,s=o?+o(0,-1):0,c=o?+o(0,1):0,u=i+a+s+c;if(0!==u)if(u>2||i&&a||s&&c)this._basicSquare({x:e,y:n,size:r,rotation:0});else{if(2===u){var l=0;return i&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&c&&(l=-Math.PI/2),void this._basicCornerExtraRounded({x:e,y:n,size:r,rotation:l})}if(1===u)return l=0,s?l=Math.PI/2:a?l=Math.PI:c&&(l=-Math.PI/2),void this._basicSideRounded({x:e,y:n,size:r,rotation:l})}else this._basicDot({x:e,y:n,size:r,rotation:0})},t.prototype._drawClassy=function(t){var e=t.x,n=t.y,r=t.size,o=t.getNeighbor,i=o?+o(-1,0):0,a=o?+o(1,0):0,s=o?+o(0,-1):0,c=o?+o(0,1):0;0!==i+a+s+c?i||s?a||c?this._basicSquare({x:e,y:n,size:r,rotation:0}):this._basicCornerRounded({x:e,y:n,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:e,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:e,y:n,size:r,rotation:Math.PI/2})},t.prototype._drawClassyRounded=function(t){var e=t.x,n=t.y,r=t.size,o=t.getNeighbor,i=o?+o(-1,0):0,a=o?+o(1,0):0,s=o?+o(0,-1):0,c=o?+o(0,1):0;0!==i+a+s+c?i||s?a||c?this._basicSquare({x:e,y:n,size:r,rotation:0}):this._basicCornerExtraRounded({x:e,y:n,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:e,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:e,y:n,size:r,rotation:Math.PI/2})},t}(),w=v,m=function(){return m=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},m.apply(this,arguments)},y=function(){function t(t){var e=t.svg,n=t.type;this._svg=e,this._type=n}return t.prototype.draw=function(t,e,n,r){var o;switch(this._type){case"square":o=this._drawSquare;break;case"extra-rounded":o=this._drawExtraRounded;break;default:o=this._drawDot}o.call(this,{x:t,y:e,size:n,rotation:r})},t.prototype._rotateFigure=function(t){var e,n=t.x,r=t.y,o=t.size,i=t.rotation,a=void 0===i?0:i,s=n+o/2,c=r+o/2;(0,t.draw)(),null===(e=this._element)||void 0===e||e.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+c+")")},t.prototype._basicDot=function(t){var e=this,n=t.size,r=t.x,o=t.y,i=n/7;this._rotateFigure(m(m({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("clip-rule","evenodd"),e._element.setAttribute("d","M "+(r+n/2)+" "+o+"a "+n/2+" "+n/2+" 0 1 0 0.1 0zm 0 "+i+"a "+(n/2-i)+" "+(n/2-i)+" 0 1 1 -0.1 0Z")}}))},t.prototype._basicSquare=function(t){var e=this,n=t.size,r=t.x,o=t.y,i=n/7;this._rotateFigure(m(m({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("clip-rule","evenodd"),e._element.setAttribute("d","M "+r+" "+o+"v "+n+"h "+n+"v "+-n+"zM "+(r+i)+" "+(o+i)+"h "+(n-2*i)+"v "+(n-2*i)+"h "+(2*i-n)+"z")}}))},t.prototype._basicExtraRounded=function(t){var e=this,n=t.size,r=t.x,o=t.y,i=n/7;this._rotateFigure(m(m({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("clip-rule","evenodd"),e._element.setAttribute("d","M "+r+" "+(o+2.5*i)+"v "+2*i+"a "+2.5*i+" "+2.5*i+", 0, 0, 0, "+2.5*i+" "+2.5*i+"h "+2*i+"a "+2.5*i+" "+2.5*i+", 0, 0, 0, "+2.5*i+" "+2.5*-i+"v "+-2*i+"a "+2.5*i+" "+2.5*i+", 0, 0, 0, "+2.5*-i+" "+2.5*-i+"h "+-2*i+"a "+2.5*i+" "+2.5*i+", 0, 0, 0, "+2.5*-i+" "+2.5*i+"M "+(r+2.5*i)+" "+(o+i)+"h "+2*i+"a "+1.5*i+" "+1.5*i+", 0, 0, 1, "+1.5*i+" "+1.5*i+"v "+2*i+"a "+1.5*i+" "+1.5*i+", 0, 0, 1, "+1.5*-i+" "+1.5*i+"h "+-2*i+"a "+1.5*i+" "+1.5*i+", 0, 0, 1, "+1.5*-i+" "+1.5*-i+"v "+-2*i+"a "+1.5*i+" "+1.5*i+", 0, 0, 1, "+1.5*i+" "+1.5*-i)}}))},t.prototype._drawDot=function(t){var e=t.x,n=t.y,r=t.size,o=t.rotation;this._basicDot({x:e,y:n,size:r,rotation:o})},t.prototype._drawSquare=function(t){var e=t.x,n=t.y,r=t.size,o=t.rotation;this._basicSquare({x:e,y:n,size:r,rotation:o})},t.prototype._drawExtraRounded=function(t){var e=t.x,n=t.y,r=t.size,o=t.rotation;this._basicExtraRounded({x:e,y:n,size:r,rotation:o})},t}(),b=y,x=function(){return x=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},x.apply(this,arguments)},_=function(){function t(t){var e=t.svg,n=t.type;this._svg=e,this._type=n}return t.prototype.draw=function(t,e,n,r){("square"===this._type?this._drawSquare:this._drawDot).call(this,{x:t,y:e,size:n,rotation:r})},t.prototype._rotateFigure=function(t){var e,n=t.x,r=t.y,o=t.size,i=t.rotation,a=void 0===i?0:i,s=n+o/2,c=r+o/2;(0,t.draw)(),null===(e=this._element)||void 0===e||e.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+c+")")},t.prototype._basicDot=function(t){var e=this,n=t.size,r=t.x,o=t.y;this._rotateFigure(x(x({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),e._element.setAttribute("cx",String(r+n/2)),e._element.setAttribute("cy",String(o+n/2)),e._element.setAttribute("r",String(n/2))}}))},t.prototype._basicSquare=function(t){var e=this,n=t.size,r=t.x,o=t.y;this._rotateFigure(x(x({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),e._element.setAttribute("x",String(r)),e._element.setAttribute("y",String(o)),e._element.setAttribute("width",String(n)),e._element.setAttribute("height",String(n))}}))},t.prototype._drawDot=function(t){var e=t.x,n=t.y,r=t.size,o=t.rotation;this._basicDot({x:e,y:n,size:r,rotation:o})},t.prototype._drawSquare=function(t){var e=t.x,n=t.y,r=t.size,o=t.rotation;this._basicSquare({x:e,y:n,size:r,rotation:o})},t}(),k=_,C="circle",S=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},j=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Z=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],O=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]],P=function(){function t(e){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(e.width)),this._element.setAttribute("height",String(e.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._instanceId=t.instanceCount++,this._options=e}return Object.defineProperty(t.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),t.prototype.getElement=function(){return this._element},t.prototype.drawQR=function(t){return S(this,void 0,void 0,(function(){var e,n,r,o,i,a,s,c,u,l,d=this;return j(this,(function(f){switch(f.label){case 0:return e=t.getModuleCount(),n=Math.min(this._options.width,this._options.height)-2*this._options.margin,r=this._options.shape===C?n/Math.sqrt(2):n,o=r/e,i={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=t,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(f.sent(),!this._image)return[2];a=this._options,s=a.imageOptions,c=a.qrOptions,u=s.imageSize*p[c.errorCorrectionLevel],l=Math.floor(u*e*e),i=function(t){var e=t.originalHeight,n=t.originalWidth,r=t.maxHiddenDots,o=t.maxHiddenAxisDots,i=t.dotSize,a={x:0,y:0},s={x:0,y:0};if(e<=0||n<=0||r<=0||i<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var c=e/n;return a.x=Math.floor(Math.sqrt(r/c)),a.x<=0&&(a.x=1),o&&o<a.x&&(a.x=o),a.x%2==0&&a.x--,s.x=a.x*i,a.y=1+2*Math.ceil((a.x*c-1)/2),s.y=Math.round(s.x*c),(a.y*a.x>r||o&&o<a.y)&&(o&&o<a.y?(a.y=o,a.y%2==0&&a.x--):a.y-=2,s.y=a.y*i,a.x=1+2*Math.ceil((a.y/c-1)/2),s.x=Math.round(s.y/c)),{height:s.y,width:s.x,hideYDots:a.y,hideXDots:a.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:l,maxHiddenAxisDots:e-14,dotSize:o}),f.label=2;case 2:return this.drawBackground(),this.drawDots((function(t,n){var r,o,a,s,c,u;return!(d._options.imageOptions.hideBackgroundDots&&t>=(e-i.hideXDots)/2&&t<(e+i.hideXDots)/2&&n>=(e-i.hideYDots)/2&&n<(e+i.hideYDots)/2||(null===(r=Z[t])||void 0===r?void 0:r[n])||(null===(o=Z[t-e+7])||void 0===o?void 0:o[n])||(null===(a=Z[t])||void 0===a?void 0:a[n-e+7])||(null===(s=O[t])||void 0===s?void 0:s[n])||(null===(c=O[t-e+7])||void 0===c?void 0:c[n])||(null===(u=O[t])||void 0===u?void 0:u[n-e+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:i.width,height:i.height,count:e,dotSize:o})]:[3,4];case 3:f.sent(),f.label=4;case 4:return[2]}}))}))},t.prototype.drawBackground=function(){var t,e,n,r=this._element,o=this._options;if(r){var i=null===(t=o.backgroundOptions)||void 0===t?void 0:t.gradient,a=null===(e=o.backgroundOptions)||void 0===e?void 0:e.color;if((i||a)&&this._createColor({options:i,color:a,additionalRotation:0,x:0,y:0,height:o.height,width:o.width,name:"background-color"}),null===(n=o.backgroundOptions)||void 0===n?void 0:n.round){var s=Math.min(o.width,o.height),c=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),c.setAttribute("x",String((o.width-s)/2)),c.setAttribute("y",String((o.height-s)/2)),c.setAttribute("width",String(s)),c.setAttribute("height",String(s)),c.setAttribute("rx",String(s/2*o.backgroundOptions.round)),this._backgroundClipPath.appendChild(c)}}},t.prototype.drawDots=function(t){var e,n,r=this;if(!this._qr)throw"QR code is not defined";var o=this._options,i=this._qr.getModuleCount();if(i>o.width||i>o.height)throw"The canvas is too small.";var a=Math.min(o.width,o.height)-2*o.margin,s=(o.shape===C?a/Math.sqrt(2):a)/i,c=(o.width-i*s)/2,u=(o.height-i*s)/2,l=new w({svg:this._element,type:o.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color-"+this._instanceId),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(e=o.dotsOptions)||void 0===e?void 0:e.gradient,color:o.dotsOptions.color,additionalRotation:0,x:0,y:0,height:o.height,width:o.width,name:"dot-color-"+this._instanceId});for(var d=function(e){for(var o=function(o){return t&&!t(e,o)?"continue":(null===(n=f._qr)||void 0===n?void 0:n.isDark(e,o))?(l.draw(c+e*s,u+o*s,s,(function(n,a){return!(e+n<0||o+a<0||e+n>=i||o+a>=i)&&!(t&&!t(e+n,o+a))&&!!r._qr&&r._qr.isDark(e+n,o+a)})),void(l._element&&f._dotsClipPath&&f._dotsClipPath.appendChild(l._element))):"continue"},a=0;a<i;a++)o(a)},f=this,h=0;h<i;h++)d(h);if(o.shape===C){var p=Math.floor((a/s-i)/2),g=i+2*p,v=c-p*s,m=u-p*s,y=[],b=Math.floor(g/2);for(h=0;h<g;h++){y[h]=[];for(var x=0;x<g;x++)h>=p-1&&h<=g-p&&x>=p-1&&x<=g-p||Math.sqrt((h-b)*(h-b)+(x-b)*(x-b))>b?y[h][x]=0:y[h][x]=this._qr.isDark(x-2*p<0?x:x>=i?x-2*p:x-p,h-2*p<0?h:h>=i?h-2*p:h-p)?1:0}var _=function(t){for(var e=function(e){if(!y[t][e])return"continue";l.draw(v+t*s,m+e*s,s,(function(n,r){var o;return!!(null===(o=y[t+n])||void 0===o?void 0:o[e+r])})),l._element&&k._dotsClipPath&&k._dotsClipPath.appendChild(l._element)},n=0;n<g;n++)e(n)},k=this;for(h=0;h<g;h++)_(h)}},t.prototype.drawCorners=function(){var t=this;if(!this._qr)throw"QR code is not defined";var e=this._element,n=this._options;if(!e)throw"Element code is not defined";var r=this._qr.getModuleCount(),o=Math.min(n.width,n.height)-2*n.margin,i=(n.shape===C?o/Math.sqrt(2):o)/r,a=7*i,s=3*i,c=(n.width-r*i)/2,u=(n.height-r*i)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((function(e){var o,l,d,f,h,p,g,v,m,y,x,_,C=e[0],S=e[1],j=e[2],P=c+C*i*(r-7),z=u+S*i*(r-7),M=t._dotsClipPath,A=t._dotsClipPath;if(((null===(o=n.cornersSquareOptions)||void 0===o?void 0:o.gradient)||(null===(l=n.cornersSquareOptions)||void 0===l?void 0:l.color))&&((M=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+C+"-"+S),t._defs.appendChild(M),t._cornersSquareClipPath=t._cornersDotClipPath=A=M,t._createColor({options:null===(d=n.cornersSquareOptions)||void 0===d?void 0:d.gradient,color:null===(f=n.cornersSquareOptions)||void 0===f?void 0:f.color,additionalRotation:j,x:P,y:z,height:a,width:a,name:"corners-square-color-"+C+"-"+S})),null===(h=n.cornersSquareOptions)||void 0===h?void 0:h.type){var D=new b({svg:t._element,type:n.cornersSquareOptions.type});D.draw(P,z,a,j),D._element&&M&&M.appendChild(D._element)}else for(var R=new w({svg:t._element,type:n.dotsOptions.type}),E=function(t){for(var e=function(e){if(!(null===(p=Z[t])||void 0===p?void 0:p[e]))return"continue";R.draw(P+t*i,z+e*i,i,(function(n,r){var o;return!!(null===(o=Z[t+n])||void 0===o?void 0:o[e+r])})),R._element&&M&&M.appendChild(R._element)},n=0;n<Z[t].length;n++)e(n)},I=0;I<Z.length;I++)E(I);if(((null===(g=n.cornersDotOptions)||void 0===g?void 0:g.gradient)||(null===(v=n.cornersDotOptions)||void 0===v?void 0:v.color))&&((A=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+C+"-"+S),t._defs.appendChild(A),t._cornersDotClipPath=A,t._createColor({options:null===(m=n.cornersDotOptions)||void 0===m?void 0:m.gradient,color:null===(y=n.cornersDotOptions)||void 0===y?void 0:y.color,additionalRotation:j,x:P+2*i,y:z+2*i,height:s,width:s,name:"corners-dot-color-"+C+"-"+S})),null===(x=n.cornersDotOptions)||void 0===x?void 0:x.type){var L=new k({svg:t._element,type:n.cornersDotOptions.type});L.draw(P+2*i,z+2*i,s,j),L._element&&A&&A.appendChild(L._element)}else{R=new w({svg:t._element,type:n.dotsOptions.type});var q=function(t){for(var e=function(e){if(!(null===(_=O[t])||void 0===_?void 0:_[e]))return"continue";R.draw(P+t*i,z+e*i,i,(function(n,r){var o;return!!(null===(o=O[t+n])||void 0===o?void 0:o[e+r])})),R._element&&A&&A.appendChild(R._element)},n=0;n<O[t].length;n++)e(n)};for(I=0;I<O.length;I++)q(I)}}))},t.prototype.loadImage=function(){var t=this;return new Promise((function(e,n){var r=t._options,o=new Image;if(!r.image)return n("Image is not defined");"string"==typeof r.imageOptions.crossOrigin&&(o.crossOrigin=r.imageOptions.crossOrigin),t._image=o,o.onload=function(){e()},o.src=r.image}))},t.prototype.drawImage=function(t){var e=t.width,n=t.height,r=t.count,o=t.dotSize;return S(this,void 0,void 0,(function(){var t,i,a,s,c,u,l,d,f;return j(this,(function(p){switch(p.label){case 0:return t=this._options,i=(t.width-r*o)/2,a=(t.height-r*o)/2,s=i+t.imageOptions.margin+(r*o-e)/2,c=a+t.imageOptions.margin+(r*o-n)/2,u=e-2*t.imageOptions.margin,l=n-2*t.imageOptions.margin,(d=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(s)),d.setAttribute("y",String(c)),d.setAttribute("width",u+"px"),d.setAttribute("height",l+"px"),[4,h(t.image||"")];case 1:return f=p.sent(),d.setAttribute("href",f||""),this._element.appendChild(d),[2]}}))}))},t.prototype._createColor=function(t){var e=t.options,n=t.color,r=t.additionalRotation,o=t.x,i=t.y,a=t.height,s=t.width,c=t.name,u=s>a?s:a,l=document.createElementNS("http://www.w3.org/2000/svg","rect");if(l.setAttribute("x",String(o)),l.setAttribute("y",String(i)),l.setAttribute("height",String(a)),l.setAttribute("width",String(s)),l.setAttribute("clip-path","url('#clip-path-"+c+"')"),e){var d;if("radial"===e.type)(d=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",c),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("fx",String(o+s/2)),d.setAttribute("fy",String(i+a/2)),d.setAttribute("cx",String(o+s/2)),d.setAttribute("cy",String(i+a/2)),d.setAttribute("r",String(u/2));else{var f=((e.rotation||0)+r)%(2*Math.PI),h=(f+2*Math.PI)%(2*Math.PI),p=o+s/2,g=i+a/2,v=o+s/2,w=i+a/2;h>=0&&h<=.25*Math.PI||h>1.75*Math.PI&&h<=2*Math.PI?(p-=s/2,g-=a/2*Math.tan(f),v+=s/2,w+=a/2*Math.tan(f)):h>.25*Math.PI&&h<=.75*Math.PI?(g-=a/2,p-=s/2/Math.tan(f),w+=a/2,v+=s/2/Math.tan(f)):h>.75*Math.PI&&h<=1.25*Math.PI?(p+=s/2,g+=a/2*Math.tan(f),v-=s/2,w-=a/2*Math.tan(f)):h>1.25*Math.PI&&h<=1.75*Math.PI&&(g+=a/2,p+=s/2/Math.tan(f),w-=a/2,v-=s/2/Math.tan(f)),(d=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",c),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("x1",String(Math.round(p))),d.setAttribute("y1",String(Math.round(g))),d.setAttribute("x2",String(Math.round(v))),d.setAttribute("y2",String(Math.round(w)))}e.colorStops.forEach((function(t){var e=t.offset,n=t.color,r=document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*e+"%"),r.setAttribute("stop-color",n),d.appendChild(r)})),l.setAttribute("fill","url('#"+c+"')"),this._defs.appendChild(d)}else n&&l.setAttribute("fill",n);this._element.appendChild(l)},t.instanceCount=0,t}(),z="canvas",M={},A=0;A<=40;A++)M[A]=A;var D={type:z,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:M[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}},R=function(){return R=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},R.apply(this,arguments)};function E(t){var e=R({},t);if(!e.colorStops||!e.colorStops.length)throw"Field 'colorStops' is required in gradient";return e.rotation?e.rotation=Number(e.rotation):e.rotation=0,e.colorStops=e.colorStops.map((function(t){return R(R({},t),{offset:Number(t.offset)})})),e}function I(t){var e=R({},t);return e.width=Number(e.width),e.height=Number(e.height),e.margin=Number(e.margin),e.imageOptions=R(R({},e.imageOptions),{hideBackgroundDots:Boolean(e.imageOptions.hideBackgroundDots),imageSize:Number(e.imageOptions.imageSize),margin:Number(e.imageOptions.margin)}),e.margin>Math.min(e.width,e.height)&&(e.margin=Math.min(e.width,e.height)),e.dotsOptions=R({},e.dotsOptions),e.dotsOptions.gradient&&(e.dotsOptions.gradient=E(e.dotsOptions.gradient)),e.cornersSquareOptions&&(e.cornersSquareOptions=R({},e.cornersSquareOptions),e.cornersSquareOptions.gradient&&(e.cornersSquareOptions.gradient=E(e.cornersSquareOptions.gradient))),e.cornersDotOptions&&(e.cornersDotOptions=R({},e.cornersDotOptions),e.cornersDotOptions.gradient&&(e.cornersDotOptions.gradient=E(e.cornersDotOptions.gradient))),e.backgroundOptions&&(e.backgroundOptions=R({},e.backgroundOptions),e.backgroundOptions.gradient&&(e.backgroundOptions.gradient=E(e.backgroundOptions.gradient))),e}var L=n(192),q=n.n(L),B=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},W=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},N=function(){function t(t){this._options=t?I(u(D,t)):D,this.update()}return t._clearContainer=function(t){t&&(t.innerHTML="")},t.prototype._setupSvg=function(){var t=this;if(this._qr){var e=new P(this._options);this._svg=e.getElement(),this._svgDrawingPromise=e.drawQR(this._qr).then((function(){var n;t._svg&&(null===(n=t._extension)||void 0===n||n.call(t,e.getElement(),t._options))}))}},t.prototype._setupCanvas=function(){var t,e=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=null===(t=this._svgDrawingPromise)||void 0===t?void 0:t.then((function(){if(e._svg){var t=e._svg,n=(new XMLSerializer).serializeToString(t),r="data:image/svg+xml;base64,"+btoa(n),o=new Image;return new Promise((function(t){o.onload=function(){var n,r;null===(r=null===(n=e._canvas)||void 0===n?void 0:n.getContext("2d"))||void 0===r||r.drawImage(o,0,0),t()},o.src=r}))}})))},t.prototype._getElement=function(t){return void 0===t&&(t="png"),B(this,void 0,void 0,(function(){return W(this,(function(e){switch(e.label){case 0:if(!this._qr)throw"QR code is empty";return"svg"!==t.toLowerCase()?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return e.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return e.sent(),[2,this._canvas]}}))}))},t.prototype.update=function(e){t._clearContainer(this._container),this._options=e?I(u(this._options,e)):this._options,this._options.data&&(this._qr=q()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(t){switch(!0){case/^[0-9]*$/.test(t):return r;case/^[0-9A-Z $%*+\-./:]*$/.test(t):return o;default:return i}}(this._options.data)),this._qr.make(),this._options.type===z?this._setupCanvas():this._setupSvg(),this.append(this._container))},t.prototype.append=function(t){if(t){if("function"!=typeof t.appendChild)throw"Container should be a single DOM node";this._options.type===z?this._canvas&&t.appendChild(this._canvas):this._svg&&t.appendChild(this._svg),this._container=t}},t.prototype.applyExtension=function(t){if(!t)throw"Extension function should be defined.";this._extension=t,this.update()},t.prototype.deleteExtension=function(){this._extension=void 0,this.update()},t.prototype.getRawData=function(t){return void 0===t&&(t="png"),B(this,void 0,void 0,(function(){var e,n,r;return W(this,(function(o){switch(o.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(t)];case 1:return(e=o.sent())?"svg"===t.toLowerCase()?(n=new XMLSerializer,r=n.serializeToString(e),[2,new Blob(['<?xml version="1.0" standalone="no"?>\r\n'+r],{type:"image/svg+xml"})]):[2,new Promise((function(n){return e.toBlob(n,"image/"+t,1)}))]:[2,null]}}))}))},t.prototype.download=function(t){return B(this,void 0,void 0,(function(){var e,n,r,o,i;return W(this,(function(a){switch(a.label){case 0:if(!this._qr)throw"QR code is empty";return e="png",n="qr","string"==typeof t?(e=t,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof t&&null!==t&&(t.name&&(n=t.name),t.extension&&(e=t.extension)),[4,this._getElement(e)];case 1:return(r=a.sent())?("svg"===e.toLowerCase()?(o=new XMLSerializer,i='<?xml version="1.0" standalone="no"?>\r\n'+(i=o.serializeToString(r)),l("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i),n+".svg")):l(r.toDataURL("image/"+e),n+"."+e),[2]):[2]}}))}))},t}()}},e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n(676)}().default},5713:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(30969),o=function(t){return function(e,n){var o=(0,r.useRef)(!1);t((function(){return function(){o.current=!1}}),[]),t((function(){if(o.current)return e();o.current=!0}),n)}},i=o(r.useEffect)},60523:function(t){t.exports=function(t){return null==t}},87270:function(t){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},70306:function(t,e,n){var r=n(48311),o=n(87270),i=n(35483);t.exports=function(t,e){return i(t,o(r(e)))}},35483:function(t,e,n){var r=n(26306),o=n(48311),i=n(45994),a=n(60699);t.exports=function(t,e){if(null==t)return{};var n=r(a(t),(function(t){return[t]}));return e=o(e),i(t,n,(function(t,n){return e(t,n[0])}))}},87138:function(t,e,n){"use strict";var r;e.Z=void 0;var o=(0,((r=n(24693))&&r.__esModule?r:{default:r}).default)("M15.9,18.45C17.25,18.45 18.35,17.35 18.35,16C18.35,14.65 17.25,13.55 15.9,13.55C14.54,13.55 13.45,14.65 13.45,16C13.45,17.35 14.54,18.45 15.9,18.45M21.1,16.68L22.58,17.84C22.71,17.95 22.75,18.13 22.66,18.29L21.26,20.71C21.17,20.86 21,20.92 20.83,20.86L19.09,20.16C18.73,20.44 18.33,20.67 17.91,20.85L17.64,22.7C17.62,22.87 17.47,23 17.3,23H14.5C14.32,23 14.18,22.87 14.15,22.7L13.89,20.85C13.46,20.67 13.07,20.44 12.71,20.16L10.96,20.86C10.81,20.92 10.62,20.86 10.54,20.71L9.14,18.29C9.05,18.13 9.09,17.95 9.22,17.84L10.7,16.68L10.65,16L10.7,15.31L9.22,14.16C9.09,14.05 9.05,13.86 9.14,13.71L10.54,11.29C10.62,11.13 10.81,11.07 10.96,11.13L12.71,11.84C13.07,11.56 13.46,11.32 13.89,11.15L14.15,9.29C14.18,9.13 14.32,9 14.5,9H17.3C17.47,9 17.62,9.13 17.64,9.29L17.91,11.15C18.33,11.32 18.73,11.56 19.09,11.84L20.83,11.13C21,11.07 21.17,11.13 21.26,11.29L22.66,13.71C22.75,13.86 22.71,14.05 22.58,14.16L21.1,15.31L21.15,16L21.1,16.68M6.69,8.07C7.56,8.07 8.26,7.37 8.26,6.5C8.26,5.63 7.56,4.92 6.69,4.92A1.58,1.58 0 0,0 5.11,6.5C5.11,7.37 5.82,8.07 6.69,8.07M10.03,6.94L11,7.68C11.07,7.75 11.09,7.87 11.03,7.97L10.13,9.53C10.08,9.63 9.96,9.67 9.86,9.63L8.74,9.18L8,9.62L7.81,10.81C7.79,10.92 7.7,11 7.59,11H5.79C5.67,11 5.58,10.92 5.56,10.81L5.4,9.62L4.64,9.18L3.5,9.63C3.41,9.67 3.3,9.63 3.24,9.53L2.34,7.97C2.28,7.87 2.31,7.75 2.39,7.68L3.34,6.94L3.31,6.5L3.34,6.06L2.39,5.32C2.31,5.25 2.28,5.13 2.34,5.03L3.24,3.47C3.3,3.37 3.41,3.33 3.5,3.37L4.63,3.82L5.4,3.38L5.56,2.19C5.58,2.08 5.67,2 5.79,2H7.59C7.7,2 7.79,2.08 7.81,2.19L8,3.38L8.74,3.82L9.86,3.37C9.96,3.33 10.08,3.37 10.13,3.47L11.03,5.03C11.09,5.13 11.07,5.25 11,5.32L10.03,6.06L10.06,6.5L10.03,6.94Z","Cogs");e.Z=o},20281:function(t,e,n){"use strict";var r=n(30969),o=n(42851),i=n(46378),a=["mousemove","mousedown","resize","keydown","touchstart","wheel"];e.Z=function(t,e,n){void 0===t&&(t=6e4),void 0===e&&(e=!1),void 0===n&&(n=a);var s=r.useState(e),c=s[0],u=s[1];return r.useEffect((function(){for(var e,r=!0,a=c,s=function(t){r&&(a=t,u(t))},l=o.throttle(50,(function(){a&&s(!1),clearTimeout(e),e=setTimeout((function(){return s(!0)}),t)})),d=function(){document.hidden||l()},f=0;f<n.length;f++)i.on(window,n[f],l);return i.on(document,"visibilitychange",d),e=setTimeout((function(){return s(!0)}),t),function(){r=!1;for(var t=0;t<n.length;t++)i.off(window,n[t],l);i.off(document,"visibilitychange",d)}}),[t,n]),c}},42851:function(t,e){"use strict";function n(t,e,n,r){var o,i=!1,a=0;function s(){o&&clearTimeout(o)}function c(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var d=this,f=Date.now()-a;function h(){a=Date.now(),n.apply(d,u)}i||(r&&!o&&h(),s(),void 0===r&&f>t?h():!0!==e&&(o=setTimeout(r?function(){o=void 0}:h,void 0===r?t-f:t)))}return"boolean"!==typeof e&&(r=n,n=e,e=void 0),c.cancel=function(){s(),i=!0},c}Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=function(t,e,r){return void 0===r?n(t,e,!1):n(t,r,!1!==e)},e.throttle=n}}]);
|
|
2
|
+
//# sourceMappingURL=7.c01bf0f4.chunk.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[7006],{98123:function(e,r,o){var a,t=o(56666),i=o(31461),n=o(7896),l=o(30969),s=o(81856),d=o(26540),c=o(42641),u=o(86171),f=o(45971),m=o(24099),p=o(57761),v=o(17363),Z=o(37574),h=["children","className","component","disabled","error","filled","focused","margin","required","variant"],b=(0,f.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,r){var o=e.ownerState;return[r.root,o.size&&r["size".concat((0,m.Z)(o.size))],o.contained&&r.contained,o.filled&&r.filled]}})((function(e){var r,o=e.theme,a=e.ownerState;return(0,n.Z)({color:(o.vars||o).palette.text.secondary},o.typography.caption,(r={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,t.Z)(r,"&.".concat(p.Z.disabled),{color:(o.vars||o).palette.text.disabled}),(0,t.Z)(r,"&.".concat(p.Z.error),{color:(o.vars||o).palette.error.main}),r),"small"===a.size&&{marginTop:4},a.contained&&{marginLeft:14,marginRight:14})})),x=l.forwardRef((function(e,r){var o=(0,v.Z)({props:e,name:"MuiFormHelperText"}),t=o.children,l=o.className,f=o.component,x=void 0===f?"p":f,k=(0,i.Z)(o,h),w=(0,u.Z)(),F=(0,c.Z)({props:o,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),z=(0,n.Z)({},o,{component:x,contained:"filled"===F.variant||"outlined"===F.variant,variant:F.variant,size:F.size,disabled:F.disabled,error:F.error,filled:F.filled,focused:F.focused,required:F.required}),q=function(e){var r=e.classes,o=e.contained,a=e.size,t=e.disabled,i=e.error,n=e.filled,l=e.focused,s=e.required,c={root:["root",t&&"disabled",i&&"error",a&&"size".concat((0,m.Z)(a)),o&&"contained",l&&"focused",n&&"filled",s&&"required"]};return(0,d.Z)(c,p.E,r)}(z);return(0,Z.jsx)(b,(0,n.Z)({as:x,ownerState:z,className:(0,s.default)(q.root,l),ref:r},k,{children:" "===t?a||(a=(0,Z.jsx)("span",{className:"notranslate",children:"\u200b"})):t}))}));r.Z=x},57761:function(e,r,o){o.d(r,{E:function(){return i}});var a=o(62746),t=o(2975);function i(e){return(0,t.Z)("MuiFormHelperText",e)}var n=(0,a.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);r.Z=n},51385:function(e,r,o){o.d(r,{Z:function(){return g}});var a=o(56666),t=o(31461),i=o(7896),n=o(30969),l=o(26540),s=o(81856),d=o(42641),c=o(86171),u=o(24099),f=o(17363),m=o(45971),p=o(62746),v=o(2975);function Z(e){return(0,v.Z)("MuiFormLabel",e)}var h=(0,p.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),b=o(37574),x=["children","className","color","component","disabled","error","filled","focused","required"],k=(0,m.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,r){var o=e.ownerState;return(0,i.Z)({},r.root,"secondary"===o.color&&r.colorSecondary,o.filled&&r.filled)}})((function(e){var r,o=e.theme,t=e.ownerState;return(0,i.Z)({color:(o.vars||o).palette.text.secondary},o.typography.body1,(r={lineHeight:"1.4375em",padding:0,position:"relative"},(0,a.Z)(r,"&.".concat(h.focused),{color:(o.vars||o).palette[t.color].main}),(0,a.Z)(r,"&.".concat(h.disabled),{color:(o.vars||o).palette.text.disabled}),(0,a.Z)(r,"&.".concat(h.error),{color:(o.vars||o).palette.error.main}),r))})),w=(0,m.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,r){return r.asterisk}})((function(e){var r=e.theme;return(0,a.Z)({},"&.".concat(h.error),{color:(r.vars||r).palette.error.main})})),F=n.forwardRef((function(e,r){var o=(0,f.Z)({props:e,name:"MuiFormLabel"}),a=o.children,n=o.className,m=o.component,p=void 0===m?"label":m,v=(0,t.Z)(o,x),h=(0,c.Z)(),F=(0,d.Z)({props:o,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),z=(0,i.Z)({},o,{color:F.color||"primary",component:p,disabled:F.disabled,error:F.error,filled:F.filled,focused:F.focused,required:F.required}),q=function(e){var r=e.classes,o=e.color,a=e.focused,t=e.disabled,i=e.error,n=e.filled,s=e.required,d={root:["root","color".concat((0,u.Z)(o)),t&&"disabled",i&&"error",n&&"filled",a&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return(0,l.Z)(d,Z,r)}(z);return(0,b.jsxs)(k,(0,i.Z)({as:p,ownerState:z,className:(0,s.default)(q.root,n),ref:r},v,{children:[a,F.required&&(0,b.jsxs)(w,{ownerState:z,"aria-hidden":!0,className:q.asterisk,children:["\u2009","*"]})]}))})),z=o(50504),q=["disableAnimation","margin","shrink","variant","className"],R=(0,m.ZP)(F,{shouldForwardProp:function(e){return(0,m.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,r){var o=e.ownerState;return[(0,a.Z)({},"& .".concat(h.asterisk),r.asterisk),r.root,o.formControl&&r.formControl,"small"===o.size&&r.sizeSmall,o.shrink&&r.shrink,!o.disableAnimation&&r.animated,r[o.variant]]}})((function(e){var r=e.theme,o=e.ownerState;return(0,i.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===o.size&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:r.transitions.create(["color","transform","max-width"],{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut})},"filled"===o.variant&&(0,i.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===o.size&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&(0,i.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===o.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===o.variant&&(0,i.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===o.size&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),g=n.forwardRef((function(e,r){var o=(0,f.Z)({name:"MuiInputLabel",props:e}),a=o.disableAnimation,n=void 0!==a&&a,u=o.shrink,m=o.className,p=(0,t.Z)(o,q),v=(0,c.Z)(),Z=u;"undefined"===typeof Z&&v&&(Z=v.filled||v.focused||v.adornedStart);var h=(0,d.Z)({props:o,muiFormControl:v,states:["size","variant","required"]}),x=(0,i.Z)({},o,{disableAnimation:n,formControl:v,shrink:Z,size:h.size,variant:h.variant,required:h.required}),k=function(e){var r=e.classes,o=e.formControl,a=e.size,t=e.shrink,n={root:["root",o&&"formControl",!e.disableAnimation&&"animated",t&&"shrink","small"===a&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},s=(0,l.Z)(n,z.Y,r);return(0,i.Z)({},r,s)}(x);return(0,b.jsx)(R,(0,i.Z)({"data-shrink":Z,ownerState:x,ref:r,className:(0,s.default)(k.root,m)},p,{classes:k}))}))},50504:function(e,r,o){o.d(r,{Y:function(){return i}});var a=o(62746),t=o(2975);function i(e){return(0,t.Z)("MuiInputLabel",e)}var n=(0,a.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);r.Z=n},87006:function(e,r,o){var a=o(7896),t=o(31461),i=o(30969),n=o(81856),l=o(26540),s=o(3210),d=o(45971),c=o(17363),u=o(48525),f=o(42412),m=o(33656),p=o(51385),v=o(87535),Z=o(98123),h=o(39130),b=o(99453),x=o(37574),k=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],w={standard:u.Z,filled:f.Z,outlined:m.Z},F=(0,d.ZP)(v.Z,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,r){return r.root}})({}),z=i.forwardRef((function(e,r){var o=(0,c.Z)({props:e,name:"MuiTextField"}),i=o.autoComplete,d=o.autoFocus,u=void 0!==d&&d,f=o.children,m=o.className,v=o.color,z=void 0===v?"primary":v,q=o.defaultValue,R=o.disabled,g=void 0!==R&&R,S=o.error,y=void 0!==S&&S,C=o.FormHelperTextProps,M=o.fullWidth,P=void 0!==M&&M,N=o.helperText,T=o.id,I=o.InputLabelProps,L=o.inputProps,W=o.InputProps,j=o.inputRef,A=o.label,H=o.maxRows,E=o.minRows,_=o.multiline,O=void 0!==_&&_,B=o.name,V=o.onBlur,Y=o.onChange,D=o.onClick,G=o.onFocus,J=o.placeholder,K=o.required,Q=void 0!==K&&K,U=o.rows,X=o.select,$=void 0!==X&&X,ee=o.SelectProps,re=o.type,oe=o.value,ae=o.variant,te=void 0===ae?"outlined":ae,ie=(0,t.Z)(o,k),ne=(0,a.Z)({},o,{autoFocus:u,color:z,disabled:g,error:y,fullWidth:P,multiline:O,required:Q,select:$,variant:te}),le=function(e){var r=e.classes;return(0,l.Z)({root:["root"]},b.I,r)}(ne);var se={};"outlined"===te&&(I&&"undefined"!==typeof I.shrink&&(se.notched=I.shrink),se.label=A),$&&(ee&&ee.native||(se.id=void 0),se["aria-describedby"]=void 0);var de=(0,s.Z)(T),ce=N&&de?"".concat(de,"-helper-text"):void 0,ue=A&&de?"".concat(de,"-label"):void 0,fe=w[te],me=(0,x.jsx)(fe,(0,a.Z)({"aria-describedby":ce,autoComplete:i,autoFocus:u,defaultValue:q,fullWidth:P,multiline:O,name:B,rows:U,maxRows:H,minRows:E,type:re,value:oe,id:de,inputRef:j,onBlur:V,onChange:Y,onFocus:G,onClick:D,placeholder:J,inputProps:L},se,W));return(0,x.jsxs)(F,(0,a.Z)({className:(0,n.default)(le.root,m),disabled:g,error:y,fullWidth:P,ref:r,required:Q,color:z,variant:te,ownerState:ne},ie,{children:[null!=A&&""!==A&&(0,x.jsx)(p.Z,(0,a.Z)({htmlFor:de,id:ue},I,{children:A})),$?(0,x.jsx)(h.Z,(0,a.Z)({"aria-describedby":ce,id:de,labelId:ue,value:oe,input:me},ee,{children:f})):me,N&&(0,x.jsx)(Z.Z,(0,a.Z)({id:ce},C,{children:N}))]}))}));r.Z=z},99453:function(e,r,o){o.d(r,{I:function(){return i}});var a=o(62746),t=o(2975);function i(e){return(0,t.Z)("MuiTextField",e)}var n=(0,a.Z)("MuiTextField",["root"]);r.Z=n}}]);
|
|
2
|
+
//# sourceMappingURL=7006.b21fb368.chunk.js.map
|