diff --git a/7024.async.js b/7024.async.js index a7919f1..5b26791 100644 --- a/7024.async.js +++ b/7024.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7024],{7024:function(e,t,n){n.r(t);var r=n(97857),s=n.n(r),a=n(15009),o=n.n(a),c=n(99289),i=n.n(c),l=n(5574),u=n.n(l),f=n(54359),p=n(3990),d=n(64119),m=n(11774),h=n(38345),g=n(59530),b=n(80507),k=n(45360),y=n(69677),v=n(57953),x=n(92398),N=n(9669),S=n.n(N),w=n(27484),j=n.n(w),P=n(96486),_=n(62435),L=(n(31145),n(86074));t.default=function(){var e=k.ZP.useMessage(),t=u()(e,2),n=t[0],r=t[1],a=(0,g.useDispatch)(),c=(0,g.useSelector)((function(e){return e.global.session})),l=(0,g.useSelector)((function(e){return e.global.contractKit})),N=(0,g.useSelector)((function(e){return e.global.accountKit})),w=(0,g.useSelector)((function(e){return e.account.activeKey})),V=(0,g.useSelector)((function(e){return e.account.accountInfo})),O=(0,g.useSelector)((function(e){return e.account.loading})),D=(0,g.useSelector)((function(e){return e.account.approvals2})),M=(0,g.useSelector)((function(e){return e.account.proposals})),T=(0,_.useRef)(),C=(0,_.useState)(""),E=u()(C,2),I=E[0],z=E[1],q=(0,g.useSearchParams)(),A=u()(q,2),F=A[0],K=A[1],R=F.get("tab")?F.get("tab"):void 0,Z=(0,g.useIntl)(),U=Z.formatMessage({id:"account.intlAccount"}),B=Z.formatMessage({id:"account.intlSearch"}),$=Z.formatMessage({id:"contract.intlAccountFormatError"}),G=Z.formatMessage({id:"account.intlSearchAccount"}),H=Z.formatMessage({id:"account.intlProfile"}),J=Z.formatMessage({id:"account.intlAuth"}),Q=Z.formatMessage({id:"account.intlToken"}),W=Z.formatMessage({id:"account.intlNft"}),X=Z.formatMessage({id:"account.intlLiq"}),Y=Z.formatMessage({id:"account.intlTx"}),ee=Z.formatMessage({id:"account.intlProposal"}),te=Z.formatMessage({id:"account.intlInvite"}),ne=(0,_.useMemo)((function(){return V?V.accountName.toString():""}),[V]),re=(0,_.useCallback)(function(){var e=i()(o()().mark((function e(t,r){var s,i,l,f;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(/^[a-z1-5.]{1,12}$/.test(t)){e.next=8;break}if(t||r.hasOwnProperty("type")){e.next=4;break}return e.abrupt("return",!1);case 4:return n.error("".concat($)),e.abrupt("return",!1);case 8:return e.next=10,(0,d.zI)(c.client.v1.chain.get_abi(t));case 10:if(s=e.sent,i=u()(s,2),l=i[0],f=i[1],!l){e.next=17;break}return n.error(l),e.abrupt("return",!1);case 17:return!l&&f.hasOwnProperty("abi")?a(p.N.setIsContract(!0)):a(p.N.setIsContract(!1)),e.abrupt("return",!0);case 19:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[c,n]),se=(0,_.useCallback)(function(){var e=i()(o()().mark((function e(t,n,r){var c,i,l,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=[],i={},l={},n.forEach((function(e){var n=e.max_token_supply.symbol.name,r=e.init_nft_price.symbol.name,s=e.id,a=e.nft_img,o=e.project_name,c="";"DFS"===r?c="eosio.token-DFS-8":"USDT"===r?c="usdtusdtusdt-USDT-8":"ORDI"===r&&(c="ordiordiordi-ORDI-8");var i=t[c];l[s]={logo:a,sym:n,price:i,name:o}})),r.forEach((function(e){var t=e.pid.toString(),n=e.current_price.value,r=l[t].price*n,s=l[t].name;i.hasOwnProperty(t)?(i[t].count+=1,i[t].value+=r):i[t]={count:1,value:r,logo:l[t].logo,sym:l[t].sym,name:s}})),u=0,Object.keys(i).forEach((function(e){u+=i[e].value,c.push(s()({pid:e},i[e]))})),c.sort((function(e,t){return t.value-e.value})),a(p.N.setNfts(c)),a(p.N.setNftsValue(u)),a(p.N.setNftsLoading(!1));case 11:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),[]),ae=(0,_.useCallback)(function(){var e=i()(o()().mark((function e(t,r,s,c,i,l){var f,m,h,g,k,y,v,x,N,w,P,_,L,V,O,D,M,T,C,E,I,z,q,A,F;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,f=[],h={},g=[],k=[],y=0,v={balValue:0,reserveValue:0,diffValue:0},"usdtusdtusdt-USDT-8",x="eosio.token-DFS-8",N=[],(m={})["usdtusdtusdt-USDT-8"]=1,m[x]=(0,d.ri)(s[0].reserve0)/(0,d.ri)(s[0].reserve1),s.forEach((function(e){var t=e.contract0.toString()+"-"+e.sym0.toString().split(",")[1]+"-"+e.sym0.toString().split(",")[0],n=e.contract1.toString()+"-"+e.sym1.toString().split(",")[1]+"-"+e.sym1.toString().split(",")[0];f.includes(t)||(f.push(t),h[t]=f.length),f.includes(n)||(f.push(n),h[n]=f.length);var r=(0,d.ri)(e.reserve0),s=(0,d.ri)(e.reserve1);"eosio.token"===e.contract0.toString()?m.hasOwnProperty(n)||(m[n]=r/s*m[x]):"eosio.token"===e.contract1.toString()?m.hasOwnProperty(t)||(m[t]=s/r*m[x]):"usdtusdtusdt"===e.contract0.toString()?m.hasOwnProperty(n)||(m[n]=r/s):"usdtusdtusdt"===e.contract1.toString()?m.hasOwnProperty(t)||(m[t]=s/r):N.push({key0:t,key1:n,value0:r,value1:s})})),N.forEach((function(e){m.hasOwnProperty(e.key0)&&!m.hasOwnProperty(e.key1)?m[e.key1]=e.value0/e.value1*m[e.key0]:!m.hasOwnProperty(e.key0)&&m.hasOwnProperty(e.key1)?m[e.key0]=e.value1/e.value0*m[e.key1]:m.hasOwnProperty(e.key0)||m.hasOwnProperty(e.key1)||(m[e.key0]=0,m[e.key1]=0),Number.isNaN(m[e.key0])&&(m[e.key0]=0)})),Object.keys(m).forEach((function(e){Number.isNaN(m[e])&&(m[e]=0)})),m["dfs3protocol-DFS-8"]=0,w={},c.forEach((function(e){var t=e.max_token_supply.symbol.name;w[t]=e.token_url})),se(m,c,i),e.next=22,(0,d.zI)(S().get("https://api2.dfsmoon.com/v2/state/get_tokens?limit=1000&account=".concat(l),{timeout:2e3}));case 22:if(P=e.sent,_=u()(P,2),L=_[0],V=_[1],L||200!==V.status){e.next=31;break}V.data.tokens.forEach((function(e){if("dfs3protocol"!==e.contract){var t=e.contract+"-"+e.symbol,n=m[t+"-"+e.precision],r=e.amount*n;y+=r;var s="dfsppptokens"===e.contract?w[e.symbol]:"https://dfs.land/assets/tokens/".concat(t,".png");g.push({key:t,contract:e.contract,sym:e.symbol,precision:String(e.precision),price:n,asset:b.xR.from(e.amount.toFixed(e.precision)+" "+e.symbol),value:r,logo:s})}})),g.sort((function(e,t){return h[e.key+"-"+e.precision]-h[t.key+"-"+t.precision]})),e.next=52;break;case 31:O=0;case 32:if(!(Otr>th{background:#fff}.ppp-list thead>tr>th:nth-child(1){min-width:10px}.ppp-list thead>tr>th:nth-child(2){min-width:120px}.ppp-list thead>tr>th:nth-child(3){min-width:160px}.ppp-list thead>tr>th:nth-child(4){min-width:80px}.ppp-list thead>tr>th:nth-child(5){min-width:90px}.ppp-list thead>tr>th:nth-child(6){min-width:80px}.ppp-list thead>tr>th:nth-child(7){min-width:80px}.ppp-list thead>tr>th:nth-child(8){min-width:80px}.ppp-list thead>tr>th:nth-child(9){min-width:160px}.ppp-list thead>tr>th:nth-child(10){min-width:160px}.ppp-list thead>tr>th:nth-child(11){min-width:90px}.ppp-list thead>tr>th:nth-child(12){min-width:100px}.ppp-list thead>tr>th:nth-child(13){min-width:100px}.ppp-list thead>tr>th:nth-child(14){min-width:80px}.ppp-list thead>tr>th:nth-child(15){min-width:90px}.ppp-list thead>tr>th:nth-child(16){min-width:120px}.ppp-list thead>tr>th:nth-child(17){min-width:160px}.ppp-list .ant-pro-card .ant-pro-card-body{padding-block-start:2px;padding-inline:8px}.ppp-swaplog .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-swaplog .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-swaplog .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-swaplog .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-swaplog .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-swaplog thead>tr>th:nth-child(1){min-width:20px}.ppp-swaplog thead>tr>th:nth-child(2){min-width:60px}.ppp-swaplog thead>tr>th:nth-child(3){min-width:120px}.ppp-swaplog thead>tr>th:nth-child(4){min-width:50px}.ppp-swaplog thead>tr>th:nth-child(5){min-width:230px}.ppp-swaplog thead>tr>th:nth-child(6){min-width:160px}.ppp-swaplog thead>tr>th:nth-child(7){min-width:160px}.ppp-tokens .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-tokens .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-tokens .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tokens .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tokens .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tokens thead>tr>th:nth-child(1){min-width:50px}.ppp-tokens thead>tr>th:nth-child(2){min-width:130px}.ppp-tokens thead>tr>th:nth-child(3){min-width:150px}.ppp-tokens thead>tr>th:nth-child(4){min-width:200px}.ppp-tokens thead>tr>th:nth-child(5){min-width:150px}.ppp-tokens thead>tr>th:nth-child(6){min-width:150px}.ppp-tokens thead>tr>th:nth-child(7){min-width:60px}.ppp-tokens .ant-pro-query-filter{padding:12px}.ppp-tokens .ant-pro-table-search{margin-block-end:1px}.ppp-tokens .ant-pro-query-filter-row{row-gap:0}.ppp-tokens .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-account .ant-pro-card .ant-pro-card-header,.ppp-account .ant-pro-card .ant-pro-card-body{padding-inline:18px}.ppp-account .tab-action .ant-form .ant-form-item{margin-bottom:14px}.ppp-account .tab-table .ant-form .ant-form-item{margin-bottom:12px}.ppp-account .tab-action .ant-form>div:last-child{margin-top:24px;margin-bottom:14px}.ppp-account .tab-table .ant-form>div:last-child{margin-top:8px;margin-bottom:18px}.ppp-account .tab-table .ant-pro-card .ant-pro-card-body{padding-inline:0}.ppp-account .ant-tabs-nav{margin-left:0} diff --git a/src__pages__PPP__List.chunk.css b/src__pages__PPP__List.chunk.css index 934c8d8..2af83f3 100644 --- a/src__pages__PPP__List.chunk.css +++ b/src__pages__PPP__List.chunk.css @@ -1 +1 @@ -.ppp-tab-nft .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-nft .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-nft .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-nft thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-nft thead>tr>th:nth-child(2){min-width:40px}.ppp-tab-nft thead>tr>th:nth-child(3){min-width:40px}.ppp-tab-nft thead>tr>th:nth-child(4){min-width:80px}.ppp-tab-nft thead>tr>th:nth-child(5){min-width:100px}.ppp-tab-nft thead>tr>th:nth-child(6){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(7){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(8){min-width:140px}.ppp-tab-nft thead>tr>th:nth-child(9){min-width:190px}.ppp-tab-nft thead>tr>th:nth-child(10){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(11){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(12){min-width:100px}.ppp-tab-nft .ant-pro-query-filter{padding:12px}.ppp-tab-nft .ant-pro-table-search{margin-block-end:1px}.ppp-tab-nft .ant-pro-query-filter-row{row-gap:0}.ppp-tab-nft .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-tab-rank .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-rank .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-rank .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-rank thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-rank thead>tr>th:nth-child(2){min-width:140px}.ppp-tab-rank thead>tr>th:nth-child(3){min-width:140px}.ppp-tab-rank thead>tr>th:nth-child(4){min-width:100px}.ppp-tab-rank thead>tr>th:nth-child(5){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(6){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(7){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(8){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(9){min-width:180px}.ppp-tab-rank .ant-pro-query-filter{padding:12px}.ppp-tab-rank .ant-pro-table-search{margin-block-end:1px}.ppp-tab-rank .ant-pro-query-filter-row{row-gap:0}.ppp-tab-rank .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-tab-pool thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-pool thead>tr>th:nth-child(2){min-width:140px}.ppp-tab-pool thead>tr>th:nth-child(3){min-width:180px}.ppp-tab-pool thead>tr>th:nth-child(4){min-width:150px}.ppp-tab-pool thead>tr>th:nth-child(5){min-width:150px}.ppp-tab-grow thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-grow thead>tr>th:nth-child(2){min-width:160px}.ppp-tab-grow thead>tr>th:nth-child(3){min-width:80px}.ppp-tab-grow thead>tr>th:nth-child(4){min-width:120px}.ppp-tab-grow thead>tr>th:nth-child(5){min-width:120px}.ppp-tab-grow thead>tr>th:nth-child(6){min-width:120px}.ppp-tab-grow thead>tr>th:nth-child(7){min-width:120px}.ppp-tab-token .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-tab-token .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-tab-token .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-token .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-token .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-token thead>tr>th:nth-child(1){min-width:50px}.ppp-tab-token thead>tr>th:nth-child(2){min-width:130px}.ppp-tab-token thead>tr>th:nth-child(3){min-width:150px}.ppp-tab-token thead>tr>th:nth-child(4){min-width:200px}.ppp-tab-token thead>tr>th:nth-child(5){min-width:150px}.ppp-tab-token thead>tr>th:nth-child(6){min-width:150px}.ppp-tab-token thead>tr>th:nth-child(7){min-width:60px}.ppp-tab-token .ant-pro-query-filter{padding:12px}.ppp-tab-token .ant-pro-table-search{margin-block-end:1px}.ppp-tab-token .ant-pro-query-filter-row{row-gap:0}.ppp-tab-token .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-tab-swaplog .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-tab-swaplog .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-tab-swaplog .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-swaplog .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-swaplog .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-swaplog thead>tr>th:nth-child(1){min-width:20px}.ppp-tab-swaplog thead>tr>th:nth-child(2){min-width:60px}.ppp-tab-swaplog thead>tr>th:nth-child(3){min-width:120px}.ppp-tab-swaplog thead>tr>th:nth-child(4){min-width:50px}.ppp-tab-swaplog thead>tr>th:nth-child(5){min-width:230px}.ppp-tab-swaplog thead>tr>th:nth-child(6){min-width:160px}.ppp-tab-swaplog thead>tr>th:nth-child(7){min-width:160px}.projects .ant-pro-card .ant-pro-card-body{padding-inline:6px;padding-block:8px}.ppp-list .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-list thead>tr>th:nth-child(1){min-width:10px}.ppp-list thead>tr>th:nth-child(2){min-width:120px}.ppp-list thead>tr>th:nth-child(3){min-width:160px}.ppp-list thead>tr>th:nth-child(4){min-width:80px}.ppp-list thead>tr>th:nth-child(5){min-width:90px}.ppp-list thead>tr>th:nth-child(6){min-width:80px}.ppp-list thead>tr>th:nth-child(7){min-width:80px}.ppp-list thead>tr>th:nth-child(8){min-width:80px}.ppp-list thead>tr>th:nth-child(9){min-width:160px}.ppp-list thead>tr>th:nth-child(10){min-width:160px}.ppp-list thead>tr>th:nth-child(11){min-width:90px}.ppp-list thead>tr>th:nth-child(12){min-width:100px}.ppp-list thead>tr>th:nth-child(13){min-width:100px}.ppp-list thead>tr>th:nth-child(14){min-width:80px}.ppp-list thead>tr>th:nth-child(15){min-width:90px}.ppp-list thead>tr>th:nth-child(16){min-width:120px}.ppp-list thead>tr>th:nth-child(17){min-width:160px}.ppp-list .ant-pro-card .ant-pro-card-body{padding-block-start:2px;padding-inline:8px}.ppp-swaplog .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-swaplog .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-swaplog .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-swaplog .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-swaplog .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-swaplog thead>tr>th:nth-child(1){min-width:20px}.ppp-swaplog thead>tr>th:nth-child(2){min-width:60px}.ppp-swaplog thead>tr>th:nth-child(3){min-width:120px}.ppp-swaplog thead>tr>th:nth-child(4){min-width:50px}.ppp-swaplog thead>tr>th:nth-child(5){min-width:230px}.ppp-swaplog thead>tr>th:nth-child(6){min-width:160px}.ppp-swaplog thead>tr>th:nth-child(7){min-width:160px} +.ppp-tab-nft .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-nft .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-nft .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-nft thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-nft thead>tr>th:nth-child(2){min-width:40px}.ppp-tab-nft thead>tr>th:nth-child(3){min-width:40px}.ppp-tab-nft thead>tr>th:nth-child(4){min-width:80px}.ppp-tab-nft thead>tr>th:nth-child(5){min-width:100px}.ppp-tab-nft thead>tr>th:nth-child(6){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(7){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(8){min-width:140px}.ppp-tab-nft thead>tr>th:nth-child(9){min-width:190px}.ppp-tab-nft thead>tr>th:nth-child(10){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(11){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(12){min-width:100px}.ppp-tab-nft .ant-pro-query-filter{padding:12px}.ppp-tab-nft .ant-pro-table-search{margin-block-end:1px}.ppp-tab-nft .ant-pro-query-filter-row{row-gap:0}.ppp-tab-nft .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-tab-rank .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-rank .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-rank .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-rank thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-rank thead>tr>th:nth-child(2){min-width:140px}.ppp-tab-rank thead>tr>th:nth-child(3){min-width:140px}.ppp-tab-rank thead>tr>th:nth-child(4){min-width:100px}.ppp-tab-rank thead>tr>th:nth-child(5){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(6){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(7){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(8){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(9){min-width:180px}.ppp-tab-rank .ant-pro-query-filter{padding:12px}.ppp-tab-rank .ant-pro-table-search{margin-block-end:1px}.ppp-tab-rank .ant-pro-query-filter-row{row-gap:0}.ppp-tab-rank .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-tab-pool thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-pool thead>tr>th:nth-child(2){min-width:140px}.ppp-tab-pool thead>tr>th:nth-child(3){min-width:180px}.ppp-tab-pool thead>tr>th:nth-child(4){min-width:150px}.ppp-tab-pool thead>tr>th:nth-child(5){min-width:150px}.ppp-tab-grow thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-grow thead>tr>th:nth-child(2){min-width:160px}.ppp-tab-grow thead>tr>th:nth-child(3){min-width:80px}.ppp-tab-grow thead>tr>th:nth-child(4){min-width:120px}.ppp-tab-grow thead>tr>th:nth-child(5){min-width:120px}.ppp-tab-grow thead>tr>th:nth-child(6){min-width:120px}.ppp-tab-grow thead>tr>th:nth-child(7){min-width:120px}.ppp-tab-token .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-tab-token .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-tab-token .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-token .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-token .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-token thead>tr>th:nth-child(1){min-width:50px}.ppp-tab-token thead>tr>th:nth-child(2){min-width:130px}.ppp-tab-token thead>tr>th:nth-child(3){min-width:150px}.ppp-tab-token thead>tr>th:nth-child(4){min-width:200px}.ppp-tab-token thead>tr>th:nth-child(5){min-width:150px}.ppp-tab-token thead>tr>th:nth-child(6){min-width:150px}.ppp-tab-token thead>tr>th:nth-child(7){min-width:60px}.ppp-tab-token .ant-pro-query-filter{padding:12px}.ppp-tab-token .ant-pro-table-search{margin-block-end:1px}.ppp-tab-token .ant-pro-query-filter-row{row-gap:0}.ppp-tab-token .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-tab-swaplog .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-tab-swaplog .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-tab-swaplog .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-swaplog .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-swaplog .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-swaplog thead>tr>th:nth-child(1){min-width:20px}.ppp-tab-swaplog thead>tr>th:nth-child(2){min-width:60px}.ppp-tab-swaplog thead>tr>th:nth-child(3){min-width:120px}.ppp-tab-swaplog thead>tr>th:nth-child(4){min-width:50px}.ppp-tab-swaplog thead>tr>th:nth-child(5){min-width:230px}.ppp-tab-swaplog thead>tr>th:nth-child(6){min-width:160px}.ppp-tab-swaplog thead>tr>th:nth-child(7){min-width:160px}.projects .ant-pro-card .ant-pro-card-body{padding-inline:6px;padding-block:8px}.ppp-list .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-list thead>tr>th:nth-child(1){min-width:10px}.ppp-list thead>tr>th:nth-child(2){min-width:120px}.ppp-list thead>tr>th:nth-child(3){min-width:160px}.ppp-list thead>tr>th:nth-child(4){min-width:80px}.ppp-list thead>tr>th:nth-child(5){min-width:90px}.ppp-list thead>tr>th:nth-child(6){min-width:80px}.ppp-list thead>tr>th:nth-child(7){min-width:80px}.ppp-list thead>tr>th:nth-child(8){min-width:80px}.ppp-list thead>tr>th:nth-child(9){min-width:160px}.ppp-list thead>tr>th:nth-child(10){min-width:160px}.ppp-list thead>tr>th:nth-child(11){min-width:90px}.ppp-list thead>tr>th:nth-child(12){min-width:100px}.ppp-list thead>tr>th:nth-child(13){min-width:100px}.ppp-list thead>tr>th:nth-child(14){min-width:80px}.ppp-list thead>tr>th:nth-child(15){min-width:90px}.ppp-list thead>tr>th:nth-child(16){min-width:120px}.ppp-list thead>tr>th:nth-child(17){min-width:160px}.ppp-list .ant-pro-card .ant-pro-card-body{padding-block-start:2px;padding-inline:8px}.ppp-swaplog .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-swaplog .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-swaplog .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-swaplog .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-swaplog .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-swaplog thead>tr>th:nth-child(1){min-width:20px}.ppp-swaplog thead>tr>th:nth-child(2){min-width:60px}.ppp-swaplog thead>tr>th:nth-child(3){min-width:120px}.ppp-swaplog thead>tr>th:nth-child(4){min-width:50px}.ppp-swaplog thead>tr>th:nth-child(5){min-width:230px}.ppp-swaplog thead>tr>th:nth-child(6){min-width:160px}.ppp-swaplog thead>tr>th:nth-child(7){min-width:160px}.ppp-tokens .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-tokens .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-tokens .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tokens .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tokens .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tokens thead>tr>th:nth-child(1){min-width:50px}.ppp-tokens thead>tr>th:nth-child(2){min-width:130px}.ppp-tokens thead>tr>th:nth-child(3){min-width:150px}.ppp-tokens thead>tr>th:nth-child(4){min-width:200px}.ppp-tokens thead>tr>th:nth-child(5){min-width:150px}.ppp-tokens thead>tr>th:nth-child(6){min-width:150px}.ppp-tokens thead>tr>th:nth-child(7){min-width:60px}.ppp-tokens .ant-pro-query-filter{padding:12px}.ppp-tokens .ant-pro-table-search{margin-block-end:1px}.ppp-tokens .ant-pro-query-filter-row{row-gap:0}.ppp-tokens .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-account .ant-pro-card .ant-pro-card-header,.ppp-account .ant-pro-card .ant-pro-card-body{padding-inline:18px}.ppp-account .tab-action .ant-form .ant-form-item{margin-bottom:14px}.ppp-account .tab-table .ant-form .ant-form-item{margin-bottom:12px}.ppp-account .tab-action .ant-form>div:last-child{margin-top:24px;margin-bottom:14px}.ppp-account .tab-table .ant-form>div:last-child{margin-top:8px;margin-bottom:18px}.ppp-account .tab-table .ant-pro-card .ant-pro-card-body{padding-inline:0}.ppp-account .ant-tabs-nav{margin-left:0} diff --git a/src__pages__PPP__Project.chunk.css b/src__pages__PPP__Project.chunk.css index 934c8d8..2af83f3 100644 --- a/src__pages__PPP__Project.chunk.css +++ b/src__pages__PPP__Project.chunk.css @@ -1 +1 @@ -.ppp-tab-nft .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-nft .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-nft .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-nft thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-nft thead>tr>th:nth-child(2){min-width:40px}.ppp-tab-nft thead>tr>th:nth-child(3){min-width:40px}.ppp-tab-nft thead>tr>th:nth-child(4){min-width:80px}.ppp-tab-nft thead>tr>th:nth-child(5){min-width:100px}.ppp-tab-nft thead>tr>th:nth-child(6){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(7){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(8){min-width:140px}.ppp-tab-nft thead>tr>th:nth-child(9){min-width:190px}.ppp-tab-nft thead>tr>th:nth-child(10){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(11){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(12){min-width:100px}.ppp-tab-nft .ant-pro-query-filter{padding:12px}.ppp-tab-nft .ant-pro-table-search{margin-block-end:1px}.ppp-tab-nft .ant-pro-query-filter-row{row-gap:0}.ppp-tab-nft .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-tab-rank .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-rank .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-rank .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-rank thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-rank thead>tr>th:nth-child(2){min-width:140px}.ppp-tab-rank thead>tr>th:nth-child(3){min-width:140px}.ppp-tab-rank thead>tr>th:nth-child(4){min-width:100px}.ppp-tab-rank thead>tr>th:nth-child(5){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(6){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(7){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(8){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(9){min-width:180px}.ppp-tab-rank .ant-pro-query-filter{padding:12px}.ppp-tab-rank .ant-pro-table-search{margin-block-end:1px}.ppp-tab-rank .ant-pro-query-filter-row{row-gap:0}.ppp-tab-rank .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-tab-pool thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-pool thead>tr>th:nth-child(2){min-width:140px}.ppp-tab-pool thead>tr>th:nth-child(3){min-width:180px}.ppp-tab-pool thead>tr>th:nth-child(4){min-width:150px}.ppp-tab-pool thead>tr>th:nth-child(5){min-width:150px}.ppp-tab-grow thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-grow thead>tr>th:nth-child(2){min-width:160px}.ppp-tab-grow thead>tr>th:nth-child(3){min-width:80px}.ppp-tab-grow thead>tr>th:nth-child(4){min-width:120px}.ppp-tab-grow thead>tr>th:nth-child(5){min-width:120px}.ppp-tab-grow thead>tr>th:nth-child(6){min-width:120px}.ppp-tab-grow thead>tr>th:nth-child(7){min-width:120px}.ppp-tab-token .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-tab-token .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-tab-token .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-token .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-token .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-token thead>tr>th:nth-child(1){min-width:50px}.ppp-tab-token thead>tr>th:nth-child(2){min-width:130px}.ppp-tab-token thead>tr>th:nth-child(3){min-width:150px}.ppp-tab-token thead>tr>th:nth-child(4){min-width:200px}.ppp-tab-token thead>tr>th:nth-child(5){min-width:150px}.ppp-tab-token thead>tr>th:nth-child(6){min-width:150px}.ppp-tab-token thead>tr>th:nth-child(7){min-width:60px}.ppp-tab-token .ant-pro-query-filter{padding:12px}.ppp-tab-token .ant-pro-table-search{margin-block-end:1px}.ppp-tab-token .ant-pro-query-filter-row{row-gap:0}.ppp-tab-token .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-tab-swaplog .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-tab-swaplog .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-tab-swaplog .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-swaplog .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-swaplog .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-swaplog thead>tr>th:nth-child(1){min-width:20px}.ppp-tab-swaplog thead>tr>th:nth-child(2){min-width:60px}.ppp-tab-swaplog thead>tr>th:nth-child(3){min-width:120px}.ppp-tab-swaplog thead>tr>th:nth-child(4){min-width:50px}.ppp-tab-swaplog thead>tr>th:nth-child(5){min-width:230px}.ppp-tab-swaplog thead>tr>th:nth-child(6){min-width:160px}.ppp-tab-swaplog thead>tr>th:nth-child(7){min-width:160px}.projects .ant-pro-card .ant-pro-card-body{padding-inline:6px;padding-block:8px}.ppp-list .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-list thead>tr>th:nth-child(1){min-width:10px}.ppp-list thead>tr>th:nth-child(2){min-width:120px}.ppp-list thead>tr>th:nth-child(3){min-width:160px}.ppp-list thead>tr>th:nth-child(4){min-width:80px}.ppp-list thead>tr>th:nth-child(5){min-width:90px}.ppp-list thead>tr>th:nth-child(6){min-width:80px}.ppp-list thead>tr>th:nth-child(7){min-width:80px}.ppp-list thead>tr>th:nth-child(8){min-width:80px}.ppp-list thead>tr>th:nth-child(9){min-width:160px}.ppp-list thead>tr>th:nth-child(10){min-width:160px}.ppp-list thead>tr>th:nth-child(11){min-width:90px}.ppp-list thead>tr>th:nth-child(12){min-width:100px}.ppp-list thead>tr>th:nth-child(13){min-width:100px}.ppp-list thead>tr>th:nth-child(14){min-width:80px}.ppp-list thead>tr>th:nth-child(15){min-width:90px}.ppp-list thead>tr>th:nth-child(16){min-width:120px}.ppp-list thead>tr>th:nth-child(17){min-width:160px}.ppp-list .ant-pro-card .ant-pro-card-body{padding-block-start:2px;padding-inline:8px}.ppp-swaplog .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-swaplog .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-swaplog .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-swaplog .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-swaplog .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-swaplog thead>tr>th:nth-child(1){min-width:20px}.ppp-swaplog thead>tr>th:nth-child(2){min-width:60px}.ppp-swaplog thead>tr>th:nth-child(3){min-width:120px}.ppp-swaplog thead>tr>th:nth-child(4){min-width:50px}.ppp-swaplog thead>tr>th:nth-child(5){min-width:230px}.ppp-swaplog thead>tr>th:nth-child(6){min-width:160px}.ppp-swaplog thead>tr>th:nth-child(7){min-width:160px} +.ppp-tab-nft .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-nft .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-nft .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-nft thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-nft thead>tr>th:nth-child(2){min-width:40px}.ppp-tab-nft thead>tr>th:nth-child(3){min-width:40px}.ppp-tab-nft thead>tr>th:nth-child(4){min-width:80px}.ppp-tab-nft thead>tr>th:nth-child(5){min-width:100px}.ppp-tab-nft thead>tr>th:nth-child(6){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(7){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(8){min-width:140px}.ppp-tab-nft thead>tr>th:nth-child(9){min-width:190px}.ppp-tab-nft thead>tr>th:nth-child(10){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(11){min-width:160px}.ppp-tab-nft thead>tr>th:nth-child(12){min-width:100px}.ppp-tab-nft .ant-pro-query-filter{padding:12px}.ppp-tab-nft .ant-pro-table-search{margin-block-end:1px}.ppp-tab-nft .ant-pro-query-filter-row{row-gap:0}.ppp-tab-nft .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-tab-rank .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-rank .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-rank .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-rank thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-rank thead>tr>th:nth-child(2){min-width:140px}.ppp-tab-rank thead>tr>th:nth-child(3){min-width:140px}.ppp-tab-rank thead>tr>th:nth-child(4){min-width:100px}.ppp-tab-rank thead>tr>th:nth-child(5){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(6){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(7){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(8){min-width:180px}.ppp-tab-rank thead>tr>th:nth-child(9){min-width:180px}.ppp-tab-rank .ant-pro-query-filter{padding:12px}.ppp-tab-rank .ant-pro-table-search{margin-block-end:1px}.ppp-tab-rank .ant-pro-query-filter-row{row-gap:0}.ppp-tab-rank .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-tab-pool thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-pool thead>tr>th:nth-child(2){min-width:140px}.ppp-tab-pool thead>tr>th:nth-child(3){min-width:180px}.ppp-tab-pool thead>tr>th:nth-child(4){min-width:150px}.ppp-tab-pool thead>tr>th:nth-child(5){min-width:150px}.ppp-tab-grow thead>tr>th:nth-child(1){min-width:10px}.ppp-tab-grow thead>tr>th:nth-child(2){min-width:160px}.ppp-tab-grow thead>tr>th:nth-child(3){min-width:80px}.ppp-tab-grow thead>tr>th:nth-child(4){min-width:120px}.ppp-tab-grow thead>tr>th:nth-child(5){min-width:120px}.ppp-tab-grow thead>tr>th:nth-child(6){min-width:120px}.ppp-tab-grow thead>tr>th:nth-child(7){min-width:120px}.ppp-tab-token .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-tab-token .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-tab-token .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-token .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-token .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-token thead>tr>th:nth-child(1){min-width:50px}.ppp-tab-token thead>tr>th:nth-child(2){min-width:130px}.ppp-tab-token thead>tr>th:nth-child(3){min-width:150px}.ppp-tab-token thead>tr>th:nth-child(4){min-width:200px}.ppp-tab-token thead>tr>th:nth-child(5){min-width:150px}.ppp-tab-token thead>tr>th:nth-child(6){min-width:150px}.ppp-tab-token thead>tr>th:nth-child(7){min-width:60px}.ppp-tab-token .ant-pro-query-filter{padding:12px}.ppp-tab-token .ant-pro-table-search{margin-block-end:1px}.ppp-tab-token .ant-pro-query-filter-row{row-gap:0}.ppp-tab-token .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-tab-swaplog .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-tab-swaplog .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-tab-swaplog .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tab-swaplog .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tab-swaplog .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tab-swaplog thead>tr>th:nth-child(1){min-width:20px}.ppp-tab-swaplog thead>tr>th:nth-child(2){min-width:60px}.ppp-tab-swaplog thead>tr>th:nth-child(3){min-width:120px}.ppp-tab-swaplog thead>tr>th:nth-child(4){min-width:50px}.ppp-tab-swaplog thead>tr>th:nth-child(5){min-width:230px}.ppp-tab-swaplog thead>tr>th:nth-child(6){min-width:160px}.ppp-tab-swaplog thead>tr>th:nth-child(7){min-width:160px}.projects .ant-pro-card .ant-pro-card-body{padding-inline:6px;padding-block:8px}.ppp-list .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-list thead>tr>th:nth-child(1){min-width:10px}.ppp-list thead>tr>th:nth-child(2){min-width:120px}.ppp-list thead>tr>th:nth-child(3){min-width:160px}.ppp-list thead>tr>th:nth-child(4){min-width:80px}.ppp-list thead>tr>th:nth-child(5){min-width:90px}.ppp-list thead>tr>th:nth-child(6){min-width:80px}.ppp-list thead>tr>th:nth-child(7){min-width:80px}.ppp-list thead>tr>th:nth-child(8){min-width:80px}.ppp-list thead>tr>th:nth-child(9){min-width:160px}.ppp-list thead>tr>th:nth-child(10){min-width:160px}.ppp-list thead>tr>th:nth-child(11){min-width:90px}.ppp-list thead>tr>th:nth-child(12){min-width:100px}.ppp-list thead>tr>th:nth-child(13){min-width:100px}.ppp-list thead>tr>th:nth-child(14){min-width:80px}.ppp-list thead>tr>th:nth-child(15){min-width:90px}.ppp-list thead>tr>th:nth-child(16){min-width:120px}.ppp-list thead>tr>th:nth-child(17){min-width:160px}.ppp-list .ant-pro-card .ant-pro-card-body{padding-block-start:2px;padding-inline:8px}.ppp-swaplog .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-swaplog .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-swaplog .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-swaplog .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-swaplog .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-swaplog thead>tr>th:nth-child(1){min-width:20px}.ppp-swaplog thead>tr>th:nth-child(2){min-width:60px}.ppp-swaplog thead>tr>th:nth-child(3){min-width:120px}.ppp-swaplog thead>tr>th:nth-child(4){min-width:50px}.ppp-swaplog thead>tr>th:nth-child(5){min-width:230px}.ppp-swaplog thead>tr>th:nth-child(6){min-width:160px}.ppp-swaplog thead>tr>th:nth-child(7){min-width:160px}.ppp-tokens .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-tokens .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-tokens .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tokens .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tokens .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tokens thead>tr>th:nth-child(1){min-width:50px}.ppp-tokens thead>tr>th:nth-child(2){min-width:130px}.ppp-tokens thead>tr>th:nth-child(3){min-width:150px}.ppp-tokens thead>tr>th:nth-child(4){min-width:200px}.ppp-tokens thead>tr>th:nth-child(5){min-width:150px}.ppp-tokens thead>tr>th:nth-child(6){min-width:150px}.ppp-tokens thead>tr>th:nth-child(7){min-width:60px}.ppp-tokens .ant-pro-query-filter{padding:12px}.ppp-tokens .ant-pro-table-search{margin-block-end:1px}.ppp-tokens .ant-pro-query-filter-row{row-gap:0}.ppp-tokens .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-account .ant-pro-card .ant-pro-card-header,.ppp-account .ant-pro-card .ant-pro-card-body{padding-inline:18px}.ppp-account .tab-action .ant-form .ant-form-item{margin-bottom:14px}.ppp-account .tab-table .ant-form .ant-form-item{margin-bottom:12px}.ppp-account .tab-action .ant-form>div:last-child{margin-top:24px;margin-bottom:14px}.ppp-account .tab-table .ant-form>div:last-child{margin-top:8px;margin-bottom:18px}.ppp-account .tab-table .ant-pro-card .ant-pro-card-body{padding-inline:0}.ppp-account .ant-tabs-nav{margin-left:0} diff --git a/src__pages__PPP__SwapLog.chunk.css b/src__pages__PPP__SwapLog.chunk.css index 4a6990e..218bfa1 100644 --- a/src__pages__PPP__SwapLog.chunk.css +++ b/src__pages__PPP__SwapLog.chunk.css @@ -1 +1 @@ -.projects .ant-pro-card .ant-pro-card-body{padding-inline:6px;padding-block:8px}.ppp-list .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-list thead>tr>th:nth-child(1){min-width:10px}.ppp-list thead>tr>th:nth-child(2){min-width:120px}.ppp-list thead>tr>th:nth-child(3){min-width:160px}.ppp-list thead>tr>th:nth-child(4){min-width:80px}.ppp-list thead>tr>th:nth-child(5){min-width:90px}.ppp-list thead>tr>th:nth-child(6){min-width:80px}.ppp-list thead>tr>th:nth-child(7){min-width:80px}.ppp-list thead>tr>th:nth-child(8){min-width:80px}.ppp-list thead>tr>th:nth-child(9){min-width:160px}.ppp-list thead>tr>th:nth-child(10){min-width:160px}.ppp-list thead>tr>th:nth-child(11){min-width:90px}.ppp-list thead>tr>th:nth-child(12){min-width:100px}.ppp-list thead>tr>th:nth-child(13){min-width:100px}.ppp-list thead>tr>th:nth-child(14){min-width:80px}.ppp-list thead>tr>th:nth-child(15){min-width:90px}.ppp-list thead>tr>th:nth-child(16){min-width:120px}.ppp-list thead>tr>th:nth-child(17){min-width:160px}.ppp-list .ant-pro-card .ant-pro-card-body{padding-block-start:2px;padding-inline:8px}.ppp-swaplog .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-swaplog .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-swaplog .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-swaplog .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-swaplog .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-swaplog thead>tr>th:nth-child(1){min-width:20px}.ppp-swaplog thead>tr>th:nth-child(2){min-width:60px}.ppp-swaplog thead>tr>th:nth-child(3){min-width:120px}.ppp-swaplog thead>tr>th:nth-child(4){min-width:50px}.ppp-swaplog thead>tr>th:nth-child(5){min-width:230px}.ppp-swaplog thead>tr>th:nth-child(6){min-width:160px}.ppp-swaplog thead>tr>th:nth-child(7){min-width:160px} +.projects .ant-pro-card .ant-pro-card-body{padding-inline:6px;padding-block:8px}.ppp-list .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-list thead>tr>th:nth-child(1){min-width:10px}.ppp-list thead>tr>th:nth-child(2){min-width:120px}.ppp-list thead>tr>th:nth-child(3){min-width:160px}.ppp-list thead>tr>th:nth-child(4){min-width:80px}.ppp-list thead>tr>th:nth-child(5){min-width:90px}.ppp-list thead>tr>th:nth-child(6){min-width:80px}.ppp-list thead>tr>th:nth-child(7){min-width:80px}.ppp-list thead>tr>th:nth-child(8){min-width:80px}.ppp-list thead>tr>th:nth-child(9){min-width:160px}.ppp-list thead>tr>th:nth-child(10){min-width:160px}.ppp-list thead>tr>th:nth-child(11){min-width:90px}.ppp-list thead>tr>th:nth-child(12){min-width:100px}.ppp-list thead>tr>th:nth-child(13){min-width:100px}.ppp-list thead>tr>th:nth-child(14){min-width:80px}.ppp-list thead>tr>th:nth-child(15){min-width:90px}.ppp-list thead>tr>th:nth-child(16){min-width:120px}.ppp-list thead>tr>th:nth-child(17){min-width:160px}.ppp-list .ant-pro-card .ant-pro-card-body{padding-block-start:2px;padding-inline:8px}.ppp-swaplog .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-swaplog .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-swaplog .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-swaplog .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-swaplog .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-swaplog thead>tr>th:nth-child(1){min-width:20px}.ppp-swaplog thead>tr>th:nth-child(2){min-width:60px}.ppp-swaplog thead>tr>th:nth-child(3){min-width:120px}.ppp-swaplog thead>tr>th:nth-child(4){min-width:50px}.ppp-swaplog thead>tr>th:nth-child(5){min-width:230px}.ppp-swaplog thead>tr>th:nth-child(6){min-width:160px}.ppp-swaplog thead>tr>th:nth-child(7){min-width:160px}.ppp-tokens .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-tokens .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-tokens .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tokens .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tokens .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tokens thead>tr>th:nth-child(1){min-width:50px}.ppp-tokens thead>tr>th:nth-child(2){min-width:130px}.ppp-tokens thead>tr>th:nth-child(3){min-width:150px}.ppp-tokens thead>tr>th:nth-child(4){min-width:200px}.ppp-tokens thead>tr>th:nth-child(5){min-width:150px}.ppp-tokens thead>tr>th:nth-child(6){min-width:150px}.ppp-tokens thead>tr>th:nth-child(7){min-width:60px}.ppp-tokens .ant-pro-query-filter{padding:12px}.ppp-tokens .ant-pro-table-search{margin-block-end:1px}.ppp-tokens .ant-pro-query-filter-row{row-gap:0}.ppp-tokens .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-account .ant-pro-card .ant-pro-card-header,.ppp-account .ant-pro-card .ant-pro-card-body{padding-inline:18px}.ppp-account .tab-action .ant-form .ant-form-item{margin-bottom:14px}.ppp-account .tab-table .ant-form .ant-form-item{margin-bottom:12px}.ppp-account .tab-action .ant-form>div:last-child{margin-top:24px;margin-bottom:14px}.ppp-account .tab-table .ant-form>div:last-child{margin-top:8px;margin-bottom:18px}.ppp-account .tab-table .ant-pro-card .ant-pro-card-body{padding-inline:0}.ppp-account .ant-tabs-nav{margin-left:0} diff --git a/src__pages__PPP__Tokens.async.js b/src__pages__PPP__Tokens.async.js new file mode 100644 index 0000000..81118cb --- /dev/null +++ b/src__pages__PPP__Tokens.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[162],{6466:function(t,e,n){n.d(e,{Z:function(){return g}});var a=n(4942),r=n(1413),s=n(91),c=n(28459),o=n(93967),i=n.n(o),l=n(62435),u=n(63330),d=n(44962),p=n(98082),f=function(t){return(0,a.Z)({},t.componentCls,{display:"flex",flexDirection:"column",justifyContent:"flex-end",marginBlock:t.marginLG,marginInline:0,color:t.colorText,fontWeight:"500",fontSize:"20px",lineHeight:"38px"})};var m=n(86074),x=function(t){var e=t.className,n=t.style,a=void 0===n?{}:n,s=t.children,o=(0,(0,l.useContext)(c.ZP.ConfigContext).getPrefixCls)("pro-card-operation"),u=function(t){return(0,p.Xj)("ProCardOperation",(function(e){var n=(0,r.Z)((0,r.Z)({},e),{},{componentCls:".".concat(t)});return[f(n)]}))}(o),d=u.wrapSSR,x=u.hashId,h=i()(o,e,x);return d((0,m.jsx)("div",{className:h,style:a,children:s}))},h=n(10357),v=function(t){return(0,a.Z)({},t.componentCls,{"&-chart":{display:"flex",flexDirection:"column",marginBlockStart:8,marginBlockEnd:8,"&-left":{marginBlockStart:0,marginInlineEnd:"16px"},"&-right":{marginBlockStart:0,marginInlineStart:"16px"}},"&-content":{display:"flex",flexDirection:"column","&-horizontal":(0,a.Z)({flexDirection:"row"},"".concat(t.componentCls,"-chart"),{alignItems:"center",alignSelf:"flex-start"})},"&-footer":{marginBlockStart:8,paddingBlockStart:"16px",borderBlockStart:"rgba(0, 0, 0, 0.08) solid ".concat(t.colorBorder)}})};var k=["children","statistic","className","chart","chartPlacement","footer"],S=function(t){var e,n=t.children,o=t.statistic,d=t.className,f=t.chart,x=t.chartPlacement,S=t.footer,g=(0,s.Z)(t,k),y=(0,(0,l.useContext)(c.ZP.ConfigContext).getPrefixCls)("pro-statistic-card"),b=function(t){return(0,p.Xj)("StatisticCard",(function(e){var n=(0,r.Z)((0,r.Z)({},e),{},{componentCls:".".concat(t)});return[v(n)]}))}(y),C=b.wrapSSR,j=b.hashId,Z=i()(y,d,j),w=o&&(0,m.jsx)(h.Z,(0,r.Z)({layout:"vertical"},o)),N=i()("".concat(y,"-chart"),j,(e={},(0,a.Z)(e,"".concat(y,"-chart-left"),"left"===x&&f&&o),(0,a.Z)(e,"".concat(y,"-chart-right"),"right"===x&&f&&o),e)),D=f&&(0,m.jsx)("div",{className:N,children:f}),E=i()("".concat(y,"-content "),j,(0,a.Z)({},"".concat(y,"-content-horizontal"),"left"===x||"right"===x)),I=(D||w)&&("left"===x?(0,m.jsxs)("div",{className:E,children:[D,w]}):(0,m.jsxs)("div",{className:E,children:[w,D]})),B=S&&(0,m.jsx)("div",{className:"".concat(y,"-footer ").concat(j).trim(),children:S});return C((0,m.jsxs)(u.Z,(0,r.Z)((0,r.Z)({className:Z},g),{},{children:[I,n,B]})))};S.Statistic=h.Z,S.Divider=d.Z,S.Operation=x,S.isProCard=!0,S.Group=function(t){return(0,m.jsx)(S,(0,r.Z)({bodyStyle:{padding:0}},t))};var g=S},10357:function(t,e,n){n.d(e,{Z:function(){return k}});var a=n(1413),r=n(4942),s=n(91),c=n(25035),o=n(28459),i=n(83062),l=n(40411),u=n(55054),d=n(93967),p=n.n(d),f=n(62435),m=n(98082),x=function(t){var e,n,a;return(0,r.Z)({},t.componentCls,(a={display:"flex",fontSize:t.fontSize,"& + &":{marginBlockStart:4},"&-tip":{marginInlineStart:4},"&-wrapper":(0,r.Z)({display:"flex",width:"100%"},"".concat(t.componentCls,"-status"),{width:"14px"}),"&-icon":{marginInlineEnd:16},"&-trend-icon":{width:0,height:0,borderInlineEnd:"3.5px solid transparent",borderBlockEnd:"9px solid #000",borderInlineStart:"3.5px solid transparent","&-up":{transform:"rotate(0deg)"},"&-down":{transform:"rotate(180deg)"}},"&-content":(0,r.Z)({width:"100%"},"".concat(t.antCls,"-statistic-content"),{"&-value-int":{fontSize:t.fontSizeHeading3}}),"&-description":{width:"100%"}},(0,r.Z)(a,"".concat(t.antCls,"-statistic-title"),{color:t.colorText}),(0,r.Z)(a,"&-trend-up",(0,r.Z)({},"".concat(t.antCls,"-statistic-content"),(0,r.Z)({color:"#f5222d"},"".concat(t.componentCls,"-trend-icon"),{borderBlockEndColor:"#f5222d"}))),(0,r.Z)(a,"&-trend-down",(0,r.Z)({},"".concat(t.antCls,"-statistic-content"),(0,r.Z)({color:"#389e0d"},"".concat(t.componentCls,"-trend-icon"),{borderBlockEndColor:"#52c41a"}))),(0,r.Z)(a,"& &-layout-horizontal",(e={display:"flex",justifyContent:"space-between"},(0,r.Z)(e,"".concat(t.antCls,"-statistic-title"),{marginBlockEnd:0}),(0,r.Z)(e,"".concat(t.antCls,"-statistic-content-value"),{fontWeight:500}),(0,r.Z)(e,"".concat(t.antCls,"-statistic-title,").concat(t.antCls,"-statistic-content,").concat(t.antCls,"-statistic-content-suffix,").concat(t.antCls,"-statistic-content-prefix,").concat(t.antCls,"-statistic-content-value-decimal"),{fontSize:t.fontSize}),e)),(0,r.Z)(a,"& &-layout-inline",(n={display:"inline-flex",color:t.colorTextSecondary},(0,r.Z)(n,"".concat(t.antCls,"-statistic-title"),{marginInlineEnd:"6px",marginBlockEnd:0}),(0,r.Z)(n,"".concat(t.antCls,"-statistic-content"),{color:t.colorTextSecondary}),(0,r.Z)(n,"".concat(t.antCls,"-statistic-title,").concat(t.antCls,"-statistic-content,").concat(t.antCls,"-statistic-content-suffix,").concat(t.antCls,"-statistic-content-prefix,").concat(t.antCls,"-statistic-content-value-decimal"),{fontSize:t.fontSizeSM}),n)),a))};var h=n(86074),v=["className","layout","style","description","children","title","tip","status","trend","prefix","icon"],k=function(t){var e,n=t.className,d=t.layout,k=void 0===d?"inline":d,S=t.style,g=t.description,y=(t.children,t.title),b=t.tip,C=t.status,j=t.trend,Z=t.prefix,w=t.icon,N=(0,s.Z)(t,v),D=(0,(0,f.useContext)(o.ZP.ConfigContext).getPrefixCls)("pro-card-statistic"),E=function(t){return(0,m.Xj)("Statistic",(function(e){var n=(0,a.Z)((0,a.Z)({},e),{},{componentCls:".".concat(t)});return[x(n)]}))}(D),I=E.wrapSSR,B=E.hashId,P=p()(D,n,B),z=p()("".concat(D,"-status"),B),M=p()("".concat(D,"-icon"),B),T=p()("".concat(D,"-wrapper"),B),_=p()("".concat(D,"-content"),B),O=p()(B,(e={},(0,r.Z)(e,"".concat(D,"-layout-").concat(k),k),(0,r.Z)(e,"".concat(D,"-trend-").concat(j),j),e)),R=b&&(0,h.jsx)(i.Z,{title:b,children:(0,h.jsx)(c.Z,{className:"".concat(D,"-tip ").concat(B).trim()})}),F=p()("".concat(D,"-trend-icon"),B,(0,r.Z)({},"".concat(D,"-trend-icon-").concat(j),j)),q=j&&(0,h.jsx)("div",{className:F}),A=C&&(0,h.jsx)("div",{className:z,children:(0,h.jsx)(l.Z,{status:C,text:null})}),H=w&&(0,h.jsx)("div",{className:M,children:w});return I((0,h.jsxs)("div",{className:P,style:S,children:[H,(0,h.jsxs)("div",{className:T,children:[A,(0,h.jsxs)("div",{className:_,children:[(0,h.jsx)(u.Z,(0,a.Z)({title:(y||R)&&(0,h.jsxs)(h.Fragment,{children:[y,R]}),prefix:(q||Z)&&(0,h.jsxs)(h.Fragment,{children:[q,Z]}),className:O},N)),g&&(0,h.jsx)("div",{className:"".concat(D,"-description ").concat(B).trim(),children:g})]})]})]}))}},92551:function(t,e,n){n.r(e);var a=n(15009),r=n.n(a),s=n(99289),c=n.n(s),o=n(5574),i=n.n(o),l=n(5621),u=n(64119),d=n(11774),p=n(38345),f=n(6466),m=n(92340),x=n(59530),h=n(45360),v=n(7134),k=n(34041),S=n(57953),g=n(71230),y=n(15746),b=n(15867),C=n(9669),j=n.n(C),Z=n(27484),w=n.n(Z),N=n(70178),D=n.n(N),E=n(62435),I=(n(8849),n(86074));w().extend(D());e.default=function(){var t=(0,x.useDispatch)(),e=h.ZP.useMessage(),n=i()(e,2),a=n[0],s=n[1],o=(0,x.useNavigate)(),C=(0,x.useSelector)((function(t){return t.global.host})),Z=(0,x.useSelector)((function(t){return t.global.contractKit})),w=(0,E.useState)(!1),N=i()(w,2),D=N[0],B=N[1],P=(0,x.useSelector)((function(t){return t.statistics.holderDataSource})),z=(0,x.useSelector)((function(t){return t.statistics.holderDataSourceReset})),M=(0,x.useSelector)((function(t){return t.statistics.token})),T=(0,E.useState)(0),_=i()(T,2),O=_[0],R=_[1],F=(0,E.useState)(0),q=i()(F,2),A=q[0],H=q[1],U=(0,E.useState)(0),L=i()(U,2),J=L[0],W=L[1],X=(0,E.useState)(0),$=i()(X,2),G=$[0],V=$[1],K=(0,E.useState)({}),Q=i()(K,2),Y=Q[0],tt=Q[1],et=(0,E.useState)([]),nt=i()(et,2),at=nt[0],rt=nt[1],st=(0,x.useIntl)(),ct=st.formatMessage({id:"tokens.intlHolder"}),ot=st.formatMessage({id:"tokens.intlHold"}),it=st.formatMessage({id:"tokens.intlLiq"}),lt=st.formatMessage({id:"tokens.intlTotalValue"}),ut=st.formatMessage({id:"tokens.intlRatio"}),dt=st.formatMessage({id:"tokens.intlSupply"}),pt=st.formatMessage({id:"tokens.intlMarketCap"}),ft=st.formatMessage({id:"tokens.intlPrice"}),mt=st.formatMessage({id:"tokens.intlRank"}),xt=st.formatMessage({id:"tokens.intlUpdate"}),ht=st.formatMessage({id:"tokens.intlTotalBal"}),vt=(0,E.useCallback)(function(){var t=c()(r()().mark((function t(e){var n,s,c,o,l,d,p,f,m,x;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=[],s=1e3,c="",o="";case 4:return t.next=7,(0,u.zI)(j().post("".concat(C,"/v2/chain/get_scope_rows"),{code:M.contract,table:"accounts",lower_bound:c,primary_lower_bound:o,limit:s,index_position:"primary",key_type:"name"}));case 7:if(l=t.sent,d=i()(l,2),p=d[0],f=d[1],p||200!==f.status){t.next=22;break}for(m=f.data.rows,x=0;x0&&c.push({key:e,rank:e,account:t,hold:a,liq:r,totalBal:a+r,value:(a+r)*d[k],ratio:(a+r)/v})})),S=c.sort((function(t,e){return e.value-t.value})),g=0;gtr>th{background:#fff}.ppp-list thead>tr>th:nth-child(1){min-width:10px}.ppp-list thead>tr>th:nth-child(2){min-width:120px}.ppp-list thead>tr>th:nth-child(3){min-width:160px}.ppp-list thead>tr>th:nth-child(4){min-width:80px}.ppp-list thead>tr>th:nth-child(5){min-width:90px}.ppp-list thead>tr>th:nth-child(6){min-width:80px}.ppp-list thead>tr>th:nth-child(7){min-width:80px}.ppp-list thead>tr>th:nth-child(8){min-width:80px}.ppp-list thead>tr>th:nth-child(9){min-width:160px}.ppp-list thead>tr>th:nth-child(10){min-width:160px}.ppp-list thead>tr>th:nth-child(11){min-width:90px}.ppp-list thead>tr>th:nth-child(12){min-width:100px}.ppp-list thead>tr>th:nth-child(13){min-width:100px}.ppp-list thead>tr>th:nth-child(14){min-width:80px}.ppp-list thead>tr>th:nth-child(15){min-width:90px}.ppp-list thead>tr>th:nth-child(16){min-width:120px}.ppp-list thead>tr>th:nth-child(17){min-width:160px}.ppp-list .ant-pro-card .ant-pro-card-body{padding-block-start:2px;padding-inline:8px}.ppp-swaplog .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-swaplog .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-swaplog .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-swaplog .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-swaplog .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-swaplog thead>tr>th:nth-child(1){min-width:20px}.ppp-swaplog thead>tr>th:nth-child(2){min-width:60px}.ppp-swaplog thead>tr>th:nth-child(3){min-width:120px}.ppp-swaplog thead>tr>th:nth-child(4){min-width:50px}.ppp-swaplog thead>tr>th:nth-child(5){min-width:230px}.ppp-swaplog thead>tr>th:nth-child(6){min-width:160px}.ppp-swaplog thead>tr>th:nth-child(7){min-width:160px}.ppp-tokens .ant-table-wrapper .ant-table-thead>tr>th{background:#fff}.ppp-tokens .ant-pro-card .ant-pro-card-body{padding-inline:8px;padding-block:8px}.ppp-tokens .ant-pro-table-list-toolbar-title{flex-grow:1}.ppp-tokens .ant-pro-table-list-toolbar-left{margin-block-end:0;max-width:unset}.ppp-tokens .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container{flex-wrap:unset}.ppp-tokens thead>tr>th:nth-child(1){min-width:50px}.ppp-tokens thead>tr>th:nth-child(2){min-width:130px}.ppp-tokens thead>tr>th:nth-child(3){min-width:150px}.ppp-tokens thead>tr>th:nth-child(4){min-width:200px}.ppp-tokens thead>tr>th:nth-child(5){min-width:150px}.ppp-tokens thead>tr>th:nth-child(6){min-width:150px}.ppp-tokens thead>tr>th:nth-child(7){min-width:60px}.ppp-tokens .ant-pro-query-filter{padding:12px}.ppp-tokens .ant-pro-table-search{margin-block-end:1px}.ppp-tokens .ant-pro-query-filter-row{row-gap:0}.ppp-tokens .ant-pro-query-filter-row>div:last-child>div>div>div:first-child{margin-bottom:-15px}.ppp-account .ant-pro-card .ant-pro-card-header,.ppp-account .ant-pro-card .ant-pro-card-body{padding-inline:18px}.ppp-account .tab-action .ant-form .ant-form-item{margin-bottom:14px}.ppp-account .tab-table .ant-form .ant-form-item{margin-bottom:12px}.ppp-account .tab-action .ant-form>div:last-child{margin-top:24px;margin-bottom:14px}.ppp-account .tab-table .ant-form>div:last-child{margin-top:8px;margin-bottom:18px}.ppp-account .tab-table .ant-pro-card .ant-pro-card-body{padding-inline:0}.ppp-account .ant-tabs-nav{margin-left:0} diff --git a/static/update.8063bae7.md b/static/update.8063bae7.md new file mode 100644 index 0000000..1c7fca9 --- /dev/null +++ b/static/update.8063bae7.md @@ -0,0 +1,126 @@ +### V0.25.1 @2024-12-14 + +1. 修复"查询-合约-批量操作-多签-交易"创建交易只有一个action的问题; +2. 新增"PPP-交易记录"页面; +3. 新增"PPP-项目查询-交易记录"页面; +4. 新增"PPP-通证查询"页面; +5. 新增"PPP-资产查询"页面; + +### V0.24.1 @2024-12-10 + +1. "PPP-项目查询-排名":增加购买完成时间; +2. "PPP-项目查询-排名":增加账号余额数据项; +3. "PPP-项目列表":增加金库数据项; +4. 新增"PPP-自动交易"页面; +5. 新增"PPP-自动交易-定时交易"功能; +6. 新增"PPP-项目查询-通证"持有者分布; +7. "PPP-项目查询":修复手续费的计算问题; + +### V0.23.5 @2024-12-06 + +1. 新增"PPP-批量销毁"和"PPP-自动销毁"页面; +2. "PPP-批量扫货"和"PPP-自动扫货"切换项目时,显示 nft 总量; +3. "PPP-批量扫货"和"PPP-批量销毁"签名时显示签名次数; +4. "转账":修复加载 token 数据慢的问题; +5. "咖啡":修复加载 token 数据慢的问题; +6. "PPP-项目查询-排名":增加奖励池和销毁; +7. "PPP-项目列表":增加奖励池显示; +8. "PPP-项目查询-排名":增加发送奖励功能; +9. "PPP-增长趋势":增加手续费,协议费和奖励池数据; +10. "PPP-项目查询":增加拆分利润率和年化利率数据; +11. "统计-通证":优化显示和支持搜索; + +### V0.22.0 @2024-12-01 + +1. "PPP-项目查询":修复进度条显示问题; +2. "PPP-项目查询":添加批量购买,拆分和销毁操作; +3. 新增"PPP-项目列表"和"生态-PPP"页面; + +### V0.21.3 @2024-11-30 + +1. "工具-PPP 工具":修复 nft 数量超过 1000,数据的获取问题; +2. "查询-账号":添加 DFS 本位显示; +3. "PPP-自动扫货":修复因锁屏问题导致倒计时出现延时; +4. 新增"PPP-项目查询"页面; +5. 新增"PPP-项目查询-排名"页面; +6. 新增"PPP-项目查询-增长趋势"页面; +7. 新增"PPP-项目查询-关于"页面; + +### V0.20.0 @2024-11-24 + +1. 新增"工具-PPP 工具"页面,用于批量和自动化抢图功能; +2. "工具-PPP 工具":增加错误日志下载按钮; +3. "工具-PPP 工具":调整导航栏; +4. "工具-PPP 工具-自动扫货":修复跑完第一轮后没有自动跑下一轮的问题; +5. "工具-PPP 工具":优化交易错误信息的处理; +6. "工具-PPP 工具":新增提前发送时间输入; +7. 版本更新,忽略 dexie 数据的清除 + +### V0.19.4 @2024-11-21 + +1. "生态-通证":修复 logo 显示问题; +2. 新增"查询-账号-NFT"; +3. "查询-账号-交易":修复 assetid 显示问题; +4. "Timeline":更新页面内容; + +### V0.19.0 @2024-07-03 + +1. 新增"接口-RPC2"页面; +2. "统计-新建账号":优化加载速度; +3. "韭菜-持有者":优化加载速度; +4. 新增"统计-通证"页面; + +### V0.18.5 @2024-06-19 + +1. "工具-自动收矿":添加做市和节点自动收矿的功能; +2. 修复自动收矿授权显示的问题和修改生态系统中 JIU 链接问题; +3. "工具-自动收矿":新增日志字段,增加矿池年化线性图和节点矿池线性图; +4. "统计-矿池":优化数据获取,增加矿池年化线性图和节点矿池线性图; +5. "查询-合约":添加只读交易操作; +6. 新增"工具-名称切换"; +7. "查询-合约-表":添加解码操作; +8. "查询-合约-表":添加 time_limit_ms 选项; + +### V0.17.2 @2024-05-12 + +1. 修复账号 DFS 余额为 0 时,页面崩溃问题; +2. "工具-部署合约":添加显示合约文件大小和清除合约的功能; +3. "工具-RPC 节点切换":修复自定义不能添加端口问题; +4. "生态":添加 Jungle4 测试网显示; +5. "查询-合约":添加上下文无关动作; +6. "工具-收矿":添加账号未领取奖励和节点奖励; + +### V0.16.3 @2024-04-28 + +1. 新增"工具-简易钱包",用于测试,开发和批量执行; +2. 支持 Passkey 登陆; +3. "咖啡"页面添加多币种捐赠; +4. 新增"日志-JIU 销毁日志"页面; +5. 新增"工具-节点分红"页面; +6. 新增"工具-部署合约"页面; +7. "工具-时间转换":增加微秒显示 +8. 购买内存增加 byte 显示 +9. "查询-合约":搜索增加 key_type 类型和修改 bug + +### V0.15.0 @2024-04-12 + +1. "日志-交换日志":新增每日成交量; +2. 修复 Permission.from 对 keys 的排序问题,导致 updateauth 失败; +3. 更新 eosjs 为 22.1.0 版本,已支持 PUB_WA 公钥; +4. 新增"工具-RPC 节点切换"页面; +5. 支持连接 Jungle4 测试网。 + +### V0.14.0 @2024-04-10 + +1. 添加公钥格式切换功能; +2. 添加助记词生成私钥和助记词转换成私钥功能; +3. 新增"多签-交易"页面;"查询-合约":新增"多签-交易"按钮; +4. "查询-账号-概述":新增邀请人和合约项,修复跳转问题;"查询-账号-邀请":新增邀请码,邀请数,邀请人。 + +### V0.13.0 @2024-04-07 + +1. "韭菜-持有者":对特殊账号进行备注; +2. "查询-账号-邀请":增加排序功能; +3. 新增"工具-收矿"页面; +4. 新增"更新日志"和"功能介绍"窗口; +5. 新增"统计-矿池"页面。 diff --git a/umi.js b/umi.js index 8db3169..d5f6fb9 100644 --- a/umi.js +++ b/umi.js @@ -1 +1 @@ -(function(){var __webpack_modules__={16397:function(e,t,n){"use strict";n.r(t),n.d(t,{blue:function(){return S},cyan:function(){return k},geekblue:function(){return C},generate:function(){return f},gold:function(){return b},gray:function(){return I},green:function(){return x},grey:function(){return A},lime:function(){return _},magenta:function(){return E},orange:function(){return y},presetDarkPalettes:function(){return m},presetPalettes:function(){return p},presetPrimaryColors:function(){return h},purple:function(){return M},red:function(){return g},volcano:function(){return v},yellow:function(){return w}});var r=n(86500),i=n(1350),o=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,n=e.g,i=e.b,o=(0,r.py)(t,n,i);return{h:360*o.h,s:o.s,v:o.v}}function s(e){var t=e.r,n=e.g,i=e.b;return"#".concat((0,r.vq)(t,n,i,!1))}function l(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function c(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function u(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function d(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,i.uA)(e),f=5;f>0;f-=1){var h=a(r),p=s((0,i.uA)({h:c(h,f,!0),s:u(h,f,!0),v:d(h,f,!0)}));n.push(p)}n.push(s(r));for(var m=1;m<=4;m+=1){var g=a(r),v=s((0,i.uA)({h:c(g,m),s:u(g,m),v:d(g,m)}));n.push(v)}return"dark"===t.theme?o.map((function(e){var r=e.index,o=e.opacity;return s(l((0,i.uA)(t.backgroundColor||"#141414"),(0,i.uA)(n[r]),100*o))})):n}var h={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},p={},m={};Object.keys(h).forEach((function(e){p[e]=f(h[e]),p[e].primary=p[e][5],m[e]=f(h[e],{theme:"dark",backgroundColor:"#141414"}),m[e].primary=m[e][5]}));var g=p.red,v=p.volcano,b=p.gold,y=p.orange,w=p.yellow,_=p.lime,x=p.green,k=p.cyan,S=p.blue,C=p.geekblue,M=p.purple,E=p.magenta,A=p.grey,I=p.grey},54548:function(e,t,n){"use strict";n.d(t,{E4:function(){return ut},jG:function(){return E},t2:function(){return te},ks:function(){return F},bf:function(){return L},CI:function(){return lt},fp:function(){return re},xy:function(){return ot}});var r=n(4942),i=n(97685),o=n(74902),a=n(1413);var s=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},l=n(44958),c=n(62435),u=n.t(c,2),d=(n(56982),n(91881),n(15671)),f=n(43144),h=function(){function e(t){(0,d.Z)(this,e),(0,r.Z)(this,"instanceId",void 0),(0,r.Z)(this,"cache",new Map),this.instanceId=t}return(0,f.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var n=e.join("%"),r=t(this.cache.get(n));null===r?this.cache.delete(n):this.cache.set(n,r)}}]),e}(),p="data-token-hash",m="data-css-hash",g="__cssinjs_instance__";function v(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(m,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[g]=t[g]||e,t[g]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(m,"]"))).forEach((function(t){var n,i=t.getAttribute(m);r[i]?t[g]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[i]=!0}))}return new h(e)}var b=c.createContext({hashPriority:"low",cache:v(),defaultCache:!0}),y=b,w=n(71002),_=n(98924);var x=function(){function e(){(0,d.Z)(this,e),(0,r.Z)(this,"cache",void 0),(0,r.Z)(this,"keys",void 0),(0,r.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,f.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach((function(e){var t;i?i=null===(t=i)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):i=void 0})),null!==(t=i)&&void 0!==t&&t.value&&r&&(i.value[1]=this.cacheCallTimes++),null===(n=i)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=(0,i.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),S+=1}return(0,f.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),M=new x;function E(e){var t=Array.isArray(e)?e:[e];return M.has(t)||M.set(t,new C(t)),M.get(t)}var A=new WeakMap,I={};function O(e,t){for(var n=A,r=0;r3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(s)return e;var l=(0,a.Z)((0,a.Z)({},o),{},(i={},(0,r.Z)(i,p,t),(0,r.Z)(i,m,n),i)),c=Object.keys(l).map((function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},W=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},H=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,a,s=(0,i.Z)(e,2),l=s[0],c=s[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[l])){var u,d=F(l,null==n?void 0:n.prefix);r[d]="number"!=typeof c||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(d,")")}})),[o,W(r,t,{scope:null==n?void 0:n.scope})]},V=n(8410),U=(0,a.Z)({},u).useInsertionEffect,Y=U?function(e,t,n){return U((function(){return e(),t()}),n)}:function(e,t,n){c.useMemo(e,n),(0,V.Z)((function(){return t(!0)}),n)},G=void 0!==(0,a.Z)({},u).useInsertionEffect?function(e){var t=[],n=!1;return c.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};var q=function(){return!1};function X(e,t,n,r,a){var s=c.useContext(y).cache,l=[e].concat((0,o.Z)(t)),u=l.join("_"),d=G([u]),f=(q(),function(e){s.update(l,(function(t){var r=t||[void 0,void 0],o=(0,i.Z)(r,2),a=o[0];var s=[void 0===a?0:a,o[1]||n()];return e?e(s):s}))});c.useMemo((function(){f()}),[u]);var h=s.get(l)[1];return Y((function(){null==a||a(h)}),(function(e){return f((function(t){var n=(0,i.Z)(t,2),r=n[0],o=n[1];return e&&0===r&&(null==a||a(h)),[r+1,o]})),function(){s.update(l,(function(t){var n=t||[],o=(0,i.Z)(n,2),a=o[0],c=void 0===a?0:a,u=o[1];return 0===c-1?(d((function(){!e&&s.get(l)||null==r||r(u,!1)})),null):[c-1,u]}))}}),[u]),h}var K={},J=new Map;function Q(e){J.set(e,(J.get(e)||0)+1)}function ee(e,t){J.set(e,(J.get(e)||0)-1);var n=Array.from(J.keys()),r=n.filter((function(e){return(J.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(p,'="').concat(e,'"]')).forEach((function(e){var n;e[g]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),J.delete(e)}))}var te=function(e,t,n,r){var i=n.getDerivativeToken(e),o=(0,a.Z)((0,a.Z)({},i),t);return r&&(o=r(o)),o},ne="token";function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,c.useContext)(y),u=r.cache.instanceId,d=r.container,f=n.salt,h=void 0===f?"":f,v=n.override,b=void 0===v?K:v,w=n.formatToken,_=n.getComputedToken,x=n.cssVar,k=O((function(){return Object.assign.apply(Object,[{}].concat((0,o.Z)(t)))}),t),S=Z(k),C=Z(b),M=x?Z(x):"",E=X(ne,[h,e.id,S,C,M],(function(){var t,n=_?_(k,b,e):te(k,b,e,w),r=(0,a.Z)({},n),o="";if(x){var l=H(n,x.key,{prefix:x.prefix,ignore:x.ignore,unitless:x.unitless,preserve:x.preserve}),c=(0,i.Z)(l,2);n=c[0],o=c[1]}var u=R(n,h);n._tokenKey=u,r._tokenKey=R(r,h);var d=null!==(t=null==x?void 0:x.key)&&void 0!==t?t:u;n._themeKey=d,Q(d);var f="".concat("css","-").concat(s(u));return n._hashId=f,[n,f,r,o,(null==x?void 0:x.key)||""]}),(function(e){ee(e[0]._themeKey,u)}),(function(e){var t=(0,i.Z)(e,4),n=t[0],r=t[3];if(x&&r){var o=(0,l.hq)(r,s("css-variables-".concat(n._themeKey)),{mark:m,prepend:"queue",attachTo:d,priority:-999});o[g]=u,o.setAttribute(p,n._themeKey)}}));return E}var ie=n(87462),oe={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ae="comm",se="rule",le="decl",ce=Math.abs,ue=String.fromCharCode;Object.assign;function de(e){return e.trim()}function fe(e,t,n){return e.replace(t,n)}function he(e,t,n){return e.indexOf(t,n)}function pe(e,t){return 0|e.charCodeAt(t)}function me(e,t,n){return e.slice(t,n)}function ge(e){return e.length}function ve(e,t){return t.push(e),e}function be(e,t){for(var n="",r=0;r0?pe(Ce,--ke):0,_e--,10===Se&&(_e=1,we--),Se}function Ae(){return Se=ke2||Ze(Se)>3?"":" "}function Be(e,t){for(;--t&&Ae()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return je(e,Oe()+(t<6&&32==Ie()&&32==Ae()))}function $e(e){for(;Ae();)switch(Se){case e:return ke;case 34:case 39:34!==e&&39!==e&&$e(Se);break;case 40:41===e&&$e(e);break;case 92:Ae()}return ke}function De(e,t){for(;Ae()&&e+Se!==57&&(e+Se!==84||47!==Ie()););return"/*"+je(t,ke-1)+"*"+ue(47===e?e:Ae())}function Le(e){for(;!Ze(Ie());)Ae();return je(e,ke)}function ze(e){return Ne(Fe("",null,null,null,[""],e=Re(e),0,[0],e))}function Fe(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,v=1,b=0,y="",w=i,_=o,x=r,k=y;g;)switch(p=b,b=Ae()){case 40:if(108!=p&&58==pe(k,d-1)){-1!=he(k+=fe(Pe(b),"&","&\f"),"&\f",ce(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=Pe(b);break;case 9:case 10:case 13:case 32:k+=Te(p);break;case 92:k+=Be(Oe()-1,7);continue;case 47:switch(Ie()){case 42:case 47:ve(He(De(Ae(),Oe()),t,n,l),l);break;default:k+="/"}break;case 123*m:s[c++]=ge(k)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(k=fe(k,/\f/g,"")),h>0&&ge(k)-d&&ve(h>32?Ve(k+";",r,n,d-1,l):Ve(fe(k," ","")+";",r,n,d-2,l),l);break;case 59:k+=";";default:if(ve(x=We(k,t,n,c,u,i,s,y,w=[],_=[],d,o),o),123===b)if(0===u)Fe(k,t,x,x,w,o,d,s,_);else switch(99===f&&110===pe(k,3)?100:f){case 100:case 108:case 109:case 115:Fe(e,x,x,r&&ve(We(e,x,x,0,0,i,s,y,i,w=[],d,_),_),i,_,d,s,r?w:_);break;default:Fe(k,x,x,x,[""],_,0,s,_)}}c=u=h=0,m=v=1,y=k="",d=a;break;case 58:d=1+ge(k),h=p;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Ee())continue;switch(k+=ue(b),b*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(ge(k)-1)*v,v=1;break;case 64:45===Ie()&&(k+=Pe(Ae())),f=Ie(),u=d=ge(y=k+=Le(Oe())),b++;break;case 45:45===p&&2==ge(k)&&(m=0)}}return o}function We(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,h=0===i?o:[""],p=function(e){return e.length}(h),m=0,g=0,v=0;m0?h[b]+" "+y:fe(y,/&\f/g,h[b])))&&(l[v++]=w);return Me(e,t,n,0===i?se:s,l,c,u,d)}function He(e,t,n,r){return Me(e,t,n,ae,ue(Se),me(e,2,-2),0,r)}function Ve(e,t,n,r,i){return Me(e,t,n,le,me(e,0,r),me(e,r+1,-1),r,i)}var Ue,Ye="data-ant-cssinjs-cache-path",Ge="_FILE_STYLE__";var qe=!0;function Xe(e){return function(){if(!Ue&&(Ue={},(0,_.Z)())){var e=document.createElement("div");e.className=Ye,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,i.Z)(t,2),r=n[0],o=n[1];Ue[r]=o}));var n,r=document.querySelector("style[".concat(Ye,"]"));r&&(qe=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ue[e]}var Ke="_multi_value_";function Je(e){return be(ze(e),ye).replace(/\{%%%\:[^;];}/g,";")}function Qe(e){return"object"===(0,w.Z)(e)&&e&&("_skip_check_"in e||Ke in e)}function et(e,t,n){if(!t)return e;var r=".".concat(t),i="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(i).concat(r.slice(a.length))].concat((0,o.Z)(n.slice(1))).join(" ")})).join(",")}var tt=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},s=r.root,l=r.injectHash,c=r.parentSelectors,u=n.hashId,d=n.layer,f=(n.path,n.hashPriority),h=n.transformers,p=void 0===h?[]:h,m=(n.linters,""),g={};function v(t){var r=t.getName(u);if(!g[r]){var o=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,i.Z)(o,1)[0];g[r]="@keyframes ".concat(t.getName(u)).concat(a)}}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){Array.isArray(e)?b(e,t):e&&t.push(e)})),t}var y=b(Array.isArray(t)?t:[t]);if(y.forEach((function(t){var r="string"!=typeof t||s?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)v(r);else{var d=p.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(d).forEach((function(t){var r=d[t];if("object"!==(0,w.Z)(r)||!r||"animationName"===t&&r._keyframe||Qe(r)){var h;function M(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;oe[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(u)),m+="".concat(n,":").concat(r,";")}var p=null!==(h=null==r?void 0:r.value)&&void 0!==h?h:r;"object"===(0,w.Z)(r)&&null!=r&&r[Ke]&&Array.isArray(p)?p.forEach((function(e){M(t,e)})):M(t,p)}else{var b=!1,y=t.trim(),_=!1;(s||l)&&u?y.startsWith("@")?b=!0:y=et(t,u,f):!s||u||"&"!==y&&""!==y||(y="",_=!0);var x=e(r,n,{root:_,injectHash:b,parentSelectors:[].concat((0,o.Z)(c),[y])}),k=(0,i.Z)(x,2),S=k[0],C=k[1];g=(0,a.Z)((0,a.Z)({},g),C),m+="".concat(y).concat(S)}}))}})),s){if(d&&$()){var _=d.split(","),x=_[_.length-1].trim();m="@layer ".concat(x," {").concat(m,"}"),_.length>1&&(m="@layer ".concat(d,"{%%%:%}").concat(m))}}else m="{".concat(m,"}");return[m,g]};function nt(e,t){return s("".concat(e.join("%")).concat(t))}function rt(){return null}var it="style";function ot(e,t){var n=e.token,a=e.path,s=e.hashId,u=e.layer,d=e.nonce,f=e.clientOnly,h=e.order,v=void 0===h?0:h,b=c.useContext(y),w=b.autoClear,x=(b.mock,b.defaultCache),k=b.hashPriority,S=b.container,C=b.ssrInline,M=b.transformers,E=b.linters,A=b.cache,I=n._tokenKey,O=[I].concat((0,o.Z)(a)),j=D;var Z=X(it,O,(function(){var e=O.join("|");if(Xe(e)){var n=function(e){var t=Ue[e],n=null;if(t&&(0,_.Z)())if(qe)n=Ge;else{var r=document.querySelector("style[".concat(m,'="').concat(Ue[e],'"]'));r?n=r.innerHTML:delete Ue[e]}return[n,t]}(e),r=(0,i.Z)(n,2),o=r[0],l=r[1];if(o)return[o,I,l,{},f,v]}var c=t(),d=tt(c,{hashId:s,hashPriority:k,layer:u,path:a.join("-"),transformers:M,linters:E}),h=(0,i.Z)(d,2),p=h[0],g=h[1],b=Je(p),y=nt(O,b);return[b,I,y,g,f,v]}),(function(e,t){var n=(0,i.Z)(e,3)[2];(t||w)&&D&&(0,l.jL)(n,{mark:m})}),(function(e){var t=(0,i.Z)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(j&&n!==Ge){var a={mark:m,prepend:"queue",attachTo:S,priority:v},s="function"==typeof d?d():d;s&&(a.csp={nonce:s});var c=(0,l.hq)(n,r,a);c[g]=A.instanceId,c.setAttribute(p,I),Object.keys(o).forEach((function(e){(0,l.hq)(Je(o[e]),"_effect-".concat(e),a)}))}})),R=(0,i.Z)(Z,3),N=R[0],P=R[1],T=R[2];return function(e){var t,n;C&&!j&&x?t=c.createElement("style",(0,ie.Z)({},(n={},(0,r.Z)(n,p,P),(0,r.Z)(n,m,T),n),{dangerouslySetInnerHTML:{__html:N}})):t=c.createElement(rt,null);return c.createElement(c.Fragment,null,t,e)}}var at,st="cssVar",lt=function(e,t){var n=e.key,r=e.prefix,a=e.unitless,s=e.ignore,u=e.token,d=e.scope,f=void 0===d?"":d,h=(0,c.useContext)(y),v=h.cache.instanceId,b=h.container,w=u._tokenKey,_=[].concat((0,o.Z)(e.path),[n,f,w]);return X(st,_,(function(){var e=t(),o=H(e,n,{prefix:r,unitless:a,ignore:s,scope:f}),l=(0,i.Z)(o,2),c=l[0],u=l[1];return[c,u,nt(_,u),n]}),(function(e){var t=(0,i.Z)(e,3)[2];D&&(0,l.jL)(t,{mark:m})}),(function(e){var t=(0,i.Z)(e,3),r=t[1],o=t[2];if(r){var a=(0,l.hq)(r,o,{mark:m,prepend:"queue",attachTo:b,priority:-999});a[g]=v,a.setAttribute(p,n)}}))};at={},(0,r.Z)(at,it,(function(e,t,n){var r=(0,i.Z)(e,6),o=r[0],a=r[1],s=r[2],l=r[3],c=r[4],u=r[5],d=(n||{}).plain;if(c)return null;var f=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return f=z(o,a,s,h,d),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=Je(l[e]);f+=z(n,a,"_effect-".concat(e),h,d)}})),[u,s,f]})),(0,r.Z)(at,ne,(function(e,t,n){var r=(0,i.Z)(e,5),o=r[2],a=r[3],s=r[4],l=(n||{}).plain;if(!a)return null;var c=o._tokenKey;return[-999,c,z(a,s,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),(0,r.Z)(at,st,(function(e,t,n){var r=(0,i.Z)(e,4),o=r[1],a=r[2],s=r[3],l=(n||{}).plain;if(!o)return null;return[-999,a,z(o,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var ct=function(){function e(t,n){(0,d.Z)(this,e),(0,r.Z)(this,"name",void 0),(0,r.Z)(this,"style",void 0),(0,r.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,f.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),ut=ct;function dt(e){return e.notSplit=!0,e}dt(["borderTop","borderBottom"]),dt(["borderTop"]),dt(["borderBottom"]),dt(["borderLeft","borderRight"]),dt(["borderLeft"]),dt(["borderRight"])},84089:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(87462),i=n(97685),o=n(4942),a=n(91),s=n(62435),l=n(93967),c=n.n(l),u=n(16397),d=n(63017),f=n(1413),h=n(41755),p=["icon","className","onClick","style","primaryColor","secondaryColor"],m={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var g=function(e){var t=e.icon,n=e.className,r=e.onClick,i=e.style,o=e.primaryColor,l=e.secondaryColor,c=(0,a.Z)(e,p),u=s.useRef(),d=m;if(o&&(d={primaryColor:o,secondaryColor:l||(0,h.pw)(o)}),(0,h.C3)(u),(0,h.Kp)((0,h.r)(t),"icon should be icon definiton, but got ".concat(t)),!(0,h.r)(t))return null;var g=t;return g&&"function"==typeof g.icon&&(g=(0,f.Z)((0,f.Z)({},g),{},{icon:g.icon(d.primaryColor,d.secondaryColor)})),(0,h.R_)(g.icon,"svg-".concat(g.name),(0,f.Z)((0,f.Z)({className:n,onClick:r,style:i,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};g.displayName="IconReact",g.getTwoToneColors=function(){return(0,f.Z)({},m)},g.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;m.primaryColor=t,m.secondaryColor=n||(0,h.pw)(t),m.calculated=!!n};var v=g;function b(e){var t=(0,h.H9)(e),n=(0,i.Z)(t,2),r=n[0],o=n[1];return v.setTwoToneColors({primaryColor:r,secondaryColor:o})}var y=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];b(u.blue.primary);var w=s.forwardRef((function(e,t){var n,l=e.className,u=e.icon,f=e.spin,p=e.rotate,m=e.tabIndex,g=e.onClick,b=e.twoToneColor,w=(0,a.Z)(e,y),_=s.useContext(d.Z),x=_.prefixCls,k=void 0===x?"anticon":x,S=_.rootClassName,C=c()(S,k,(n={},(0,o.Z)(n,"".concat(k,"-").concat(u.name),!!u.name),(0,o.Z)(n,"".concat(k,"-spin"),!!f||"loading"===u.name),n),l),M=m;void 0===M&&g&&(M=-1);var E=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,A=(0,h.H9)(b),I=(0,i.Z)(A,2),O=I[0],j=I[1];return s.createElement("span",(0,r.Z)({role:"img","aria-label":u.name},w,{ref:t,tabIndex:M,onClick:g,className:C}),s.createElement(v,{icon:u,primaryColor:O,secondaryColor:j,style:E}))}));w.displayName="AntdIcon",w.getTwoToneColor=function(){var e=v.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},w.setTwoToneColor=b;var _=w},63017:function(e,t,n){"use strict";var r=(0,n(62435).createContext)({});t.Z=r},87603:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},89739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},63606:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},4340:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},97937:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},57132:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},48689:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},80882:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},86548:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},89705:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},21640:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},90420:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},99611:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},26911:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},15360:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},78860:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},6171:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},50888:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},94149:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},24969:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},25035:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},33160:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},90814:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},68795:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},94668:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},3355:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"unlock",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},62635:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=n(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},a=n(84089),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s)},41755:function(e,t,n){"use strict";n.d(t,{C3:function(){return y},H9:function(){return v},Kp:function(){return f},R_:function(){return m},pw:function(){return g},r:function(){return h},vD:function(){return b}});var r=n(1413),i=n(71002),o=n(16397),a=n(44958),s=n(27571),l=n(80334),c=n(62435),u=n(63017);function d(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function f(e,t){(0,l.ZP)(e,"[@ant-design/icons] ".concat(t))}function h(e){return"object"===(0,i.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,i.Z)(e.icon)||"function"==typeof e.icon)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[d(n)]=r;return t}),{})}function m(e,t,n){return n?c.createElement(e.tag,(0,r.Z)((0,r.Z)({key:t},p(e.attrs)),n),(e.children||[]).map((function(n,r){return m(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):c.createElement(e.tag,(0,r.Z)({key:t},p(e.attrs)),(e.children||[]).map((function(n,r){return m(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function g(e){return(0,o.generate)(e)[0]}function v(e){return e?Array.isArray(e)?e:[e]:[]}var b={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},y=function(e){var t=(0,c.useContext)(u.Z),n=t.csp,r=t.prefixCls,i="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(i=i.replace(/anticon/g,r)),(0,c.useEffect)((function(){var t=e.current,r=(0,s.A)(t);(0,a.hq)(i,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})}),[])}},38345:function(e,t,n){"use strict";var r=n(1413),i=n(63330),o=n(44962),a=n(13286),s=n(86074),l=i.Z;l.isProCard=!0,l.Divider=o.Z,l.TabPane=a.Z,l.Group=function(e){return(0,s.jsx)(i.Z,(0,r.Z)({bodyStyle:{padding:0}},e))},t.Z=l},63330:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(1413),i=n(4942),o=n(71002),a=n(97685),s=n(91),l=n(90814),c=n(81736),u=n(28459),d=n(75302),f=n(92398),h=n(93967),p=n.n(h),m=n(97435),g=n(21770),v=n(62435),b=n(98082),y=function(e){var t,n,r=e.componentCls,o=e.antCls;return(0,i.Z)({},"".concat(r,"-actions"),(n={marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:e.marginXS,background:e.colorBgContainer,borderBlockStart:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit),minHeight:42},(0,i.Z)(n,"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),(0,i.Z)(n,"& > li > div",{flex:1,width:"100%",marginBlock:e.marginSM,marginInline:0,color:e.colorTextSecondary,textAlign:"center",a:{color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}},div:(t={position:"relative",display:"block",minWidth:32,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimaryHover,transition:"color 0.3s"}},(0,i.Z)(t,"a:not(".concat(o,"-btn),\n > .anticon"),{display:"inline-block",width:"100%",color:e.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),(0,i.Z)(t,".anticon",{fontSize:e.cardActionIconSize,lineHeight:"22px"}),t),"&:not(:last-child)":{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}}),n))};var w=n(86074),_=function(e){var t=e.actions,n=e.prefixCls,i=function(e){return(0,b.Xj)("ProCardActions",(function(t){var n=(0,r.Z)((0,r.Z)({},t),{},{componentCls:".".concat(e),cardActionIconSize:16});return[y(n)]}))}(n),o=i.wrapSSR,a=i.hashId;return Array.isArray(t)&&null!=t&&t.length?o((0,w.jsx)("ul",{className:p()("".concat(n,"-actions"),a),children:t.map((function(e,r){return(0,w.jsx)("li",{style:{width:"".concat(100/t.length,"%"),padding:0,margin:0},className:p()("".concat(n,"-actions-item"),a),children:e},"action-".concat(r))}))})):o((0,w.jsx)("ul",{className:p()("".concat(n,"-actions"),a),children:t}))},x=n(71230),k=n(15746),S=new(n(54548).E4)("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),C=function(e){var t;return(0,i.Z)({},e.componentCls,(t={"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},(0,i.Z)(t,"".concat(e.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),(0,i.Z)(t,"".concat(e.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:e.borderRadius,animationName:S,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}),t))};var M=function(e){var t,n=e.style,i=e.prefix;return(0,(t=i||"ant-pro-card",(0,b.Xj)("ProCardLoading",(function(e){var n=(0,r.Z)((0,r.Z)({},e),{},{componentCls:".".concat(t)});return[C(n)]}))).wrapSSR)((0,w.jsxs)("div",{className:"".concat(i,"-loading-content"),style:n,children:[(0,w.jsx)(x.Z,{gutter:8,children:(0,w.jsx)(k.Z,{span:22,children:(0,w.jsx)("div",{className:"".concat(i,"-loading-block")})})}),(0,w.jsxs)(x.Z,{gutter:8,children:[(0,w.jsx)(k.Z,{span:8,children:(0,w.jsx)("div",{className:"".concat(i,"-loading-block")})}),(0,w.jsx)(k.Z,{span:15,children:(0,w.jsx)("div",{className:"".concat(i,"-loading-block")})})]}),(0,w.jsxs)(x.Z,{gutter:8,children:[(0,w.jsx)(k.Z,{span:6,children:(0,w.jsx)("div",{className:"".concat(i,"-loading-block")})}),(0,w.jsx)(k.Z,{span:18,children:(0,w.jsx)("div",{className:"".concat(i,"-loading-block")})})]}),(0,w.jsxs)(x.Z,{gutter:8,children:[(0,w.jsx)(k.Z,{span:13,children:(0,w.jsx)("div",{className:"".concat(i,"-loading-block")})}),(0,w.jsx)(k.Z,{span:9,children:(0,w.jsx)("div",{className:"".concat(i,"-loading-block")})})]}),(0,w.jsxs)(x.Z,{gutter:8,children:[(0,w.jsx)(k.Z,{span:4,children:(0,w.jsx)("div",{className:"".concat(i,"-loading-block")})}),(0,w.jsx)(k.Z,{span:3,children:(0,w.jsx)("div",{className:"".concat(i,"-loading-block")})}),(0,w.jsx)(k.Z,{span:16,children:(0,w.jsx)("div",{className:"".concat(i,"-loading-block")})})]})]}))},E=n(13286),A=function(e){return{backgroundColor:e.controlItemBgActive,borderColor:e.controlOutline}},I=function(e){var t,n,o,a,s,l=e.componentCls;return s={},(0,i.Z)(s,l,(0,r.Z)((0,r.Z)({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:e.colorBgContainer,borderRadius:e.borderRadius},null===b.Wf||void 0===b.Wf?void 0:(0,b.Wf)(e)),{},(n={"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)},"&-hoverable":(0,i.Z)({cursor:"pointer",transition:"box-shadow 0.3s, border-color 0.3s","&:hover":{borderColor:"transparent",boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017"}},"&".concat(l,"-checked:hover"),{borderColor:e.controlOutline}),"&-checked":(0,r.Z)((0,r.Z)({},A(e)),{},{"&::after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"6px solid ".concat(e.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:2,content:'""'}}),"&:focus":(0,r.Z)({},A(e)),"&&-ghost":(0,i.Z)({backgroundColor:"transparent"},"> ".concat(l),{"&-header":{paddingInlineEnd:0,paddingBlockEnd:e.padding,paddingInlineStart:0},"&-body":{paddingBlock:0,paddingInline:0,backgroundColor:"transparent"}}),"&&-split > &-body":{paddingBlock:0,paddingInline:0},"&&-contain-card > &-body":{display:"flex"}},(0,i.Z)(n,"".concat(l,"-body-direction-column"),{flexDirection:"column"}),(0,i.Z)(n,"".concat(l,"-body-wrap"),{flexWrap:"wrap"}),(0,i.Z)(n,"&&-collapse",(0,i.Z)({},"> ".concat(l),{"&-header":{paddingBlockEnd:e.padding,borderBlockEnd:0},"&-body":{display:"none"}})),(0,i.Z)(n,"".concat(l,"-header"),{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:e.paddingLG,paddingBlock:e.padding,paddingBlockEnd:0,"&-border":{"&":{paddingBlockEnd:e.padding},borderBlockEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)},"&-collapsible":{cursor:"pointer"}}),(0,i.Z)(n,"".concat(l,"-title"),{color:e.colorText,fontWeight:500,fontSize:e.fontSizeLG,lineHeight:e.lineHeight}),(0,i.Z)(n,"".concat(l,"-extra"),{color:e.colorText}),(0,i.Z)(n,"".concat(l,"-type-inner"),(0,i.Z)({},"".concat(l,"-header"),{backgroundColor:e.colorFillAlter})),(0,i.Z)(n,"".concat(l,"-collapsible-icon"),{marginInlineEnd:e.marginXS,color:e.colorIconHover,":hover":{color:e.colorPrimaryHover},"& svg":{transition:"transform ".concat(e.motionDurationMid)}}),(0,i.Z)(n,"".concat(l,"-body"),{display:"block",boxSizing:"border-box",height:"100%",paddingInline:e.paddingLG,paddingBlock:e.padding,"&-center":{display:"flex",alignItems:"center",justifyContent:"center"}}),(0,i.Z)(n,"&&-size-small",(t={},(0,i.Z)(t,l,{"&-header":{paddingInline:e.paddingSM,paddingBlock:e.paddingXS,paddingBlockEnd:0,"&-border":{paddingBlockEnd:e.paddingXS}},"&-title":{fontSize:e.fontSize},"&-body":{paddingInline:e.paddingSM,paddingBlock:e.paddingSM}}),(0,i.Z)(t,"".concat(l,"-header").concat(l,"-header-collapsible"),{paddingBlock:e.paddingXS}),t)),n))),(0,i.Z)(s,"".concat(l,"-col"),(o={},(0,i.Z)(o,"&".concat(l,"-split-vertical"),{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}),(0,i.Z)(o,"&".concat(l,"-split-horizontal"),{borderBlockEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}),o)),(0,i.Z)(s,"".concat(l,"-tabs"),(a={},(0,i.Z)(a,"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),(0,i.Z)({marginBlockEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:e.marginXS,paddingInlineStart:e.padding})),(0,i.Z)(a,"".concat(e.antCls,"-tabs-bottom > ").concat(e.antCls,"-tabs-nav"),(0,i.Z)({marginBlockEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{paddingInlineStart:e.padding})),(0,i.Z)(a,"".concat(e.antCls,"-tabs-left"),(0,i.Z)({},"".concat(e.antCls,"-tabs-content-holder"),(0,i.Z)({},"".concat(e.antCls,"-tabs-content"),(0,i.Z)({},"".concat(e.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),(0,i.Z)(a,"".concat(e.antCls,"-tabs-left > ").concat(e.antCls,"-tabs-nav"),(0,i.Z)({marginInlineEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{paddingBlockStart:e.padding})),(0,i.Z)(a,"".concat(e.antCls,"-tabs-right"),(0,i.Z)({},"".concat(e.antCls,"-tabs-content-holder"),(0,i.Z)({},"".concat(e.antCls,"-tabs-content"),(0,i.Z)({},"".concat(e.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),(0,i.Z)(a,"".concat(e.antCls,"-tabs-right > ").concat(e.antCls,"-tabs-nav"),(0,i.Z)({},"".concat(e.antCls,"-tabs-nav-list"),{paddingBlockStart:e.padding})),a)),s},O=function(e){return Array(25).fill(1).map((function(t,n){return function(e,t){var n=t.componentCls;return 0===e?(0,i.Z)({},"".concat(n,"-col-0"),{display:"none"}):(0,i.Z)({},"".concat(n,"-col-").concat(e),{flexShrink:0,width:"".concat(e/24*100,"%")})}(n,e)}))};var j=["className","style","bodyStyle","headStyle","title","subTitle","extra","tip","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","boxShadow","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],Z=v.forwardRef((function(e,t){var n,h,y,x,k,S=e.className,C=e.style,A=e.bodyStyle,Z=e.headStyle,R=e.title,N=e.subTitle,P=e.extra,T=e.tip,B=e.wrap,$=void 0!==B&&B,D=e.layout,L=e.loading,z=e.gutter,F=void 0===z?0:z,W=e.tooltip,H=e.split,V=e.headerBordered,U=void 0!==V&&V,Y=e.bordered,G=void 0!==Y&&Y,q=e.boxShadow,X=void 0!==q&&q,K=e.children,J=e.size,Q=e.actions,ee=e.ghost,te=void 0!==ee&&ee,ne=e.hoverable,re=void 0!==ne&&ne,ie=e.direction,oe=e.collapsed,ae=e.collapsible,se=void 0!==ae&&ae,le=e.collapsibleIconRender,ce=e.defaultCollapsed,ue=void 0!==ce&&ce,de=e.onCollapse,fe=e.checked,he=e.onChecked,pe=e.tabs,me=e.type,ge=(0,s.Z)(e,j),ve=(0,v.useContext)(u.ZP.ConfigContext).getPrefixCls,be=d.ZP.useBreakpoint()||{lg:!0,md:!0,sm:!0,xl:!1,xs:!1,xxl:!1},ye=(0,g.Z)(ue,{value:oe,onChange:de}),we=(0,a.Z)(ye,2),_e=we[0],xe=we[1],ke=["xxl","xl","lg","md","sm","xs"],Se=(0,E.g)(null==pe?void 0:pe.items,K,pe),Ce=function(e,t){return e?t:{}},Me=ve("pro-card"),Ee=function(e){return(0,b.Xj)("ProCard",(function(t){var n=(0,r.Z)((0,r.Z)({},t),{},{componentCls:".".concat(e)});return[I(n),O(n)]}))}(Me),Ae=Ee.wrapSSR,Ie=Ee.hashId,Oe=(x=F,k=[0,0],(Array.isArray(x)?x:[x,0]).forEach((function(e,t){if("object"===(0,o.Z)(e))for(var n=0;n=0&&l<=24),a)),d=Ae((0,w.jsx)("div",{style:(0,r.Z)((0,r.Z)((0,r.Z)({},c),Ce(Ze>0,{paddingInlineEnd:Ze/2,paddingInlineStart:Ze/2})),Ce(Re>0,{paddingBlockStart:Re/2,paddingBlockEnd:Re/2})),className:u,children:v.cloneElement(e)}));return v.cloneElement(d,{key:"pro-card-col-".concat((null==e?void 0:e.key)||t)})}return e})),Be=p()("".concat(Me),S,Ie,(n={},(0,i.Z)(n,"".concat(Me,"-border"),G),(0,i.Z)(n,"".concat(Me,"-box-shadow"),X),(0,i.Z)(n,"".concat(Me,"-contain-card"),Ne),(0,i.Z)(n,"".concat(Me,"-loading"),L),(0,i.Z)(n,"".concat(Me,"-split"),"vertical"===H||"horizontal"===H),(0,i.Z)(n,"".concat(Me,"-ghost"),te),(0,i.Z)(n,"".concat(Me,"-hoverable"),re),(0,i.Z)(n,"".concat(Me,"-size-").concat(J),J),(0,i.Z)(n,"".concat(Me,"-type-").concat(me),me),(0,i.Z)(n,"".concat(Me,"-collapse"),_e),(0,i.Z)(n,"".concat(Me,"-checked"),fe),n)),$e=p()("".concat(Me,"-body"),Ie,(h={},(0,i.Z)(h,"".concat(Me,"-body-center"),"center"===D),(0,i.Z)(h,"".concat(Me,"-body-direction-column"),"horizontal"===H||"column"===ie),(0,i.Z)(h,"".concat(Me,"-body-wrap"),$&&Ne),h)),De=A,Le=v.isValidElement(L)?L:(0,w.jsx)(M,{prefix:Me,style:0===(null==A?void 0:A.padding)||"0px"===(null==A?void 0:A.padding)?{padding:24}:void 0}),ze=se&&void 0===oe&&(le?le({collapsed:_e}):(0,w.jsx)(l.Z,{rotate:_e?void 0:90,className:"".concat(Me,"-collapsible-icon ").concat(Ie).trim()}));return Ae((0,w.jsxs)("div",(0,r.Z)((0,r.Z)({className:Be,style:C,ref:t,onClick:function(e){var t;null==he||he(e),null==ge||null===(t=ge.onClick)||void 0===t||t.call(ge,e)}},(0,m.Z)(ge,["prefixCls","colSpan"])),{},{children:[(R||P||ze)&&(0,w.jsxs)("div",{className:p()("".concat(Me,"-header"),Ie,(y={},(0,i.Z)(y,"".concat(Me,"-header-border"),U||"inner"===me),(0,i.Z)(y,"".concat(Me,"-header-collapsible"),ze),y)),style:Z,onClick:function(){ze&&xe(!_e)},children:[(0,w.jsxs)("div",{className:"".concat(Me,"-title ").concat(Ie).trim(),children:[ze,(0,w.jsx)(c.G,{label:R,tooltip:W||T,subTitle:N})]}),P&&(0,w.jsx)("div",{className:"".concat(Me,"-extra ").concat(Ie).trim(),onClick:function(e){return e.stopPropagation()},children:P})]}),pe?(0,w.jsx)("div",{className:"".concat(Me,"-tabs ").concat(Ie).trim(),children:(0,w.jsx)(f.Z,(0,r.Z)((0,r.Z)({onChange:pe.onChange},pe),{},{items:Se,children:L?Le:K}))}):(0,w.jsx)("div",{className:$e,style:De,children:L?Le:Te}),Q?(0,w.jsx)(_,{actions:Q,prefixCls:Me}):null]})))}))},44962:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(4942),i=n(28459),o=n(93967),a=n.n(o),s=n(62435),l=n(1413),c=n(98082),u=function(e){var t=e.componentCls;return(0,r.Z)({},t,{"&-divider":{flex:"none",width:e.lineWidth,marginInline:e.marginXS,marginBlock:e.marginLG,backgroundColor:e.colorSplit,"&-horizontal":{width:"initial",height:e.lineWidth,marginInline:e.marginLG,marginBlock:e.marginXS}},"&&-size-small &-divider":{marginBlock:e.marginLG,marginInline:e.marginXS,"&-horizontal":{marginBlock:e.marginXS,marginInline:e.marginLG}}})};var d=n(86074),f=function(e){var t=(0,(0,s.useContext)(i.ZP.ConfigContext).getPrefixCls)("pro-card"),n="".concat(t,"-divider"),o=function(e){return(0,c.Xj)("ProCardDivider",(function(t){var n=(0,l.Z)((0,l.Z)({},t),{},{componentCls:".".concat(e)});return[u(n)]}))}(t),f=o.wrapSSR,h=o.hashId,p=e.className,m=e.style,g=void 0===m?{}:m,v=e.type,b=a()(n,p,h,(0,r.Z)({},"".concat(n,"-").concat(v),v));return f((0,d.jsx)("div",{className:b,style:g}))}},13286:function(e,t,n){"use strict";n.d(t,{g:function(){return v}});var r=n(91),i=n(1413),o=n(28459),a=n(67159),s=n(92398),l=n(93967),c=n.n(l),u=n(50344),d=n(80334),f=n(62435),h=n(63330),p=n(86074),m=(n(34155),["tab","children"]),g=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function v(e,t,n){return e?e.map((function(e){return(0,i.Z)((0,i.Z)({},e),{},{children:(0,p.jsx)(h.Z,(0,i.Z)((0,i.Z)({},null==n?void 0:n.cardProps),{},{children:e.children}))})})):((0,d.ET)(!n,"Tabs.TabPane is deprecated. Please use `items` directly."),function(e){return e.filter((function(e){return e}))}((0,u.Z)(t).map((function(e){if(f.isValidElement(e)){var t=e.key,o=e.props||{},a=o.tab,s=o.children,l=(0,r.Z)(o,m);return(0,i.Z)((0,i.Z)({key:String(t)},l),{},{children:(0,p.jsx)(h.Z,(0,i.Z)((0,i.Z)({},null==n?void 0:n.cardProps),{},{children:s})),label:a})}return null}))))}t.Z=function(e){var t=(0,f.useContext)(o.ZP.ConfigContext).getPrefixCls;if(a.Z.startsWith("5"))return(0,p.jsx)(p.Fragment,{});var n=e.key,l=e.tab,u=e.tabKey,d=e.disabled,m=e.destroyInactiveTabPane,v=e.children,b=e.className,y=e.style,w=e.cardProps,_=(0,r.Z)(e,g),x=t("pro-card-tabpane"),k=c()(x,b);return(0,p.jsx)(s.Z.TabPane,(0,i.Z)((0,i.Z)({tabKey:u,tab:l,className:k,style:y,disabled:d,destroyInactiveTabPane:m},_),{},{children:(0,p.jsx)(h.Z,(0,i.Z)((0,i.Z)({},w),{},{children:v}))}),n)}},60692:function(e,t,n){"use strict";n.d(t,{ZP:function(){return V},NA:function(){return F},aK:function(){return W}});var r=n(1413),i=n(91),o=n(97685),a=n(71002),s=n(74902),l=n(4942),c=n(10915),u=n(98082),d=n(10989),f=n(75661),h=n(48171),p=n(27833),m=n(21770),g=n(27068),v=n(62435),b=n(51280);var y=n(28459),w=n(57953),_=n(59734),x=n(68795),k=n(2122),S=n(34041),C=n(69677),M=n(93967),E=n.n(M),A=n(50344),I=n(86074),O=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger","optionFilterProp","optionLabelProp","valueMaxLength"],j=function(e,t){return"object"!==(0,a.Z)(t)?e[t]||t:e[null==t?void 0:t.value]||t.label},Z=function(e,t){var n=e.label,a=e.prefixCls,s=e.onChange,c=e.value,d=e.mode,f=(e.children,e.defaultValue,e.size),h=e.showSearch,p=e.disabled,m=e.style,g=e.className,b=e.bordered,w=e.options,_=e.onSearch,M=e.allowClear,Z=e.labelInValue,R=e.fieldNames,N=e.lightLabel,P=e.labelTrigger,T=e.optionFilterProp,B=e.optionLabelProp,$=void 0===B?"":B,D=e.valueMaxLength,L=void 0===D?41:D,z=(0,i.Z)(e,O),F=e.placeholder,W=void 0===F?n:F,H=R||{},V=H.label,U=void 0===V?"label":V,Y=H.value,G=void 0===Y?"value":Y,q=(0,(0,v.useContext)(y.ZP.ConfigContext).getPrefixCls)("pro-field-select-light-select"),X=(0,v.useState)(!1),K=(0,o.Z)(X,2),J=K[0],Q=K[1],ee=(0,v.useState)(""),te=(0,o.Z)(ee,2),ne=te[0],re=te[1],ie=(0,u.Xj)("LightSelect",(function(e){var t;return(0,l.Z)({},".".concat(q),(t={},(0,l.Z)(t,"".concat(e.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),(0,l.Z)(t,"&.".concat(q,"-searchable"),(0,l.Z)({},"".concat(e.antCls,"-select"),{width:"200px","&-selector":{height:28}})),t))})),oe=ie.wrapSSR,ae=ie.hashId,se=(0,v.useMemo)((function(){var e={};return null==w||w.forEach((function(t){var n=t[$]||t[U],r=t[G];e[r]=n||r})),e}),[U,w,G,$]),le=Array.isArray(c)?c.map((function(e){return j(se,e)})):j(se,c);return oe((0,I.jsxs)("div",{className:E()(q,ae,(0,l.Z)({},"".concat(q,"-searchable"),h),"".concat(q,"-container-").concat(z.placement||"bottomLeft"),g),style:m,onClick:function(e){var t;if(!p){var n=null==N||null===(t=N.current)||void 0===t||null===(t=t.labelRef)||void 0===t||null===(t=t.current)||void 0===t?void 0:t.contains(e.target);Q(!n||!J)}},children:[(0,I.jsx)(S.default,(0,r.Z)((0,r.Z)({popupMatchSelectWidth:!1},z),{},{allowClear:M,value:c,mode:d,labelInValue:Z,size:f,disabled:p,onChange:function(e,t){null==s||s(e,t),"multiple"!==d&&Q(!1)},bordered:b,showSearch:h,onSearch:_,style:m,dropdownRender:function(e){return(0,I.jsxs)("div",{ref:t,children:[h&&(0,I.jsx)("div",{style:{margin:"4px 8px"},children:(0,I.jsx)(C.Z,{value:ne,allowClear:!!M,onChange:function(e){re(e.target.value),null==_||_(e.target.value)},onKeyDown:function(e){e.stopPropagation()},style:{width:"100%"},prefix:(0,I.jsx)(x.Z,{})})}),e]})},open:J,onDropdownVisibleChange:function(e){var t;e||re(""),P||Q(e),null==z||null===(t=z.onDropdownVisibleChange)||void 0===t||t.call(z,e)},prefixCls:a,options:_||!ne?w:null==w?void 0:w.filter((function(e){var t,n;return T?(0,A.Z)(e[T]).join("").toLowerCase().includes(ne):(null===(t=String(e[U]))||void 0===t||null===(t=t.toLowerCase())||void 0===t?void 0:t.includes(null==ne?void 0:ne.toLowerCase()))||(null===(n=e[G])||void 0===n||null===(n=n.toString())||void 0===n||null===(n=n.toLowerCase())||void 0===n?void 0:n.includes(null==ne?void 0:ne.toLowerCase()))}))})),(0,I.jsx)(k.Q,{ellipsis:!0,label:n,placeholder:W,disabled:p,bordered:b,allowClear:!!M,value:le||(null==c?void 0:c.label)||c,onClear:function(){null==s||s(void 0,void 0)},ref:N,valueMaxLength:L})]}))},R=v.forwardRef(Z),N=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue"],P=["className","optionType"],T=function(e,t){var n=e.optionItemRender,a=e.mode,s=e.onSearch,c=e.onFocus,u=e.onChange,d=e.autoClearSearchValue,f=void 0===d||d,h=e.searchOnFocus,p=void 0!==h&&h,m=e.resetAfterSelect,g=void 0!==m&&m,b=e.fetchDataOnSearch,w=void 0===b||b,_=e.optionFilterProp,x=void 0===_?"label":_,k=e.optionLabelProp,C=void 0===k?"label":k,M=e.className,A=e.disabled,O=e.options,j=e.fetchData,Z=e.resetData,R=e.prefixCls,T=e.onClear,B=e.searchValue,$=e.showSearch,D=e.fieldNames,L=e.defaultSearchValue,z=(0,i.Z)(e,N),F=D||{},W=F.label,H=void 0===W?"label":W,V=F.value,U=void 0===V?"value":V,Y=F.options,G=void 0===Y?"options":Y,q=(0,v.useState)(null!=B?B:L),X=(0,o.Z)(q,2),K=X[0],J=X[1],Q=(0,v.useRef)();(0,v.useImperativeHandle)(t,(function(){return Q.current})),(0,v.useEffect)((function(){var e;z.autoFocus&&(null==Q||null===(e=Q.current)||void 0===e||e.focus())}),[z.autoFocus]),(0,v.useEffect)((function(){J(B)}),[B]);var ee=(0,(0,v.useContext)(y.ZP.ConfigContext).getPrefixCls)("pro-filed-search-select",R),te=E()(ee,M,(0,l.Z)({},"".concat(ee,"-disabled"),A)),ne=function(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length>0?e.map((function(e,n){var i=null==t?void 0:t[n],o=(null==i?void 0:i["data-item"])||{};return(0,r.Z)((0,r.Z)({},o),e)})):[]};return(0,I.jsx)(S.default,(0,r.Z)((0,r.Z)({ref:Q,className:te,allowClear:!0,autoClearSearchValue:f,disabled:A,mode:a,showSearch:$,searchValue:K,optionFilterProp:x,optionLabelProp:C,onClear:function(){null==T||T(),j(void 0),$&&J(void 0)}},z),{},{filterOption:0!=z.filterOption&&function(e,t){var n,i,o;return z.filterOption&&"function"==typeof z.filterOption?z.filterOption(e,(0,r.Z)((0,r.Z)({},t),{},{label:null==t?void 0:t.data_title})):!!(null!=t&&null!==(n=t.data_title)&&void 0!==n&&n.toString().toLowerCase().includes(e.toLowerCase())||null!=t&&null!==(i=t.label)&&void 0!==i&&i.toString().toLowerCase().includes(e.toLowerCase())||null!=t&&null!==(o=t.value)&&void 0!==o&&o.toString().toLowerCase().includes(e.toLowerCase()))},onSearch:$?function(e){w&&j(e),null==s||s(e),J(e)}:void 0,onChange:function(t,n){$&&f&&(j(void 0),null==s||s(""),J(void 0));for(var i=arguments.length,o=new Array(i>2?i-2:0),l=2;l1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=(0,v.useState)(e),i=(0,o.Z)(r,2),a=i[0],l=i[1],c=(0,b.d)(e);return(0,v.useEffect)((function(){var e=setTimeout((function(){l(c.current)}),t);return function(){return clearTimeout(e)}}),n?[t].concat((0,s.Z)(n)):void 0),a}([M.current,e.params,x],null!==(t=null!==(n=e.debounceTime)&&void 0!==n?n:null==e||null===(a=e.fieldProps)||void 0===a?void 0:a.debounceTime)&&void 0!==t?t:0,[e.params,x]),N=(0,_.ZP)((function(){return e.request?R:null}),(function(t){var n=(0,o.Z)(t,3),i=n[1],a=n[2];return e.request((0,r.Z)((0,r.Z)({},i),{},{keyWords:a}),e)}),{revalidateIfStale:!c,revalidateOnReconnect:c,shouldRetryOnError:!1,revalidateOnFocus:!1}),P=N.data,T=N.mutate,B=N.isValidating,D=(0,v.useMemo)((function(){var t,n,i=null==j?void 0:j.map((function(e){if("string"==typeof e)return{label:e,value:e};if(e.children||e.options){var t=[].concat((0,s.Z)(e.children||[]),(0,s.Z)(e.options||[])).filter((function(e){return z(e,x)}));return(0,r.Z)((0,r.Z)({},e),{},{children:t,options:t})}return e}));return!0===(null===(t=e.fieldProps)||void 0===t?void 0:t.filterOption)||void 0===(null===(n=e.fieldProps)||void 0===n?void 0:n.filterOption)?null==i?void 0:i.filter((function(e){return!!e&&(!x||z(e,x))})):i}),[j,x,null===(l=e.fieldProps)||void 0===l?void 0:l.filterOption]);return[B,e.request?P:D,function(e){k(e)},function(){k(void 0),T([],!1)}]},H=function(e,t){var n,a=e.mode,s=e.valueEnum,l=e.render,u=e.renderFormItem,f=(e.request,e.fieldProps),h=(e.plain,e.children,e.light),p=(e.proFieldKey,e.params,e.label),m=e.bordered,g=e.id,b=e.lightLabel,_=e.labelTrigger,x=(0,i.Z)(e,D),k=(0,v.useRef)(),S=(0,c.YB)(),C=(0,v.useRef)(""),M=f.fieldNames;(0,v.useEffect)((function(){C.current=null==f?void 0:f.searchValue}),[null==f?void 0:f.searchValue]);var E=W(e),A=(0,o.Z)(E,4),O=A[0],j=A[1],Z=A[2],N=A[3],P=((null===y.ZP||void 0===y.ZP||null===(n=y.ZP.useConfig)||void 0===n?void 0:n.call(y.ZP))||{componentSize:"middle"}).componentSize;(0,v.useImperativeHandle)(t,(function(){return(0,r.Z)((0,r.Z)({},k.current||{}),{},{fetchData:function(e){return Z(e)}})}),[Z]);var T=(0,v.useMemo)((function(){if("read"===a){var e=M||{},t=e.label,n=void 0===t?"label":t,r=e.value,i=void 0===r?"value":r,o=e.options,s=void 0===o?"options":o,l=new Map;return function e(t){if(null==t||!t.length)return l;for(var r=t.length,o=0;o2&&void 0!==arguments[2])||arguments[2],r=Object.keys(t).reduce((function(e,n){var r=t[n];return(0,E.k)(r)||(e[n]=r),e}),{});if(Object.keys(r).length<1)return e;if("undefined"==typeof window)return e;if("object"!==(0,x.Z)(e)||(0,E.k)(e)||e instanceof Blob)return e;var i=Array.isArray(e)?[]:{},a=function e(t,a){var s=Array.isArray(t)?[]:{};return null==t||void 0===t?s:(Object.keys(t).forEach((function(n){var l=function e(r,i){return Array.isArray(r)?(r.forEach((function(r,o){if(r){var a=null==i?void 0:i[o];"function"==typeof r&&(i[o]=r(i,n,t)),"object"!==(0,x.Z)(r)||Array.isArray(r)||Object.keys(r).forEach((function(i){var o=null==a?void 0:a[i];if("function"==typeof r[i]&&o){var s=r[i](a[i],n,t);a[i]="object"===(0,x.Z)(s)?s[i]:s}else"object"===(0,x.Z)(r[i])&&Array.isArray(r[i])&&o&&e(r[i],o)})),"object"===(0,x.Z)(r)&&Array.isArray(r)&&a&&e(r,a)}})),n):n},c=a?[a,n].flat(1):[n].flat(1),u=t[n],d=(0,C.Z)(r,c),f=function(){var e,r,a=!1;if("function"==typeof d){r=null==d?void 0:d(u,n,t);var c=(0,x.Z)(r);"object"!==c&&"undefined"!==c?(e=n,a=!0):e=r}else e=l(d,u);Array.isArray(e)?s=(0,M.Z)(s,e,u):"object"!==(0,x.Z)(e)||Array.isArray(i)?"object"===(0,x.Z)(e)&&Array.isArray(i)?s=(0,o.Z)((0,o.Z)({},s),e):null===e&&void 0===e||(s=(0,M.Z)(s,[e],a?r:u)):i=S()(i,e)};if(d&&"function"==typeof d&&f(),"undefined"!=typeof window)if(I(u)){var h=e(u,c);if(Object.keys(h).length<1)return;s=(0,M.Z)(s,[n],h)}else f()})),n?s:t)};return i=Array.isArray(e)&&Array.isArray(i)?(0,_.Z)(a(e)):(0,A.T)({},a(e),i)},j=n(23312),Z=function(){return Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&void 0!==arguments[0]?arguments[0]:[],n=J(t);if(!n)throw new Error("nameList is require");var r=null===(e=F())||void 0===e?void 0:e.getFieldValue(n),i=n?(0,M.Z)({},n,r):r;return(0,C.Z)(u(i,A,n),n)},getFieldFormatValueObject:function(e){var t,n=J(e),r=null===(t=F())||void 0===t?void 0:t.getFieldValue(n),i=n?(0,M.Z)({},n,r):r;return u(i,A,n)},validateFieldsReturnFormatValue:(e=(0,s.Z)((0,a.Z)().mark((function e(t){var n,r,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Array.isArray(t)||!t){e.next=2;break}throw new Error("nameList must be array");case 2:return e.next=4,null===(n=F())||void 0===n?void 0:n.validateFields(t);case 4:return r=e.sent,i=u(r,A),e.abrupt("return",i||{});case 7:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})};var e}),[A,u]),U=(0,v.useMemo)((function(){return v.Children.toArray(n).map((function(e,t){return 0===t&&v.isValidElement(e)&&O?v.cloneElement(e,(0,o.Z)((0,o.Z)({},e.props),{},{autoFocus:O})):e}))}),[O,n]),G=(0,v.useMemo)((function(){return"boolean"!=typeof c&&c?c:{}}),[c]),X=(0,v.useMemo)((function(){if(!1!==c)return(0,H.jsx)(V,(0,o.Z)((0,o.Z)({},G),{},{onReset:function(){var e,t,n=u(null===(e=D.current)||void 0===e?void 0:e.getFieldsValue(),A);if(null==G||null===(t=G.onReset)||void 0===t||t.call(G,n),null==S||S(n),x){var r,a=Object.keys(u(null===(r=D.current)||void 0===r?void 0:r.getFieldsValue(),!1)).reduce((function(e,t){return(0,o.Z)((0,o.Z)({},e),{},(0,i.Z)({},t,n[t]||void 0))}),_);k(K(x,a||{},"set"))}},submitButtonProps:(0,o.Z)({loading:y},G.submitButtonProps)}),"submitter")}),[c,G,y,u,A,S,x,_,k]),Q=(0,v.useMemo)((function(){var e=j?(0,H.jsx)(L,{children:U}):U;return r?r(e,X,D.current):e}),[j,L,U,r,X]),ee=(0,f.D)(e.initialValues);return(0,v.useEffect)((function(){if(!x&&e.initialValues&&ee&&!N.request){var t=(0,h.A)(e.initialValues,ee);(0,z.ET)(t,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ?
: null "),(0,z.ET)(t,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}}),[e.initialValues]),(0,v.useImperativeHandle)(m,(function(){return(0,o.Z)((0,o.Z)({},D.current),W)}),[W,D.current]),(0,v.useEffect)((function(){var e,t,n=u(null===(e=D.current)||void 0===e||null===(t=e.getFieldsValue)||void 0===t?void 0:t.call(e,!0),A);null==g||g(n,(0,o.Z)((0,o.Z)({},D.current),W))}),[]),(0,H.jsx)(p.J.Provider,{value:(0,o.Z)((0,o.Z)({},W),{},{formRef:D}),children:(0,H.jsx)(T.ZP,{componentSize:N.size||$,children:(0,H.jsxs)(Y._p.Provider,{value:{grid:j,colProps:R},children:[!1!==N.component&&(0,H.jsx)("input",{type:"text",style:{display:"none"}}),Q]})})})}var ee=0;function te(e){var t=e.extraUrlParams,n=void 0===t?{}:t,u=e.syncToUrl,f=e.isKeyPressSubmit,h=e.syncToUrlAsImportant,p=void 0!==h&&h,_=e.syncToInitialValues,x=void 0===_||_,k=(e.children,e.contentRender,e.submitter,e.fieldProps),S=e.proFieldProps,C=e.formItemProps,E=e.groupProps,A=e.dateFormatter,I=void 0===A?"string":A,Z=e.formRef,N=(e.onInit,e.form),$=e.formComponentType,z=(e.onReset,e.grid,e.rowProps,e.colProps,e.omitNil),W=void 0===z||z,V=e.request,Y=e.params,q=e.initialValues,J=e.formKey,te=void 0===J?ee:J,ne=(e.readonly,e.onLoadingChange),re=e.loading,ie=(0,l.Z)(e,X),oe=(0,v.useRef)({}),ae=(0,m.Z)(!1,{onChange:ne,value:re}),se=(0,r.Z)(ae,2),le=se[0],ce=se[1],ue=R({},{disabled:!u}),de=(0,r.Z)(ue,2),fe=de[0],he=de[1],pe=(0,v.useRef)((0,g.x)());(0,v.useEffect)((function(){ee+=0}),[]);var me=function(e){var t=(0,v.useRef)(null),n=(0,v.useState)((function(){return e.proFieldKey?e.proFieldKey.toString():(y+=1).toString()})),i=(0,r.Z)(n,1)[0],o=(0,v.useRef)(i),l=function(){var n=(0,s.Z)((0,a.Z)().mark((function n(){var r,i,o,s;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null===(r=t.current)||void 0===r||r.abort(),o=new AbortController,t.current=o,n.next=5,Promise.race([null===(i=e.request)||void 0===i?void 0:i.call(e,e.params,e),new Promise((function(e,n){var r;null===(r=t.current)||void 0===r||null===(r=r.signal)||void 0===r||r.addEventListener("abort",(function(){n(new Error("aborted"))}))}))]);case 5:return s=n.sent,n.abrupt("return",s);case 7:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();(0,v.useEffect)((function(){return function(){y+=1}}),[]);var c=(0,b.ZP)([o.current,e.params],l,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),u=c.data,d=c.error;return[u||d]}({request:V,params:Y,proFieldKey:te}),ge=(0,r.Z)(me,1)[0],ve=(0,(0,v.useContext)(T.ZP.ConfigContext).getPrefixCls)("pro-form"),be=(0,w.Xj)("ProForm",(function(e){return(0,i.Z)({},".".concat(ve),(0,i.Z)({},"> div:not(".concat(e.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))})),ye=be.wrapSSR,we=be.hashId,_e=(0,v.useState)((function(){return u?K(u,fe,"get"):{}})),xe=(0,r.Z)(_e,2),ke=xe[0],Se=xe[1],Ce=(0,v.useRef)({}),Me=(0,v.useRef)({}),Ee=(0,d.J)((function(e,t,n){return O((0,j.lp)(e,I,Me.current,t,n),Ce.current,t)}));(0,v.useEffect)((function(){x||Se({})}),[x]),(0,v.useEffect)((function(){u&&he(K(u,(0,o.Z)((0,o.Z)({},fe),n),"set"))}),[n,u]);var Ae=(0,v.useMemo)((function(){if("undefined"!=typeof window)return $&&["DrawerForm"].includes($)?function(e){return e.parentNode||document.body}:void 0}),[$]),Ie=(0,d.J)((0,s.Z)((0,a.Z)().mark((function e(){var t,r,s,l,c,d;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ie.onFinish){e.next=2;break}return e.abrupt("return");case 2:if(!le){e.next=4;break}return e.abrupt("return");case 4:return ce(!0),e.prev=5,s=null==oe||null===(t=oe.current)||void 0===t||null===(r=t.getFieldsFormatValue)||void 0===r?void 0:r.call(t),e.next=9,ie.onFinish(s);case 9:u&&(d=Object.keys(null==oe||null===(l=oe.current)||void 0===l||null===(c=l.getFieldsFormatValue)||void 0===c?void 0:c.call(l,void 0,!1)).reduce((function(e,t){var n;return(0,o.Z)((0,o.Z)({},e),{},(0,i.Z)({},t,null!==(n=s[t])&&void 0!==n?n:void 0))}),n),Object.keys(fe).forEach((function(e){!1===d[e]||0===d[e]||d[e]||(d[e]=void 0)})),he(K(u,d,"set"))),ce(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(5),console.log(e.t0),ce(!1);case 17:case"end":return e.stop()}}),e,null,[[5,13]])}))));return(0,v.useImperativeHandle)(Z,(function(){return oe.current}),[!ge]),!ge&&e.request?(0,H.jsx)("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:(0,H.jsx)(B.Z,{})}):ye((0,H.jsx)(G.A.Provider,{value:{mode:e.readonly?"read":"edit"},children:(0,H.jsx)(c._Y,{needDeps:!0,children:(0,H.jsx)(F.Z.Provider,{value:{formRef:oe,fieldProps:k,proFieldProps:S,formItemProps:C,groupProps:E,formComponentType:$,getPopupContainer:Ae,formKey:pe.current,setFieldValueType:function(e,t){var n=t.valueType,r=void 0===n?"text":n,i=t.dateFormat,o=t.transform;Array.isArray(e)&&(Ce.current=(0,M.Z)(Ce.current,e,o),Me.current=(0,M.Z)(Me.current,e,{valueType:r,dateFormat:i}))}},children:(0,H.jsx)(U.J.Provider,{value:{},children:(0,H.jsx)(P.Z,(0,o.Z)((0,o.Z)({onKeyPress:function(e){var t;f&&("Enter"===e.key&&(null===(t=oe.current)||void 0===t||t.submit()))},autoComplete:"off",form:N},(0,L.Z)(ie,["labelWidth","autoFocusFirstInput"])),{},{initialValues:p?(0,o.Z)((0,o.Z)((0,o.Z)({},q),ge),ke):(0,o.Z)((0,o.Z)((0,o.Z)({},ke),q),ge),onValuesChange:function(e,t){var n;null==ie||null===(n=ie.onValuesChange)||void 0===n||n.call(ie,Ee(e,!!W),Ee(t,!!W))},className:D()(e.className,ve,we),onFinish:Ie,children:(0,H.jsx)(Q,(0,o.Z)((0,o.Z)({transformKey:Ee,autoComplete:"off",loading:le,onUrlSearchChange:he},e),{},{formRef:oe,initialValues:(0,o.Z)((0,o.Z)({},q),ge)}))}))})})})}))}},9105:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var r=n(62435).createContext({mode:"edit"})},90789:function(e,t,n){"use strict";n.d(t,{G:function(){return M}});var r=n(4942),i=n(97685),o=n(1413),a=n(91),s=n(27833),l=n(51812),c=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];var u=n(53914),d=n(48171),f=n(93967),h=n.n(f),p=n(43589),m=n(80334),g=n(62435),v=n(66758),b=n(4499),y=n(97462),w=n(2514),_=n(86074),x=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],k=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],S=(Symbol("ProFormComponent"),{xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552}),C=["switch","radioButton","radio","rate"];function M(e,t){e.displayName="ProFormComponent";var n=function(n){var f=(0,o.Z)((0,o.Z)({},null==n?void 0:n.filedConfig),t)||{},y=f.valueType,M=f.customLightMode,E=f.lightFilterLabelFormatter,A=f.valuePropName,I=void 0===A?"value":A,O=f.ignoreWidth,j=f.defaultProps,Z=(0,a.Z)(f,x),R=(0,o.Z)((0,o.Z)({},j),n),N=R.label,P=R.tooltip,T=R.placeholder,B=R.width,$=R.bordered,D=R.messageVariables,L=R.ignoreFormItem,z=R.transform,F=R.convertValue,W=R.readonly,H=R.allowClear,V=(R.colSize,R.getFormItemProps),U=R.getFieldProps,Y=(R.filedConfig,R.cacheForSwr),G=R.proFieldProps,q=(0,a.Z)(R,k),X=y||q.valueType,K=(0,g.useMemo)((function(){return O||C.includes(X)}),[O,X]),J=(0,g.useState)(),Q=(0,i.Z)(J,2)[1],ee=(0,g.useState)(),te=(0,i.Z)(ee,2),ne=te[0],re=te[1],ie=g.useContext(v.Z),oe=(0,s.Z)((function(){return{formItemProps:null==V?void 0:V(),fieldProps:null==U?void 0:U()}}),[U,V,q.dependenciesValues,ne]),ae=(0,s.Z)((function(){var e=(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},L?(0,l.Y)({value:q.value}):{}),{},{placeholder:T,disabled:n.disabled},ie.fieldProps),oe.fieldProps),q.fieldProps);return e.style=(0,l.Y)(null==e?void 0:e.style),e}),[L,q.value,q.fieldProps,T,n.disabled,ie.fieldProps,oe.fieldProps]),se=function(e){var t={};return c.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}(q),le=(0,s.Z)((function(){return(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},ie.formItemProps),se),oe.formItemProps),q.formItemProps)}),[oe.formItemProps,ie.formItemProps,q.formItemProps,se]),ce=(0,s.Z)((function(){return(0,o.Z)((0,o.Z)({messageVariables:D},Z),le)}),[Z,le,D]);(0,m.ET)(!q.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var ue=(0,g.useContext)(p.zb).prefixName,de=(0,s.Z)((function(){var e,t=null==ce?void 0:ce.name;return Array.isArray(t)&&(t=t.join("_")),Array.isArray(ue)&&t&&(t="".concat(ue.join("."),".").concat(t)),t&&"form-".concat(null!==(e=ie.formKey)&&void 0!==e?e:"","-field-").concat(t)}),[(0,u.ZP)(null==ce?void 0:ce.name),ue,ie.formKey]),fe=(0,d.J)((function(){var e;V||U?re([]):q.renderFormItem&&Q([]);for(var t=arguments.length,n=new Array(t),r=0;rl?1:Math.round(100*f/l)/100,t.a!==o)return{h:t.h,s:t.s,l:t.l,a:o,source:"rgb"}}else if(r!==(a=d<0?0:d>s?1:Math.round(100*d/s)/100))return{h:t.h,s:t.s,l:t.l,a:a,source:"rgb"};return null},W={},H=function(e,t,n,r){var i="".concat(e,"-").concat(t,"-").concat(n).concat(r?"-server":"");if(W[i])return W[i];var o=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null}(e,t,n,r);return W[i]=o,o};function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;to)u=0;else{u=360*(-100*c/o+100)/100}if(n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d;if(l<0)d=0;else if(l>i)d=359;else{d=360*(100*l/i)/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null};function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function he(e,t){for(var n=0;ni&&(l=i),c<0?c=0:c>o&&(c=o);var u=l/i,d=1-c/o;return{h:t.h,s:u,v:d,a:t.a,source:"hsv"}}(e,t.props.hsl,t.container),e)},t.handleMouseDown=function(e){t.handleChange(e);var n=t.getContainerRenderWindow();n.addEventListener("mousemove",t.handleChange),n.addEventListener("mouseup",t.handleMouseUp)},t.handleMouseUp=function(){t.unbindEventListeners()},t.throttle=_e()((function(e,t,n){e(t,n)}),50),t}return t=o,(n=[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,o=t.pointer,a=t.circle,s=(0,D.ZP)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-100*this.props.hsv.v+100,"%"),left:"".concat(100*this.props.hsv.s,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:i,pointer:o,circle:a}},{custom:!!this.props.style});return f.createElement("div",{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},f.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),f.createElement("div",{style:s.white,className:"saturation-white"},f.createElement("div",{style:s.black,className:"saturation-black"}),f.createElement("div",{style:s.pointer},this.props.pointer?f.createElement(this.props.pointer,this.props):f.createElement("div",{style:s.circle}))))}}])&&ke(t.prototype,n),r&&ke(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(f.PureComponent||f.Component),Ie=n(23279),Oe=n.n(Ie),je=n(66073),Ze=n.n(je);function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}var Ne=/^\s+/,Pe=/\s+$/;function Te(e,t){if(t=t||{},(e=e||"")instanceof Te)return e;if(!(this instanceof Te))return new Te(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;"string"==typeof e&&(e=function(e){e=e.replace(Ne,"").replace(Pe,"").toLowerCase();var t,n=!1;if(Qe[e])e=Qe[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=ft.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=ft.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=ft.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=ft.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=ft.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=ft.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=ft.hex8.exec(e))return{r:it(t[1]),g:it(t[2]),b:it(t[3]),a:lt(t[4]),format:n?"name":"hex8"};if(t=ft.hex6.exec(e))return{r:it(t[1]),g:it(t[2]),b:it(t[3]),format:n?"name":"hex"};if(t=ft.hex4.exec(e))return{r:it(t[1]+""+t[1]),g:it(t[2]+""+t[2]),b:it(t[3]+""+t[3]),a:lt(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=ft.hex3.exec(e))return{r:it(t[1]+""+t[1]),g:it(t[2]+""+t[2]),b:it(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==Re(e)&&(ht(e.r)&&ht(e.g)&&ht(e.b)?(l=e.r,c=e.g,u=e.b,t={r:255*nt(l,255),g:255*nt(c,255),b:255*nt(u,255)},a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):ht(e.h)&&ht(e.s)&&ht(e.v)?(r=at(e.s),i=at(e.v),t=function(e,t,n){e=6*nt(e,360),t=nt(t,100),n=nt(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,c=[n,a,o,o,s,n][l],u=[s,n,n,a,o,o][l],d=[o,o,s,n,n,a][l];return{r:255*c,g:255*u,b:255*d}}(e.h,r,i),a=!0,s="hsv"):ht(e.h)&&ht(e.s)&&ht(e.l)&&(r=at(e.s),o=at(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=nt(e,360),t=nt(t,100),n=nt(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a));var l,c,u;return n=tt(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function Be(e,t,n){e=nt(e,255),t=nt(t,255),n=nt(n,255);var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(Te(r));return o}function Je(e,t){t=t||6;for(var n=Te(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(Te({h:r,s:i,v:o})),o=(o+s)%1;return a}Te.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=tt(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=$e(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=$e(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=Be(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Be(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return De(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[ot(Math.round(e).toString(16)),ot(Math.round(t).toString(16)),ot(Math.round(n).toString(16)),ot(st(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*nt(this._r,255))+"%",g:Math.round(100*nt(this._g,255))+"%",b:Math.round(100*nt(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*nt(this._r,255))+"%, "+Math.round(100*nt(this._g,255))+"%, "+Math.round(100*nt(this._b,255))+"%)":"rgba("+Math.round(100*nt(this._r,255))+"%, "+Math.round(100*nt(this._g,255))+"%, "+Math.round(100*nt(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(et[De(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+Le(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=Te(e);n="#"+Le(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Te(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(He,arguments)},brighten:function(){return this._applyModification(Ve,arguments)},darken:function(){return this._applyModification(Ue,arguments)},desaturate:function(){return this._applyModification(ze,arguments)},saturate:function(){return this._applyModification(Fe,arguments)},greyscale:function(){return this._applyModification(We,arguments)},spin:function(){return this._applyModification(Ye,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Ke,arguments)},complement:function(){return this._applyCombination(Ge,arguments)},monochromatic:function(){return this._applyCombination(Je,arguments)},splitcomplement:function(){return this._applyCombination(Xe,arguments)},triad:function(){return this._applyCombination(qe,[3])},tetrad:function(){return this._applyCombination(qe,[4])}},Te.fromRatio=function(e,t){if("object"==Re(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:at(e[r]));e=n}return Te(e,t)},Te.equals=function(e,t){return!(!e||!t)&&Te(e).toRgbString()==Te(t).toRgbString()},Te.random=function(){return Te.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Te.mix=function(e,t,n){n=0===n?0:n||50;var r=Te(e).toRgb(),i=Te(t).toRgb(),o=n/100;return Te({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},Te.readability=function(e,t){var n=Te(e),r=Te(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Te.isReadable=function(e,t,n){var r,i,o=Te.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},Te.mostReadable=function(e,t,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;cl&&(l=r,s=Te(t[c]));return Te.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,Te.mostReadable(e,["#fff","#000"],n))};var Qe=Te.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},et=Te.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(Qe);function tt(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function nt(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function rt(e){return Math.min(1,Math.max(0,e))}function it(e){return parseInt(e,16)}function ot(e){return 1==e.length?"0"+e:""+e}function at(e){return e<=1&&(e=100*e+"%"),e}function st(e){return Math.round(255*parseFloat(e)).toString(16)}function lt(e){return it(e)/255}var ct,ut,dt,ft=(ut="[\\s|\\(]+("+(ct="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+ct+")[,|\\s]+("+ct+")\\s*\\)?",dt="[\\s|\\(]+("+ct+")[,|\\s]+("+ct+")[,|\\s]+("+ct+")[,|\\s]+("+ct+")\\s*\\)?",{CSS_UNIT:new RegExp(ct),rgb:new RegExp("rgb"+ut),rgba:new RegExp("rgba"+dt),hsl:new RegExp("hsl"+ut),hsla:new RegExp("hsla"+dt),hsv:new RegExp("hsv"+ut),hsva:new RegExp("hsva"+dt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function ht(e){return!!ft.CSS_UNIT.exec(e)}var pt=function(e){var t=0,n=0;return Ze()(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e},mt=function(e,t){var n=e.hex?Te(e.hex):Te(e),r=n.toHsl(),i=n.toHsv(),o=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===a&&0===o.a?"transparent":"#".concat(a),rgb:o,hsv:i,oldHue:e.h||t||r.h,source:e.source}};function gt(e){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gt(e)}function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t-1)){var i=t.getArrowOffset(),o=38===e.keyCode?r+i:r-i;t.setUpdatedValue(o,e)}},t.handleDrag=function(e){if(t.props.dragLabel){var n=Math.round(t.props.value+e.movementX);n>=0&&n<=t.props.dragMax&&t.props.onChange&&t.props.onChange(t.getValueObjectWithLabel(n),e)}},t.handleMouseDown=function(e){t.props.dragLabel&&(e.preventDefault(),t.handleDrag(e),window.addEventListener("mousemove",t.handleDrag),window.addEventListener("mouseup",t.handleMouseUp))},t.handleMouseUp=function(){t.unbindEventListeners()},t.unbindEventListeners=function(){window.removeEventListener("mousemove",t.handleDrag),window.removeEventListener("mouseup",t.handleMouseUp)},t.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},t.inputId="rc-editable-input-".concat(Tt++),t}return t=o,n=[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return(t=Ot(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,D.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return f.createElement("div",{style:t.wrap},f.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?f.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}],n&&It(t.prototype,n),r&&It(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(f.PureComponent||f.Component),$t=Bt;function Dt(e){return Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dt(e)}function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){Ht(i,n);var r=Ut(i);function i(){var e;zt(this,i);for(var t=arguments.length,n=new Array(t),o=0;o100&&(e.a=100),e.a/=100,null==t||t({h:null==r?void 0:r.h,s:null==r?void 0:r.s,l:null==r?void 0:r.l,a:e.a,source:"rgb"},i))};return f.createElement("div",{style:a.fields,className:"flexbox-fix"},f.createElement("div",{style:a.double},f.createElement($t,{style:{input:a.input,label:a.label},label:"hex",value:null==i?void 0:i.replace("#",""),onChange:s})),f.createElement("div",{style:a.single},f.createElement($t,{style:{input:a.input,label:a.label},label:"r",value:null==n?void 0:n.r,onChange:s,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:a.single},f.createElement($t,{style:{input:a.input,label:a.label},label:"g",value:null==n?void 0:n.g,onChange:s,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:a.single},f.createElement($t,{style:{input:a.input,label:a.label},label:"b",value:null==n?void 0:n.b,onChange:s,dragLabel:"true",dragMax:"255"})),f.createElement("div",{style:a.alpha},f.createElement($t,{style:{input:a.input,label:a.label},label:"a",value:Math.round(100*((null==n?void 0:n.a)||0)),onChange:s,dragLabel:"true",dragMax:"100"})))};function nn(e){return nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nn(e)}function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function on(e){for(var t=1;t-1}var _n=function(e,t){var i=e.text,o=e.mode,a=e.render,s=e.renderFormItem,l=e.fieldProps,c=e.old,u=(0,f.useContext)(v.ZP.ConfigContext).getPrefixCls,d=f.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if((void 0===e||!1===e)&&wn()){return n(25246).ColorPicker}return bn}(c)}),[c]),h=u("pro-field-color-picker"),p=(0,f.useMemo)((function(){return c?"":w()((0,M.Z)({},h,wn()))}),[h,c]);if("read"===o){var m=(0,x.jsx)(d,{value:i,mode:"read",ref:t,className:p,open:!1});return a?a(i,(0,r.Z)({mode:o},l),m):m}if("edit"===o||"update"===o){var g=(0,r.Z)({display:"table-cell"},l.style),b=(0,x.jsx)(d,(0,r.Z)((0,r.Z)({ref:t,presets:[yn]},l),{},{style:g,className:p}));return s?s(i,(0,r.Z)((0,r.Z)({mode:o},l),{},{style:g}),b):b}return null},xn=f.forwardRef(_n),kn=n(27484),Sn=n.n(kn),Cn=n(10285),Mn=n.n(Cn),En=n(74763);Sn().extend(Mn());var An=function(e){return!(null==e||!e._isAMomentObject)},In=function e(t,n){return(0,En.k)(t)||Sn().isDayjs(t)||An(t)?An(t)?Sn()(t):t:Array.isArray(t)?t.map((function(t){return e(t,n)})):"number"==typeof t?Sn()(t):Sn()(t,n)},On=n(91111),jn=n(55183),Zn=n.n(jn);Sn().extend(Zn());var Rn=function(e,t){var n=e.text,i=e.mode,o=e.format,s=e.label,l=e.light,c=e.render,u=e.renderFormItem,d=e.plain,p=e.showTime,m=e.fieldProps,v=e.picker,b=e.bordered,y=e.lightLabel,w=(0,a.YB)(),_=(0,f.useState)(!1),k=(0,h.Z)(_,2),S=k[0],C=k[1];if("read"===i){var M=function(e,t){return e?"function"==typeof t?t(Sn()(e)):Sn()(e).format((Array.isArray(t)?t[0]:t)||"YYYY-MM-DD"):"-"}(n,m.format||o);return c?c(n,(0,r.Z)({mode:i},m),(0,x.jsx)(x.Fragment,{children:M})):(0,x.jsx)(x.Fragment,{children:M})}if("edit"===i||"update"===i){var E,A=m.disabled,I=m.value,O=m.placeholder,j=void 0===O?w.getMessage("tableForm.selectPlaceholder","请选择"):O,Z=In(I);return E=l?(0,x.jsx)(g.Q,{label:s,onClick:function(){var e;null==m||null===(e=m.onOpenChange)||void 0===e||e.call(m,!0),C(!0)},style:Z?{paddingInlineEnd:0}:void 0,disabled:A,value:Z||S?(0,x.jsx)(On.default,(0,r.Z)((0,r.Z)({picker:v,showTime:p,format:o,ref:t},m),{},{value:Z,onOpenChange:function(e){var t;C(e),null==m||null===(t=m.onOpenChange)||void 0===t||t.call(m,e)},bordered:!1,open:S})):void 0,allowClear:!1,downIcon:!Z&&!S&&void 0,bordered:b,ref:y}):(0,x.jsx)(On.default,(0,r.Z)((0,r.Z)({picker:v,showTime:p,format:o,placeholder:j,bordered:void 0===d||!d,ref:t},m),{},{value:Z})),u?u(n,(0,r.Z)({mode:i},m),E):E}return null},Nn=f.forwardRef(Rn),Pn=n(48928),Tn=n(97435),Bn=function(e,t){var n=e.text,i=e.mode,o=e.render,s=e.placeholder,l=e.renderFormItem,c=e.fieldProps,u=(0,a.YB)(),d=s||u.getMessage("tableForm.inputPlaceholder","请输入"),h=(0,f.useCallback)((function(e){var t=null!=e?e:void 0;return c.stringMode||"string"!=typeof t||(t=Number(t)),"number"!=typeof t||(0,En.k)(t)||(0,En.k)(c.precision)||(t=Number(t.toFixed(c.precision))),t}),[c]);if("read"===i){var p,m={};null!=c&&c.precision&&(m={minimumFractionDigits:Number(c.precision),maximumFractionDigits:Number(c.precision)});var g=new Intl.NumberFormat(void 0,(0,r.Z)((0,r.Z)({},m),(null==c?void 0:c.intlProps)||{})).format(Number(n)),v=(0,x.jsx)("span",{ref:t,children:(null==c||null===(p=c.formatter)||void 0===p?void 0:p.call(c,g))||g});return o?o(n,(0,r.Z)({mode:i},c),v):v}if("edit"===i||"update"===i){var b=(0,x.jsx)(Pn.Z,(0,r.Z)((0,r.Z)({ref:t,min:0,placeholder:d},(0,Tn.Z)(c,["onChange","onBlur"])),{},{onChange:function(e){var t;return null==c||null===(t=c.onChange)||void 0===t?void 0:t.call(c,h(e))},onBlur:function(e){var t;return null==c||null===(t=c.onBlur)||void 0===t?void 0:t.call(c,h(e.target.value))}}));return l?l(n,(0,r.Z)({mode:i},c),b):b}return null},$n=f.forwardRef(Bn),Dn=n(74902),Ln=n(42075),zn=function(e,t){var n=e.text,i=e.mode,o=e.render,s=e.placeholder,l=e.renderFormItem,c=e.fieldProps,u=e.separator,d=void 0===u?"~":u,f=e.separatorWidth,p=void 0===f?30:f,m=c.value,g=c.defaultValue,v=c.onChange,b=c.id,y=(0,a.YB)(),w=E.Ow.useToken().token,_=(0,mn.Z)((function(){return g}),{value:m,onChange:v}),k=(0,h.Z)(_,2),S=k[0],C=k[1];if("read"===i){var M=function(e){var t,n=new Intl.NumberFormat(void 0,(0,r.Z)({minimumSignificantDigits:2},(null==c?void 0:c.intlProps)||{})).format(Number(e));return(null==c||null===(t=c.formatter)||void 0===t?void 0:t.call(c,n))||n},A=(0,x.jsxs)("span",{ref:t,children:[M(n[0])," ",d," ",M(n[1])]});return o?o(n,(0,r.Z)({mode:i},c),A):A}if("edit"===i||"update"===i){var I=function(e,t){var n=(0,Dn.Z)(S||[]);n[e]=null===t?void 0:t,C(n)},O=(null==c?void 0:c.placeholder)||s||[y.getMessage("tableForm.inputPlaceholder","请输入"),y.getMessage("tableForm.inputPlaceholder","请输入")],j=function(e){return Array.isArray(O)?O[e]:O},Z=Ln.Z.Compact||N.Z.Group,R=Ln.Z.Compact?{}:{compact:!0},P=(0,x.jsxs)(Z,(0,r.Z)((0,r.Z)({},R),{},{onBlur:function(){if(Array.isArray(S)){var e=(0,h.Z)(S,2),t=e[0],n=e[1];"number"==typeof t&&"number"==typeof n&&t>n?C([n,t]):void 0===t&&void 0===n&&C(void 0)}},children:[(0,x.jsx)(Pn.Z,(0,r.Z)((0,r.Z)({},c),{},{placeholder:j(0),id:null!=b?b:"".concat(b,"-0"),style:{width:"calc((100% - ".concat(p,"px) / 2)")},value:null==S?void 0:S[0],defaultValue:null==g?void 0:g[0],onChange:function(e){return I(0,e)}})),(0,x.jsx)(N.Z,{style:{width:p,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:null==w?void 0:w.colorBgContainer},placeholder:d,disabled:!0}),(0,x.jsx)(Pn.Z,(0,r.Z)((0,r.Z)({},c),{},{placeholder:j(1),id:null!=b?b:"".concat(b,"-1"),style:{width:"calc((100% - ".concat(p,"px) / 2)"),borderInlineStart:0},value:null==S?void 0:S[1],defaultValue:null==g?void 0:g[1],onChange:function(e){return I(1,e)}}))]}));return l?l(n,(0,r.Z)({mode:i},c),P):P}return null},Fn=f.forwardRef(zn),Wn=n(83062),Hn=n(84110),Vn=n.n(Hn);Sn().extend(Vn());var Un=function(e,t){var n=e.text,i=e.mode,o=e.render,s=e.renderFormItem,l=e.format,c=e.fieldProps,u=(0,a.YB)();if("read"===i){var d=(0,x.jsx)(Wn.Z,{title:Sn()(n).format((null==c?void 0:c.format)||l||"YYYY-MM-DD HH:mm:ss"),children:Sn()(n).fromNow()});return o?o(n,(0,r.Z)({mode:i},c),(0,x.jsx)(x.Fragment,{children:d})):(0,x.jsx)(x.Fragment,{children:d})}if("edit"===i||"update"===i){var f=u.getMessage("tableForm.selectPlaceholder","请选择"),h=In(c.value),p=(0,x.jsx)(On.default,(0,r.Z)((0,r.Z)({ref:t,placeholder:f,showTime:!0},c),{},{value:h}));return s?s(n,(0,r.Z)({mode:i},c),p):p}return null},Yn=f.forwardRef(Un),Gn=n(99021),qn=f.forwardRef((function(e,t){var n=e.text,i=e.mode,o=e.render,s=e.renderFormItem,l=e.fieldProps,c=e.placeholder,u=e.width,d=(0,a.YB)(),f=c||d.getMessage("tableForm.inputPlaceholder","请输入");if("read"===i){var h=(0,x.jsx)(Gn.Z,(0,r.Z)({ref:t,width:u||32,src:n},l));return o?o(n,(0,r.Z)({mode:i},l),h):h}if("edit"===i||"update"===i){var p=(0,x.jsx)(N.Z,(0,r.Z)({ref:t,placeholder:f},l));return s?s(n,(0,r.Z)({mode:i},l),p):p}return null})),Xn=qn,Kn=function(e,t){var n,r=e.border,i=void 0!==r&&r,o=e.children,a=(0,(0,f.useContext)(v.ZP.ConfigContext).getPrefixCls)("pro-field-index-column"),s=(0,E.Xj)("IndexColumn",(function(){return(0,M.Z)({},".".concat(a),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})})),l=s.wrapSSR,c=s.hashId;return l((0,x.jsx)("div",{ref:t,className:w()(a,c,(n={},(0,M.Z)(n,"".concat(a,"-border"),i),(0,M.Z)(n,"top-three",o>3),n)),children:o}))},Jn=f.forwardRef(Kn),Qn=n(32818),er=n(73177),tr=["contentRender","numberFormatOptions","numberPopoverRender","open"],nr=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],rr=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),ir={default:rr,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":{style:"currency",currency:"USD"},"ru-RU":{style:"currency",currency:"RUB"},"ms-MY":{style:"currency",currency:"MYR"},"sr-RS":{style:"currency",currency:"RSD"},"pt-BR":{style:"currency",currency:"BRL"}},or=function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=null==t?void 0:t.toString().replaceAll(",","");if("string"==typeof a){var s=Number(a);if(Number.isNaN(s))return a;a=s}if(!a&&0!==a)return"";var l=!1;try{l=!1!==e&&Intl.NumberFormat.supportedLocalesOf([e.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch(e){}try{var c=new Intl.NumberFormat(l&&!1!==e&&(null==e?void 0:e.replace("_","-"))||"zh-Hans-CN",(0,r.Z)((0,r.Z)({},ir[e||"zh-Hans-CN"]||rr),{},{maximumFractionDigits:n},i)).format(a),u=!1===e,d=c||"",f=(0,h.Z)(d,1),p=f[0];return["+","-"].includes(p)?"".concat(o||"").concat(p).concat(c.substring(u?2:1)):"".concat(o||"").concat(c.substring(u?1:0))}catch(e){return a}},ar=f.forwardRef((function(e,t){var n=e.contentRender,o=(e.numberFormatOptions,e.numberPopoverRender,e.open),a=(0,i.Z)(e,tr),s=(0,mn.Z)((function(){return a.defaultValue}),{value:a.value,onChange:a.onChange}),l=(0,h.Z)(s,2),c=l[0],u=l[1],d=null==n?void 0:n((0,r.Z)((0,r.Z)({},a),{},{value:c})),f=(0,er.X)(!!d&&o);return(0,x.jsx)(pn.Z,(0,r.Z)((0,r.Z)({placement:"topLeft"},f),{},{trigger:["focus","click"],content:d,getPopupContainer:function(e){return(null==e?void 0:e.parentElement)||document.body},children:(0,x.jsx)(Pn.Z,(0,r.Z)((0,r.Z)({ref:t},a),{},{value:c,onChange:u}))}))})),sr=function(e,t){var n,o=e.text,s=e.mode,l=e.render,c=e.renderFormItem,u=e.fieldProps,d=(e.proFieldKey,e.plain,e.valueEnum,e.placeholder),p=e.locale,m=e.customSymbol,g=void 0===m?u.customSymbol:m,v=e.numberFormatOptions,b=void 0===v?null==u?void 0:u.numberFormatOptions:v,y=e.numberPopoverRender,w=void 0===y?(null==u?void 0:u.numberPopoverRender)||!1:y,_=(0,i.Z)(e,nr),k=null!==(n=null==u?void 0:u.precision)&&void 0!==n?n:2,S=(0,a.YB)();p&&Qn.Go[p]&&(S=Qn.Go[p]);var C=d||S.getMessage("tableForm.inputPlaceholder","请输入"),M=(0,f.useMemo)((function(){return g||(!1!==_.moneySymbol&&!1!==u.moneySymbol?S.getMessage("moneySymbol","¥"):void 0)}),[g,u.moneySymbol,S,_.moneySymbol]),E=(0,f.useCallback)((function(e){var t=new RegExp("\\B(?=(\\d{".concat(3+Math.max(k-2,0),"})+(?!\\d))"),"g"),n=String(e).split("."),r=(0,h.Z)(n,2),i=r[0],o=r[1],a=i.replace(t,","),s="";return o&&k>0&&(s=".".concat(o.slice(0,void 0===k?2:k))),"".concat(a).concat(s)}),[k]);if("read"===s){var A=(0,x.jsx)("span",{ref:t,children:or(p||!1,o,k,null!=b?b:u.numberFormatOptions,M)});return l?l(o,(0,r.Z)({mode:s},u),A):A}if("edit"===s||"update"===s){var I=(0,x.jsx)(ar,(0,r.Z)((0,r.Z)({contentRender:function(e){if(!1===w)return null;if(!e.value)return null;var t=or(M||p||!1,"".concat(E(e.value)),k,(0,r.Z)((0,r.Z)({},b),{},{notation:"compact"}),M);return"function"==typeof w?null==w?void 0:w(e,t):t},ref:t,precision:k,formatter:function(e){return e&&M?"".concat(M," ").concat(E(e)):null==e?void 0:e.toString()},parser:function(e){return M&&e?e.replace(new RegExp("\\".concat(M,"\\s?|(,*)"),"g"),""):e},placeholder:C},(0,Tn.Z)(u,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:u.onBlur?function(e){var t,n=e.target.value;M&&n&&(n=n.replace(new RegExp("\\".concat(M,"\\s?|(,*)"),"g"),"")),null===(t=u.onBlur)||void 0===t||t.call(u,n)}:void 0}));return c?c(o,(0,r.Z)({mode:s},u),I):I}return null},lr=f.forwardRef(sr),cr=function(e){return e.map((function(e,t){var n;return f.isValidElement(e)?f.cloneElement(e,(0,r.Z)((0,r.Z)({key:t},null==e?void 0:e.props),{},{style:(0,r.Z)({},null==e||null===(n=e.props)||void 0===n?void 0:n.style)})):(0,x.jsx)(f.Fragment,{children:e},t)}))},ur=function(e,t){var n=e.text,i=e.mode,o=e.render,a=e.fieldProps,s=(0,(0,f.useContext)(v.ZP.ConfigContext).getPrefixCls)("pro-field-option"),l=E.Ow.useToken().token;if((0,f.useImperativeHandle)(t,(function(){return{}})),o){var c=o(n,(0,r.Z)({mode:i},a),(0,x.jsx)(x.Fragment,{}));return!c||(null==c?void 0:c.length)<1||!Array.isArray(c)?null:(0,x.jsx)("div",{style:{display:"flex",gap:l.margin,alignItems:"center"},className:s,children:cr(c)})}return n&&Array.isArray(n)?(0,x.jsx)("div",{style:{display:"flex",gap:l.margin,alignItems:"center"},className:s,children:cr(n)}):f.isValidElement(n)?n:null},dr=f.forwardRef(ur),fr=n(99611),hr=n(90420),pr=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],mr=function(e,t){var n=e.text,o=e.mode,s=e.render,l=e.renderFormItem,c=e.fieldProps,u=(e.proFieldKey,(0,i.Z)(e,pr)),d=(0,a.YB)(),f=(0,mn.Z)((function(){return u.open||u.visible||!1}),{value:u.open||u.visible,onChange:u.onOpenChange||u.onVisible}),p=(0,h.Z)(f,2),m=p[0],g=p[1];if("read"===o){var v=(0,x.jsx)(x.Fragment,{children:"-"});return n&&(v=(0,x.jsxs)(Ln.Z,{children:[(0,x.jsx)("span",{ref:t,children:m?n:"********"}),(0,x.jsx)("a",{onClick:function(){return g(!m)},children:m?(0,x.jsx)(fr.Z,{}):(0,x.jsx)(hr.Z,{})})]})),s?s(n,(0,r.Z)({mode:o},c),v):v}if("edit"===o||"update"===o){var b=(0,x.jsx)(N.Z.Password,(0,r.Z)({placeholder:d.getMessage("tableForm.inputPlaceholder","请输入"),ref:t},c));return l?l(n,(0,r.Z)({mode:o},c),b):b}return null},gr=f.forwardRef(mr),vr=n(49323),br=n.n(vr);function yr(e){return 0===e?null:e>0?"+":"-"}function wr(e){return 0===e?"#595959":e>0?"#ff4d4f":"#52c41a"}function _r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return t>=0?null==e?void 0:e.toFixed(t):e}var xr=function(e,t){var n=e.text,i=e.prefix,o=e.precision,s=e.suffix,l=void 0===s?"%":s,c=e.mode,u=e.showColor,d=void 0!==u&&u,h=e.render,p=e.renderFormItem,m=e.fieldProps,g=e.placeholder,v=e.showSymbol,b=(0,a.YB)(),y=g||b.getMessage("tableForm.inputPlaceholder","请输入"),w=(0,f.useMemo)((function(){return"string"==typeof n&&n.includes("%")?br()(n.replace("%","")):br()(n)}),[n]),_=(0,f.useMemo)((function(){return"function"==typeof v?null==v?void 0:v(n):v}),[v,n]);if("read"===c){var k=d?{color:wr(w)}:{},S=(0,x.jsxs)("span",{style:k,ref:t,children:[i&&(0,x.jsx)("span",{children:i}),_&&(0,x.jsxs)(f.Fragment,{children:[yr(w)," "]}),_r(Math.abs(w),o),l&&l]});return h?h(n,(0,r.Z)((0,r.Z)({mode:c},m),{},{prefix:i,precision:o,showSymbol:_,suffix:l}),S):S}if("edit"===c||"update"===c){var C=(0,x.jsx)(Pn.Z,(0,r.Z)({ref:t,formatter:function(e){return e&&i?"".concat(i," ").concat(e).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):e},parser:function(e){return e?e.replace(/.*\s|,/g,""):""},placeholder:y},m));return p?p(n,(0,r.Z)({mode:c},m),C):C}return null},kr=f.forwardRef(xr),Sr=n(38703);function Cr(e){return 100===e?"success":e<0?"exception":e<100?"active":"normal"}var Mr=function(e,t){var n=e.text,i=e.mode,o=e.render,s=e.plain,l=e.renderFormItem,c=e.fieldProps,u=e.placeholder,d=(0,a.YB)(),h=u||d.getMessage("tableForm.inputPlaceholder","请输入"),p=(0,f.useMemo)((function(){return"string"==typeof n&&n.includes("%")?br()(n.replace("%","")):br()(n)}),[n]);if("read"===i){var m=(0,x.jsx)(Sr.Z,(0,r.Z)({ref:t,size:"small",style:{minWidth:100,maxWidth:320},percent:p,steps:s?10:void 0,status:Cr(p)},c));return o?o(p,(0,r.Z)({mode:i},c),m):m}if("edit"===i||"update"===i){var g=(0,x.jsx)(Pn.Z,(0,r.Z)({ref:t,placeholder:h},c));return l?l(n,(0,r.Z)({mode:i},c),g):g}return null},Er=f.forwardRef(Mr),Ar=n(55742),Ir=["radioType","renderFormItem","mode","render"],Or=function(e,t){var n,o,a=e.radioType,s=e.renderFormItem,l=e.mode,c=e.render,u=(0,i.Z)(e,Ir),d=(0,(0,f.useContext)(v.ZP.ConfigContext).getPrefixCls)("pro-field-radio"),p=(0,_.aK)(u),g=(0,h.Z)(p,3),b=g[0],y=g[1],k=g[2],S=(0,f.useRef)(),C=null===(n=A.Z.Item)||void 0===n||null===(o=n.useStatus)||void 0===o?void 0:o.call(n);(0,f.useImperativeHandle)(t,(function(){return(0,r.Z)((0,r.Z)({},S.current||{}),{},{fetchData:function(e){return k(e)}})}),[k]);var O=(0,E.Xj)("FieldRadioRadio",(function(e){var t;return t={},(0,M.Z)(t,".".concat(d,"-error"),{span:{color:e.colorError}}),(0,M.Z)(t,".".concat(d,"-warning"),{span:{color:e.colorWarning}}),(0,M.Z)(t,".".concat(d,"-vertical"),(0,M.Z)({},"".concat(e.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0})),t})),j=O.wrapSSR,Z=O.hashId;if(b)return(0,x.jsx)(I.Z,{size:"small"});if("read"===l){var R,N=null!=y&&y.length?null==y?void 0:y.reduce((function(e,t){var n;return(0,r.Z)((0,r.Z)({},e),{},(0,M.Z)({},null!==(n=t.value)&&void 0!==n?n:"",t.label))}),{}):void 0,P=(0,x.jsx)(x.Fragment,{children:(0,m.MP)(u.text,(0,m.R6)(u.valueEnum||N))});return c?null!==(R=c(u.text,(0,r.Z)({mode:l},u.fieldProps),P))&&void 0!==R?R:null:P}if("edit"===l){var T,B,$,D=j((0,x.jsx)(Ar.ZP.Group,(0,r.Z)((0,r.Z)({ref:S,optionType:a},u.fieldProps),{},{className:w()(null===(T=u.fieldProps)||void 0===T?void 0:T.className,(B={},(0,M.Z)(B,"".concat(d,"-error"),"error"===(null==C?void 0:C.status)),(0,M.Z)(B,"".concat(d,"-warning"),"warning"===(null==C?void 0:C.status)),B),Z,"".concat(d,"-").concat(u.fieldProps.layout||"horizontal")),options:y})));return s?null!==($=s(u.text,(0,r.Z)((0,r.Z)({mode:l},u.fieldProps),{},{options:y,loading:b}),D))&&void 0!==$?$:null:D}return null},jr=f.forwardRef(Or),Zr=function(e,t){var n=e.text,i=e.mode,o=e.light,s=e.label,l=e.format,c=e.render,u=e.picker,d=e.renderFormItem,p=e.plain,m=e.showTime,v=e.lightLabel,b=e.bordered,y=e.fieldProps,w=(0,a.YB)(),_=Array.isArray(n)?n:[],k=(0,h.Z)(_,2),S=k[0],C=k[1],M=f.useState(!1),E=(0,h.Z)(M,2),A=E[0],I=E[1],O=(0,f.useCallback)((function(e){var t;return"function"==typeof(null==y?void 0:y.format)?null==y||null===(t=y.format)||void 0===t?void 0:t.call(y,e):(null==y?void 0:y.format)||l||"YYYY-MM-DD"}),[y,l]),j=S?Sn()(S).format(O(Sn()(S))):"",Z=C?Sn()(C).format(O(Sn()(C))):"";if("read"===i){var R=(0,x.jsxs)("div",{ref:t,children:[(0,x.jsx)("div",{children:j||"-"}),(0,x.jsx)("div",{children:Z||"-"})]});return c?c(n,(0,r.Z)({mode:i},y),(0,x.jsx)("span",{children:R})):R}if("edit"===i||"update"===i){var N,P,T=In(y.value);if(o)N=(0,x.jsx)(g.Q,{label:s,onClick:function(){var e;null==y||null===(e=y.onOpenChange)||void 0===e||e.call(y,!0),I(!0)},style:T?{paddingInlineEnd:0}:void 0,disabled:y.disabled,value:T||A?(0,x.jsx)(On.default.RangePicker,(0,r.Z)((0,r.Z)({picker:u,showTime:m,format:l,bordered:!1},y),{},{placeholder:null!==(P=y.placeholder)&&void 0!==P?P:[w.getMessage("tableForm.selectPlaceholder","请选择"),w.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var e;I(!1),null==y||null===(e=y.onClear)||void 0===e||e.call(y)},value:T,onOpenChange:function(e){var t;T&&I(e),null==y||null===(t=y.onOpenChange)||void 0===t||t.call(y,e)}})):null,allowClear:!1,bordered:b,ref:v,downIcon:!T&&!A&&void 0});else N=(0,x.jsx)(On.default.RangePicker,(0,r.Z)((0,r.Z)({ref:t,format:l,showTime:m,placeholder:[w.getMessage("tableForm.selectPlaceholder","请选择"),w.getMessage("tableForm.selectPlaceholder","请选择")],bordered:void 0===p},y),{},{value:T}));return d?d(n,(0,r.Z)({mode:i},y),N):N}return null},Rr=f.forwardRef(Zr),Nr=n(59606),Pr=function(e,t){var n=e.text,i=e.mode,o=e.render,a=e.renderFormItem,s=e.fieldProps;if("read"===i){var l=(0,x.jsx)(Nr.Z,(0,r.Z)((0,r.Z)({allowHalf:!0,disabled:!0,ref:t},s),{},{value:n}));return o?o(n,(0,r.Z)({mode:i},s),(0,x.jsx)(x.Fragment,{children:l})):l}if("edit"===i||"update"===i){var c=(0,x.jsx)(Nr.Z,(0,r.Z)({allowHalf:!0,ref:t},s));return a?a(n,(0,r.Z)({mode:i},s),c):c}return null},Tr=f.forwardRef(Pr);var Br=function(e,t){var n,i,o,s,l,c,u=e.text,d=e.mode,f=e.render,h=e.renderFormItem,p=e.fieldProps,m=e.placeholder,g=(0,a.YB)(),v=m||g.getMessage("tableForm.inputPlaceholder","请输入");if("read"===d){var b=(n=Number(u),i="",o=Math.floor(n/86400),s=Math.floor(n/3600),l=Math.floor(n/60%60),c=Math.floor(n%60),i="".concat(c,"秒"),l>0&&(i="".concat(l,"分钟").concat(i)),s>0&&(i="".concat(s,"小时").concat(i)),o>0&&(i="".concat(o,"天").concat(i)),i),y=(0,x.jsx)("span",{ref:t,children:b});return f?f(u,(0,r.Z)({mode:d},p),y):y}if("edit"===d||"update"===d){var w=(0,x.jsx)(Pn.Z,(0,r.Z)({ref:t,min:0,style:{width:"100%"},placeholder:v},p));return h?h(u,(0,r.Z)({mode:d},p),w):w}return null},$r=f.forwardRef(Br),Dr=n(92783),Lr=["mode","render","renderFormItem","fieldProps","emptyText"],zr=function(e,t){var n=e.mode,o=e.render,a=e.renderFormItem,s=e.fieldProps,l=e.emptyText,c=void 0===l?"-":l,u=(0,i.Z)(e,Lr),d=(0,f.useRef)(),p=(0,_.aK)(u),g=(0,h.Z)(p,3),v=g[0],b=g[1],y=g[2];if((0,f.useImperativeHandle)(t,(function(){return(0,r.Z)((0,r.Z)({},d.current||{}),{},{fetchData:function(e){return y(e)}})}),[y]),v)return(0,x.jsx)(I.Z,{size:"small"});if("read"===n){var w,k=null!=b&&b.length?null==b?void 0:b.reduce((function(e,t){var n;return(0,r.Z)((0,r.Z)({},e),{},(0,M.Z)({},null!==(n=t.value)&&void 0!==n?n:"",t.label))}),{}):void 0,S=(0,x.jsx)(x.Fragment,{children:(0,m.MP)(u.text,(0,m.R6)(u.valueEnum||k))});return o?null!==(w=o(u.text,(0,r.Z)({mode:n},s),(0,x.jsx)(x.Fragment,{children:S})))&&void 0!==w?w:c:S}if("edit"===n||"update"===n){var C=(0,x.jsx)(Dr.Z,(0,r.Z)((0,r.Z)({ref:d},(0,Tn.Z)(s||{},["allowClear"])),{},{options:b}));return a?a(u.text,(0,r.Z)((0,r.Z)({mode:n},s),{},{options:b,loading:v}),C):C}return null},Fr=f.forwardRef(zr),Wr=n(71338),Hr=function(e,t){var n=e.text,i=e.mode,o=e.render,a=e.renderFormItem,s=e.fieldProps;if("read"===i){var l=n;return o?o(n,(0,r.Z)({mode:i},s),(0,x.jsx)(x.Fragment,{children:l})):(0,x.jsx)(x.Fragment,{children:l})}if("edit"===i||"update"===i){var c=(0,x.jsx)(Wr.Z,(0,r.Z)((0,r.Z)({ref:t},s),{},{style:(0,r.Z)({minWidth:120},null==s?void 0:s.style)}));return a?a(n,(0,r.Z)({mode:i},s),c):c}return null},Vr=f.forwardRef(Hr),Ur=n(72269),Yr=function(e,t){var n=e.text,i=e.mode,o=e.render,s=e.light,l=e.label,c=e.renderFormItem,u=e.fieldProps,d=(0,a.YB)(),h=(0,f.useMemo)((function(){var e,t;return null==n||"".concat(n).length<1?"-":n?null!==(e=null==u?void 0:u.checkedChildren)&&void 0!==e?e:d.getMessage("switch.open","打开"):null!==(t=null==u?void 0:u.unCheckedChildren)&&void 0!==t?t:d.getMessage("switch.close","关闭")}),[null==u?void 0:u.checkedChildren,null==u?void 0:u.unCheckedChildren,n]);if("read"===i)return o?o(n,(0,r.Z)({mode:i},u),(0,x.jsx)(x.Fragment,{children:h})):null!=h?h:"-";if("edit"===i||"update"===i){var p,m=(0,x.jsx)(Ur.Z,(0,r.Z)((0,r.Z)({ref:t,size:s?"small":void 0},(0,Tn.Z)(u,["value"])),{},{checked:null!==(p=null==u?void 0:u.checked)&&void 0!==p?p:null==u?void 0:u.value}));if(s){var v=u.disabled,b=u.bordered;return(0,x.jsx)(g.Q,{label:l,disabled:v,bordered:b,downIcon:!1,value:(0,x.jsx)("div",{style:{paddingLeft:8},children:m}),allowClear:!1})}return c?c(n,(0,r.Z)({mode:i},u),m):m}return null},Gr=f.forwardRef(Yr),qr=function(e,t){var n=e.text,i=e.mode,o=e.render,s=e.renderFormItem,l=e.fieldProps,c=e.emptyText,u=void 0===c?"-":c,d=l||{},h=d.autoFocus,p=d.prefix,m=void 0===p?"":p,g=d.suffix,v=void 0===g?"":g,b=(0,a.YB)(),y=(0,f.useRef)();if((0,f.useImperativeHandle)(t,(function(){return y.current}),[]),(0,f.useEffect)((function(){var e;h&&(null===(e=y.current)||void 0===e||e.focus())}),[h]),"read"===i){var w,_=(0,x.jsxs)(x.Fragment,{children:[m,null!=n?n:u,v]});return o?null!==(w=o(n,(0,r.Z)({mode:i},l),_))&&void 0!==w?w:u:_}if("edit"===i||"update"===i){var k=b.getMessage("tableForm.inputPlaceholder","请输入"),S=(0,x.jsx)(N.Z,(0,r.Z)({ref:y,placeholder:k,allowClear:!0},l));return s?s(n,(0,r.Z)({mode:i},l),S):S}return null},Xr=f.forwardRef(qr),Kr=function(e,t){var n=e.text,r=(0,(0,f.useContext)(v.ZP.ConfigContext).getPrefixCls)("pro-field-readonly"),i="".concat(r,"-textarea"),o=(0,E.Xj)("TextArea",(function(){return(0,M.Z)({},".".concat(i),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})})),a=o.wrapSSR,s=o.hashId;return a((0,x.jsx)("span",{ref:t,className:w()(s,r,i),style:{},children:null!=n?n:"-"}))},Jr=f.forwardRef(Kr),Qr=function(e,t){var n=e.text,i=e.mode,o=e.render,s=e.renderFormItem,l=e.fieldProps,c=(0,a.YB)();if("read"===i){var u=(0,x.jsx)(Jr,(0,r.Z)((0,r.Z)({},e),{},{ref:t}));return o?o(n,(0,r.Z)({mode:i},l),u):u}if("edit"===i||"update"===i){var d=(0,x.jsx)(N.Z.TextArea,(0,r.Z)({ref:t,rows:3,onKeyPress:function(e){"Enter"===e.key&&e.stopPropagation()},placeholder:c.getMessage("tableForm.inputPlaceholder","请输入")},l));return s?s(n,(0,r.Z)({mode:i},l),d):d}return null},ei=f.forwardRef(Qr),ti=n(68351),ni=function(e,t){var n=e.text,i=e.mode,o=e.light,s=e.label,l=e.format,c=e.render,u=e.renderFormItem,d=e.plain,p=e.fieldProps,m=e.lightLabel,v=(0,f.useState)(!1),b=(0,h.Z)(v,2),y=b[0],w=b[1],_=(0,a.YB)(),k=(null==p?void 0:p.format)||l||"HH:mm:ss",S=Sn().isDayjs(n)||"number"==typeof n;if("read"===i){var C=(0,x.jsx)("span",{ref:t,children:n?Sn()(n,S?void 0:k).format(k):"-"});return c?c(n,(0,r.Z)({mode:i},p),(0,x.jsx)("span",{children:C})):C}if("edit"===i||"update"===i){var M,E,A=p.disabled,I=p.value,O=In(I,k);if(o)M=(0,x.jsx)(g.Q,{onClick:function(){var e;null==p||null===(e=p.onOpenChange)||void 0===e||e.call(p,!0),w(!0)},style:O?{paddingInlineEnd:0}:void 0,label:s,disabled:A,value:O||y?(0,x.jsx)(ti.Z,(0,r.Z)((0,r.Z)({bordered:!1,format:l,ref:t},p),{},{placeholder:null!==(E=p.placeholder)&&void 0!==E?E:_.getMessage("tableForm.selectPlaceholder","请选择"),value:O,onOpenChange:function(e){var t;w(e),null==p||null===(t=p.onOpenChange)||void 0===t||t.call(p,e)},open:y})):null,downIcon:!O&&!y&&void 0,allowClear:!1,ref:m});else M=(0,x.jsx)(On.default.TimePicker,(0,r.Z)((0,r.Z)({ref:t,format:l,bordered:void 0===d||!d},p),{},{value:O}));return u?u(n,(0,r.Z)({mode:i},p),M):M}return null},ri=function(e,t){var n=e.text,i=e.light,o=e.label,s=e.mode,l=e.lightLabel,c=e.format,u=e.render,d=e.renderFormItem,p=e.plain,m=e.fieldProps,v=(0,a.YB)(),b=(0,f.useState)(!1),y=(0,h.Z)(b,2),w=y[0],_=y[1],k=(null==m?void 0:m.format)||c||"HH:mm:ss",S=Array.isArray(n)?n:[],C=(0,h.Z)(S,2),M=C[0],E=C[1],A=Sn().isDayjs(M)||"number"==typeof M,I=Sn().isDayjs(E)||"number"==typeof E,O=M?Sn()(M,A?void 0:k).format(k):"",j=E?Sn()(E,I?void 0:k).format(k):"";if("read"===s){var Z=(0,x.jsxs)("div",{ref:t,children:[(0,x.jsx)("div",{children:O||"-"}),(0,x.jsx)("div",{children:j||"-"})]});return u?u(n,(0,r.Z)({mode:s},m),(0,x.jsx)("span",{children:Z})):Z}if("edit"===s||"update"===s){var R,N=In(m.value,k);if(i){var P=m.disabled,T=m.placeholder,B=void 0===T?[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")]:T;R=(0,x.jsx)(g.Q,{onClick:function(){var e;null==m||null===(e=m.onOpenChange)||void 0===e||e.call(m,!0),_(!0)},style:N?{paddingInlineEnd:0}:void 0,label:o,disabled:P,placeholder:B,value:N||w?(0,x.jsx)(ti.Z.RangePicker,(0,r.Z)((0,r.Z)({bordered:!1,format:c,ref:t},m),{},{placeholder:B,value:N,onOpenChange:function(e){var t;_(e),null==m||null===(t=m.onOpenChange)||void 0===t||t.call(m,e)},open:w})):null,downIcon:!N&&!w&&void 0,allowClear:!1,ref:l})}else R=(0,x.jsx)(ti.Z.RangePicker,(0,r.Z)((0,r.Z)({ref:t,format:c,bordered:void 0===p||!p},m),{},{value:N}));return d?d(n,(0,r.Z)({mode:s},m),R):R}return null},ii=f.forwardRef(ri),oi=f.forwardRef(ni),ai=n(59847),si=["radioType","renderFormItem","mode","light","label","render"],li=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],ci=function(e,t){e.radioType;var n=e.renderFormItem,o=e.mode,s=e.light,l=e.label,c=e.render,u=(0,i.Z)(e,si),d=(0,(0,f.useContext)(v.ZP.ConfigContext).getPrefixCls)("pro-field-tree-select"),p=(0,f.useRef)(null),b=(0,f.useState)(!1),y=(0,h.Z)(b,2),k=y[0],S=y[1],C=u.fieldProps,M=C.onSearch,E=C.onClear,A=C.onChange,O=C.onBlur,j=C.showSearch,Z=C.autoClearSearchValue,R=(C.treeData,C.fetchDataOnSearch),N=C.searchValue,P=(0,i.Z)(C,li),T=(0,a.YB)(),B=(0,_.aK)((0,r.Z)((0,r.Z)({},u),{},{defaultKeyWords:N})),$=(0,h.Z)(B,3),D=$[0],L=$[1],z=$[2],F=(0,mn.Z)(void 0,{onChange:M,value:N}),W=(0,h.Z)(F,2),H=W[0],V=W[1];(0,f.useImperativeHandle)(t,(function(){return(0,r.Z)((0,r.Z)({},p.current||{}),{},{fetchData:function(e){return z(e)}})}));var U=(0,f.useMemo)((function(){if("read"===o){var e=(null==P?void 0:P.fieldNames)||{},t=e.value,n=void 0===t?"value":t,r=e.label,i=void 0===r?"label":r,a=e.children,s=void 0===a?"children":a,l=new Map;return function e(t){if(null==t||!t.length)return l;for(var r=t.length,o=0;o0&&"read"!==H?(0,O.jsx)("div",{className:"".concat(f,"-action ").concat(z).trim(),children:oe}):null,se={name:L.name,field:k,index:S,record:null==Z||null===(t=Z.getFieldValue)||void 0===t?void 0:t.call(Z,[F.listName,R,k.name].filter((function(e){return void 0!==e})).flat(1)),fields:_,operation:h,meta:x},le=(0,g.zx)().grid,ce=(null==c?void 0:c(te,se))||te,ue=(null==u?void 0:u({listDom:(0,O.jsx)("div",{className:"".concat(f,"-container ").concat(N||""," ").concat(z||"").trim(),style:(0,i.Z)({width:le?"100%":void 0},P),children:ce}),action:ae},se))||(0,O.jsxs)("div",{className:"".concat(f,"-item ").concat(z," \n ").concat(void 0===d&&"".concat(f,"-item-default"),"\n ").concat(d?"".concat(f,"-item-show-label"):""),style:{display:"flex",alignItems:"flex-end"},children:[(0,O.jsx)("div",{className:"".concat(f,"-container ").concat(N||""," ").concat(z).trim(),style:(0,i.Z)({width:le?"100%":void 0},P),children:ce}),ae]});return(0,O.jsx)($.Provider,{value:(0,i.Z)((0,i.Z)({},k),{},{listName:[F.listName,R,k.name].filter((function(e){return void 0!==e})).flat(1)}),children:ue})},R=function(e){var t=(0,l.YB)(),n=e.creatorButtonProps,r=e.prefixCls,o=e.children,a=e.creatorRecord,s=e.action,c=e.fields,u=e.actionGuard,d=e.max,f=e.fieldExtraRender,h=e.meta,p=e.containerClassName,g=e.containerStyle,M=e.onAfterAdd,E=e.onAfterRemove,A=(0,m.useContext)(l.L_).hashId,I=(0,m.useRef)(new Map),j=(0,m.useState)(!1),R=(0,y.Z)(j,2),N=R[0],P=R[1],T=(0,m.useMemo)((function(){return c.map((function(e){var t,n,r;null!==(t=I.current)&&void 0!==t&&t.has(e.key.toString())||(null===(r=I.current)||void 0===r||r.set(e.key.toString(),(0,_.x)()));var o=null===(n=I.current)||void 0===n?void 0:n.get(e.key.toString());return(0,i.Z)((0,i.Z)({},e),{},{uuid:o})}))}),[c]),B=(0,m.useMemo)((function(){var e=(0,i.Z)({},s),t=T.length;return null!=u&&u.beforeAddRow?e.add=(0,b.Z)((0,v.Z)().mark((function e(){var n,r,i,o,a=arguments;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=a.length,r=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},r=e.children,s=e.Wrapper,l=(0,o.Z)(e,u);return t?(0,c.jsx)(a.Z,(0,i.Z)((0,i.Z)((0,i.Z)({gutter:8},n),l),{},{children:r})):s?(0,c.jsx)(s,{children:r}):r},ColWrapper:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.children,a=e.Wrapper,u=(0,o.Z)(e,d),f=(0,l.useMemo)((function(){var e=(0,i.Z)((0,i.Z)({},r),u);return void 0===e.span&&void 0===e.xs&&(e.xs=24),e}),[u]);return t?(0,c.jsx)(s.Z,(0,i.Z)((0,i.Z)({},f),{},{children:n})):a?(0,c.jsx)(a,{children:n}):n}}}({grid:!(!h&&!t.grid),rowProps:null==t?void 0:t.rowProps,colProps:(null==t?void 0:t.colProps)||p,Wrapper:null==t?void 0:t.Wrapper})}),[null==t?void 0:t.Wrapper,t.grid,h,JSON.stringify([p,null==t?void 0:t.colProps,null==t?void 0:t.rowProps])])}},952:function(e,t,n){"use strict";var r=n(97269);t.ZP=r.A},37476:function(e,t,n){"use strict";n.d(t,{Y:function(){return w}});var r=n(74165),i=n(15861),o=n(1413),a=n(97685),s=n(91),l=n(73177),c=n(28459),u=n(85576),d=n(72378),f=n.n(d),h=n(21770),p=n(80334),m=n(62435),g=n(61254),v=n(89671),b=n(86074),y=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function w(e){var t,n,d=e.children,w=e.trigger,_=e.onVisibleChange,x=e.onOpenChange,k=e.modalProps,S=e.onFinish,C=e.submitTimeout,M=e.title,E=e.width,A=e.visible,I=e.open,O=(0,s.Z)(e,y);(0,p.ET)(!O.footer||!(null!=k&&k.footer),"ModalForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");var j=(0,m.useContext)(c.ZP.ConfigContext),Z=(0,m.useState)([]),R=(0,a.Z)(Z,2)[1],N=(0,m.useState)(!1),P=(0,a.Z)(N,2),T=P[0],B=P[1],$=(0,h.Z)(!!A,{value:I||A,onChange:x||_}),D=(0,a.Z)($,2),L=D[0],z=D[1],F=(0,m.useRef)(null),W=(0,m.useCallback)((function(e){null===F.current&&e&&R([]),F.current=e}),[]),H=(0,m.useRef)(),V=(0,m.useCallback)((function(){var e,t,n,r=null!==(e=null!==(t=O.form)&&void 0!==t?t:null===(n=O.formRef)||void 0===n?void 0:n.current)&&void 0!==e?e:H.current;r&&null!=k&&k.destroyOnClose&&r.resetFields()}),[null==k?void 0:k.destroyOnClose,O.form,O.formRef]);(0,m.useImperativeHandle)(O.formRef,(function(){return H.current}),[H.current]),(0,m.useEffect)((function(){L&&(I||A)&&(null==x||x(!0),null==_||_(!0))}),[A,I,L]);var U=(0,m.useMemo)((function(){return w?m.cloneElement(w,(0,o.Z)((0,o.Z)({key:"trigger"},w.props),{},{onClick:(e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:z(!L),null===(n=w.props)||void 0===n||null===(i=n.onClick)||void 0===i||i.call(n,t);case 2:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})})):null;var e}),[z,w,L]),Y=(0,m.useMemo)((function(){var e,t,n,r,i,o;return!1!==O.submitter&&f()({searchConfig:{submitText:null!==(e=null!==(t=null==k?void 0:k.okText)&&void 0!==t?t:null===(n=j.locale)||void 0===n||null===(n=n.Modal)||void 0===n?void 0:n.okText)&&void 0!==e?e:"确认",resetText:null!==(r=null!==(i=null==k?void 0:k.cancelText)&&void 0!==i?i:null===(o=j.locale)||void 0===o||null===(o=o.Modal)||void 0===o?void 0:o.cancelText)&&void 0!==r?r:"取消"},resetButtonProps:{preventDefault:!0,disabled:C?T:void 0,onClick:function(e){var t;z(!1),null==k||null===(t=k.onCancel)||void 0===t||t.call(k,e)}}},O.submitter)}),[null===(t=j.locale)||void 0===t||null===(t=t.Modal)||void 0===t?void 0:t.cancelText,null===(n=j.locale)||void 0===n||null===(n=n.Modal)||void 0===n?void 0:n.okText,k,O.submitter,z,T,C]),G=(0,m.useCallback)((function(e,t){return(0,b.jsxs)(b.Fragment,{children:[e,F.current&&t?(0,b.jsx)(m.Fragment,{children:(0,g.createPortal)(t,F.current)},"submitter"):t]})}),[]),q=(0,m.useCallback)(function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null==S?void 0:S(t),C&&n instanceof Promise&&(B(!0),i=setTimeout((function(){return B(!1)}),C),n.finally((function(){clearTimeout(i),B(!1)}))),e.next=4,n;case 4:return(o=e.sent)&&z(!1),e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[S,z,C]),X=(0,l.X)(L);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(u.Z,(0,o.Z)((0,o.Z)((0,o.Z)({title:M,width:E||800},k),X),{},{onCancel:function(e){var t;C&&T||(z(!1),null==k||null===(t=k.onCancel)||void 0===t||t.call(k,e))},afterClose:function(){var e;V(),z(!1),null==k||null===(e=k.afterClose)||void 0===e||e.call(k)},footer:!1!==O.submitter?(0,b.jsx)("div",{ref:W,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,b.jsx)(v.I,(0,o.Z)((0,o.Z)({formComponentType:"ModalForm",layout:"vertical"},O),{},{onInit:function(e,t){var n;O.formRef&&(O.formRef.current=t),null==O||null===(n=O.onInit)||void 0===n||n.call(O,e,t),H.current=t},formRef:H,submitter:Y,onFinish:function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,q(t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),contentRender:G,children:d}))})),U]})}},97269:function(e,t,n){"use strict";n.d(t,{A:function(){return C}});var r=n(1413),i=n(22150),o=n(62435),a=n(89671),s=n(9105),l=n(4942),c=n(97685),u=n(90814),d=n(21770),f=n(81736),h=n(28459),p=n(42075),m=n(93967),g=n.n(m),v=n(66758),b=n(2514),y=n(98082),w=function(e){var t;return(0,l.Z)({},e.componentCls,{"&-title":{marginBlockEnd:e.marginXL,fontWeight:"bold"},"&-container":(0,l.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(e.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(t={display:"block",width:"100%"},(0,l.Z)(t,"".concat(e.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,l.Z)(t,"".concat(e.componentCls,"-container"),{paddingInlineStart:16}),(0,l.Z)(t,"".concat(e.antCls,"-space-item,").concat(e.antCls,"-form-item"),{width:"100%"}),(0,l.Z)(t,"".concat(e.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),t)})};var _=n(86074),x=o.forwardRef((function(e,t){var n,i=o.useContext(v.Z).groupProps,a=(0,r.Z)((0,r.Z)({},i),e),s=a.children,m=a.collapsible,x=a.defaultCollapsed,k=a.style,S=a.labelLayout,C=a.title,M=void 0===C?e.label:C,E=a.tooltip,A=a.align,I=void 0===A?"start":A,O=a.direction,j=a.size,Z=void 0===j?32:j,R=a.titleStyle,N=a.titleRender,P=a.spaceProps,T=a.extra,B=a.autoFocus,$=(0,d.Z)((function(){return x||!1}),{value:e.collapsed,onChange:e.onCollapse}),D=(0,c.Z)($,2),L=D[0],z=D[1],F=(0,o.useContext)(h.ZP.ConfigContext).getPrefixCls,W=(0,b.zx)(e),H=W.ColWrapper,V=W.RowWrapper,U=F("pro-form-group"),Y=(n=U,(0,y.Xj)("ProFormGroup",(function(e){var t=(0,r.Z)((0,r.Z)({},e),{},{componentCls:".".concat(n)});return[w(t)]}))),G=Y.wrapSSR,q=Y.hashId,X=m&&(0,_.jsx)(u.Z,{style:{marginInlineEnd:8},rotate:L?void 0:90}),K=(0,_.jsx)(f.G,{label:X?(0,_.jsxs)("div",{children:[X,M]}):M,tooltip:E}),J=(0,o.useCallback)((function(e){var t=e.children;return(0,_.jsx)(p.Z,(0,r.Z)((0,r.Z)({},P),{},{className:g()("".concat(U,"-container ").concat(q),null==P?void 0:P.className),size:Z,align:I,direction:O,style:(0,r.Z)({rowGap:0},null==P?void 0:P.style),children:t}))}),[I,U,O,q,Z,P]),Q=N?N(K,e):K,ee=(0,o.useMemo)((function(){var e=[],t=o.Children.toArray(s).map((function(t,n){var i;return o.isValidElement(t)&&null!=t&&null!==(i=t.props)&&void 0!==i&&i.hidden?(e.push(t),null):0===n&&o.isValidElement(t)&&B?o.cloneElement(t,(0,r.Z)((0,r.Z)({},t.props),{},{autoFocus:B})):t}));return[(0,_.jsx)(V,{Wrapper:J,children:t},"children"),e.length>0?(0,_.jsx)("div",{style:{display:"none"},children:e}):null]}),[s,V,J,B]),te=(0,c.Z)(ee,2),ne=te[0],re=te[1];return G((0,_.jsx)(H,{children:(0,_.jsxs)("div",{className:g()(U,q,(0,l.Z)({},"".concat(U,"-twoLine"),"twoLine"===S)),style:k,ref:t,children:[re,(M||E||T)&&(0,_.jsx)("div",{className:"".concat(U,"-title ").concat(q).trim(),style:R,onClick:function(){z(!L)},children:T?(0,_.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[Q,(0,_.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:T})]}):Q}),(0,_.jsx)("div",{style:{display:m&&L?"none":void 0},children:ne})]})}))}));x.displayName="ProForm-Group";var k=x,S=n(4499);function C(e){return(0,_.jsx)(a.I,(0,r.Z)({layout:"vertical",submitter:{render:function(e,t){return t.reverse()}},contentRender:function(e,t){return(0,_.jsxs)(_.Fragment,{children:[e,t]})}},e))}C.Group=k,C.useForm=i.Z.useForm,C.Item=S.Z,C.useWatch=i.Z.useWatch,C.ErrorList=i.Z.ErrorList,C.Provider=i.Z.Provider,C.useFormInstance=i.Z.useFormInstance,C.EditOrReadOnlyContext=s.A},10915:function(e,t,n){"use strict";n.d(t,{_Y:function(){return A},L_:function(){return O},ZP:function(){return j},nu:function(){return S},YB:function(){return I}});var r=n(74902),i=n(97685),o=n(91),a=n(1413),s=n(54548),l=n(51812),c=n(28459),u=n(37029),d=n(62435),f=n(59734),h=n(32818),p=n(27484),m=n.n(p),g=n(98082),v=n(67804),b=n(71002),y=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:1,r=3735928559^n,i=1103547991^n,o=0;o>>16,2246822507)^Math.imul(i^i>>>13,3266489909),4294967296*(2097151&(i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909)))+(r>>>0)},c=(0,o.jG)((function(e){return e})),u={theme:c,token:(0,i.Z)((0,i.Z)({},s),null===a.Z||void 0===a.Z||null===(r=a.Z.defaultAlgorithm)||void 0===r?void 0:r.call(a.Z,null===a.Z||void 0===a.Z?void 0:a.Z.defaultSeed)),hashId:"pro-".concat(l(JSON.stringify(s)))},d=function(){return u}},92340:function(e,t,n){"use strict";n.d(t,{Z:function(){return Wn}});var r=n(74165),i=n(15861),o=n(71002),a=n(97685),s=n(4942),l=n(74902),c=n(1413),u=n(91),d=n(38345).Z,f=n(2514),h=n(952),p=n(10915),m=n(98082),g=n(86671),v=n(51812),b=n(21770),y=n(53914),w=n(27068),_=n(78164),x=n(62120),k=n(28459),S=n(93967),C=n.n(S),M=n(62435),E=n(80334);function A(e,t){return t.filter((function(e){return e})).length<1?e:t.reduce((function(e,t){return t(e)}),e)}var I=function(e,t){return void 0!==t&&("boolean"==typeof t?t:t[e])},O=function(e,t){return e?Array.isArray(e)?e.join("-"):e.toString():"".concat(t)};function j(e){var t={},n={};return e.forEach((function(e){var r=function(e){return Array.isArray(e)?e.join(","):null==e?void 0:e.toString()}(e.dataIndex);if(r){if(e.filters){var i=e.defaultFilteredValue;t[r]=void 0===i?null:e.defaultFilteredValue}e.sorter&&e.defaultSortOrder&&(n[r]=e.defaultSortOrder)}})),{sort:n,filter:t}}var Z=n(86074);var R=(0,M.createContext)({}),N=function(e){var t=function(){var e,t,n,r,i,o,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=(0,M.useRef)(),c=(0,M.useRef)(null),u=(0,M.useRef)(),d=(0,M.useRef)(),f=(0,M.useState)(""),h=(0,a.Z)(f,2),p=h[0],m=h[1],g=(0,M.useRef)([]),v=(0,b.Z)((function(){return s.size||s.defaultSize||"middle"}),{value:s.size,onChange:s.onSizeChange}),y=(0,a.Z)(v,2),w=y[0],_=y[1],x=(0,M.useMemo)((function(){var e,t;if(null!=s&&null!==(e=s.columnsState)&&void 0!==e&&e.defaultValue)return s.columnsState.defaultValue;var n={};return null===(t=s.columns)||void 0===t||t.forEach((function(e,t){var r=e.key,i=e.dataIndex,o=e.fixed,a=e.disable,s=O(null!=r?r:i,t);s&&(n[s]={show:!0,fixed:o,disable:a})})),n}),[s.columns]),k=(0,b.Z)((function(){var e,t,n=s.columnsState||{},r=n.persistenceType,i=n.persistenceKey;if(i&&r&&"undefined"!=typeof window){var o=window[r];try{var a=null==o?void 0:o.getItem(i);if(a)return JSON.parse(a)}catch(e){console.warn(e)}}return s.columnsStateMap||(null===(e=s.columnsState)||void 0===e?void 0:e.value)||(null===(t=s.columnsState)||void 0===t?void 0:t.defaultValue)||x}),{value:(null===(e=s.columnsState)||void 0===e?void 0:e.value)||s.columnsStateMap,onChange:(null===(t=s.columnsState)||void 0===t?void 0:t.onChange)||s.onColumnsStateChange}),S=(0,a.Z)(k,2),C=S[0],A=S[1];(0,M.useEffect)((function(){var e=s.columnsState||{},t=e.persistenceType,n=e.persistenceKey;if(n&&t&&"undefined"!=typeof window){var r=window[t];try{var i=null==r?void 0:r.getItem(n);A(i?JSON.parse(i):x)}catch(e){console.warn(e)}}}),[null===(n=s.columnsState)||void 0===n?void 0:n.persistenceKey,null===(r=s.columnsState)||void 0===r?void 0:r.persistenceType,x]),(0,E.ET)(!s.columnsStateMap,"columnsStateMap已经废弃,请使用 columnsState.value 替换"),(0,E.ET)(!s.columnsStateMap,"columnsStateMap has been discarded, please use columnsState.value replacement");var I=(0,M.useCallback)((function(){var e=s.columnsState||{},t=e.persistenceType,n=e.persistenceKey;if(n&&t&&"undefined"!=typeof window){var r=window[t];try{null==r||r.removeItem(n)}catch(e){console.warn(e)}}}),[s.columnsState]);(0,M.useEffect)((function(){var e,t;if(null!==(e=s.columnsState)&&void 0!==e&&e.persistenceKey&&null!==(t=s.columnsState)&&void 0!==t&&t.persistenceType&&"undefined"!=typeof window){var n=s.columnsState,r=n.persistenceType,i=n.persistenceKey,o=window[r];try{null==o||o.setItem(i,JSON.stringify(C))}catch(e){console.warn(e),I()}}}),[null===(i=s.columnsState)||void 0===i?void 0:i.persistenceKey,C,null===(o=s.columnsState)||void 0===o?void 0:o.persistenceType]);var j={action:l.current,setAction:function(e){l.current=e},sortKeyColumns:g.current,setSortKeyColumns:function(e){g.current=e},propsRef:d,columnsMap:C,keyWords:p,setKeyWords:function(e){return m(e)},setTableSize:_,tableSize:w,prefixName:u.current,setPrefixName:function(e){u.current=e},setColumnsMap:A,columns:s.columns,rootDomRef:c,clearPersistenceStorage:I,defaultColumnKeyMap:x};return Object.defineProperty(j,"prefixName",{get:function(){return u.current}}),Object.defineProperty(j,"sortKeyColumns",{get:function(){return g.current}}),Object.defineProperty(j,"action",{get:function(){return l.current}}),j}(e.initValue);return(0,Z.jsx)(R.Provider,{value:t,children:e.children})},P=n(42075),T=function(e){return(0,s.Z)({},e.componentCls,{marginBlockEnd:16,backgroundColor:(0,m.uK)(e.colorTextBase,.02),borderRadius:e.borderRadius,border:"none","&-container":{paddingBlock:e.paddingSM,paddingInline:e.paddingLG},"&-info":{display:"flex",alignItems:"center",transition:"all 0.3s",color:e.colorTextTertiary,"&-content":{flex:1},"&-option":{minWidth:48,paddingInlineStart:16}}})};var B=function(e){var t=e.intl,n=e.onCleanSelected;return[(0,Z.jsx)("a",{onClick:n,children:t.getMessage("alert.clear","清空")},"0")]};var $=function(e){var t,n=e.selectedRowKeys,r=void 0===n?[]:n,i=e.onCleanSelected,o=e.alwaysShowAlert,a=e.selectedRows,s=e.alertInfoRender,l=void 0===s?function(e){var t=e.intl;return(0,Z.jsxs)(P.Z,{children:[t.getMessage("alert.selected","已选择"),r.length,t.getMessage("alert.item","项"),"  "]})}:s,u=e.alertOptionRender,d=void 0===u?B:u,f=(0,p.YB)(),h=d&&d({onCleanSelected:i,selectedRowKeys:r,selectedRows:a,intl:f}),g=(0,(0,M.useContext)(k.ZP.ConfigContext).getPrefixCls)("pro-table-alert"),v=(t=g,(0,m.Xj)("ProTableAlert",(function(e){var n=(0,c.Z)((0,c.Z)({},e),{},{componentCls:".".concat(t)});return[T(n)]}))),b=v.wrapSSR,y=v.hashId;if(!1===l)return null;var w=l({intl:f,selectedRowKeys:r,selectedRows:a,onCleanSelected:i});return!1===w||r.length<1&&!o?null:b((0,Z.jsx)("div",{className:"".concat(g," ").concat(y).trim(),children:(0,Z.jsx)("div",{className:"".concat(g,"-container ").concat(y).trim(),children:(0,Z.jsxs)("div",{className:"".concat(g,"-info ").concat(y).trim(),children:[(0,Z.jsx)("div",{className:"".concat(g,"-info-content ").concat(y).trim(),children:w}),h?(0,Z.jsx)("div",{className:"".concat(g,"-info-option ").concat(y).trim(),children:h}):null]})})}))},D=n(43144),L=n(15671),z=n(97326),F=n(32531),W=n(73568),H=n(60249),V=n(97435);function U(e){var t,n,r=function(e,t){var n=(0,M.useMemo)((function(){return new Proxy({current:t},{set:function(t,r,i){return Object.is(t[r],i)||(t[r]=i,e(n)),!0}})}),[]);return n}((t=(0,M.useState)(!0),n=(0,a.Z)(t,2)[1],(0,M.useCallback)((function(){return n((function(e){return!e}))}),[])),e);return r}var Y=n(51280),G=n(48171),q=n(22270),X=n(81736),K=n(27833),J=n(22150),Q=n(73177),ee=n(85265),te=n(72378),ne=n.n(te),re=n(61254),ie=n(89671),oe=function(e){return(0,s.Z)({},e.componentCls,{"&-sidebar-dragger":{width:"5px",cursor:"ew-resize",padding:"4px 0 0",borderTop:"1px solid transparent",position:"absolute",top:0,left:0,bottom:0,zIndex:100,backgroundColor:"transparent","&-min-disabled":{cursor:"w-resize"},"&-max-disabled":{cursor:"e-resize"}}})};var ae=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","resize","onOpenChange","visible","open"];var se=n(87462),le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},ce=n(84089),ue=function(e,t){return M.createElement(ce.Z,(0,se.Z)({},e,{ref:t,icon:le}))};var de=M.forwardRef(ue),fe=n(2122),he=n(1336),pe=function(e){return(0,s.Z)({},e.componentCls,{lineHeight:"30px","&::before":{display:"block",height:0,visibility:"hidden",content:"'.'"},"&-small":{lineHeight:e.lineHeight},"&-container":{display:"flex",flexWrap:"wrap",gap:e.marginXS},"&-item":(0,s.Z)({whiteSpace:"nowrap"},"".concat(e.antCls,"-form-item"),{marginBlock:0}),"&-line":{minWidth:"198px"},"&-line:not(:first-child)":{marginBlockStart:"16px",marginBlockEnd:8},"&-collapse-icon":{width:e.controlHeight,height:e.controlHeight,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},"&-effective":(0,s.Z)({},"".concat(e.componentCls,"-collapse-icon"),{backgroundColor:e.colorBgTextHover})})};var me=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],ge=function(e){var t=e.items,n=e.prefixCls,r=e.size,i=void 0===r?"middle":r,o=e.collapse,l=e.collapseLabel,u=e.onValuesChange,d=e.bordered,f=e.values,h=e.footerRender,g=e.placement,v=(0,p.YB)(),b="".concat(n,"-light-filter"),y=function(e){return(0,m.Xj)("LightFilter",(function(t){var n=(0,c.Z)((0,c.Z)({},t),{},{componentCls:".".concat(e)});return[pe(n)]}))}(b),w=y.wrapSSR,_=y.hashId,x=(0,M.useState)(!1),k=(0,a.Z)(x,2),S=k[0],E=k[1],A=(0,M.useState)((function(){return(0,c.Z)({},f)})),I=(0,a.Z)(A,2),O=I[0],j=I[1];(0,M.useEffect)((function(){j((0,c.Z)({},f))}),[f]);var R=(0,M.useMemo)((function(){var e=[],n=[];return t.forEach((function(t){(t.props||{}).secondary||o?e.push(t):n.push(t)})),{collapseItems:e,outsideItems:n}}),[e.items]),N=R.collapseItems,P=R.outsideItems;return w((0,Z.jsx)("div",{className:C()(b,_,"".concat(b,"-").concat(i),(0,s.Z)({},"".concat(b,"-effective"),Object.keys(f).some((function(e){return Array.isArray(f[e])?f[e].length>0:f[e]})))),children:(0,Z.jsxs)("div",{className:"".concat(b,"-container ").concat(_).trim(),children:[P.map((function(e,t){var n=e.key,r=e.props.fieldProps,i=null!=r&&r.placement?null==r?void 0:r.placement:g;return(0,Z.jsx)("div",{className:"".concat(b,"-item ").concat(_).trim(),children:M.cloneElement(e,{fieldProps:(0,c.Z)((0,c.Z)({},e.props.fieldProps),{},{placement:i}),proFieldProps:(0,c.Z)((0,c.Z)({},e.props.proFieldProps),{},{light:!0,label:e.props.label,bordered:d}),bordered:d})},n||t)})),N.length?(0,Z.jsx)("div",{className:"".concat(b,"-item ").concat(_).trim(),children:(0,Z.jsx)(he.M,{padding:24,open:S,onOpenChange:function(e){E(e)},placement:g,label:l||(o?(0,Z.jsx)(de,{className:"".concat(b,"-collapse-icon ").concat(_).trim()}):(0,Z.jsx)(fe.Q,{size:i,label:v.getMessage("form.lightFilter.more","更多筛选")})),footerRender:h,footer:{onConfirm:function(){u((0,c.Z)({},O)),E(!1)},onClear:function(){var e={};N.forEach((function(t){var n=t.props.name;e[n]=void 0})),u(e)}},children:N.map((function(e){var t=e.key,n=e.props,r=n.name,i=n.fieldProps,o=(0,c.Z)((0,c.Z)({},i),{},{onChange:function(e){return j((0,c.Z)((0,c.Z)({},O),{},(0,s.Z)({},r,null!=e&&e.target?e.target.value:e))),!1}});O.hasOwnProperty(r)&&(o[e.props.valuePropName||"value"]=O[r]);var a=null!=i&&i.placement?null==i?void 0:i.placement:g;return(0,Z.jsx)("div",{className:"".concat(b,"-line ").concat(_).trim(),children:M.cloneElement(e,{fieldProps:(0,c.Z)((0,c.Z)({},o),{},{placement:a})})},t)}))})},"more"):null]})}))};var ve=n(37476),be=n(97269),ye=n(12044),we=n(15746),_e=n(71230),xe=n(48555),ke=n(80882),Se=function(e){if(e&&!0!==e)return e},Ce=function(e,t,n,r){return e?(0,Z.jsxs)(Z.Fragment,{children:[n.getMessage("tableForm.collapsed","展开"),r&&"(".concat(r,")"),(0,Z.jsx)(ke.Z,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]}):(0,Z.jsxs)(Z.Fragment,{children:[n.getMessage("tableForm.expand","收起"),(0,Z.jsx)(ke.Z,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]})},Me=function(e){var t=e.setCollapsed,n=e.collapsed,r=void 0!==n&&n,i=e.submitter,o=e.style,a=e.hiddenNum,s=(0,M.useContext)(k.ZP.ConfigContext).getPrefixCls,l=(0,p.YB)(),c=(0,M.useContext)(p.L_).hashId,u=Se(e.collapseRender)||Ce;return(0,Z.jsxs)(P.Z,{style:o,size:16,children:[i,!1!==e.collapseRender&&(0,Z.jsx)("a",{className:"".concat(s("pro-query-filter-collapse-button")," ").concat(c).trim(),onClick:function(){return t(!r)},children:null==u?void 0:u(r,e,l,a)})]})},Ee=function(e){var t,n;return(0,s.Z)({},e.componentCls,(n={"&&":{padding:24}},(0,s.Z)(n,"".concat(e.antCls,"-form-item"),{marginBlock:0}),(0,s.Z)(n,"".concat(e.proComponentsCls,"-form-group-title"),{marginBlock:0}),(0,s.Z)(n,"&-row",{rowGap:24,"&-split":(t={},(0,s.Z)(t,"".concat(e.proComponentsCls,"-form-group"),{display:"flex",alignItems:"center",gap:e.marginXS}),(0,s.Z)(t,"&:last-child",{marginBlockEnd:12}),t),"&-split-line":{"&:after":{position:"absolute",width:"100%",content:'""',height:1,insetBlockEnd:-12,borderBlockEnd:"1px dashed ".concat(e.colorSplit)}}}),(0,s.Z)(n,"&-collapse-button",{display:"flex",alignItems:"center",color:e.colorPrimary}),n))};var Ae,Ie=["collapsed","layout","defaultCollapsed","defaultColsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum","submitterColSpanProps"],Oe={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:1/0},je={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[1/0,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[1/0,4,"horizontal"]]},Ze=function(e){var t,n,r,i,o=(0,p.YB)(),l=(0,M.useContext)(p.L_).hashId,u=e.resetText||o.getMessage("tableForm.reset","重置"),d=e.searchText||o.getMessage("tableForm.search","搜索"),f=(0,b.Z)((function(){return e.defaultCollapsed&&!!e.submitter}),{value:e.collapsed,onChange:e.onCollapse}),h=(0,a.Z)(f,2),m=h[0],g=h[1],v=e.optionRender,y=e.collapseRender,w=e.split,_=e.items,x=e.spanSize,S=e.showLength,E=e.searchGutter,A=e.showHiddenNum,I=e.form,O=(0,M.useMemo)((function(){return e.submitter&&!1!==v?M.cloneElement(e.submitter,(0,c.Z)({searchConfig:{resetText:u,submitText:d},render:v?function(t,n){return v((0,c.Z)((0,c.Z)({},e),{},{resetText:u,searchText:d}),e,n)}:v},e.submitter.props)):null}),[e,u,d,v]),j=0,R=0,N=!1,P=0,T=0,B=function(e,t,n){return null==e?void 0:e.flatMap((function(e){var r,i,o;if("ProForm-Group"===(null==e?void 0:e.type.displayName)&&(null===(r=e.props)||void 0===r||!r.title))return e.props.children;if("ProFormDependency"===(null==e?void 0:e.type.displayName)&&(null===(i=e.props)||void 0===i||!i.title)){var a=e.props.name.reduce((function(e,t){return(0,c.Z)((0,c.Z)({},e),{},(0,s.Z)({},t,null==n?void 0:n.getFieldValue(t)))}),{});return e.props.children(a)}return t&&M.isValidElement(e)?M.cloneElement(e,(0,c.Z)((0,c.Z)({},e.props),{},{formItemProps:(0,c.Z)((0,c.Z)({},null===(o=e.props)||void 0===o?void 0:o.formItemProps),{},{rules:[]})})):e}))}(_,e.ignoreRules,I).map((function(t,n){var r,i,o,a,s,l=M.isValidElement(t)&&null!==(r=null==t||null===(i=t.props)||void 0===i?void 0:i.colSize)&&void 0!==r?r:1,c=Math.min(x.span*(l||1),24);(j+=c,P+=l,0===n)&&(N=24===c&&!(null!=t&&null!==(s=t.props)&&void 0!==s&&s.hidden));var u=(null==t||null===(o=t.props)||void 0===o?void 0:o.hidden)||m&&(N||P>S-1)&&!!n&&j>=24;R+=1;var d=M.isValidElement(t)&&(t.key||"".concat(null===(a=t.props)||void 0===a?void 0:a.name))||n;return M.isValidElement(t)&&u?e.preserve?{itemDom:M.cloneElement(t,{hidden:!0,key:d||n}),hidden:!0,colSpan:c}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:t,colSpan:c,hidden:!1}})),$=B.map((function(t,n){var r,i,o=t.itemDom,a=t.colSpan;if(null==o||null===(r=o.props)||void 0===r?void 0:r.hidden)return o;var s=M.isValidElement(o)&&(o.key||"".concat(null===(i=o.props)||void 0===i?void 0:i.name))||n;return 24-T%2424?24-(null!==(r=null===(i=e.submitterColSpanProps)||void 0===i?void 0:i.span)&&void 0!==r?r:x.span):24-o}),[T,T%24+(null!==(t=null===(n=e.submitterColSpanProps)||void 0===n?void 0:n.span)&&void 0!==t?t:x.span),null===(r=e.submitterColSpanProps)||void 0===r?void 0:r.span]),F=(0,M.useContext)(k.ZP.ConfigContext).getPrefixCls("pro-query-filter");return(0,Z.jsxs)(_e.Z,{gutter:E,justify:"start",className:C()("".concat(F,"-row"),l),children:[$,O&&(0,Z.jsx)(we.Z,(0,c.Z)((0,c.Z)({span:x.span,offset:z,className:C()(null===(i=e.submitterColSpanProps)||void 0===i?void 0:i.className)},e.submitterColSpanProps),{},{style:{textAlign:"end"},children:(0,Z.jsx)(J.Z.Item,{label:" ",colon:!1,shouldUpdate:!1,className:"".concat(F,"-actions ").concat(l).trim(),children:(0,Z.jsx)(Me,{hiddenNum:D,collapsed:m,collapseRender:!!L&&y,submitter:O,setCollapsed:g},"pro-form-query-filter-actions")})}),"submitter")]},"resize-observer-row")},Re=(0,ye.j)()?null===(Ae=document)||void 0===Ae||null===(Ae=Ae.body)||void 0===Ae?void 0:Ae.clientWidth:1024;var Ne=n(92210),Pe=n(1977),Te=n(67159),Be=n(3363),$e=n(15867),De=n(50344),Le=["onFinish","step","formRef","title","stepProps"];var ze=function(e){var t=(0,M.useRef)(),n=(0,M.useContext)(He),o=(0,M.useContext)(Ue),a=(0,c.Z)((0,c.Z)({},e),o),s=a.onFinish,l=a.step,d=a.formRef,f=(a.title,a.stepProps,(0,u.Z)(a,Le));return(0,E.ET)(!f.submitter,"StepForm 不包含提交按钮,请在 StepsForm 上"),(0,M.useImperativeHandle)(d,(function(){return t.current}),[null==d?void 0:d.current]),(0,M.useEffect)((function(){if(a.name||a.step){var e=(a.name||a.step).toString();return null==n||n.regForm(e,a),function(){null==n||n.unRegForm(e)}}}),[]),n&&null!=n&&n.formArrayRef&&(n.formArrayRef.current[l||0]=t),(0,Z.jsx)(ie.I,(0,c.Z)({formRef:t,onFinish:function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f.name&&(null==n||n.onFormFinish(f.name,t)),!s){e.next=9;break}return null==n||n.setLoading(!0),e.next=5,null==s?void 0:s(t);case 5:return e.sent&&(null==n||n.next()),null==n||n.setLoading(!1),e.abrupt("return");case 9:null!=n&&n.lastStep||null==n||n.next();case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onInit:function(e,r){var i;t.current=r,n&&null!=n&&n.formArrayRef&&(n.formArrayRef.current[l||0]=t),null==f||null===(i=f.onInit)||void 0===i||i.call(f,e,r)},layout:"vertical"},(0,V.Z)(f,["layoutType","columns"])))},Fe=function(e){return(0,s.Z)({},e.componentCls,{"&-container":{width:"max-content",minWidth:"420px",maxWidth:"100%",margin:"auto"},"&-steps-container":(0,s.Z)({maxWidth:"1160px",margin:"auto"},"".concat(e.antCls,"-steps-vertical"),{height:"100%"}),"&-step":{display:"none",marginBlockStart:"32px","&-active":{display:"block"},"> form":{maxWidth:"100%"}}})};var We=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef","layoutRender"],He=M.createContext(void 0),Ve={horizontal:function(e){var t=e.stepsDom,n=e.formDom;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(_e.Z,{gutter:{xs:8,sm:16,md:24},children:(0,Z.jsx)(we.Z,{span:24,children:t})}),(0,Z.jsx)(_e.Z,{gutter:{xs:8,sm:16,md:24},children:(0,Z.jsx)(we.Z,{span:24,children:n})})]})},vertical:function(e){var t=e.stepsDom,n=e.formDom;return(0,Z.jsxs)(_e.Z,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[(0,Z.jsx)(we.Z,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:M.cloneElement(t,{style:{height:"100%"}})}),(0,Z.jsx)(we.Z,{children:(0,Z.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:n})})]})}},Ue=M.createContext(null);function Ye(e){var t=(0,(0,M.useContext)(k.ZP.ConfigContext).getPrefixCls)("pro-steps-form"),n=function(e){return(0,m.Xj)("StepsForm",(function(t){var n=(0,c.Z)((0,c.Z)({},t),{},{componentCls:".".concat(e)});return[Fe(n)]}))}(t),o=n.wrapSSR,d=n.hashId,f=(e.current,e.onCurrentChange,e.submitter),h=e.stepsFormRender,g=e.stepsRender,v=e.stepFormRender,y=e.stepsProps,w=e.onFinish,_=e.formProps,x=e.containerStyle,S=e.formRef,E=e.formMapRef,A=e.layoutRender,I=(0,u.Z)(e,We),O=(0,M.useRef)(new Map),j=(0,M.useRef)(new Map),R=(0,M.useRef)([]),N=(0,M.useState)([]),T=(0,a.Z)(N,2),B=T[0],$=T[1],D=(0,M.useState)(!1),L=(0,a.Z)(D,2),z=L[0],F=L[1],W=(0,p.YB)(),H=(0,b.Z)(0,{value:e.current,onChange:e.onCurrentChange}),V=(0,a.Z)(H,2),U=V[0],Y=V[1],q=(0,M.useMemo)((function(){return Ve[(null==y?void 0:y.direction)||"horizontal"]}),[null==y?void 0:y.direction]),X=(0,M.useMemo)((function(){return U===B.length-1}),[B.length,U]),K=(0,M.useCallback)((function(e,t){j.current.has(e)||$((function(t){return[].concat((0,l.Z)(t),[e])})),j.current.set(e,t)}),[]),Q=(0,M.useCallback)((function(e){$((function(t){return t.filter((function(t){return t!==e}))})),j.current.delete(e),O.current.delete(e)}),[]);(0,M.useImperativeHandle)(E,(function(){return R.current}),[R.current]),(0,M.useImperativeHandle)(S,(function(){var e;return null===(e=R.current[U||0])||void 0===e?void 0:e.current}),[U,R.current]);var ee=(0,M.useCallback)(function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n){var i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O.current.set(t,n),X&&w){e.next=3;break}return e.abrupt("return");case 3:return F(!0),i=Ne.T.apply(void 0,[{}].concat((0,l.Z)(Array.from(O.current.values())))),e.prev=5,e.next=8,w(i);case 8:e.sent&&(Y(0),R.current.forEach((function(e){var t;return null===(t=e.current)||void 0===t?void 0:t.resetFields()}))),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),console.log(e.t0);case 15:return e.prev=15,F(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[5,12,15,18]])})));return function(t,n){return e.apply(this,arguments)}}(),[X,w,F,Y]),te=(0,M.useMemo)((function(){var e=(0,Pe.n)(Te.Z,"4.24.0")>-1,n=e?{items:B.map((function(e){var t=j.current.get(e);return(0,c.Z)({key:e,title:null==t?void 0:t.title},null==t?void 0:t.stepProps)}))}:{};return(0,Z.jsx)("div",{className:"".concat(t,"-steps-container ").concat(d).trim(),style:{maxWidth:Math.min(320*B.length,1160)},children:(0,Z.jsx)(Be.Z,(0,c.Z)((0,c.Z)((0,c.Z)({},y),n),{},{current:U,onChange:void 0,children:!e&&B.map((function(e){var t=j.current.get(e);return(0,Z.jsx)(Be.Z.Step,(0,c.Z)({title:null==t?void 0:t.title},null==t?void 0:t.stepProps),e)}))}))})}),[B,d,t,U,y]),ne=(0,G.J)((function(){var e;null===(e=R.current[U].current)||void 0===e||e.submit()})),re=(0,G.J)((function(){U<1||Y(U-1)})),ie=(0,M.useMemo)((function(){return!1!==f&&(0,Z.jsx)($e.ZP,(0,c.Z)((0,c.Z)({type:"primary",loading:z},null==f?void 0:f.submitButtonProps),{},{onClick:function(){var e;null==f||null===(e=f.onSubmit)||void 0===e||e.call(f),ne()},children:W.getMessage("stepsForm.next","下一步")}),"next")}),[W,z,ne,f]),oe=(0,M.useMemo)((function(){return!1!==f&&(0,Z.jsx)($e.ZP,(0,c.Z)((0,c.Z)({},null==f?void 0:f.resetButtonProps),{},{onClick:function(){var e;re(),null==f||null===(e=f.onReset)||void 0===e||e.call(f)},children:W.getMessage("stepsForm.prev","上一步")}),"pre")}),[W,re,f]),ae=(0,M.useMemo)((function(){return!1!==f&&(0,Z.jsx)($e.ZP,(0,c.Z)((0,c.Z)({type:"primary",loading:z},null==f?void 0:f.submitButtonProps),{},{onClick:function(){var e;null==f||null===(e=f.onSubmit)||void 0===e||e.call(f),ne()},children:W.getMessage("stepsForm.submit","提交")}),"submit")}),[W,z,ne,f]),se=(0,G.J)((function(){U>B.length-2||Y(U+1)})),le=(0,M.useMemo)((function(){var e=[],t=U||0;if(t<1?1===B.length?e.push(ae):e.push(ie):t+1===B.length?e.push(oe,ae):e.push(oe,ie),e=e.filter(M.isValidElement),f&&f.render){var n,r={form:null===(n=R.current[U])||void 0===n?void 0:n.current,onSubmit:ne,step:U,onPre:re};return f.render(r,e)}return f&&!1===(null==f?void 0:f.render)?null:e}),[B.length,ie,ne,oe,re,U,ae,f]),ce=(0,M.useMemo)((function(){return(0,De.Z)(e.children).map((function(e,n){var r=e.props,i=r.name||"".concat(n),o=U===n,a=o?{contentRender:v,submitter:!1}:{};return(0,Z.jsx)("div",{className:C()("".concat(t,"-step"),d,(0,s.Z)({},"".concat(t,"-step-active"),o)),children:(0,Z.jsx)(Ue.Provider,{value:(0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)({},a),_),r),{},{name:i,step:n}),children:e})},i)}))}),[_,d,t,e.children,U,v]),ue=(0,M.useMemo)((function(){return g?g(B.map((function(e){var t;return{key:e,title:null===(t=j.current.get(e))||void 0===t?void 0:t.title}})),te):te}),[B,te,g]),de=(0,M.useMemo)((function(){return(0,Z.jsxs)("div",{className:"".concat(t,"-container ").concat(d).trim(),style:x,children:[ce,h?null:(0,Z.jsx)(P.Z,{children:le})]})}),[x,ce,d,t,h,le]),fe=(0,M.useMemo)((function(){var e={stepsDom:ue,formDom:de};return h?h(A?A(e):q(e),le):A?A(e):q(e)}),[ue,de,q,h,le,A]);return o((0,Z.jsx)("div",{className:C()(t,d),children:(0,Z.jsx)(J.Z.Provider,(0,c.Z)((0,c.Z)({},I),{},{children:(0,Z.jsx)(He.Provider,{value:{loading:z,setLoading:F,regForm:K,keyArray:B,next:se,formArrayRef:R,formMapRef:j,lastStep:X,unRegForm:Q,onFormFinish:ee},children:fe})}))}))}function Ge(e){return(0,Z.jsx)(p._Y,{needDeps:!0,children:(0,Z.jsx)(Ye,(0,c.Z)({},e))})}Ge.StepForm=ze,Ge.useForm=J.Z.useForm;var qe=["steps","columns","forceUpdate","grid"],Xe=function(e){var t=e.steps,n=e.columns,r=e.forceUpdate,i=e.grid,o=(0,u.Z)(e,qe),a=(0,Y.d)(o),s=(0,M.useCallback)((function(e){var t,n;null===(t=(n=a.current).onCurrentChange)||void 0===t||t.call(n,e),r([])}),[r,a]),l=(0,M.useMemo)((function(){return null==t?void 0:t.map((function(e,t){return(0,M.createElement)(mt,(0,c.Z)((0,c.Z)({grid:i},e),{},{key:t,layoutType:"StepForm",columns:n[t]}))}))}),[n,i,t]);return(0,Z.jsx)(Ge,(0,c.Z)((0,c.Z)({},o),{},{onCurrentChange:s,children:l}))},Ke=function(e){var t=e.children;return(0,Z.jsx)(Z.Fragment,{children:t})},Je=n(97462),Qe=n(96074),et=n(56499),tt=n(17186),nt=n(69677),rt=n(90789),it=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue","lightProps"],ot=["children","space","valuePropName"],at={space:P.Z,group:nt.Z.Group};var st=function(e){var t=e.children,n=e.value,r=void 0===n?[]:n,i=e.valuePropName,o=e.onChange,a=e.fieldProps,s=e.space,d=e.type,h=void 0===d?"space":d,p=(e.transform,e.convertValue,e.lightProps,(0,u.Z)(e,it)),m=(0,G.J)((function(e,t){var n,s=(0,l.Z)(r);s[t]=function(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&e in t.target?t.target[e]:t}(i||"value",e),null==o||o(s),null==a||null===(n=a.onChange)||void 0===n||n.call(a,s)})),g=-1,v=(0,De.Z)(t).map((function(e){if(M.isValidElement(e)){var t,n,i,o=g+=1,a="ProFormComponent"===(null==e||null===(t=e.type)||void 0===t?void 0:t.displayName)||(null==e||null===(n=e.props)||void 0===n?void 0:n.readonly)?(0,c.Z)((0,c.Z)({key:o,ignoreFormItem:!0},e.props||{}),{},{fieldProps:(0,c.Z)((0,c.Z)({},null==e||null===(i=e.props)||void 0===i?void 0:i.fieldProps),{},{onChange:function(){m(arguments.length<=0?void 0:arguments[0],o)}}),value:null==r?void 0:r[o],onChange:void 0}):(0,c.Z)((0,c.Z)({key:o},e.props||{}),{},{value:null==r?void 0:r[o],onChange:function(t){var n,r;m(t,o),null===(n=(r=e.props).onChange)||void 0===n||n.call(r,t)}});return M.cloneElement(e,a)}return e})),b=at[h],y=(0,f.zx)(p).RowWrapper,w=(0,M.useMemo)((function(){return(0,c.Z)({},"group"===h?{compact:!0}:{})}),[h]),_=(0,M.useCallback)((function(e){var t=e.children;return(0,Z.jsx)(b,(0,c.Z)((0,c.Z)((0,c.Z)({},w),s),{},{align:"start",wrap:!0,children:t}))}),[b,s,w]);return(0,Z.jsx)(y,{Wrapper:_,children:v})},lt=M.forwardRef((function(e,t){var n=e.children,r=e.space,i=e.valuePropName,o=(0,u.Z)(e,ot);return(0,M.useImperativeHandle)(t,(function(){return{}})),(0,Z.jsx)(st,(0,c.Z)((0,c.Z)((0,c.Z)({space:r,valuePropName:i},o.fieldProps),{},{onChange:void 0},o),{},{children:n}))})),ct=(0,rt.G)(lt),ut=be.A.Group,dt=[function(e){return!e.valueType||"string"!=typeof e.valueType||!["index","indexBorder","option"].includes(null==e?void 0:e.valueType)||null},function(e,t){var n,r=t.genItems;return"group"!==e.valueType||(e.columns&&Array.isArray(e.columns)?(0,Z.jsx)(ut,(0,c.Z)((0,c.Z)({label:e.label,colProps:e.colProps,rowProps:e.rowProps},null===(n=e.getFieldProps)||void 0===n?void 0:n.call(e)),{},{children:r(e.columns)}),e.key):null)},function(e,t){var n,r,i=t.genItems;return"formList"!==e.valueType||!e.dataIndex||(e.columns&&Array.isArray(e.columns)?(0,M.createElement)(tt.u,(0,c.Z)((0,c.Z)({},null===(n=e.getFormItemProps)||void 0===n?void 0:n.call(e)),{},{key:e.key,name:e.dataIndex,label:e.label,initialValue:e.initialValue,colProps:e.colProps,rowProps:e.rowProps},null===(r=e.getFieldProps)||void 0===r?void 0:r.call(e)),i(e.columns)):null)},function(e,t){var n,r,i=t.genItems;return"formSet"!==e.valueType||!e.dataIndex||(e.columns&&Array.isArray(e.columns)?(0,M.createElement)(ct,(0,c.Z)((0,c.Z)({},null===(n=e.getFormItemProps)||void 0===n?void 0:n.call(e)),{},{key:e.key,initialValue:e.initialValue,name:e.dataIndex,label:e.label,colProps:e.colProps,rowProps:e.rowProps},null===(r=e.getFieldProps)||void 0===r?void 0:r.call(e)),i(e.columns)):null)},function(e){var t;return"divider"!==e.valueType||(0,M.createElement)(Qe.Z,(0,c.Z)((0,c.Z)({},null===(t=e.getFieldProps)||void 0===t?void 0:t.call(e)),{},{key:e.key}))},function(e,t){if("dependency"===e.valueType){var n,r,i,o=null===(n=e.getFieldProps)||void 0===n?void 0:n.call(e);return(0,E.ET)(Array.isArray(null!==(r=e.name)&&void 0!==r?r:null==o?void 0:o.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),(0,E.ET)("function"==typeof e.columns,'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray(null!==(i=e.name)&&void 0!==i?i:null==o?void 0:o.name)?(0,M.createElement)(Je.Z,(0,c.Z)((0,c.Z)({name:e.name},o),{},{key:e.key}),(function(n){return e.columns&&"function"==typeof e.columns?t.genItems(e.columns(n)):null})):null}return!0}],ft=function(e,t){for(var n=0;no?o:r)}),[null==j?void 0:j.maxWidth,null==j?void 0:j.minWidth,w]),_e=(0,M.useCallback)((function(){document.removeEventListener("mousemove",we),document.removeEventListener("mouseup",_e)}),[we]);return T((0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(ee.Z,(0,c.Z)((0,c.Z)((0,c.Z)({title:y,width:J},h),ye),{},{afterOpenChange:function(e){var t;e||pe(),null==h||null===(t=h.afterOpenChange)||void 0===t||t.call(h,e)},onClose:function(e){var t;g&&W||(ue(!1),null==h||null===(t=h.onClose)||void 0===t||t.call(h,e))},footer:!1!==I.submitter&&(0,Z.jsx)("div",{ref:fe,style:{display:"flex",justifyContent:"flex-end"}}),children:[(0,Z.jsx)("div",{className:_?C()($("sidebar-dragger"),B,(o={},(0,s.Z)(o,$("sidebar-dragger-min-disabled"),J===(null==j?void 0:j.minWidth)),(0,s.Z)(o,$("sidebar-dragger-max-disabled"),J===(null==j?void 0:j.maxWidth)),o)):null,onMouseDown:function(e){var t;null==j||null===(t=j.onResize)||void 0===t||t.call(j),e.stopPropagation(),e.preventDefault(),document.addEventListener("mousemove",we),document.addEventListener("mouseup",_e),q(!0)}}),(0,Z.jsx)(Z.Fragment,{children:(0,Z.jsx)(ie.I,(0,c.Z)((0,c.Z)({formComponentType:"DrawerForm",layout:"vertical"},I),{},{formRef:he,onInit:function(e,t){var n;I.formRef&&(I.formRef.current=t),null==I||null===(n=I.onInit)||void 0===n||n.call(I,e,t),he.current=t},submitter:ge,onFinish:function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be(t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),contentRender:ve,children:l}))})]})),me]}))},QueryFilter:function(e){var t,n=e.collapsed,r=e.layout,i=e.defaultCollapsed,o=void 0===i||i,s=e.defaultColsNumber,l=e.span,d=e.searchGutter,f=void 0===d?24:d,h=(e.searchText,e.resetText,e.optionRender),p=e.collapseRender,g=e.onReset,v=e.onCollapse,y=e.labelWidth,w=void 0===y?"80":y,_=e.style,x=e.split,S=e.preserve,E=void 0===S||S,A=e.ignoreRules,I=e.showHiddenNum,O=void 0!==I&&I,j=e.submitterColSpanProps,R=(0,u.Z)(e,Ie),N=(0,M.useContext)(k.ZP.ConfigContext).getPrefixCls("pro-query-filter"),P=(t=N,(0,m.Xj)("QueryFilter",(function(e){var n=(0,c.Z)((0,c.Z)({},e),{},{componentCls:".".concat(t)});return[Ee(n)]}))),T=P.wrapSSR,B=P.hashId,$=(0,b.Z)((function(){return"number"==typeof(null==_?void 0:_.width)?null==_?void 0:_.width:Re})),D=(0,a.Z)($,2),L=D[0],z=D[1],F=(0,M.useMemo)((function(){return function(e,t,n){if(n&&"number"==typeof n)return{span:n,layout:e};var r=((n?["xs","sm","md","lg","xl","xxl"].map((function(e){return[Oe[e],24/n[e],"horizontal"]})):je[e||"default"])||je.default).find((function(e){return t17&&z(e.width)},children:(0,Z.jsx)(ie.I,(0,c.Z)((0,c.Z)({isKeyPressSubmit:!0,preserve:E},R),{},{className:C()(N,B,R.className),onReset:g,style:_,layout:F.layout,fieldProps:{style:{width:"100%"}},formItemProps:H,groupProps:{titleStyle:{display:"inline-block",marginInlineEnd:16}},contentRender:function(t,r,i){return(0,Z.jsx)(Ze,{spanSize:F,collapsed:n,form:i,submitterColSpanProps:j,collapseRender:p,defaultCollapsed:o,onCollapse:v,optionRender:h,submitter:r,items:t,split:x,baseClassName:N,resetText:e.resetText,searchText:e.searchText,searchGutter:f,preserve:E,ignoreRules:A,showLength:W,showHiddenNum:O})}}))},"resize-observer"))},LightFilter:function(e){var t=e.size,n=e.collapse,r=e.collapseLabel,i=e.initialValues,o=e.onValuesChange,s=e.form,l=e.placement,d=e.formRef,f=e.bordered,h=(e.ignoreRules,e.footerRender),p=(0,u.Z)(e,me),m=(0,(0,M.useContext)(k.ZP.ConfigContext).getPrefixCls)("pro-form"),g=(0,M.useState)((function(){return(0,c.Z)({},i)})),v=(0,a.Z)(g,2),b=v[0],y=v[1],w=(0,M.useRef)();return(0,M.useImperativeHandle)(d,(function(){return w.current}),[w.current]),(0,Z.jsx)(ie.I,(0,c.Z)((0,c.Z)({size:t,initialValues:i,form:s,contentRender:function(e){return(0,Z.jsx)(ge,{prefixCls:m,items:null==e?void 0:e.flatMap((function(e){return"ProForm-Group"===(null==e?void 0:e.type.displayName)?e.props.children:e})),size:t,bordered:f,collapse:n,collapseLabel:r,placement:l,values:b||{},footerRender:h,onValuesChange:function(e){var t,n,r=(0,c.Z)((0,c.Z)({},b),e);y(r),null===(t=w.current)||void 0===t||t.setFieldsValue(r),null===(n=w.current)||void 0===n||n.submit(),o&&o(e,r)}})},formRef:w,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},(0,V.Z)(p,["labelWidth"])),{},{onValuesChange:function(e,t){var n;y(t),null==o||o(e,t),null===(n=w.current)||void 0===n||n.submit()}}))},StepForm:Ge.StepForm,StepsForm:Xe,ModalForm:ve.Y,Embed:Ke,Form:be.A};var mt=function(e){var t=e.columns,n=e.layoutType,r=void 0===n?"Form":n,i=e.type,o=void 0===i?"form":i,s=e.action,l=e.shouldUpdate,d=void 0===l?function(e,t){return(0,y.ZP)(e)!==(0,y.ZP)(t)}:l,f=e.formRef,h=(0,u.Z)(e,ht),p=pt[r]||be.A,m=J.Z.useForm(),g=(0,a.Z)(m,1)[0],b=J.Z.useFormInstance(),w=(0,M.useState)([]),_=(0,a.Z)(w,2)[1],x=(0,M.useState)((function(){return[]})),k=(0,a.Z)(x,2),S=k[0],C=k[1],E=U(e.form||b||g),A=(0,M.useRef)(),I=(0,Y.d)(e),O=(0,G.J)((function(e){return e.filter((function(e){return!(e.hideInForm&&"form"===o)})).sort((function(e,t){return t.order||e.order?(t.order||0)-(e.order||0):(t.index||0)-(e.index||0)})).map((function(e,t){var n=(0,q.h)(e.title,e,"form",(0,Z.jsx)(X.G,{label:e.title,tooltip:e.tooltip||e.tip})),r=(0,v.Y)({title:n,label:n,name:e.name,valueType:(0,q.h)(e.valueType,{}),key:e.key||e.dataIndex||t,columns:e.columns,valueEnum:e.valueEnum,dataIndex:e.dataIndex||e.key,initialValue:e.initialValue,width:e.width,index:e.index,readonly:e.readonly,colSize:e.colSize,colProps:e.colProps,rowProps:e.rowProps,className:e.className,tooltip:e.tooltip||e.tip,dependencies:e.dependencies,proFieldProps:e.proFieldProps,ignoreFormItem:e.ignoreFormItem,getFieldProps:e.fieldProps?function(){return(0,q.h)(e.fieldProps,E.current,e)}:void 0,getFormItemProps:e.formItemProps?function(){return(0,q.h)(e.formItemProps,E.current,e)}:void 0,render:e.render,renderFormItem:e.renderFormItem,renderText:e.renderText,request:e.request,params:e.params,transform:e.transform,convertValue:e.convertValue,debounceTime:e.debounceTime,defaultKeyWords:e.defaultKeyWords});return ft(r,{action:s,type:o,originItem:e,formRef:E,genItems:O})})).filter((function(e){return Boolean(e)}))})),j=(0,M.useCallback)((function(e,t){var n=I.current.onValuesChange;(!0===d||"function"==typeof d&&d(t,A.current))&&C([]),A.current=t,null==n||n(e,t)}),[I,d]),R=(0,K.Z)((function(){if(E.current&&(!t.length||!Array.isArray(t[0])))return O(t)}),[t,null==h?void 0:h.open,s,o,S,!!E.current]),N=(0,K.Z)((function(){return"StepsForm"===r?{forceUpdate:_,columns:t}:{}}),[t,r]);return(0,M.useImperativeHandle)(f,(function(){return E.current}),[E.current]),(0,Z.jsx)(p,(0,c.Z)((0,c.Z)((0,c.Z)({},N),h),{},{onInit:function(e,t){var n;f&&(f.current=t),null==h||null===(n=h.onInit)||void 0===n||n.call(h,e,t),E.current=t},form:e.form||g,formRef:E,onValuesChange:j,children:R}))};var gt=function(e,t,n){return e||"LightFilter"!==n?e?{}:(0,V.Z)((0,c.Z)({labelWidth:t?null==t?void 0:t.labelWidth:void 0,defaultCollapsed:!0},t),["filterType"]):(0,V.Z)((0,c.Z)({},t),["labelWidth","defaultCollapsed","filterType"])},vt=function(e,t){return e?(0,V.Z)(t,["ignoreRules"]):(0,c.Z)({ignoreRules:!0},t)},bt=function(e){var t,n,o,a=e.onSubmit,l=e.formRef,u=e.dateFormatter,d=void 0===u?"string":u,f=e.type,h=e.columns,m=e.action,g=e.ghost,v=e.manualRequest,b=e.onReset,y=e.submitButtonLoading,w=e.search,_=e.form,S=e.bordered,E=(0,M.useContext)(p.L_).hashId,A="form"===f,I=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a&&a(t,n);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),O=(0,M.useContext)(k.ZP.ConfigContext).getPrefixCls,j=(0,M.useMemo)((function(){return h.filter((function(e){return e!==x.Z.EXPAND_COLUMN&&e!==x.Z.SELECTION_COLUMN&&((!e.hideInSearch&&!1!==e.search||"form"===f)&&("form"!==f||!e.hideInForm))})).map((function(e){var t,n=!e.valueType||["textarea","jsonCode","code"].includes(null==e?void 0:e.valueType)&&"table"===f?"text":null==e?void 0:e.valueType,r=(null==e?void 0:e.key)||(null==e||null===(t=e.dataIndex)||void 0===t?void 0:t.toString());return(0,c.Z)((0,c.Z)((0,c.Z)({},e),{},{width:void 0},e.search?e.search:{}),{},{valueType:n,proFieldProps:(0,c.Z)((0,c.Z)({},e.proFieldProps),{},{proFieldKey:r?"table-field-".concat(r):void 0})})}))}),[h,f]),R=O("pro-table-search"),N=O("pro-table-form"),P=(0,M.useMemo)((function(){return function(e,t){return e||!1===t?"Form":"light"===(null==t?void 0:t.filterType)?"LightFilter":"QueryFilter"}(A,w)}),[w,A]),T=(0,M.useMemo)((function(){return{submitter:{submitButtonProps:{loading:y}}}}),[y]);return(0,Z.jsx)("div",{className:C()(E,(t={},(0,s.Z)(t,O("pro-card"),!0),(0,s.Z)(t,"".concat(O("pro-card"),"-border"),!!S),(0,s.Z)(t,"".concat(O("pro-card"),"-bordered"),!!S),(0,s.Z)(t,"".concat(O("pro-card"),"-ghost"),!!g),(0,s.Z)(t,R,!0),(0,s.Z)(t,N,A),(0,s.Z)(t,O("pro-table-search-".concat((n=P,o=n.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o.startsWith("-")&&(o=o.slice(1)),o))),!0),(0,s.Z)(t,"".concat(R,"-ghost"),g),(0,s.Z)(t,null==w?void 0:w.className,!1!==w&&(null==w?void 0:w.className)),t)),children:(0,Z.jsx)(mt,(0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)({layoutType:P,columns:j,type:f},T),gt(A,w,P)),vt(A,_||{})),{},{formRef:l,action:m,dateFormatter:d,onInit:function(e,t){if(l.current=t,"form"!==f){var n,r,i,o=null===(n=m.current)||void 0===n?void 0:n.pageInfo,a=e,s=a.current,u=void 0===s?null==o?void 0:o.current:s,d=a.pageSize,h=void 0===d?null==o?void 0:o.pageSize:d;if(null===(r=m.current)||void 0===r||null===(i=r.setPageInfo)||void 0===i||i.call(r,(0,c.Z)((0,c.Z)({},o),{},{current:parseInt(u,10),pageSize:parseInt(h,10)})),v)return;I(e,!0)}},onReset:function(e){null==b||b(e)},onFinish:function(e){I(e,!1)},initialValues:null==_?void 0:_.initialValues}))})},yt=function(e){(0,F.Z)(n,e);var t=(0,W.Z)(n);function n(){var e;(0,L.Z)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o span":{"> span.anticon":{color:e.colorPrimary}},"> span + span":{marginInlineStart:4}}}),r)),i};var Bt=["key","dataIndex","children"],$t=["disabled"],Dt=function(e){var t=e.title,n=e.show,r=e.children,i=e.columnKey,o=e.fixed,a=(0,M.useContext)(R),l=a.columnsMap,u=a.setColumnsMap;return n?(0,Z.jsx)(xt.Z,{title:t,children:(0,Z.jsx)("span",{onClick:function(e){e.stopPropagation(),e.preventDefault();var t=l[i]||{},n=(0,c.Z)((0,c.Z)({},l),{},(0,s.Z)({},i,(0,c.Z)((0,c.Z)({},t),{},{fixed:o})));u(n)},children:r})}):null},Lt=function(e){var t=e.columnKey,n=e.isLeaf,r=e.title,i=e.className,o=e.fixed,a=e.showListItemOption,s=(0,p.YB)(),l=(0,M.useContext)(p.L_).hashId,c=(0,Z.jsxs)("span",{className:"".concat(i,"-list-item-option ").concat(l).trim(),children:[(0,Z.jsx)(Dt,{columnKey:t,fixed:"left",title:s.getMessage("tableToolBar.leftPin","固定在列首"),show:"left"!==o,children:(0,Z.jsx)(kt.Z,{})}),(0,Z.jsx)(Dt,{columnKey:t,fixed:void 0,title:s.getMessage("tableToolBar.noPin","不固定"),show:!!o,children:(0,Z.jsx)(Mt,{})}),(0,Z.jsx)(Dt,{columnKey:t,fixed:"right",title:s.getMessage("tableToolBar.rightPin","固定在列尾"),show:"right"!==o,children:(0,Z.jsx)(It,{})})]});return(0,Z.jsxs)("span",{className:"".concat(i,"-list-item ").concat(l).trim(),children:[(0,Z.jsx)("div",{className:"".concat(i,"-list-item-title ").concat(l).trim(),children:r}),a&&!n?c:null]},t)},zt=function(e){var t,n,r,i=e.list,o=e.draggable,a=e.checkable,s=e.showListItemOption,d=e.className,f=e.showTitle,h=void 0===f||f,m=e.title,g=e.listHeight,v=void 0===g?280:g,b=(0,M.useContext)(p.L_).hashId,y=(0,M.useContext)(R),w=y.columnsMap,_=y.setColumnsMap,x=y.sortKeyColumns,k=y.setSortKeyColumns,S=i&&i.length>0,C=(0,M.useMemo)((function(){if(!S)return{};var e=[],t=new Map;return{list:function n(r,i){return r.map((function(r){var o,a=r.key,s=(r.dataIndex,r.children),l=(0,u.Z)(r,Bt),d=O(a,[null==i?void 0:i.columnKey,l.index].filter(Boolean).join("-")),f=w[d||"null"]||{show:!0};!1===f.show||s||e.push(d);var h,p=(0,c.Z)((0,c.Z)({key:d},(0,V.Z)(l,["className"])),{},{selectable:!1,disabled:!0===f.disable,disableCheckbox:"boolean"==typeof f.disable?f.disable:null===(o=f.disable)||void 0===o?void 0:o.checkbox,isLeaf:!!i||void 0});s&&(p.children=n(s,(0,c.Z)((0,c.Z)({},f),{},{columnKey:d})),null!==(h=p.children)&&void 0!==h&&h.every((function(t){return null==e?void 0:e.includes(t.key)}))&&e.push(d));return t.set(a,p),p}))}(i),keys:e,map:t}}),[w,i,S]),E=(0,G.J)((function(e,t,n){var r=(0,c.Z)({},w),i=(0,l.Z)(x),o=i.findIndex((function(t){return t===e})),a=i.findIndex((function(e){return e===t})),s=n>o;if(!(o<0)){var u=i[o];i.splice(o,1),0===n?i.unshift(u):i.splice(s?a:a+1,0,u),i.forEach((function(e,t){r[e]=(0,c.Z)((0,c.Z)({},r[e]||{}),{},{order:t})})),_(r),k(i)}})),A=(0,G.J)((function(e){var t=(0,c.Z)({},w);!function n(r){var i,o,a=(0,c.Z)({},t[r]);(a.show=e.checked,null!==(i=C.map)&&void 0!==i&&null!==(i=i.get(r))&&void 0!==i&&i.children)&&(null===(o=C.map.get(r))||void 0===o||null===(o=o.children)||void 0===o||o.forEach((function(e){return n(e.key)})));t[r]=a}(e.node.key),_((0,c.Z)({},t))}));if(!S)return null;var I=(0,Z.jsx)(Rt.Z,{itemHeight:24,draggable:o&&!(null===(t=C.list)||void 0===t||!t.length)&&(null===(n=C.list)||void 0===n?void 0:n.length)>1,checkable:a,onDrop:function(e){var t=e.node.key,n=e.dragNode.key,r=e.dropPosition,i=e.dropToGap;E(n,t,-1!==r&&i?r:r+1)},blockNode:!0,onCheck:function(e,t){return A(t)},checkedKeys:C.keys,showLine:!1,titleRender:function(e){var t=(0,c.Z)((0,c.Z)({},e),{},{children:void 0});return t.title?(0,Z.jsx)(Lt,(0,c.Z)((0,c.Z)({className:d},t),{},{showListItemOption:s,title:(0,q.h)(t.title,t),columnKey:t.key})):null},height:v,treeData:null===(r=C.list)||void 0===r?void 0:r.map((function(e){e.disabled;return(0,u.Z)(e,$t)}))});return(0,Z.jsxs)(Z.Fragment,{children:[h&&(0,Z.jsx)("span",{className:"".concat(d,"-list-title ").concat(b).trim(),children:m}),I]})},Ft=function(e){var t=e.localColumns,n=e.className,r=e.draggable,i=e.checkable,o=e.showListItemOption,a=e.listsHeight,l=(0,M.useContext)(p.L_).hashId,c=[],u=[],d=[],f=(0,p.YB)();t.forEach((function(e){if(!e.hideInSetting){var t=e.fixed;"left"!==t?"right"!==t?d.push(e):c.push(e):u.push(e)}}));var h=c&&c.length>0,m=u&&u.length>0;return(0,Z.jsxs)("div",{className:C()("".concat(n,"-list"),l,(0,s.Z)({},"".concat(n,"-list-group"),h||m)),children:[(0,Z.jsx)(zt,{title:f.getMessage("tableToolBar.leftFixedTitle","固定在左侧"),list:u,draggable:r,checkable:i,showListItemOption:o,className:n,listHeight:a}),(0,Z.jsx)(zt,{list:d,draggable:r,checkable:i,showListItemOption:o,title:f.getMessage("tableToolBar.noFixedTitle","不固定"),showTitle:m||h,className:n,listHeight:a}),(0,Z.jsx)(zt,{title:f.getMessage("tableToolBar.rightFixedTitle","固定在右侧"),list:c,draggable:r,checkable:i,showListItemOption:o,className:n,listHeight:a})]})};var Wt=function(e){var t,n,r,i,o=(0,M.useRef)(null),a=(0,M.useContext)(R),s=e.columns,l=e.checkedReset,u=void 0===l||l,d=a.columnsMap,f=a.setColumnsMap,h=a.clearPersistenceStorage;(0,M.useEffect)((function(){var e,t;null!==(e=a.propsRef.current)&&void 0!==e&&null!==(e=e.columnsState)&&void 0!==e&&e.value&&(o.current=JSON.parse(JSON.stringify((null===(t=a.propsRef.current)||void 0===t||null===(t=t.columnsState)||void 0===t?void 0:t.value)||{})))}),[]);var g,v=(0,G.J)((function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={},n=function n(r){r.forEach((function(r){var i,o,a=r.key,s=r.fixed,l=r.index,c=r.children,u=r.disable,f=O(a,l);f&&(t[f]={show:u?null===(i=d[f])||void 0===i?void 0:i.show:e,fixed:s,disable:u,order:null===(o=d[f])||void 0===o?void 0:o.order});c&&n(c)}))};n(s),f(t)})),b=(0,G.J)((function(e){e.target.checked?v():v(!1)})),y=(0,G.J)((function(){var e;null==h||h(),f((null===(e=a.propsRef.current)||void 0===e||null===(e=e.columnsState)||void 0===e?void 0:e.defaultValue)||o.current||a.defaultColumnKeyMap)})),w=Object.values(d).filter((function(e){return!e||!1===e.show})),_=w.length>0&&w.length!==s.length,x=(0,p.YB)(),S=(0,(0,M.useContext)(k.ZP.ConfigContext).getPrefixCls)("pro-table-column-setting"),C=(g=S,(0,m.Xj)("ColumnSetting",(function(e){var t=(0,c.Z)((0,c.Z)({},e),{},{componentCls:".".concat(g)});return[Tt(t)]}))),E=C.wrapSSR,A=C.hashId;return E((0,Z.jsx)(Nt.Z,{arrow:!1,title:(0,Z.jsxs)("div",{className:"".concat(S,"-title ").concat(A).trim(),children:[!1===e.checkable?(0,Z.jsx)("div",{}):(0,Z.jsx)(Pt.Z,{indeterminate:_,checked:0===w.length&&w.length!==s.length,onChange:function(e){b(e)},children:x.getMessage("tableToolBar.columnDisplay","列展示")}),u?(0,Z.jsx)("a",{onClick:y,className:"".concat(S,"-action-rest-button ").concat(A).trim(),children:x.getMessage("tableToolBar.reset","重置")}):null,null!=e&&e.extra?(0,Z.jsx)(P.Z,{size:12,align:"center",children:e.extra}):null]}),overlayClassName:"".concat(S,"-overlay ").concat(A).trim(),trigger:"click",placement:"bottomRight",content:(0,Z.jsx)(Ft,{checkable:null===(t=e.checkable)||void 0===t||t,draggable:null===(n=e.draggable)||void 0===n||n,showListItemOption:null===(r=e.showListItemOption)||void 0===r||r,className:S,localColumns:s,listsHeight:e.listsHeight}),children:e.children||(0,Z.jsx)(xt.Z,{title:x.getMessage("tableToolBar.columnSetting","列设置"),children:null!==(i=e.settingIcon)&&void 0!==i?i:(0,Z.jsx)(Zt,{})})}))},Ht=n(92398),Vt=n(68508),Ut=function(e){var t=(0,Pe.n)((0,Q.b)(),"4.24.0")>-1?{menu:e}:{overlay:(0,Z.jsx)(Vt.Z,(0,c.Z)({},e))};return(0,v.Y)(t)},Yt=n(85418),Gt=function(e){var t=(0,M.useContext)(p.L_).hashId,n=e.items,r=void 0===n?[]:n,i=e.type,o=void 0===i?"inline":i,s=e.prefixCls,l=e.activeKey,u=e.defaultActiveKey,d=(0,b.Z)(l||u,{value:l,onChange:e.onChange}),f=(0,a.Z)(d,2),h=f[0],m=f[1];if(r.length<1)return null;var g=r.find((function(e){return e.key===h}))||r[0];if("inline"===o)return(0,Z.jsx)("div",{className:C()("".concat(s,"-menu"),"".concat(s,"-inline-menu"),t),children:r.map((function(e,n){return(0,Z.jsx)("div",{onClick:function(){m(e.key)},className:C()("".concat(s,"-inline-menu-item"),g.key===e.key?"".concat(s,"-inline-menu-item-active"):void 0,t),children:e.label},e.key||n)}))});if("tab"===o)return(0,Z.jsx)(Ht.Z,{items:r.map((function(e){var t;return(0,c.Z)((0,c.Z)({},e),{},{key:null===(t=e.key)||void 0===t?void 0:t.toString()})})),activeKey:g.key,onTabClick:function(e){return m(e)},children:(0,Pe.n)(Te.Z,"4.23.0")<0?null==r?void 0:r.map((function(e,t){return(0,M.createElement)(Ht.Z.TabPane,(0,c.Z)((0,c.Z)({},e),{},{key:e.key||t,tab:e.label}))})):null});var v=Ut({selectedKeys:[g.key],onClick:function(e){m(e.key)},items:r.map((function(e,t){return{key:e.key||t,disabled:e.disabled,label:e.label}}))});return(0,Z.jsx)("div",{className:C()("".concat(s,"-menu"),"".concat(s,"-dropdownmenu")),children:(0,Z.jsx)(Yt.Z,(0,c.Z)((0,c.Z)({trigger:["click"]},v),{},{children:(0,Z.jsxs)(P.Z,{className:"".concat(s,"-dropdownmenu-label"),children:[g.label,(0,Z.jsx)(ke.Z,{})]})}))})},qt=function(e){var t,n;return(0,s.Z)({},e.componentCls,(n={lineHeight:"1","&-container":{display:"flex",justifyContent:"space-between",paddingBlock:e.padding,paddingInline:0,"&-mobile":{flexDirection:"column"}},"&-title":{display:"flex",alignItems:"center",justifyContent:"flex-start",color:e.colorTextHeading,fontWeight:"500",fontSize:e.fontSizeLG},"&-search:not(:last-child)":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"&-setting-item":{marginBlock:0,marginInline:4,color:e.colorIconHover,fontSize:e.fontSizeLG,cursor:"pointer","> span":{display:"block",width:"100%",height:"100%"},"&:hover":{color:e.colorPrimary}},"&-left":(t={display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.marginXS,justifyContent:"flex-start",maxWidth:"calc(100% - 200px)",flex:1},(0,s.Z)(t,"".concat(e.antCls,"-tabs"),{width:"100%"}),(0,s.Z)(t,"&-has-tabs",{overflow:"hidden"}),t),"&-right":{flex:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-end",gap:e.marginXS},"&-extra-line":{marginBlockEnd:e.margin},"&-setting-items":{display:"flex",gap:e.marginXS,lineHeight:"32px",alignItems:"center"},"&-filter":(0,s.Z)({"&:not(:last-child)":{marginInlineEnd:e.margin},display:"flex",alignItems:"center"},"div$".concat(e.antCls,"-pro-table-search"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0}),"&-inline-menu-item":{display:"inline-block",marginInlineEnd:e.marginLG,cursor:"pointer",opacity:"0.75","&-active":{fontWeight:"bold",opacity:"1"}}},(0,s.Z)(n,"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),(0,s.Z)({marginBlockEnd:0,"&::before":{borderBlockEnd:0}},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:0,"${token.antCls}-tabs-tab":{paddingBlockStart:0}})),(0,s.Z)(n,"&-dropdownmenu-label",{fontWeight:"bold",fontSize:e.fontSizeIcon,textAlign:"center",cursor:"pointer"}),(0,s.Z)(n,"@media (max-width: 768px)",(0,s.Z)({},e.componentCls,{"&-container":{display:"flex",flexWrap:"wrap",flexDirection:"column"},"&-left":{marginBlockEnd:"16px",maxWidth:"100%"}})),n))};var Xt=function(e){var t,n=e.prefixCls,r=e.tabs,i=e.multipleLine,o=e.filtersNode;return i?(0,Z.jsx)("div",{className:"".concat(n,"-extra-line"),children:null!=r&&r.items&&null!=r&&r.items.length?(0,Z.jsx)(Ht.Z,{style:{width:"100%"},defaultActiveKey:r.defaultActiveKey,activeKey:r.activeKey,items:r.items.map((function(e,t){var n;return(0,c.Z)((0,c.Z)({label:e.tab},e),{},{key:(null===(n=e.key)||void 0===n?void 0:n.toString())||(null==t?void 0:t.toString())})})),onChange:r.onChange,tabBarExtraContent:o,children:null===(t=r.items)||void 0===t?void 0:t.map((function(e,t){return(0,Pe.n)(Te.Z,"4.23.0")<0?(0,M.createElement)(Ht.Z.TabPane,(0,c.Z)((0,c.Z)({},e),{},{key:e.key||t,tab:e.tab})):null}))}):o}):null},Kt=function(e){var t=e.prefixCls,n=e.title,o=e.subTitle,l=e.tooltip,u=e.className,d=e.style,f=e.search,h=e.onSearch,g=e.multipleLine,v=void 0!==g&&g,b=e.filter,y=e.actions,w=void 0===y?[]:y,_=e.settings,x=void 0===_?[]:_,S=e.tabs,E=e.menu,A=(0,M.useContext)(k.ZP.ConfigContext).getPrefixCls,I=m.Ow.useToken().token,O=A("pro-table-list-toolbar",t),j=function(e){return(0,m.Xj)("ProTableListToolBar",(function(t){var n=(0,c.Z)((0,c.Z)({},t),{},{componentCls:".".concat(e)});return[qt(n)]}))}(O),R=j.wrapSSR,N=j.hashId,P=(0,p.YB)(),T=(0,M.useState)(!1),B=(0,a.Z)(T,2),$=B[0],D=B[1],L=P.getMessage("tableForm.inputPlaceholder","请输入"),z=(0,M.useMemo)((function(){return f?M.isValidElement(f)?f:(0,Z.jsx)(nt.Z.Search,(0,c.Z)((0,c.Z)({style:{width:200},placeholder:L},f),{},{onSearch:(0,i.Z)((0,r.Z)().mark((function e(){var t,n,i,o,a,s=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(i=s.length,o=new Array(i),a=0;aa":{fontSize:e.fontSize}}),(0,s.Z)(r,"".concat(e.antCls,"-table").concat(e.antCls,"-table-tbody").concat(e.antCls,"-table-wrapper:only-child").concat(e.antCls,"-table"),{marginBlock:0,marginInline:0}),(0,s.Z)(r,"".concat(e.antCls,"-table").concat(e.antCls,"-table-middle ").concat(e.componentCls),(0,s.Z)({marginBlock:0,marginInline:-8},"".concat(e.proComponentsCls,"-card"),{backgroundColor:"initial"})),(0,s.Z)(r,"& &-search",(n={marginBlockEnd:"16px",background:e.colorBgContainer,"&-ghost":{background:"transparent"}},(0,s.Z)(n,"&".concat(e.componentCls,"-form"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:16,overflow:"unset"}),(0,s.Z)(n,"&-light-filter",{marginBlockEnd:0,paddingBlock:0,paddingInline:0}),(0,s.Z)(n,"&-form-option",(t={},(0,s.Z)(t,"".concat(e.antCls,"-form-item"),{}),(0,s.Z)(t,"".concat(e.antCls,"-form-item-label"),{}),(0,s.Z)(t,"".concat(e.antCls,"-form-item-control-input"),{}),t)),(0,s.Z)(n,"@media (max-width: 575px)",(0,s.Z)({},e.componentCls,(0,s.Z)({height:"auto !important",paddingBlockEnd:"24px"},"".concat(e.antCls,"-form-item-label"),{minWidth:"80px",textAlign:"start"}))),n)),(0,s.Z)(r,"&-toolbar",{display:"flex",alignItems:"center",justifyContent:"space-between",height:"64px",paddingInline:24,paddingBlock:0,"&-option":{display:"flex",alignItems:"center",justifyContent:"flex-end"},"&-title":{flex:"1",color:e.colorTextLabel,fontWeight:"500",fontSize:"16px",lineHeight:"24px",opacity:"0.85"}}),r)),(0,s.Z)(i,"@media (max-width: ".concat(e.screenXS,")px"),(0,s.Z)({},e.componentCls,(0,s.Z)({},"".concat(e.antCls,"-table"),{width:"100%",overflowX:"auto","&-thead > tr,&-tbody > tr":{"> th,> td":{whiteSpace:"pre",">span":{display:"block"}}}}))),(0,s.Z)(i,"@media (max-width: 575px)",(0,s.Z)({},"".concat(e.componentCls,"-toolbar"),{flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",height:"auto",marginBlockEnd:"16px",marginInlineStart:"16px",paddingBlock:8,paddingInline:8,paddingBlockStart:"16px",lineHeight:"normal","&-title":{marginBlockEnd:16},"&-option":{display:"flex",justifyContent:"space-between",width:"100%"},"&-default-option":{display:"flex",flex:"1",alignItems:"center",justifyContent:"flex-end"}})),i};var yn=n(26369),wn=n(10178),_n=["data","success","total"],xn=function(e,t,n){var s,d,f,h,p=(0,M.useRef)(!1),m=(0,M.useRef)(null),g=n||{},v=g.onLoad,y=g.manual,_=g.polling,x=g.onRequestError,k=g.debounceTime,S=void 0===k?20:k,C=g.effects,E=void 0===C?[]:C,I=(0,M.useRef)(y),O=(0,M.useRef)(),j=(0,b.Z)(t,{value:null==n?void 0:n.dataSource,onChange:null==n?void 0:n.onDataSourceChange}),Z=(0,a.Z)(j,2),R=Z[0],N=Z[1],P=(0,b.Z)(!1,{value:"object"===(0,o.Z)(null==n?void 0:n.loading)?null==n||null===(s=n.loading)||void 0===s?void 0:s.spinning:null==n?void 0:n.loading,onChange:null==n?void 0:n.onLoadingChange}),T=(0,a.Z)(P,2),B=T[0],$=T[1],D=(0,b.Z)((function(){return function(e){var t=e.pageInfo;if(t){var n=t.current,r=t.defaultCurrent,i=t.pageSize,o=t.defaultPageSize;return{current:n||r||1,total:0,pageSize:i||o||20}}return{current:1,total:0,pageSize:20}}(n)}),{onChange:null==n?void 0:n.onPageInfoChange}),L=(0,a.Z)(D,2),z=L[0],F=L[1],W=(0,G.J)((function(e){e.current===z.current&&e.pageSize===z.pageSize&&e.total===z.total||F(e)})),H=(0,b.Z)(!1),V=(0,a.Z)(H,2),U=V[0],Y=V[1],X=function(e,t){(0,re.unstable_batchedUpdates)((function(){N(e),(null==z?void 0:z.total)!==t&&W((0,c.Z)((0,c.Z)({},z),{},{total:t||e.length}))}))},K=(0,yn.D)(null==z?void 0:z.current),J=(0,yn.D)(null==z?void 0:z.pageSize),Q=(0,yn.D)(_),ee=(0,G.J)((function(){(0,re.unstable_batchedUpdates)((function(){$(!1),Y(!1)}))})),te=function(){var t=(0,i.Z)((0,r.Z)().mark((function t(i){var o,a,s,l,c,d,f,h,p,m,g,b;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!I.current){t.next=3;break}return I.current=!1,t.abrupt("return");case 3:return i?Y(!0):$(!0),a=(o=z||{}).pageSize,s=o.current,t.prev=5,l=!1!==(null==n?void 0:n.pageInfo)?{current:s,pageSize:a}:void 0,t.next=9,null==e?void 0:e(l);case 9:if(t.t0=t.sent,t.t0){t.next=12;break}t.t0={};case 12:if(c=t.t0,d=c.data,f=void 0===d?[]:d,h=c.success,p=c.total,m=void 0===p?0:p,g=(0,u.Z)(c,_n),!1!==h){t.next=21;break}return t.abrupt("return",[]);case 21:return b=A(f,[n.postData].filter((function(e){return e}))),X(b,m),null==v||v(b,g),t.abrupt("return",b);case 27:if(t.prev=27,t.t1=t.catch(5),void 0!==x){t.next=31;break}throw new Error(t.t1);case 31:void 0===R&&N([]),x(t.t1);case 33:return t.prev=33,ee(),t.finish(33);case 36:return t.abrupt("return",[]);case 37:case"end":return t.stop()}}),t,null,[[5,27,33,36]])})));return function(e){return t.apply(this,arguments)}}(),ne=(0,wn.D)(function(){var t=(0,i.Z)((0,r.Z)().mark((function t(n){var i,o,a;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(O.current&&clearTimeout(O.current),e){t.next=3;break}return t.abrupt("return");case 3:return i=new AbortController,m.current=i,t.prev=5,t.next=8,Promise.race([te(n),new Promise((function(e,t){var n,r;null===(n=m.current)||void 0===n||null===(n=n.signal)||void 0===n||null===(r=n.addEventListener)||void 0===r||r.call(n,"abort",(function(){t("aborted"),ne.cancel(),ee()}))}))]);case 8:if(o=t.sent,!i.signal.aborted){t.next=11;break}return t.abrupt("return");case 11:return(a=(0,q.h)(_,o))&&!p.current&&(O.current=setTimeout((function(){ne.run(a)}),Math.max(a,2e3))),t.abrupt("return",o);case 16:if(t.prev=16,t.t0=t.catch(5),"aborted"!==t.t0){t.next=20;break}return t.abrupt("return");case 20:throw t.t0;case 21:case"end":return t.stop()}}),t,null,[[5,16]])})));return function(e){return t.apply(this,arguments)}}(),S||30),ie=function(){var e;null===(e=m.current)||void 0===e||e.abort(),ne.cancel(),ee()};return(0,M.useEffect)((function(){return _||clearTimeout(O.current),!Q&&_&&ne.run(!0),function(){clearTimeout(O.current)}}),[_]),(0,M.useEffect)((function(){return p.current=!1,function(){p.current=!0}}),[]),(0,M.useEffect)((function(){var e=z||{},t=e.current,r=e.pageSize;(K&&K!==t||J&&J!==r)&&(n.pageInfo&&R&&(null==R?void 0:R.length)>r||void 0!==t&&R&&R.length<=r&&(ie(),ne.run(!1)))}),[null==z?void 0:z.current]),(0,M.useEffect)((function(){J&&(ie(),ne.run(!1))}),[null==z?void 0:z.pageSize]),(0,w.KW)((function(){return ie(),ne.run(!1),y||(I.current=!1),function(){ie()}}),[].concat((0,l.Z)(E),[y])),{dataSource:R,setDataSource:N,loading:"object"===(0,o.Z)(null==n?void 0:n.loading)?(0,c.Z)((0,c.Z)({},null==n?void 0:n.loading),{},{spinning:B}):B,reload:(h=(0,i.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ie(),e.abrupt("return",ne.run(!1));case 2:case"end":return e.stop()}}),e)}))),function(){return h.apply(this,arguments)}),pageInfo:z,pollingLoading:U,reset:(f=(0,i.Z)((0,r.Z)().mark((function e(){var t,i,o,a,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(n||{}).pageInfo,o=(i=t||{}).defaultCurrent,a=void 0===o?1:o,s=i.defaultPageSize,W({current:a,total:0,pageSize:void 0===s?20:s});case 4:case"end":return e.stop()}}),e)}))),function(){return f.apply(this,arguments)}),setPageInfo:(d=(0,i.Z)((0,r.Z)().mark((function e(t){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:W((0,c.Z)((0,c.Z)({},z),t));case 1:case"end":return e.stop()}}),e)}))),function(e){return d.apply(this,arguments)})}},kn=n(60692),Sn=n(77398),Cn=n(74763),Mn=n(88306),En=n(66758),An=n(90081),In=n(2026),On=["children"],jn=["",null,void 0],Zn=function(){for(var e=arguments.length,t=new Array(e),n=0;nf.length?(f.push(o),f):(f.splice((null==p?void 0:p.current)*(null==p?void 0:p.pageSize)-1,0,o),f)}return[].concat((0,l.Z)(i.dataSource),[o])},U=function(){return(0,c.Z)((0,c.Z)({},z),{},{size:b,rowSelection:!1===m?void 0:m,className:n,style:y,columns:W.map((function(e){return e.isExtraColumns?e.extraColumn:e})),loading:i.loading,dataSource:D.newLineRecord?V(i.dataSource):i.dataSource,pagination:p,onChange:function(e,t,n,r){var i;if(null===(i=z.onChange)||void 0===i||i.call(z,e,t,n,r),H||N((0,v.Y)(t)),Array.isArray(n)){var o=n.reduce((function(e,t){return(0,c.Z)((0,c.Z)({},e),{},(0,s.Z)({},"".concat(t.field),t.order))}),{});j((0,v.Y)(o))}else{var a,l=null===(a=n.column)||void 0===a?void 0:a.sorter,u=(null==l?void 0:l.toString())===l;j((0,v.Y)((0,s.Z)({},"".concat(u?l:n.field),n.order)))}}})},Y=(0,M.useMemo)((function(){return!1===e.search&&!e.headerTitle&&!1===e.toolBarRender}),[]),G=(0,Z.jsx)(f._p.Provider,{value:{grid:!1,colProps:void 0,rowProps:void 0},children:(0,Z.jsx)(x.Z,(0,c.Z)((0,c.Z)({},U()),{},{rowKey:t}))}),q=e.tableViewRender?e.tableViewRender((0,c.Z)((0,c.Z)({},U()),{},{rowSelection:!1!==m?m:void 0}),G):G,X=(0,M.useMemo)((function(){var t,n,r;return e.editable&&!e.name?(0,Z.jsxs)(Z.Fragment,{children:[w,A,(0,M.createElement)(h.ZP,(0,c.Z)((0,c.Z)({},null===(t=e.editable)||void 0===t?void 0:t.formProps),{},{formRef:null===(n=e.editable)||void 0===n||null===(n=n.formProps)||void 0===n?void 0:n.formRef,component:!1,form:null===(r=e.editable)||void 0===r?void 0:r.form,onValuesChange:D.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:e.dateFormatter}),q)]}):(0,Z.jsxs)(Z.Fragment,{children:[w,A,q]})}),[A,e.loading,!!e.editable,q,w]),K=(0,M.useMemo)((function(){return!1===E||!0===Y||e.name?{}:w||w&&!1===p?{paddingBlockStart:0}:{padding:0}}),[Y,p,e.name,E,w]),J=!1===E||!0===Y||e.name?X:(0,Z.jsx)(d,(0,c.Z)((0,c.Z)({ghost:e.ghost,bordered:I("table",$),bodyStyle:K},E),{},{children:X})),Q=(0,Z.jsxs)("div",{className:C()(B,(0,s.Z)({},"".concat(r,"-polling"),i.pollingLoading)),style:S,ref:F.rootDomRef,children:[T?null:_,"form"!==a&&e.tableExtraRender&&(0,Z.jsx)("div",{className:C()(B,"".concat(r,"-extra")),children:e.tableExtraRender(e,i.dataSource||[])}),"form"!==a&&(e.tableRender?e.tableRender(e,J,{toolbar:w||void 0,alert:A||void 0,table:q||void 0}):J)]});return P&&null!=P&&P.fullScreen?(0,Z.jsx)(k.ZP,{getPopupContainer:function(){return F.rootDomRef.current||document.body},children:Q}):Q}var Ln={},zn=function(e){e.cardBordered;var t,n,l=e.request,d=e.className,f=e.params,h=void 0===f?Ln:f,v=e.defaultData,_=e.headerTitle,x=e.postData,k=e.ghost,S=e.pagination,E=e.actionRef,A=e.columns,I=void 0===A?[]:A,N=e.toolBarRender,P=e.optionsRender,T=e.onLoad,B=e.onRequestError,D=(e.style,e.cardProps,e.tableStyle,e.tableClassName,e.columnsStateMap,e.onColumnsStateChange,e.options),L=e.search,z=e.name,F=e.onLoadingChange,W=e.rowSelection,H=void 0!==W&&W,V=e.beforeSearchSubmit,U=e.tableAlertRender,Y=e.defaultClassName,G=e.formRef,q=e.type,X=void 0===q?"table":q,K=e.columnEmptyText,J=void 0===K?"-":K,Q=e.toolbar,ee=e.rowKey,te=e.manualRequest,ne=e.polling,re=e.tooltip,ie=e.revalidateOnFocus,oe=void 0!==ie&&ie,ae=e.searchFormRender,se=(0,u.Z)(e,$n),le=(n=e.defaultClassName,(0,m.Xj)("ProTable",(function(e){var t=(0,c.Z)((0,c.Z)({},e),{},{componentCls:".".concat(n)});return[bn(t)]}))),ce=le.wrapSSR,ue=le.hashId,de=C()(Y,d,ue),fe=(0,M.useRef)(),he=(0,M.useRef)(),pe=G||he;(0,M.useImperativeHandle)(E,(function(){return fe.current}));var me=(0,b.Z)(H?(null==H?void 0:H.defaultSelectedRowKeys)||[]:void 0,{value:H?H.selectedRowKeys:void 0}),ge=(0,a.Z)(me,2),ve=ge[0],be=ge[1],ye=(0,b.Z)((function(){if(!te&&!1===L)return{}})),we=(0,a.Z)(ye,2),_e=we[0],xe=we[1],ke=(0,b.Z)({}),Se=(0,a.Z)(ke,2),Ce=Se[0],Me=Se[1],Ee=(0,b.Z)({}),Ae=(0,a.Z)(Ee,2),Ie=Ae[0],Oe=Ae[1];(0,M.useEffect)((function(){var e=j(I),t=e.sort,n=e.filter;Me(n),Oe(t)}),[]);var je=(0,p.YB)(),Ze="object"===(0,o.Z)(S)?S:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},Re=(0,M.useContext)(R),Ne=(0,M.useMemo)((function(){if(l)return function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(n=(0,c.Z)((0,c.Z)((0,c.Z)({},t||{}),_e),h))._timestamp,e.next=4,l(n,Ie,Ce);case 4:return i=e.sent,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),[_e,h,Ce,Ie,l]),Pe=xn(Ne,v,{pageInfo:!1!==S&&Ze,loading:e.loading,dataSource:e.dataSource,onDataSourceChange:e.onDataSourceChange,onLoad:T,onLoadingChange:F,onRequestError:B,postData:x,revalidateOnFocus:oe,manual:void 0===_e,polling:ne,effects:[(0,y.ZP)(h),(0,y.ZP)(_e),(0,y.ZP)(Ce),(0,y.ZP)(Ie)],debounceTime:e.debounceTime,onPageInfoChange:function(e){var t,n;S&&Ne&&(null==S||null===(t=S.onChange)||void 0===t||t.call(S,e.current,e.pageSize),null==S||null===(n=S.onShowSizeChange)||void 0===n||n.call(S,e.current,e.pageSize))}});(0,M.useEffect)((function(){var t;if(!e.manualRequest&&e.request&&oe&&(null===(t=e.form)||void 0===t||!t.ignoreRules)){var n=function(){"visible"===document.visibilityState&&Pe.reload()};return document.addEventListener("visibilitychange",n),function(){return document.removeEventListener("visibilitychange",n)}}}),[]);var Te=M.useRef(new Map),Be=M.useMemo((function(){return"function"==typeof ee?ee:function(t,n){var r;return-1===n?null==t?void 0:t[ee]:e.name?null==n?void 0:n.toString():null!==(r=null==t?void 0:t[ee])&&void 0!==r?r:null==n?void 0:n.toString()}}),[e.name,ee]);(0,M.useMemo)((function(){var e;return null!==(e=Pe.dataSource)&&void 0!==e&&e.length?Pe.dataSource.map((function(e){var t=Be(e,-1);return Te.current.set(t,e),t})):[]}),[Pe.dataSource,Be]);var $e=(0,M.useMemo)((function(){var e=!1!==S&&(0,c.Z)({},S),t=(0,c.Z)((0,c.Z)({},Pe.pageInfo),{},{setPageInfo:function(e){var t=e.pageSize,n=e.current,r=Pe.pageInfo;t!==r.pageSize&&1!==r.current?(l&&Pe.setDataSource([]),Pe.setPageInfo({pageSize:t,current:"list"===X?n:1})):Pe.setPageInfo({pageSize:t,current:n})}});return l&&e&&(delete e.onChange,delete e.onShowSizeChange),function(e,t,n){var r,i;if(!1===e)return!1;var a=t.total,s=t.current,l=t.pageSize,u=t.setPageInfo,d="object"===(0,o.Z)(e)?e:{};return(0,c.Z)((0,c.Z)({showTotal:function(e,t){return"".concat(n.getMessage("pagination.total.range","第")," ").concat(t[0],"-").concat(t[1]," ").concat(n.getMessage("pagination.total.total","条/总共")," ").concat(e," ").concat(n.getMessage("pagination.total.item","条"))},total:a},d),{},{current:!0!==e&&e&&null!==(r=e.current)&&void 0!==r?r:s,pageSize:!0!==e&&e&&null!==(i=e.pageSize)&&void 0!==i?i:l,onChange:function(t,n){var r=e.onChange;null==r||r(t,n||20),n===l&&s===t||u({pageSize:n,current:t})}})}(e,t,je)}),[S,Pe,je]);(0,w.KW)((function(){var t;e.request&&h&&Pe.dataSource&&1!==(null==Pe||null===(t=Pe.pageInfo)||void 0===t?void 0:t.current)&&Pe.setPageInfo({current:1})}),[h]),Re.setPrefixName(e.name);var De=(0,M.useCallback)((function(){H&&H.onChange&&H.onChange([],[],{type:"none"}),be([])}),[H,be]);Re.propsRef.current=e;var Le=(0,g.CB)((0,c.Z)((0,c.Z)({},e.editable),{},{tableName:e.name,getRowKey:Be,childrenColumnName:(null===(t=e.expandable)||void 0===t?void 0:t.childrenColumnName)||"children",dataSource:Pe.dataSource||[],setDataSource:function(t){var n,r;null===(n=e.editable)||void 0===n||null===(r=n.onValuesChange)||void 0===r||r.call(n,void 0,t),Pe.setDataSource(t)}})),ze=(null===m.Ow||void 0===m.Ow?void 0:m.Ow.useToken()).token;!function(e,t,n){var o,a,s,l=(0,c.Z)((0,c.Z)({},n.editableUtils),{},{pageInfo:t.pageInfo,reload:(s=(0,i.Z)((0,r.Z)().mark((function e(n){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=3;break}return e.next=3,t.setPageInfo({current:1});case 3:return e.next=5,null==t?void 0:t.reload();case 5:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)}),reloadAndRest:(a=(0,i.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.onCleanSelected(),e.next=3,t.setPageInfo({current:1});case 3:return e.next=5,null==t?void 0:t.reload();case 5:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)}),reset:(o=(0,i.Z)((0,r.Z)().mark((function e(){var i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.resetAll();case 2:return e.next=4,null==t||null===(i=t.reset)||void 0===i?void 0:i.call(t);case 4:return e.next=6,null==t?void 0:t.reload();case 6:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)}),fullScreen:function(){return n.fullScreen()},clearSelected:function(){return n.onCleanSelected()},setPageInfo:function(e){return t.setPageInfo(e)}});e.current=l}(fe,Pe,{fullScreen:function(){var e,t;null!==(e=Re.rootDomRef)&&void 0!==e&&e.current&&document.fullscreenEnabled&&(document.fullscreenElement?document.exitFullscreen():null===(t=Re.rootDomRef)||void 0===t||t.current.requestFullscreen())},onCleanSelected:function(){De()},resetAll:function(){var e;De(),Me({}),Oe({}),Re.setKeyWords(void 0),Pe.setPageInfo({current:1}),null==pe||null===(e=pe.current)||void 0===e||e.resetFields(),xe({})},editableUtils:Le}),Re.setAction(fe.current),E&&(E.current=fe.current);var Fe=(0,M.useMemo)((function(){var t,n;return Tn({columns:I,counter:Re,columnEmptyText:J,type:X,marginSM:ze.marginSM,editableUtils:Le,rowKey:ee,childrenColumnName:null===(t=e.expandable)||void 0===t?void 0:t.childrenColumnName}).sort((n=Re.columnsMap,function(e,t){var r,i,o=e.fixed,a=e.index,s=t.fixed,l=t.index;if("left"===o&&"left"!==s||"right"===s&&"right"!==o)return-2;if("left"===s&&"left"!==o||"right"===o&&"right"!==s)return 2;var c,u,d=e.key||"".concat(a),f=t.key||"".concat(l);return null!==(r=n[d])&&void 0!==r&&r.order||null!==(i=n[f])&&void 0!==i&&i.order?((null===(c=n[d])||void 0===c?void 0:c.order)||0)-((null===(u=n[f])||void 0===u?void 0:u.order)||0):(e.index||0)-(t.index||0)}))}),[I,null==Re?void 0:Re.sortKeyColumns,null==Re?void 0:Re.columnsMap,J,X,Le.editableKeys&&Le.editableKeys.join(",")]);(0,w.Au)((function(){if(Fe&&Fe.length>0){var e=Fe.map((function(e){return O(e.key,e.index)}));Re.setSortKeyColumns(e)}}),[Fe],["render","renderFormItem"],100),(0,w.KW)((function(){var e=Pe.pageInfo,t=S||{},n=t.current,r=void 0===n?null==e?void 0:e.current:n,i=t.pageSize,o=void 0===i?null==e?void 0:e.pageSize:i;!S||!r&&!o||o===(null==e?void 0:e.pageSize)&&r===(null==e?void 0:e.current)||Pe.setPageInfo({pageSize:o||e.pageSize,current:r||e.current})}),[S&&S.pageSize,S&&S.current]);var We=(0,c.Z)((0,c.Z)({selectedRowKeys:ve},H),{},{onChange:function(e,t,n){H&&H.onChange&&H.onChange(e,t,n),be(e)}}),He=!1!==L&&"light"===(null==L?void 0:L.filterType),Ve=(0,M.useCallback)((function(e){if(D&&D.search){var t,n,r=(!0===D.search?{}:D.search).name,i=void 0===r?"keyword":r;if(!1!==(null===(t=D.search)||void 0===t||null===(n=t.onSearch)||void 0===n?void 0:n.call(t,Re.keyWords)))return void xe((0,c.Z)((0,c.Z)({},e),{},(0,s.Z)({},i,Re.keyWords)))}xe(e)}),[Re.keyWords,D,xe]),Ue=(0,M.useMemo)((function(){var e;return"object"===(0,o.Z)(Pe.loading)?(null===(e=Pe.loading)||void 0===e?void 0:e.spinning)||!1:Pe.loading}),[Pe.loading]),Ye=(0,M.useMemo)((function(){var t=!1===L&&"form"!==X?null:(0,Z.jsx)(wt,{pagination:$e,beforeSearchSubmit:V,action:fe,columns:I,onFormSearchSubmit:function(e){Ve(e)},ghost:k,onReset:e.onReset,onSubmit:e.onSubmit,loading:!!Ue,manualRequest:te,search:L,form:e.form,formRef:pe,type:e.type||"table",cardBordered:e.cardBordered,dateFormatter:e.dateFormatter});return ae&&t?(0,Z.jsx)(Z.Fragment,{children:ae(e,t)}):t}),[V,pe,k,Ue,te,Ve,$e,e,I,L,ae,X]),Ge=(0,M.useMemo)((function(){return null==ve?void 0:ve.map((function(e){var t;return null===(t=Te.current)||void 0===t?void 0:t.get(e)}))}),[ve]),qe=!1===N?null:(0,Z.jsx)(gn,{headerTitle:_,hideToolbar:!(!1!==D||_||N||Q||He),selectedRows:Ge,selectedRowKeys:ve,tableColumn:Fe,tooltip:re,toolbar:Q,onFormSearchSubmit:function(e){xe((0,c.Z)((0,c.Z)({},_e),e))},searchNode:He?Ye:null,options:D,optionsRender:P,actionRef:fe,toolBarRender:N}),Xe=!1!==H?(0,Z.jsx)($,{selectedRowKeys:ve,selectedRows:Ge,onCleanSelected:De,alertOptionRender:se.tableAlertOptionRender,alertInfoRender:U,alwaysShowAlert:null==H?void 0:H.alwaysShowAlert}):null;return ce((0,Z.jsx)(Dn,(0,c.Z)((0,c.Z)({},e),{},{name:z,defaultClassName:Y,size:Re.tableSize,onSizeChange:Re.setTableSize,pagination:$e,searchNode:Ye,rowSelection:!1!==H?We:void 0,className:de,tableColumn:Fe,isLightFilter:He,action:Pe,alertDom:Xe,toolbarDom:qe,onSortChange:function(e){Ie!==e&&Oe(null!=e?e:{})},onFilterChange:function(e){e!==Ce&&Me(e)},editableUtils:Le,getRowKey:Be})))},Fn=function(e){var t=(0,M.useContext)(k.ZP.ConfigContext).getPrefixCls,n=!1===e.ErrorBoundary?M.Fragment:e.ErrorBoundary||_.S;return(0,Z.jsx)(N,{initValue:e,children:(0,Z.jsx)(p._Y,{needDeps:!0,children:(0,Z.jsx)(n,{children:(0,Z.jsx)(zn,(0,c.Z)({defaultClassName:"".concat(t("pro-table"))},e))})})})};Fn.Summary=x.Z.Summary;var Wn=Fn},1977:function(e,t,n){"use strict";n.d(t,{n:function(){return u}});var r=n(97685),i=n(71002),o=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,a=function(e){return"*"===e||"x"===e||"X"===e},s=function(e){var t=parseInt(e,10);return isNaN(t)?e:t},l=function(e,t){if(a(e)||a(t))return 0;var n=function(e,t){return(0,i.Z)(e)!==(0,i.Z)(t)?[String(e),String(t)]:[e,t]}(s(e),s(t)),o=(0,r.Z)(n,2),l=o[0],c=o[1];return l>c?1:l-1?{open:e,onOpenChange:t}:{visible:e,onVisibleChange:t};return(0,i.Y)(n)}},78164:function(e,t,n){"use strict";n.d(t,{S:function(){return f}});var r=n(15671),i=n(43144),o=n(97326),a=n(32531),s=n(73568),l=n(4942),c=n(22181),u=n(62435),d=n(86074),f=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,a=new Array(i),s=0;s1,l=$.getMessage("form.lightFilter.itemUnit","项"),"string"==typeof o&&o.length>Z&&s?"...".concat(t.length).concat(l):"");return(0,p.jsxs)("span",{title:"string"==typeof o?o:void 0,style:{display:"inline-flex",alignItems:"center"},children:[i,(0,p.jsx)("span",{style:{paddingInlineStart:4,display:"flex"},children:"string"==typeof o?null==o||null===(n=o.toString())||void 0===n||null===(r=n.substr)||void 0===r?void 0:r.call(n,0,Z):o}),a]})}var s,l;return e||k}(v,y),(y||0===y)&&O&&(0,p.jsx)(i.Z,{role:"button",title:$.getMessage("form.lightFilter.clear","清除"),className:c()("".concat(N,"-icon"),B,"".concat(N,"-close")),onClick:function(e){w||null==b||b(),e.stopPropagation()},ref:D}),!1!==A?null!=A?A:(0,p.jsx)(o.Z,{className:c()("".concat(N,"-icon"),B,"".concat(N,"-arrow"))}):null]}))},g=u.forwardRef(m)},1336:function(e,t,n){"use strict";n.d(t,{M:function(){return b}});var r=n(1413),i=n(4942),o=n(28459),a=n(55241),s=n(62435),l=n(10915),c=n(15867),u=n(93967),d=n.n(u),f=n(98082),h=function(e){return(0,i.Z)({},e.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(e.colorSplit)})};var p=n(86074),m=function(e){var t=(0,l.YB)(),n=e.onClear,i=e.onConfirm,a=e.disabled,u=e.footerRender,m=(0,(0,s.useContext)(o.ZP.ConfigContext).getPrefixCls)("pro-core-dropdown-footer"),g=function(e){return(0,f.Xj)("DropdownFooter",(function(t){var n=(0,r.Z)((0,r.Z)({},t),{},{componentCls:".".concat(e)});return[h(n)]}))}(m),v=g.wrapSSR,b=g.hashId,y=[(0,p.jsx)(c.ZP,{style:{visibility:n?"visible":"hidden"},type:"link",size:"small",disabled:a,onClick:function(e){n&&n(e),e.stopPropagation()},children:t.getMessage("form.lightFilter.clear","清除")},"clear"),(0,p.jsx)(c.ZP,{"data-type":"confirm",type:"primary",size:"small",onClick:i,disabled:a,children:t.getMessage("form.lightFilter.confirm","确认")},"confirm")];if(!1===u||!1===(null==u?void 0:u(i,n)))return null;var w=(null==u?void 0:u(i,n))||y;return v((0,p.jsx)("div",{className:d()(m,b),onClick:function(e){return"confirm"!==e.target.getAttribute("data-type")&&e.stopPropagation()},children:w}))},g=n(73177),v=function(e){var t;return t={},(0,i.Z)(t,"".concat(e.componentCls,"-label"),{cursor:"pointer"}),(0,i.Z)(t,"".concat(e.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),(0,i.Z)(t,"".concat(e.componentCls,"-content"),{paddingBlock:16,paddingInline:16}),t};var b=function(e){var t,n=e.children,l=e.label,c=e.footer,u=e.open,h=e.onOpenChange,b=e.disabled,y=e.onVisibleChange,w=e.visible,_=e.footerRender,x=e.placement,k=(0,(0,s.useContext)(o.ZP.ConfigContext).getPrefixCls)("pro-core-field-dropdown"),S=function(e){return(0,f.Xj)("FilterDropdown",(function(t){var n=(0,r.Z)((0,r.Z)({},t),{},{componentCls:".".concat(e)});return[v(n)]}))}(k),C=S.wrapSSR,M=S.hashId,E=(0,g.X)(u||w||!1,h||y),A=(0,s.useRef)(null);return C((0,p.jsx)(a.Z,(0,r.Z)((0,r.Z)({placement:x,trigger:["click"]},E),{},{overlayInnerStyle:{padding:0},content:(0,p.jsxs)("div",{ref:A,className:d()("".concat(k,"-overlay"),(t={},(0,i.Z)(t,"".concat(k,"-overlay-").concat(x),x),(0,i.Z)(t,"hashId",M),t)),children:[(0,p.jsx)(o.ZP,{getPopupContainer:function(){return A.current||document.body},children:(0,p.jsx)("div",{className:"".concat(k,"-content ").concat(M).trim(),children:n})}),c&&(0,p.jsx)(m,(0,r.Z)({disabled:b,footerRender:_},c))]}),children:(0,p.jsx)("span",{className:"".concat(k,"-label ").concat(M).trim(),children:l})})))}},90081:function(e,t,n){"use strict";n.d(t,{U:function(){return x}});var r=n(91),i=n(1413),o=n(97685),a=n(50888),s=n(98082),l=n(28459),c=n(55241),u=n(22150),d=n(88306),f=n(62435),h=n(73177),p=n(4942),m=function(e){var t="".concat(e.antCls,"-progress-bg");return(0,p.Z)({},e.componentCls,{"&-multiple":{paddingBlockStart:6,paddingBlockEnd:12,paddingInline:8},"&-progress":{"&-success":(0,p.Z)({},t,{backgroundColor:e.colorSuccess}),"&-error":(0,p.Z)({},t,{backgroundColor:e.colorError}),"&-warning":(0,p.Z)({},t,{backgroundColor:e.colorWarning})},"&-rule":{display:"flex",alignItems:"center","&-icon":{"&-default":{display:"flex",alignItems:"center",justifyContent:"center",width:"14px",height:"22px","&-circle":{width:"6px",height:"6px",backgroundColor:e.colorTextSecondary,borderRadius:"4px"}},"&-loading":{color:e.colorPrimary},"&-error":{color:e.colorError},"&-success":{color:e.colorSuccess}},"&-text":{color:e.colorText}}})};var g=n(86074),v=["rules","name","children","popoverProps"],b=["errorType","rules","name","popoverProps","children"],y={marginBlockStart:-5,marginBlockEnd:-5,marginInlineStart:0,marginInlineEnd:0},w=function(e){var t=e.inputProps,n=e.input,r=e.extra,u=e.errorList,d=e.popoverProps,p=(0,f.useState)(!1),v=(0,o.Z)(p,2),b=v[0],y=v[1],w=(0,f.useState)([]),_=(0,o.Z)(w,2),x=_[0],k=_[1],S=(0,(0,f.useContext)(l.ZP.ConfigContext).getPrefixCls)(),C=(0,s.dQ)(),M=function(e){return(0,s.Xj)("InlineErrorFormItem",(function(t){var n=(0,i.Z)((0,i.Z)({},t),{},{componentCls:".".concat(e)});return[m(n)]}))}("".concat(S,"-form-item-with-help")),E=M.wrapSSR,A=M.hashId;(0,f.useEffect)((function(){"validating"!==t.validateStatus&&k(t.errors)}),[t.errors,t.validateStatus]);var I=(0,h.X)(!(x.length<1)&&b,(function(e){e!==b&&y(e)})),O="validating"===t.validateStatus;return(0,g.jsx)(c.Z,(0,i.Z)((0,i.Z)((0,i.Z)({trigger:(null==d?void 0:d.trigger)||["click"],placement:(null==d?void 0:d.placement)||"topLeft"},I),{},{getPopupContainer:null==d?void 0:d.getPopupContainer,getTooltipContainer:null==d?void 0:d.getTooltipContainer,content:E((0,g.jsx)("div",{className:"".concat(S,"-form-item ").concat(A," ").concat(C.hashId).trim(),style:{margin:0,padding:0},children:(0,g.jsxs)("div",{className:"".concat(S,"-form-item-with-help ").concat(A," ").concat(C.hashId).trim(),children:[O?(0,g.jsx)(a.Z,{}):null,u]})}))},d),{},{children:(0,g.jsxs)(g.Fragment,{children:[n,r]})}),"popover")},_=function(e){var t=e.rules,n=e.name,o=e.children,a=e.popoverProps,s=(0,r.Z)(e,v);return(0,g.jsx)(u.Z.Item,(0,i.Z)((0,i.Z)({name:n,rules:t,hasFeedback:!1,shouldUpdate:function(e,t){if(e===t)return!1;var r=[n].flat(1);r.length>1&&r.pop();try{return JSON.stringify((0,d.Z)(e,r))!==JSON.stringify((0,d.Z)(t,r))}catch(e){return!0}},_internalItemRender:{mark:"pro_table_render",render:function(e,t){return(0,g.jsx)(w,(0,i.Z)({inputProps:e,popoverProps:a},t))}}},s),{},{style:(0,i.Z)((0,i.Z)({},y),null==s?void 0:s.style),children:o}))},x=function(e){var t=e.errorType,n=e.rules,o=e.name,a=e.popoverProps,s=e.children,l=(0,r.Z)(e,b);return o&&null!=n&&n.length&&"popover"===t?(0,g.jsx)(_,(0,i.Z)((0,i.Z)({name:o,rules:n,popoverProps:a},l),{},{children:s})):(0,g.jsx)(u.Z.Item,(0,i.Z)((0,i.Z)({rules:n,shouldUpdate:o?function(e,t){if(e===t)return!1;var n=[o].flat(1);n.length>1&&n.pop();try{return JSON.stringify((0,d.Z)(e,n))!==JSON.stringify((0,d.Z)(t,n))}catch(e){return!0}}:void 0},l),{},{style:(0,i.Z)((0,i.Z)({},y),l.style),name:o,children:s}))}},81736:function(e,t,n){"use strict";n.d(t,{G:function(){return b}});var r=n(1413),i=n(4942),o=n(87462),a=n(62435),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},l=n(84089),c=function(e,t){return a.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:s}))};var u=a.forwardRef(c),d=n(28459),f=n(83062),h=n(93967),p=n.n(h),m=n(98082),g=function(e){return(0,i.Z)({},e.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:e.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:e.colorTextSecondary,fontWeight:"normal",fontSize:e.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};var v=n(86074),b=a.memo((function(e){var t,n=e.label,o=e.tooltip,s=e.ellipsis,l=e.subTitle,c=(0,(0,a.useContext)(d.ZP.ConfigContext).getPrefixCls)("pro-core-label-tip"),h=(t=c,(0,m.Xj)("LabelIconTip",(function(e){var n=(0,r.Z)((0,r.Z)({},e),{},{componentCls:".".concat(t)});return[g(n)]}))),b=h.wrapSSR,y=h.hashId;if(!o&&!l)return(0,v.jsx)(v.Fragment,{children:n});var w="string"==typeof o||a.isValidElement(o)?{title:o}:o,_=(null==w?void 0:w.icon)||(0,v.jsx)(u,{});return b((0,v.jsxs)("div",{className:p()(c,y),onMouseDown:function(e){return e.stopPropagation()},onMouseLeave:function(e){return e.stopPropagation()},onMouseMove:function(e){return e.stopPropagation()},children:[(0,v.jsx)("div",{className:p()("".concat(c,"-title"),y,(0,i.Z)({},"".concat(c,"-title-ellipsis"),s)),children:n}),l&&(0,v.jsx)("div",{className:"".concat(c,"-subtitle ").concat(y).trim(),children:l}),o&&(0,v.jsx)(f.Z,(0,r.Z)((0,r.Z)({},w),{},{children:(0,v.jsx)("span",{className:"".concat(c,"-icon ").concat(y).trim(),children:_})}))]}))}))},41036:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});var r=n(62435).createContext({})},23312:function(e,t,n){"use strict";n.d(t,{Cl:function(){return u},lp:function(){return p}});var r=n(71002),i=n(27484),o=n.n(i),a=n(96671),s=n.n(a),l=n(88306),c=n(74763);o().extend(s());var u={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function d(e){return"[object Object]"===Object.prototype.toString.call(e)}var f=function(e){return!(null==e||!e._isAMomentObject)},h=function(e,t,n){if(!t)return e;if(o().isDayjs(e)||f(e)){if("number"===t)return e.valueOf();if("string"===t)return e.format(u[n]||"YYYY-MM-DD HH:mm:ss");if("string"==typeof t&&"string"!==t)return e.format(t);if("function"==typeof t)return t(e,n)}return e},p=function e(t,n,i,a,s){var u={};return"undefined"==typeof window||"object"!==(0,r.Z)(t)||(0,c.k)(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach((function(r){var p,m=s?[s,r].flat(1):[r],g=(0,l.Z)(i,m)||"text",v="text";"string"==typeof g?v=g:g&&(v=g.valueType,p=g.dateFormat);var b=t[r];(0,c.k)(b)&&a||(!function(e){if(!1===d(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!1!==d(n)&&!1!==n.hasOwnProperty("isPrototypeOf")}(b)||Array.isArray(b)||o().isDayjs(b)||f(b)?Array.isArray(b)?u[r]=b.map((function(t,s){return o().isDayjs(t)||f(t)?h(t,p||n,v):e(t,n,i,a,[r,"".concat(s)].flat(1))})):u[r]=h(b,p||n,v):u[r]=e(b,n,i,a,[r]))})),u)}},86190:function(e,t,n){"use strict";n.d(t,{c:function(){return s}});var r=n(97685),i=n(27484),o=n.n(i),a=function(e,t){return"function"==typeof t?t(o()(e)):o()(e).format(t)},s=function(e,t){var n,i,o=Array.isArray(e)?e:[],s=(0,r.Z)(o,2),l=s[0],c=s[1];Array.isArray(t)?(n=t[0],i=t[1]):(n=t,i=t);var u=l?a(l,n):"",d=c?a(c,i):"";return u&&d?"".concat(u," ~ ").concat(d):""}},77398:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var r=n(35132),i=(n(62435),n(86074)),o=function(e,t,n){if(t.copyable||t.ellipsis){var o=t.copyable&&n?{text:n,tooltips:["",""]}:void 0,a=function(e){var t;return!(null==e||null===(t=e.valueType)||void 0===t||!t.toString().startsWith("date"))||!!("select"===(null==e?void 0:e.valueType)||null!=e&&e.valueEnum)}(t),s=!(!function(e){var t;return!1!==(null===(t=e.ellipsis)||void 0===t?void 0:t.showTitle)&&e.ellipsis}(t)||!n)&&{tooltip:!1!==(null==t?void 0:t.tooltip)&&a?(0,i.jsx)("div",{className:"pro-table-tooltip-text",children:e}):n};return(0,i.jsx)(r.Z.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:o,ellipsis:s,children:e})}return e}},2026:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});var r=n(22270),i=function(e,t,n){return void 0===t?e:(0,r.h)(e,t,n)}},10178:function(e,t,n){"use strict";n.d(t,{D:function(){return s}});var r=n(74165),i=n(15861),o=n(62435),a=n(48171);function s(e,t){var n=(0,a.J)(e),s=(0,o.useRef)(),l=(0,o.useCallback)((function(){s.current&&(clearTimeout(s.current),s.current=null)}),[]),c=(0,o.useCallback)((0,i.Z)((0,r.Z)().mark((function e(){var o,a,c,u=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(o=u.length,a=new Array(o),c=0;c0&&void 0!==arguments[0]?arguments[0]:21;if("undefined"==typeof window)return(r+=1).toFixed(0);if(!window.crypto)return(r+=1).toFixed(0);for(var t="",n=crypto.getRandomValues(new Uint8Array(e));e--;){var i=63&n[e];t+=i<36?i.toString(36):i<62?(i-26).toString(36).toUpperCase():i<63?"_":"-"}return t},o=function(){return"undefined"==typeof window?i():window.crypto&&window.crypto.randomUUID&&"function"==typeof crypto.randomUUID?crypto.randomUUID():i()}},51812:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});var r=function(e){var t={};if(Object.keys(e||{}).forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),!(Object.keys(t).length<1))return t}},10989:function(e,t,n){"use strict";n.d(t,{MP:function(){return d},R6:function(){return c}});var r=n(71002),i=n(40411),o=n(42075),a=n(62435),s=n(86074);var l=function(e){var t=e.color,n=e.children;return(0,s.jsx)(i.Z,{color:t,text:n})},c=function(e){return"map"===(t=e,"string"===(n=Object.prototype.toString.call(t).match(/^\[object (.*)\]$/)[1].toLowerCase())&&"object"===(0,r.Z)(t)?"object":null===t?"null":void 0===t?"undefined":n)?e:new Map(Object.entries(e||{}));var t,n},u={Success:function(e){var t=e.children;return(0,s.jsx)(i.Z,{status:"success",text:t})},Error:function(e){var t=e.children;return(0,s.jsx)(i.Z,{status:"error",text:t})},Default:function(e){var t=e.children;return(0,s.jsx)(i.Z,{status:"default",text:t})},Processing:function(e){var t=e.children;return(0,s.jsx)(i.Z,{status:"processing",text:t})},Warning:function(e){var t=e.children;return(0,s.jsx)(i.Z,{status:"warning",text:t})},success:function(e){var t=e.children;return(0,s.jsx)(i.Z,{status:"success",text:t})},error:function(e){var t=e.children;return(0,s.jsx)(i.Z,{status:"error",text:t})},default:function(e){var t=e.children;return(0,s.jsx)(i.Z,{status:"default",text:t})},processing:function(e){var t=e.children;return(0,s.jsx)(i.Z,{status:"processing",text:t})},warning:function(e){var t=e.children;return(0,s.jsx)(i.Z,{status:"warning",text:t})}},d=function e(t,n,r){if(Array.isArray(t))return(0,s.jsx)(o.Z,{split:",",size:2,wrap:!0,children:t.map((function(t,r){return e(t,n,r)}))},r);var i=c(n);if(!i.has(t)&&!i.has("".concat(t)))return(null==t?void 0:t.label)||t;var d=i.get(t)||i.get("".concat(t));if(!d)return(0,s.jsx)(a.Fragment,{children:(null==t?void 0:t.label)||t},r);var f=d.status,h=d.color,p=u[f||"Init"];return p?(0,s.jsx)(p,{children:d.text},r):h?(0,s.jsx)(l,{color:h,children:d.text},r):(0,s.jsx)(a.Fragment,{children:d.text||d},r)}},22270:function(e,t,n){"use strict";function r(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]&&arguments[0];p.forEach((function(t){if(t.map_row_parentKey&&!t.map_row_key){var n,r=t.map_row_parentKey,i=(0,c.Z)(t,O);m.has(r)||m.set(r,[]),e&&(null===(n=m.get(r))||void 0===n||n.push(i))}}))},v("top"===t),p.forEach((function(e){if(e.map_row_parentKey&&e.map_row_key){var t,n=e.map_row_parentKey,r=e.map_row_key,i=(0,c.Z)(e,j);m.has(r)&&(i[s]=m.get(r)),m.has(n)||m.set(n,[]),null===(t=m.get(n))||void 0===t||t.push(i)}})),v("update"===t),p.forEach((function(e){if(!e.map_row_parentKey){var t=e.map_row_key,n=(0,c.Z)(e,Z);if(t&&m.has(t)){var r=(0,u.Z)((0,u.Z)({},n),{},(0,l.Z)({},s,m.get(t)));return void g.push(r)}g.push(n)}})),g}function T(e,t){var n=e.recordKey,r=e.onSave,l=e.row,c=e.children,u=e.newLineConfig,d=e.editorType,h=e.tableName,p=(0,x.useContext)(C.J),g=m.Z.useFormInstance(),v=(0,b.Z)(!1),_=(0,s.Z)(v,2),S=_[0],M=_[1],E=(0,k.J)((0,a.Z)((0,i.Z)().mark((function e(){var t,a,s,c,f,m,v,b,_;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a="Map"===d,s=[h,Array.isArray(n)?n[0]:n].map((function(e){return null==e?void 0:e.toString()})).flat(1).filter(Boolean),M(!0),e.next=6,g.validateFields(s,{recursive:!0});case 6:return c=(null==p||null===(t=p.getFieldFormatValue)||void 0===t?void 0:t.call(p,s))||g.getFieldValue(s),Array.isArray(n)&&n.length>1&&(f=(0,o.Z)(n),m=f.slice(1),v=(0,y.Z)(c,m),(0,w.Z)(c,m,v)),b=a?(0,w.Z)({},s,c):c,e.next=11,null==r?void 0:r(n,(0,A.T)({},l,b),l,u);case 11:return _=e.sent,M(!1),e.abrupt("return",_);case 16:throw e.prev=16,e.t0=e.catch(0),console.log(e.t0),M(!1),e.t0;case 21:case"end":return e.stop()}}),e,null,[[0,16]])}))));return(0,x.useImperativeHandle)(t,(function(){return{save:E}}),[E]),(0,I.jsxs)("a",{onClick:function(){var e=(0,a.Z)((0,i.Z)().mark((function e(t){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.stopPropagation(),t.preventDefault(),e.prev=2,e.next=5,E();case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(2);case 9:case"end":return e.stop()}}),e,null,[[2,7]])})));return function(t){return e.apply(this,arguments)}}(),children:[S?(0,I.jsx)(f.Z,{style:{marginInlineEnd:8}}):null,c||"保存"]},"save")}var B=function(e){var t=e.recordKey,n=e.onDelete,r=e.row,o=e.children,l=e.deletePopconfirmMessage,c=(0,b.Z)((function(){return!1})),u=(0,s.Z)(c,2),d=u[0],h=u[1],p=(0,k.J)((0,a.Z)((0,i.Z)().mark((function e(){var o;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,h(!0),e.next=4,null==n?void 0:n(t,r);case 4:return o=e.sent,h(!1),e.abrupt("return",o);case 9:return e.prev=9,e.t0=e.catch(0),console.log(e.t0),h(!1),e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,null,[[0,9]])}))));return!1!==o?(0,I.jsx)(g.Z,{title:l,onConfirm:function(){return p()},children:(0,I.jsxs)("a",{children:[d?(0,I.jsx)(f.Z,{style:{marginInlineEnd:8}}):null,o||"删除"]})},"delete"):null},$=function(e){var t=e.recordKey,n=e.tableName,r=e.newLineConfig,o=e.editorType,s=e.onCancel,c=e.cancelEditable,u=e.row,d=e.cancelText,f=(0,x.useContext)(C.J),h=m.Z.useFormInstance();return(0,I.jsx)("a",{onClick:function(){var e=(0,a.Z)((0,i.Z)().mark((function e(a){var d,p,m,g,v,b;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.stopPropagation(),a.preventDefault(),p="Map"===o,m=[n,t].flat(1).filter(Boolean),g=(null==f||null===(d=f.getFieldFormatValue)||void 0===d?void 0:d.call(f,m))||(null==h?void 0:h.getFieldValue(m)),v=p?(0,w.Z)({},m,g):g,e.next=8,null==s?void 0:s(t,v,u,r);case 8:return b=e.sent,e.next=11,c(t);case 11:return h.setFieldsValue((0,l.Z)({},"".concat(t),p?(0,y.Z)(u,m):u)),e.abrupt("return",b);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:d||"取消"},"cancel")};function D(e,t){var n=t.recordKey,r=t.newLineConfig,i=t.saveText,o=t.deleteText,a=(0,x.forwardRef)(T),s=(0,x.createRef)();return{save:(0,I.jsx)(a,(0,u.Z)((0,u.Z)({},t),{},{row:e,ref:s,children:i}),"save"+n),saveRef:s,delete:(null==r?void 0:r.options.recordKey)!==n?(0,I.jsx)(B,(0,u.Z)((0,u.Z)({},t),{},{row:e,children:o}),"delete"+n):void 0,cancel:(0,I.jsx)($,(0,u.Z)((0,u.Z)({},t),{},{row:e}),"cancel"+n)}}function L(e){var t=(0,x.useState)(void 0),n=(0,s.Z)(t,2),o=n[0],l=n[1],c=function(){var t=new Map;return function n(r,i){null==r||r.forEach((function(r,o){var a,s=null==i?o.toString():i+"_"+o.toString();t.set(s,N(e.getRowKey(r,-1))),t.set(null===(a=N(e.getRowKey(r,-1)))||void 0===a?void 0:a.toString(),s),e.childrenColumnName&&r[e.childrenColumnName]&&n(r[e.childrenColumnName],s)}))}(e.dataSource),t},d=(0,x.useMemo)((function(){return c()}),[]),f=(0,x.useRef)(d),p=(0,x.useRef)(void 0);(0,M.Au)((function(){f.current=c()}),[e.dataSource]),p.current=o;var m=e.type||"single",g=(0,v.Z)(e.dataSource,"children",e.getRowKey),w=(0,s.Z)(g,1)[0],C=(0,b.Z)([],{value:e.editableKeys,onChange:e.onChange?function(t){var n,r,i;null==e||null===(n=e.onChange)||void 0===n||n.call(e,null!==(r=null==t?void 0:t.filter((function(e){return void 0!==e})))&&void 0!==r?r:[],null!==(i=null==t?void 0:t.map((function(e){return w(e)})).filter((function(e){return void 0!==e})))&&void 0!==i?i:[])}:void 0}),A=(0,s.Z)(C,2),I=A[0],O=A[1],j=(0,x.useMemo)((function(){var e="single"===m?null==I?void 0:I.slice(0,1):I;return new Set(e)}),[(I||[]).join(","),m]),Z=(0,E.D)(I),T=(0,k.J)((function(t){var n,r,i,o,a=null===(n=e.getRowKey(t,t.index))||void 0===n||null===(r=n.toString)||void 0===r?void 0:r.call(n),s=null===(i=e.getRowKey(t,-1))||void 0===i||null===(o=i.toString)||void 0===o?void 0:o.call(i),l=null==I?void 0:I.map((function(e){return null==e?void 0:e.toString()})),c=(null==Z?void 0:Z.map((function(e){return null==e?void 0:e.toString()})))||[],u=e.tableName&&!(null==c||!c.includes(s))||!(null==c||!c.includes(a));return{recordKey:s,isEditable:e.tableName&&(null==l?void 0:l.includes(s))||(null==l?void 0:l.includes(a)),preIsEditable:u}})),B=(0,k.J)((function(t){return j.size>0&&"single"===m&&!1!==e.onlyOneLineEditorAlertMessage?(R(e.onlyOneLineEditorAlertMessage||"只能同时编辑一行"),!1):(j.add(t),O(Array.from(j)),!0)})),$=(0,k.J)(function(){var t=(0,a.Z)((0,i.Z)().mark((function t(n,r){var a,s;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=N(n).toString(),s=f.current.get(a),j.has(a)||!s||null!=r&&!r||!e.tableName){t.next=5;break}return $(s,!1),t.abrupt("return");case 5:return o&&o.options.recordKey===n&&l(void 0),j.delete(a),j.delete(N(n)),O(Array.from(j)),t.abrupt("return",!0);case 10:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()),L=(0,S.D)((0,a.Z)((0,i.Z)().mark((function t(){var n,r,o,a,s=arguments;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r=s.length,o=new Array(r),a=0;a0&&"single"===m&&!1!==e.onlyOneLineEditorAlertMessage)return R(e.onlyOneLineEditorAlertMessage||"只能同时编辑一行"),!1;var r=e.getRowKey(t,-1);if(!r&&0!==r)throw(0,_.ET)(!!r,"请设置 recordCreatorProps.record 并返回一个唯一的key \n https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C"),new Error("请设置 recordCreatorProps.record 并返回一个唯一的key");if(j.add(r),O(Array.from(j)),"dataSource"===(null==n?void 0:n.newRecordType)||e.tableName){var i,o={data:e.dataSource,getRowKey:e.getRowKey,row:(0,u.Z)((0,u.Z)({},t),{},{map_row_parentKey:null!=n&&n.parentKey?null===(i=N(null==n?void 0:n.parentKey))||void 0===i?void 0:i.toString():void 0}),key:r,childrenColumnName:e.childrenColumnName||"children"};e.setDataSource(P(o,"top"===(null==n?void 0:n.position)?"top":"update"))}else l({defaultValue:t,options:(0,u.Z)((0,u.Z)({},n),{},{recordKey:r})});return!0})),V=(0,h.YB)(),U=(null==e?void 0:e.saveText)||V.getMessage("editableTable.action.save","保存"),Y=(null==e?void 0:e.deleteText)||V.getMessage("editableTable.action.delete","删除"),G=(null==e?void 0:e.cancelText)||V.getMessage("editableTable.action.cancel","取消"),q=(0,k.J)(function(){var t=(0,a.Z)((0,i.Z)().mark((function t(n,o,a,s){var l,c,d,f,h,m,g;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null==e||null===(l=e.onSave)||void 0===l?void 0:l.call(e,n,o,a,s);case 2:return f=t.sent,t.next=5,$(n);case 5:if(h=s||p.current||{},null!=(m=h.options)&&m.parentKey||(null==m?void 0:m.recordKey)!==n){t.next=9;break}return"top"===(null==m?void 0:m.position)?e.setDataSource([o].concat((0,r.Z)(e.dataSource))):e.setDataSource([].concat((0,r.Z)(e.dataSource),[o])),t.abrupt("return",f);case 9:return g={data:e.dataSource,getRowKey:e.getRowKey,row:m?(0,u.Z)((0,u.Z)({},o),{},{map_row_parentKey:null===(c=N(null!==(d=null==m?void 0:m.parentKey)&&void 0!==d?d:""))||void 0===c?void 0:c.toString()}):o,key:n,childrenColumnName:e.childrenColumnName||"children"},e.setDataSource(P(g,"top"===(null==m?void 0:m.position)?"top":"update")),t.next=13,$(n);case 13:return t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})));return function(e,n,r,i){return t.apply(this,arguments)}}()),X=(0,k.J)(function(){var t=(0,a.Z)((0,i.Z)().mark((function t(n,r){var o,a,s;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={data:e.dataSource,getRowKey:e.getRowKey,row:r,key:n,childrenColumnName:e.childrenColumnName||"children"},t.next=3,null==e||null===(o=e.onDelete)||void 0===o?void 0:o.call(e,n,r);case 3:return s=t.sent,t.next=6,$(n,!1);case 6:return e.setDataSource(P(a,"delete")),t.abrupt("return",s);case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()),K=(0,k.J)(function(){var t=(0,a.Z)((0,i.Z)().mark((function t(n,r,o,a){var s,l;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null==e||null===(s=e.onCancel)||void 0===s?void 0:s.call(e,n,r,o,a);case 2:return l=t.sent,t.abrupt("return",l);case 4:case"end":return t.stop()}}),t)})));return function(e,n,r,i){return t.apply(this,arguments)}}());return{editableKeys:I,setEditableRowKeys:O,isEditable:T,actionRender:function(t){var n=e.getRowKey(t,t.index),r={saveText:U,cancelText:G,deleteText:Y,addEditRecord:H,recordKey:n,cancelEditable:$,index:t.index,tableName:e.tableName,newLineConfig:o,onCancel:K,onDelete:X,onSave:q,editableKeys:I,setEditableRowKeys:O,deletePopconfirmMessage:e.deletePopconfirmMessage||"".concat(V.getMessage("deleteThisLine","删除此项"),"?")},i=D(t,r);return e.tableName?F.current.set(f.current.get(N(n))||N(n),i.saveRef):F.current.set(N(n),i.saveRef),e.actionRender?e.actionRender(t,r,{save:i.save,delete:i.delete,cancel:i.cancel}):[i.save,i.delete,i.cancel]},startEditable:B,cancelEditable:$,addEditRecord:H,saveEditable:W,newLineRecord:o,preEditableKeys:Z,onValuesChange:z,getRealIndex:e.getRealIndex}}},86500:function(e,t,n){"use strict";n.d(t,{T6:function(){return h},VD:function(){return p},WE:function(){return c},Yt:function(){return m},lC:function(){return o},py:function(){return l},rW:function(){return i},s:function(){return d},ve:function(){return s},vq:function(){return u}});var r=n(90279);function i(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function o(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=0,l=(i+o)/2;if(i===o)s=0,a=0;else{var c=i-o;switch(s=l>.5?c/(2-i-o):c/(i+o),i){case e:a=(t-n)/c+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s(e,t,n){var i,o,s;if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)o=n,s=n,i=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=a(c,l,e+1/3),o=a(c,l,e),s=a(c,l,e-1/3)}return{r:255*i,g:255*o,b:255*s}}function l(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=i,l=i-o,c=0===i?0:l/i;if(i===o)a=0;else{switch(i){case e:a=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},48701:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},1350:function(e,t,n){"use strict";n.d(t,{uA:function(){return a}});var r=n(86500),i=n(48701),o=n(90279);function a(e){var t={r:0,g:0,b:0},n=1,a=null,s=null,l=null,c=!1,f=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(i.R[e])e=i.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=u.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=u.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=u.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=u.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=u.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=u.hex8.exec(e),n)return{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"};if(n=u.hex6.exec(e),n)return{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"};if(n=u.hex4.exec(e),n)return{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"};if(n=u.hex3.exec(e),n)return{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),c=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(a=(0,o.JX)(e.s),s=(0,o.JX)(e.v),t=(0,r.WE)(e.h,a,s),c=!0,f="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(a=(0,o.JX)(e.s),l=(0,o.JX)(e.l),t=(0,r.ve)(e.h,a,l),c=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,o.Yq)(n),{ok:c,format:e.format||f,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var s="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),l="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),c="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),u={CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+l),rgba:new RegExp("rgba"+c),hsl:new RegExp("hsl"+l),hsla:new RegExp("hsla"+c),hsv:new RegExp("hsv"+l),hsva:new RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},10274:function(e,t,n){"use strict";n.d(t,{C:function(){return s}});var r=n(86500),i=n(48701),o=n(1350),a=n(90279),s=function(){function e(t,n){var i;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var a=(0,o.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(i=n.format)&&void 0!==i?i:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(i.R);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100;return new e({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function s(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return s},JX:function(){return a},V2:function(){return i},Yq:function(){return o},sh:function(){return r}})},90337:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function a(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function s(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function l(e,t){o(e);const n=t.outputLen;if(e.lengthe&t^~e&n;t.Maj=(e,t,n)=>e&t^e&n^t&n;class o extends i.Hash{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){(0,r.exists)(this);const{view:t,buffer:n,blockLen:o}=this,a=(e=(0,i.toBytes)(e)).length;for(let r=0;ro-s&&(this.process(n,0),s=0);for(let e=s;e>i&o),s=Number(n&o),l=r?4:0,c=r?0:4;e.setUint32(t+l,a,r),e.setUint32(t+c,s,r)}(n,o-8,BigInt(8*this.length),a),this.process(n,0);const l=(0,i.createView)(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function o(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;oBigInt(e>>>0)<>>0);t.toBig=a;const s=(e,t,n)=>e>>>n;t.shrSH=s;const l=(e,t,n)=>e<<32-n|t>>>n;t.shrSL=l;const c=(e,t,n)=>e>>>n|t<<32-n;t.rotrSH=c;const u=(e,t,n)=>e<<32-n|t>>>n;t.rotrSL=u;const d=(e,t,n)=>e<<64-n|t>>>n-32;t.rotrBH=d;const f=(e,t,n)=>e>>>n-32|t<<64-n;t.rotrBL=f;const h=(e,t)=>t;t.rotr32H=h;const p=(e,t)=>e;t.rotr32L=p;const m=(e,t,n)=>e<>>32-n;t.rotlSH=m;const g=(e,t,n)=>t<>>32-n;t.rotlSL=g;const v=(e,t,n)=>t<>>64-n;t.rotlBH=v;const b=(e,t,n)=>e<>>64-n;function y(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}}t.rotlBL=b,t.add=y;const w=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);t.add3L=w;const _=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;t.add3H=_;const x=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);t.add4L=x;const k=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;t.add4H=k;const S=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);t.add5L=S;const C=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0;t.add5H=C;const M={fromBig:i,split:o,toBig:a,shrSH:s,shrSL:l,rotrSH:c,rotrSL:u,rotrBH:d,rotrBL:f,rotr32H:h,rotr32L:p,rotlSH:m,rotlSL:g,rotlBH:v,rotlBL:b,add:y,add3L:w,add3H:_,add4L:x,add4H:k,add5H:C,add5L:S};t.default=M},31945:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},79569:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const r=n(27320),i=n(98089);class o extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.hash)(e);const n=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,a=new Uint8Array(o);a.set(n.length>o?e.create().update(n).digest():n);for(let e=0;enew o(e,t).update(n).digest(),t.hmac.create=(e,t)=>new o(e,t)},29023:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const r=n(27320),i=n(79569),o=n(98089);function a(e,t,n,a){(0,r.hash)(e);const s=(0,o.checkOpts)({dkLen:32,asyncTick:10},a),{c:l,dkLen:c,asyncTick:u}=s;if((0,r.number)(l),(0,r.number)(c),(0,r.number)(u),l<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const d=(0,o.toBytes)(t),f=(0,o.toBytes)(n),h=new Uint8Array(c),p=i.hmac.create(e,d),m=p._cloneInto().update(f);return{c:l,dkLen:c,asyncTick:u,DK:h,PRF:p,PRFSalt:m}}function s(e,t,n,r,i){return e.destroy(),t.destroy(),r&&r.destroy(),i.fill(0),n}t.pbkdf2=function(e,t,n,r){const{c:i,dkLen:l,DK:c,PRF:u,PRFSalt:d}=a(e,t,n,r);let f;const h=new Uint8Array(4),p=(0,o.createView)(h),m=new Uint8Array(u.outputLen);for(let e=1,t=0;t{d._cloneInto(h).update(g).digestInto(g);for(let e=0;et)));let s=[a],l=[a.map((e=>(9*e+5)%16))];for(let e=0;e<4;e++)for(let t of[s,l])t.push(t[e].map((e=>o[e])));const c=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((e=>new Uint8Array(e))),u=s.map(((e,t)=>e.map((e=>c[t][e])))),d=l.map(((e,t)=>e.map((e=>c[t][e])))),f=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),h=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]);function p(e,t,n,r){return 0===e?t^n^r:1===e?t&n|~t&r:2===e?(t|~n)^r:3===e?t&r|n&~r:t^(n|~r)}const m=new Uint32Array(16);class g extends r.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:n,h3:r,h4:i}=this;return[e,t,n,r,i]}set(e,t,n,r,i){this.h0=0|e,this.h1=0|t,this.h2=0|n,this.h3=0|r,this.h4=0|i}process(e,t){for(let n=0;n<16;n++,t+=4)m[n]=e.getUint32(t,!0);let n=0|this.h0,r=n,o=0|this.h1,a=o,c=0|this.h2,g=c,v=0|this.h3,b=v,y=0|this.h4,w=y;for(let e=0;e<5;e++){const t=4-e,_=f[e],x=h[e],k=s[e],S=l[e],C=u[e],M=d[e];for(let t=0;t<16;t++){const r=(0,i.rotl)(n+p(e,o,c,v)+m[k[t]]+_,C[t])+y|0;n=y,y=v,v=0|(0,i.rotl)(c,10),c=o,o=r}for(let e=0;e<16;e++){const n=(0,i.rotl)(r+p(t,a,g,b)+m[S[e]]+x,M[e])+w|0;r=w,w=b,b=0|(0,i.rotl)(g,10),g=a,a=n}}this.set(this.h1+c+b|0,this.h2+v+w|0,this.h3+y+r|0,this.h4+n+a|0,this.h0+o+g|0)}roundClean(){m.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=g,t.ripemd160=(0,i.wrapConstructor)((()=>new g))},23061:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const r=n(75457),i=n(98089),o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint32Array(64);class l extends r.HashMD{constructor(){super(64,32,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{A:e,B:t,C:n,D:r,E:i,F:o,G:a,H:s}=this;return[e,t,n,r,i,o,a,s]}set(e,t,n,r,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let n=0;n<16;n++,t+=4)s[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=s[e-15],n=s[e-2],r=(0,i.rotr)(t,7)^(0,i.rotr)(t,18)^t>>>3,o=(0,i.rotr)(n,17)^(0,i.rotr)(n,19)^n>>>10;s[e]=o+s[e-7]+r+s[e-16]|0}let{A:n,B:a,C:l,D:c,E:u,F:d,G:f,H:h}=this;for(let e=0;e<64;e++){const t=h+((0,i.rotr)(u,6)^(0,i.rotr)(u,11)^(0,i.rotr)(u,25))+(0,r.Chi)(u,d,f)+o[e]+s[e]|0,p=((0,i.rotr)(n,2)^(0,i.rotr)(n,13)^(0,i.rotr)(n,22))+(0,r.Maj)(n,a,l)|0;h=f,f=d,d=u,u=c+t|0,c=l,l=a,a=n,n=t+p|0}n=n+this.A|0,a=a+this.B|0,l=l+this.C|0,c=c+this.D|0,u=u+this.E|0,d=d+this.F|0,f=f+this.G|0,h=h+this.H|0,this.set(n,a,l,c,u,d,f,h)}roundClean(){s.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class c extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)((()=>new l)),t.sha224=(0,i.wrapConstructor)((()=>new c))},86262:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const r=n(75457),i=n(6873),o=n(98089),[a,s]=(()=>i.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))))(),l=new Uint32Array(80),c=new Uint32Array(80);class u extends r.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:o,Dh:a,Dl:s,Eh:l,El:c,Fh:u,Fl:d,Gh:f,Gl:h,Hh:p,Hl:m}=this;return[e,t,n,r,i,o,a,s,l,c,u,d,f,h,p,m]}set(e,t,n,r,i,o,a,s,l,c,u,d,f,h,p,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|l,this.El=0|c,this.Fh=0|u,this.Fl=0|d,this.Gh=0|f,this.Gl=0|h,this.Hh=0|p,this.Hl=0|m}process(e,t){for(let n=0;n<16;n++,t+=4)l[n]=e.getUint32(t),c[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|l[e-15],n=0|c[e-15],r=i.default.rotrSH(t,n,1)^i.default.rotrSH(t,n,8)^i.default.shrSH(t,n,7),o=i.default.rotrSL(t,n,1)^i.default.rotrSL(t,n,8)^i.default.shrSL(t,n,7),a=0|l[e-2],s=0|c[e-2],u=i.default.rotrSH(a,s,19)^i.default.rotrBH(a,s,61)^i.default.shrSH(a,s,6),d=i.default.rotrSL(a,s,19)^i.default.rotrBL(a,s,61)^i.default.shrSL(a,s,6),f=i.default.add4L(o,d,c[e-7],c[e-16]),h=i.default.add4H(f,r,u,l[e-7],l[e-16]);l[e]=0|h,c[e]=0|f}let{Ah:n,Al:r,Bh:o,Bl:u,Ch:d,Cl:f,Dh:h,Dl:p,Eh:m,El:g,Fh:v,Fl:b,Gh:y,Gl:w,Hh:_,Hl:x}=this;for(let e=0;e<80;e++){const t=i.default.rotrSH(m,g,14)^i.default.rotrSH(m,g,18)^i.default.rotrBH(m,g,41),k=i.default.rotrSL(m,g,14)^i.default.rotrSL(m,g,18)^i.default.rotrBL(m,g,41),S=m&v^~m&y,C=g&b^~g&w,M=i.default.add5L(x,k,C,s[e],c[e]),E=i.default.add5H(M,_,t,S,a[e],l[e]),A=0|M,I=i.default.rotrSH(n,r,28)^i.default.rotrBH(n,r,34)^i.default.rotrBH(n,r,39),O=i.default.rotrSL(n,r,28)^i.default.rotrBL(n,r,34)^i.default.rotrBL(n,r,39),j=n&o^n&d^o&d,Z=r&u^r&f^u&f;_=0|y,x=0|w,y=0|v,w=0|b,v=0|m,b=0|g,({h:m,l:g}=i.default.add(0|h,0|p,0|E,0|A)),h=0|d,p=0|f,d=0|o,f=0|u,o=0|n,u=0|r;const R=i.default.add3L(A,O,Z);n=i.default.add3H(R,E,I,j),r=0|R}({h:n,l:r}=i.default.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:o,l:u}=i.default.add(0|this.Bh,0|this.Bl,0|o,0|u)),({h:d,l:f}=i.default.add(0|this.Ch,0|this.Cl,0|d,0|f)),({h:h,l:p}=i.default.add(0|this.Dh,0|this.Dl,0|h,0|p)),({h:m,l:g}=i.default.add(0|this.Eh,0|this.El,0|m,0|g)),({h:v,l:b}=i.default.add(0|this.Fh,0|this.Fl,0|v,0|b)),({h:y,l:w}=i.default.add(0|this.Gh,0|this.Gl,0|y,0|w)),({h:_,l:x}=i.default.add(0|this.Hh,0|this.Hl,0|_,0|x)),this.set(n,r,o,u,d,f,h,p,m,g,v,b,y,w,_,x)}roundClean(){l.fill(0),c.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=u;class d extends u{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class f extends u{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class h extends u{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,o.wrapConstructor)((()=>new u)),t.sha512_224=(0,o.wrapConstructor)((()=>new d)),t.sha512_256=(0,o.wrapConstructor)((()=>new f)),t.sha384=(0,o.wrapConstructor)((()=>new h))},98089:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.byteSwap32=t.byteSwapIfBE=t.byteSwap=t.isLE=t.rotl=t.rotr=t.createView=t.u32=t.u8=t.isBytes=void 0;const r=n(31945),i=n(27320);t.isBytes=function(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name};t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);t.rotr=(e,t)=>e<<32-t|e>>>t;t.rotl=(e,t)=>e<>>32-t>>>0,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];t.byteSwap=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255,t.byteSwapIfBE=t.isLE?e=>e:e=>(0,t.byteSwap)(e),t.byteSwap32=function(e){for(let n=0;nt.toString(16).padStart(2,"0")));t.bytesToHex=function(e){(0,i.bytes)(e);let t="";for(let n=0;n=a&&e<=s?e-a:e>=l&&e<=c?e-(l-10):e>=u&&e<=d?e-(u-10):void 0}t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,n=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let t=0,i=0;t{},t.asyncLoop=async function(e,n,r){let i=Date.now();for(let o=0;o=0&&ee().update(p(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(p(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(p(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},2788:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(97685),i=n(62435),o=n(61254),a=n(98924),s=(n(80334),n(42550)),l=i.createContext(null),c=n(74902),u=n(8410),d=[];var f=n(44958),h=n(74204);var p="rc-util-locker-".concat(Date.now()),m=0;function g(e){var t=!!e,n=i.useState((function(){return m+=1,"".concat(p,"_").concat(m)})),o=(0,r.Z)(n,1)[0];(0,u.Z)((function(){if(t){var e=(0,h.o)(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,f.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else(0,f.jL)(o);return function(){(0,f.jL)(o)}}),[t,o])}var v=!1;var b=function(e){return!1!==e&&((0,a.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};var y=i.forwardRef((function(e,t){var n=e.open,f=e.autoLock,h=e.getContainer,p=(e.debug,e.autoDestroy),m=void 0===p||p,y=e.children,w=i.useState(n),_=(0,r.Z)(w,2),x=_[0],k=_[1],S=x||n;i.useEffect((function(){(m||n)&&k(n)}),[n,m]);var C=i.useState((function(){return b(h)})),M=(0,r.Z)(C,2),E=M[0],A=M[1];i.useEffect((function(){var e=b(h);A(null!=e?e:null)}));var I=function(e,t){var n=i.useState((function(){return(0,a.Z)()?document.createElement("div"):null})),o=(0,r.Z)(n,1)[0],s=i.useRef(!1),f=i.useContext(l),h=i.useState(d),p=(0,r.Z)(h,2),m=p[0],g=p[1],v=f||(s.current?void 0:function(e){g((function(t){return[e].concat((0,c.Z)(t))}))});function b(){o.parentElement||document.body.appendChild(o),s.current=!0}function y(){var e;null===(e=o.parentElement)||void 0===e||e.removeChild(o),s.current=!1}return(0,u.Z)((function(){return e?f?f(b):b():y(),y}),[e]),(0,u.Z)((function(){m.length&&(m.forEach((function(e){return e()})),g(d))}),[m]),[o,v]}(S&&!E),O=(0,r.Z)(I,2),j=O[0],Z=O[1],R=null!=E?E:j;g(f&&n&&(0,a.Z)()&&(R===j||R===document.body));var N=null;y&&(0,s.Yr)(y)&&t&&(N=y.ref);var P=(0,s.x1)(N,t);if(!S||!(0,a.Z)()||void 0===E)return null;var T,B=!1===R||("boolean"==typeof T&&(v=T),v),$=y;return t&&($=i.cloneElement(y,{ref:P})),i.createElement(l.Provider,{value:Z},B?$:(0,o.createPortal)($,R))}))},40228:function(e,t,n){"use strict";n.d(t,{Z:function(){return G}});var r=n(1413),i=n(97685),o=n(91),a=n(2788),s=n(93967),l=n.n(s),c=n(48555),u=n(34203),d=n(27571),f=n(66680),h=n(7028),p=n(8410),m=n(31131),g=n(62435),v=n(87462),b=n(82225),y=n(42550);function w(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,s=o.content,c=i.x,u=void 0===c?0:c,d=i.y,f=void 0===d?0:d,h=g.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],v=n.points[1],b=m[0],y=m[1],w=v[0],_=v[1];b!==w&&["t","b"].includes(b)?"t"===b?p.top=0:p.bottom=0:p.top=f,y!==_&&["l","r"].includes(y)?"l"===y?p.left=0:p.right=0:p.left=u}return g.createElement("div",{ref:h,className:l()("".concat(t,"-arrow"),a),style:p},s)}function _(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?g.createElement(b.ZP,(0,v.Z)({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return g.createElement("div",{style:{zIndex:r},className:l()("".concat(t,"-mask"),n)})})):null}var x=g.memo((function(e){return e.children}),(function(e,t){return t.cache}));var k=g.forwardRef((function(e,t){var n=e.popup,o=e.className,a=e.prefixCls,s=e.style,u=e.target,d=e.onVisibleChanged,f=e.open,h=e.keepDom,m=e.fresh,k=e.onClick,S=e.mask,C=e.arrow,M=e.arrowPos,E=e.align,A=e.motion,I=e.maskMotion,O=e.forceRender,j=e.getPopupContainer,Z=e.autoDestroy,R=e.portal,N=e.zIndex,P=e.onMouseEnter,T=e.onMouseLeave,B=e.onPointerEnter,$=e.ready,D=e.offsetX,L=e.offsetY,z=e.offsetR,F=e.offsetB,W=e.onAlign,H=e.onPrepare,V=e.stretch,U=e.targetWidth,Y=e.targetHeight,G="function"==typeof n?n():n,q=f||h,X=(null==j?void 0:j.length)>0,K=g.useState(!j||!X),J=(0,i.Z)(K,2),Q=J[0],ee=J[1];if((0,p.Z)((function(){!Q&&X&&u&&ee(!0)}),[Q,X,u]),!Q)return null;var te="auto",ne={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if($||!f){var re,ie=E.points,oe=E.dynamicInset||(null===(re=E._experimental)||void 0===re?void 0:re.dynamicInset),ae=oe&&"r"===ie[0][1],se=oe&&"b"===ie[0][0];ae?(ne.right=z,ne.left=te):(ne.left=D,ne.right=te),se?(ne.bottom=F,ne.top=te):(ne.top=L,ne.bottom=te)}var le={};return V&&(V.includes("height")&&Y?le.height=Y:V.includes("minHeight")&&Y&&(le.minHeight=Y),V.includes("width")&&U?le.width=U:V.includes("minWidth")&&U&&(le.minWidth=U)),f||(le.pointerEvents="none"),g.createElement(R,{open:O||q,getContainer:j&&function(){return j(u)},autoDestroy:Z},g.createElement(_,{prefixCls:a,open:f,zIndex:N,mask:S,motion:I}),g.createElement(c.Z,{onResize:W,disabled:!f},(function(e){return g.createElement(b.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:O,leavedClassName:"".concat(a,"-hidden")},A,{onAppearPrepare:H,onEnterPrepare:H,visible:f,onVisibleChanged:function(e){var t;null==A||null===(t=A.onVisibleChanged)||void 0===t||t.call(A,e),d(e)}}),(function(n,i){var c=n.className,u=n.style,d=l()(a,c,o);return g.createElement("div",{ref:(0,y.sQ)(e,t,i),className:d,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(M.x||0,"px"),"--arrow-y":"".concat(M.y||0,"px")},ne),le),u),{},{boxSizing:"border-box",zIndex:N},s),onMouseEnter:P,onMouseLeave:T,onPointerEnter:B,onClick:k},C&&g.createElement(w,{prefixCls:a,arrow:C,arrowPos:M,align:E}),g.createElement(x,{cache:!f&&!m},G))}))})))}));var S=g.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=(0,y.Yr)(n),o=g.useCallback((function(e){(0,y.mH)(t,r?r(e):e)}),[r]),a=(0,y.x1)(o,n.ref);return i?g.cloneElement(n,{ref:a}):n})),C=g.createContext(null);function M(e){return e?Array.isArray(e)?e:[e]:[]}function E(e,t,n,r){return g.useMemo((function(){var i=M(null!=n?n:t),o=M(null!=r?r:t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}var A=n(5110);function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function O(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function P(e){return N(parseFloat(e),0)}function T(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Z(e).getComputedStyle(e),r=t.overflow,i=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,h=e.clientWidth,p=P(o),m=P(a),g=P(s),v=P(l),b=N(Math.round(c.width/f*1e3)/1e3),y=N(Math.round(c.height/u*1e3)/1e3),w=(f-h-g-v)*b,_=(u-d-p-m)*y,x=p*y,k=m*y,S=g*b,C=v*b,M=0,E=0;if("clip"===r){var A=P(i);M=A*b,E=A*y}var I=c.x+S-M,O=c.y+x-E,j=I+c.width+2*M-S-C-w,R=O+c.height+2*E-x-k-_;n.left=Math.max(n.left,I),n.top=Math.max(n.top,O),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,R)}})),n}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function $(e,t){var n=t||[],r=(0,i.Z)(n,2),o=r[0],a=r[1];return[B(e.width,o),B(e.height,a)]}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function L(e,t){var n,r=t[0],i=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===i?e.x:"r"===i?e.x+e.width:e.x+e.width/2,y:n}}function z(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function F(e,t,n,o,a,s,l){var c=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),d=(0,i.Z)(c,2),h=d[0],m=d[1],v=g.useRef(0),b=g.useMemo((function(){return t?R(t):[]}),[t]),y=g.useRef({});e||(y.current={});var w=(0,f.Z)((function(){if(t&&n&&e){var c,d,f,h=t,p=h.ownerDocument,g=Z(h).getComputedStyle(h),v=g.width,w=g.height,_=g.position,x=h.style.left,k=h.style.top,S=h.style.right,C=h.style.bottom,M=h.style.overflow,E=(0,r.Z)((0,r.Z)({},a[o]),s),I=p.createElement("div");if(null===(c=h.parentElement)||void 0===c||c.appendChild(I),I.style.left="".concat(h.offsetLeft,"px"),I.style.top="".concat(h.offsetTop,"px"),I.style.position=_,I.style.height="".concat(h.offsetHeight,"px"),I.style.width="".concat(h.offsetWidth,"px"),h.style.left="0",h.style.top="0",h.style.right="auto",h.style.bottom="auto",h.style.overflow="hidden",Array.isArray(n))f={x:n[0],y:n[1],width:0,height:0};else{var O=n.getBoundingClientRect();f={x:O.x,y:O.y,width:O.width,height:O.height}}var j=h.getBoundingClientRect(),R=p.documentElement,P=R.clientWidth,B=R.clientHeight,F=R.scrollWidth,W=R.scrollHeight,H=R.scrollTop,V=R.scrollLeft,U=j.height,Y=j.width,G=f.height,q=f.width,X={left:0,top:0,right:P,bottom:B},K={left:-V,top:-H,right:F-V,bottom:W-H},J=E.htmlRegion,Q="visible",ee="visibleFirst";"scroll"!==J&&J!==ee&&(J=Q);var te=J===ee,ne=T(K,b),re=T(X,b),ie=J===Q?re:ne,oe=te?re:ie;h.style.left="auto",h.style.top="auto",h.style.right="0",h.style.bottom="0";var ae=h.getBoundingClientRect();h.style.left=x,h.style.top=k,h.style.right=S,h.style.bottom=C,h.style.overflow=M,null===(d=h.parentElement)||void 0===d||d.removeChild(I);var se=N(Math.round(Y/parseFloat(v)*1e3)/1e3),le=N(Math.round(U/parseFloat(w)*1e3)/1e3);if(0===se||0===le||(0,u.S)(n)&&!(0,A.Z)(n))return;var ce=E.offset,ue=E.targetOffset,de=$(j,ce),fe=(0,i.Z)(de,2),he=fe[0],pe=fe[1],me=$(f,ue),ge=(0,i.Z)(me,2),ve=ge[0],be=ge[1];f.x-=ve,f.y-=be;var ye=E.points||[],we=(0,i.Z)(ye,2),_e=we[0],xe=D(we[1]),ke=D(_e),Se=L(f,xe),Ce=L(j,ke),Me=(0,r.Z)({},E),Ee=Se.x-Ce.x+he,Ae=Se.y-Ce.y+pe;function _t(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ie,r=j.x+e,i=j.y+t,o=r+Y,a=i+U,s=Math.max(r,n.left),l=Math.max(i,n.top),c=Math.min(o,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var Ie,Oe,je,Ze,Re=_t(Ee,Ae),Ne=_t(Ee,Ae,re),Pe=L(f,["t","l"]),Te=L(j,["t","l"]),Be=L(f,["b","r"]),$e=L(j,["b","r"]),De=E.overflow||{},Le=De.adjustX,ze=De.adjustY,Fe=De.shiftX,We=De.shiftY,He=function(e){return"boolean"==typeof e?e:e>=0};function xt(){Ie=j.y+Ae,Oe=Ie+U,je=j.x+Ee,Ze=je+Y}xt();var Ve=He(ze),Ue=ke[0]===xe[0];if(Ve&&"t"===ke[0]&&(Oe>oe.bottom||y.current.bt)){var Ye=Ae;Ue?Ye-=U-G:Ye=Pe.y-$e.y-pe;var Ge=_t(Ee,Ye),qe=_t(Ee,Ye,re);Ge>Re||Ge===Re&&(!te||qe>=Ne)?(y.current.bt=!0,Ae=Ye,pe=-pe,Me.points=[z(ke,0),z(xe,0)]):y.current.bt=!1}if(Ve&&"b"===ke[0]&&(IeRe||Ke===Re&&(!te||Je>=Ne)?(y.current.tb=!0,Ae=Xe,pe=-pe,Me.points=[z(ke,0),z(xe,0)]):y.current.tb=!1}var Qe=He(Le),et=ke[1]===xe[1];if(Qe&&"l"===ke[1]&&(Ze>oe.right||y.current.rl)){var tt=Ee;et?tt-=Y-q:tt=Pe.x-$e.x-he;var nt=_t(tt,Ae),rt=_t(tt,Ae,re);nt>Re||nt===Re&&(!te||rt>=Ne)?(y.current.rl=!0,Ee=tt,he=-he,Me.points=[z(ke,1),z(xe,1)]):y.current.rl=!1}if(Qe&&"r"===ke[1]&&(jeRe||ot===Re&&(!te||at>=Ne)?(y.current.lr=!0,Ee=it,he=-he,Me.points=[z(ke,1),z(xe,1)]):y.current.lr=!1}xt();var st=!0===Fe?0:Fe;"number"==typeof st&&(jere.right&&(Ee-=Ze-re.right-he,f.x>re.right-st&&(Ee+=f.x-re.right+st)));var lt=!0===We?0:We;"number"==typeof lt&&(Iere.bottom&&(Ae-=Oe-re.bottom-pe,f.y>re.bottom-lt&&(Ae+=f.y-re.bottom+lt)));var ct=j.x+Ee,ut=ct+Y,dt=j.y+Ae,ft=dt+U,ht=f.x,pt=ht+q,mt=f.y,gt=mt+G,vt=(Math.max(ct,ht)+Math.min(ut,pt))/2-ct,bt=(Math.max(dt,mt)+Math.min(ft,gt))/2-dt;null==l||l(t,Me);var yt=ae.right-j.x-(Ee+j.width),wt=ae.bottom-j.y-(Ae+j.height);m({ready:!0,offsetX:Ee/se,offsetY:Ae/le,offsetR:yt/se,offsetB:wt/le,arrowX:vt/se,arrowY:bt/le,scaleX:se,scaleY:le,align:Me})}})),_=function(){m((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,p.Z)(_,[o]),(0,p.Z)((function(){e||_()}),[e]),[h.ready,h.offsetX,h.offsetY,h.offsetR,h.offsetB,h.arrowX,h.arrowY,h.scaleX,h.scaleY,h.align,function(){v.current+=1;var e=v.current;Promise.resolve().then((function(){v.current===e&&w()}))}]}var W=n(74902);function H(e,t,n,r,i){(0,p.Z)((function(){if(e&&t&&n){var o=n,a=R(t),s=R(o),l=Z(o),c=new Set([l].concat((0,W.Z)(a),(0,W.Z)(s)));function u(){r(),i()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}n(80334);var V=n(75164);function U(e,t,n,r,o,a,s,l){var c=g.useRef(e),u=g.useRef(!1);c.current!==e&&(u.current=!0,c.current=e),g.useEffect((function(){var e=(0,V.Z)((function(){u.current=!1}));return function(){V.Z.cancel(e)}}),[e]),g.useEffect((function(){if(t&&r&&(!o||a)){var e=function(){var e=!1;return[function(t){var n=t.target;e=s(n)},function(t){var n=t.target;u.current||!c.current||e||s(n)||l(!1)}]},f=e(),h=(0,i.Z)(f,2),p=h[0],m=h[1],g=e(),v=(0,i.Z)(g,2),b=v[0],y=v[1],w=Z(r);w.addEventListener("mousedown",p,!0),w.addEventListener("click",m,!0),w.addEventListener("contextmenu",m,!0);var _=(0,d.A)(n);return _&&(_.addEventListener("mousedown",b,!0),_.addEventListener("click",y,!0),_.addEventListener("contextmenu",y,!0)),function(){w.removeEventListener("mousedown",p,!0),w.removeEventListener("click",m,!0),w.removeEventListener("contextmenu",m,!0),_&&(_.removeEventListener("mousedown",b,!0),_.removeEventListener("click",y,!0),_.removeEventListener("contextmenu",y,!0))}}}),[t,n,r,o,a])}var Y=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=g.forwardRef((function(t,n){var a=t.prefixCls,s=void 0===a?"rc-trigger-popup":a,v=t.children,b=t.action,y=void 0===b?"hover":b,w=t.showAction,_=t.hideAction,x=t.popupVisible,M=t.defaultPopupVisible,A=t.onPopupVisibleChange,I=t.afterPopupVisibleChange,Z=t.mouseEnterDelay,R=t.mouseLeaveDelay,N=void 0===R?.1:R,P=t.focusDelay,T=t.blurDelay,B=t.mask,$=t.maskClosable,D=void 0===$||$,L=t.getPopupContainer,z=t.forceRender,W=t.autoDestroy,V=t.destroyPopupOnHide,G=t.popup,q=t.popupClassName,X=t.popupStyle,K=t.popupPlacement,J=t.builtinPlacements,Q=void 0===J?{}:J,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,re=t.getPopupClassNameFromAlign,ie=t.fresh,oe=t.alignPoint,ae=t.onPopupClick,se=t.onPopupAlign,le=t.arrow,ce=t.popupMotion,ue=t.maskMotion,de=t.popupTransitionName,fe=t.popupAnimation,he=t.maskTransitionName,pe=t.maskAnimation,me=t.className,ge=t.getTriggerDOMNode,ve=(0,o.Z)(t,Y),be=W||V||!1,ye=g.useState(!1),we=(0,i.Z)(ye,2),_e=we[0],xe=we[1];(0,p.Z)((function(){xe((0,m.Z)())}),[]);var ke=g.useRef({}),Se=g.useContext(C),Ce=g.useMemo((function(){return{registerSubPopup:function(e,t){ke.current[e]=t,null==Se||Se.registerSubPopup(e,t)}}}),[Se]),Me=(0,h.Z)(),Ee=g.useState(null),Ae=(0,i.Z)(Ee,2),Ie=Ae[0],Oe=Ae[1],je=(0,f.Z)((function(e){(0,u.S)(e)&&Ie!==e&&Oe(e),null==Se||Se.registerSubPopup(Me,e)})),Ze=g.useState(null),Re=(0,i.Z)(Ze,2),Ne=Re[0],Pe=Re[1],Te=g.useRef(null),Be=(0,f.Z)((function(e){(0,u.S)(e)&&Ne!==e&&(Pe(e),Te.current=e)})),$e=g.Children.only(v),De=(null==$e?void 0:$e.props)||{},Le={},ze=(0,f.Z)((function(e){var t,n,r=Ne;return(null==r?void 0:r.contains(e))||(null===(t=(0,d.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==Ie?void 0:Ie.contains(e))||(null===(n=(0,d.A)(Ie))||void 0===n?void 0:n.host)===e||e===Ie||Object.values(ke.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Fe=j(s,ce,fe,de),We=j(s,ue,pe,he),He=g.useState(M||!1),Ve=(0,i.Z)(He,2),Ue=Ve[0],Ye=Ve[1],Ge=null!=x?x:Ue,qe=(0,f.Z)((function(e){void 0===x&&Ye(e)}));(0,p.Z)((function(){Ye(x||!1)}),[x]);var Xe=g.useRef(Ge);Xe.current=Ge;var Ke=g.useRef([]);Ke.current=[];var Je=(0,f.Z)((function(e){var t;qe(e),(null!==(t=Ke.current[Ke.current.length-1])&&void 0!==t?t:Ge)!==e&&(Ke.current.push(e),null==A||A(e))})),Qe=g.useRef(),et=function(){clearTimeout(Qe.current)},tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;et(),0===t?Je(e):Qe.current=setTimeout((function(){Je(e)}),1e3*t)};g.useEffect((function(){return et}),[]);var nt=g.useState(!1),rt=(0,i.Z)(nt,2),it=rt[0],ot=rt[1];(0,p.Z)((function(e){e&&!Ge||ot(!0)}),[Ge]);var at=g.useState(null),st=(0,i.Z)(at,2),lt=st[0],ct=st[1],ut=g.useState([0,0]),dt=(0,i.Z)(ut,2),ft=dt[0],ht=dt[1],pt=function(e){ht([e.clientX,e.clientY])},mt=F(Ge,Ie,oe?ft:Ne,K,Q,ee,se),gt=(0,i.Z)(mt,11),vt=gt[0],bt=gt[1],yt=gt[2],wt=gt[3],_t=gt[4],xt=gt[5],kt=gt[6],St=gt[7],Ct=gt[8],Mt=gt[9],Et=gt[10],At=E(_e,y,w,_),It=(0,i.Z)(At,2),Ot=It[0],jt=It[1],Zt=Ot.has("click"),Rt=jt.has("click")||jt.has("contextMenu"),Nt=(0,f.Z)((function(){it||Et()}));H(Ge,Ne,Ie,Nt,(function(){Xe.current&&oe&&Rt&&tt(!1)})),(0,p.Z)((function(){Nt()}),[ft,K]),(0,p.Z)((function(){!Ge||null!=Q&&Q[K]||Nt()}),[JSON.stringify(ee)]);var Pt=g.useMemo((function(){var e=O(Q,s,Mt,oe);return l()(e,null==re?void 0:re(Mt))}),[Mt,re,Q,s,oe]);g.useImperativeHandle(n,(function(){return{nativeElement:Te.current,forceAlign:Nt}}));var Tt=g.useState(0),Bt=(0,i.Z)(Tt,2),$t=Bt[0],Dt=Bt[1],Lt=g.useState(0),zt=(0,i.Z)(Lt,2),Ft=zt[0],Wt=zt[1],Ht=function(){if(ne&&Ne){var e=Ne.getBoundingClientRect();Dt(e.width),Wt(e.height)}};function Vt(e,t,n,r){Le[e]=function(i){var o;null==r||r(i),tt(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l1?n-1:0),i=1;i1?n-1:0),i=1;ie,n=(e,t)=>n=>e(t(n));return{encode:e.map((e=>e.encode)).reduceRight(n,t),decode:e.map((e=>e.decode)).reduce(n,t)}}function o(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("alphabet.encode input should be an array of numbers");return t.map((t=>{if(n(t),t<0||t>=e.length)throw new Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]}))},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("alphabet.decode input should be array of strings");return t.map((t=>{if("string"!=typeof t)throw new Error(`alphabet.decode: not string element=${t}`);const n=e.indexOf(t);if(-1===n)throw new Error(`Unknown letter: "${t}". Allowed: ${e}`);return n}))}}}function a(e=""){if("string"!=typeof e)throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("join.encode input should be array of strings");for(let e of t)if("string"!=typeof e)throw new Error(`join.encode: non-string input=${e}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw new Error("join.decode input should be string");return t.split(e)}}}function s(e,t="="){if(n(e),"string"!=typeof t)throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let e of n)if("string"!=typeof e)throw new Error(`padding.encode: non-string input=${e}`);for(;n.length*e%8;)n.push(t);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let e of n)if("string"!=typeof e)throw new Error(`padding.decode: non-string input=${e}`);let r=n.length;if(r*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if(!((r-1)*e%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}function l(e){if("function"!=typeof e)throw new Error("normalize fn should be function");return{encode:e=>e,decode:t=>e(t)}}function c(e,t,r){if(t<2)throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: wrong to=${r}, base cannot be less than 2`);if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];let i=0;const o=[],a=Array.from(e);for(a.forEach((e=>{if(n(e),e<0||e>=t)throw new Error(`Wrong integer: ${e}`)}));;){let e=0,n=!0;for(let o=i;ot?u(t,e%t):e,d=(e,t)=>e+(t-u(e,t));function f(e,t,r,i){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(d(t,r)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${d(t,r)}`);let o=0,a=0;const s=2**r-1,l=[];for(const i of e){if(n(i),i>=2**t)throw new Error(`convertRadix2: invalid data word=${i} from=${t}`);if(o=o<32)throw new Error(`convertRadix2: carry overflow pos=${a} from=${t}`);for(a+=t;a>=r;a-=r)l.push((o>>a-r&s)>>>0);o&=2**a-1}if(o=o<=t)throw new Error("Excess padding");if(!i&&o)throw new Error(`Non-zero padding: ${o}`);return i&&a>0&&l.push(o>>>0),l}function h(e){return n(e),{encode:t=>{if(!r(t))throw new Error("radix.encode input should be Uint8Array");return c(Array.from(t),256,e)},decode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(c(t,e,256))}}}function p(e,t=!1){if(n(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(d(8,e)>32||d(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!r(n))throw new Error("radix2.encode input should be Uint8Array");return f(Array.from(n),8,e,!t)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(f(n,e,8,t))}}}function m(e){if("function"!=typeof e)throw new Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch(e){}}}function g(e,t){if(n(e),"function"!=typeof t)throw new Error("checksum fn should be function");return{encode(n){if(!r(n))throw new Error("checksum.encode: input should be Uint8Array");const i=t(n).slice(0,e),o=new Uint8Array(n.length+e);return o.set(n),o.set(i,n.length),o},decode(n){if(!r(n))throw new Error("checksum.decode: input should be Uint8Array");const i=n.slice(0,-e),o=t(i).slice(0,e),a=n.slice(-e);for(let t=0;te.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")))),t.base64=i(p(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),s(6),a("")),t.base64nopad=i(p(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),a("")),t.base64url=i(p(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),s(6),a("")),t.base64urlnopad=i(p(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),a(""));const v=e=>i(h(58),o(e),a(""));t.base58=v("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),t.base58flickr=v("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),t.base58xrp=v("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const b=[0,2,3,5,6,7,9,10,11];t.base58xmr={encode(e){let n="";for(let r=0;ri(g(4,(t=>e(e(t)))),t.base58),t.base58check=t.createBase58check;const y=i(o("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),a("")),w=[996825010,642813549,513874426,1027748829,705979059];function _(e){const t=e>>25;let n=(33554431&e)<<5;for(let e=0;e>e&1)&&(n^=w[e]);return n}function x(e,t,n=1){const r=e.length;let i=1;for(let t=0;t126)throw new Error(`Invalid prefix (${e})`);i=_(i)^n>>5}i=_(i);for(let t=0;tn)throw new TypeError(`Wrong string length: ${e.length} (${e}). Expected (8..${n})`);const r=e.toLowerCase();if(e!==r&&e!==e.toUpperCase())throw new Error("String must be lowercase or uppercase");const i=r.lastIndexOf("1");if(0===i||-1===i)throw new Error('Letter "1" must be present between prefix and data only');const o=r.slice(0,i),a=r.slice(i+1);if(a.length<6)throw new Error("Data must be at least 6 characters long");const s=y.decode(a).slice(0,-6),l=x(o,s,t);if(!a.endsWith(l))throw new Error(`Invalid checksum in ${e}: expected "${l}"`);return{prefix:o,words:s}}return{encode:function(e,n,r=90){if("string"!=typeof e)throw new Error("bech32.encode prefix should be string, not "+typeof e);if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof n);if(0===e.length)throw new TypeError(`Invalid prefix length ${e.length}`);const i=e.length+7+n.length;if(!1!==r&&i>r)throw new TypeError(`Length ${i} exceeds limit ${r}`);const o=e.toLowerCase(),a=x(o,n,t);return`${o}1${y.encode(n)}${a}`},decode:a,decodeToBytes:function(e){const{prefix:t,words:n}=a(e,!1);return{prefix:t,words:n,bytes:r(n)}},decodeUnsafe:m(a),fromWords:r,fromWordsUnsafe:o,toWords:i}}t.bech32=k("bech32"),t.bech32m=k("bech32m"),t.utf8={encode:e=>(new TextDecoder).decode(e),decode:e=>(new TextEncoder).encode(e)},t.hex=i(p(4),o("0123456789abcdef"),a(""),l((e=>{if("string"!=typeof e||e.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})));const S={utf8:t.utf8,hex:t.hex,base16:t.base16,base32:t.base32,base64:t.base64,base64url:t.base64url,base58:t.base58,base58xmr:t.base58xmr},C="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr";t.bytesToString=(e,t)=>{if("string"!=typeof e||!S.hasOwnProperty(e))throw new TypeError(C);if(!r(t))throw new TypeError("bytesToString() expects Uint8Array");return S[e].encode(t)},t.str=t.bytesToString;t.stringToBytes=(e,t)=>{if(!S.hasOwnProperty(e))throw new TypeError(C);if("string"!=typeof t)throw new TypeError("stringToBytes() expects string");return S[e].decode(t)},t.bytes=t.stringToBytes},14754:function(e,t,n){"use strict";n.d(t,{zt:function(){return Wn},Ue:function(){return kn},I0:function(){return Yn},v9:function(){return $n}});var r={};n.r(r),n.d(r,{actionChannel:function(){return Ke},all:function(){return Le},apply:function(){return He},call:function(){return We},cancel:function(){return qe},cancelled:function(){return Je},cps:function(){return Ve},flush:function(){return Qe},fork:function(){return Ue},getContext:function(){return et},join:function(){return Ge},put:function(){return De},race:function(){return ze},select:function(){return Xe},setContext:function(){return tt},spawn:function(){return Ye},take:function(){return Be},takeEvery:function(){return It},takeLatest:function(){return Ot},takem:function(){return $e},throttle:function(){return jt}});n(97857);var i=n(62435),o=n(4942);function a(e){for(var t=1;t=0&&e.splice(n,1)}var T=function(e){var t=Array(e.length);for(var n in e)Z(e,n)&&(t[n]=e[n]);return t};function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=v({},e),n=new Promise((function(e,n){t.resolve=e,t.reject=n}));return t.promise=n,t}function $(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=void 0,r=new Promise((function(r){n=setTimeout((function(){return r(t)}),e)}));return r[k]=function(){return clearTimeout(n)},r}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(){return++e}}var L=D(),z=function(e){throw e},F=function(e){return{value:e,done:!0}};function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments[3],i={name:n,next:e,throw:t,return:F};return r&&(i[_]=!0),"undefined"!=typeof Symbol&&(i[Symbol.iterator]=function(){return i}),i}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";"undefined"==typeof window?console.log("redux-saga "+e+": "+t+"\n"+(n&&n.stack||n)):console[e](t,n)}function V(e,t){return function(){return e.apply(void 0,arguments)}}var U=function(e,t){return e+" has been deprecated in favor of "+t+", please update your code"},Y=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},G=function(e,t){return(e?e+".":"")+"setContext(props): argument "+t+" is not a plain object"},q=function(e){return function(t){return e(Object.defineProperty(t,S,{value:!0}))}},X="Channel's Buffer overflow!",K={isEmpty:E,put:A,take:A};function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments[1],n=new Array(e),r=0,i=0,o=0,a=function(t){n[i]=t,i=(i+1)%e,r++},s=function(){if(0!=r){var t=n[o];return n[o]=null,r--,o=(o+1)%e,t}},l=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){if(r0&&void 0!==arguments[0]?arguments[0]:ee(),t=!1,n=[];function r(){if(t&&n.length)throw Y("Cannot have a closed channel with pending takers");if(n.length&&!e.isEmpty())throw Y("Cannot have pending takers with non empty buffer")}function i(i){if(r(),O(i,R.notUndef,me),!t){if(!n.length)return e.put(i);for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:Q(),n=arguments[2];arguments.length>2&&O(n,R.func,"Invalid match function passed to eventChannel");var r=ge(t),i=function(){r.__closed__||(o&&o(),r.close())},o=e((function(e){fe(e)?i():n&&!n(e)||r.put(e)}));if(r.__closed__&&o(),!R.func(o))throw new Error("in eventChannel: subscribe should return a function to unsubscribe");return{take:r.take,flush:r.flush,close:i}}function be(e){var t=ve((function(t){return e((function(e){e[S]?t(e):oe((function(){return t(e)}))}))}));return ce({},t,{take:function(e,n){arguments.length>1&&(O(n,R.func,"channel.take's matcher argument must be a function"),e[x]=n),t.take(e)}})}var ye=y("IO"),we="TAKE",_e="PUT",xe="RACE",ke="CALL",Se="CPS",Ce="FORK",Me="JOIN",Ee="CANCEL",Ae="SELECT",Ie="ACTION_CHANNEL",Oe="CANCELLED",je="FLUSH",Ze="GET_CONTEXT",Re="SET_CONTEXT",Ne="\n(HINT: if you are getting this errors in tests, consider using createMockTask from redux-saga/utils)",Pe=function(e,t){var n;return(n={})[ye]=!0,n[e]=t,n},Te=function(e){return O(rt.fork(e),R.object,"detach(eff): argument must be a fork effect"),e[Ce].detached=!0,e};function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*";if(arguments.length&&O(arguments[0],R.notUndef,"take(patternOrChannel): patternOrChannel is undefined"),R.pattern(e))return Pe(we,{pattern:e});if(R.channel(e))return Pe(we,{channel:e});throw new Error("take(patternOrChannel): argument "+String(e)+" is not valid channel or a valid pattern")}Be.maybe=function(){var e=Be.apply(void 0,arguments);return e[we].maybe=!0,e};var $e=V(Be.maybe);function De(e,t){return arguments.length>1?(O(e,R.notUndef,"put(channel, action): argument channel is undefined"),O(e,R.channel,"put(channel, action): argument "+e+" is not a valid channel"),O(t,R.notUndef,"put(channel, action): argument action is undefined")):(O(e,R.notUndef,"put(action): argument action is undefined"),t=e,e=null),Pe(_e,{channel:e,action:t})}function Le(e){return Pe("ALL",e)}function ze(e){return Pe(xe,e)}function Fe(e,t,n){O(t,R.notUndef,e+": argument fn is undefined");var r=null;if(R.array(t)){var i=t;r=i[0],t=i[1]}else if(t.fn){var o=t;r=o.context,t=o.fn}return r&&R.string(t)&&R.func(r[t])&&(t=r[t]),O(t,R.func,e+": argument "+t+" is not a function"),{context:r,fn:t,args:n}}function We(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:[];return Pe(ke,Fe("apply",{context:e,fn:t},n))}function Ve(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1)return Le(t.map((function(e){return Ge(e)})));var r=t[0];return O(r,R.notUndef,"join(task): argument task is undefined"),O(r,R.task,"join(task): argument "+r+" is not a valid Task object "+Ne),Pe(Me,r)}function qe(){for(var e=arguments.length,t=Array(e),n=0;n1)return Le(t.map((function(e){return qe(e)})));var r=t[0];return 1===t.length&&(O(r,R.notUndef,"cancel(task): argument task is undefined"),O(r,R.task,"cancel(task): argument "+r+" is not a valid Task object "+Ne)),Pe(Ee,r||C)}function Xe(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1&&(O(t,R.notUndef,"actionChannel(pattern, buffer): argument buffer is undefined"),O(t,R.buffer,"actionChannel(pattern, buffer): argument "+t+" is not a valid buffer")),Pe(Ie,{pattern:e,buffer:t})}function Je(){return Pe(Oe,{})}function Qe(e){return O(e,R.channel,"flush(channel): argument "+e+" is not valid channel"),Pe(je,e)}function et(e){return O(e,R.string,"getContext(prop): argument "+e+" is not a string"),Pe(Ze,e)}function tt(e){return O(e,R.object,G(null,e)),Pe(Re,e)}De.resolve=function(){var e=De.apply(void 0,arguments);return e[_e].resolve=!0,e},De.sync=V(De.resolve);var nt=function(e){return function(t){return t&&t[ye]&&t[e]}},rt={take:nt(we),put:nt(_e),all:nt("ALL"),race:nt(xe),call:nt(ke),cps:nt(Se),fork:nt(Ce),join:nt(Me),cancel:nt(Ee),select:nt(Ae),actionChannel:nt(Ie),cancelled:nt(Oe),flush:nt(je),getContext:nt(Ze),setContext:nt(Re)},it=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(){return A},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:A,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"anonymous",l=arguments[8];O(e,R.iterator,st);var c="[...effects]",u=V(X,U(c,"all("+c+")")),d=o.sagaMonitor,f=o.logger,h=o.onError,p=f||H,m=function(e){var t=e.sagaStack;!t&&e.stack&&(t=-1!==e.stack.split("\n")[0].indexOf(e.message)?e.stack:"Error: "+e.message+"\n"+e.stack),p("error","uncaught at "+s,t||e.message||e)},g=be(t),v=Object.create(i);M.cancel=A;var b=se(a,s,e,l),y={name:s,cancel:x,isRunning:!0},_=mt(0,y,E);function x(){y.isRunning&&!y.isCancelled&&(y.isCancelled=!0,M(ct))}function S(){e._isRunning&&!e._isCancelled&&(e._isCancelled=!0,_.cancelAll(),E(ct))}return l&&(l.cancel=S),e._isRunning=!0,M(),b;function M(t,n){if(!y.isRunning)throw new Error("Trying to resume an already finished generator");try{var r=void 0;n?r=e.throw(t):t===ct?(y.isCancelled=!0,M.cancel(),r=R.func(e.return)?e.return(ct):{done:!0,value:ct}):r=t===lt?R.func(e.return)?e.return():{done:!0}:e.next(t),r.done?(y.isMainRunning=!1,y.cont&&y.cont(r.value)):I(r.value,a,"",M)}catch(e){y.isCancelled&&m(e),y.isMainRunning=!1,y.cont(e,!0)}}function E(t,n){e._isRunning=!1,g.close(),n?(t instanceof Error&&Object.defineProperty(t,"sagaStack",{value:"at "+s+" \n "+(t.sagaStack||t.stack),configurable:!0}),b.cont||(t instanceof Error&&h?h(t):m(t)),e._error=t,e._isAborted=!0,e._deferredEnd&&e._deferredEnd.reject(t)):(e._result=t,e._deferredEnd&&e._deferredEnd.resolve(t)),b.cont&&b.cont(t,n),b.joiners.forEach((function(e){return e.cb(t,n)})),b.joiners=null}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments[3],i=L();d&&d.effectTriggered({effectId:i,parentEffectId:t,label:n,effect:e});var o=void 0;function a(e,t){o||(o=!0,r.cancel=A,d&&(t?d.effectRejected(i,e):d.effectResolved(i,e)),r(e,t))}a.cancel=A,r.cancel=function(){if(!o){o=!0;try{a.cancel()}catch(e){m(e)}a.cancel=A,d&&d.effectCancelled(i)}};var l=void 0;return R.promise(e)?j(e,a):R.helper(e)?W(vt(e),i,a):R.iterator(e)?Z(e,i,s,a):R.array(e)?u(e,i,a):(l=rt.take(e))?$(l,a):(l=rt.put(e))?D(l,a):(l=rt.all(e))?X(l,i,a):(l=rt.race(e))?K(l,i,a):(l=rt.call(e))?z(l,i,a):(l=rt.cps(e))?F(l,a):(l=rt.fork(e))?W(l,i,a):(l=rt.join(e))?Y(l,a):(l=rt.cancel(e))?q(l,a):(l=rt.select(e))?J(l,a):(l=rt.actionChannel(e))?Q(l,a):(l=rt.flush(e))?ne(l,a):(l=rt.cancelled(e))?te(l,a):(l=rt.getContext(e))?re(l,a):(l=rt.setContext(e))?ie(l,a):a(e)}function j(e,t){var n=e[k];R.func(n)?t.cancel=n:R.func(e.abort)&&(t.cancel=function(){return e.abort()}),e.then(t,(function(e){return t(e,!0)}))}function Z(e,i,a,s){bt(e,t,n,r,v,o,i,a,s)}function $(e,t){var n=e.channel,r=e.pattern,i=e.maybe;n=n||g;var o=function(e){return e instanceof Error?t(e,!0):fe(e)&&!i?t(lt):t(e)};try{n.take(o,pt(r))}catch(e){return t(e,!0)}t.cancel=o.cancel}function D(e,t){var r=e.channel,i=e.action,o=e.resolve;oe((function(){var e=void 0;try{e=(r?r.put:n)(i)}catch(e){if(r||o)return t(e,!0);m(e)}if(!o||!R.promise(e))return t(e);j(e,t)}))}function z(e,t,n){var r=e.context,i=e.fn,o=e.args,a=void 0;try{a=i.apply(r,o)}catch(e){return n(e,!0)}return R.promise(a)?j(a,n):R.iterator(a)?Z(a,t,i.name,n):n(a)}function F(e,t){var n=e.context,r=e.fn,i=e.args;try{var o=function(e,n){return R.undef(e)?t(n):t(e,!0)};r.apply(n,i.concat(o)),o.cancel&&(t.cancel=function(){return o.cancel()})}catch(e){return t(e,!0)}}function W(e,i,a){var s=e.context,l=e.fn,c=e.args,u=e.detached,d=gt({context:s,fn:l,args:c});try{ae();var f=bt(d,t,n,r,v,o,i,l.name,u?null:A);u?a(f):d._isRunning?(_.addTask(f),a(f)):d._error?_.abort(d._error):a(f)}finally{le()}}function Y(e,t){if(e.isRunning()){var n={task:b,cb:t};t.cancel=function(){return P(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())}function q(e,t){e===C&&(e=b),e.isRunning()&&e.cancel(),t()}function X(e,t,n){var r=Object.keys(e);if(!r.length)return n(R.array(e)?[]:{});var i=0,o=void 0,a={},s={};r.forEach((function(t){var l=function(s,l){o||(l||fe(s)||s===lt||s===ct?(n.cancel(),n(s,l)):(a[t]=s,++i===r.length&&(o=!0,n(R.array(e)?T(it({},a,{length:r.length})):a))))};l.cancel=A,s[t]=l})),n.cancel=function(){o||(o=!0,r.forEach((function(e){return s[e].cancel()})))},r.forEach((function(n){return I(e[n],t,n,s[n])}))}function K(e,t,n){var r=void 0,i=Object.keys(e),o={};i.forEach((function(t){var a=function(o,a){if(!r)if(a)n.cancel(),n(o,!0);else if(!fe(o)&&o!==lt&&o!==ct){var s;n.cancel(),r=!0;var l=((s={})[t]=o,s);n(R.array(e)?[].slice.call(it({},l,{length:i.length})):l)}};a.cancel=A,o[t]=a})),n.cancel=function(){r||(r=!0,i.forEach((function(e){return o[e].cancel()})))},i.forEach((function(n){r||I(e[n],t,n,o[n])}))}function J(e,t){var n=e.selector,i=e.args;try{t(n.apply(void 0,[r()].concat(i)))}catch(e){t(e,!0)}}function Q(e,n){var r=e.pattern,i=e.buffer,o=pt(r);o.pattern=r,n(ve(t,i||ee(),o))}function te(e,t){t(!!y.isCancelled)}function ne(e,t){e.flush(t)}function re(e,t){t(v[e])}function ie(e,t){N(v,e),t()}function se(e,t,n,r){var i,o,a;return n._deferredEnd=null,(o={})[w]=!0,o.id=e,o.name=t,(a={})[i="done"]=a[i]||{},a[i].get=function(){if(n._deferredEnd)return n._deferredEnd.promise;var e=B();return n._deferredEnd=e,n._isRunning||(n._error?e.reject(n._error):e.resolve(n._result)),e.promise},o.cont=r,o.joiners=[],o.cancel=S,o.isRunning=function(){return n._isRunning},o.isCancelled=function(){return n._isCancelled},o.isAborted=function(){return n._isAborted},o.result=function(){return n._result},o.error=function(){return n._error},o.setContext=function(e){O(e,R.object,G("task",e)),N(v,e)},at(o,a),o}}var yt="runSaga(storeInterface, saga, ...args): saga argument must be a Generator function!";function wt(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var xt={done:!0,value:void 0},kt={};function St(e){return R.channel(e)?"channel":Array.isArray(e)?String(e.map((function(e){return String(e)}))):String(e)}function Ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"iterator",r=void 0,i=t;function o(t,n){if(i===kt)return xt;if(n)throw i=kt,n;r&&r(t);var o=e[i](),a=o[0],s=o[1],l=o[2];return r=l,(i=a)===kt?xt:s}return W(o,(function(e){return o(null,e)}),n,!0)}function Mt(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i2?n-2:0),i=2;i3?r-3:0),o=3;o2?n-2:0),i=2;i2?n-2:0),i=2;i3?r-3:0),o=3;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.context,n=void 0===t?{}:t,r=_t(e,["context"]),i=r.sagaMonitor,o=r.logger,a=r.onError;if(R.func(r))throw new Error("Saga middleware no longer accept Generator functions. Use sagaMiddleware.run instead");if(o&&!R.func(o))throw new Error("`options.logger` passed to the Saga middleware is not a function!");if(a&&!R.func(a))throw new Error("`options.onError` passed to the Saga middleware is not a function!");if(r.emitter&&!R.func(r.emitter))throw new Error("`options.emitter` passed to the Saga middleware is not a function!");function s(e){var t=e.getState,l=e.dispatch,c=he();return c.emit=(r.emitter||I)(c.emit),s.run=wt.bind(null,{context:n,subscribe:c.subscribe,dispatch:l,getState:t,sagaMonitor:i,logger:o,onError:a}),function(e){return function(t){i&&i.actionDispatched&&i.actionDispatched(t);var n=e(t);return c.emit(t),n}}}return s.run=function(){throw new Error("Before running a Saga, you must mount the Saga middleware on the Store using applyMiddleware")},s.setContext=function(e){O(e,R.object,G("sagaMiddleware",e)),N(n,e)},s},Rt=n(41143),Nt=n.n(Rt),Pt=n(71002),Tt=n(55299),Bt=n.n(Tt),$t=n(74902),Dt=n(84506),Lt=n(21963),zt=n.n(Lt),Ft=n(15671),Wt=n(43144),Ht=n(44578),Vt=n.n(Ht),Ut=(n(58908),n(97685)),Yt=n(64687),Gt=n.n(Yt),qt=Array.isArray.bind(Array),Xt=function(e){return"function"==typeof e},Kt=function(e){return e},Jt=function(){},Qt=function(e,t){for(var n=0,r=e.length;n-1&&(t[n]=e[n]),t}),{})}var an=function(){function e(){(0,Ft.Z)(this,e),this._handleActions=null,this.hooks=rn.reduce((function(e,t){return e[t]=[],e}),{})}return(0,Wt.Z)(e,[{key:"use",value:function(e){Nt()(Bt()(e),"plugin.use: plugin should be plain object");var t=this.hooks;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Nt()(t[n],"plugin.use: unknown plugin property: ".concat(n)),"_handleActions"===n?this._handleActions=e[n]:"extraEnhancers"===n?t[n]=e[n]:t[n].push(e[n]))}},{key:"apply",value:function(e,t){var n=this.hooks;Nt()(["onError","onHmr"].indexOf(e)>-1,"plugin.apply: hook ".concat(e," cannot be applied"));var r=n[e];return function(){if(r.length){var e=!0,n=!1,i=void 0;try{for(var o,a=r[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var s=o.value;s.apply(void 0,arguments)}}catch(e){n=!0,i=e}finally{try{e||null==a.return||a.return()}finally{if(n)throw i}}}else t&&t.apply(void 0,arguments)}}},{key:"get",value:function(e){var t,n=this.hooks;return Nt()(e in n,"plugin.get: hook ".concat(e," cannot be got")),"extraReducers"===e?function(e){var t={},n=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){t=a({},t,o.value)}}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}return t}(n[e]):"onReducer"===e?(t=n[e],function(e){var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)e=(0,o.value)(e)}catch(e){r=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return e}):n[e]}}]),e}();function sn(e){var t=e.reducers,n=e.initialState,r=e.plugin,i=e.sagaMiddleware,o=e.promiseMiddleware,a=e.createOpts.setupMiddlewares,s=void 0===a?Kt:a,l=r.get("extraEnhancers");Nt()(qt(l),"[app.start] extraEnhancers should be array, but got ".concat((0,Pt.Z)(l)));var c=r.get("onAction"),u=s([o,i].concat((0,$t.Z)(Vt()(c)))),d=m,f=[g.apply(void 0,(0,$t.Z)(u))].concat((0,$t.Z)(l));return h(t,n,d.apply(void 0,(0,$t.Z)(f)))}function ln(e,t){var n="".concat(t.namespace).concat(en).concat(e),r=n.replace(/\/@@[^/]+?$/,"");return(Array.isArray(t.reducers)?t.reducers[0][r]:t.reducers&&t.reducers[r])||t.effects&&t.effects[r]?n:e}function cn(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return Gt().mark((function o(){var a;return Gt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:o.t0=Gt().keys(e);case 1:if((o.t1=o.t0()).done){o.next=7;break}if(a=o.t1.value,!Object.prototype.hasOwnProperty.call(e,a)){o.next=5;break}return o.delegateYield(Gt().mark((function o(){var s,l;return Gt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s=un(a,e[a],t,n,r,i),o.next=3,Ue(s);case 3:return l=o.sent,o.next=6,Ue(Gt().mark((function e(){return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Be("".concat(t.namespace,"/@@CANCEL_EFFECTS"));case 2:return e.next=4,qe(l);case 4:case"end":return e.stop()}}),e)})));case 6:case"end":return o.stop()}}),o)}))(),"t2",5);case 5:o.next=1;break;case 7:case"end":return o.stop()}}),o)}))}function un(e,t,n,i,o,a){var s,l,c=Gt().mark(m),u=t,d="takeEvery";if(Array.isArray(t)){var f=(0,Ut.Z)(t,1);u=f[0];var h=t[1];h&&h.type&&("throttle"===(d=h.type)&&(Nt()(h.ms,"app.start: opts.ms should be defined if type is throttle"),s=h.ms),"poll"===d&&(Nt()(h.delay,"app.start: opts.delay should be defined if type is poll"),l=h.delay)),Nt()(["watcher","takeEvery","takeLatest","throttle","poll"].indexOf(d)>-1,"app.start: effect type should be takeEvery, takeLatest, throttle, poll or watcher")}function p(){}function m(){var t,r,o,s,l,d,f,h,m,g=arguments;return Gt().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:for(t=g.length,r=new Array(t),o=0;o0?r[0]:{},l=s.__dva_resolve,d=void 0===l?p:l,f=s.__dva_reject,h=void 0===f?p:f,c.prev=2,c.next=5,De({type:"".concat(e).concat(en,"@@start")});case 5:return c.next=7,u.apply(void 0,(0,$t.Z)(r.concat(dn(n,a))));case 7:return m=c.sent,c.next=10,De({type:"".concat(e).concat(en,"@@end")});case 10:d(m),c.next=17;break;case 13:c.prev=13,c.t0=c.catch(2),i(c.t0,{key:e,effectArgs:r}),c.t0._dontReject||h(c.t0);case 17:case"end":return c.stop()}}),c,null,[[2,13]])}var g=function(e,t,n,i){var o=!0,a=!1,s=void 0;try{for(var l,c=e[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){t=(0,l.value)(t,r,n,i)}}catch(e){a=!0,s=e}finally{try{o||null==c.return||c.return()}finally{if(a)throw s}}return t}(o,m,n,e);switch(d){case"watcher":return m;case"takeLatest":return Gt().mark((function t(){return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ot(e,g);case 2:case"end":return t.stop()}}),t)}));case"throttle":return Gt().mark((function t(){return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jt(s,e,g);case 2:case"end":return t.stop()}}),t)}));case"poll":return Gt().mark((function t(){var n,i,o,a,s,c,u;return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=function(e,t){var r;return Gt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.call;case 1:return n.next=4,r(g,t);case 4:return n.next=6,r(i,l);case 6:n.next=1;break;case 8:case"end":return n.stop()}}),n)},i=function(e){return new Promise((function(t){return setTimeout(t,e)}))},n=Gt().mark(o),a=We,s=Be,c=ze;case 4:return t.next=7,s("".concat(e,"-start"));case 7:return u=t.sent,t.next=10,c([a(o,r,u),s("".concat(e,"-stop"))]);case 10:t.next=4;break;case 12:case"end":return t.stop()}}),t)}));default:return Gt().mark((function t(){return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,It(e,g);case 2:case"end":return t.stop()}}),t)}))}}function dn(e,t){function n(n,r){Nt()(n,"dispatch: action should be a plain Object with type");var i=t.namespacePrefixWarning;(void 0===i||i)&&zt()(0!==n.indexOf("".concat(e.namespace).concat(en)),"[".concat(r,"] ").concat(n," should not be prefixed with namespace ").concat(e.namespace))}function i(t){var r=t.type;return n(r,"sagaEffects.put"),De(a({},t,{type:ln(r,e)}))}return i.resolve=function(t){var r=t.type;return n(r,"sagaEffects.put.resolve"),De.resolve(a({},t,{type:ln(r,e)}))},a({},r,{put:i,take:function(t){return"string"==typeof t?(n(t,"sagaEffects.take"),Be(ln(t,e))):Array.isArray(t)?Be(t.map((function(t){return"string"==typeof t?(n(t,"sagaEffects.take"),ln(t,e)):t}))):Be(t)}})}function fn(e){return e}function hn(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:fn;return function(n,r){var i=r.type;return Nt()(i,"dispatch: action should be a plain Object with type"),e===i?t(n,r):n}}(t,e[t])})),r=hn.apply(void 0,(0,$t.Z)(n));return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=arguments.length>1?arguments[1]:void 0;return r(e,n)}}function mn(e,t,n){return Array.isArray(e)?e[1]((n||pn)(e[0],t)):(n||pn)(e||{},t)}function gn(e){return function(){return function(t){return function(n){return function(t){if(!t||"string"!=typeof t)return!1;var n=t.split(en),r=(0,Ut.Z)(n,1)[0],i=e._models.filter((function(e){return e.namespace===r}))[0];if(i&&i.effects&&i.effects[t])return!0;return!1}(n.type)?new Promise((function(e,r){t(a({__dva_resolve:e,__dva_reject:r},n))})):t(n)}}}}function vn(e,t){return function(n){var r=n.type;return Nt()(r,"dispatch: action should be a plain Object with type"),zt()(0!==r.indexOf("".concat(t.namespace).concat(en)),"dispatch: ".concat(r," should not be prefixed with namespace ").concat(t.namespace)),e(a({},n,{type:ln(r,t)}))}}function bn(e,t,n,r){var i=[],o=[];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=(0,e[a])({dispatch:vn(n._store.dispatch,t),history:n._history},r);Xt(s)?i.push(s):o.push(a)}return{funcs:i,nonFuncs:o}}function yn(e,t){if(e[t]){var n=e[t],r=n.funcs,i=n.nonFuncs;zt()(0===i.length,"[app.unmodel] subscription should return unlistener function, check these subscriptions ".concat(i.join(", ")));var o=!0,a=!1,s=void 0;try{for(var l,c=r[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){(0,l.value)()}}catch(e){a=!0,s=e}finally{try{o||null==c.return||c.return()}finally{if(a)throw s}}delete e[t]}}var wn=Jt,_n=Qt,xn={namespace:"@@dva",state:0,reducers:{UPDATE:function(e){return e+1}}};function kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initialReducer,r=t.setupApp,i=void 0===r?wn:r,o=new an;o.use(on(e));var s={_models:[nn(a({},xn))],_store:null,_plugin:o,use:o.use.bind(o),model:l,start:f};return s;function l(e){var t=nn(a({},e));return s._models.push(t),t}function c(t,n,r,i){i=l(i);var a=s._store;a.asyncReducers[i.namespace]=mn(i.reducers,i.state,o._handleActions),a.replaceReducer(t()),i.effects&&a.runSaga(s._getSaga(i.effects,i,n,o.get("onEffect"),e)),i.subscriptions&&(r[i.namespace]=bn(i.subscriptions,i,s,n))}function u(e,t,n,r){var i=s._store;delete i.asyncReducers[r],delete t[r],i.replaceReducer(e()),i.dispatch({type:"@@dva/UPDATE"}),i.dispatch({type:"".concat(r,"/@@CANCEL_EFFECTS")}),yn(n,r),s._models=s._models.filter((function(e){return e.namespace!==r}))}function d(e,t,n,r,i){var o=s._store,a=i.namespace,l=_n(s._models,(function(e){return e.namespace===a}));~l&&(o.dispatch({type:"".concat(a,"/@@CANCEL_EFFECTS")}),delete o.asyncReducers[a],delete t[a],yn(n,a),s._models.splice(l,1)),s.model(i),o.dispatch({type:"@@dva/UPDATE"})}function f(){var r=function(e,t){e&&("string"==typeof e&&(e=new Error(e)),e.preventDefault=function(){e._dontReject=!0},o.apply("onError",(function(e){throw new Error(e.stack||e)}))(e,s._store.dispatch,t))},l=Zt(),f=gn(s);s._getSaga=cn.bind(null);var h=[],m=a({},n),g=!0,v=!1,b=void 0;try{for(var y,w=s._models[Symbol.iterator]();!(g=(y=w.next()).done);g=!0){var _=y.value;m[_.namespace]=mn(_.reducers,_.state,o._handleActions),_.effects&&h.push(s._getSaga(_.effects,_,r,o.get("onEffect"),e))}}catch(e){v=!0,b=e}finally{try{g||null==w.return||w.return()}finally{if(v)throw b}}var x=o.get("onReducer"),k=o.get("extraReducers");Nt()(Object.keys(k).every((function(e){return!(e in m)})),"[app.start] extraReducers is conflict with other reducers, reducers list: ".concat(Object.keys(m).join(", "))),s._store=sn({reducers:D(),initialState:e.initialState||{},plugin:o,createOpts:t,sagaMiddleware:l,promiseMiddleware:f});var S=s._store;S.runSaga=l.run,S.asyncReducers={};var C=o.get("onStateChange"),M=!0,E=!1,A=void 0;try{for(var I,O=function(){var e=I.value;S.subscribe((function(){e(S.getState())}))},j=C[Symbol.iterator]();!(M=(I=j.next()).done);M=!0)O()}catch(e){E=!0,A=e}finally{try{M||null==j.return||j.return()}finally{if(E)throw A}}h.forEach(l.run),i(s);var Z={},R=!0,N=!1,P=void 0;try{for(var T,B=this._models[Symbol.iterator]();!(R=(T=B.next()).done);R=!0){var $=T.value;$.subscriptions&&(Z[$.namespace]=bn($.subscriptions,$,s,r))}}catch(e){N=!0,P=e}finally{try{R||null==B.return||B.return()}finally{if(N)throw P}}function D(){return x(p(a({},m,k,s._store?s._store.asyncReducers:{})))}s.model=c.bind(s,D,r,Z),s.unmodel=u.bind(s,D,m,Z),s.replaceModel=d.bind(s,D,m,Z,r)}}var Sn=n(61688),Cn=n(52798),Mn=n(61254);let En=function(e){e()};const An=()=>En,In=Symbol.for("react-redux-context"),On="undefined"!=typeof globalThis?globalThis:{};function jn(){var e;if(!i.createContext)return{};const t=null!=(e=On[In])?e:On[In]=new Map;let n=t.get(i.createContext);return n||(n=i.createContext(null),t.set(i.createContext,n)),n}const Zn=jn();function Rn(e=Zn){return function(){return(0,i.useContext)(e)}}const Nn=Rn();let Pn=()=>{throw new Error("uSES not initialized!")};const Tn=(e,t)=>e===t;function Bn(e=Zn){const t=e===Zn?Nn:Rn(e);return function(e,n={}){const{equalityFn:r=Tn,stabilityCheck:o,noopCheck:a}="function"==typeof n?{equalityFn:n}:n;const{store:s,subscription:l,getServerState:c,stabilityCheck:u,noopCheck:d}=t(),f=((0,i.useRef)(!0),(0,i.useCallback)({[e.name](t){return e(t)}}[e.name],[e,u,o])),h=Pn(l.addNestedSub,s.getState,c||s.getState,f,r);return(0,i.useDebugValue)(h),h}}const $n=Bn();n(8679),n(45561);const Dn={notify(){},get:()=>[]};function Ln(e,t){let n,r=Dn,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){const e=An();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=Dn)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return c}const zn=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?i.useLayoutEffect:i.useEffect;let Fn=null;var Wn=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:a="once"}){const s=i.useMemo((()=>{const t=Ln(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:a}}),[e,r,o,a]),l=i.useMemo((()=>e.getState()),[e]);zn((()=>{const{subscription:t}=s;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),l!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[s,l]);const c=t||Zn;return i.createElement(c.Provider,{value:s},n)};function Hn(e=Zn){const t=e===Zn?Nn:Rn(e);return function(){const{store:e}=t();return e}}const Vn=Hn();function Un(e=Zn){const t=e===Zn?Vn:Hn(e);return function(){return t().dispatch}}const Yn=Un();var Gn,qn;Gn=Cn.useSyncExternalStoreWithSelector,Pn=Gn,(e=>{Fn=e})(Sn.useSyncExternalStore),qn=Mn.unstable_batchedUpdates,En=qn;n(86074)},10581:function(e,t,n){"use strict";n.d(t,{f:function(){return u},m:function(){return r}});var r,i=n(52677),o=n.n(i),a=n(97857),s=n.n(a),l=n(55648),c="/";function u(e){var t;return t="hash"===e.type?(0,l.q_)():"memory"===e.type?(0,l.PP)(e):(0,l.lX)(),e.basename&&(c=e.basename),r=s()(s()({},t),{},{push:function(e,n){t.push(d(e,t),n)},replace:function(e,n){t.replace(d(e,t),n)},get location(){return t.location},get action(){return t.action}}),t}function d(e,t){if("string"==typeof e)return"".concat(f(c)).concat(e);if("object"===o()(e)){var n=t.location.pathname;return s()(s()({},e),{},{pathname:e.pathname?"".concat(f(c)).concat(e.pathname):n})}throw new Error("Unexpected to: ".concat(e))}function f(e){return"/"===e.slice(-1)?e.slice(0,-1):e}},7290:function(e,t,n){"use strict";n.d(t,{gD:function(){return vl},We:function(){return bl}});var r={};n.r(r),n.d(r,{boolean:function(){return $},booleanish:function(){return D},commaOrSpaceSeparated:function(){return H},commaSeparated:function(){return W},number:function(){return z},overloadedBoolean:function(){return L},spaceSeparated:function(){return F}});var i={};n.r(i),n.d(i,{attentionMarkers:function(){return Cn},contentInitial:function(){return yn},disable:function(){return Mn},document:function(){return bn},flow:function(){return _n},flowInitial:function(){return wn},insideSpan:function(){return Sn},string:function(){return xn},text:function(){return kn}});var o={};n.r(o),n.d(o,{getInitialState:function(){return Ya},layout:function(){return Xa},patchClientRoutes:function(){return Ka}});var a={};n.r(a),n.d(a,{innerProvider:function(){return qs}});var s={};n.r(s),n.d(s,{dataflowProvider:function(){return Ks}});var l={};n.r(l),n.d(l,{dataflowProvider:function(){return tl}});var c={};n.r(c),n.d(c,{patchRoutes:function(){return rl}});var u={};n.r(u),n.d(u,{i18nProvider:function(){return ul},patchRoutes:function(){return dl}});var d={};n.r(d),n.d(d,{dataflowProvider:function(){return ml}});var f=n(97857),h=n.n(f),p=n(15009),m=n.n(p),g=n(5574),v=n.n(g),b=n(99289),y=n.n(b),w=n.p+"static/logo.0bd19ec7.png",_=n(54359),x=n(64119),k=n(37476),S=n(59530),C=n(92783),M=n(62435);const E=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,A=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,I={};function O(e,t){return((t||I).jsx?A:E).test(e)}const j=/[ \t\n\f\r]/g;function Z(e){return""===e.replace(j,"")}class R{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function N(e,t){const n={},r={};let i=-1;for(;++i0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function be(e){return e&&"object"==typeof e?"position"in e||"type"in e?we(e.position):"start"in e||"end"in e?we(e):"line"in e||"column"in e?ye(e):"":""}function ye(e){return _e(e&&e.line)+":"+_e(e&&e.column)}function we(e){return ye(e&&e.start)+"-"+ye(e&&e.end)}function _e(e){return e&&"number"==typeof e?e:1}class xe extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=be(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}xe.prototype.file="",xe.prototype.name="",xe.prototype.reason="",xe.prototype.message="",xe.prototype.stack="",xe.prototype.column=void 0,xe.prototype.line=void 0,xe.prototype.ancestors=void 0,xe.prototype.cause=void 0,xe.prototype.fatal=void 0,xe.prototype.place=void 0,xe.prototype.ruleId=void 0,xe.prototype.source=void 0;const ke={}.hasOwnProperty,Se=new Map,Ce=/[A-Z]/g,Me=/-([a-z])/g,Ee=new Set(["table","tbody","thead","tfoot","tr"]),Ae=new Set(["td","th"]),Ie="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Oe(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,i,o){const a=Array.isArray(i.children),s=ge(n);return t(r,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,i,o){const a=Array.isArray(i.children)?n:t;return o?a(r,i,o):a(r,i)}}(0,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ae:oe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=je(i,e,void 0);return o&&"string"!=typeof o?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function je(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=ae,e.schema=i);e.ancestors.push(t);const o=Te(e,t.tagName,!1),a=function(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&ke.call(t.properties,i)){const o=Pe(e,i,t.properties[i]);if(o){const[i,a]=o;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof a&&Ae.has(t.tagName)?r=a:n[i]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=Ne(e,t);Ee.has(t.tagName)&&(s=s.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Z(t.value):Z(t));var t})));return Ze(e,a,o,t),Re(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Be(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.name&&"html"===r.space&&(i=ae,e.schema=i);e.ancestors.push(t);const o=null===t.name?e.Fragment:Te(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const i=t.expression;i.type;const o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Be(e,t.position);else{const i=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,o=e.evaluater.evaluateExpression(t.expression)}else Be(e,t.position);else o=null===r.value||r.value;n[i]=o}return n}(e,t),s=Ne(e,t);return Ze(e,a,o,t),Re(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Be(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Re(r,Ne(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Ze(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Re(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ne(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Se;for(;++r4&&"data"===n.slice(0,4)&&se.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(le,de);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!le.test(e)){let n=e.replace(ce,ue);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Y}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){const n={};try{pe(t,r)}catch(t){if(!e.ignoreInvalidStyle){const n=t,r=new xe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Ie+"#cannot-parse-style-attribute",r}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(Me,De)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)ke.call(e,n)&&(t[$e(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?fe[r.property]||r.property:r.attribute,n]}}function Te(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,i=-1;for(;++ii?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Ye(e,e.length,0,t),e):t}function qe(e){const t={};let n,r,i,o,a,s,l,c=-1;for(;++c-1&&e.test(String.fromCharCode(t))}}function pt(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(ut(r))return e.enter(n),a(r);return t(r)};function a(r){return ut(r)&&o++o))return;const n=t.events.length;let i,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(v(a),e=n;er;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},vt={tokenize:function(e,t,n){return pt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const bt={tokenize:function(e,t,n){return function(t){return ut(t)?pt(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||lt(e)?t(e):n(e)}},partial:!0};const yt={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):lt(t)?e.check(wt,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return qe(e),e}},wt={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),pt(e,i,"linePrefix")};function i(i){if(null===i||lt(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};const _t={tokenize:function(e){const t=this,n=e.attempt(bt,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,pt(e,e.attempt(this.parser.constructs.flow,r,e.attempt(yt,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const xt={resolveAll:Mt()},kt=Ct("string"),St=Ct("text");function Ct(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}(a,e)}function p(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function m(){let e;for(;r._index=3&&(null===o||lt(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),ut(t)?pt(e,o,"whitespace")(t):o(t))}}};const jt={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:ot(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(Ot,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return ot(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(bt,r.interrupt?n:c,e.attempt(Zt,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return ut(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(bt,i,o);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,pt(e,t,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!ut(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Rt,t,a)(n))}function a(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,pt(e,e.attempt(jt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Zt={tokenize:function(e,t,n){const r=this;return pt(e,(function(e){const i=r.events[r.events.length-1];return!ut(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Rt={tokenize:function(e,t,n){const r=this;return pt(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const Nt={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return ut(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(ut(t))return pt(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(Nt,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function Pt(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d;if(null===t||32===t||41===t||it(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t)};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||lt(t)?n(t):(e.consume(t),92===t?h:f)}function h(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function p(i){return u||null!==i&&41!==i&&!ct(i)?u999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):lt(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||lt(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!ut(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Bt(e,t,n,r,i,o){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):lt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),pt(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||lt(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function $t(e,t){let n;return function r(i){if(lt(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(ut(i))return pt(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}function Dt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Lt={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return Tt.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=Dt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return ct(t)?$t(e,s)(t):s(t)}function s(t){return Pt(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(zt,c,c)(t)}function c(t){return ut(t)?pt(e,u,"whitespace")(t):u(t)}function u(o){return null===o||lt(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},zt={tokenize:function(e,t,n){return function(t){return ct(t)?$t(e,r)(t):n(t)};function r(t){return Bt(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return ut(t)?pt(e,o,"whitespace")(t):o(t)}function o(e){return null===e||lt(e)?t(e):n(e)}},partial:!0};const Ft={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),pt(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):lt(t)?e.attempt(Wt,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||lt(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},Wt={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):lt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):pt(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):lt(e)?i(e):n(e)}},partial:!0};const Ht={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||ct(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||lt(n)?(e.exit("atxHeading"),t(n)):ut(n)?pt(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||ct(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Ye(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const Vt={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),ut(t)?pt(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||lt(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const Ut=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Yt=["pre","script","style","textarea"],Gt={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,h):63===s?(e.consume(s),i=3,r.interrupt?t:N):tt(s)?(e.consume(s),a=String.fromCharCode(s),p):n(s)}function u(o){return 45===o?(e.consume(o),i=2,d):91===o?(e.consume(o),i=5,s=0,f):tt(o)?(e.consume(o),i=4,r.interrupt?t:N):n(o)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:N):n(i)}function f(i){const o="CDATA[";return i===o.charCodeAt(s++)?(e.consume(i),s===o.length?r.interrupt?t:M:f):n(i)}function h(t){return tt(t)?(e.consume(t),a=String.fromCharCode(t),p):n(t)}function p(s){if(null===s||47===s||62===s||ct(s)){const l=47===s,c=a.toLowerCase();return l||o||!Yt.includes(c)?Ut.includes(a.toLowerCase())?(i=6,l?(e.consume(s),m):r.interrupt?t(s):M(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?g(s):v(s)):(i=1,r.interrupt?t(s):M(s))}return 45===s||nt(s)?(e.consume(s),a+=String.fromCharCode(s),p):n(s)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:M):n(i)}function g(t){return ut(t)?(e.consume(t),g):S(t)}function v(t){return 47===t?(e.consume(t),S):58===t||95===t||tt(t)?(e.consume(t),b):ut(t)?(e.consume(t),v):S(t)}function b(t){return 45===t||46===t||58===t||95===t||nt(t)?(e.consume(t),b):y(t)}function y(t){return 61===t?(e.consume(t),w):ut(t)?(e.consume(t),y):v(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,_):ut(t)?(e.consume(t),w):x(t)}function _(t){return t===l?(e.consume(t),l=null,k):null===t||lt(t)?n(t):(e.consume(t),_)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ct(t)?y(t):(e.consume(t),x)}function k(e){return 47===e||62===e||ut(e)?v(e):n(e)}function S(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||lt(t)?M(t):ut(t)?(e.consume(t),C):n(t)}function M(t){return 45===t&&2===i?(e.consume(t),O):60===t&&1===i?(e.consume(t),j):62===t&&4===i?(e.consume(t),P):63===t&&3===i?(e.consume(t),N):93===t&&5===i?(e.consume(t),R):!lt(t)||6!==i&&7!==i?null===t||lt(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),M):(e.exit("htmlFlowData"),e.check(qt,T,E)(t))}function E(t){return e.check(Xt,A,T)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||lt(t)?E(t):(e.enter("htmlFlowData"),M(t))}function O(t){return 45===t?(e.consume(t),N):M(t)}function j(t){return 47===t?(e.consume(t),a="",Z):M(t)}function Z(t){if(62===t){const n=a.toLowerCase();return Yt.includes(n)?(e.consume(t),P):M(t)}return tt(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),Z):M(t)}function R(t){return 93===t?(e.consume(t),N):M(t)}function N(t){return 62===t?(e.consume(t),P):45===t&&2===i?(e.consume(t),N):M(t)}function P(t){return null===t||lt(t)?(e.exit("htmlFlowData"),T(t)):(e.consume(t),P)}function T(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},qt={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(bt,t,n)}},partial:!0},Xt={tokenize:function(e,t,n){const r=this;return function(t){if(lt(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const Kt={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Jt={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),ut(t)?pt(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=s?(e.exit("codeFencedFenceSequence"),ut(t)?pt(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||lt(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),ut(t)?pt(e,c,"whitespace")(t):c(t))}function c(n){return null===n||lt(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Kt,h,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||lt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):ut(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pt(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||lt(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||lt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),f)}function h(t){return e.attempt(i,b,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&ut(t)?pt(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||lt(t)?e.check(Kt,h,b)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||lt(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function b(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const Qt=document.createElement("i");function en(e){const t="&"+e+";";Qt.innerHTML=t;const n=Qt.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const tn={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=nt,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=at,c):(e.enter("characterReferenceValue"),i=7,o=ot,c(t))}function c(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==nt||en(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&a++1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),f=Object.assign({},e[u][1].start);fn(d,-s),fn(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Ge(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Ge(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=Ge(l,At(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=Ge(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=Ge(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Ye(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const In=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function On(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return An(n.slice(t?2:1),t?16:10)}return en(n)||e}const jn={}.hasOwnProperty;function Zn(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ee),autolinkProtocol:C,autolinkEmail:C,atxHeading:o(X),blockQuote:o(V),characterEscape:C,characterReference:C,codeFenced:o(U),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(U,a),codeText:o(Y,a),codeTextData:C,data:C,codeFlowValue:C,definition:o(G),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(q),hardBreakEscape:o(K),hardBreakTrailing:o(K),htmlFlow:o(J,a),htmlFlowData:C,htmlText:o(J,a),htmlTextData:C,image:o(Q),label:a,link:o(ee),listItem:o(ne),listItemValue:f,listOrdered:o(te,d),listUnordered:o(te),paragraph:o(re),reference:D,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(X),strong:o(ie),thematicBreak:o(ae)},exit:{atxHeading:l(),atxHeadingSequence:_,autolink:l(),autolinkEmail:H,autolinkProtocol:W,blockQuote:l(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:F,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:p,codeFlowValue:M,codeIndented:l(v),codeText:l(j),codeTextData:M,data:M,definition:l(),definitionDestinationString:w,definitionLabelString:b,definitionTitleString:y,emphasis:l(),hardBreakEscape:l(A),hardBreakTrailing:l(A),htmlFlow:l(I),htmlFlowData:M,htmlText:l(O),htmlTextData:M,image:l(R),label:P,labelText:N,lineEnding:E,link:l(Z),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:L,resourceDestinationString:T,resourceTitleString:B,resource:$,setextHeading:l(S),setextHeadingLineSequence:k,setextHeadingText:x,strong:l(),thematicBreak:l()}};Nn(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:u,data:n},l=[];let d=-1;for(;++d0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||Tn).call(o,void 0,e[0])}for(r.position={start:Rn(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Rn(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case 0:case-1:return n(a,i);case 1:{const e=n([],i);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new $n[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new $n[o](a),i)};return r})(new Map,e)(0),Ln="",{toString:zn}={},{keys:Fn}=Object,Wn=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=zn.call(e).slice(8,-1);switch(n){case"Array":return[1,Ln];case"Object":return[2,Ln];case"Date":return[3,Ln];case"RegExp":return[4,Ln];case"Map":return[5,Ln];case"Set":return[6,Ln]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Hn=([e,t])=>0===e&&("function"===t||"symbol"===t),Vn=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[a,s]=Wn(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([a,t],r)}case 1:{if(s)return i([s,[...r]],r);const e=[],t=i([a,e],r);for(const t of r)e.push(o(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=i([a,n],r);for(const t of Fn(r))!e&&Hn(Wn(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return i([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([a,{source:e,flags:t}],r)}case 5:{const t=[],n=i([a,t],r);for(const[n,i]of r)(e||!Hn(Wn(n))&&!Hn(Wn(i)))&&t.push([o(n),o(i)]);return n}case 6:{const t=[],n=i([a,t],r);for(const n of r)!e&&Hn(Wn(n))||t.push(o(n));return n}}const{message:l}=r;return i([a,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r};var Un="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Dn(Vn(e,t)):structuredClone(e):(e,t)=>Dn(Vn(e,t));function Yn(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Gn(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function qn(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Xn=function(e){if(null==e)return Jn;if("function"==typeof e)return Kn(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n":"")+")"})}return u;function u(){let c,u,d,f=er;if((!t||o(i,s,l[l.length-1]||void 0))&&(f=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return null==e?er:[e]}(n(i,l)),f[0]===tr))return f;if("children"in i&&i.children){const t=i;if(t.children&&"skip"!==f[0])for(u=(r?t.children.length:-1)+a,d=l.concat(t);u>-1&&u1:t}function ar(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(sr(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(sr(t.slice(i),i>0,!1)),o.join("")}function sr(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const lr={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Yn(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ir(e,t);const i={src:Yn(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:Yn(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ir(e,t);const i={href:Yn(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:Yn(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=ge(t.children[1]),a=me(t.children[t.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const l=[];for(;++s0&&n.push({type:"text",value:"\n"}),n}function gr(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function vr(e,t){const n=function(e,t){const n=t||dr,r=new Map,i=new Map,o=new Map,a={...lr,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else o.push(...d);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(i,p),s.push(p)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Un(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function br(e,t){return e&&"run"in e?async function(n,r){const i=vr(n,{file:r,...t});await e.run(i,r)}:function(n,r){return vr(n,{file:r,...t||e})}}function yr(e){if(e)throw e}var wr=n(94470);function _r(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function xr(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(o,...a){const s=e[++n];let l=-1;if(o)r(o);else{for(;++lt.length;let a;r&&t.push(i);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return i(e)}r||(a&&a.then&&"function"==typeof a.then?a.then(o,i):a instanceof Error?i(a):o(a))}function i(e,...r){n||(n=!0,t(e,...r))}function o(e){i(null,e)}}(s,i)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const kr={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Sr(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(i=o):(s=-1,i=a));r===i?i=a:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(Sr(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){Sr(e);let t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===a||1===a&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function Sr(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Cr={cwd:function(){return"/"}};function Mr(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Er(e){if("string"==typeof e)e=new URL(e);else if(!Mr(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n0){let[r,...o]=t;const a=n[i][1];_r(a)&&_r(r)&&(r=wr(!0,a,r)),n[i]=[e,r,...o]}}}}const Tr=(new Pr).freeze();function Br(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function $r(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Dr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Lr(e){if(!_r(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function zr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Fr(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Ir(e)}const Wr=[],Hr={allowDangerousHtml:!0},Vr=/^(https?|ircs?|mailto|xmpp)$/i,Ur=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Yr(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||Wr,l=e.remarkPlugins||Wr,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Hr}:Hr,u=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Gr,h=Tr().use(Bn).use(l).use(br,c).use(s),p=new Ir;"string"==typeof r&&(p.value=r);for(const t of Ur)Object.hasOwn(e,t.from)&&(t.from,t.to&&t.to,t.id);const m=h.parse(p);let g=h.runSync(m,p);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:"root"===g.type?g.children:[g]}),rr(g,(function(e,r,i){if("raw"===e.type&&i&&"number"==typeof r)return u?i.children.splice(r,1):i.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in ze)if(Object.hasOwn(ze,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=ze[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=f(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&n&&"number"==typeof r&&(o=!n(e,r,i)),o&&i&&"number"==typeof r)return d&&e.children?i.children.splice(r,1,...e.children):i.children.splice(r,1),r}})),Oe(g,{Fragment:Fe.Fragment,components:o,ignoreInvalidStyle:!0,jsx:Fe.jsx,jsxs:Fe.jsxs,passKeys:!0,passNode:!0})}function Gr(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||Vr.test(e.slice(0,t))?e:""}function qr(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function Xr(e,t,n){const r=Xn((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=qr(e,"(");let o=qr(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function ci(e,t,n,r){return!(!ui(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ui(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||ft(n)||dt(n))&&(!t||47!==n)}function di(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function fi(){this.buffer()}function hi(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Dt(this.sliceSerialize(e)).toLowerCase()}function pi(e){this.exit(e)}function mi(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function gi(){this.buffer()}function vi(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Dt(this.sliceSerialize(e)).toLowerCase()}function bi(e){this.exit(e)}function yi(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function wi(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),_i)),a(),o}function _i(e,t,n){return 0===t?e:(n?"":" ")+e}yi.peek=function(){return"["};const xi=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function ki(e){this.enter({type:"delete",children:[]},e)}function Si(e){this.exit(e)}function Ci(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Mi(e){return e.length}function Ei(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function Ai(e,t,n){return">"+(n?"":" ")+e}function Ii(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function Ti(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Bi(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(e.url))}function Di(e,t,n,r){const i=Zi(n),o='"'===i?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if($i(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),s(),c}function Li(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function zi(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Fi(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Ci.peek=function(){return"~"},Ri.peek=function(e,t,n){return n.options.emphasis||"*"},Ni.peek=function(){return"<"},Pi.peek=function(){return"!"},Ti.peek=function(){return"!"},Bi.peek=function(){return"`"},Di.peek=function(e,t,n){return $i(e,n)?"<":"["},Li.peek=function(){return"["};const Wi=Xn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Hi(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),a=n.createTracker(r);let s=a.move(i+i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}Hi.peek=function(e,t,n){return n.options.strong||"*"};const Vi={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),Ai);return i(),a},break:Oi,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,ji);return e(),t}const s=n.createTracker(r),l=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}(o,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const i=Zi(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),a(),c},emphasis:Ri,hardBreak:Oi,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return rr(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,tr})),Boolean((!e.depth||e.depth<3)&&He(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:Ni,image:Pi,imageReference:Ti,inlineCode:Bi,link:Di,linkReference:Li,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):zi(n);const s=e.ordered?"."===a?")":".":function(e){const t=zi(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),Fi(n)===a&&t){let t=-1;for(;++t-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?o:o+" ".repeat(a-o.length))+e}));return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a},root:function(e,t,n,r){const i=e.children.some((function(e){return Wi(e)}));return(i?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Hi,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Fi(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Ui(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function Yi(e){this.exit(e),this.data.inTable=void 0}function Gi(e){this.enter({type:"tableRow",children:[]},e)}function qi(e){this.exit(e)}function Xi(e){this.enter({type:"tableCell",children:[]},e)}function Ki(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ji));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Ji(e,t){return"|"===t?t:e}function Qi(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Vi.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("table");for(;++il&&(l=e[c].length);++ds[d])&&(s[d]=e)}n.push(o)}o[c]=n,a[c]=i}var u;let d=-1;if("object"==typeof n&&"length"in n)for(;++ds[d]&&(s[d]=o),h[d]=o),f[d]=a}o.splice(1,0,f),a.splice(1,0,h),c=-1;const p=[];for(;++c0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}fo[43]=uo,fo[45]=uo,fo[46]=uo,fo[95]=uo,fo[72]=[uo,co],fo[104]=[uo,co],fo[87]=[uo,lo],fo[119]=[uo,lo];const yo={tokenize:function(e,t,n){const r=this;return pt(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function wo(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return n(i);const s=Dt(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!o.includes(s.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function _o(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function xo(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!o||null===s||91===s||ct(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(Dt(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return ct(s)||(o=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function ko(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||ct(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=Dt(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ct(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),pt(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function So(e,t,n){return e.check(bt,t,e.attempt(yo,t,n))}function Co(e){e.exit("gfmFootnoteDefinition")}function Mo(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const i=this.previous,o=this.events;let a=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const l=un(i);if(126===o)return a>1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=un(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function Ao(e,t){let n=!1;const r=[];for(;t-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?w:s;if(o===w&&r.parser.lazy[r.now().line])return n(e);return o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return i=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):lt(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):ut(t)?pt(e,l,"whitespace")(t):(a+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||ct(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,ut(t)?pt(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?p(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):y(t)}function h(t){return ut(t)?pt(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||lt(t)?b(t):y(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):y(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return ut(t)?pt(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?f(n):(null===n||lt(n))&&i&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function w(t){return e.enter("tableRow"),_(t)}function _(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),_):null===n||lt(n)?(e.exit("tableRow"),t(n)):ut(n)?pt(e,_,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||ct(t)?(e.exit("data"),_(t)):(e.consume(t),92===t?k:x)}function k(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function Oo(e,t){let n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const f=new Eo;for(;++on[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(o.end=Object.assign({},Ro(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Zo(e,t,n,r,i){const o=[],a=Ro(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function Ro(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const No={tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return ct(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return lt(r)?t(r):ut(r)?e.check({tokenize:Po},t,n)(r):n(r)}}};function Po(e,t,n){return pt(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const To={};function Bo(e){const t=e||To,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Je([{text:fo},{document:{91:{tokenize:ko,continuation:{tokenize:So},exit:Co}},text:{91:{tokenize:xo},93:{add:"after",tokenize:wo,resolveTo:_o}}},Mo(e),{flow:{null:{tokenize:Io,resolveAll:Oo}}},{text:{91:No}}])}(t)),i.push([{transforms:[si],enter:{literalAutolink:ti,literalAutolinkEmail:ni,literalAutolinkHttp:ni,literalAutolinkWww:ni},exit:{literalAutolink:ai,literalAutolinkEmail:oi,literalAutolinkHttp:ri,literalAutolinkWww:ii}},{enter:{gfmFootnoteDefinition:di,gfmFootnoteDefinitionLabelString:fi,gfmFootnoteCall:mi,gfmFootnoteCallString:gi},exit:{gfmFootnoteDefinition:pi,gfmFootnoteDefinitionLabelString:hi,gfmFootnoteCall:bi,gfmFootnoteCallString:vi}},{canContainEols:["delete"],enter:{strikethrough:ki},exit:{strikethrough:Si}},{enter:{table:Ui,tableData:Xi,tableHeader:Xi,tableRow:Gi},exit:{codeText:Ki,table:Yi,tableData:qi,tableHeader:qi,tableRow:qi}},{exit:{taskListCheckValueChecked:eo,taskListCheckValueUnchecked:eo,paragraph:to}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Qr,notInConstruct:ei},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Qr,notInConstruct:ei},{character:":",before:"[ps]",after:"\\/",inConstruct:Qr,notInConstruct:ei}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:wi,footnoteReference:yi}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:xi}],handlers:{delete:Ci}},Qi(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:no}}]}}(t))}var $o=M.forwardRef((function(e,t){var r=(0,M.useState)(""),i=v()(r,2),o=i[0],a=i[1],s=(0,M.useState)(""),l=v()(s,2),c=l[0],u=l[1],d=(0,M.useState)(!1),f=v()(d,2),h=f[0],p=f[1],g=(0,M.useState)("update"),b=v()(g,2),_=b[0],E=b[1],A=(0,M.useRef)(),I=(0,M.useState)(!1),O=v()(I,2),j=O[0],Z=O[1],R=(0,M.useCallback)((function(){Z(!0)}),[]);(0,M.useImperativeHandle)(t,(function(){return{handleOpen:R}}));var N=(0,M.useCallback)(y()(m()().mark((function e(){return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)}))),[]),P=(0,M.useCallback)(y()(m()().mark((function e(){var t,r,i;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new URL(n(45871),n.b).toString(),r=function(){return p(!1)},p(!0),e.next=5,(0,x.Hj)((0,S.request)(t),r);case 5:i=e.sent,a(i),p(!1);case 8:case"end":return e.stop()}}),e)}))),[]),T=(0,M.useCallback)(y()(m()().mark((function e(){var t,r,i;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new URL(n(12129),n.b).toString(),r=function(){return p(!1)},p(!0),e.next=5,(0,x.Hj)((0,S.request)(t),r);case 5:i=e.sent,u(i),p(!1);case 8:case"end":return e.stop()}}),e)}))),[]);return(0,M.useEffect)((function(){P(),T()}),[P,T]),(0,Fe.jsxs)(k.Y,{formRef:A,open:j,onFinish:N,onOpenChange:function(e){Z(e)},width:"750px",modalProps:{style:{top:25}},title:(0,Fe.jsxs)("div",{className:"flex items-center",children:[(0,Fe.jsx)("img",{className:"mr-2",width:"22",src:w}),(0,Fe.jsx)("span",{children:"DFSTool"})]}),submitter:!1,loading:h,children:[(0,Fe.jsx)(C.Z,{className:"",block:!0,options:[{label:(0,Fe.jsx)("span",{className:"font-semibold",children:"更新日志"}),value:"update"},{label:(0,Fe.jsx)("span",{className:"font-semibold",children:"功能介绍"}),value:"instructions"}],size:"large",onChange:E,value:_}),(0,Fe.jsx)("div",{className:"mt-3",children:"update"===_?(0,Fe.jsx)(Yr,{children:o,remarkPlugins:[[Bo]]}):(0,Fe.jsx)(Yr,{children:c,remarkPlugins:[[Bo]]})})]})})),Do=(0,M.memo)($o),Lo=n(31120),zo=n(34390),Fo=n(94149),Wo=n(3355),Ho=n(87462),Vo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"},Uo=n(84089),Yo=function(e,t){return M.createElement(Uo.Z,(0,Ho.Z)({},e,{ref:t,icon:Vo}))};var Go=M.forwardRef(Yo),qo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},Xo=function(e,t){return M.createElement(Uo.Z,(0,Ho.Z)({},e,{ref:t,icon:qo}))};var Ko=M.forwardRef(Xo),Jo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},Qo=function(e,t){return M.createElement(Uo.Z,(0,Ho.Z)({},e,{ref:t,icon:Jo}))};var ea=M.forwardRef(Qo),ta=n(15360),na=n(68795),ra={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"},ia=function(e,t){return M.createElement(Uo.Z,(0,Ho.Z)({},e,{ref:t,icon:ra}))};var oa=M.forwardRef(ia),aa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z"}}]},name:"usergroup-add",theme:"outlined"},sa=function(e,t){return M.createElement(Uo.Z,(0,Ho.Z)({},e,{ref:t,icon:aa}))};var la=M.forwardRef(sa),ca={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm159.6-585h-59.5c-3 0-5.8 1.7-7.1 4.4l-90.6 180H511l-90.6-180a8 8 0 00-7.1-4.4h-60.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9L457 515.7h-61.4c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V603h-81.7c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V717c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c4.4 0 8-3.6 8-8v-29.9c0-4.4-3.6-8-8-8h-62l111.1-204.8c.6-1.2 1-2.5 1-3.8-.1-4.4-3.7-8-8.1-8z"}}]},name:"pay-circle",theme:"outlined"},ua=function(e,t){return M.createElement(Uo.Z,(0,Ho.Z)({},e,{ref:t,icon:ca}))};var da=M.forwardRef(ua),fa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M945 412H689c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h256c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM811 548H689c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h122c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM477.3 322.5H434c-6.2 0-11.2 5-11.2 11.2v248c0 3.6 1.7 6.9 4.6 9l148.9 108.6c5 3.6 12 2.6 15.6-2.4l25.7-35.1v-.1c3.6-5 2.5-12-2.5-15.6l-126.7-91.6V333.7c.1-6.2-5-11.2-11.1-11.2z"}},{tag:"path",attrs:{d:"M804.8 673.9H747c-5.6 0-10.9 2.9-13.9 7.7a321 321 0 01-44.5 55.7 317.17 317.17 0 01-101.3 68.3c-39.3 16.6-81 25-124 25-43.1 0-84.8-8.4-124-25-37.9-16-72-39-101.3-68.3s-52.3-63.4-68.3-101.3c-16.6-39.2-25-80.9-25-124 0-43.1 8.4-84.7 25-124 16-37.9 39-72 68.3-101.3 29.3-29.3 63.4-52.3 101.3-68.3 39.2-16.6 81-25 124-25 43.1 0 84.8 8.4 124 25 37.9 16 72 39 101.3 68.3a321 321 0 0144.5 55.7c3 4.8 8.3 7.7 13.9 7.7h57.8c6.9 0 11.3-7.2 8.2-13.3-65.2-129.7-197.4-214-345-215.7-216.1-2.7-395.6 174.2-396 390.1C71.6 727.5 246.9 903 463.2 903c149.5 0 283.9-84.6 349.8-215.8a9.18 9.18 0 00-8.2-13.3z"}}]},name:"field-time",theme:"outlined"},ha=function(e,t){return M.createElement(Uo.Z,(0,Ho.Z)({},e,{ref:t,icon:fa}))};var pa=M.forwardRef(ha),ma={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z"}}]},name:"coffee",theme:"outlined"},ga=function(e,t){return M.createElement(Uo.Z,(0,Ho.Z)({},e,{ref:t,icon:ma}))};var va=M.forwardRef(ga),ba={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"wallet",theme:"outlined"},ya=function(e,t){return M.createElement(Uo.Z,(0,Ho.Z)({},e,{ref:t,icon:ba}))};var wa=M.forwardRef(ya),_a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},xa=function(e,t){return M.createElement(Uo.Z,(0,Ho.Z)({},e,{ref:t,icon:_a}))};var ka=M.forwardRef(xa),Sa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M140 188h584v164h76V144c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h544v-76H140V188z"}},{tag:"path",attrs:{d:"M414.3 256h-60.6c-3.4 0-6.4 2.2-7.6 5.4L219 629.4c-.3.8-.4 1.7-.4 2.6 0 4.4 3.6 8 8 8h55.1c3.4 0 6.4-2.2 7.6-5.4L322 540h196.2L422 261.4a8.42 8.42 0 00-7.7-5.4zm12.4 228h-85.5L384 360.2 426.7 484zM936 528H800v-93c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v93H592c-13.3 0-24 10.7-24 24v176c0 13.3 10.7 24 24 24h136v152c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V752h136c13.3 0 24-10.7 24-24V552c0-13.3-10.7-24-24-24zM728 680h-88v-80h88v80zm160 0h-88v-80h88v80z"}}]},name:"translation",theme:"outlined"},Ca=function(e,t){return M.createElement(Uo.Z,(0,Ho.Z)({},e,{ref:t,icon:Sa}))};var Ma=M.forwardRef(Ca),Ea={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 00-37-29.3H154a44 44 0 00-44 44v252a44 44 0 0044 44h75v388a44 44 0 0044 44h478a44 44 0 0044-44V466h75a44 44 0 0044-44V170a44 44 0 00-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z"}}]},name:"skin",theme:"outlined"},Aa=function(e,t){return M.createElement(Uo.Z,(0,Ho.Z)({},e,{ref:t,icon:Ea}))};var Ia=M.forwardRef(Aa),Oa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},ja=function(e,t){return M.createElement(Uo.Z,(0,Ho.Z)({},e,{ref:t,icon:Oa}))};var Za=M.forwardRef(ja),Ra=n(41960),Na=n(39217),Pa=n(69284),Ta=n(45360),Ba=n(40411),$a=n(85418),Da=n(96074),La=n(42075),za=n(71415),Fa=n.n(za),Wa=n(70423),Ha=n(90837),Va=n(38592),Ua=n(98390);function Ya(){return Ga.apply(this,arguments)}function Ga(){return(Ga=y()(m()().mark((function e(){return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{name:"@umijs/max"});case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var qa=JSON.parse(localStorage.getItem("navTheme"));qa=qa||null;var Xa=function(){var e=(0,S.useDispatch)(),t=(0,S.useNavigate)(),n="V0.25.0",r=(0,M.useRef)(),i=(0,M.useState)(""),o=v()(i,2),a=o[0],s=o[1],l=(0,M.useState)(!0),c=v()(l,2),u=c[0],d=c[1],f=(0,M.useState)([]),p=v()(f,2),g=p[0],b=p[1],k=(0,S.useIntl)(),C=k.formatMessage({id:"app.openVConsole"}),E=k.formatMessage({id:"app.closeVConsole"}),A=k.formatMessage({id:"app.clearCompleted"}),I=k.formatMessage({id:"app.clearSessionStorage"}),O=k.formatMessage({id:"app.clearLocalStorage"}),j=k.formatMessage({id:"account.intlNodeConnectFail"}),Z=k.formatMessage({id:"app.clearIndexedDB"}),R=k.formatMessage({id:"app.refresh"}),N=k.formatMessage({id:"app.clearAll"}),P=(0,M.useRef)(),T=(0,M.useRef)(),B=(0,S.useSelector)((function(e){return e.global.session})),$=(0,S.useSelector)((function(e){return e.global.account})),D=Ta.ZP.useMessage(),L=v()(D,2),z=L[0],F=L[1],W=(0,S.useSelector)((function(e){return e.global.chain})),H=(0,S.useSelector)((function(e){return e.wallet.wallets})),V=(0,S.useSelector)((function(e){return e.wallet.locks})),U=(0,S.useSelector)((function(e){return e.global.status})),Y=(0,M.useCallback)((function(){JSON.parse(localStorage.getItem("vConsole"))?(r.current=new(Fa()),r.current.setSwitchPosition(0,0),s("".concat(E))):s("".concat(C))}),[]),G=(0,M.useCallback)((function(){var e=qa?null:"realDark";localStorage.setItem("navTheme",JSON.stringify(e)),window.location.reload()}),[]),q=function(){var e=y()(m()().mark((function e(t){var n,i;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("clearSessionStorage"!==(n=t.key)){e.next=6;break}sessionStorage.clear(),Ta.ZP.info({content:"".concat(A)}),e.next=26;break;case 6:if("clearLocalStorage"!==n){e.next=11;break}localStorage.clear(),Ta.ZP.info({content:"".concat(A)}),e.next=26;break;case 11:if("clearIndexedDB"!==n){e.next=17;break}return e.next=14,(0,Lo.Q)(Lo.db.delete());case 14:Ta.ZP.info({content:"".concat(A)}),e.next=26;break;case 17:if("clearAll"!==n){e.next=25;break}return sessionStorage.clear(),localStorage.clear(),e.next=22,(0,Lo.Q)(Lo.db.delete());case 22:Ta.ZP.info({content:"".concat(A)}),e.next=26;break;case 25:"vConsole"===n?JSON.parse(localStorage.getItem("vConsole"))?(null===(i=r.current)||void 0===i||i.destroy(),localStorage.setItem("vConsole",JSON.stringify(!1)),s("".concat(C))):(r.current=new(Fa()),r.current.setSwitchPosition(0,0),localStorage.setItem("vConsole",JSON.stringify(!0)),s("".concat(E))):"refresh"===n&&window.location.reload();case 26:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),X=function(){var e=y()(m()().mark((function e(t){var n;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"english"===(n=t.key)?(0,S.setLocale)("en-US"):"chinese"===n&&(0,S.setLocale)("zh-CN");case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),K=(0,M.useCallback)(y()(m()().mark((function n(){var r,i,o,a,s,l,c,u,d,f;return m()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=[],i=W.id.toString(),n.next=4,(0,Lo.Q)(Lo.db.wallets.where("chainId").equals(i).toArray());case 4:if(o=n.sent,a=v()(o,2),s=a[0],l=a[1],!s){n.next=12;break}return b(r),z.error(s),n.abrupt("return",!1);case 12:if(l.length){n.next=15;break}return t("/tools/wallet"),n.abrupt("return");case 15:c=!!$,u=B?B.permissionLevel.toString():"",d={},f=l.sort((function(e,t){return e.account.localeCompare(t.account)})),f.forEach((function(e){var t=e.account+"@"+e.permission,n=u===t,i=!V[e.key]||V[e.key].isLock;i=i?(!n||!c)&&i:i,r.push({disabled:c,key:e.key,label:(0,Fe.jsxs)("div",{className:" font-semibold text-base",children:[i?(0,Fe.jsx)(Ba.Z,{offset:[-8,5],dot:n,status:U,children:(0,Fe.jsx)(Fo.Z,{className:" text-yellow-500 mr-3"})}):(0,Fe.jsx)(Ba.Z,{offset:[-8,5],dot:n,status:U,children:(0,Fe.jsx)(Wo.Z,{className:"text-green-500 mr-3"})}),t]})}),d[e.key]={isLock:!0,password:""}})),b(r),e(Va.N.setWallets(f)),e(Va.N.setLocks(h()(h()({},d),V)));case 23:case"end":return n.stop()}}),n)}))),[W,V,$,B,U]),J=(0,M.useCallback)(function(){var t=y()(m()().mark((function t(n,r){var i,o,a,s,l,c,u,d,f,h,p;return m()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"DFSTool",i=n.split("@"),o=v()(i,2),a=o[0],s=o[1],l={chain:W,actor:a,permission:s,permissionLevel:n,walletPlugin:new zo.q(r)},c={appName:"DFSTool",transactPlugins:[new Ua.Z({actor:"dfs.service",permission:"cpu",privateKey:"5JdBkvZva99uwBanXjGGhF4T7SrLpgTBipU76CD9QN4dFRPuD4N"})]},u=new Pa.z_(l,c),d=new Na.jf({client:u.client}),f=new Ra.N8(u.chain),h=u.serialize(),localStorage.setItem("wharf--session",JSON.stringify(h)),localStorage.setItem("wharf--sessions",JSON.stringify([h])),e(Ha.N.setSession(u)),e(Ha.N.setChain(u.chain)),e(Ha.N.setContractKit(d)),e(Ha.N.setAccountKit(f)),t.next=16,(0,x.IU)(f.load(u.actor),"".concat(j));case 16:p=t.sent,e(Ha.N.setAccount(p)),e(Ha.N.setStatus("processing"));case 19:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),[W]),Q=(0,M.useCallback)(function(){var e=y()(m()().mark((function e(t){var n,r,i,o,a,s;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.key,r=H.find((function(e){return e.key===n})),i="".concat(r.account,"@").concat(r.permission),(o=V[n]).isLock?T.current.handleOpen(n,i,[J]):(a=o.password,s=(0,x.ow)(r.privateKey,a),J(i,s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[V,H,J]),ee=(0,M.useMemo)((function(){return[{key:"vConsole",label:a},{key:"clearSessionStorage",label:"".concat(I)},{key:"clearLocalStorage",label:"".concat(O)},{key:"clearIndexedDB",label:"".concat(Z)},{key:"clearAll",label:"".concat(N)},{key:"refresh",label:"".concat(R)}]}),[a]),te=(0,M.useMemo)((function(){return[{key:"english",label:"English"},{key:"chinese",label:"简体中文"}]}),[]),ne=(0,M.useMemo)((function(){switch(W.name){case"DFS":return[{name:"dash",path:"/dash",component:"./Dash",icon:(0,Fe.jsx)(Go,{})},{name:"ecosystem",path:"/ecosystem",component:"./Ecosystem",icon:(0,Fe.jsx)(Ko,{})},{name:"vote",path:"/vote",icon:(0,Fe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",children:(0,Fe.jsx)("path",{fill:"currentColor",d:"M5 22q-.825 0-1.412-.587T3 20v-4.55l2.75-3.125l1.425 1.425l-2 2.25h13.65l-1.95-2.2l1.425-1.425L21 15.45V20q0 .825-.587 1.413T19 22zm0-2h14v-2H5zm5.625-5.625L7.1 10.85q-.575-.575-.562-1.412t.587-1.413l4.9-4.9q.575-.575 1.425-.6t1.425.55L18.4 6.6q.575.575.6 1.4t-.55 1.4l-5 5q-.575.575-1.412.563t-1.413-.588M17 8.025L13.475 4.5l-4.95 4.95l3.525 3.525zM5 20v-2z"})}),hideInBreadcrumb:!0,routes:[{name:"node",path:"/vote/node"},{name:"producer",path:"/vote/producer"},{name:"king",path:"/vote/king"}]},{name:"interface",path:"/interface",icon:(0,Fe.jsx)(ea,{}),hideInBreadcrumb:!0,routes:[{name:"rpc",path:"/interface/rpc",component:"./Interface/RPC"},{name:"rpc2",path:"/interface/rpc2",component:"./Interface/RPC2"},{name:"decode",path:"/interface/decode",component:"./Interface/Decode"}]},{name:"log",path:"/log",icon:(0,Fe.jsx)(ta.Z,{}),hideInBreadcrumb:!0,routes:[{name:"swaplog",path:"/log/swap",component:"./Log/Swap"},{name:"liqlog",path:"/log/liq",component:"./Log/Liq"},{name:"bridgelog",path:"/log/bridge",component:"./Log/Bridge"},{name:"jiuburn",path:"/log/jiuburn",component:"./Log/JIUBurn"}]},{name:"query",path:"/query",icon:(0,Fe.jsx)(na.Z,{}),hideInBreadcrumb:!0,routes:[{name:"account",path:"/query/account",component:"./Query/Account"},{name:"contract",path:"/query/contract",component:"./Query/Contract"},{name:"transaction",path:"/query/transaction",component:"./Query/Transaction"}]},{name:"statistics",path:"/statistics",icon:(0,Fe.jsx)(oa,{}),hideInBreadcrumb:!0,routes:[{name:"newaccount",path:"/statistics/newaccount",component:"./Statistics/NewAccount"},{name:"pools",path:"/statistics/pools",component:"./Statistics/Pools"},{name:"tokens",path:"/statistics/tokens",component:"./Statistics/tokens"}]},{name:"msig",path:"/msig",icon:(0,Fe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 14 14",children:(0,Fe.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Fe.jsx)("circle",{cx:"5",cy:"2.75",r:"2.25"}),(0,Fe.jsx)("path",{d:"M3.5 12.5h-3V11A4.51 4.51 0 0 1 7 7m6.5 1.5l-4.71 4.71l-2.13.29l.3-2.13l4.7-4.71L13.5 8.5z"})]})}),hideInBreadcrumb:!0,routes:[{name:"proposal",path:"/msig/proposal",component:"./Msig/Proposal"},{name:"pubkey",path:"/msig/pubkey",component:"./Msig/Pubkey"},{name:"transaction",path:"/msig/transaction",component:"./Msig/Transaction"}]},{name:"ppp",path:"/ppp",icon:(0,Fe.jsx)(la,{}),hideInBreadcrumb:!0,routes:[{name:"project",path:"/ppp/project",component:"./PPP/Project"},{name:"list",path:"/ppp/list",component:"./PPP/List"},{name:"swaplog",path:"/ppp/swaplog",component:"./PPP/SwapLog"},{name:"sweep",path:"/ppp/sweep",component:"./PPP/Sweep"},{name:"autosweep",path:"/ppp/autosweep",component:"./PPP/AutoSweep"},{name:"burn",path:"/ppp/burn",component:"./PPP/Burn"},{name:"autoburn",path:"/ppp/autoburn",component:"./PPP/AutoBurn"},{name:"autotrade",path:"/ppp/autotrade",component:"./PPP/AutoTrade"}]},{name:"tools",path:"/tools",icon:(0,Fe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 48 48",children:(0,Fe.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"4",children:[(0,Fe.jsx)("path",{strokeLinecap:"round",d:"M8 25v13a3 3 0 0 0 3 3h26a3 3 0 0 0 3-3V25"}),(0,Fe.jsx)("path",{d:"M5 15a2 2 0 0 1 2-2h34a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z"}),(0,Fe.jsx)("path",{strokeLinecap:"round",d:"M31 13V9a2 2 0 0 0-2-2H19a2 2 0 0 0-2 2v4m-2 10v6m18-6v6"})]})}),hideInBreadcrumb:!0,routes:[{name:"timeconvert",path:"/tools/timeconvert",component:"./Tools/TimeConvert"},{name:"verify",path:"/tools/verify",component:"./Tools/Verify"},{name:"claim",path:"/tools/claim",component:"./Tools/Claim"},{name:"autoclaim",path:"/tools/autoclaim",component:"./Tools/AutoClaim"},{name:"secretkey",path:"/tools/secretkey",component:"./Tools/SecretKey"},{name:"pubkeyswitch",path:"/tools/pubkeyswitch",component:"./Tools/PubkeySwitch"},{name:"nameswitch",path:"/tools/nameswitch",component:"./Tools/NameSwitch"},{name:"rpc",path:"/tools/rpc",component:"./Tools/RPC"},{name:"wallet",path:"/tools/wallet",component:"./Tools/Wallet"},{name:"nodebonus",path:"/tools/nodebonus",component:"./Tools/NodeBonus"},{name:"deploy",path:"/tools/deploy",component:"./Tools/Deploy"}]},{name:"transfer",path:"/transfer",component:"./Transfer",icon:(0,Fe.jsx)(da,{})},{name:"timeline",path:"/timeline",component:"./Timeline",icon:(0,Fe.jsx)(pa,{})},{name:"coffee",path:"/coffee",component:"./Coffee",icon:(0,Fe.jsx)(va,{})},{path:"/*",component:"./404"}];case"EOS":case"Jungle 4 (Testnet)":return[{name:"ecosystem",path:"/ecosystem",component:"./Ecosystem",icon:(0,Fe.jsx)(Ko,{})},{name:"interface",path:"/interface",icon:(0,Fe.jsx)(ea,{}),hideInBreadcrumb:!0,routes:[{name:"rpc",path:"/interface/rpc",component:"./Interface/RPC"},{name:"decode",path:"/interface/decode",component:"./Interface/Decode"}]},{name:"query",path:"/query",icon:(0,Fe.jsx)(na.Z,{}),hideInBreadcrumb:!0,routes:[{name:"contract",path:"/query/contract",component:"./Query/Contract"}]},{name:"msig",path:"/msig",icon:(0,Fe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 14 14",children:(0,Fe.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Fe.jsx)("circle",{cx:"5",cy:"2.75",r:"2.25"}),(0,Fe.jsx)("path",{d:"M3.5 12.5h-3V11A4.51 4.51 0 0 1 7 7m6.5 1.5l-4.71 4.71l-2.13.29l.3-2.13l4.7-4.71L13.5 8.5z"})]})}),hideInBreadcrumb:!0,routes:[{name:"proposal",path:"/msig/proposal",component:"./Msig/Proposal"},{name:"pubkey",path:"/msig/pubkey",component:"./Msig/Pubkey"},{name:"transaction",path:"/msig/transaction",component:"./Msig/Transaction"}]},{name:"tools",path:"/tools",icon:(0,Fe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 48 48",children:(0,Fe.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"4",children:[(0,Fe.jsx)("path",{strokeLinecap:"round",d:"M8 25v13a3 3 0 0 0 3 3h26a3 3 0 0 0 3-3V25"}),(0,Fe.jsx)("path",{d:"M5 15a2 2 0 0 1 2-2h34a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z"}),(0,Fe.jsx)("path",{strokeLinecap:"round",d:"M31 13V9a2 2 0 0 0-2-2H19a2 2 0 0 0-2 2v4m-2 10v6m18-6v6"})]})}),hideInBreadcrumb:!0,routes:[{name:"timeconvert",path:"/tools/timeconvert",component:"./Tools/TimeConvert"},{name:"verify",path:"/tools/verify",component:"./Tools/Verify"},{name:"secretkey",path:"/tools/secretkey",component:"./Tools/SecretKey"},{name:"pubkeyswitch",path:"/tools/pubkeyswitch",component:"./Tools/PubkeySwitch"},{name:"nameswitch",path:"/tools/nameswitch",component:"./Tools/NameSwitch"},{name:"rpc",path:"/tools/rpc",component:"./Tools/RPC"},{name:"wallet",path:"/tools/wallet",component:"./Tools/Wallet"},{name:"deploy",path:"/tools/deploy",component:"./Tools/Deploy"}]},{name:"timeline",path:"/timeline",component:"./Timeline",icon:(0,Fe.jsx)(pa,{})},{name:"coffee",path:"/coffee",component:"./Coffee",icon:(0,Fe.jsx)(va,{})},{path:"/*",component:"./404"}]}}),[W]);return(0,M.useEffect)((function(){Y(),y()(m()().mark((function e(){var t,r;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=JSON.parse(localStorage.getItem("version")),r=JSON.parse(localStorage.getItem("readLog")),t!==n&&(sessionStorage.clear(),localStorage.clear(),localStorage.setItem("version",JSON.stringify(n)),window.location.reload()),d(!!r);case 4:case"end":return e.stop()}}),e)})))()}),[n]),{title:"DFSTool",logo:w,navTheme:qa,menu:{locale:!0},hideInBreadcrumb:!1,route:{routes:ne},siderWidth:180,layout:"mix",token:{pageContainer:{paddingBlockPageContainerContent:15,paddingInlinePageContainerContent:15}},actionsRender:function(){return[(0,Fe.jsx)(va,{style:{fontSize:"1.6em",color:"#4d3900",marginRight:"-8px"},onClick:function(){return t("/coffee")}},"4"),(0,Fe.jsxs)(Ba.Z,{dot:!u,offset:[0,5],children:[(0,Fe.jsx)(ta.Z,{onClick:function(){P.current.handleOpen(),localStorage.setItem("readLog",JSON.stringify(!0)),d(!0)},style:{fontSize:"1.8em",color:"#4d3900",marginRight:"-8px"}},"3"),(0,Fe.jsx)(Do,{ref:P})]}),(0,Fe.jsx)(Fe.Fragment,{children:(0,x.Mn)()&&$?(0,Fe.jsx)(Fe.Fragment,{}):(0,Fe.jsx)($a.Z,{trigger:["click"],placement:"bottomRight",menu:{items:g,onClick:Q},children:(0,Fe.jsx)(wa,{style:{fontSize:"1.8em",color:"#4d3900",marginRight:"-4px"},onClick:K})},"2")}),(0,Fe.jsxs)("div",{style:{marginRight:"8px"},children:[(0,Fe.jsx)(_.NL,{}),(0,Fe.jsx)(Wa.sI,{ref:T,messageApi:z}),F]},"1")]},menuProps:{onClick:function(){var e=new KeyboardEvent("keydown",{code:"Escape",key:"Escape",bubbles:!0,keyCode:27});document.getElementsByTagName("aside")[0].dispatchEvent(e)}},menuFooterRender:function(e){return null!=e&&e.collapsed?(0,Fe.jsxs)("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center"},children:[(0,Fe.jsx)(Da.Z,{}),(0,Fe.jsx)("div",{style:{cursor:"pointer",marginBottom:"8px"},children:(0,Fe.jsx)(ka,{style:{fontSize:"1.4em",cursor:"pointer"},onClick:function(){return window.open("https://github.com/dfstool")}})}),(0,Fe.jsx)("div",{style:{cursor:"pointer",marginBottom:"8px"},children:(0,Fe.jsx)($a.Z,{placement:"topLeft",menu:{items:te,onClick:X},children:(0,Fe.jsx)(Ma,{style:{fontSize:"1.3em"}})})}),(0,Fe.jsx)("div",{style:{cursor:"pointer",marginBottom:"8px"},children:(0,Fe.jsx)(Ia,{style:{fontSize:"1.3em"},onClick:function(){return G()}})}),(0,Fe.jsx)("div",{style:{cursor:"pointer",marginBottom:"8px"},children:(0,Fe.jsx)($a.Z,{placement:"topLeft",menu:{items:ee,onClick:q},children:(0,Fe.jsx)(Za,{style:{fontSize:"1.3em"}})})}),(0,Fe.jsx)("div",{children:n})]}):(0,Fe.jsxs)("div",{style:{paddingLeft:"16px"},children:[(0,Fe.jsx)(Da.Z,{}),(0,Fe.jsxs)(La.Z,{direction:"vertical",children:[(0,Fe.jsx)(La.Z,{size:"middle"}),(0,Fe.jsxs)(La.Z,{size:"small",children:[(0,Fe.jsx)(ka,{style:{fontSize:"1.4em",cursor:"pointer"},onClick:function(){return window.open("https://github.com/dfstool")}}),(0,Fe.jsx)($a.Z,{className:"hover:cursor-pointer",placement:"topLeft",menu:{items:ee,onClick:q},children:(0,Fe.jsx)(Za,{style:{fontSize:"1.3em"}})}),(0,Fe.jsx)($a.Z,{className:"hover:cursor-pointer",placement:"topLeft",menu:{items:te,onClick:X},children:(0,Fe.jsx)(Ma,{style:{fontSize:"1.3em"}})}),(0,Fe.jsx)(Ia,{style:{fontSize:"1.3em"},onClick:function(){return G()}})]}),(0,Fe.jsxs)("div",{children:["DFSTool ",n]})]})]})}}},Ka=function(e){e.routes.unshift({path:"/",element:(0,Fe.jsx)(S.Navigate,{to:"/dash",replace:!0})})};document.getElementsByTagName("html")[0].setAttribute("spellcheck","false");var Ja=n(45697),Qa=n.n(Ja),es=n(69590),ts=n.n(es),ns=n(41143),rs=n.n(ns),is=n(96774),os=n.n(is);function as(){return as=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var us={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},ds={rel:["amphtml","canonical","alternate"]},fs={type:["application/ld+json"]},hs={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},ps=Object.keys(us).map((function(e){return us[e]})),ms={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},gs=Object.keys(ms).reduce((function(e,t){return e[ms[t]]=t,e}),{}),vs=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},bs=function(e){var t=vs(e,us.TITLE),n=vs(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=vs(e,"defaultTitle");return t||r||void 0},ys=function(e){return vs(e,"onChangeClientState")||function(){}},ws=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return as({},e,t)}),{})},_s=function(e,t){return t.filter((function(e){return void 0!==e[us.BASE]})).map((function(e){return e[us.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i/g,">").replace(/"/g,""").replace(/'/g,"'")},Is=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},Os=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[ms[n]||n]=e[n],t}),t)},js=function(e,t){return t.map((function(t,n){var r,i=((r={key:n})["data-rh"]=!0,r);return Object.keys(t).forEach((function(e){var n=ms[e]||e;"innerHTML"===n||"cssText"===n?i.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:i[n]=t[e]})),M.createElement(e,i)}))},Zs=function(e,t,n){switch(e){case us.TITLE:return{toComponent:function(){return n=t.titleAttributes,(r={key:e=t.title})["data-rh"]=!0,i=Os(n,r),[M.createElement(us.TITLE,i,e)];var e,n,r,i},toString:function(){return function(e,t,n,r){var i=Is(n),o=Ss(t);return i?"<"+e+' data-rh="true" '+i+">"+As(o,r)+"":"<"+e+' data-rh="true">'+As(o,r)+""}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return Os(t)},toString:function(){return Is(t)}};default:return{toComponent:function(){return js(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var i=void 0===r[t]?t:t+'="'+As(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===Es.indexOf(e);return t+"<"+e+' data-rh="true" '+i+(a?"/>":">"+o+"")}),"")}(e,t,n)}}}},Rs=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.noscriptTags,a=e.styleTags,s=e.title,l=void 0===s?"":s,c=e.titleAttributes,u=e.linkTags,d=e.metaTags,f=e.scriptTags,h={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var p=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,i=Cs(e.metaTags,hs),o=Cs(t,ds),a=Cs(n,fs);return{priorityMethods:{toComponent:function(){return[].concat(js(us.META,i.priority),js(us.LINK,o.priority),js(us.SCRIPT,a.priority))},toString:function(){return Zs(us.META,i.priority,r)+" "+Zs(us.LINK,o.priority,r)+" "+Zs(us.SCRIPT,a.priority,r)}},metaTags:i.default,linkTags:o.default,scriptTags:a.default}}(e);h=p.priorityMethods,u=p.linkTags,d=p.metaTags,f=p.scriptTags}return{priority:h,base:Zs(us.BASE,t,r),bodyAttributes:Zs("bodyAttributes",n,r),htmlAttributes:Zs("htmlAttributes",i,r),link:Zs(us.LINK,u,r),meta:Zs(us.META,d,r),noscript:Zs(us.NOSCRIPT,o,r),script:Zs(us.SCRIPT,f,r),style:Zs(us.STYLE,a,r),title:Zs(us.TITLE,{title:l,titleAttributes:c},r)}},Ns=[],Ps=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?Ns:n.instances},add:function(e){(n.canUseDOM?Ns:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?Ns:n.instances).indexOf(e);(n.canUseDOM?Ns:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=Rs({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},Ts=M.createContext({}),Bs=Qa().shape({setHelmet:Qa().func,helmetInstances:Qa().shape({get:Qa().func,add:Qa().func,remove:Qa().func})}),$s="undefined"!=typeof document,Ds=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new Ps(r.props.context,t.canUseDOM),r}return ss(t,e),t.prototype.render=function(){return M.createElement(Ts.Provider,{value:this.helmetData.value},this.props.children)},t}(M.Component);Ds.canUseDOM=$s,Ds.propTypes={context:Qa().shape({helmet:Qa().shape()}),children:Qa().node.isRequired},Ds.defaultProps={context:{}},Ds.displayName="HelmetProvider";var Ls=function(e,t){var n,r=document.head||document.querySelector(us.HEAD),i=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(i),a=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&("innerHTML"===i?r.innerHTML=t.innerHTML:"cssText"===i?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(i,void 0===t[i]?"":t[i]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):a.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:a}},zs=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s=0;d-=1)n.removeAttribute(o[d]);i.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==a.join(",")&&n.setAttribute("data-rh",a.join(","))}},Fs=function(e,t){var n=e.baseTag,r=e.htmlAttributes,i=e.linkTags,o=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,d=e.titleAttributes;zs(us.BODY,e.bodyAttributes),zs(us.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=Ss(e)),zs(us.TITLE,t)}(u,d);var f={baseTag:Ls(us.BASE,n),linkTags:Ls(us.LINK,i),metaTags:Ls(us.META,o),noscriptTags:Ls(us.NOSCRIPT,a),scriptTags:Ls(us.SCRIPT,l),styleTags:Ls(us.STYLE,c)},h={},p={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(p[e]=f[e].oldTags)})),t&&t(),s(e,h,p)},Ws=null,Hs=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return as({},r,((t={})[n.type]=[].concat(r[n.type]||[],[as({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case us.TITLE:return as({},i,((t={})[r.type]=a,t.titleAttributes=as({},o),t));case us.BODY:return as({},i,{bodyAttributes:as({},o)});case us.HTML:return as({},i,{htmlAttributes:as({},o)});default:return as({},i,((n={})[r.type]=as({},o),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=as({},t);return Object.keys(e).forEach((function(t){var r;n=as({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return rs()(ps.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+ps.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),rs()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``} ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,r={};return M.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=cs(i,Vs),s=Object.keys(a).reduce((function(e,t){return e[gs[t]||t]=a[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,o),l){case us.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case us.LINK:case us.META:case us.NOSCRIPT:case us.SCRIPT:case us.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(r,t)},n.render=function(){var e=this.props,t=e.children,n=cs(e,Us),r=as({},n),i=n.helmetData;return t&&(r=this.mapChildrenToProps(t,r)),!i||i instanceof Ps||(i=new Ps(i.context,i.instances)),i?M.createElement(Hs,as({},r,{context:i.value,helmetData:void 0})):M.createElement(Ts.Consumer,null,(function(e){return M.createElement(Hs,as({},r,{context:e}))}))},t}(M.Component);Ys.propTypes={base:Qa().object,bodyAttributes:Qa().object,children:Qa().oneOfType([Qa().arrayOf(Qa().node),Qa().node]),defaultTitle:Qa().string,defer:Qa().bool,encodeSpecialCharacters:Qa().bool,htmlAttributes:Qa().object,link:Qa().arrayOf(Qa().object),meta:Qa().arrayOf(Qa().object),noscript:Qa().arrayOf(Qa().object),onChangeClientState:Qa().func,script:Qa().arrayOf(Qa().object),style:Qa().arrayOf(Qa().object),title:Qa().string,titleAttributes:Qa().object,titleTemplate:Qa().string,prioritizeSeoTags:Qa().bool,helmetData:Qa().object},Ys.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Ys.displayName="Helmet";var Gs={},qs=function(e){return M.createElement(Ds,{context:Gs},e)},Xs=n(58427);function Ks(e,t){return M.createElement(Xs.j,t,e)}var Js=n(44886);function Qs(){return(0,Fe.jsx)("div",{})}function el(e){var t=M.useRef(!1),n=((0,Js.t)("@@initialState")||{}).loading,r=void 0!==n&&n;return M.useEffect((function(){r||(t.current=!0)}),[r]),r&&!t.current?(0,Fe.jsx)(Qs,{}):e.children}function tl(e){return(0,Fe.jsx)(el,{children:e})}var nl={};function rl(e){var t=e.routes;Object.keys(t).forEach((function(e){var n=t[e].icon;if(n&&"string"==typeof n){var r=function(e){return e.replace(e[0],e[0].toUpperCase()).replace(/-(w)/g,(function(e,t){return t.toUpperCase()}))}(n);(nl[r]||nl[r+"Outlined"])&&(t[e].icon=M.createElement(nl[r]||nl[r+"Outlined"]))}}))}var il=n(28459),ol=n(30381),al=n.n(ol),sl=(n(83839),n(96726));var ll="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?M.useLayoutEffect:M.useEffect,cl=function(e){var t,n=(0,sl.Kd)(),r=M.useState(n),i=v()(r,2),o=i[0],a=i[1],s=M.useState((function(){return(0,sl.lw)(o,!0)})),l=v()(s,2),c=l[0],u=l[1],d=function(e){var t;null!==al()&&void 0!==al()&&al().locale&&al().locale((null===(t=sl.H8[e])||void 0===t?void 0:t.momentLocale)||"en");a(e),u((0,sl.lw)(e))};ll((function(){return sl.B.on(sl.PZ,d),function(){sl.B.off(sl.PZ,d)}}),[]);var f=(0,sl.Mg)();return(0,Fe.jsx)(il.ZP,{direction:f,locale:(null===(t=sl.H8[o])||void 0===t?void 0:t.antd)||{},children:(0,Fe.jsx)(sl.eU,{value:c,children:e.children})})};function ul(e){return M.createElement(cl,null,e)}function dl(e){var t=e.routes,n=(0,sl.lw)((0,sl.Kd)());!function e(t){Object.keys(t).forEach((function(r){var i=t[r];if(i.title){i.locale=i.title;var o=n.messages[i.title]?n.formatMessage({id:i.title},{}):i.title;i.name=n.messages[i.title]?n.formatMessage({id:i.title},{}):i.name,i.title=o}i.routes&&e(i.routes),i.children&&e(i.children)}))}(t)}var fl={initialState:void 0,loading:!0,error:void 0},hl={model_1:{namespace:"@@initialState",model:function(){var e=(0,M.useState)(fl),t=v()(e,2),n=t[0],r=t[1],i=(0,M.useCallback)(y()(m()().mark((function e(){var t;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r((function(e){return h()(h()({},e),{},{loading:!0,error:void 0})})),e.prev=1,e.next=4,Ya();case 4:t=e.sent,r((function(e){return h()(h()({},e),{},{initialState:t,loading:!1})})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),r((function(t){return h()(h()({},t),{},{error:e.t0,loading:!1})}));case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),[]),o=(0,M.useCallback)(function(){var e=y()(m()().mark((function e(t){return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r((function(e){return"function"==typeof t?h()(h()({},e),{},{initialState:t(e.initialState),loading:!1}):h()(h()({},e),{},{initialState:t,loading:!1})}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[]);return(0,M.useEffect)((function(){i()}),[]),h()(h()({},n),{},{refresh:i,setInitialState:o})}}};function pl(e){var t=M.useMemo((function(){return Object.keys(hl).reduce((function(e,t){return e[hl[t].namespace]=hl[t].model,e}),{})}),[]);return(0,Fe.jsx)(Js.z,h()(h()({models:t},e),{},{children:e.children}))}function ml(e,t){return(0,Fe.jsx)(pl,h()(h()({},t),{},{children:e}))}var gl=null;function vl(){var e;return gl=S.PluginManager.create({plugins:[{apply:(e=o,e.default?"function"==typeof e.default?e.default():e.default:e),path:void 0},{apply:a,path:void 0},{apply:s,path:void 0},{apply:l,path:void 0},{apply:c,path:void 0},{apply:u,path:void 0},{apply:d,path:void 0}],validKeys:["patchRoutes","patchClientRoutes","modifyContextOpts","modifyClientRenderOpts","rootContainer","innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","render","onRouteChange","antd","dva","getInitialState","layout","locale","qiankun","request"]})}function bl(){return gl}},59530:function(e,t,n){"use strict";n.d(t,{ApplyPluginsType:function(){return ce},Link:function(){return Y},Navigate:function(){return P.Fg},Outlet:function(){return P.j3},PluginManager:function(){return ue},getDvaApp:function(){return i.Q},history:function(){return de.m},matchRoutes:function(){return P.fp},request:function(){return N},setLocale:function(){return o.i_},useAppData:function(){return V.Ov},useDispatch:function(){return r.I0},useIntl:function(){return o.YB},useLocation:function(){return P.TH},useNavigate:function(){return P.s0},useSearchParams:function(){return z},useSelector:function(){return r.v9}});var r=n(14754),i=n(58427),o=n(66999),a=(n(44886),n(13769),n(52677),n(97857)),s=n.n(a),l=n(9669),c=n.n(l),u=n(62435),d=n(91296),f=n.n(d),h=n(93096),p=n.n(h);function m(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}new Map;var g=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},v=function(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},E=function(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:{method:"GET"},n=R(),r=Z(),i=t.getResponse,o=void 0!==i&&i,a=t.requestInterceptors,l=t.responseInterceptors,c=null==a?void 0:a.map((function(e){return e instanceof Array?n.interceptors.request.use((function(t){var n=t.url;if(2===e[0].length){var r=e[0](n,t),i=r.url,o=r.options;return s()(s()({},o),{},{url:i})}return e[0](t)}),e[1]):n.interceptors.request.use((function(t){var n=t.url;if(2===e.length){var r=e(n,t),i=r.url,o=r.options;return s()(s()({},o),{},{url:i})}return e(t)}))})),u=null==l?void 0:l.map((function(e){return e instanceof Array?n.interceptors.response.use(e[0],e[1]):n.interceptors.response.use(e)}));return new Promise((function(i,a){n.request(s()(s()({},t),{},{url:e})).then((function(e){null==c||c.forEach((function(e){n.interceptors.request.eject(e)})),null==u||u.forEach((function(e){n.interceptors.response.eject(e)})),i(o?e:e.data)})).catch((function(e){null==c||c.forEach((function(e){n.interceptors.request.eject(e)})),null==u||u.forEach((function(e){n.interceptors.response.eject(e)}));try{var i,o=null==r||null===(i=r.errorConfig)||void 0===i?void 0:i.errorHandler;o&&o(e,t,r)}catch(e){a(e)}a(e)}))}))},P=n(96974),T=n(55648);function B(){return B=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}const D=["onClick","reloadDocument","replace","state","target","to"];const L=(0,u.forwardRef)((function(e,t){let{onClick:n,reloadDocument:r,replace:i=!1,state:o,target:a,to:s}=e,l=$(e,D),c=(0,P.oQ)(s),d=function(e,t){let{target:n,replace:r,state:i}=void 0===t?{}:t,o=(0,P.s0)(),a=(0,P.TH)(),s=(0,P.WU)(e);return(0,u.useCallback)((t=>{if(!(0!==t.button||n&&"_self"!==n||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t))){t.preventDefault();let n=!!r||(0,T.Ep)(a)===(0,T.Ep)(s);o(e,{replace:n,state:i})}}),[a,o,s,r,i,n,e])}(s,{replace:i,state:o,target:a});return(0,u.createElement)("a",B({},l,{href:c,onClick:function(e){n&&n(e),e.defaultPrevented||r||d(e)},ref:t,target:a}))}));function z(e){let t=(0,u.useRef)(F(e)),n=(0,P.TH)(),r=(0,u.useMemo)((()=>{let e=F(n.search);for(let n of t.current.keys())e.has(n)||t.current.getAll(n).forEach((t=>{e.append(n,t)}));return e}),[n.search]),i=(0,P.s0)();return[r,(0,u.useCallback)(((e,t)=>{i("?"+F(e),t)}),[i])]}function F(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var W=n(58096),H=n(49647),V=n(34162),U=["prefetch"];function Y(e){var t,n=e.prefetch,r=(0,H.Z)(e,U),i=(0,V.Ov)(),o="string"==typeof e.to?e.to:null===(t=e.to)||void 0===t?void 0:t.pathname;return o?u.createElement(L,(0,W.Z)({onMouseEnter:function(){var e;return n&&o&&(null===(e=i.preloadRoute)||void 0===e?void 0:e.call(i,o))}},r),e.children):null}function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function q(){q=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:C(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="executing",p="completed",m={};function g(){}function v(){}function b(){}var y={};c(y,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,a)&&(y=_);var x=b.prototype=g.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==G(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,n,r){var i=f;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=M(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function M(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,M(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function X(e){var t=function(e,t){if("object"!=G(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==G(t)?t:String(t)}function K(e,t,n){return(t=X(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function oe(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||re(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){for(var n=0;n-1,"register failed, invalid key ".concat(n," ").concat(e.path?"from plugin ".concat(e.path):"",".")),t.hooks[n]=(t.hooks[n]||[]).concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=oe(e.split(".")),n=t[0],r=t.slice(1),i=this.hooks[n]||[];return r.length&&(i=i.map((function(e){try{var t,n=e,i=ie(r);try{for(i.s();!(t=i.n()).done;)n=n[t.value]}catch(e){i.e(e)}finally{i.f()}return n}catch(e){return null}})).filter(Boolean)),i}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,r=e.initialValue,i=e.args,o=e.async,a=this.getHooks(t)||[];switch(i&&se("object"===G(i),"applyPlugins failed, args must be plain object."),o&&se(n===ce.modify||n===ce.event,"async only works with modify and event type."),n){case ce.modify:return o?a.reduce(function(){var e=te(q().mark((function e(n,r){var o;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(se("function"==typeof r||"object"===G(r)||le(r),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!le(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!=typeof r){e.next=16;break}if(!le(o=r(n,i))){e.next=13;break}return e.next=10,o;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",o);case 14:e.next=21;break;case 16:if(!le(r)){e.next=20;break}return e.next=19,r;case 19:r=e.sent;case 20:return e.abrupt("return",Q(Q({},n),r));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),le(r)?r:Promise.resolve(r)):a.reduce((function(e,n){return se("function"==typeof n||"object"===G(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"==typeof n?n(e,i):Q(Q({},e),n)}),r);case ce.event:return te(q().mark((function e(){var n,r,s,l;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=ie(a),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=12;break}if(se("function"==typeof(s=r.value),"applyPlugins failed, all hooks for key ".concat(t," must be function.")),l=s(i),!o||!le(l)){e.next=10;break}return e.next=10,l;case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(1),n.e(e.t0);case 17:return e.prev=17,n.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[1,14,17,20]])})))();case ce.compose:return function(){return function(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}({fns:a.concat(r),args:i})()}}}}],r=[{key:"create",value:function(t){var n=new e({validKeys:t.validKeys});return t.plugins.forEach((function(e){n.register(e)})),n}}],n&&ae(t.prototype,n),r&&ae(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),de=n(10581)},58427:function(e,t,n){"use strict";n.d(t,{j:function(){return R},Q:function(){return N}});var r,i=n(19632),o=n.n(i),a=n(97857),s=n.n(a),l=n(14754),c=n(48046),u=n.n(c),d=n(62435),f=n(59530),h=n(3990),p=n(2460),m=n(5958),g=n(80107),v=n(9004),b=n(17346),y=n(90837),w=n(81876),_=n(25450),x=n(12247),k=n(49939),S=n(40956),C=n(5621),M=n(52272),E=n(90098),A=n(18008),I=n(19601),O=n(38592),j={model_1:{namespace:"account",model:h.Z},model_2:{namespace:"autoclaim",model:p.Z},model_3:{namespace:"bridgelog",model:m.Z},model_4:{namespace:"contract",model:g.Z},model_5:{namespace:"dash",model:v.Z},model_6:{namespace:"ecosystem",model:b.Z},model_7:{namespace:"global",model:y.Z},model_8:{namespace:"jiu",model:w.Z},model_9:{namespace:"jiuburn",model:_.Z},model_10:{namespace:"liqlog",model:x.Z},model_11:{namespace:"msig",model:k.Z},model_12:{namespace:"ppp",model:S.Z},model_13:{namespace:"statistics",model:C.Z},model_14:{namespace:"swaplog",model:M.Z},model_15:{namespace:"transaction",model:E.Z},model_16:{namespace:"transfer",model:A.Z},model_17:{namespace:"vote",model:I.Z},model_18:{namespace:"wallet",model:O.Z}},Z=n(86074);function R(e){var t=(0,f.useAppData)().pluginManager,n=(0,d.useRef)(),i=t.applyPlugins({key:"dva",type:f.ApplyPluginsType.modify,initialValue:{}});if(!n.current){n.current=(0,l.Ue)(s()({history:f.history},i.config||{}),{initialReducer:{},setupMiddlewares:function(e){return o()(e)},setupApp:function(e){e._history=f.history}}),r=n.current,n.current.use(u()()),(i.plugins||[]).forEach((function(e){n.current.use(e)}));for(var a=0,c=Object.keys(j);a0){for(t=1,n=1;t1&&"}"===e)},ue=Ae("\n",!1),de=Oe("argNameOrNumber"),fe=Oe("argNumber"),he=Ae("0",!1),pe=/^[1-9]/,me=Ie([["1","9"]],!1,!1),ge=/^[0-9]/,ve=Ie([["0","9"]],!1,!1),be=Oe("argName"),ye=0,we=0,_e=[{line:1,column:1}],xe=0,ke=[],Se=0;if(void 0!==t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=i[t.startRule]}function Ce(){return e.substring(we,ye)}function Me(){return Ze(we,ye)}function Ee(e,t){throw function(e,t){return new P(e,[],"",t)}(e,t=void 0!==t?t:Ze(we,ye))}function Ae(e,t){return{type:"literal",text:e,ignoreCase:t}}function Ie(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function Oe(e){return{type:"other",description:e}}function je(t){var n,r=_e[t];if(r)return r;for(n=t-1;!_e[n];)n--;for(r={line:(r=_e[n]).line,column:r.column};nxe&&(xe=ye,ke=[]),ke.push(e))}function Ne(e,t,n){return new P(P.buildMessage(e,t),e,t,n)}function Pe(){return Te()}function Te(){var e,t;for(e=[],t=Be();t!==r;)e.push(t),t=Be();return e}function Be(){var t;return(t=function(){var e,t;e=ye,(t=$e())!==r&&(we=e,n=t,t=N({type:b.literal,value:n},it()));var n;return e=t,e}())===r&&(t=function(){var t,n,i,o;Se++,t=ye,123===e.charCodeAt(ye)?(n=l,ye++):(n=r,0===Se&&Re(c));n!==r&&Ge()!==r&&(i=Qe())!==r&&Ge()!==r?(125===e.charCodeAt(ye)?(o=u,ye++):(o=r,0===Se&&Re(d)),o!==r?(we=t,a=i,t=n=N({type:b.argument,value:a},it())):(ye=t,t=r)):(ye=t,t=r);var a;Se--,t===r&&(n=r,0===Se&&Re(s));return t}())===r&&(t=function(){var t;t=function(){var t,n,i,o,a,s,f,h,p;t=ye,123===e.charCodeAt(ye)?(n=l,ye++):(n=r,0===Se&&Re(c));n!==r&&Ge()!==r&&(i=Qe())!==r&&Ge()!==r?(44===e.charCodeAt(ye)?(o=k,ye++):(o=r,0===Se&&Re(S)),o!==r&&Ge()!==r?(e.substr(ye,6)===C?(a=C,ye+=6):(a=r,0===Se&&Re(M)),a!==r&&Ge()!==r?(s=ye,44===e.charCodeAt(ye)?(f=k,ye++):(f=r,0===Se&&Re(S)),f!==r&&(h=Ge())!==r?(p=function(){var t,n,i;t=ye,e.substr(ye,2)===w?(n=w,ye+=2):(n=r,0===Se&&Re(_));n!==r?(i=function(){var e,t,n;if(e=ye,t=[],n=ze(),n!==r)for(;n!==r;)t.push(n),n=ze();else t=r;t!==r&&(we=e,t=N({type:0,tokens:t},it()));return e=t,e}(),i!==r?(we=t,t=n=i):(ye=t,t=r)):(ye=t,t=r);t===r&&(t=ye,we=ye,nt.push("numberArgStyle"),(n=(n=!0)?void 0:r)!==r&&(i=$e())!==r?(we=t,t=n=x(i)):(ye=t,t=r));return t}(),p!==r?s=f=[f,h,p]:(ye=s,s=r)):(ye=s,s=r),s===r&&(s=null),s!==r&&(f=Ge())!==r?(125===e.charCodeAt(ye)?(h=u,ye++):(h=r,0===Se&&Re(d)),h!==r?(we=t,t=n=E(i,a,s)):(ye=t,t=r)):(ye=t,t=r)):(ye=t,t=r)):(ye=t,t=r)):(ye=t,t=r);return t}(),t===r&&(t=function(){var t,n,i,o,a,s,f,h,p;t=ye,123===e.charCodeAt(ye)?(n=l,ye++):(n=r,0===Se&&Re(c));n!==r&&Ge()!==r&&(i=Qe())!==r&&Ge()!==r?(44===e.charCodeAt(ye)?(o=k,ye++):(o=r,0===Se&&Re(S)),o!==r&&Ge()!==r?(e.substr(ye,4)===$?(a=$,ye+=4):(a=r,0===Se&&Re(D)),a===r&&(e.substr(ye,4)===L?(a=L,ye+=4):(a=r,0===Se&&Re(z))),a!==r&&Ge()!==r?(s=ye,44===e.charCodeAt(ye)?(f=k,ye++):(f=r,0===Se&&Re(S)),f!==r&&(h=Ge())!==r?(p=function(){var t,n,i;t=ye,e.substr(ye,2)===w?(n=w,ye+=2):(n=r,0===Se&&Re(_));n!==r?(i=function(){var t,n,i,o;t=ye,n=ye,i=[],o=Fe(),o===r&&(o=We());if(o!==r)for(;o!==r;)i.push(o),(o=Fe())===r&&(o=We());else i=r;n=i!==r?e.substring(n,ye):i;n!==r&&(we=t,n=N({type:1,pattern:n},it()));return t=n,t}(),i!==r?(we=t,t=n=i):(ye=t,t=r)):(ye=t,t=r);t===r&&(t=ye,we=ye,nt.push("dateOrTimeArgStyle"),(n=(n=!0)?void 0:r)!==r&&(i=$e())!==r?(we=t,t=n=x(i)):(ye=t,t=r));return t}(),p!==r?s=f=[f,h,p]:(ye=s,s=r)):(ye=s,s=r),s===r&&(s=null),s!==r&&(f=Ge())!==r?(125===e.charCodeAt(ye)?(h=u,ye++):(h=r,0===Se&&Re(d)),h!==r?(we=t,t=n=E(i,a,s)):(ye=t,t=r)):(ye=t,t=r)):(ye=t,t=r)):(ye=t,t=r)):(ye=t,t=r);return t}());return t}())===r&&(t=function(){var t,n,i,o,a,s,f,h,p,m,g;t=ye,123===e.charCodeAt(ye)?(n=l,ye++):(n=r,0===Se&&Re(c));if(n!==r)if(Ge()!==r)if((i=Qe())!==r)if(Ge()!==r)if(44===e.charCodeAt(ye)?(o=k,ye++):(o=r,0===Se&&Re(S)),o!==r)if(Ge()!==r)if(e.substr(ye,6)===F?(a=F,ye+=6):(a=r,0===Se&&Re(W)),a===r&&(e.substr(ye,13)===H?(a=H,ye+=13):(a=r,0===Se&&Re(V))),a!==r)if(Ge()!==r)if(44===e.charCodeAt(ye)?(s=k,ye++):(s=r,0===Se&&Re(S)),s!==r)if(Ge()!==r)if(f=ye,e.substr(ye,7)===U?(h=U,ye+=7):(h=r,0===Se&&Re(Y)),h!==r&&(p=Ge())!==r&&(m=qe())!==r?f=h=[h,p,m]:(ye=f,f=r),f===r&&(f=null),f!==r)if((h=Ge())!==r){if(p=[],(m=Ve())!==r)for(;m!==r;)p.push(m),m=Ve();else p=r;p!==r&&(m=Ge())!==r?(125===e.charCodeAt(ye)?(g=u,ye++):(g=r,0===Se&&Re(d)),g!==r?(we=t,n=function(e,t,n,r){return N({type:b.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:n?n[2]:0,options:r.reduce((function(e,t){var n=t.id,r=t.value,i=t.location;return n in e&&Ee('Duplicate option "'+n+'" in plural element: "'+Ce()+'"',Me()),e[n]={value:r,location:i},e}),{})},it())}(i,a,f,p),t=n):(ye=t,t=r)):(ye=t,t=r)}else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;return t}(),t===r&&(t=function(){var t,n,i,o,a,s,f,h,p;t=ye,123===e.charCodeAt(ye)?(n=l,ye++):(n=r,0===Se&&Re(c));if(n!==r)if(Ge()!==r)if((i=Qe())!==r)if(Ge()!==r)if(44===e.charCodeAt(ye)?(o=k,ye++):(o=r,0===Se&&Re(S)),o!==r)if(Ge()!==r)if(e.substr(ye,6)===G?(a=G,ye+=6):(a=r,0===Se&&Re(q)),a!==r)if(Ge()!==r)if(44===e.charCodeAt(ye)?(s=k,ye++):(s=r,0===Se&&Re(S)),s!==r)if(Ge()!==r){if(f=[],(h=He())!==r)for(;h!==r;)f.push(h),h=He();else f=r;f!==r&&(h=Ge())!==r?(125===e.charCodeAt(ye)?(p=u,ye++):(p=r,0===Se&&Re(d)),p!==r?(we=t,n=function(e,t){return N({type:b.select,value:e,options:t.reduce((function(e,t){var n=t.id,r=t.value,i=t.location;return n in e&&Ee('Duplicate option "'+n+'" in select element: "'+Ce()+'"',Me()),e[n]={value:r,location:i},e}),{})},it())}(i,f),t=n):(ye=t,t=r)):(ye=t,t=r)}else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;else ye=t,t=r;return t}(),t===r&&(t=function(){var t,n;t=ye,35===e.charCodeAt(ye)?(n="#",ye++):(n=r,0===Se&&Re(a));n!==r&&(we=t,n=N({type:b.pound},it()));return t=n,t}()))),t}function $e(){var e,t,n;if(e=ye,t=[],(n=Xe())===r&&(n=Ke())===r&&(n=Je()),n!==r)for(;n!==r;)t.push(n),(n=Xe())===r&&(n=Ke())===r&&(n=Je());else t=r;return t!==r&&(we=e,t=t.join("")),e=t}function De(){var t,n,i,o,a;if(Se++,t=ye,n=[],i=ye,o=ye,Se++,(a=Ue())===r&&(h.test(e.charAt(ye))?(a=e.charAt(ye),ye++):(a=r,0===Se&&Re(p))),Se--,a===r?o=void 0:(ye=o,o=r),o!==r?(e.length>ye?(a=e.charAt(ye),ye++):(a=r,0===Se&&Re(m)),a!==r?i=o=[o,a]:(ye=i,i=r)):(ye=i,i=r),i!==r)for(;i!==r;)n.push(i),i=ye,o=ye,Se++,(a=Ue())===r&&(h.test(e.charAt(ye))?(a=e.charAt(ye),ye++):(a=r,0===Se&&Re(p))),Se--,a===r?o=void 0:(ye=o,o=r),o!==r?(e.length>ye?(a=e.charAt(ye),ye++):(a=r,0===Se&&Re(m)),a!==r?i=o=[o,a]:(ye=i,i=r)):(ye=i,i=r);else n=r;return t=n!==r?e.substring(t,ye):n,Se--,t===r&&(n=r,0===Se&&Re(f)),t}function Le(){var t,n,i;return Se++,t=ye,47===e.charCodeAt(ye)?(n="/",ye++):(n=r,0===Se&&Re(v)),n!==r&&(i=De())!==r?(we=t,t=n=i):(ye=t,t=r),Se--,t===r&&(n=r,0===Se&&Re(g)),t}function ze(){var e,t,n,i,o;if(Se++,e=ye,(t=Ge())!==r)if((n=De())!==r){for(i=[],o=Le();o!==r;)i.push(o),o=Le();i!==r?(we=e,t=function(e,t){return{stem:e,options:t}}(n,i),e=t):(ye=e,e=r)}else ye=e,e=r;else ye=e,e=r;return Se--,e===r&&(t=r,0===Se&&Re(y)),e}function Fe(){var t,n,i,o;if(t=ye,39===e.charCodeAt(ye)?(n=A,ye++):(n=r,0===Se&&Re(I)),n!==r){if(i=[],(o=Xe())===r&&(O.test(e.charAt(ye))?(o=e.charAt(ye),ye++):(o=r,0===Se&&Re(j))),o!==r)for(;o!==r;)i.push(o),(o=Xe())===r&&(O.test(e.charAt(ye))?(o=e.charAt(ye),ye++):(o=r,0===Se&&Re(j)));else i=r;i!==r?(39===e.charCodeAt(ye)?(o=A,ye++):(o=r,0===Se&&Re(I)),o!==r?t=n=[n,i,o]:(ye=t,t=r)):(ye=t,t=r)}else ye=t,t=r;if(t===r)if(t=[],(n=Xe())===r&&(Z.test(e.charAt(ye))?(n=e.charAt(ye),ye++):(n=r,0===Se&&Re(R))),n!==r)for(;n!==r;)t.push(n),(n=Xe())===r&&(Z.test(e.charAt(ye))?(n=e.charAt(ye),ye++):(n=r,0===Se&&Re(R)));else t=r;return t}function We(){var t,n;if(t=[],T.test(e.charAt(ye))?(n=e.charAt(ye),ye++):(n=r,0===Se&&Re(B)),n!==r)for(;n!==r;)t.push(n),T.test(e.charAt(ye))?(n=e.charAt(ye),ye++):(n=r,0===Se&&Re(B));else t=r;return t}function He(){var t,n,i,o,a,s,f;return t=ye,Ge()!==r&&(n=tt())!==r&&Ge()!==r?(123===e.charCodeAt(ye)?(i=l,ye++):(i=r,0===Se&&Re(c)),i!==r?(we=ye,nt.push("select"),(!0?void 0:r)!==r&&(o=Te())!==r?(125===e.charCodeAt(ye)?(a=u,ye++):(a=r,0===Se&&Re(d)),a!==r?(we=t,s=n,f=o,nt.pop(),t=N({id:s,value:f},it())):(ye=t,t=r)):(ye=t,t=r)):(ye=t,t=r)):(ye=t,t=r),t}function Ve(){var t,n,i,o,a,s,f;return t=ye,Ge()!==r?(n=function(){var t,n,i,o;return t=ye,n=ye,61===e.charCodeAt(ye)?(i="=",ye++):(i=r,0===Se&&Re(X)),i!==r&&(o=qe())!==r?n=i=[i,o]:(ye=n,n=r),(t=n!==r?e.substring(t,ye):n)===r&&(t=tt()),t}(),n!==r&&Ge()!==r?(123===e.charCodeAt(ye)?(i=l,ye++):(i=r,0===Se&&Re(c)),i!==r?(we=ye,nt.push("plural"),(!0?void 0:r)!==r&&(o=Te())!==r?(125===e.charCodeAt(ye)?(a=u,ye++):(a=r,0===Se&&Re(d)),a!==r?(we=t,s=n,f=o,nt.pop(),t=N({id:s,value:f},it())):(ye=t,t=r)):(ye=t,t=r)):(ye=t,t=r)):(ye=t,t=r)):(ye=t,t=r),t}function Ue(){var t;return Se++,J.test(e.charAt(ye))?(t=e.charAt(ye),ye++):(t=r,0===Se&&Re(Q)),Se--,t===r&&(r,0===Se&&Re(K)),t}function Ye(){var t;return Se++,te.test(e.charAt(ye))?(t=e.charAt(ye),ye++):(t=r,0===Se&&Re(ne)),Se--,t===r&&(r,0===Se&&Re(ee)),t}function Ge(){var t,n,i;for(Se++,t=ye,n=[],i=Ue();i!==r;)n.push(i),i=Ue();return t=n!==r?e.substring(t,ye):n,Se--,t===r&&(n=r,0===Se&&Re(re)),t}function qe(){var t,n,i,o,a;return Se++,t=ye,45===e.charCodeAt(ye)?(n="-",ye++):(n=r,0===Se&&Re(oe)),n===r&&(n=null),n!==r&&(i=et())!==r?(we=t,o=n,t=n=(a=i)?o?-a:a:0):(ye=t,t=r),Se--,t===r&&(n=r,0===Se&&Re(ie)),t}function Xe(){var t,n;return Se++,t=ye,e.substr(ye,2)===se?(n=se,ye+=2):(n=r,0===Se&&Re(le)),n!==r&&(we=t,n="'"),Se--,(t=n)===r&&(n=r,0===Se&&Re(ae)),t}function Ke(){var t,n,i,o,a,s;if(t=ye,39===e.charCodeAt(ye)?(n=A,ye++):(n=r,0===Se&&Re(I)),n!==r)if(i=function(){var t,n,i,o;t=ye,n=ye,e.length>ye?(i=e.charAt(ye),ye++):(i=r,0===Se&&Re(m));i!==r?(we=ye,(o=(o="{"===(a=i)||"}"===a||rt()&&"#"===a)?void 0:r)!==r?n=i=[i,o]:(ye=n,n=r)):(ye=n,n=r);var a;t=n!==r?e.substring(t,ye):n;return t}(),i!==r){for(o=ye,a=[],e.substr(ye,2)===se?(s=se,ye+=2):(s=r,0===Se&&Re(le)),s===r&&(O.test(e.charAt(ye))?(s=e.charAt(ye),ye++):(s=r,0===Se&&Re(j)));s!==r;)a.push(s),e.substr(ye,2)===se?(s=se,ye+=2):(s=r,0===Se&&Re(le)),s===r&&(O.test(e.charAt(ye))?(s=e.charAt(ye),ye++):(s=r,0===Se&&Re(j)));(o=a!==r?e.substring(o,ye):a)!==r?(39===e.charCodeAt(ye)?(a=A,ye++):(a=r,0===Se&&Re(I)),a===r&&(a=null),a!==r?(we=t,t=n=i+o.replace("''","'")):(ye=t,t=r)):(ye=t,t=r)}else ye=t,t=r;else ye=t,t=r;return t}function Je(){var t,n,i,o;return t=ye,n=ye,e.length>ye?(i=e.charAt(ye),ye++):(i=r,0===Se&&Re(m)),i!==r?(we=ye,(o=(o=ce(i))?void 0:r)!==r?n=i=[i,o]:(ye=n,n=r)):(ye=n,n=r),n===r&&(10===e.charCodeAt(ye)?(n="\n",ye++):(n=r,0===Se&&Re(ue))),t=n!==r?e.substring(t,ye):n}function Qe(){var t,n;return Se++,t=ye,(n=et())===r&&(n=tt()),t=n!==r?e.substring(t,ye):n,Se--,t===r&&(n=r,0===Se&&Re(de)),t}function et(){var t,n,i,o,a;if(Se++,t=ye,48===e.charCodeAt(ye)?(n="0",ye++):(n=r,0===Se&&Re(he)),n!==r&&(we=t,n=0),(t=n)===r){if(t=ye,n=ye,pe.test(e.charAt(ye))?(i=e.charAt(ye),ye++):(i=r,0===Se&&Re(me)),i!==r){for(o=[],ge.test(e.charAt(ye))?(a=e.charAt(ye),ye++):(a=r,0===Se&&Re(ve));a!==r;)o.push(a),ge.test(e.charAt(ye))?(a=e.charAt(ye),ye++):(a=r,0===Se&&Re(ve));o!==r?n=i=[i,o]:(ye=n,n=r)}else ye=n,n=r;n!==r&&(we=t,n=parseInt(n.join(""),10)),t=n}return Se--,t===r&&(n=r,0===Se&&Re(fe)),t}function tt(){var t,n,i,o,a;if(Se++,t=ye,n=[],i=ye,o=ye,Se++,(a=Ue())===r&&(a=Ye()),Se--,a===r?o=void 0:(ye=o,o=r),o!==r?(e.length>ye?(a=e.charAt(ye),ye++):(a=r,0===Se&&Re(m)),a!==r?i=o=[o,a]:(ye=i,i=r)):(ye=i,i=r),i!==r)for(;i!==r;)n.push(i),i=ye,o=ye,Se++,(a=Ue())===r&&(a=Ye()),Se--,a===r?o=void 0:(ye=o,o=r),o!==r?(e.length>ye?(a=e.charAt(ye),ye++):(a=r,0===Se&&Re(m)),a!==r?i=o=[o,a]:(ye=i,i=r)):(ye=i,i=r);else n=r;return t=n!==r?e.substring(t,ye):n,Se--,t===r&&(n=r,0===Se&&Re(be)),t}var nt=["root"];function rt(){return"plural"===nt[nt.length-1]}function it(){return t&&t.captureLocation?{location:Me()}:{}}if((n=o())!==r&&ye===e.length)return n;throw n!==r&&ye1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Y,(function(e,n,r){return"."===e?t.maximumFractionDigits=0:"+"===r?t.minimumFractionDigits=r.length:"#"===n[0]?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+("string"==typeof r?r.length:0)),""})),i.options.length&&(t=H(H({},t),q(i.options[0])))}else if(G.test(i.stem))t=H(H({},t),q(i.stem));else{var o=X(i.stem);o&&(t=H(H({},t),o))}}return t}var Q,ee=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),te=function(){for(var e=0,t=0,n=arguments.length;t(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,le=Date.now()+"@@",ce=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function ue(e,t,n){var r=e.tagName,i=e.outerHTML,o=e.textContent,a=e.childNodes;if(!r)return ae(o||"",t);r=r.toLowerCase();var s=~ce.indexOf(r),l=n[r];if(l&&s)throw new ne(r+" is a self-closing tag and can not be used, please use another tag name.");if(!a.length)return[i];var c=Array.prototype.slice.call(a).reduce((function(e,r){return e.concat(ue(r,t,n))}),[]);return l?"function"==typeof l?[l.apply(void 0,c)]:[l]:te(["<"+r+">"],c,[""])}function de(e,t,n,r,i,o){var a=re(e,t,n,r,i,void 0,o),s={},l=a.reduce((function(e,t){if(0===t.type)return e+t.value;var n=Date.now()+"_"+ ++oe;return s[n]=t.value,e+"@@"+n+"@@"}),"");if(!se.test(l))return ae(l,s);if(!i)throw new ne("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new ne("Cannot format XML message without DOMParser");Q||(Q=new DOMParser);var c=Q.parseFromString(''+l+"","text/html").getElementById(le);if(!c)throw new ne("Malformed HTML message "+l);var u=Object.keys(i).filter((function(e){return!!c.getElementsByTagName(e).length}));if(!u.length)return ae(l,s);var d=u.filter((function(e){return e!==e.toLowerCase()}));if(d.length)throw new ne("HTML tag must be lowercased but the following tags are not: "+d.join(", "));return Array.prototype.slice.call(c.childNodes).reduce((function(e,t){return e.concat(ue(t,s,i))}),[])}var fe=function(){return fe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<"']/g;function be(e){return(""+e).replace(ve,(function(e){return ge[e.charCodeAt(0)]}))}function ye(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}function we(e){me(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function _e(e,t){var n=t?"\n".concat(t.stack):"";return"[React Intl] ".concat(e).concat(n)}var xe={formats:{},messages:{},timeZone:void 0,textComponent:m.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function ke(e,t,n,r){var i,o=e&&e[t];if(o&&(i=o[n]),i)return i;r(_e("No ".concat(t," format named: ").concat(n)))}var Se=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function Ce(e,t){var n=e.locale,r=e.formats,i=e.onError,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.format,s=a&&ke(r,"number",a,i)||{},l=ye(o,Se,s);return t(n,l)}function Me(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return Ce(e,t,r).format(n)}catch(t){e.onError(_e("Error formatting number.",t))}return String(n)}function Ee(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return Ce(e,t,r).formatToParts(n)}catch(t){e.onError(_e("Error formatting number.",t))}return[]}var Ae=["numeric","style"];function Ie(e,t){var n=e.locale,r=e.formats,i=e.onError,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.format,s=!!a&&ke(r,"relative",a,i)||{},l=ye(o,Ae,s);return t(n,l)}function Oe(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};r||(r="second");var o=Intl.RelativeTimeFormat;o||e.onError(_e('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));try{return Ie(e,t,i).format(n,r)}catch(t){e.onError(_e("Error formatting relative time.",t))}return String(n)}var je=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Ze(e,t,n){var r=e.locale,i=e.formats,o=e.onError,a=e.timeZone,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=s.format,c=Object.assign(Object.assign({},a&&{timeZone:a}),l&&ke(i,t,l,o)),u=ye(s,je,c);return"time"!==t||u.hour||u.minute||u.second||(u=Object.assign(Object.assign({},u),{hour:"numeric",minute:"numeric"})),n(r,u)}function Re(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="string"==typeof n?new Date(n||0):n;try{return Ze(e,"date",t,r).format(i)}catch(t){e.onError(_e("Error formatting date.",t))}return String(i)}function Ne(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="string"==typeof n?new Date(n||0):n;try{return Ze(e,"time",t,r).format(i)}catch(t){e.onError(_e("Error formatting time.",t))}return String(i)}function Pe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="string"==typeof n?new Date(n||0):n;try{return Ze(e,"date",t,r).formatToParts(i)}catch(t){e.onError(_e("Error formatting date.",t))}return[]}function Te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="string"==typeof n?new Date(n||0):n;try{return Ze(e,"time",t,r).formatToParts(i)}catch(t){e.onError(_e("Error formatting time.",t))}return[]}var Be=["localeMatcher","type"];function $e(e,t,n){var r=e.locale,i=e.onError,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Intl.PluralRules||i(_e('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));var a=ye(o,Be);try{return t(r,a).select(n)}catch(e){i(_e("Error formatting plural.",e))}return"other"}var De=n(19632),Le=n.n(De);function ze(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=Object.assign({timeZone:t},e[r]),n}),{})}function Fe(e,t){return Object.keys(Object.assign(Object.assign({},e),t)).reduce((function(n,r){return n[r]=Object.assign(Object.assign({},e[r]||{}),t[r]||{}),n}),{})}function We(e,t){if(!t)return e;var n=pe.formats;return Object.assign(Object.assign(Object.assign({},n),e),{date:Fe(ze(n.date,t),ze(e.date||{},t)),time:Fe(ze(n.time,t),ze(e.time||{},t))})}var He=function(e){return m.createElement.apply(g,[m.Fragment,null].concat(Le()(e)))};function Ve(e,t){var n=e.locale,r=e.formats,i=e.messages,o=e.defaultLocale,a=e.defaultFormats,s=e.onError,l=e.timeZone,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=c.id,f=c.defaultMessage;me(!!d,"[React Intl] An `id` must be provided to format a message.");var h=i&&i[String(d)];r=We(r,l),a=We(a,l);var p=[];if(h)try{var m=t.getMessageFormat(h,n,r,{formatters:t});p=m.formatHTMLMessage(u)}catch(e){s(_e('Error formatting message: "'.concat(d,'" for locale: "').concat(n,'"')+(f?", using default message as fallback.":""),e))}else(!f||n&&n.toLowerCase()!==o.toLowerCase())&&s(_e('Missing message: "'.concat(d,'" for locale: "').concat(n,'"')+(f?", using default message as fallback.":"")));if(!p.length&&f)try{var g=t.getMessageFormat(f,o,a);p=g.formatHTMLMessage(u)}catch(e){s(_e('Error formatting the default message for: "'.concat(d,'"'),e))}return p.length?1===p.length&&"string"==typeof p[0]?p[0]||f||String(d):He(p):(s(_e('Cannot format message: "'.concat(d,'", ')+"using message ".concat(h||f?"source":"id"," as fallback."))),"string"==typeof h?h||f||String(d):f||String(d))}function Ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Object.keys(r).reduce((function(e,t){var n=r[t];return e[t]="string"==typeof n?be(n):n,e}),{});return Ve(e,t,n,i)}var Ye=n(38138),Ge=n.n(Ye),qe=n(52677),Xe=n.n(qe),Ke=["localeMatcher","type","style"],Je=Date.now();function Qe(e){return"".concat(Je,"_").concat(e,"_").concat(Je)}function et(e,t,n){var r=e.locale,i=e.onError,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=Intl.ListFormat;a||i(_e('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));var s=ye(o,Ke);try{var l={},c=n.map((function(e,t){if("object"===Xe()(e)){var n=Qe(t);return l[n]=e,n}return String(e)}));if(!Object.keys(l).length)return t(r,s).format(c);var u=t(r,s).formatToParts(c);return u.reduce((function(e,t){var n=t.value;return l[n]?e.push(l[n]):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[])}catch(e){i(_e("Error formatting list.",e))}return n}var tt=["localeMatcher","style","type","fallback"];function nt(e,t,n){var r=e.locale,i=e.onError,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=Intl.DisplayNames;a||i(_e('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n'));var s=ye(o,tt);try{return t(r,s).of(n)}catch(e){i(_e("Error formatting display name.",e))}}var rt=Ge()||Ye;function it(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function ot(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames;return{getDateTimeFormat:W(Intl.DateTimeFormat,e.dateTime),getNumberFormat:W(Intl.NumberFormat,e.number),getMessageFormat:W(pe,e.message),getRelativeTimeFormat:W(t,e.relativeTime),getPluralRules:W(Intl.PluralRules,e.pluralRules),getListFormat:W(n,e.list),getDisplayNames:W(r,e.displayNames)}}(t),r=Object.assign(Object.assign({},xe),e),i=r.locale,o=r.defaultLocale,a=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(_e('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(_e('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):(a&&a(_e('"locale" was not configured, using "'.concat(o,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details'))),r.locale=r.defaultLocale||"en"),Object.assign(Object.assign({},r),{formatters:n,formatNumber:Me.bind(null,r,n.getNumberFormat),formatNumberToParts:Ee.bind(null,r,n.getNumberFormat),formatRelativeTime:Oe.bind(null,r,n.getRelativeTimeFormat),formatDate:Re.bind(null,r,n.getDateTimeFormat),formatDateToParts:Pe.bind(null,r,n.getDateTimeFormat),formatTime:Ne.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Te.bind(null,r,n.getDateTimeFormat),formatPlural:$e.bind(null,r,n.getPluralRules),formatMessage:Ve.bind(null,r,n),formatHTMLMessage:Ue.bind(null,r,n),formatList:et.bind(null,r,n.getListFormat),formatDisplayName:nt.bind(null,r,n.getDisplayNames)})}var at=function(e){f()(n,e);var t=p()(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},e.state={cache:e.cache,intl:ot(it(e.props),e.cache),prevConfig:it(e.props)},e}return u()(n,[{key:"render",value:function(){return we(this.state.intl),m.createElement(w,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevConfig,r=t.cache,i=it(e);return rt(n,i)?null:{intl:ot(i,r),prevConfig:i}}}]),n}(m.PureComponent);at.displayName="IntlProvider",at.defaultProps=xe;var st=n(7290),lt=n(48370),ct=n.n(lt),ut=n(42473),dt=n.n(ut);function ft(){var e=(0,m.useContext)(_);return we(e),e}var ht,pt=n(40378),mt=n(37029),gt=["cache"],vt=new(ct()),bt=Symbol("LANG_CHANGE"),yt=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(r,i){var o=t[i],a=n?"".concat(n,".").concat(i):i;return"string"==typeof o?r[a]=o:Object.assign(r,e(o,a)),r}),{})},wt={"en-US":{messages:a()({},yt({"menu.dash":"Dash","menu.ecosystem":"Ecosystem","menu.interface":"Interface","menu.vote":"Vote","menu.interface.rpc":"RPC","menu.interface.rpc2":"RPC2","menu.interface.decode":"Decode","menu.vote.node":"Node","menu.vote.producer":"Producer","menu.vote.king":"VoteKing","menu.coffee":"Coffee","menu.log":"Log","menu.log.swaplog":"Swap Log","menu.log.liqlog":"Liquidity Log","menu.log.bridgelog":"Bridge Log","menu.log.jiuburn":"JIU Burn","menu.verify":"Signed Verify","menu.timeline":"Timeline","menu.query":"Query","menu.query.account":"Account","menu.query.contract":"Contract","menu.query.transaction":"Transaction","menu.transfer":"Transfer","menu.jiu":"JIU","menu.jiu.donation":"Donation","menu.jiu.crowd":"Crowd","menu.jiu.holder":"Holders","menu.jiu.activity":"Activity","menu.jiu.result":"Activity Result","menu.msig.proposal":"Proposal","menu.msig.pubkey":"Pubkey","menu.msig.transaction":"Transaction","menu.statistics":"Statistics","menu.statistics.newaccount":"New Account","menu.statistics.pools":"Pools","menu.statistics.tokens":"Tokens","menu.tools.verify":"Signed Verify","menu.tools.timeconvert":"Time Convert","menu.tools.claim":"Claim","menu.tools.autoclaim":"AutoClaim","menu.tools.secretkey":"SecretKey","menu.tools.pubkeyswitch":"Pubkey Switch","menu.tools.rpc":"RPC Node Switch","menu.tools.wallet":"Simple Wallet","menu.tools.nodebonus":"Node Bonus","menu.tools.deploy":"Deploy Contract","menu.tools.nameswitch":"Name Switch","menu.ppp":"PPP","menu.ppp.sweep":"Sweep","menu.ppp.autosweep":"Auto Sweep","menu.ppp.grabcoin":"Grab Coin","menu.ppp.project":"Project","menu.ppp.list":"List","menu.ppp.burn":"Burn","menu.ppp.autoburn":"Auto Burn","menu.ppp.autotrade":"Auto Trade","menu.ppp.swaplog":"Swap Log","app.openVConsole":"Open vConsole","app.closeVConsole":"Close vConsole","app.clearCompleted":"Clear Completed","app.clearSessionStorage":"SessionStorage Clear","app.clearLocalStorage":"LocalStorage Clear","app.clearIndexedDB":"IndexedDB Clear","app.clearAll":"All Clear","app.refresh":"Refresh","app.intlNotSupportChain":"The current page does not support the blockchain of {chainName}","app.intl404":"Sorry, the page you visited does not exist.","common.intlCopy":"Copy","common.intlCopySuccess":"Copy success","common.intlCopyFail":"Copy fail","common.intlPleaseConnectWallet":"Please connect wallet","common.intlPleaseConnectNetwork":"Please connect network","common.intlTxSuccess":"Transaction success","common.intlTxFail":"Transaction fail","common.intlInsufficientBalance":"Insufficient balance","common.intlTransferSuccess":"Transfer success","common.intlTransferFail":"Transfer fail","common.intlInputException":"Input exception","common.intlResult":"Result","common.intlExport":"Export","common.intlYes":"Yes","common.intlNo":"No","account.intlNodeConnectFail":"Node connect fail","account.intlNodeConnectStatus":"Node connect status","account.intlConnectWallet":"Connect Wallet","account.intlCopyAccount":"Copy Account","account.intlDisconnect":"Disconnect","account.intlFreeSource":"Free Source","account.intlMemory":"RAM","account.intlCpu":"CPU","account.intlNet":"NET","account.intlBalance":"Balance","account.intlVotes":"Votes","account.intlCreated":"Created","account.intlAuthority":"Authority","account.intlActionNotExist":"Action does not exist","account.intlAlreadyExists":"Already exists","account.intlAddSuccess":"Add success","account.intlEditSuccess":"Edit success","account.intlDeleteSuccess":"Delete success","account.intlPermissionNotExist":"Permission not exist","account.intlKeyGeneration":"Key Generation","account.intlPublicKey":"Public Key","account.intlPrivateKey":"Private Key","account.intlPrivateKeyWif":"Private Key (WIF)","account.intlBackupTip":"The private key or mnemonic must be backed up before using it","account.intlProhibitdeletion":"Prohibit deletion","account.intlPermissionAlreadyExists":"{perm_name} already exists","account.intlKeysAccountsEmpty":"keys and accounts is empty","account.intlExistChildren":"Exist children","account.intlExistLinkedActions":"Exist linked_actions","account.intlAccount":"Account","account.intlSearch":"Search","account.intlSearchAccount":"Search Account","account.intlValue":"Value","account.intlDesc":"Desc","account.intlProfile":"Profile","account.intlAuth":"Auth","account.intlToken":"Token","account.intlNft":"NFT","account.intlTotalTokensValue":"Total Tokens Value","account.intlTotalNftsValue":"Total NFT Value","account.intlTotalLiqsValue":"Total Liquidity Value","account.intlLiq":"Liquidity","account.intlDay":"day","account.intlTx":"TX","account.intlTime":"Time","account.intlAction":"Action","account.intlData":"Data","account.intlSendToken":"Send Token","account.intlReceiveToken":"Receive Token","account.intlTransferToken":"Transfer Token","account.intlClaim":"Claim","account.intlFreeCPU":"FreeCPU","account.intlReleaseRam":"{account} released {ram} Bytes","account.intlConsumeRam":"{account} consumed {ram} Bytes","account.intlUpdateAuth":"Update Auth","account.intlDeleteAuth":"Delete Auth","account.intlLinkAuth":"Link Auth","account.intlUnlinkAuth":"Unlink Auth","account.intlSetKey":"Backup Key","account.intlBuyRamBytes":"Buy RAM","account.intlWithdraw":"Withdraw","account.intlFilter":"Filter","account.intlDateRange":"Date Range","account.intlContractAction":"Contract : Action","account.intlFilterFormatError":"Filter format error","account.intlProposal":"Proposal","account.intlProposeProposal":"Propose Proposal","account.intlCancelProposal":"Cancel Proposal","account.intlExecProposal":"Exec Proposal","account.intlApproveProposal":"Approve Proposal","account.intlUnapproveProposal":"Unapprove Proposal","account.intlNotRequested":"Not requested account","account.intlAlreadySigned":"Already signed","account.intlUnsigned":"Unsigned","account.intlNotProposer":"Not proposer","account.intlProposalName":"Proposal Name","account.intlProposalOperate":"Proposal Operate ","account.intlRequestedApprovals":"Requested Approvals","account.intlActions":"Actions","account.intlBuy":"Buy","account.intlSell":"Sell","account.intlBuyRam":"Buy RAM","account.intlSellRam":"Sell RAM","account.intlRamTip":"RAM can't be sold, please purchase as needed","account.intlRamNumber":"DFS Amount","account.intlRamSize":"RAM Size","account.intlRamNumberPlaceholder":"Input DFS amount","account.intlRamSizePlaceholder":"Input RAM size(KB)","account.intlRamSizeBytePlaceholder":"Input RAM size(B)","account.intlBuyResource":"Buy Resource","account.intlResourceTip":"After purchasing resources, they can be used for 24 hours","account.intlInviteCode":"Invite Code","account.intlInviteCount":"Invite Count","account.intlInvite":"Invite","account.intlInviteTime":"Invite Time","account.intlInviter":"Inviter","account.intlLikePost":"Like Post","account.intlNewPost":"New Post","dash.intlChainInfo":"Chain Info","dash.intlBlockTime":"Block Time","dash.intlSecond":"S","dash.intlTotalBlocks":"Total Blocks","dash.intlAccounts":"Accounts","dash.intlContracts":"Contracts","dash.intlRamInfo":"RAM Info","dash.intlRamPrice":"RAM Price","dash.intlTotalRam":"Total RAM","dash.intlFreeRam":"Free","dash.intlBoughtRam":"Bought RAM","dash.intlBought":"Bought","dash.intlRamStake":"RAM Stake","dash.intlRamFee":"RAM Fee","dash.intlNodeInfo":"Node Info","dash.intlNodes":"Nodes","dash.intlOnline":"Online","dash.intlProducers":"Producers","dash.intlBuffer":"Buffer","dash.intlRewardRank":"Reward Rank","dash.intlMinVotes":"Reward MinVotes","dash.intlDFSSupply":"Supply","dash.intlRewardPool":"Reward Pool","dash.intlMarketInfo":"Market Info","dash.intlDFSPrice":"DFS Price","dash.intlMarketCap":"Market Cap","dash.intlSwapPairs":"Swap Pairs","dash.intlSwapTVL":"Swap TVL","dash.intl24HVolume":"24H Volume","dash.intlTotalVolume":"Total Volume","dash.intlSupplyInfo":"Supply Info","dash.intlDailySupply":"Daily Supply","dash.intlHalving":"falling yields","dash.intlSupply":"Supply","dash.intlConvertInfo":"Convert Info","dash.intlDFSNToDFS":"DFSN(BRC20) ➜ DFS","dash.intlDFSToDFS":"DFS(EOS) ➜ DFS","dash.intlBridgeInfo":"Bridge Info","dash.intlTotalTokens":"Total Tokens","dash.intlTotalValue":"Total Value","node.intlVotes":"Votes","node.intlStatus":"Status","node.intlP2PStatus":"P2P Status","node.intlRPCStatus":"RPC Status","node.intlLocation":"Location","node.intlWebsite":"Website","node.intlTotalReward":"Total Reward","node.intlAction":"Action","node.intlNodes":"Nodes","node.intlOnline":"Online","node.intlProducers":"Producers","node.intlBuffer":"Buffer","node.intlRewardRank":"RewardRank","node.intlMinVotes":"MinVotes","node.intlRewardPool":"RewardPool","node.intlVoteSuccess":"Vote success","node.intlVoteFail":"Vote fail","node.intlResponseTime":"Response Time","node.intlNode":"Node","node.intlNodeReward":"Node Reward","vote.intlTotalVotes":"Total Votes","vote.intlTheKingOfVotes":"The King of Votes","vote.intlExportData":"Export","vote.intlExportComplete":"Export complete","producer.intlVote":"Vote","ecosystem.dex":"Dex","ecosystem.token":"Token","ecosystem.game":"Game","ecosystem.crossChain":"CrossChain","ecosystem.wallet":"Wallet","ecosystem.social":"Social","ecosystem.market":"Market","ecosystem.other":"Other","ecosystem.all":"All","ecosystem.tool":"Tool","ecosystem.exchange":"Exchange","ecosystem.website":"Website","ecosystem.name":"Name","ecosystem.update":"Update","ecosystem.contract":"Contract","ecosystem.socialMedia":"Social Media","ecosystem.tips":"Tips","ecosystem.alert":"You are about to enter the third-party link {website}, and your use behavior on the third-party link applies to the third-party link's Privacy Policy and User Agreement, which is set by {website} is directly and solely responsible to you!","ecosystem.tipsTitle1":"Please read the followings carefully:","ecosystem.tipsSection1Txt1":"1. This link does not belong to DFSTool, this link is completely controlled by the project party! Please be sure to understand the security of this link before using it!","ecosystem.tipsSection1Txt2":"2. You know that any loss caused by your visit to this link will be borne by you and has nothing to do with DFSTool!","ecosystem.tipsSection1Txt3":"3. If you encounter any problems in the process of using the link, you need to contact the project team directly to solve it!","ecosystem.tipsTitle2":"When visiting third-party links, please be aware of common scams:","ecosystem.tipsSection2Txt1":"1. High-Return Mining","ecosystem.tipsSection2Txt2":"2. Free Airdrop","ecosystem.tipsSection2Txt3":"3. Approval Scams","ecosystem.tipsSection2Txt4":"4. Ponzi Scams","ecosystem.noTips":"No remind","ecosystem.intlPrice":"Price","ecosystem.intlSupply":"Supply","ecosystem.intlSupplyValue":"Supply Value","ecosystem.intlPrecision":"Precision","ecosystem.intlMaxSupply":"Max Supply","ecosystem.intlDesc":"Desc","iframe.Close":"Close","iframe.Jump":"Jump","contract.intlContract":"Contract","contract.intlSearch":"Search","contract.intlSearchContract":"Search Contract","contract.intlSelectTable":"Select Table","contract.intlSelectAction":"Select Action","contract.intlEnterParameters":"Enter Parameters","contract.intlEnterData":"Enter Data","contract.intlTableResult":"Table Result","contract.intlAccountFormatError":"Account format error","contract.intlNonContractAccount":"Non contract account","contract.intlNoData":"No Data","contract.intlAdd":"Add","contract.intlBatchActions":"Batch Actions","contract.intlEncodeResult":"Encode Result","contract.intlReadOnlyResult":"ReadOnly Result","contract.intlEncode":"Encode","contract.intlDecode":"Decode","contract.intlReadOnly":"ReadOnly","contract.intlDecodeResult":"Decode Result","contract.intlDecodeSuccess":"Decode success","contract.intlEncodeSuccess":"Encode success","contract.intlReadOnlySuccess":"ReadOnly success","contract.intlMsigPubkey":"Msig-Pubkey","contract.intlMsigProposal":"Msig-Proposal","contract.intlMsigTransaction":"Msig-Transact","contract.intlCreateTransaction":"Create Transaction","contract.intlCustomAuthority":"Custom Authority","contract.intlCreateProposal":"Create Proposal","contract.intlSignedTransaction":"Signed Transaction","contract.intlCreate":"Create","contract.intlCreateAndSign":"Create and Sign","contract.intlExpiration":"Expiration(Minute)","contract.intlExpirationError":"Expiration must greater current time","contract.intlFreeCpu":"FreeCPU","contract.intlAccount":"Account","contract.intlPermission":"Permission","contract.intlExported":"Exported","contract.intlFreeCpuLimit":"FreeCpu must use active or owner permission","contract.intlProposer":"Proposer","contract.intlProposalName":"Proposal Name","contract.intlMsigAccount":"Msig Account","contract.intlRequested":"Requested Accounts","contract.intlMsigTx":"Msig Tx","contract.intlImportRequested":"Import Requested Accounts","contract.intlThreshold":"Threshold","contract.intlMsigAccountWeightInsufficient":"Insufficient weight of signature account","contract.intlProposalNamePlaceholder":"Length: 1-12, consist of 'a-z.1-5'","contract.intlContextFreeActions":"ContextFreeActions","contract.intlContextFreeData":"ContextFreeData","contract.intlCharEncode":"Char Encode","coffee.inputException":"Input Exception","coffee.account":"Account","coffee.pleaseInputTokenNumber":"Please input {symbol} number","coffee.cardTitle":"Treat developer to a cup of coffee","coffee.message":"Message","coffee.leaveAMessage":"Leave your famous quote","coffee.intlToken":"Token","coffee.intlQuantity":"Quantity","coffee.pleaseInputTokenNumber2":"Please input transfer number","swaplog.intlLoad":"Load","swaplog.intlUser":"User","swaplog.intlFrom":"From","swaplog.intlTo":"To","swaplog.intlTime":"Time","swaplog.intlInputLoadNumber":"Input load days","swaplog.intlDailyVolume":"Daily Volume","liqlog.intlLoad":"Load","liqlog.intlUser":"User","liqlog.intlQ0":"Quantity0","liqlog.intlQ1":"Quantity1","liqlog.intlBal0":"Balance0","liqlog.intlBal1":"Balance1","liqlog.intlTime":"Time","liqlog.intlInputLoadNumber":"Input load number","bridgelog.intlFrom":"From","bridgelog.intlTo":"To","bridgelog.intlQuantity":"Asset","bridgelog.intlTime":"Time","bridgelog.intlState":"State","bridgelog.intlTransId":"Trans ID","bridgelog.intlCompleted":"Completed","bridgelog.intlProcessing":"Processing","bridgelog.intlFail":"Fail","bridgelog.intlBridgeIn":"Bridge In","bridgelog.intlBridgeOut":"Bridge Out","bridgelog.intlUpdate":"Update","jiuburn.intlType":"Type","jiuburn.intlQuantity":"Quantity","jiuburn.intlExecTime":"ExecTime","jiuburn.intlTrxId":"Trx ID","jiuburn.intlDailyJIUBurn":"Daily Burn JIU","jiuburn.intlWeeklyJIUBurn":"Weekly Burn JIU","jiuburn.intlMonthlyJIUBurn":"Monthly Burn JIU","jiuburn.intlDailyDFSBuy":"Daily Buy DFS","jiuburn.intlWeeklyDFSBuy":"Weekly Buy DFS","jiuburn.intlMonthlyDFSBuy":"Monthly Buy DFS","jiuburn.intlBuyQuantity":"Buy Quantity","jiuburn.intlBurnQuantity":"Burn Quantity","jiuburn.intlBuyCount":"Buy Count","jiuburn.intlBurnCount":"Burn Count","verify.intlSign":"Sign","verify.intlVerifySignature":"Verify Signature","verify.intlSignSuccess":"Sign Success","verify.intlSignFail":"Sign Fail","verify.intlRawInfo":"Raw Info","verify.intlSignInfo":"Sign Info","verify.intlVerifyAccount":"Verify Account","verify.intlResult":"Result","verify.intlAccountInfo":"Account Info","verify.intlPublicKey":"Public Key","transaction.intlTransaction":"Transaction","transaction.intlActions":"Actions","transaction.intlSearchTransaction":"Search Transaction","transaction.intlSearch":"Search","transaction.intlTransactionFormatError":"Transaction ID format error","transaction.intlSummary":"Summary","transaction.intlStatus":"Status","transaction.intlBlockNumber":"Block Number","transaction.intlBlockTime":"Block Time ","transaction.intlCpuUsage":"CPU Usage","transaction.intlNetUsage":"Net Usage","transaction.intlRamUsage":"RAM Usage","transaction.intlAuthorization":"Authorization","transaction.intlTraces":"Traces","transaction.intlLegend":"Legend","transaction.intlNotified":"Notified","transaction.intlReceiver":"Receiver","transaction.intlAuthorized":"Authorized","transaction.intlReleaseRam":"{account} released {ram}","transaction.intlConsumeRam":"{account} consumed {ram}","transaction.intlRaw":"Raw","transfer.intlCardTitle":"Batch Transfer","transfer.intlAmountZero":"Quantity cannot be 0","transfer.intlToken":"Token","transfer.intlQuantity":"Quantity","transfer.intlTo":"To","transfer.intlMemo":"Memo","transfer.intlImport":"Import","transfer.intlImportFail":"Import fail","transfer.intlImportSuccess":"Import success","transfer.intlLackToken":"Account lack token","transfer.intlToFormatError":"To format error","transfer.intlCount":"Count","jiu.intlMissingData":"Missing data","jiu.intlDonationRank":"Donation Rank","jiu.intlDonationUsers":"Donation Users","jiu.intlDonationValue":"Donation Value","jiu.intlDonationAccount":"Donation Account","jiu.intlCrowdRank":"Crowd Rank","jiu.intlCrowdUsers":"Crowd Users","jiu.intlCrowdValue":"Crowd Value","jiu.intlCrowdAccount":"Crowd Account","jiu.intlHolder":"Holder","jiu.intlHold":"Account Holdings","jiu.intlLiq":"Liquidity Holdings","jiu.intlTotalBal":"Total Holdings","jiu.intlTotalValue":"Total Value","jiu.intlRatio":"Ratio","jiu.intlSupply":"Supply","jiu.intlMarketCap":"Market Cap","jiu.intlDestruction":"Destruction","jiu.intlPrice":"Price","jiu.intlRank":"Rank","jiu.intlUpdate":"Update","jiu.intlQuantityMustGreater":"Quantity must greater than or equal {num} {sym}","jiu.intlFinished":"Activity finished","jiu.intlLatestActivity":"Latest Activity","tokens.intlHolder":"Holder","tokens.intlHold":"Account Holdings","tokens.intlLiq":"Liquidity Holdings","tokens.intlTotalBal":"Total Holdings","tokens.intlTotalValue":"Total Value","tokens.intlRatio":"Ratio","tokens.intlSupply":"Supply","tokens.intlMarketCap":"Market Cap","tokens.intlPrice":"Price","tokens.intlRank":"Rank","tokens.intlUpdate":"Update","timeconvert.intlUTCTime":"UTC Time","timeconvert.intlUTCISO":"UTC(ISO 8601) s","timeconvert.intlUTCISOMilliSecond":"UTC(ISO 8601) ms","timeconvert.intlLocalTime":"Local Time","timeconvert.intlUnixSecond":"Time Stamp(s)","timeconvert.intlUnixMilliSecond":"Time Stamp(ms)","timeconvert.intlUnixMicroSecond":"Time Stamp(us)","statistics.intlMissingData":"Missing data","statistics.intlDailyAccount":"Daily New Account","statistics.intlDailyAccountSum":"Daily New Account Accumulation","statistics.intlWeeklyAccount":"Weekly New Account","statistics.intlWeeklyAccountSum":"Weekly New Account Accumulation","statistics.intlMonthlyAccount":"Monthly New Account","statistics.intlMonthlyAccountSum":"Monthly New Account Accumulation","statistics.intlMinutePool":"DFS/Minute in Pool","statistics.intlMinuteApy":"DFS/Minute Apy in Pool(%)","statistics.intlMinuteNode":"DFS/Minute in Node Pool","statistics.intlHourPool":"DFS/Hour in Pool","msig.intlImportFail":"Import fail","msig.intlImportSuccess":"Import success","msig.intlUploadFail":"Upload fail","msig.intlUploadSuccess":"Upload success","msig.intlPreviewFail":"Preview fail","msig.intlPreviewSuccess":"Preview success","msig.intlClose":"Close","msig.intlSignedTransaction":"Signed Transaction","msig.intlSendTransaction":"Send Transaction","msig.intlSign":"Sign","msig.intlImportTransaction":"Import Transaction","msig.intlExportSignedTransaction":"Export Signed Transaction","msig.intlCopySignedTransaction":"Copy Signed Transaction","msig.intlTransactionInfo":"Transaction Info","msig.intlSend":"Send","msig.intlSignAndSend":"Sign and Send","msig.intlNoNeedInput":"No need to input","msig.intlTransactionEmpty":"Transaction info is empty","msig.intlTransactionDifferent":"Transaction info different","msig.intlCreatTxTip1":'1. Goto page of "Search-Contract"',"msig.intlCreatTxTip2":"2. Search the contract, then select Actions","msig.intlCreatTxTip3":"3. Input data, then click msig","msig.intlCreateProposal":"Create Proposal","msig.intlMyProposal":"My Proposal","msig.intlSearchProposal":"Search Proposal","msig.intlRequestedApproval":"Requested Approval","msig.intlGetProposalFail":"Get proposal fail","tools.intlCreate":"Create","tools.claim.intlNoLiq":"No liquidity pool","tools.claim.intlNonNode":"Non node","tools.claim.intlNonPromoters":"Non promoters","tools.pubkeyswitch.intlNotSupportPubkeyFormat":"The public key format is not supported","tools.pubkeyswitch.intlPubkeySwitch":"Pubkey Switch","tools.secretkey.intlMnemonic":"Mnemonic","tools.secretkey.intlCopyMnemonic":"Copy Mnemonic","tools.secretkey.intlConvert":"Convert","tools.secretkey.intlConvertMnemonic":"Convert Mnemonic to PrivateKey","tools.secretkey.intlConvertPrivateKey":"Convert PrivateKey to PublicKey","tools.rpc.intlNodeSwitch":"Node Switch","tools.rpc.intlSwitchSuccess":"Switch success","tools.rpc.intlCustom":"Custom","tools.wallet.intlPermissionNotMatch":"{actor} and {permission} not match","tools.wallet.intlPrivateKeyNotMatch":"{permissionLevel} and privateKey not match","tools.wallet.intlImportSuccess":"Import success","tools.wallet.intlImportFail":"Import fail","tools.wallet.intlImport":"Import","tools.wallet.intlPrivateKeyOrMnemonic":"PrivateKey Or Mnemonic","tools.wallet.intlPassword":"Password","tools.wallet.intlPasswordTip":"At least 8 characters, 1 letter, 1 number, and 1 special character","tools.wallet.intlImportPrivateKey":"Import PrivateKey","tools.wallet.intlImportPrivateKeys":"Import PrivateKeys","tools.wallet.intlBackupPrivateKey":"Backup PrivateKey","tools.wallet.intlRestorePrivateKey":"Restore PrivateKey","tools.wallet.intlRestoreSuccess":"Restore success","tools.wallet.intlRestoreFail":"Restore fail","tools.wallet.intlBackupSuccess":"Backup success","tools.wallet.intlBackupFail":"Backup fail","tools.wallet.intlBatchUpdate":"Batch Update","tools.wallet.intlSelectAccount":"Please select account","tools.wallet.intlResource":"Resource","tools.wallet.intlOperation":"Operation","tools.wallet.intlWetherToDelete":"Are you sure you want to delete it?","tools.wallet.intlUpdateComplete":"Update complete","tools.wallet.intlDeleteSuccess":"Delete success","tools.wallet.intlStatus":"Status","tools.wallet.intlUnlock":"Unlock","tools.wallet.intlPasswordError":"Password is wrong","tools.wallet.intlUnlockSuccess":"Unlock success","tools.wallet.intlBatchDelete":"Batch Delete","tools.wallet.intlTransfer":"Transfer","tools.wallet.intlAction":"Action","tools.wallet.intlLockAll":"Lock All","tools.wallet.intlCancelTransaction":"Cancel Transaction","tools.wallet.intlConfirmTransaction":"Confirm Transaction","tools.wallet.intlBatchExec":"Batch Exec","tools.wallet.intlBackupTip":"Please keep your private key safe","tools.wallet.intlAttention":"Attention:For testing, development, and batch operations only, please do not import accounts with large funds!","tools.nodebonus.intlVoter":"Voter","tools.nodebonus.intlVote":"Vote","tools.nodebonus.intlVoteTime":"Vote Update Time","tools.nodebonus.intlVoteRatio":"Vote Ratio","tools.nodebonus.intlSearchNode":"Search Node","tools.nodebonus.intlExecBonus":"Exec Bonus","tools.nodebonus.intlExportData":"Export Data","tools.nodebonus.intlExportAction":"Export Actions","tools.nodebonus.intlBonusAmount":"Bonus Amount (DFS)","tools.nodebonus.intlIgnoreZeroVote":"Ignore 0 Vote Account","tools.nodebonus.intlRequireVote":"Require Vote (greater than)","tools.nodebonus.intlSummary":"Summary","tools.nodebonus.intlBonusMemo":"Bonus Remarks (memo)","tools.deploy.intlDeploy":"Deploy","tools.deploy.intlDeployContract":"Deploy Contract","tools.deploy.intlAddPermisson":"Add eosio.code permission","tools.deploy.intlSize":"Size","tools.deploy.intlClearContract":"Clear Contract","tools.deploy.intlClearContractTip":"Before clearing, it is necessary to ensure that all contents in the contract table have been deleted, otherwise it will continue to occupy memory.","tools.autoclaim.intlType":"Type","tools.autoclaim.intlAccount":"Account","tools.autoclaim.intlLiquidity":"Liquidity","tools.autoclaim.intlNode":"Node","tools.autoclaim.intlReward":"Reward","tools.autoclaim.intlBalance":"Balance","tools.autoclaim.intlClaimMode":"Claim Mode","tools.autoclaim.intlMode":"Mode","tools.autoclaim.intlMode1":"Mode1","tools.autoclaim.intlMode2":"Mode2","tools.autoclaim.intlMode3":"Mode3","tools.autoclaim.intlActive":"Active","tools.autoclaim.intlClaimCount":"Claim Count","tools.autoclaim.intlClaimTime":"Claim Time","tools.autoclaim.intlDepositTime":"Deposit Time","tools.autoclaim.intlNotice":"Notice","tools.autoclaim.intlEmail":"Email","tools.autoclaim.intlOpen":"Start","tools.autoclaim.intlClose":"Close","tools.autoclaim.intlSelect":"Select","tools.autoclaim.intlCharge":"Charge","tools.autoclaim.intlAuthorize":"Authorize","tools.autoclaim.intlUnauthorize":"Unauthorize","tools.autoclaim.intlWithdraw":"Withdraw","tools.autoclaim.intlChargeNumber":"Please input charge number","tools.autoclaim.intlEmailAddress":"Email Address","tools.autoclaim.intlPool":"Reward Pool(DFS)","tools.autoclaim.intlPoolApy":"Pool APY({apy}%)","tools.autoclaim.intlDelay":"Cooling Time(Hour)","tools.autoclaim.intlTip":"Tip(DFS)","tools.autoclaim.intlForce":"Force Claim(After 24 hours)","tools.autoclaim.intlInterval":"Interval Time(Hour)","tools.autoclaim.intlTimePoint":"Time Point","tools.autoclaim.intlMode2Placeholder":"At least 1","tools.autoclaim.intlCanBeZero":"Can be 0","tools.autoclaim.intlFeePercent":"Fee({percent}%)","tools.autoclaim.intlBurnPercent":"Burn({percent}%)","tools.autoclaim.intlConfig":"Config","tools.autoclaim.intlChargeFirst":"Please charge first","tools.autoclaim.intlLog":"Log","tools.nameswitch.intlNameSwitch":"Name Switch"})),locale:"en-US",antd:a()({},pt.Z),momentLocale:""},"zh-CN":{messages:a()({},yt({"menu.dash":"看板","menu.ecosystem":"生态","menu.interface":"接口","menu.vote":"投票","menu.interface.rpc":"RPC","menu.interface.rpc2":"RPC2","menu.interface.decode":"解码","menu.vote.node":"节点","menu.vote.producer":"生产者","menu.vote.king":"票王","menu.coffee":"咖啡","menu.log":"日志","menu.log.swaplog":"交换日志","menu.log.liqlog":"做市日志","menu.log.bridgelog":"桥日志","menu.log.jiuburn":"JIU销毁日志","menu.timeline":"时间轴","menu.query":"查询","menu.query.account":"账号","menu.query.contract":"合约","menu.query.transaction":"交易","menu.transfer":"转账","menu.jiu":"韭菜","menu.jiu.donation":"捐款","menu.jiu.crowd":"众筹","menu.jiu.holder":"持有者","menu.jiu.activity":"活动","menu.jiu.result":"活动结果","menu.msig":"多签","menu.msig.proposal":"提案","menu.msig.pubkey":"公钥","menu.msig.transaction":"交易","menu.statistics":"统计","menu.statistics.newaccount":"新建账号","menu.statistics.pools":"矿池","menu.statistics.tokens":"通证","menu.tools":"工具","menu.tools.verify":"验签","menu.tools.timeconvert":"时间换算","menu.tools.claim":"收矿","menu.tools.autoclaim":"自动收矿","menu.tools.secretkey":"密钥生成","menu.tools.pubkeyswitch":"公钥切换","menu.tools.rpc":"RPC节点切换","menu.tools.wallet":"简易钱包","menu.tools.nodebonus":"节点分红","menu.tools.deploy":"部署合约","menu.tools.nameswitch":"名称切换","menu.ppp":"PPP","menu.ppp.sweep":"批量扫货","menu.ppp.autosweep":"自动扫货","menu.ppp.grabcoin":"自动抢币","menu.ppp.project":"项目查询","menu.ppp.list":"项目列表","menu.ppp.burn":"批量销毁","menu.ppp.autoburn":"自动销毁","menu.ppp.autotrade":"自动交易","menu.ppp.swaplog":"交易记录","app.openVConsole":"Open vConsole","app.closeVConsole":"Close vConsole","app.clearCompleted":"清除完成","app.clearSessionStorage":"SessionStorage Clear","app.clearLocalStorage":"LocalStorage Clear","app.clearIndexedDB":"IndexedDB Clear","app.clearAll":"All Clear","app.refresh":"Refresh","app.intlNotSupportChain":"当前页面不支持区块链{chainName}","app.intl404":"很抱歉,您访问的页面不存在","common.intlCopy":"复制","common.intlCopySuccess":"复制成功","common.intlCopyFail":"复制失败","common.intlPleaseConnectWallet":"请连接钱包","common.intlPleaseConnectNetwork":"请连接网络","common.intlTxSuccess":"交易成功","common.intlTxFail":"交易失败","common.intlInsufficientBalance":"余额不足","common.intlTransferSuccess":"转账成功","common.intlTransferFail":"转账失败","common.intlInputException":"输入异常","common.intlResult":"结果","common.intlExport":"导出","common.intlYes":"是","common.intlNo":"否","account.intlNodeConnectFail":"节点连接失败","account.intlNodeConnectStatus":"节点连接状态","account.intlConnectWallet":"连接钱包","account.intlCopyAccount":"复制账号","account.intlDisconnect":"断开连接","account.intlFreeSource":"免费资源","account.intlMemory":"内存","account.intlCpu":"CPU","account.intlNet":"NET","account.intlBalance":"余额","account.intlVotes":"票数","account.intlCreated":"创建时间","account.intlAuthority":"授权","account.intlActionNotExist":"Action不存在","account.intlAlreadyExists":"已存在","account.intlAddSuccess":"添加成功","account.intlEditSuccess":"修改成功","account.intlDeleteSuccess":"删除成功","account.intlPermissionNotExist":"Permission名称不存在","account.intlKeyGeneration":"密钥生成","account.intlPublicKey":"公钥","account.intlPrivateKey":"私钥","account.intlPrivateKeyWif":"私钥(WIF)","account.intlBackupTip":"使用密钥前必须备份好私钥或助记词","account.intlProhibitdeletion":"禁止删除","account.intlPermissionAlreadyExists":"{perm_name}已存在","account.intlKeysAccountsEmpty":"keys和accounts为空","account.intlExistChildren":"存在children","account.intlExistLinkedActions":"存在linked_actions","account.intlAccount":"账号","account.intlSearch":"查询","account.intlSearchAccount":"查询账号","account.intlValue":"价值","account.intlDesc":"简介","account.intlProfile":"概述","account.intlAuth":"权限","account.intlToken":"通证","account.intlNft":"NFT","account.intlTotalTokensValue":"通证总价值","account.intlTotalNftsValue":"NFT总价值","account.intlTotalLiqsValue":"做市总价值","account.intlLiq":"做市","account.intlDay":"天","account.intlTx":"交易","account.intlTime":"时间","account.intlAction":"动作","account.intlData":"数据","account.intlSendToken":"发送代币","account.intlReceiveToken":"接收代币","account.intlTransferToken":"转移代币","account.intlClaim":"收矿","account.intlFreeCPU":"免费CPU","account.intlReleaseRam":"{account} 释放 {ram} Bytes","account.intlConsumeRam":"{account} 消耗 {ram} Bytes","account.intlUpdateAuth":"更新权限","account.intlDeleteAuth":"删除权限","account.intlLinkAuth":"链接授权","account.intlUnlinkAuth":"取消授权","account.intlSetKey":"备份私钥","account.intlBuyRamBytes":"购买内存","account.intlWithdraw":"取回","account.intlFilter":"过滤","account.intlDateRange":"日期范围","account.intlContractAction":"合约 : 动作","account.intlFilterFormatError":"过滤器格式错误","account.intlProposal":"提案","account.intlProposeProposal":"发起提案","account.intlCancelProposal":"取消提案","account.intlExecProposal":"执行提案","account.intlApproveProposal":"批准提案","account.intlUnapproveProposal":"否决提案","account.intlNotRequested":"非签名账号","account.intlAlreadySigned":"已经签过名","account.intlUnsigned":"未经过签过名","account.intlNotProposer":"非提案人","account.intlProposalName":"提案名称","account.intlProposalOperate":"操作提案","account.intlRequestedApprovals":"请求批准","account.intlActions":"动作","account.intlBuy":"购买","account.intlSell":"出售","account.intlBuyRam":"购买内存","account.intlSellRam":"出售内存","account.intlRamTip":"内存不支持卖出,请按需购买","account.intlRamNumber":"DFS数量","account.intlRamSize":"RAM大小","account.intlRamNumberPlaceholder":"输入DFS数量","account.intlRamSizePlaceholder":"输入内存大小(KB)","account.intlRamSizeBytePlaceholder":"输入内存大小(B)","account.intlBuyResource":"购买资源","account.intlResourceTip":"购买资源后可使用24小时","account.intlInviteCode":"邀请码","account.intlInviteCount":"邀请数","account.intlInvite":"邀请","account.intlInviteTime":"邀请时间","account.intlInviter":"邀请人","account.intlLikePost":"点赞","account.intlNewPost":"发表文章","dash.intlChainInfo":"链信息","dash.intlBlockTime":"出块时间","dash.intlSecond":"秒","dash.intlTotalBlocks":"区块数","dash.intlAccounts":"账号数","dash.intlContracts":"合约数","dash.intlRamInfo":"内存信息","dash.intlRamPrice":"内存价格","dash.intlTotalRam":"内存总量","dash.intlFreeRam":"剩余","dash.intlBoughtRam":"已购买内存","dash.intlBought":"已购买","dash.intlRamStake":"已锁定","dash.intlRamFee":"累计手续费","dash.intlNodeInfo":"节点信息","dash.intlNodes":"节点数","dash.intlOnline":"在线","dash.intlProducers":"出块节点","dash.intlBuffer":"加成","dash.intlRewardRank":"奖励排名","dash.intlMinVotes":"奖励至少票数","dash.intlDFSSupply":"流通量","dash.intlRewardPool":"奖励池","dash.intlMarketInfo":"市场信息","dash.intlDFSPrice":"DFS价格","dash.intlMarketCap":"流通市值","dash.intlSwapPairs":"交易对","dash.intlSwapTVL":"TVL","dash.intl24HVolume":"24H交易额","dash.intlTotalVolume":"总交易额","dash.intlSupplyInfo":"供给信息","dash.intlDailySupply":"每日产出","dash.intlHalving":"减产剩余","dash.intlSupply":"总产量","dash.intlConvertInfo":"转换信息","dash.intlDFSNToDFS":"DFSN(BRC20) ➜ DFS","dash.intlDFSToDFS":"DFS(EOS) ➜ DFS","dash.intlBridgeInfo":"跨链桥信息","dash.intlTotalTokens":"通证数","dash.intlTotalValue":"总价值","node.intlVotes":"选票","node.intlStatus":"状态","node.intlP2PStatus":"P2P状态","node.intlRPCStatus":"RPC状态","node.intlLocation":"位置","node.intlWebsite":"网站","node.intlTotalReward":"总奖励","node.intlAction":"动作","node.intlNodes":"节点数","node.intlOnline":"在线","node.intlProducers":"出块节点","node.intlBuffer":"加成","node.intlRewardRank":"奖励排名","node.intlMinVotes":"至少票数","node.intlRewardPool":"奖励池","node.intlVoteSuccess":"投票成功","node.intlVoteFail":"投票失败","node.intlResponseTime":"响应时间","node.intlNode":"节点","node.intlNodeReward":"节点奖励","vote.intlTotalVotes":"总票数","vote.intlTheKingOfVotes":"票王排行榜","vote.intlExportData":"导出数据","vote.intlExportComplete":"导出完成","producer.intlVote":"投票","ecosystem.dex":"交易所","ecosystem.token":"通证","ecosystem.game":"游戏","ecosystem.crossChain":"跨链","ecosystem.wallet":"钱包","ecosystem.social":"社交","ecosystem.market":"市场","ecosystem.other":"其它","ecosystem.all":"所有","ecosystem.tool":"工具","ecosystem.exchange":"交易","ecosystem.website":"网站","ecosystem.name":"名称","ecosystem.update":"更新","ecosystem.contract":"合约","ecosystem.socialMedia":"社交媒体","ecosystem.tips":"温馨提示","ecosystem.alert":"您即将进入第三方链接{website},你在第三方链接上的使用行为适用于第三方链接的《隐私政策》和《用户协议》,由{website}直接并单独向您承担责任!","ecosystem.tipsTitle1":"请您务必了解以下事项:","ecosystem.tipsSection1Txt1":"1. 该链接不属于DFSTool,该链接完全由项目方进行控制!请在使用前务必了解该链接的安全性!","ecosystem.tipsSection1Txt2":"2. 您清楚如果由于您访问该链接而造成的任何损失,由您个人承担,与DFSTool无关!","ecosystem.tipsSection1Txt3":"3. 如果您在使用该链接的过程中遇到什么问题,需要您直接联系项目方进行解决!","ecosystem.tipsTitle2":"访问第三方链接时,请您警惕常见骗局:","ecosystem.tipsSection2Txt1":"1. 高回报挖矿/理财","ecosystem.tipsSection2Txt2":"2. 免费空投","ecosystem.tipsSection2Txt3":"3. 授权诈骗","ecosystem.tipsSection2Txt4":"4. 庞氏骗局","ecosystem.noTips":"不再提醒","ecosystem.intlPrice":"价格","ecosystem.intlSupply":"流通量","ecosystem.intlSupplyValue":"流通市值","ecosystem.intlPrecision":"精度","ecosystem.intlMaxSupply":"最大供给","ecosystem.intlDesc":"说明","iframe.Close":"关闭","iframe.Jump":"跳转","contract.intlContract":"合约","contract.intlSearch":"查询","contract.intlSearchContract":"查询合约","contract.intlSelectTable":"选择表","contract.intlSelectAction":"选择动作","contract.intlEnterParameters":"输入参数","contract.intlEnterData":"输入数据","contract.intlTableResult":"查询结果","contract.intlAccountFormatError":"账号格式错误","contract.intlNonContractAccount":"非合约账号","contract.intlNoData":"无数据","contract.intlAdd":"添加","contract.intlBatchActions":"批量操作","contract.intlEncodeResult":"编码结果","contract.intlDecodeResult":"解码结果","contract.intlReadOnlyResult":"只读结果","contract.intlEncode":"编码","contract.intlDecode":"解码","contract.intlReadOnly":"只读","contract.intlDecodeSuccess":"解码成功","contract.intlEncodeSuccess":"编码成功","contract.intlReadOnlySuccess":"只读成功","contract.intlMsigPubkey":"多签-公钥","contract.intlMsigProposal":"多签-提案","contract.intlMsigTransaction":"多签-交易","contract.intlCreateTransaction":"创建交易","contract.intlCustomAuthority":"自定义权限","contract.intlCreateProposal":"创建提案","contract.intlSignedTransaction":"签名交易","contract.intlCreate":"创建","contract.intlCreateAndSign":"创建并签名","contract.intlExpiration":"交易期限(分钟)","contract.intlExpirationError":"期限必须大于当前时间","contract.intlFreeCpu":"免费CPU","contract.intlAccount":"账号","contract.intlPermission":"许可","contract.intlExported":"已导出","contract.intlFreeCpuLimit":"免费CPU必须使用active或者owner权限","contract.intlProposer":"提案人","contract.intlProposalName":"提案名称","contract.intlMsigAccount":"多签账号","contract.intlRequested":"签名账号","contract.intlImportRequested":"导入签名账号","contract.intlThreshold":"阀值","contract.intlMsigAccountWeightInsufficient":"签名账号权重不足","contract.intlProposalNamePlaceholder":"1-12位,仅包含a-z.1-5的字符","contract.intlContextFreeActions":"上下文无关动作","contract.intlContextFreeData":"上下文无关数据","contract.intlCharEncode":"字符编码","coffee.inputException":"输入异常","coffee.account":"账号","coffee.pleaseInputTokenNumber":"请输入{symbol}数量","coffee.cardTitle":"请开发者喝咖啡","coffee.message":"留言","coffee.leaveAMessage":"留下你的名言","coffee.intlToken":"通证","coffee.intlQuantity":"数量","coffee.pleaseInputTokenNumber2":"请输入转账数量","swaplog.intlLoad":"加载","swaplog.intlUser":"用户","swaplog.intlFrom":"输入","swaplog.intlTo":"输出","swaplog.intlTime":"时间","swaplog.intlInputLoadNumber":"输入加载天数","swaplog.intlDailyVolume":"每日成交量","liqlog.intlLoad":"加载","liqlog.intlUser":"用户","liqlog.intlQ0":"数量0","liqlog.intlQ1":"数量1","liqlog.intlBal0":"余额0","liqlog.intlBal1":"余额1","liqlog.intlTime":"时间","liqlog.intlInputLoadNumber":"输入加载数量","bridgelog.intlFrom":"从","bridgelog.intlTo":"到","bridgelog.intlQuantity":"资产","bridgelog.intlTime":"时间","bridgelog.intlState":"状态","bridgelog.intlTransId":"交易ID","bridgelog.intlCompleted":"完成","bridgelog.intlProcessing":"处理中","bridgelog.intlFail":"失败","bridgelog.intlBridgeIn":"跨入","bridgelog.intlBridgeOut":"跨出","bridgelog.intlUpdate":"更新","jiuburn.intlType":"类型","jiuburn.intlQuantity":"数量","jiuburn.intlExecTime":"执行时间","jiuburn.intlTrxId":"交易ID","jiuburn.intlDailyJIUBurn":"每日销毁JIU","jiuburn.intlWeeklyJIUBurn":"每周销毁JIU","jiuburn.intlMonthlyJIUBurn":"每月销毁JIU","jiuburn.intlDailyDFSBuy":"每日回购DFS","jiuburn.intlWeeklyDFSBuy":"每周回购DFS","jiuburn.intlMonthlyDFSBuy":"每月回购DFS","jiuburn.intlBuyQuantity":"累计回购","jiuburn.intlBurnQuantity":"累计销毁","jiuburn.intlBuyCount":"回购次数","jiuburn.intlBurnCount":"销毁次数","verify.intlSign":"签名","verify.intlVerifySignature":"验签","verify.intlSignSuccess":"签名成功","verify.intlSignFail":"签名失败","verify.intlRawInfo":"原始信息","verify.intlSignInfo":"签名信息","verify.intlVerifyAccount":"验证账号","verify.intlResult":"结果","verify.intlAccountInfo":"账号信息","verify.intlPublicKey":"公钥信息","transaction.intlTransaction":"交易","transaction.intlActions":"动作","transaction.intlSearchTransaction":"查询交易","transaction.intlSearch":"查询","transaction.intlTransactionFormatError":"交易ID格式错误","transaction.intlSummary":"概要","transaction.intlStatus":"状态","transaction.intlBlockNumber":"区块号","transaction.intlBlockTime":"区块时间","transaction.intlCpuUsage":"CPU使用","transaction.intlNetUsage":"NET使用","transaction.intlRamUsage":"RAM使用","transaction.intlAuthorization":"授权","transaction.intlTraces":"追踪","transaction.intlLegend":"说明","transaction.intlNotified":"通知","transaction.intlReceiver":"接受者","transaction.intlAuthorized":"授权","transaction.intlReleaseRam":"{account} 释放 {ram}","transaction.intlConsumeRam":"{account} 消耗 {ram}","transaction.intlRaw":"Raw","transfer.intlCardTitle":"批量转账","transfer.intlAmountZero":"数量不能为0","transfer.intlToken":"通证","transfer.intlQuantity":"数量","transfer.intlTo":"收款账号","transfer.intlMemo":"Memo","transfer.intlImport":"导入","transfer.intlImportFail":"导入失败","transfer.intlImportSuccess":"导入成功","transfer.intlLackToken":"账号无相应Token","transfer.intlToFormatError":"收款账号格式错误","transfer.intlCount":"计数","jiu.intlMissingData":"数据丢失","jiu.intlDonationRank":"捐款排行榜","jiu.intlDonationUsers":"捐款人数","jiu.intlDonationValue":"捐款总额","jiu.intlDonationAccount":"捐款账号","jiu.intlCrowdRank":"众筹排行榜","jiu.intlCrowdUsers":"众筹人数","jiu.intlCrowdValue":"众筹总额","jiu.intlCrowdAccount":"众筹账号","jiu.intlHolder":"持有者","jiu.intlHold":"账号持有量","jiu.intlLiq":"做市持有量","jiu.intlTotalBal":"总持有量","jiu.intlTotalValue":"总价值","jiu.intlRatio":"占比","jiu.intlSupply":"流通量","jiu.intlMarketCap":"流通市值","jiu.intlDestruction":"销毁","jiu.intlPrice":"价格","jiu.intlRank":"排名","jiu.intlUpdate":"更新","jiu.intlQuantityMustGreater":"数量必须大于或等于{num}{sym}","jiu.intlFinished":"活动已结束","jiu.intlLatestActivity":"最新活动","tokens.intlHolder":"持有者","tokens.intlHold":"账号持有量","tokens.intlLiq":"做市持有量","tokens.intlTotalBal":"总持有量","tokens.intlTotalValue":"总价值","tokens.intlRatio":"占比","tokens.intlSupply":"流通量","tokens.intlMarketCap":"流通市值","tokens.intlPrice":"价格","tokens.intlRank":"排名","tokens.intlUpdate":"更新","timeconvert.intlUTCTime":"UTC时间","timeconvert.intlUTCISO":"UTC(ISO 8601)秒","timeconvert.intlUTCISOMilliSecond":"UTC(ISO 8601)毫秒","timeconvert.intlLocalTime":"本地时间","timeconvert.intlUnixSecond":"时间戳(秒)","timeconvert.intlUnixMilliSecond":"时间戳(毫秒)","timeconvert.intlUnixMicroSecond":"时间戳(微秒)","statistics.intlMissingData":"数据丢失","statistics.intlDailyAccount":"每日新增账号","statistics.intlDailyAccountSum":"每日新增账号累计","statistics.intlWeeklyAccount":"每周新增账号","statistics.intlWeeklyAccountSum":"每周新增账号累计","statistics.intlMonthlyAccount":"每月新增账号","statistics.intlMonthlyAccountSum":"每月新增账号累计","statistics.intlMinutePool":"每10分钟矿池DFS数量","statistics.intlMinuteApy":"每10分钟矿池DFS年化(%)","statistics.intlMinuteNode":"每30分钟节点矿池DFS数量","statistics.intlHourPool":"每小时矿池DFS数量","msig.intlImportFail":"导入失败","msig.intlImportSuccess":"导入成功","msig.intlUploadFail":"上传失败","msig.intlUploadSuccess":"上传成功","msig.intlPreviewFail":"预览失败","msig.intlPreviewSuccess":"预览成功","msig.intlClose":"关闭","msig.intlSignedTransaction":"签名交易","msig.intlSendTransaction":"发送交易","msig.intlSign":"签名","msig.intlImportTransaction":"导入交易","msig.intlExportSignedTransaction":"导出签名交易","msig.intlCopySignedTransaction":"复制签名交易","msig.intlTransactionInfo":"交易信息","msig.intlSend":"发送","msig.intlSignAndSend":"签名并发送","msig.intlNoNeedInput":"无需输入","msig.intlTransactionEmpty":"交易信息为空","msig.intlTransactionDifferent":"交易信息不相同","msig.intlCreatTxTip1":'1. 进到"查询-合约"页面',"msig.intlCreatTxTip2":"2. 查询对应合约,选择Actions","msig.intlCreatTxTip3":"3. 输入数据后,点击多签","msig.intlCreateProposal":"创建提案","msig.intlMyProposal":"我的提案","msig.intlSearchProposal":"查询提案","msig.intlRequestedApproval":"待我批准提案","msig.intlGetProposalFail":"获取提案信息失败","tools.intlCreate":"生成","tools.claim.intlNoLiqPool":"无相关矿池","tools.claim.intlNonNode":"非节点","tools.claim.intlNonPromoters":"非推广者","tools.pubkeyswitch.intlNotSupportPubkeyFormat":"不支持当前公钥格式","tools.pubkeyswitch.intlPubkeySwitch":"公钥切换","tools.secretkey.intlMnemonic":"助记词","tools.secretkey.intlCopyMnemonic":"复制助记词","tools.secretkey.intlConvert":"转换","tools.secretkey.intlConvertMnemonic":"助记词转私钥","tools.secretkey.intlConvertPrivateKey":"私钥转公钥","tools.rpc.intlNodeSwitch":"节点切换","tools.rpc.intlSwitchSuccess":"切换成功","tools.rpc.intlCustom":"自定义","tools.wallet.intlPermissionNotMatch":"{actor}与{permission}不匹配","tools.wallet.intlPrivateKeyNotMatch":"{permissionLevel}与私钥不匹配","tools.wallet.intlImportSuccess":"导入成功","tools.wallet.intlImportFail":"导入失败","tools.wallet.intlImport":"导入","tools.wallet.intlPrivateKeyOrMnemonic":"私钥或者助记词","tools.wallet.intlPassword":"密码","tools.wallet.intlPasswordTip":"至少八个字符,至少一个字母,一个数字和一个特殊字符","tools.wallet.intlImportPrivateKey":"导入私钥","tools.wallet.intlImportPrivateKeys":"批量导入","tools.wallet.intlBackupPrivateKey":"备份私钥","tools.wallet.intlRestorePrivateKey":"还原私钥","tools.wallet.intlRestoreSuccess":"还原成功","tools.wallet.intlRestoreFail":"还原失败","tools.wallet.intlBackupSuccess":"备份成功","tools.wallet.intlBackupFail":"备份失败","tools.wallet.intlBatchUpdate":"批量更新","tools.wallet.intlSelectAccount":"请选择账号","tools.wallet.intlResource":"资源","tools.wallet.intlOperation":"操作","tools.wallet.intlWetherToDelete":"确认是否删除?","tools.wallet.intlUpdateComplete":"更新完成","tools.wallet.intlDeleteSuccess":"删除成功","tools.wallet.intlStatus":"状态","tools.wallet.intlUnlock":"解锁","tools.wallet.intlPasswordError":"密码错误","tools.wallet.intlUnlockSuccess":"解锁成功","tools.wallet.intlBatchDelete":"批量删除","tools.wallet.intlTransfer":"转账","tools.wallet.intlAction":"动作","tools.wallet.intlLockAll":"锁定所有","tools.wallet.intlCancelTransaction":"取消交易","tools.wallet.intlConfirmTransaction":"确认交易","tools.wallet.intlBatchExec":"批量执行","tools.wallet.intlBackupTip":"请保管好私钥","tools.wallet.intlAttention":"注意:仅用于测试,开发和批量操作,请勿导入含有大资金的账号!","tools.nodebonus.intlVoter":"投票人","tools.nodebonus.intlVote":"票数","tools.nodebonus.intlVoteTime":"票数更新时间","tools.nodebonus.intlVoteRatio":"投票占比","tools.nodebonus.intlSearchNode":"查询节点","tools.nodebonus.intlExecBonus":"执行分红","tools.nodebonus.intlExportData":"导出数据","tools.nodebonus.intlExportAction":"导出动作","tools.nodebonus.intlBonusAmount":"分红数量(DFS)","tools.nodebonus.intlIgnoreZeroVote":"忽略0票数账号","tools.nodebonus.intlRequireVote":"票数要求(大于)","tools.nodebonus.intlSummary":"汇总","tools.nodebonus.intlBonusMemo":"分红备注(memo)","tools.deploy.intlDeploy":"部署","tools.deploy.intlDeployContract":"部署合约","tools.deploy.intlAddPermisson":"添加eosio.code权限","tools.deploy.intlSize":"大小","tools.deploy.intlClearContract":"清空合约","tools.deploy.intlClearContractTip":"清空前需要确保合约表里的内容已全部删除,否则会一直占用内存。","tools.autoclaim.intlType":"类型","tools.autoclaim.intlAccount":"账号","tools.autoclaim.intlLiquidity":"做市","tools.autoclaim.intlNode":"节点","tools.autoclaim.intlReward":"未领取奖励","tools.autoclaim.intlBalance":"余额","tools.autoclaim.intlClaimMode":"收矿模式","tools.autoclaim.intlMode":"模式","tools.autoclaim.intlMode1":"模式1","tools.autoclaim.intlMode2":"模式2","tools.autoclaim.intlMode3":"模式3","tools.autoclaim.intlActive":"启动收矿","tools.autoclaim.intlClaimCount":"收矿次数","tools.autoclaim.intlClaimTime":"最近收矿时间","tools.autoclaim.intlDepositTime":"最近充值时间","tools.autoclaim.intlNotice":"启动通知","tools.autoclaim.intlEmail":"邮箱","tools.autoclaim.intlOpen":"启动","tools.autoclaim.intlClose":"关闭","tools.autoclaim.intlSelect":"选择","tools.autoclaim.intlCharge":"充值","tools.autoclaim.intlAuthorize":"授权","tools.autoclaim.intlUnauthorize":"取消授权","tools.autoclaim.intlWithdraw":"取回","tools.autoclaim.intlChargeNumber":"请输入充值数量","tools.autoclaim.intlEmailAddress":"邮箱地址","tools.autoclaim.intlPool":"奖励矿池(DFS)","tools.autoclaim.intlPoolApy":"矿池年化({apy}%)","tools.autoclaim.intlDelay":"冷却时间(小时)","tools.autoclaim.intlTip":"小费(DFS)","tools.autoclaim.intlForce":"强制收矿(24小时后)","tools.autoclaim.intlInterval":"间隔时间(小时)","tools.autoclaim.intlTimePoint":"指定时间","tools.autoclaim.intlMode2Placeholder":"至少为1","tools.autoclaim.intlCanBeZero":"可以为0","tools.autoclaim.intlFeePercent":"费用({percent}%)","tools.autoclaim.intlBurnPercent":"销毁({percent}%)","tools.autoclaim.intlConfig":"配置","tools.autoclaim.intlChargeFirst":"请先充值","tools.autoclaim.intlLog":"日志","tools.nameswitch.intlNameSwitch":"名称切换"})),locale:"zh-CN",antd:a()({},mt.Z),momentLocale:"zh-cn"}},_t=function(e){return(0,st.We)().applyPlugins({key:"locale",type:"modify",initialValue:e})},xt=function(e){var t=_t(wt[e]),n=t.cache;return ot(i()(t,gt),n)},kt=function(e,t){return!ht||t||e?(e||(e=Ct()),e&&wt[e]?xt(e):(dt()(!e||!!wt[e],"The current popular language does not exist, please check the locales folder!"),wt["en-US"]?xt("en-US"):ot({locale:"en-US",messages:{}}))):ht},St=function(e){ht=kt(e,!0)},Ct=function(){var e=_t({});if("function"==typeof(null==e?void 0:e.getLocale))return e.getLocale();var t,n=navigator.cookieEnabled&&"undefined"!=typeof localStorage?window.localStorage.getItem("umi_locale"):"";return t="undefined"!=typeof navigator&&"string"==typeof navigator.language?navigator.language.split("-").join("-"):"",n||t||"en-US"},Mt=function(){var e=Ct();return["he","ar","fa","ku"].filter((function(t){return e.startsWith(t)})).length?"rtl":"ltr"},Et=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function(){if(Ct()!==e)if(navigator.cookieEnabled&&void 0!==window.localStorage&&window.localStorage.setItem("umi_locale",e||""),St(e),t)window.location.reload();else if(vt.emit(bt,e),window.dispatchEvent){var n=new Event("languagechange");window.dispatchEvent(n)}};n()},At=function(){return Object.keys(wt)}},44886:function(e,t,n){"use strict";n.d(t,{t:function(){return y},z:function(){return b}});var r=n(5574),i=n.n(r),o=n(72004),a=n.n(o),s=n(12444),l=n.n(s),c=n(9783),u=n.n(c),d=n(64063),f=n.n(d),h=n(62435),p=n(86074),m=h.createContext(null);function g(e){var t,n=e.hook,r=e.onUpdate,i=e.namespace,o=(0,h.useRef)(r),a=(0,h.useRef)(!1);try{t=n()}catch(e){console.error("plugin-model: Invoking '".concat(i||"unknown","' model failed:"),e)}return(0,h.useMemo)((function(){o.current(t)}),[]),(0,h.useEffect)((function(){a.current?o.current(t):a.current=!0})),null}var v=new(a()((function e(){var t=this;l()(this,e),u()(this,"callbacks",{}),u()(this,"data",{}),u()(this,"update",(function(e){t.callbacks[e]&&t.callbacks[e].forEach((function(n){try{n(t.data[e])}catch(e){n(void 0)}}))}))})));function b(e){return(0,p.jsxs)(m.Provider,{value:{dispatcher:v},children:[Object.keys(e.models).map((function(t){return(0,p.jsx)(g,{hook:e.models[t],namespace:t,onUpdate:function(e){v.data[t]=e,v.update(t)}},t)})),e.children]})}function y(e,t){var n=(0,h.useContext)(m).dispatcher,r=(0,h.useRef)(t);r.current=t;var o=(0,h.useState)((function(){return r.current?r.current(n.data[e]):n.data[e]})),a=i()(o,2),s=a[0],l=a[1],c=(0,h.useRef)(s);c.current=s;var u=(0,h.useRef)(!1);return(0,h.useEffect)((function(){return u.current=!0,function(){u.current=!1}}),[]),(0,h.useEffect)((function(){var t,i=function(t){if(u.current){var i=r.current?r.current(t):t,o=c.current;f()(i,o)||(c.current=i,l(i))}else setTimeout((function(){n.data[e]=t,n.update(e)}))};return(t=n.callbacks)[e]||(t[e]=new Set),n.callbacks[e].add(i),n.update(e),function(){n.callbacks[e].delete(i)}}),[e]),s}},54359:function(e,t,n){"use strict";n.d(t,{NL:function(){return Pe},Bf:function(){return De},i3:function(){return Ge},$7:function(){return Ke},uq:function(){return tt},tw:function(){return rt},f9:function(){return st},DL:function(){return ct},ps:function(){return gt}});var r=n(15009),i=n.n(r),o=n(5574),a=n.n(o),s=n(99289),l=n.n(s),c=n(75633),u=n(90837),d=n(64119),f=n(34390),h=n(80882),p=n(59530),m=n(41960),g=n(39217),v=n(69284),b=n(74793),y=n(7134),w=n(85418),_=n(40411),x=n(62435),k=n(57132),S=n(90814),C=n(37476),M=n(45360),E=n(4393),A=n(72269),I=n(38703),O=n(15867),j=n(42152),Z=n.n(j),R=n(55835),N=n(27484),P=n.n(N),T=n(38823),B=n.n(T),$=n(70178),D=n.n($),L=n(25712),z=n.n(L),F=n(87462),W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},H=n(84089),V=function(e,t){return x.createElement(H.Z,(0,F.Z)({},e,{ref:t,icon:W}))};var U=x.forwardRef(V),Y=n(48689),G=n(86548),q={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 552h63.6c4.4 0 8-3.6 8-8V288.7h528.6v72.6c0 1.9.6 3.7 1.8 5.2a8.3 8.3 0 0011.7 1.4L893 255.4c4.3-5 3.6-10.3 0-13.2L749.7 129.8a8.22 8.22 0 00-5.2-1.8c-4.6 0-8.4 3.8-8.4 8.4V209H199.7c-39.5 0-71.7 32.2-71.7 71.8V544c0 4.4 3.6 8 8 8zm752-80h-63.6c-4.4 0-8 3.6-8 8v255.3H287.8v-72.6c0-1.9-.6-3.7-1.8-5.2a8.3 8.3 0 00-11.7-1.4L131 768.6c-4.3 5-3.6 10.3 0 13.2l143.3 112.4c1.5 1.2 3.3 1.8 5.2 1.8 4.6 0 8.4-3.8 8.4-8.4V815h536.6c39.5 0 71.7-32.2 71.7-71.8V480c-.2-4.4-3.8-8-8.2-8z"}}]},name:"retweet",theme:"outlined"},X=function(e,t){return x.createElement(H.Z,(0,F.Z)({},e,{ref:t,icon:q}))};var K=x.forwardRef(X),J=n(31673),Q=n(19632),ee=n.n(Q),te=n(38345),ne=n(17186),re=n(5966),ie=n(71230),oe=n(15746),ae=n(86074),se=x.forwardRef((function(e,t){var n=(0,p.useDispatch)(),r=M.ZP.useMessage(),o=a()(r,2),s=o[0],c=o[1],f=(0,x.useState)(""),h=a()(f,2),m=h[0],g=h[1],v=(0,x.useState)({}),b=a()(v,2),y=b[0],w=b[1],_=(0,p.useSelector)((function(e){return e.global.session})),k=(0,p.useSelector)((function(e){return e.global.account})),S=(0,p.useSelector)((function(e){return e.global.accountKit})),E=(0,p.useIntl)(),A=E.formatMessage({id:"common.intlInputException"}),I=E.formatMessage({id:"contract.intlNonContractAccount"}),O=E.formatMessage({id:"account.intlActionNotExist"}),j=E.formatMessage({id:"common.intlTxSuccess"}),Z=E.formatMessage({id:"common.intlTxFail"}),R=(0,x.useRef)(),N=(0,x.useState)(!1),P=a()(N,2),T=P[0],B=P[1],$=(0,x.useCallback)((function(e){g(e.children[0].key),w(e),B(!0)}),[]);(0,x.useImperativeHandle)(t,(function(){return{handleOpen:$}}));var D=(0,x.useCallback)(function(){var t=l()(i()().mark((function t(r){var o,l,c,f,h,p,m,g,v,b,w,x,C,M,E,A,R,N,P;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(o={},l=[],y.children[0].children.forEach((function(e){var t=e.key.split("-")[2];l.push(t)})),c=0;c ").concat(n):n),I(!0),setTimeout((function(){var e,a,c,u,d,f,h,p;(null===(e=_.current)||void 0===e||e.resetFields(),null===(a=_.current)||void 0===a||a.setFieldValue("parent",t),null===(c=_.current)||void 0===c||c.setFieldValue("perm_name",n),null===(u=_.current)||void 0===u||u.setFieldValue("threshold",r),i.length)&&(null===(d=_.current)||void 0===d||d.setFieldValue("linked_actions",i));l.length&&(null===(f=_.current)||void 0===f||f.setFieldValue("waits",l));s.length&&(null===(h=_.current)||void 0===h||h.setFieldValue("accounts",s));o.length&&(null===(p=_.current)||void 0===p||p.setFieldValue("keys",o))}),100)}),[]);(0,x.useImperativeHandle)(t,(function(){return{handleOpen:B}}));var $=(0,x.useCallback)(function(){var t=l()(i()().mark((function t(r){var o,l,c,f,h,p,g,v,_,x,k,S,C,M,E,A,I,O,j,Z,B,$,D,L,z,F,W,H,V,U,Y;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(o={},l=0;l ")+r}),(0,ae.jsx)(U,{className:"text-base ml-3 text-blue-600",onClick:function(){return L(r)}}),"active"!==r&&(0,ae.jsx)(Y.Z,{className:"text-base ml-3 text-blue-600",onClick:function(){return W(n,t,H)}})]}):n.title=(0,ae.jsx)("div",{children:(0,ae.jsx)("span",{className:"font-semibold",children:r})}),n.key=r,n.children[0].key=r+"-linked_actions",n.children[0].title=(0,ae.jsxs)("div",{children:[(0,ae.jsx)("span",{children:"linked_actions[".concat(e.linked_actions.length,"]")}),"owner"!==r&&"active"!==r&&(0,ae.jsxs)("span",{children:[(0,ae.jsx)(U,{className:"text-base ml-3 text-blue-600",onClick:function(){return $(n)}}),(0,ae.jsx)(Y.Z,{className:"text-base ml-3 text-blue-600",onClick:function(){return D(n)}})]})]}),e.linked_actions.forEach((function(e){var t=r+"-linked_actions",i=e.account.toString()+"::"+e.action.toString();n.children[0].children.push({title:(0,ae.jsxs)("div",{children:[(0,ae.jsx)("span",{className:"font-semibold",children:i}),(0,ae.jsx)(k.Z,{className:"text-base ml-3 text-blue-600",onClick:function(){return F(i)}})]}),key:t+"-"+i,children:[]})}));var a=r+"-required_auth",s=a+"-waits",l=a+"-accounts",c=a+"-keys";n.children[1].key=a,n.children[1].threshold=i,n.children[1].children[0].key=s,n.children[1].children[1].key=l,n.children[1].children[2].key=c,n.children[1].title=(0,ae.jsxs)("div",{children:[(0,ae.jsx)("span",{className:"",children:"required_auth"+"(".concat(i,")")}),(0,ae.jsx)(G.Z,{className:"text-base ml-3 text-blue-600",onClick:function(){return z(n)}})]}),n.children[1].children[0].title=(0,ae.jsx)("div",{children:(0,ae.jsx)("span",{children:"waits[".concat(e.required_auth.waits.length,"]")})}),n.children[1].children[1].title=(0,ae.jsx)("div",{children:(0,ae.jsx)("span",{children:"accounts[".concat(e.required_auth.accounts.length,"]")})}),n.children[1].children[2].title=(0,ae.jsxs)("div",{className:"flex",children:[(0,ae.jsx)("span",{children:"keys[".concat(e.required_auth.keys.length,"]")}),(0,ae.jsx)(K,{className:"text-base ml-3 text-blue-600",onClick:function(){f.current=!f.current,H(t)}})]}),e.required_auth.waits.forEach((function(e){var t=e.wait_sec.toNumber(),r=e.weight.toNumber(),i=s+"-"+t+"-"+r,o=(0,ae.jsxs)("div",{children:[(0,ae.jsx)("span",{className:"font-semibold",children:"+".concat(r," ").concat(t," sec")}),(0,ae.jsx)(k.Z,{className:"text-base ml-3 text-blue-600",onClick:function(){return F("".concat(t))}})]});n.children[1].children[0].children.push({key:i,title:o,children:[]})})),e.required_auth.accounts.forEach((function(e){var t=e.permission.actor.toString(),r=e.permission.permission.toString(),i=e.weight.toNumber(),o=l+"-"+"".concat(t,"@").concat(r)+"-"+i,a=(0,ae.jsxs)("div",{children:[(0,ae.jsx)("span",{className:"font-semibold",children:"+".concat(i," ").concat(t,"@").concat(r)}),(0,ae.jsx)(k.Z,{className:"text-base ml-3 text-blue-600",onClick:function(){return F("".concat(t,"@").concat(r))}})]});n.children[1].children[1].children.push({key:o,title:a,children:[]})})),e.required_auth.keys.sort((function(e,t){var n=e.key.toString(),r=t.key.toString();return n.localeCompare(r)})),e.required_auth.keys.forEach((function(e){var t=e.key.toString(),r="";r=t.includes("WA")?t:e.key.toLegacyString();var i=e.weight.toNumber(),o=c+"-"+t+"-"+i,a=(0,ae.jsxs)("div",{children:[f.current?(0,ae.jsx)("span",{className:"font-semibold",children:"+".concat(i," ").concat(r)}):(0,ae.jsx)("span",{className:"font-semibold",children:"+".concat(i," ").concat(t)}),(0,ae.jsx)(k.Z,{className:"text-base ml-3 text-blue-600",onClick:function(){return F(t)}})]});n.children[1].children[2].children.push({key:o,title:a,children:[]})})),o.push(n)})),o.forEach((function(e){e.parent&&a(o,e)})),o.forEach((function(e){e.parent||r.push(e)})),n(u.N.setAuthority(r));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[$,D,L,W,z,F]),V=(0,x.useCallback)((function(e){H(e),B(!0)}),[]);(0,x.useImperativeHandle)(t,(function(){return{handleOpen:V}}));var q=(0,x.useCallback)(l()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)}))),[]);return(0,ae.jsxs)(C.Y,{formRef:I,title:w,open:T,onFinish:q,onOpenChange:function(e){B(e)},layout:"horizontal",width:"1000px",modalProps:{style:{top:25},destroyOnClose:!0},submitter:!1,children:[(0,ae.jsx)(J.Z,{style:{overflowWrap:"anywhere"},showLine:!0,autoExpandParent:!0,defaultExpandAll:!0,selectable:!1,switcherIcon:(0,ae.jsx)(h.Z,{}),treeData:m}),(0,ae.jsx)(le,{ref:O,handleTree:H}),(0,ae.jsx)(ue,{ref:j,handleTree:H}),(0,ae.jsx)(ye,{ref:Z,handleTree:H}),(0,ae.jsx)(_e,{ref:R,handleTree:H}),c]})})),ke=(0,x.memo)(xe),Se=x.forwardRef((function(e,t){var n=M.ZP.useMessage(),r=a()(n,2),o=r[0],s=r[1],c=(0,p.useSelector)((function(e){return e.global.contractKit})),u=(0,p.useSelector)((function(e){return e.global.session})),f=(0,x.useState)(),h=a()(f,2),m=h[0],g=h[1],v=(0,p.useSelector)((function(e){return e.global.account})),b=(0,x.useState)(0),y=a()(b,2),w=y[0],_=y[1],k=(0,p.useIntl)(),S=k.formatMessage({id:"account.intlBuyRam"}),E=k.formatMessage({id:"account.intlRamTip"}),A=k.formatMessage({id:"account.intlRamNumberPlaceholder"}),I=k.formatMessage({id:"account.intlRamSizePlaceholder"}),O=k.formatMessage({id:"account.intlRamSizeBytePlaceholder"}),j=k.formatMessage({id:"account.intlRamNumber"}),Z=k.formatMessage({id:"account.intlRamSize"}),R=k.formatMessage({id:"common.intlInputException"}),N=k.formatMessage({id:"common.intlPleaseConnectWallet"}),P=k.formatMessage({id:"common.intlPleaseConnectNetwork"}),T=k.formatMessage({id:"common.intlTransferSuccess"}),B=k.formatMessage({id:"common.intlTransferFail"}),$=k.formatMessage({id:"common.intlInsufficientBalance"}),D=(0,x.useRef)(),L=(0,x.useState)(!1),z=a()(L,2),F=z[0],W=z[1],H=(0,x.useMemo)((function(){return v&&v.data.core_liquid_balance?v.data.core_liquid_balance.symbol.name:"DFS"}),[v]),V=(0,x.useMemo)((function(){return v&&v.data.core_liquid_balance?v.data.core_liquid_balance.symbol.precision:8}),[v]),U=(0,x.useCallback)((function(e){g(e),W(!0)}),[]);(0,x.useImperativeHandle)(t,(function(){return{handleOpen:U}}));var Y=(0,x.useCallback)(function(){var e=l()(i()().mark((function e(t){var n,r,s,l,c,f,h;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u&&u.broadcast){e.next=5;break}return o.error("".concat(N)),e.abrupt("return");case 5:if(v){e.next=8;break}return o.error("".concat(P)),e.abrupt("return");case 8:if(v.data.core_liquid_balance){e.next=11;break}return o.error("".concat($)),e.abrupt("return");case 11:return n=Number(t.number),r=v.data.core_liquid_balance.symbol,s={action:{account:"eosio",name:"buyram",authorization:[u.permissionLevel],data:{payer:u.actor,receiver:m.accountName.toString(),quant:me.xR.from(n,r)}}},e.next=16,(0,d.zI)(u.transact(s));case 16:return l=e.sent,c=a()(l,2),f=c[0],h=c[1],f?o.error(f):h&&h.response?o.success("".concat(T)):o.error("".concat(B)),e.abrupt("return",!0);case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[u,v,m]),G=(0,x.useCallback)((function(e){var t,n,r=e[0].name[0],i=e[0].value,o=0,a=0,s=0;if(/^\d+(\.\d+)?$/.test(i))if("number"===r)a=(Number(i)/w).toFixed(2),s=(Number(i)/w*1024).toFixed(0),null===(t=D.current)||void 0===t||t.setFieldValue("size",a),null===(n=D.current)||void 0===n||n.setFieldValue("sizeByte",s);else if("size"===r){var l,c;o=(Number(i)*w).toFixed(8),s=(1024*Number(i)).toFixed(0),null===(l=D.current)||void 0===l||l.setFieldValue("number",o),null===(c=D.current)||void 0===c||c.setFieldValue("sizeByte",s)}else if("sizeByte"===r){var u,d;o=(Number(i)/1024*w).toFixed(8),a=(Number(i)/1024).toFixed(2),null===(u=D.current)||void 0===u||u.setFieldValue("number",o),null===(d=D.current)||void 0===d||d.setFieldValue("size",a)}}),[w]),q=(0,x.useCallback)(function(){var e=l()(i()().mark((function e(t){var n,r,a,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.load("eosio");case 3:return n=e.sent,r=n.table("rammarket"),e.next=7,r.get();case 7:a=e.sent,s=a.quote.balance.value/a.base.balance.value*1024,_(s),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),(0,d.Tv)(e.t0,o);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(t){return e.apply(this,arguments)}}(),[o]);return(0,x.useEffect)((function(){c&&q(c)}),[q]),(0,ae.jsxs)(C.Y,{className:"",formRef:D,title:(0,ae.jsxs)("div",{children:[(0,ae.jsxs)("div",{children:[S,":",w.toFixed(V)," ",H,"/KB"]}),(0,ae.jsx)("div",{className:" text-red-600",children:E})]}),open:F,onFinish:Y,onOpenChange:function(e){W(e)},onFieldsChange:G,layout:"vertical",width:"400px",modalProps:{styles:{header:{marginBottom:"20px"}}},children:[(0,ae.jsx)(re.Z,{label:j,name:"number",placeholder:A,fieldProps:{autoFocus:!1,allowClear:!0,addonAfter:(0,ae.jsx)("span",{children:H}),size:"large"},rules:[{required:!0,whitespace:!0,message:"".concat(R),pattern:/^\d+(\.\d+)?$/}]}),(0,ae.jsx)(re.Z,{label:Z,name:"size",placeholder:I,fieldProps:{autoFocus:!1,allowClear:!0,addonAfter:(0,ae.jsx)("span",{children:"KB"}),size:"large"},rules:[{required:!0,whitespace:!0,message:"".concat(R),pattern:/^\d+(\.\d+)?$/}]}),(0,ae.jsx)(re.Z,{label:Z,name:"sizeByte",placeholder:O,fieldProps:{autoFocus:!1,allowClear:!0,addonAfter:(0,ae.jsx)("span",{children:"Byte"}),size:"large"},rules:[{required:!0,whitespace:!0,message:"".concat(R),pattern:/^\d+$/}]}),s]})})),Ce=(0,x.memo)(Se),Me=x.forwardRef((function(e,t){var n=M.ZP.useMessage(),r=a()(n,2),o=r[0],s=r[1],c=(0,p.useSelector)((function(e){return e.global.session})),u=(0,x.useState)(),f=a()(u,2),h=f[0],m=f[1],g=(0,p.useSelector)((function(e){return e.global.account})),v=(0,p.useIntl)(),b=v.formatMessage({id:"account.intlBuyResource"}),y=v.formatMessage({id:"account.intlResourceTip"}),w=v.formatMessage({id:"common.intlPleaseConnectWallet"}),_=v.formatMessage({id:"common.intlPleaseConnectNetwork"}),k=v.formatMessage({id:"common.intlTransferSuccess"}),S=v.formatMessage({id:"common.intlTransferFail"}),E=(0,x.useRef)(),A=(0,x.useState)(!1),I=a()(A,2),O=I[0],j=I[1],Z=(0,x.useCallback)((function(e){m(e),j(!0)}),[]);(0,x.useImperativeHandle)(t,(function(){return{handleOpen:Z}}));var R=(0,x.useCallback)(l()(i()().mark((function e(){var t,n,r,s,l;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c&&c.broadcast){e.next=5;break}return o.error("".concat(w)),e.abrupt("return");case 5:if(g){e.next=8;break}return o.error("".concat(_)),e.abrupt("return");case 8:return t={action:{account:"eosio",name:"topup",authorization:[c.permissionLevel],data:{payer:c.actor,receiver:h.accountName.toString(),count:1}}},e.next=11,(0,d.zI)(c.transact(t));case 11:return n=e.sent,r=a()(n,2),s=r[0],l=r[1],s?o.error(s):l&&l.response?o.success("".concat(k)):o.error("".concat(S)),e.abrupt("return",!0);case 17:case"end":return e.stop()}}),e)}))),[c,g,h]);return(0,ae.jsxs)(C.Y,{className:"",formRef:E,title:(0,ae.jsx)("div",{children:(0,ae.jsx)("div",{children:b})}),open:O,onFinish:R,onOpenChange:function(e){j(e)},layout:"vertical",width:"400px",modalProps:{styles:{header:{marginBottom:"20px"}}},children:[(0,ae.jsx)("div",{children:y}),s]})})),Ee=(0,x.memo)(Me);P().extend(D()),P().extend(B());var Ae=x.forwardRef((function(e,t){var n=(0,p.useDispatch)(),r=M.ZP.useMessage(),o=a()(r,2),s=o[0],c=o[1],f=(0,x.useState)("NA"),h=a()(f,2),m=h[0],g=h[1],v=(0,x.useState)(0),b=a()(v,2),w=b[0],_=b[1],j=(0,p.useSelector)((function(e){return e.global.session})),N=(0,p.useSelector)((function(e){return e.global.account})),T=(0,p.useSelector)((function(e){return e.global.contractKit})),B=(0,p.useSelector)((function(e){return e.global.freeCpu})),$=(0,x.useRef)(),D=(0,x.useRef)(),L=(0,x.useRef)(),F=(0,x.useRef)(!1),W=(0,p.useIntl)(),H=W.formatMessage({id:"common.intlCopySuccess"}),V=W.formatMessage({id:"common.intlCopyFail"}),U=W.formatMessage({id:"account.intlCopyAccount"}),Y=W.formatMessage({id:"account.intlDisconnect"}),G=W.formatMessage({id:"account.intlFreeSource"}),q=W.formatMessage({id:"account.intlMemory"}),X=W.formatMessage({id:"account.intlBalance"}),K=W.formatMessage({id:"account.intlVotes"}),J=W.formatMessage({id:"account.intlCreated"}),Q=W.formatMessage({id:"account.intlAuthority"}),ee=W.formatMessage({id:"account.intlBuyRam"}),te=W.formatMessage({id:"account.intlBuyResource"}),ne=W.formatMessage({id:"account.intlCpu"}),re=W.formatMessage({id:"account.intlNet"}),ie=W.formatMessage({id:"account.intlInviteCode"}),oe=W.formatMessage({id:"account.intlInviteCount"}),se=(0,x.useMemo)((function(){return j?j.permissionLevel.toString():""}),[j]),le=(0,x.useMemo)((function(){return N&&N.data.core_liquid_balance?N.data.core_liquid_balance.toString():"0.00000000"}),[N]),ce=(0,x.useMemo)((function(){return N?N.data.ram_quota.value:0}),[N]),ue=(0,x.useMemo)((function(){return N?N.data.ram_usage.value:0}),[N]),de=(0,x.useMemo)((function(){return N&&N.data.voter_info?N.data.voter_info.last_vote_weight.value/1e8:0}),[N]),fe=(0,x.useMemo)((function(){var e={time:"",duration:""};if(N&&N.data.created){var t=P().utc(N.data.created.toString()),n=P()(),r=P().duration(t.diff(n));e.duration=r.humanize(!0),e.time=P().utc(N.data.created.toString()).local().format().substring(0,19)}return e}),[N]),he=(0,x.useMemo)((function(){return N?N.data.cpu_limit.max.value:0}),[N]),pe=(0,x.useMemo)((function(){return N?N.data.cpu_limit.used.value:0}),[N]),me=(0,x.useMemo)((function(){return N?N.data.net_limit.max.value:0}),[N]),ge=(0,x.useMemo)((function(){return N?N.data.net_limit.used.value:0}),[N]),ve=function(e){return e>=1e6?(e/1e3/1e3).toFixed(2)+" s":e>=1e3?(e/1e3).toFixed(2)+" ms":e+" us"},be=function(e){return e>=1048576?(e/1024/1024).toFixed(2)+" MB":e>=1024?(e/1024).toFixed(2)+" KB":e+" B"},ye=(0,x.useRef)(),we=(0,x.useState)(!1),_e=a()(we,2),xe=_e[0],Se=_e[1],Me=(0,x.useCallback)((function(){Se(!0)}),[]);(0,x.useImperativeHandle)(t,(function(){return{handleOpen:Me}}));var Ae=(0,x.useCallback)(l()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)}))),[]),Ie=(0,x.useCallback)((function(e){var t=(0,R.js)("md5");return t.update(e),"data:image/png;base64,"+new(z())(t.digest("hex"),{margin:.16}).toString()}),[]),Oe=(0,x.useCallback)((function(){e.handleLogout(),Se(!1)}),[e]),je=(0,x.useCallback)((function(){var e=new(Z())(".copy");e.on("success",(function(){s.success("".concat(H))})),e.on("error",(function(){s.error("".concat(V))}))}),[s]),Ze=(0,x.useCallback)(function(){var e=l()(i()().mark((function e(t,n){var r,o,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.load("dfsrefdfsref");case 3:return r=e.sent,o=r.table("referrers"),e.next=7,o.all({scope:"dfsrefdfsref",from:n,to:n});case 7:(a=e.sent).length&&(g(a[0].code.toNumber()),_(a[0].invite_count.toNumber())),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),(0,d.Tv)(e.t0,s);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t,n){return e.apply(this,arguments)}}(),[]);return(0,x.useEffect)((function(){if(N&&!F.current){var e=j.chain.name;F.current=!0,je(),"DFS"===e&&Ze(T,N.accountName.toString())}}),[je,Ze,N,T,j]),(0,ae.jsxs)(C.Y,{formRef:ye,title:(0,ae.jsxs)("div",{className:"flex items-center",children:[(0,ae.jsx)(y.C,{className:"mr-2",size:"large",shape:"square",src:Ie(se)}),(0,ae.jsxs)("div",{className:"",children:[(0,ae.jsx)("span",{className:"actor",children:se.split("@")[0]}),"@",(0,ae.jsx)("span",{children:se.split("@")[1]}),(0,ae.jsx)(k.Z,{className:"ml-2 cursor-pointer text-blue-600 copy","data-clipboard-action":"copy","data-clipboard-target":".actor"})]})]}),open:xe,onFinish:Ae,onOpenChange:function(e){Se(e)},layout:"horizontal",width:"450px",modalProps:{style:{top:25}},submitter:!1,children:[(0,ae.jsxs)("div",{className:"flex flex-col justify-center items-center mt-1",children:[!(!j||"DFS"!==j.chain.name)&&(0,ae.jsx)(E.Z,{className:"w-full mt-3",children:(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:G}),(0,ae.jsx)(A.Z,{value:B,onChange:function(e){n(u.N.setFreeCpu(e))}})]})}),(0,ae.jsx)(E.Z,{className:"w-full mt-3",children:(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:X}),(0,ae.jsx)("div",{children:le})]})}),!(!j||"DFS"!==j.chain.name)&&(0,ae.jsx)(E.Z,{className:"w-full mt-3",children:(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:K}),(0,ae.jsx)("div",{children:de.toFixed(4)})]})}),(0,ae.jsx)(E.Z,{className:"w-full mt-3",children:(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:J}),(0,ae.jsxs)("div",{children:[(0,ae.jsx)("div",{children:fe.time}),(0,ae.jsx)("div",{className:"text-end",children:fe.duration})]})]})}),!(!j||"DFS"!==j.chain.name)&&(0,ae.jsxs)(E.Z,{className:"w-full mt-3",children:[(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:ie}),(0,ae.jsx)("div",{children:m})]}),(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:oe}),(0,ae.jsx)("div",{children:w})]})]}),(0,ae.jsx)(E.Z,{className:"w-full mt-3 hover:cursor-pointer",onClick:function(){$.current.handleOpen(N)},children:(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:Q}),(0,ae.jsx)("div",{children:(0,ae.jsx)(S.Z,{})})]})}),(0,ae.jsxs)(E.Z,{className:"w-full mt-3",actions:[(0,ae.jsx)("div",{onClick:function(){return D.current.handleOpen(N)},children:ee},"buyram")],children:[(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:q}),(0,ae.jsx)("div",{children:be(ue)+" / "+be(ce)})]}),(0,ae.jsx)(I.Z,{percent:Number((ue/ce*100).toFixed(1))})]}),(0,ae.jsxs)(E.Z,{className:"w-full mt-3",actions:[(0,ae.jsx)("div",{onClick:function(){return L.current.handleOpen(N)},children:te},"buyresource")],children:[(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:ne}),(0,ae.jsx)("div",{children:ve(pe)+" / "+ve(he)})]}),(0,ae.jsx)(I.Z,{percent:Number((pe/he*100).toFixed(1))}),(0,ae.jsxs)("div",{className:"flex justify-between mt-3",children:[(0,ae.jsx)("div",{children:re}),(0,ae.jsx)("div",{children:be(ge)+" / "+be(me)})]}),(0,ae.jsx)(I.Z,{percent:Number((ge/me*100).toFixed(1))})]}),(0,ae.jsxs)("div",{className:"flex justify-between w-full mt-7",children:[(0,ae.jsx)(O.ZP,{size:"large",style:{width:"47%"},className:"copy","data-clipboard-action":"copy","data-clipboard-target":".actor",children:U}),(0,ae.jsx)(O.ZP,{size:"large",style:{width:"47%"},onClick:function(){return Oe()},children:Y})]})]}),(0,ae.jsx)(ke,{ref:$}),(0,ae.jsx)(Ce,{ref:D}),(0,ae.jsx)(Ee,{ref:L}),c]})})),Ie=(0,x.memo)(Ae),Oe=new URL(n(90058),n.b).toString(),je=new URL(n(34054),n.b).toString(),Ze=new URL(n(14268),n.b).toString(),Re=0,Ne=function(){var e=(0,p.useDispatch)(),t=(0,c.b)(),n=(0,p.useSelector)((function(e){return e.global.session})),r=(0,p.useSelector)((function(e){return e.global.accountKit})),o=(0,p.useSelector)((function(e){return e.global.chain})),s=(0,p.useSelector)((function(e){return e.global.node})),k=(0,p.useSelector)((function(e){return e.global.nodes})),S=(0,p.useSelector)((function(e){return e.global.status})),C=n?n.permissionLevel.toString():"",M=(0,x.useRef)(),E=(0,p.useIntl)(),A=E.formatMessage({id:"account.intlNodeConnectFail"}),I=E.formatMessage({id:"account.intlNodeConnectStatus"}),O=E.formatMessage({id:"account.intlConnectWallet"}),j=(0,x.useCallback)(function(){var t=l()(i()().mark((function t(n){var o,s,l,c;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,d.zI)(r.load(n.actor));case 2:o=t.sent,s=a()(o,2),l=s[0],(c=s[1])?(e(u.N.setStatus("processing")),e(u.N.setAccount(c))):(e(u.N.setAccount(void 0)),e(u.N.setStatus("error")),console.log(l));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[r]),Z=(0,x.useCallback)((function(e){var t={chain:e,actor:"eosio",permission:"active",walletPlugin:new f.q("5JFL7hToNNUCgHDx3KtGgCpYsFbwZZxdkWuEn8jmNq5SqFJSYyx")};return new v.z_(t,{broadcast:!1})}),[]),R=(0,x.useCallback)(l()(i()().mark((function r(){var o,a;return i()().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.chain,r.next=3,t.logout();case 3:if(!(a=window).metahub){r.next=7;break}return r.next=7,a.metahub.logout();case 7:if(!a.dfswallet){r.next=10;break}return r.next=10,a.dfswallet.logout();case 10:e(u.N.setSession(Z(o))),e(u.N.setAccount(void 0)),clearInterval(Re),e(u.N.setStatus("default"));case 14:case"end":return r.stop()}}),r)}))),[n,Z,t]),N=(0,x.useCallback)(l()(i()().mark((function n(){var r,o,a,s,l;return i()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.login();case 3:return r=n.sent,o=r.session,a=new g.jf({client:o.client}),s=new m.N8(o.chain),e(u.N.setSession(o)),e(u.N.setChain(o.chain)),e(u.N.setContractKit(a)),e(u.N.setAccountKit(s)),n.next=13,(0,d.IU)(s.load(o.actor),"".concat(A));case 13:l=n.sent,e(u.N.setAccount(l)),e(u.N.setStatus("processing")),n.next=22;break;case 18:n.prev=18,n.t0=n.catch(0),e(u.N.setStatus("error")),console.log(n.t0.message);case 22:case"end":return n.stop()}}),n,null,[[0,18]])}))),[t]),P=(0,x.useCallback)(l()(i()().mark((function n(){var r,a,s,l,c,f;return i()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.restore();case 3:if(!(r=n.sent)){n.next=16;break}return e(u.N.setSession(r)),a=new g.jf({client:r.client}),s=new m.N8(r.chain),e(u.N.setContractKit(a)),e(u.N.setAccountKit(s)),n.next=12,(0,d.IU)(s.load(r.actor),"".concat(A));case 12:l=n.sent,e(u.N.setAccount(l)),n.next=22;break;case 16:r=Z(o),e(u.N.setSession(r)),c=new g.jf({client:r.client}),f=new m.N8(r.chain),e(u.N.setContractKit(c)),e(u.N.setAccountKit(f));case 22:n.next=28;break;case 24:n.prev=24,n.t0=n.catch(0),e(u.N.setStatus("error")),console.log(n.t0.message);case 28:case"end":return n.stop()}}),n,null,[[0,24]])}))),[Z,o,t]),T=(0,x.useCallback)((function(){var t={items:[{label:"DFS",key:"DFS",icon:(0,ae.jsx)(y.C,{src:Oe,size:"small"})},{label:"EOS",key:"EOS",icon:(0,ae.jsx)(y.C,{src:je,size:"small"})},{label:"Jungle4",key:"Jungle4",icon:(0,ae.jsx)(y.C,{src:Ze,size:"small"})}],onClick:function(t){var n=b.Dn[t.key];(0,d.Jm)(n,s,k),e(u.N.setChain(n)),window.location.reload()}};return t}),[Z,s,k,n]),B=(0,x.useCallback)((function(){var e=Oe;return"DFS"===o.name?e=Oe:"EOS"===o.name?e=je:"Jungle 4 (Testnet)"===o.name&&(e=Ze),(0,ae.jsx)(y.C,{className:"flex justify-center items-center mt-[1px]",src:e,size:"small",shape:"square"})}),[o]);return(0,x.useEffect)((function(){t&&P()}),[P,t]),(0,x.useEffect)((function(){return n&&n.broadcast&&(Re=setInterval((function(){j(n)}),1e4)),function(){clearInterval(Re)}}),[n,j]),(0,ae.jsxs)(ae.Fragment,{children:[n&&n.broadcast?(0,ae.jsx)(w.Z.Button,{icon:B(),menu:T(),open:!1,size:"large",onClick:function(){return M.current.handleOpen()},children:(0,ae.jsx)("div",{className:"flex",children:(0,ae.jsxs)("div",{className:"flex items-center",children:[(0,d.Mn)()?(0,ae.jsx)("span",{className:"mr-[6px]",children:C.split("@")[0]}):(0,ae.jsx)("span",{className:"mr-[6px]",children:C}),(0,ae.jsx)(h.Z,{}),(0,ae.jsx)(_.Z,{dot:!0,status:S,title:I,offset:[10,-25]})]})})}):(0,ae.jsx)(w.Z.Button,{icon:B(),menu:T(),size:"large",onClick:N,children:O}),(0,ae.jsx)(Ie,{ref:M,handleLogout:R})]})},Pe=(0,x.memo)(Ne),Te=n(3990),Be=n(57953),$e=function(){var e=(0,p.useDispatch)(),t=M.ZP.useMessage(),n=a()(t,2),r=n[0],o=n[1],s=(0,x.useState)(!1),c=a()(s,2),u=c[0],d=c[1],f=(0,p.useSelector)((function(e){return e.account.accountInfo})),m=(0,p.useSelector)((function(e){return e.account.authority})),g=(0,p.useSelector)((function(e){return e.account.loading})),v=(0,p.useIntl)().formatMessage({id:"common.intlCopySuccess"}),b=(0,x.useCallback)((function(){var e=document.getElementsByClassName("ant-tree-switcher_close");if(e.length){for(var t=0;t ")+n})}):t.title=(0,ae.jsx)("div",{children:(0,ae.jsx)("span",{className:"font-semibold",children:n})}),t.key=n,t.children[0].key=n+"-linked_actions",t.children[0].title=(0,ae.jsx)("div",{children:(0,ae.jsx)("span",{children:"linked_actions[".concat(e.linked_actions.length,"]")})}),e.linked_actions.forEach((function(e){var r=n+"-linked_actions",i=e.account.toString()+"::"+e.action.toString();t.children[0].children.push({title:(0,ae.jsxs)("div",{children:[(0,ae.jsx)("span",{className:"font-semibold",children:i}),(0,ae.jsx)(k.Z,{className:"text-base ml-3 text-blue-600",onClick:function(){return y(i)}})]}),key:r+"-"+i,children:[]})}));var i=n+"-required_auth",a=i+"-waits",s=i+"-accounts",l=i+"-keys";t.children[1].key=i,t.children[1].threshold=r,t.children[1].children[0].key=a,t.children[1].children[1].key=s,t.children[1].children[2].key=l,t.children[1].title=(0,ae.jsx)("div",{children:(0,ae.jsx)("span",{className:"",children:"required_auth"+"(".concat(r,")")})}),t.children[1].children[0].title=(0,ae.jsx)("div",{children:(0,ae.jsx)("span",{children:"waits[".concat(e.required_auth.waits.length,"]")})}),t.children[1].children[1].title=(0,ae.jsx)("div",{children:(0,ae.jsx)("span",{children:"accounts[".concat(e.required_auth.accounts.length,"]")})}),t.children[1].children[2].title=(0,ae.jsxs)("div",{className:"flex",children:[(0,ae.jsx)("span",{children:"keys[".concat(e.required_auth.keys.length,"]")}),(0,ae.jsx)(K,{className:"text-base ml-3 text-blue-600",onClick:function(){return w()}})]}),e.required_auth.waits.forEach((function(e){var n=e.wait_sec.toNumber(),r=e.weight.toNumber(),i=a+"-"+n+"-"+r,o=(0,ae.jsxs)("div",{children:[(0,ae.jsx)("span",{className:"font-semibold",children:"+".concat(r," ").concat(n," sec")}),(0,ae.jsx)(k.Z,{className:"text-base ml-3 text-blue-600",onClick:function(){return y("".concat(n))}})]});t.children[1].children[0].children.push({key:i,title:o,children:[]})})),e.required_auth.accounts.forEach((function(e){var n=e.permission.actor.toString(),r=e.permission.permission.toString(),i=e.weight.toNumber(),o=s+"-"+"".concat(n,"@").concat(r)+"-"+i,a=(0,ae.jsxs)("div",{children:[(0,ae.jsx)("span",{className:"font-semibold",children:"+".concat(i," ").concat(n,"@").concat(r)}),(0,ae.jsx)(k.Z,{className:"text-base ml-3 text-blue-600",onClick:function(){return y("".concat(n,"@").concat(r))}})]});t.children[1].children[1].children.push({key:o,title:a,children:[]})})),e.required_auth.keys.sort((function(e,t){var n=e.key.toString(),r=t.key.toString();return n.localeCompare(r)})),e.required_auth.keys.forEach((function(e){var n=e.key.toString(),r="";r=n.includes("WA")?n:e.key.toLegacyString();var i=e.weight.toNumber(),o=l+"-"+n+"-"+i,a=(0,ae.jsxs)("div",{children:[u?(0,ae.jsx)("span",{className:"font-semibold",children:"+".concat(i," ").concat(r)}):(0,ae.jsx)("span",{className:"font-semibold",children:"+".concat(i," ").concat(n)}),(0,ae.jsx)(k.Z,{className:"text-base ml-3 text-blue-600",onClick:function(){return y(n)}})]});t.children[1].children[2].children.push({key:o,title:a,children:[]})})),o.push(t)})),o.forEach((function(e){e.parent&&a(o,e)})),o.forEach((function(e){e.parent||r.push(e)})),e(Te.N.setAuthority(r)),setTimeout(b,500);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[y,b,u,w]);return(0,x.useEffect)((function(){_(f)}),[f,_]),(0,ae.jsx)(Be.Z,{size:"large",spinning:g,children:(0,ae.jsxs)("div",{className:"",children:[(0,ae.jsx)("div",{className:"",children:(0,ae.jsx)(J.Z,{style:{overflowWrap:"anywhere"},showLine:!0,autoExpandParent:!0,defaultExpandAll:!0,selectable:!1,switcherIcon:(0,ae.jsx)(h.Z,{}),treeData:m})}),o]})})},De=(0,x.memo)($e),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M712.8 548.8c53.6-53.6 83.2-125 83.2-200.8 0-75.9-29.5-147.2-83.2-200.8C659.2 93.6 587.8 64 512 64s-147.2 29.5-200.8 83.2C257.6 200.9 228 272.1 228 348c0 63.8 20.9 124.4 59.4 173.9 7.3 9.4 15.2 18.3 23.7 26.9 8.5 8.5 17.5 16.4 26.8 23.7 39.6 30.8 86.3 50.4 136.1 57V736H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h114v140c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V812h114c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H550V629.5c61.5-8.2 118.2-36.1 162.8-80.7zM512 556c-55.6 0-107.7-21.6-147.1-60.9C325.6 455.8 304 403.6 304 348s21.6-107.7 60.9-147.1C404.2 161.5 456.4 140 512 140s107.7 21.6 147.1 60.9C698.4 240.2 720 292.4 720 348s-21.6 107.7-60.9 147.1C619.7 534.4 567.6 556 512 556z"}}]},name:"woman",theme:"outlined"},ze=function(e,t){return x.createElement(H.Z,(0,F.Z)({},e,{ref:t,icon:Le}))};var Fe=x.forwardRef(ze),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M874 120H622c-3.3 0-6 2.7-6 6v56c0 3.3 2.7 6 6 6h160.4L583.1 387.3c-50-38.5-111-59.3-175.1-59.3-76.9 0-149.3 30-203.6 84.4S120 539.1 120 616s30 149.3 84.4 203.6C258.7 874 331.1 904 408 904s149.3-30 203.6-84.4C666 765.3 696 692.9 696 616c0-64.1-20.8-124.9-59.2-174.9L836 241.9V402c0 3.3 2.7 6 6 6h56c3.3 0 6-2.7 6-6V150c0-16.5-13.5-30-30-30zM408 828c-116.9 0-212-95.1-212-212s95.1-212 212-212 212 95.1 212 212-95.1 212-212 212z"}}]},name:"man",theme:"outlined"},He=function(e,t){return x.createElement(H.Z,(0,F.Z)({},e,{ref:t,icon:We}))};var Ve=x.forwardRef(He),Ue=n(83062);P().extend(D()),P().extend(B());var Ye=function(e){var t=(0,p.useNavigate)(),n=(0,p.useDispatch)(),r=M.ZP.useMessage(),o=a()(r,2),s=o[0],c=o[1],u=(0,p.useSelector)((function(e){return e.account.accountInfo})),f=(0,p.useSelector)((function(e){return e.global.contractKit})),h=(0,p.useSelector)((function(e){return e.account.creator})),m=(0,p.useSelector)((function(e){return e.account.profile})),g=(0,p.useSelector)((function(e){return e.account.markets})),v=(0,p.useSelector)((function(e){return e.account.voter})),b=(0,p.useSelector)((function(e){return e.account.loading})),w=(0,p.useSelector)((function(e){return e.account.referrer})),_=(0,p.useSelector)((function(e){return e.account.relation})),S=(0,p.useSelector)((function(e){return e.account.isContract})),C=(0,p.useSelector)((function(e){return e.account.liqsValue})),A=(0,p.useSelector)((function(e){return e.account.tokensValue})),O=(0,p.useSelector)((function(e){return e.account.nftsValue})),j=(0,x.useState)(0),Z=a()(j,2),R=Z[0],N=Z[1],T=(0,x.useRef)(),B=(0,x.useRef)(),$=(0,p.useIntl)(),D=$.formatMessage({id:"common.intlCopySuccess"}),L=$.formatMessage({id:"account.intlMemory"}),z=$.formatMessage({id:"account.intlCpu"}),F=$.formatMessage({id:"account.intlNet"}),W=$.formatMessage({id:"account.intlBalance"}),H=$.formatMessage({id:"account.intlValue"}),V=$.formatMessage({id:"account.intlVotes"}),U=$.formatMessage({id:"producer.intlVote"}),Y=$.formatMessage({id:"account.intlDesc"}),G=$.formatMessage({id:"account.intlBuyRam"}),q=$.formatMessage({id:"account.intlBuyResource"}),X=$.formatMessage({id:"account.intlInviteCode"}),K=$.formatMessage({id:"account.intlInviteCount"}),J=$.formatMessage({id:"dash.intlRamPrice"}),Q=$.formatMessage({id:"account.intlInviter"}),ee=$.formatMessage({id:"contract.intlContract"}),te=$.formatMessage({id:"common.intlYes"}),ne=$.formatMessage({id:"common.intlNo"}),re=(0,x.useMemo)((function(){if(m.avatar)return"https://imagedelivery.net/hc5yVyoIvwlbf8YqJjqHMw/".concat(m.avatar,"/public");var e=m.owner.toString(),t=parseInt(e.slice(-4),36)%150+1e4;return"https://resource2.dfs.land/avatars/".concat(t,".png")}),[m]),se=(0,x.useMemo)((function(){if(m.nick){var e=m.nick,t=m.owner.toString();return e!==t?m.nick+"@"+m.owner.toString():t}return m.owner.toString()}),[m]),le=(0,x.useMemo)((function(){var e={time:"",duration:""};if(u&&u.data.created){var t=P().utc(u.data.created.toString()),n=P()(),r=P().duration(t.diff(n));e.duration=r.humanize(!0),e.time=P().utc(u.data.created.toString()).local().format()}return e}),[u]),ce=(0,x.useMemo)((function(){return u&&u.data.core_liquid_balance?u.data.core_liquid_balance.toString():"0.00000000 DFS"}),[u]),ue=(0,x.useMemo)((function(){var e,t=g?g[0].reserve0.value/g[0].reserve1.value:0,n=u&&u.data.core_liquid_balance?null===(e=u.data.core_liquid_balance)||void 0===e?void 0:e.toString().split(" ")[0]:"0.00000000";return(Number(t)*Number(n)).toFixed(2)}),[g,u]),de=(0,x.useMemo)((function(){return g?Number(g[0].reserve0.value/g[0].reserve1.value).toFixed(2):"0.00"}),[g]),fe=(0,x.useMemo)((function(){return u?u.data.ram_quota.value:0}),[u]),he=(0,x.useMemo)((function(){return u?u.data.ram_usage.value:0}),[u]),pe=(0,x.useMemo)((function(){return u?u.data.cpu_limit.max.value:0}),[u]),me=(0,x.useMemo)((function(){return u?u.data.cpu_limit.used.value:0}),[u]),ge=(0,x.useMemo)((function(){return u?u.data.net_limit.max.value:0}),[u]),ve=(0,x.useMemo)((function(){return u?u.data.net_limit.used.value:0}),[u]),be=(0,x.useMemo)((function(){return u&&u.data.voter_info?u.data.voter_info.last_vote_weight.value/1e8:0}),[u]),ye=(0,x.useMemo)((function(){return v&&v.last_vote.toString()?v.last_vote.toString():"NA"}),[v]),we=(0,x.useMemo)((function(){var e=m.sex.toNumber();return 0===e?(0,ae.jsx)(Fe,{className:"ml-3 text-pink-600"}):1===e?(0,ae.jsx)(Ve,{className:"ml-3 text-blue-600"}):(0,ae.jsx)("span",{})}),[m]),_e=(0,x.useMemo)((function(){return w?w.code.toNumber():"NA"}),[w]),xe=(0,x.useMemo)((function(){return w?w.invite_count.toNumber():"NA"}),[w]),ke=(0,x.useMemo)((function(){return _?_.inviter.toString():"NA"}),[_]),Se=(0,x.useMemo)((function(){return S?te:ne}),[S]),Me=(0,x.useCallback)(l()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.navigator.clipboard.writeText(m.owner.toString());case 2:s.success("".concat(D));case 3:case"end":return e.stop()}}),e)}))),[m]),Ae=(0,x.useCallback)((function(){return h?(0,ae.jsxs)("span",{children:["by"," ",(0,ae.jsx)("a",{onClick:function(){"__self__"!==h&&(t("/query/account?search=".concat(h,"&tab=info")),e.handleSearch(h,""))},children:h})," "]}):(0,ae.jsx)("span",{})}),[h,u]),Ie=function(e){return e>=1048576?(e/1024/1024).toFixed(2)+" MB":e>=1024?(e/1024).toFixed(2)+" KB":e+" B"},Oe=function(e){return e>=1e6?(e/1e3/1e3).toFixed(2)+" s":e>=1e3?(e/1e3).toFixed(2)+" ms":e+" us"},je=(0,x.useCallback)(function(){var e=l()(i()().mark((function e(t){var n,r,o,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.load("eosio");case 3:return n=e.sent,r=n.table("rammarket"),e.next=7,r.get();case 7:o=e.sent,a=o.quote.balance.value/o.base.balance.value*1024,N(a),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),(0,d.Tv)(e.t0,s);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(t){return e.apply(this,arguments)}}(),[s]);return(0,x.useEffect)((function(){f&&je(f)}),[je,f]),(0,ae.jsx)(Be.Z,{size:"large",spinning:b,children:(0,ae.jsxs)("div",{className:"",children:[(0,ae.jsxs)("div",{className:"",children:[(0,ae.jsxs)(ie.Z,{gutter:20,children:[(0,ae.jsxs)(oe.Z,{lg:{span:"12"},md:{span:"24"},sm:{span:"24"},xs:{span:"24"},children:[(0,ae.jsxs)("div",{className:"flex justify-start items-center",children:[(0,ae.jsx)(y.C,{className:"mr-4",size:64,src:re}),(0,ae.jsxs)("div",{children:[(0,ae.jsx)("div",{className:" font-semibold text-xl",children:se}),(0,ae.jsxs)("div",{children:[(0,ae.jsx)(Ue.Z,{placement:"bottomLeft",title:le.time,children:(0,ae.jsxs)("span",{className:" italic",children:["Created ",Ae(),le.duration]})}),we,(0,ae.jsx)(k.Z,{className:"ml-2 text-blue-600",onClick:function(){return Me()}})]})]})]}),!!m.desc&&(0,ae.jsxs)("div",{children:[(0,ae.jsxs)("span",{className:" text-base",children:[Y,":"]}),(0,ae.jsx)("span",{className:" text-gray-500",children:m.desc})]})]}),(0,ae.jsx)(oe.Z,{lg:{span:"12"},md:{span:"10"},sm:{span:"24"},xs:{span:"24"},children:(0,ae.jsxs)("div",{children:[(0,ae.jsxs)("div",{className:" text-base mt-2",children:[W,":",ce]}),(0,ae.jsxs)("span",{className:" text-base mt-1",children:[H,":$",ue]}),(0,ae.jsxs)("span",{className:" text-xs",children:[" (@$",de,"/DFS)"]})]})}),(0,ae.jsx)(oe.Z,{lg:{span:"12"},md:{span:"6"},sm:{span:"12"},xs:{span:"12"},children:(0,ae.jsxs)("div",{children:[(0,ae.jsxs)("div",{className:" text-base mt-2",children:[V,":",be.toFixed(0)]}),(0,ae.jsxs)("div",{className:" text-base mt-1",children:[U,":",ye]}),(0,ae.jsxs)("div",{className:" text-base mt-1",children:[ee,":",Se]})]})}),(0,ae.jsx)(oe.Z,{lg:{span:"12"},md:{span:"6"},sm:{span:"12"},xs:{span:"12"},children:(0,ae.jsxs)("div",{children:[(0,ae.jsxs)("div",{className:" text-base mt-2",children:[X,":",_e]}),(0,ae.jsxs)("div",{className:" text-base mt-1",children:[K,":",xe]}),(0,ae.jsxs)("div",{className:" text-base mt-1",children:[Q,":","NA"===ke?ke:(0,ae.jsx)("a",{onClick:function(){e.handleSearch(ke,""),n(Te.N.setActiveKey("invite"))},children:ke})]})]})})]}),(0,ae.jsxs)(ie.Z,{gutter:20,children:[(0,ae.jsx)(oe.Z,{lg:{span:"12"},md:{span:"12"},sm:{span:"12"},xs:{span:"24"},children:(0,ae.jsxs)(E.Z,{className:"w-full mt-3",children:[(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:"通证价值"}),(0,ae.jsxs)("div",{children:[(0,d.CE)(A)," USDT"]})]}),(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:"做市价值"}),(0,ae.jsxs)("div",{children:[(0,d.CE)(C.reserveValue)," USDT"]})]}),(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:"图片价值"}),(0,ae.jsxs)("div",{children:[(0,d.CE)(O)," USDT"]})]}),(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:"全部价值"}),(0,ae.jsxs)("div",{children:[(0,d.CE)(A+C.reserveValue+O)," ","USDT"]})]})]})}),(0,ae.jsx)(oe.Z,{lg:{span:"12"},md:{span:"12"},sm:{span:"12"},xs:{span:"24"},children:(0,ae.jsxs)(E.Z,{className:"w-full mt-3",children:[(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:"通证价值"}),(0,ae.jsxs)("div",{children:[(0,d.CE)(A/Number(de))," DFS"]})]}),(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:"做市价值"}),(0,ae.jsxs)("div",{children:[(0,d.CE)(C.reserveValue/Number(de))," ","DFS"]})]}),(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:"图片价值"}),(0,ae.jsxs)("div",{children:[(0,d.CE)(O/Number(de))," DFS"]})]}),(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:"全部价值"}),(0,ae.jsxs)("div",{children:[(0,d.CE)((A+C.reserveValue+O)/Number(de))," ","DFS"]})]})]})})]}),(0,ae.jsxs)(ie.Z,{gutter:20,children:[(0,ae.jsx)(oe.Z,{lg:{span:"12"},md:{span:"12"},sm:{span:"12"},xs:{span:"24"},children:(0,ae.jsxs)(E.Z,{className:"w-full mt-3",actions:[(0,ae.jsx)("div",{onClick:function(){return T.current.handleOpen(u)},children:G},"buyram")],children:[(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:L}),(0,ae.jsx)("div",{children:Ie(he)+" / "+Ie(fe)})]}),(0,ae.jsx)(I.Z,{percent:Number((he/fe*100).toFixed(1))}),(0,ae.jsx)("div",{className:" mt-3",children:J}),(0,ae.jsxs)("div",{children:[R.toFixed(8)," DFS/KB"]})]})}),(0,ae.jsx)(oe.Z,{lg:{span:"12"},md:{span:"12"},sm:{span:"12"},xs:{span:"24"},children:(0,ae.jsxs)(E.Z,{className:"w-full mt-3",actions:[(0,ae.jsx)("div",{onClick:function(){return B.current.handleOpen(u)},children:q},"buyresource")],children:[(0,ae.jsxs)("div",{className:"flex justify-between",children:[(0,ae.jsx)("div",{children:z}),(0,ae.jsx)("div",{children:Oe(me)+" / "+Oe(pe)})]}),(0,ae.jsx)(I.Z,{percent:Number((me/pe*100).toFixed(1))}),(0,ae.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,ae.jsx)("div",{children:F}),(0,ae.jsx)("div",{children:Ie(ve)+" / "+Ie(ge)})]}),(0,ae.jsx)(I.Z,{percent:Number((ve/ge*100).toFixed(1))})]})})]})]}),(0,ae.jsx)(Ce,{ref:T}),(0,ae.jsx)(Ee,{ref:B}),c]})})},Ge=(0,x.memo)(Ye),qe=n(92340);P().extend(D());var Xe=function(e){var t=(0,p.useDispatch)(),n=M.ZP.useMessage(),r=a()(n,2),o=r[0],s=r[1],c=(0,p.useSelector)((function(e){return e.account.accountInfo})),u=(0,p.useSelector)((function(e){return e.global.contractKit})),f=(0,p.useSelector)((function(e){return e.account.tokensLoading})),h=(0,p.useSelector)((function(e){return e.account.referrer})),m=(0,p.useSelector)((function(e){return e.account.relation})),g=(0,x.useState)([]),v=a()(g,2),b=v[0],y=v[1],w=(0,x.useState)(!1),_=a()(w,2),k=_[0],S=_[1],C=(0,p.useIntl)(),E=C.formatMessage({id:"account.intlAccount"}),A=C.formatMessage({id:"account.intlInviteTime"}),I=C.formatMessage({id:"account.intlInviteCode"}),O=C.formatMessage({id:"account.intlInviteCount"}),j=C.formatMessage({id:"account.intlInviter"}),Z=(0,x.useMemo)((function(){return h?h.code.toNumber():"NA"}),[h]),R=(0,x.useMemo)((function(){return h?h.invite_count.toNumber():"NA"}),[h]),N=(0,x.useMemo)((function(){return m?m.inviter.toString():"NA"}),[m]),T=(0,x.useMemo)((function(){return[{title:"#",dataIndex:"key",key:"key",fixed:!0,width:"10px",align:"center",search:!1,render:function(e,t,n){return(0,ae.jsx)("span",{children:n+1})}},{title:"".concat(E),dataIndex:"owner",key:"owner",sorter:function(e,t){return e.owner.localeCompare(t.owner)},render:function(n,r){return(0,ae.jsx)("a",{onClick:function(){e.handleSearch(r.owner,""),t(Te.N.setActiveKey("invite"))},children:r.owner})}},{title:"".concat(A),dataIndex:"create_time",key:"create_time",sorter:function(e,t){return e.create_time.localeCompare(t.create_time)},render:function(e,t){return(0,ae.jsx)("span",{children:t.create_time})}}]}),[]),B=(0,x.useCallback)(function(){var e=l()(i()().mark((function e(t,n){var r,a,s,l,c;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,S(!0),e.next=4,t.load("dfsrefdfsref");case 4:return r=e.sent,a=r.table("relations"),e.next=8,a.all({scope:"dfsrefdfsref"});case 8:s=e.sent,l=[],s.filter((function(e){return e.inviter.toString()===n.accountName.toString()})).forEach((function(e,t){l.push({key:t,owner:e.owner.toString(),inviter:e.inviter.toString(),create_time:P()(e.create_time.toMilliseconds()).format()})})),c=l.sort((function(e,t){return t.create_time.localeCompare(e.create_time)})),y(c),S(!1),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(0),S(!1),(0,d.Tv)(e.t0,o);case 21:case"end":return e.stop()}}),e,null,[[0,17]])})));return function(t,n){return e.apply(this,arguments)}}(),[]);return(0,x.useEffect)((function(){u&&B(u,c)}),[u,c,B]),(0,ae.jsxs)("div",{className:"tabinvite",children:[(0,ae.jsxs)("div",{className:"",children:[(0,ae.jsxs)("div",{className:"flex justify-between mb-3",children:[(0,ae.jsxs)("div",{className:" text-base",children:[I,":",Z]}),(0,ae.jsxs)("div",{className:" text-base",children:[O,":",R]}),(0,ae.jsxs)("div",{className:" text-base",children:[j,":","NA"===N?N:(0,ae.jsx)("a",{onClick:function(){e.handleSearch(N,""),t(Te.N.setActiveKey("invite"))},children:N})]})]}),(0,ae.jsx)(qe.Z,{scroll:{x:!0},size:"small",columns:T,dataSource:b,search:!1,options:!1,pagination:!1,tableAlertRender:!1,tableAlertOptionRender:!1,loading:{spinning:f||k,size:"large"}})]}),s]})},Ke=(0,x.memo)(Xe),Je=n(94668),Qe=n(35132),et=function(){var e=(0,p.useSelector)((function(e){return e.account.tokensLoading})),t=(0,p.useSelector)((function(e){return e.account.liqTokens})),n=(0,p.useSelector)((function(e){return e.account.liqsValue})),r=(0,p.useSelector)((function(e){return e.account.dfsPrice})),i=(0,x.useMemo)((function(){return n.diffValue>0?(0,ae.jsxs)(Qe.Z.Text,{className:"text-lg",type:"success",children:[" ","+",(0,d.CE)(n.diffValue,"$")]}):n.diffValue<0?(0,ae.jsxs)(Qe.Z.Text,{className:"text-lg",type:"danger",children:[" ","-",(0,d.CE)(-n.diffValue,"$")]}):(0,ae.jsx)(ae.Fragment,{})}),[n]),o=(0,p.useIntl)(),a=o.formatMessage({id:"account.intlTotalLiqsValue"}),s=o.formatMessage({id:"account.intlDay"}),l=(0,x.useCallback)((function(){return(0,d.Mn)()?(0,ae.jsxs)("div",{children:[(0,d.CE)(n.reserveValue,"$"),i]}):(0,ae.jsxs)("span",{children:[(0,d.CE)(n.reserveValue,"$"),i]})}),[n,i]);return(0,ae.jsx)(Be.Z,{size:"large",spinning:e,children:(0,ae.jsx)("div",{className:"",children:(0,ae.jsxs)("div",{className:"",children:[(0,ae.jsxs)("div",{className:"font-semibold text-lg mb-5",children:[(0,ae.jsxs)("div",{children:[(0,ae.jsxs)("span",{children:[a,":"]}),l()]}),(0,ae.jsxs)("div",{children:[a,":",(0,d.CE)(n.reserveValue/r)," DFS"]})]}),(0,ae.jsx)("div",{className:"flex flex-wrap",children:t.map((function(e,t){return(0,ae.jsx)("div",{children:(0,ae.jsxs)("div",{className:"w-[230px] mb-5",children:[(0,ae.jsxs)("div",{className:"flex items-center",children:[(0,ae.jsx)("div",{style:{display:"inline-block"},children:(0,ae.jsx)(y.C,{className:"",size:"large",src:e.logo0})}),(0,ae.jsx)("div",{style:{display:"inline-block"},children:(0,ae.jsx)(y.C,{className:"mr-2 ml-[-15px]",size:"large",src:e.logo1})}),(0,ae.jsxs)("div",{style:{display:"inline-block"},children:[(0,ae.jsx)("div",{className:" font-semibold text-lg",children:e.contract0}),(0,ae.jsx)("div",{className:" font-semibold text-lg",children:e.contract1})]})]}),(0,ae.jsx)("div",{children:e.bal0+" "+e.sym0}),(0,ae.jsx)("div",{children:e.bal1+" "+e.sym1}),(0,ae.jsx)("div",{className:"font-semibold",children:(0,d.CE)(e.bal0Value+e.bal1Value,"$")}),(0,ae.jsx)(Je.Z,{className:"text-lg"})," "+e.days+" "+s,(0,ae.jsx)("div",{children:e.reserve0.toFixed(e.precision0)+" "+e.sym0}),(0,ae.jsx)("div",{children:e.reserve1.toFixed(e.precision1)+" "+e.sym1}),(0,ae.jsxs)("div",{className:"font-semibold",children:[(0,d.CE)(2*e.reserve0Value,"$"),e.diffValue>0?(0,ae.jsxs)(Qe.Z.Text,{type:"success",children:[" ","+",(0,d.CE)(e.diffValue,"$")]}):(0,ae.jsxs)(Qe.Z.Text,{type:"danger",children:[" ","-",(0,d.CE)(-e.diffValue,"$")]})]})]})},t)}))})]})})})},tt=(0,x.memo)(et),nt=function(){var e=(0,p.useSelector)((function(e){return e.account.nftsLoading})),t=(0,p.useSelector)((function(e){return e.account.nfts})),n=(0,p.useSelector)((function(e){return e.account.nftsValue})),r=(0,p.useSelector)((function(e){return e.account.dfsPrice})),i=(0,p.useIntl)().formatMessage({id:"account.intlTotalNftsValue"});return(0,ae.jsx)(Be.Z,{size:"large",spinning:e,children:(0,ae.jsx)("div",{className:"",children:(0,ae.jsxs)("div",{className:"",children:[(0,ae.jsxs)("div",{className:"font-semibold text-lg mb-5",children:[(0,ae.jsxs)("div",{children:[i,": ",(0,d.CE)(n)," USDT"]}),(0,ae.jsxs)("div",{children:[i,": ",(0,d.CE)(n/r)," DFS"]})]}),(0,ae.jsx)("div",{className:"flex flex-wrap",children:t.map((function(e,t){return(0,ae.jsx)("div",{children:(0,ae.jsxs)("div",{className:"w-[150px] mb-5",children:[(0,ae.jsxs)("div",{children:[(0,ae.jsx)(y.C,{className:"mr-2",size:80,src:e.logo,shape:"square"}),(0,ae.jsx)("span",{className:" font-semibold text-lg"})]}),(0,ae.jsx)("div",{className:"font-semibold",children:"#"+e.pid+" "+e.name}),(0,ae.jsx)("div",{children:e.count+" "+e.sym}),(0,ae.jsx)("div",{children:(0,d.CE)(e.value,"$")})]})},t)}))})]})})})},rt=(0,x.memo)(nt),it=n(44106),ot=n(66309);P().extend(D());var at=function(e){var t=M.ZP.useMessage(),n=a()(t,2),r=n[0],o=n[1],s=(0,p.useSelector)((function(e){return e.global.session})),c=(0,p.useSelector)((function(e){return e.global.account})),u=(0,x.useState)([]),f=a()(u,2),h=f[0],m=f[1],g=(0,p.useIntl)(),v=g.formatMessage({id:"common.intlPleaseConnectWallet"}),b=g.formatMessage({id:"common.intlPleaseConnectNetwork"}),y=g.formatMessage({id:"account.intlApproveProposal"}),w=g.formatMessage({id:"account.intlExecProposal"}),_=g.formatMessage({id:"account.intlCancelProposal"}),k=g.formatMessage({id:"account.intlUnapproveProposal"}),S=g.formatMessage({id:"account.intlNotRequested"}),C=g.formatMessage({id:"account.intlUnsigned"}),E=g.formatMessage({id:"account.intlAlreadySigned"}),A=g.formatMessage({id:"common.intlTxSuccess"}),I=g.formatMessage({id:"common.intlTxFail"}),j=g.formatMessage({id:"account.intlNotProposer"}),Z=g.formatMessage({id:"account.intlProposalName"}),R=g.formatMessage({id:"account.intlProposalOperate"}),N=g.formatMessage({id:"account.intlRequestedApprovals"}),T=g.formatMessage({id:"account.intlActions"}),B=g.formatMessage({id:"contract.intlThreshold"}),$=g.formatMessage({id:"contract.intlProposer"}),D=(0,x.useCallback)(function(){var t=l()(i()().mark((function t(n){var o,l,u,f,h,p,m;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s&&s.broadcast){t.next=5;break}return r.error("".concat(v)),t.abrupt("return");case 5:if(c){t.next=8;break}return r.error("".concat(b)),t.abrupt("return");case 8:if(o=s.actor.toString(),l=s.permission.toString(),!n.provided_approvals.find((function(e){return e.actor===o&&e.permission===l}))){t.next=14;break}return r.info(E),t.abrupt("return",!1);case 14:if(n.requested_approvals.find((function(e){return e.actor===o&&e.permission===l}))){t.next=18;break}return r.error(S),t.abrupt("return",!1);case 18:return u={action:{account:"eosio.msig",name:"approve",authorization:[s.permissionLevel],data:{proposer:e.proposer,proposal_name:n.proposal_name,level:{actor:o,permission:l}}}},t.next=21,(0,d.zI)(s.transact(u));case 21:f=t.sent,h=a()(f,2),p=h[0],m=h[1],p?r.error(p):m&&m.response?(e.handleSearch(e.proposer,""),r.success("".concat(A))):r.error("".concat(I));case 26:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[s,c,e.proposer,e]),L=(0,x.useCallback)(function(){var t=l()(i()().mark((function t(n){var o,l,u,f,h,p,m;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s&&s.broadcast){t.next=5;break}return r.error("".concat(v)),t.abrupt("return");case 5:if(c){t.next=8;break}return r.error("".concat(b)),t.abrupt("return");case 8:if(o=s.actor.toString(),l=s.permission.toString(),n.provided_approvals.find((function(e){return e.actor===o&&e.permission===l}))){t.next=20;break}if(n.requested_approvals.find((function(e){return e.actor===o&&e.permission===l}))){t.next=18;break}return r.error(S),t.abrupt("return",!1);case 18:return r.info(C),t.abrupt("return",!1);case 20:return u={action:{account:"eosio.msig",name:"unapprove",authorization:[s.permissionLevel],data:{proposer:e.proposer,proposal_name:n.proposal_name,level:{actor:o,permission:l}}}},t.next=23,(0,d.zI)(s.transact(u));case 23:f=t.sent,h=a()(f,2),p=h[0],m=h[1],p?r.error(p):m&&m.response?(e.handleSearch(e.proposer,""),r.success("".concat(A))):r.error("".concat(I));case 28:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[s,c,e.proposer,e]),z=(0,x.useCallback)(function(){var t=l()(i()().mark((function t(n){var o,l,u,f,h,p;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s&&s.broadcast){t.next=5;break}return r.error("".concat(v)),t.abrupt("return");case 5:if(c){t.next=8;break}return r.error("".concat(b)),t.abrupt("return");case 8:return o=s.actor.toString(),l={action:{account:"eosio.msig",name:"exec",authorization:[s.permissionLevel],data:{proposer:e.proposer,proposal_name:n.proposal_name,executer:o}}},t.next=12,(0,d.zI)(s.transact(l));case 12:u=t.sent,f=a()(u,2),h=f[0],p=f[1],h?r.error(h):p&&p.response?(e.handleSearch(e.proposer,""),r.success("".concat(A))):r.error("".concat(I));case 17:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[s,c,e.proposer,e]),F=(0,x.useCallback)(function(){var t=l()(i()().mark((function t(n){var o,l,u,f,h,p;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s&&s.broadcast){t.next=5;break}return r.error("".concat(v)),t.abrupt("return");case 5:if(c){t.next=8;break}return r.error("".concat(b)),t.abrupt("return");case 8:if((o=s.actor.toString())===e.proposer){t.next=12;break}return r.error("".concat(j)),t.abrupt("return",!1);case 12:return l={action:{account:"eosio.msig",name:"cancel",authorization:[s.permissionLevel],data:{proposer:e.proposer,proposal_name:n.proposal_name,canceler:o}}},t.next=15,(0,d.zI)(s.transact(l));case 15:u=t.sent,f=a()(u,2),h=f[0],p=f[1],h?r.error(h):p&&p.response?(e.handleSearch(e.proposer,""),r.success("".concat(A))):r.error("".concat(I));case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[s,c,e.proposer,e]),W=(0,x.useMemo)((function(){return[{title:"#",dataIndex:"key",key:"key",fixed:!0,width:"10px",align:"center",search:!1,render:function(e,t,n){return(0,ae.jsx)("span",{children:n+1})}},{title:"".concat($),dataIndex:"proposer",key:"proposer",align:"center",render:function(e,t){return(0,ae.jsx)("span",{className:"text-base",children:t.proposer})}},{title:"".concat(Z),dataIndex:"proposal_name",key:"proposal_name",align:"center",render:function(e,t){return(0,ae.jsx)("span",{className:"text-base",children:t.proposal_name})}},{title:"".concat(B),dataIndex:"threshold",key:"threshold",align:"center",render:function(e,t){return(0,ae.jsx)("span",{className:"text-base",children:t.threshold})}},{title:"".concat(N),dataIndex:"proposal_name",key:"proposal_name",render:function(e,t){return(0,ae.jsxs)("div",{children:[t.requested_approvals.map((function(e,t){return(0,ae.jsxs)("div",{className:"mb-2",children:[(0,ae.jsx)(ot.Z,{className:"text-base",children:"+".concat(e.weight," ").concat(e.actor,"@").concat(e.permission)}),e.time.slice(0,19)]},t)})),t.provided_approvals.map((function(e,t){return(0,ae.jsxs)("div",{className:"mb-2",children:[(0,ae.jsx)(ot.Z,{color:"green",className:"text-base",children:"+".concat(e.weight," ").concat(e.actor,"@").concat(e.permission)}),e.time.slice(0,19)]},t)}))]})}},{title:"".concat(R),dataIndex:"proposal_name",key:"proposal_name",render:function(e,t){return(0,ae.jsxs)("div",{children:[(0,ae.jsx)("div",{children:(0,ae.jsx)(O.ZP,{ghost:!0,type:"primary",className:"mb-2",onClick:function(){return D(t)},children:y})}),(0,ae.jsx)("div",{children:(0,ae.jsx)(O.ZP,{ghost:!0,type:"primary",className:"mb-2",onClick:function(){return z(t)},children:w})}),(0,ae.jsx)("div",{children:(0,ae.jsx)(O.ZP,{ghost:!0,type:"primary",className:"mb-2",onClick:function(){return L(t)},children:k})}),(0,ae.jsx)("div",{children:(0,ae.jsx)(O.ZP,{ghost:!0,type:"primary",onClick:function(){return F(t)},children:_})})]})}},{title:"".concat(T),dataIndex:"proposal_name",key:"proposal_name",render:function(e,t){return(0,ae.jsxs)("div",{children:[(0,ae.jsxs)("div",{className:"font-semibold",children:['"expiration":',t.expiration,","]}),(0,ae.jsxs)("pre",{children:['"actions": ',JSON.stringify(t.transaction.actions,null,2)]})]})}}]}),[D,z,F,L]),H=(0,x.useCallback)(function(){var e=l()(i()().mark((function e(t,n,o,s){var l,c,u,f;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=[],!n||!o){e.next=12;break}c=i()().mark((function e(){var c,u,h,p,m,g,v,b,y,w,_,x,k,S,C,M,E,A,I,O;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=[],u=[],n[f].provided_approvals.forEach((function(e){u.push({actor:e.level.actor.toString(),permission:e.level.permission.toString(),time:P()(e.time.toMilliseconds()).format(),weight:0})})),n[f].requested_approvals.forEach((function(e){var t=e.level.actor.toString(),n=e.level.permission.toString();c.push({actor:t,permission:n,time:P()(e.time.toMilliseconds()).format(),weight:0})})),e.next=6,(0,d.zI)(it.Z.deserializeTransactionWithActions(o[f].packed_transaction.toString()));case 6:if(h=e.sent,p=a()(h,2),m=p[0],g=p[1],!m){e.next=13;break}return r.error(m),e.abrupt("return",{v:!1});case 13:v={},g.actions.forEach((function(e){e.authorization.forEach((function(e){var t=e.actor+"-"+e.permission;v[t]=!0}))})),b=Object.keys(v),y=0,w=0;case 18:if(!(w0?n=A.formatMessage({id:"account.intlConsumeRam"},{account:u.accountName.toString(),ram:t.ram}):t.ram<0&&(n=A.formatMessage({id:"account.intlReleaseRam"},{account:u.accountName.toString(),ram:-t.ram})),(0,ae.jsxs)("div",{className:"flex items-center",children:[(0,ae.jsx)(Ue.Z,{placement:"top",title:t.trx_id,children:(0,ae.jsx)("a",{className:"mr-1",onClick:function(){return C("/query/transaction?search=".concat(t.trx_id,"&tab=summary"))},children:t.trx_id.slice(0,8)})}),0!==t.ram&&(0,ae.jsx)(Ue.Z,{placement:"top",title:n,children:(0,ae.jsx)("div",{className:"pt-[7px] text-blue-600",children:(0,ae.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",children:(0,ae.jsx)("path",{fill:"currentColor",d:"M7 15q.425 0 .713-.288T8 14v-4q0-.425-.288-.712T7 9q-.425 0-.712.288T6 10v4q0 .425.288.713T7 15m5 0q.425 0 .713-.288T13 14v-4q0-.425-.288-.712T12 9q-.425 0-.712.288T11 10v4q0 .425.288.713T12 15m5 0q.425 0 .713-.288T18 14v-4q0-.425-.288-.712T17 9q-.425 0-.712.288T16 10v4q0 .425.288.713T17 15M4 17h16V7H4zm0 0V7zm0 2q-.825 0-1.412-.587T2 17V7q0-.825.588-1.412T4 5h1V4q0-.425.288-.712T6 3q.425 0 .713.288T7 4v1h4V4q0-.425.288-.712T12 3q.425 0 .713.288T13 4v1h4V4q0-.425.288-.712T18 3q.425 0 .713.288T19 4v1h1q.825 0 1.413.588T22 7v10q0 .825-.587 1.413T20 19h-1v1q0 .425-.288.713T18 21q-.425 0-.712-.288T17 20v-1h-4v1q0 .425-.288.713T12 21q-.425 0-.712-.288T11 20v-1H7v1q0 .425-.288.713T6 21q-.425 0-.712-.288T5 20v-1z"})})})})]})}},{title:"".concat(O),dataIndex:"timestamp",key:"timestamp",align:"center",search:!1,render:function(e,t){return(0,ae.jsx)("span",{children:P().utc(t.timestamp).local().format()})}},{title:"".concat(j),dataIndex:"action",key:"action",search:!1,render:function(e,t){return(0,ae.jsx)("div",{children:ie(t)})}},{title:"".concat(Z),dataIndex:"data",key:"data",search:!1,render:function(e,t){return(0,ae.jsx)("div",{children:oe(t)})}},{title:"".concat(Y),dataIndex:"action",hideInTable:!0},{title:"".concat(G),dataIndex:"date",valueType:"dateRange",hideInTable:!0}]}),[u,ie,b,A]);return(0,x.useEffect)((function(){var e=document.getElementById("action");null==e||e.setAttribute("placeholder",q)}),[]),(0,ae.jsxs)("div",{className:"tabtx",children:[(0,ae.jsx)("div",{className:"",children:(0,ae.jsx)(qe.Z,{formRef:E,scroll:{x:!0},size:"small",columns:ce,params:{account:u.accountName.toString()},request:se,defaultData:h,search:{defaultCollapsed:!1,layout:"horizontal",labelWidth:"auto",collapseRender:!1,className:"p-[0px]"},options:!1,tableAlertRender:!1,tableAlertOptionRender:!1,loading:{spinning:f||k,size:"large"}})}),c]})})),gt=(0,x.memo)(mt)},70423:function(e,t,n){"use strict";n.d(t,{Tk:function(){return D},cF:function(){return q},dN:function(){return K},ql:function(){return Q},sI:function(){return te}});var r=n(15009),i=n.n(r),o=n(99289),a=n.n(o),s=n(5574),l=n.n(s),c=n(38592),u=n(64119),d=n(57132),f=n(37476),h=n(59530),p=n(45360),m=n(69677),g=n(57953),v=n(92398),b=n(96486),y=n(62435),w=n(79123),_=n(19632),x=n.n(_),k=n(97857),S=n.n(k),C=n(52688),M=n(5966),E=n(97269),A=n(80507),I=n(85576),O=n(34041),j=n(15867),Z=n(72269),R=n(86074),N=function(e){var t=(0,h.useDispatch)(),n=(0,h.useSelector)((function(e){return e.wallet.batchActions})),r=(0,h.useSelector)((function(e){return e.global.session})),o=(0,h.useSelector)((function(e){return e.wallet.freeCpu})),s=(0,h.useSelector)((function(e){return e.global.privateKey})),d=(0,h.useSelector)((function(e){return e.wallet.locks})),f=p.ZP.useMessage(),m=l()(f,2),g=m[0],v=m[1],b=I.Z.useModal(),_=l()(b,2),x=_[0],k=_[1],C=e.record,M=(0,h.useIntl)(),O=M.formatMessage({id:"contract.intlBatchActions"}),j=M.formatMessage({id:"common.intlTxSuccess"}),N=M.formatMessage({id:"common.intlTxFail"}),P=M.formatMessage({id:"contract.intlFreeCpu"}),T=M.formatMessage({id:"contract.intlFreeCpuLimit"}),B=M.formatMessage({id:"tools.wallet.intlCancelTransaction"}),$=M.formatMessage({id:"tools.wallet.intlConfirmTransaction"}),D=(0,y.useCallback)(a()(i()().mark((function t(){var a,l,c,f,h,p,m,v,b,y,_,k,M;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,a=C.permission,l=C.account,!o||"active"===a||"owner"===a){t.next=6;break}return g.error("".concat(T)),t.abrupt("return",!1);case 6:return c=[],n.forEach((function(e){c.push(JSON.parse(e.typedAction))})),f={account:"dfsfreecpu11",name:"freecpu",authorization:[{actor:"dfs.service",permission:"cpu"},{actor:l,permission:a}],data:u._9.from({user:l})},h=A.aU.from(f),p=d[C.key].password,m=A._q.from((0,u.ow)(C.privateKey,p)),y=[],t.next=15,r.client.v1.chain.get_info();case 15:return _=t.sent,k=_.getTransactionHeader(),o?(v=A.YW.from(S()(S()({},k),{},{actions:[h].concat(c)})),y[0]=s.signDigest(v.signingDigest(r.chain.id.toString())),y[1]=m.signDigest(v.signingDigest(r.chain.id.toString()))):(v=A.YW.from(S()(S()({},k),{},{actions:c})),y[0]=m.signDigest(v.signingDigest(r.chain.id.toString()))),b=A.uQ.from(S()(S()({},v),{},{signatures:y})),t.next=21,x.confirm({icon:(0,R.jsx)("span",{}),style:{top:25},width:"500px",title:$,content:(0,R.jsx)("div",{children:(0,R.jsx)(w.ZP,{className:"text-lg",src:n.map((function(e){return JSON.parse(e.untypedAction)})),collapsed:!1,displaySize:!0,enableClipboard:!1})})});case 21:if(t.sent){t.next=25;break}return g.error(B),t.abrupt("return",!1);case 25:return t.next=27,r.client.v1.chain.push_transaction(b);case 27:if(!(M=t.sent)||!M.processed||"executed"!==M.processed.receipt.status){t.next=34;break}return e.messageApi.success(j),e.handleUpdate(C.key,e.index),t.abrupt("return",!0);case 34:return e.messageApi.error(N),t.abrupt("return",!1);case 36:t.next=41;break;case 38:t.prev=38,t.t0=t.catch(0),(0,u.Tv)(t.t0,g);case 41:case"end":return t.stop()}}),t,null,[[0,38]])}))),[r,n,C,d,o,e]),L=(0,y.useCallback)((function(e){var r=n.filter((function(t,n){return n!==e}));t(c.N.setBatchActions(r))}),[n]),z=(0,y.useCallback)((function(){t(c.N.setBatchActions([]))}),[]);return(0,R.jsxs)("div",{className:"",children:[(0,R.jsx)("div",{className:"hardline text-lg font-semibold mb-3 mt-5",children:"".concat(O,"(").concat(n.length,")")}),(0,R.jsx)("div",{className:"",children:n.map((function(e,t){return(0,R.jsx)("div",{className:"mb-2",children:(0,R.jsxs)("div",{style:{background:"#e6f4ff",border:"1px solid #91caff",boxSizing:"border-box",margin:"0",padding:"8px 12px",color:"rgba(0, 0, 0, 0.88)",fontSize:"14px",lineHeight:"1.5714285714285714",listStyle:"none",position:"relative",display:"flex",alignItems:"center",wordWrap:"break-word",borderRadius:"8px"},children:[(0,R.jsx)("div",{style:{flex:1,minWidth:0,boxSizing:"border-box"},children:e.untypedAction}),(0,R.jsx)("button",{type:"button",onClick:function(){return L(t)},style:{marginInlineStart:"8px",padding:0,overflow:"hidden",fontSize:"12px",lineHeight:"12px",backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer"},children:(0,R.jsx)("span",{style:{color:"rgba(0, 0, 0, 0.45)",transition:"color 0.2s"},children:(0,R.jsx)("svg",{fillRule:"evenodd",viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor",children:(0,R.jsx)("path",{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"})})})})]})},t)}))}),(0,R.jsx)(E.A,{className:"",layout:"vertical",onFinish:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",D());case 1:case"end":return e.stop()}}),e)}))),onReset:z,submitter:{render:function(e,n){return[n[1],n[0],(0,R.jsxs)("div",{className:"mr-[8px] flex items-center",children:[(0,R.jsx)(Z.Z,{className:"mr-[8px]",value:o,onChange:function(){return t(c.N.setFreeCpu(!o))}}),(0,R.jsx)("div",{children:P})]},"freeCpu")]}}}),v,k]})},P=(0,y.memo)(N),T=function(e){var t,n=I.Z.useModal(),r=l()(n,2),o=r[0],s=r[1],d=p.ZP.useMessage(),f=l()(d,2),m=f[0],g=f[1],v=(0,y.useRef)(),b=(0,h.useDispatch)(),_=(0,y.useState)(new Set),k=l()(_,1)[0],N=(0,h.useSelector)((function(e){return e.wallet.abi})),T=(0,h.useSelector)((function(e){return e.wallet.actionSelection})),B=(0,h.useSelector)((function(e){return e.wallet.actionType})),$=(0,h.useSelector)((function(e){return e.global.session})),D=(0,h.useSelector)((function(e){return e.wallet.contract})),L=(0,h.useSelector)((function(e){return e.wallet.batchActions})),z=(0,h.useSelector)((function(e){return e.wallet.fields})),F=(0,h.useSelector)((function(e){return e.wallet.freeCpu})),W=(0,h.useSelector)((function(e){return e.wallet.locks})),H=(0,h.useSelector)((function(e){return e.global.privateKey})),V=e.record,U=V.key,Y=V.account+" "+V.permission,G=(0,y.useRef)(),q=(0,h.useIntl)(),X=q.formatMessage({id:"common.intlCopySuccess"}),K=q.formatMessage({id:"contract.intlSelectAction"}),J=q.formatMessage({id:"contract.intlEnterData"}),Q=q.formatMessage({id:"common.intlCopy"}),ee=q.formatMessage({id:"common.intlTxSuccess"}),ne=q.formatMessage({id:"common.intlTxFail"}),re=q.formatMessage({id:"contract.intlAdd"}),ie=q.formatMessage({id:"contract.intlFreeCpu"}),oe=q.formatMessage({id:"tools.wallet.intlUnlock"}),ae=q.formatMessage({id:"contract.intlFreeCpuLimit"}),se=q.formatMessage({id:"tools.wallet.intlCancelTransaction"}),le=q.formatMessage({id:"tools.wallet.intlConfirmTransaction"}),ce=(0,y.useCallback)((function(e,t){var n=/(\$|\?)$/g,r=/^[a-z1-5.]{1,12}$/,i=/^\d+$/,o=/^-?\d+$/,a=/^(-?\d+)(.\d+)?$/,s=/^([0-9a-fA-F][0-9a-fA-F])+$/,l=/^\d+,[A-Z]+$/;if(n.test(e.message)&&!t)return Promise.resolve();switch(e.message.replace(n,"")){case"string":return Promise.resolve("");case"name":try{return r.test(t)?Promise.resolve(A.VG.from(t)):Promise.reject(e.message=String(r))}catch(t){return Promise.reject(e.message=t.message)}case"asset":try{return Promise.resolve(A.xR.from(t))}catch(t){return Promise.reject(e.message=t.message)}case"checksum160":try{return Promise.resolve(A.b9.from(t))}catch(t){return Promise.reject(e.message=t.message)}case"checksum256":try{return Promise.resolve(A.Nz.from(t))}catch(t){return Promise.reject(e.message=t.message)}case"checksum512":try{return Promise.resolve(A.W4.from(t))}catch(t){return Promise.reject(e.message=t.message)}case"uint8":try{return i.test(t)?Promise.resolve(A._A.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"uint16":try{return i.test(t)?Promise.resolve(A.j8.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"uint32":try{return i.test(t)?Promise.resolve(A.xH.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"uint64":try{return i.test(t)?Promise.resolve(A.zM.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"uint128":try{return i.test(t)?Promise.resolve(A.pB.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"varuint":try{return i.test(t)?Promise.resolve(A.mj.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"varuint16":try{return i.test(t)?Promise.resolve(A.mj.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"varuint32":try{return i.test(t)?Promise.resolve(A.mj.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"varuint64":try{return i.test(t)?Promise.resolve(A.mj.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"varuint128":try{return i.test(t)?Promise.resolve(A.mj.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"int8":try{return o.test(t)?Promise.resolve(A.tJ.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"int16":try{return o.test(t)?Promise.resolve(A.k6.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"int32":try{return o.test(t)?Promise.resolve(A.Vq.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"int64":try{return o.test(t)?Promise.resolve(A.ni.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"int128":try{return o.test(t)?Promise.resolve(A.Gm.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"varint":try{return o.test(t)?Promise.resolve(A.yN.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"varint16":try{return o.test(t)?Promise.resolve(A.yN.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"varint32":try{return o.test(t)?Promise.resolve(A.yN.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"varint64":try{return o.test(t)?Promise.resolve(A.yN.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"varint128":try{return o.test(t)?Promise.resolve(A.yN.from(t)):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"float32":try{return a.test(t)?Promise.resolve(A.yA.from(t)):Promise.reject(e.message=String(a))}catch(t){return Promise.reject(e.message=t.message)}case"float64":try{return a.test(t)?Promise.resolve(A.Dh.from(t)):Promise.reject(e.message=String(a))}catch(t){return Promise.reject(e.message=t.message)}case"bytes":try{return s.test(t)?Promise.resolve(A.Jj.from(t)):Promise.reject(e.message=String(s))}catch(t){return Promise.reject(e.message=t.message)}case"block_timestamp_type":try{return i.test(t)?Promise.resolve(A.wm.from(Number(t))):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"time_point":try{return i.test(t)?Promise.resolve(A.hI.from(Number(t))):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"time_point_sec":try{return i.test(t)?Promise.resolve(A.AQ.from(Number(t))):Promise.reject(e.message=String(i))}catch(t){return Promise.reject(e.message=t.message)}case"public_key":try{return Promise.resolve(A.nh.from(t))}catch(t){return Promise.reject(e.message=t.message)}case"symbol":try{return l.test(t)?Promise.resolve(A.xR.Symbol.from(t)):Promise.reject(e.message=String(l))}catch(t){return Promise.reject(e.message=t.message)}case"signature":try{return Promise.resolve(A.Pc.from(t))}catch(t){return Promise.reject(e.message=t.message)}default:try{return JSON.parse(t),k.add(e.field),Promise.resolve()}catch(t){return Promise.reject(e.message=t.message)}}}),[T,k]),ue=(0,y.useCallback)((function(e){switch(e.replace(/(\$|\?)$/g,"")){case"name":return"Enter account name...";case"asset":return"example: 1.00000000 DFS";case"uint8":case"uint16":case"uint32":case"uint64":case"uint128":case"varuint":case"varuint16":case"varuint32":case"varuint64":case"varuint128":case"int8":case"int16":case"int32":case"int64":case"int128":case"varint":case"varint16":case"varint32":case"varint64":case"varint128":case"float32":case"float64":return"Enter number...";case"string":return"Enter string...";case"permission_level":return'example: {"actor": "foo", "permission": "active"}';case"bytes":return"example: 1234abcdff";case"checksum256":return"example: 73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d";case"authority":return'example: {"threshold": 1, "keys": [{"key": "EOS6RrvujLQN1x5Tacbep1KAk8zzKpSThAQXBCKYFfGUYeABhJRin", "weight": 1}], "accounts": [], "waits": []}';case"symbol":return"example: 8,DFS";case"name[]":return'example: ["david", "mary"]';case"asset[]":return'example: ["1.00000000 DFS", "2.00000000 USDT"]';case"uint8[]":case"uint16[]":case"uint32[]":case"uint64[]":case"uint128[]":case"varuint[]":case"varuint16[]":case"varuint32[]":case"varuint64[]":case"varuint128[]":return"example: [12, 34]";case"int8[]":case"int16[]":case"int32[]":case"int64[]":case"int128[]":case"varint[]":case"varint16[]":case"varint32[]":case"varint64[]":case"varint128[]":return"example: [12, -34]";case"float32[]":case"float64[]":return"example: [12.12, -34.34]";case"string[]":return'example: ["abc", "def"]';case"permission_level[]":return'example: [{"actor": "foo", "permission": "active"}, {"actor": "foo", "permission": "active"}]';case"bytes[]":return'example: ["123abc", "456def"]';case"checksum256[]":return'example: ["73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d", "73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d"]';case"symbol[]":return'example: ["8,DFS", "8,USDT"]';case"signature":return"example: SIG_K1_KWiYknnPb...";default:return"Enter ".concat(e,"...")}}),[]),de=(0,y.useCallback)((function(){var e=/.+(\$|\?)$/;return z.map((function(t,n){return"bool"===t.type?(0,R.jsx)(C.Z,{name:t.name,label:(0,R.jsx)("span",{className:"font-semibold",children:t.name})},n):(0,R.jsx)(M.Z,{placeholder:ue(t.type),name:t.name,label:(0,R.jsx)("span",{className:"font-semibold",children:t.name}),rules:[{required:!e.test(t.type),message:t.type,validator:ce}],hasFeedback:!0,fieldProps:{allowClear:!0,autoFocus:!1,addonAfter:t.type,size:"large"}},n)}))}),[N,T,B,z]),fe=(0,y.useCallback)(function(){var t=a()(i()().mark((function t(n){var r,a,s,l,c,d,f,h,p,g,v,b,y,_,x,C,M,E;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r={},a=/.+\?$/,s=/.+\$$/,z.forEach((function(e){s.test(e.type)?r[e.name]="":a.test(e.type)&&(r[e.name]=null)})),l=Object.assign(S()({},r),n),Object.keys(l).forEach((function(e){k.has(e)&&(l[e]=JSON.parse(l[e]))})),Object.keys(l).forEach((function(e){var t=z.find((function(t){return t.name===e}));t&&a.test(t.type)&&(String(l[e]).trim()||(l[e]=null))})),c=V.permission,d=V.account,!F||"active"===c||"owner"===c){t.next=13;break}return m.error("".concat(ae)),t.abrupt("return",!1);case 13:return f=W[V.key].password,h=A._q.from((0,u.ow)(V.privateKey,f)),p={account:D,name:T,authorization:[{actor:d,permission:c}],data:l},g=A.aU.from(p,N),v={account:"dfsfreecpu11",name:"freecpu",authorization:[{actor:"dfs.service",permission:"cpu"},{actor:d,permission:c}],data:u._9.from({user:d})},b=A.aU.from(v),x=[],t.next=22,$.client.v1.chain.get_info();case 22:return C=t.sent,M=C.getTransactionHeader(),F?(y=A.YW.from(S()(S()({},M),{},{actions:[b,g]})),x[0]=H.signDigest(y.signingDigest($.chain.id.toString())),x[1]=h.signDigest(y.signingDigest($.chain.id.toString()))):(y=A.YW.from(S()(S()({},M),{},{actions:[g]})),x[0]=h.signDigest(y.signingDigest($.chain.id.toString()))),_=A.uQ.from(S()(S()({},y),{},{signatures:x})),t.next=28,o.confirm({icon:(0,R.jsx)("span",{}),style:{top:25},width:"500px",title:le,content:(0,R.jsx)("div",{children:(0,R.jsx)(w.ZP,{className:"text-lg",src:JSON.parse(JSON.stringify(p)),collapsed:!1,displaySize:!0,enableClipboard:!1})})});case 28:if(t.sent){t.next=32;break}return m.error(se),t.abrupt("return",!1);case 32:return t.next=34,$.client.v1.chain.push_transaction(_);case 34:if(!(E=t.sent)||!E.processed||"executed"!==E.processed.receipt.status){t.next=41;break}return e.messageApi.success(ee),e.handleUpdate(V.key,e.index),t.abrupt("return",!0);case 41:return e.messageApi.error(ne),t.abrupt("return",!1);case 43:t.next=48;break;case 45:t.prev=45,t.t0=t.catch(0),(0,u.Tv)(t.t0,m);case 48:case"end":return t.stop()}}),t,null,[[0,45]])})));return function(e){return t.apply(this,arguments)}}(),[T,N,k,D,$,z,F,W,V,e]),he=(0,y.useCallback)(a()(i()().mark((function e(){var t,n,r,o,a,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null===(t=v.current)||void 0===t?void 0:t.getFieldsValue(),r=/.+\?$/,o=/.+\$$/,a=Object.assign({},n),Object.keys(a).forEach((function(e){k.has(e)&&(a[e]=JSON.parse(a[e]))})),Object.keys(a).forEach((function(e){var t=z.find((function(t){return t.name===e}));t&&r.test(t.type)?void 0!==a[e]&&String(a[e]).trim()||(a[e]=null):t&&o.test(t.type)&&(a[e]="")})),s={account:D,name:T,authorization:[{actor:V.account,permission:V.permission}],data:a},e.next=9,window.navigator.clipboard.writeText(JSON.stringify(s,null,2));case 9:m.success("".concat(X));case 10:case"end":return e.stop()}}),e)}))),[m,D,T,z,V]),pe=(0,y.useCallback)(a()(i()().mark((function e(){var t,n,r,o,a,s,l,u;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=v.current)||void 0===t?void 0:t.validateFields();case 2:r=null===(n=v.current)||void 0===n?void 0:n.getFieldsValue(),o=/.+\?$/,a=/.+\$$/,s=Object.assign({},r),Object.keys(s).forEach((function(e){k.has(e)&&(s[e]=JSON.parse(s[e]))})),Object.keys(s).forEach((function(e){var t=z.find((function(t){return t.name===e}));t&&o.test(t.type)?void 0!==s[e]&&String(s[e]).trim()||(s[e]=null):t&&a.test(t.type)&&(s[e]="")})),l={account:D,name:T,authorization:[{actor:V.account,permission:V.permission}],data:s},u=A.aU.from(l,N),b(c.N.setBatchActions([].concat(x()(L),[{untypedAction:JSON.stringify(l),typedAction:JSON.stringify(u)}])));case 11:case"end":return e.stop()}}),e)}))),[m,N,V,D,T,L,z]),me=(0,y.useCallback)((function(){var e;null===(e=v.current)||void 0===e||e.resetFields()}),[]),ge=(0,y.useCallback)((function(e){var t,n=e.split("-"),r=l()(n,2),i=r[0],o=r[1],a=null==N||null===(t=N.structs)||void 0===t?void 0:t.find((function(e){return e.name===o})),s=null==a?void 0:a.fields;b(c.N.setFields(s)),b(c.N.setActionSelection(i)),b(c.N.setActionType(o)),me()}),[me,z,N]);return(0,R.jsxs)("div",{className:"",children:[(0,R.jsx)("div",{className:"hardline text-lg font-semibold mb-3",children:K}),(0,R.jsx)("div",{className:"mb-5",children:(0,R.jsx)(O.default,{options:null==N||null===(t=N.actions)||void 0===t?void 0:t.map((function(e){var t=e.name.toString();return{value:t+"-"+e.type.toString(),label:t}})),style:{width:"100%"},onChange:ge,value:T?T+"-"+B:"",size:"large"})}),!!T&&(0,R.jsxs)("div",{children:[(0,R.jsx)("div",{className:"hardline text-lg font-semibold mb-2 mt-3",children:J}),(0,R.jsx)(E.A,{formRef:v,className:"",layout:"vertical",onFinish:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",fe(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onReset:function(){return me()},submitter:{render:function(e,t){return W[U].isLock?[(0,R.jsx)(j.ZP,{type:"primary",onClick:function(){return G.current.handleOpen(U,Y)},children:oe},"unlock"),t[0]]:(0,R.jsxs)("div",{className:"flex flex-wrap items-center",children:[(0,R.jsx)("div",{className:"mr-[8px]",children:t[1]}),(0,R.jsx)("div",{className:"mr-[8px]",children:t[0]}),(0,R.jsx)(j.ZP,{className:"mr-[8px]",onClick:he,children:Q},"copy"),(0,R.jsx)(j.ZP,{className:"mr-[8px]",onClick:pe,children:re},"add"),(0,R.jsx)(Z.Z,{className:"mr-[8px]",value:F,onChange:function(){return b(c.N.setFreeCpu(!F))}},"freeCpu"),(0,R.jsx)("div",{children:ie})]})}},children:de()})]}),!!L.length&&(0,R.jsx)(P,{record:V,index:e.index,messageApi:e.messageApi,handleUpdate:e.handleUpdate}),(0,R.jsx)(te,{ref:G,messageApi:m}),g,s]})},B=(0,y.memo)(T),$=y.forwardRef((function(e,t){var n=(0,h.useDispatch)(),r=p.ZP.useMessage(),o=l()(r,2),s=o[0],_=o[1],x=(0,h.useSelector)((function(e){return e.global.contractKit})),k=(0,h.useSelector)((function(e){return e.global.session})),S=(0,h.useSelector)((function(e){return e.wallet.activeKey})),C=(0,h.useSelector)((function(e){return e.wallet.actionSelection})),M=(0,h.useSelector)((function(e){return e.wallet.contract})),E=(0,h.useSelector)((function(e){return e.wallet.rawAbi})),A=(0,y.useState)(!1),I=l()(A,2),O=I[0],j=I[1],Z=(0,y.useState)(""),N=l()(Z,2),P=N[0],T=N[1],$=(0,y.useState)(),D=l()($,2),L=D[0],z=D[1],F=(0,y.useState)(-1),W=l()(F,2),H=W[0],V=W[1],U=(0,h.useIntl)(),Y=U.formatMessage({id:"contract.intlSearchContract"}),G=U.formatMessage({id:"contract.intlContract"}),q=U.formatMessage({id:"contract.intlSearch"}),X=U.formatMessage({id:"contract.intlAccountFormatError"}),K=U.formatMessage({id:"contract.intlNonContractAccount"}),J=U.formatMessage({id:"common.intlCopySuccess"}),Q=(0,y.useRef)(),ee=(0,y.useState)(!1),te=l()(ee,2),ne=te[0],re=te[1],ie=(0,y.useCallback)((function(e,t){z(e),V(t),re(!0)}),[]);(0,y.useImperativeHandle)(t,(function(){return{handleOpen:ie}}));var oe=(0,y.useCallback)(function(){var e=a()(i()().mark((function e(t,n){var r,o,a,c;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(/^[a-z1-5.]{1,12}$/.test(t)){e.next=8;break}if(t||n.hasOwnProperty("type")){e.next=4;break}return e.abrupt("return",!1);case 4:return s.error("".concat(X)),e.abrupt("return",!1);case 8:return e.next=10,(0,u.zI)(k.client.v1.chain.get_abi(t));case 10:if(r=e.sent,o=l()(r,2),a=o[0],c=o[1],!a){e.next=17;break}return s.error(a),e.abrupt("return",!1);case 17:if(a||!c.hasOwnProperty("abi")){e.next=21;break}return e.abrupt("return",!0);case 21:return s.error("".concat(K)),e.abrupt("return",!1);case 23:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[k,s]),ae=(0,y.useCallback)(function(){var e=a()(i()().mark((function e(t,r){var o,a,d,f,h,p;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!x){e.next=16;break}return j(!0),e.next=4,oe(t,r);case 4:if(e.sent){e.next=7;break}return j(!1),e.abrupt("return");case 7:return e.next=9,(0,u.zI)(x.load(t));case 9:o=e.sent,a=l()(o,2),d=a[0],f=a[1],d?s.error(d):(h=f.abi.toJSON(),p=JSON.stringify(h),p=JSON.parse(p),n(c.N.setContract(t)),n(c.N.setABI(h)),n(c.N.setRawABI(p)),n(c.N.setActionType("")),n(c.N.setActionSelection(""))),T(""),j(!1);case 16:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[x,oe,s]),se=(0,y.useCallback)((0,b.debounce)(function(){var e=a()(i()().mark((function e(t){var n,r,o,a,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.target.value,/^[a-z1-5.]{1,12}$/.test(n)){e.next=6;break}0===n.trim().length?T(""):T("error"),e.next=13;break;case 6:return e.next=8,(0,u.zI)(k.client.v1.chain.get_abi(n));case 8:r=e.sent,o=l()(r,2),a=o[0],s=o[1],!a&&s.hasOwnProperty("abi")?T(""):T("error");case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),1e3),[k]),le=(0,y.useMemo)((function(){return"actions"===S&&C?M+"::"+C:M||""}),[S,C,M]),ce=(0,y.useCallback)(a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.navigator.clipboard.writeText(JSON.stringify(E));case 2:s.success("".concat(J));case 3:case"end":return e.stop()}}),e)}))),[E]),ue=[{key:"actions",label:(0,R.jsx)("span",{className:"text-lg font-semibold",children:"Actions"}),children:!!E&&(0,R.jsx)(B,{record:L,index:H,messageApi:e.messageApi,handleUpdate:e.handleUpdate})},{key:"abi",label:(0,R.jsx)("span",{className:"text-lg font-semibold",children:"ABI"}),children:!!E&&(0,R.jsxs)("div",{className:"",children:[(0,R.jsx)(d.Z,{className:"cursor-pointer",style:{color:"#1677ff"},onClick:ce}),(0,R.jsx)(w.ZP,{className:"text-lg",src:E,collapsed:!1,displaySize:!0,enableClipboard:!1})]})},{key:"tip",label:(0,R.jsx)("span",{className:"text-lg font-semibold",children:le}),disabled:!0}];return(0,R.jsxs)(f.Y,{className:"wallet-contract",formRef:Q,title:(0,R.jsx)("div",{className:"hardline font-semibold text-lg mb-3",children:Y}),open:ne,onOpenChange:function(e){re(e)},layout:"vertical",width:"500px",modalProps:{destroyOnClose:!0,style:{top:25}},submitter:!1,children:[(0,R.jsx)(m.Z.Search,{className:"",loading:O,addonBefore:(0,R.jsx)(g.Z,{spinning:O,children:G}),placeholder:"Search...",allowClear:!0,enterButton:q,size:"large",status:P,onSearch:ae,onChange:se}),(0,R.jsx)(v.Z,{className:"mt-2",defaultActiveKey:"actions",items:ue,activeKey:S,onChange:function(e){return n(c.N.setActiveKey(e))}}),_]})})),D=(0,y.memo)($),L=n(31120),z=n(90672),F=n(55835),W=n(28316),H=n(37786),V=n(2153),U=n(95892),Y=(0,H.ZP)(U),G=y.forwardRef((function(e,t){var n=(0,h.useDispatch)(),r=p.ZP.useMessage(),o=l()(r,2),s=o[0],d=o[1],m=(0,y.useState)(""),g=l()(m,2),v=g[0],b=g[1],w=(0,y.useState)(""),_=l()(w,2),k=_[0],C=_[1],E=(0,h.useSelector)((function(e){return e.global.session})),I=(0,h.useSelector)((function(e){return e.wallet.dataSource})),O=(0,h.useSelector)((function(e){return e.wallet.wallets})),j=(0,h.useSelector)((function(e){return e.wallet.locks})),Z=(0,h.useIntl)(),N=Z.formatMessage({id:"common.intlInputException"}),P=Z.formatMessage({id:"contract.intlAccount"}),T=Z.formatMessage({id:"tools.wallet.intlImportSuccess"}),B=Z.formatMessage({id:"tools.wallet.intlImport"}),$=Z.formatMessage({id:"tools.wallet.intlPrivateKeyOrMnemonic"}),D=Z.formatMessage({id:"account.intlAuth"}),H=Z.formatMessage({id:"tools.wallet.intlPassword"}),U=Z.formatMessage({id:"tools.wallet.intlPasswordTip"}),G=(0,y.useRef)(),q=(0,y.useState)(!1),X=l()(q,2),K=X[0],J=X[1],Q=(0,y.useCallback)((function(){J(!0)}),[]);(0,y.useImperativeHandle)(t,(function(){return{handleOpen:Q}}));var ee=(0,y.useCallback)(function(){var t=a()(i()().mark((function t(r){var o,a,d,f,h,p,m,g,y,w,_,M,A,R,N,P,B,$,D,z,W,H,V,U,Y,q,X,K,J,Q,ee,te,ne;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=r.password.trim(),a=r.account,d=r.permission,t.next=5,(0,u.zI)(E.client.v1.chain.get_account(a));case 5:if(f=t.sent,h=l()(f,2),p=h[0],m=h[1],!p){t.next=14;break}return s.error(p),t.abrupt("return",!1);case 14:if(g=m.permissions.find((function(e){return e.perm_name.toString()===d}))){t.next=20;break}return s.error(Z.formatMessage({id:"tools.wallet.intlPermissionNotMatch"},{actor:a,permission:d})),t.abrupt("return",!1);case 20:if(y=g.required_auth.keys,y.find((function(e){return e.key.toString()===k}))){t.next=27;break}return s.error(Z.formatMessage({id:"tools.wallet.intlPrivateKeyNotMatch"},{permissionLevel:"".concat(a,"@").concat(d)})),t.abrupt("return",!1);case 27:return _=a,M=E.chain.id.toString(),A=(0,F.js)("md5"),R=M+_+d+k,A.update(R),N=A.digest("hex").substring(0,8),P=(0,u.q6)(v,o),B={key:N,account:_,chainId:M,publicKey:k,permission:d,privateKey:P},$=m.core_liquid_balance?m.core_liquid_balance.toString():"0.00000000 DFS",D=m.ram_quota.toNumber(),z=m.ram_usage.toNumber(),W=m.cpu_limit.max.toNumber(),H=m.cpu_limit.used.toNumber(),V=m.net_limit.max.toNumber(),U=m.net_limit.used.toNumber(),q=[],X={},(Y=[]).push({key:N,account:_,chainId:M,publicKey:k,permission:d,privateKey:P,balance:$,cpuUsed:H,netUsed:U,ramUsed:z,cpuMax:W,netMax:V,ramMax:D}),X[N]={isLock:!0,password:""},q.push({key:N,account:_,chainId:M,publicKey:k,permission:d,privateKey:P}),L.db.wallets.put(B),K=I.filter((function(e){return e.key!==N})),J=[].concat(x()(K),Y),Q=J.sort((function(e,t){return e.account.localeCompare(t.account)})),n(c.N.setDataSource(Q)),ee=O.filter((function(e){return e.key!==N})),te=[].concat(x()(ee),q),ne=te.sort((function(e,t){return e.account.localeCompare(t.account)})),n(c.N.setWallets(ne)),n(c.N.setLocks(S()(S()({},j),X))),e.messageApi.success(T),b(""),C(""),null===(w=G.current)||void 0===w||w.resetFields(),t.abrupt("return",!0);case 63:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[E,v,k,e,I,O,j]),te=(0,y.useCallback)((function(e,t){try{var n=t.trim();if(V._I(n)){var r=n,i=V.Z1(r),o=Y.fromSeed(i).derivePath("m/84'/0'/0'/0/0").privateKey.toString("hex"),a=W.DX.privateKeyToString({type:W.DX.KeyType.k1,data:W.Y.hexToUint8Array(o)}),s=A._q.fromString(a),l=s.toPublic().toString();return b(s.toString()),C(l),Promise.resolve(s)}var c=A._q.from(n),u=c.toPublic().toString();return b(c.toString()),C(u),Promise.resolve(c)}catch(e){return Promise.reject(e.message)}}),[]);return(0,R.jsxs)(f.Y,{formRef:G,title:B,open:K,onFinish:ee,onOpenChange:function(e){J(e)},layout:"vertical",width:"500px",modalProps:{style:{top:25},destroyOnClose:!0},children:[(0,R.jsx)(M.Z,{name:"account",label:P,placeholder:"",fieldProps:{autoFocus:!1,size:"large"},rules:[{required:!0,whitespace:!0,message:"".concat(N),pattern:/^[a-z1-5.]{1,12}$/}]}),(0,R.jsx)(M.Z,{name:"permission",label:D,placeholder:"",fieldProps:{autoFocus:!1,size:"large"},rules:[{required:!0,whitespace:!0,message:"".concat(N),pattern:/^[a-z1-5.]{1,12}$/}]}),(0,R.jsx)(z.Z,{placeholder:"",name:"input",label:$,fieldProps:{autoSize:{minRows:3},allowClear:!0,autoFocus:!1,size:"large"},rules:[{required:!0,whitespace:!0,message:"".concat(N),validator:te}]}),(0,R.jsx)(M.Z,{name:"password",label:H,placeholder:"",fieldProps:{autoFocus:!1,size:"large"},help:(0,R.jsx)("div",{className:"mb-5",children:U}),rules:[{required:!0,whitespace:!0,message:"".concat(N),pattern:/^(?=.*?[a-zA-Z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,}$/}]}),d]})})),q=(0,y.memo)(G),X=y.forwardRef((function(e,t){var n=p.ZP.useMessage(),r=l()(n,2),o=r[0],s=r[1],c=(0,y.useState)(""),u=l()(c,2),m=u[0],g=u[1],v=(0,y.useState)(),b=l()(v,2),w=b[0],_=b[1],x=(0,h.useIntl)(),k=x.formatMessage({id:"account.intlPublicKey"}),S=x.formatMessage({id:"account.intlPrivateKey"}),C=x.formatMessage({id:"account.intlPrivateKeyWif"}),E=x.formatMessage({id:"common.intlCopySuccess"}),I=x.formatMessage({id:"tools.wallet.intlBackupTip"}),O=(0,y.useRef)(),j=(0,y.useState)(!1),Z=l()(j,2),N=Z[0],P=Z[1],T=(0,y.useCallback)((function(e,t){_(A._q.from(t)),g(e),P(!0)}),[]);(0,y.useImperativeHandle)(t,(function(){return{handleOpen:T}}));var B=(0,y.useCallback)(a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null===(t=O.current)||void 0===t||t.resetFields(),e.abrupt("return",!0);case 2:case"end":return e.stop()}}),e)}))),[]),$=(0,y.useCallback)(function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="","privateKey"===t?n=null==w?void 0:w.toString():"publicKey"===t?n=null==w?void 0:w.toPublic().toString():"legacy"===t?n=null==w?void 0:w.toPublic().toLegacyString():"privateKeyWif"===t&&(n=null==w?void 0:w.toWif()),e.next=4,window.navigator.clipboard.writeText(n);case 4:o.success("".concat(E));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[w]);return(0,R.jsxs)(f.Y,{formRef:O,title:(0,R.jsxs)("div",{children:[(0,R.jsx)("span",{className:" font-semibold text-lg",children:m}),(0,R.jsx)("div",{className:" text-red-600",children:I})]}),open:N,onFinish:B,onOpenChange:function(e){P(e)},layout:"vertical",width:"650px",modalProps:{style:{top:25},destroyOnClose:!0},children:[(0,R.jsx)(M.Z,{label:S,placeholder:"",fieldProps:{autoFocus:!1,value:w?w.toString():"",onChange:void 0,allowClear:!1,size:"large",addonAfter:(0,R.jsx)(d.Z,{className:"cursor-pointer",onClick:function(){return $("privateKey")}})}}),(0,R.jsx)(M.Z,{label:C,placeholder:"",fieldProps:{autoFocus:!1,value:w?w.toWif():"",onChange:void 0,allowClear:!1,size:"large",addonAfter:(0,R.jsx)(d.Z,{className:"cursor-pointer",onClick:function(){return $("privateKeyWif")}})}}),(0,R.jsx)(M.Z,{label:k,placeholder:"",fieldProps:{autoFocus:!1,value:w?w.toPublic().toString():"",onChange:void 0,allowClear:!1,size:"large",addonAfter:(0,R.jsx)(d.Z,{className:"cursor-pointer",onClick:function(){return $("publicKey")}})}}),(0,R.jsx)(M.Z,{label:k+"(Legacy)",placeholder:"",fieldProps:{autoFocus:!1,value:w?w.toPublic().toLegacyString():"",onChange:void 0,allowClear:!1,size:"large",addonAfter:(0,R.jsx)(d.Z,{className:"cursor-pointer",onClick:function(){return $("legacy")}})}}),s]})})),K=(0,y.memo)(X),J=y.forwardRef((function(e,t){var n=I.Z.useModal(),r=l()(n,2),o=r[0],s=r[1],c=p.ZP.useMessage(),d=l()(c,2),m=d[0],g=d[1],v=(0,h.useSelector)((function(e){return e.wallet.dataSource})),b=(0,h.useSelector)((function(e){return e.global.privateKey})),_=(0,h.useSelector)((function(e){return e.wallet.locks})),x=(0,h.useSelector)((function(e){return e.global.session})),k=(0,y.useState)(),E=l()(k,2),O=E[0],Z=E[1],N=(0,y.useState)(-1),P=l()(N,2),T=P[0],B=P[1],$=O?O.account:"",D=O?O.key:"",L=O?O.account+" "+O.permission:"",z=O?O.balance:"0.00000000 DFS",F=(0,h.useIntl)(),W=F.formatMessage({id:"common.intlInputException"}),H=F.formatMessage({id:"tools.wallet.intlTransfer"}),V=F.formatMessage({id:"tools.wallet.intlUnlock"}),U=F.formatMessage({id:"tools.wallet.intlCancelTransaction"}),Y=F.formatMessage({id:"common.intlInsufficientBalance"}),G=F.formatMessage({id:"contract.intlFreeCpu"}),q=F.formatMessage({id:"contract.intlFreeCpuLimit"}),X=F.formatMessage({id:"common.intlTxSuccess"}),K=F.formatMessage({id:"common.intlTxFail"}),J=F.formatMessage({id:"tools.wallet.intlConfirmTransaction"}),Q=(0,y.useRef)(),ee=(0,y.useRef)(),ne=(0,y.useState)(!1),re=l()(ne,2),ie=re[0],oe=re[1],ae=(0,y.useCallback)((function(e,t){Z(e),B(t),oe(!0)}),[]);(0,y.useImperativeHandle)(t,(function(){return{handleOpen:ae}}));var se=(0,y.useCallback)(function(){var t=a()(i()().mark((function t(n){var r,a,s,c,d,f,h,p,g,v,y,k,C,M,E,I,j,Z,N,P,B,$,D;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.from,a=n.to,s=n.memo?n.memo.trim():"",c=n.freeCpu,d=Number(n.value),f=Number(null==O?void 0:O.balance.split(" ")[0]),h=null==O?void 0:O.permission,!(d>f)){t.next=10;break}return m.error("".concat(Y)),t.abrupt("return",!1);case 10:return t.next=12,(0,u.zI)(x.client.v1.chain.get_account(a));case 12:if(p=t.sent,g=l()(p,1),!(v=g[0])){t.next=18;break}return m.error(v),t.abrupt("return",!1);case 18:if(!c||"active"===h||"owner"===h){t.next=21;break}return m.error("".concat(q)),t.abrupt("return",!1);case 21:return y=_[O.key].password,k=A._q.from((0,u.ow)(O.privateKey,y)),C=A.xR.from(d,A.xR.Symbol.fromParts("DFS",8)),M={account:"eosio.token",name:"transfer",authorization:[{actor:r,permission:h}],data:u.FE.from({from:r,to:a,memo:s,quantity:C})},E=A.aU.from(M),I={account:"dfsfreecpu11",name:"freecpu",authorization:[{actor:"dfs.service",permission:"cpu"},{actor:r,permission:h}],data:u._9.from({user:r})},j=A.aU.from(I),P=[],t.next=31,x.client.v1.chain.get_info();case 31:return B=t.sent,$=B.getTransactionHeader(),c?(Z=A.YW.from(S()(S()({},$),{},{actions:[j,E]})),P[0]=b.signDigest(Z.signingDigest(x.chain.id.toString())),P[1]=k.signDigest(Z.signingDigest(x.chain.id.toString()))):(Z=A.YW.from(S()(S()({},$),{},{actions:[E]})),P[0]=k.signDigest(Z.signingDigest(x.chain.id.toString()))),N=A.uQ.from(S()(S()({},Z),{},{signatures:P})),t.next=37,o.confirm({icon:(0,R.jsx)("span",{}),style:{top:25},width:"500px",title:J,content:(0,R.jsx)("div",{children:(0,R.jsx)(w.ZP,{className:"text-lg",src:JSON.parse(JSON.stringify(M)),collapsed:!1,displaySize:!0,enableClipboard:!1})})});case 37:if(t.sent){t.next=41;break}return m.error(U),t.abrupt("return",!1);case 41:return t.next=43,x.client.v1.chain.push_transaction(N);case 43:if(!(D=t.sent)||!D.processed||"executed"!==D.processed.receipt.status){t.next=50;break}return e.messageApi.success(X),e.handleUpdate(O.key,T),t.abrupt("return",!0);case 50:return e.messageApi.error(K),t.abrupt("return",!1);case 52:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[O,x,v,_,e,T]);return(0,R.jsxs)(f.Y,{formRef:Q,title:H,open:ie,onFinish:se,onOpenChange:function(e){oe(e)},layout:"vertical",width:"400px",modalProps:{destroyOnClose:!0,style:{top:25}},initialValues:{freeCpu:!0},submitter:{render:function(e,t){return _[D].isLock?[t[0],(0,R.jsx)(j.ZP,{type:"primary",onClick:function(){return ee.current.handleOpen(D,L)},children:V},"unlock")]:[t[0],t[1]]}},children:[(0,R.jsx)(M.Z,{name:"from",label:"From",disabled:!0,initialValue:$,fieldProps:{size:"large",autoFocus:!1}}),(0,R.jsx)(M.Z,{name:"to",label:"To",placeholder:"",fieldProps:{size:"large",autoFocus:!1},rules:[{required:!0,whitespace:!0,message:"".concat(W),pattern:/^[a-z1-5.]{1,12}$/}]}),(0,R.jsx)(M.Z,{name:"value",label:x?x.chain.name:"DFS",placeholder:z,rules:[{required:!0,message:"".concat(W),whitespace:!0,pattern:/^\d+(\.\d{1,8})?$/}],fieldProps:{size:"large",autoFocus:!1}}),(0,R.jsx)(M.Z,{name:"memo",label:"Memo",placeholder:"",fieldProps:{size:"large",autoFocus:!1}}),(0,R.jsx)(C.Z,{name:"freeCpu",label:G}),(0,R.jsx)(te,{ref:ee,messageApi:m}),g,s]})})),Q=(0,y.memo)(J),ee=y.forwardRef((function(e,t){var n=(0,h.useDispatch)(),r=p.ZP.useMessage(),o=l()(r,2),s=o[0],d=o[1],m=(0,h.useSelector)((function(e){return e.wallet.wallets})),g=(0,h.useSelector)((function(e){return e.wallet.locks})),v=(0,y.useState)(""),b=l()(v,2),w=b[0],_=b[1],x=(0,y.useState)(""),k=l()(x,2),C=k[0],E=k[1],A=(0,y.useState)([]),I=l()(A,2),O=I[0],j=I[1],Z=(0,h.useIntl)(),N=Z.formatMessage({id:"tools.wallet.intlPassword"}),P=Z.formatMessage({id:"tools.wallet.intlPasswordTip"}),T=Z.formatMessage({id:"tools.wallet.intlUnlock"}),B=Z.formatMessage({id:"tools.wallet.intlPasswordError"}),$=Z.formatMessage({id:"tools.wallet.intlUnlockSuccess"}),D=(0,y.useRef)(),L=(0,y.useState)(!1),z=l()(L,2),F=z[0],W=z[1],H=(0,y.useCallback)((function(e,t,n){_(e),E(t),n&&j(n),W(!0)}),[]);(0,y.useImperativeHandle)(t,(function(){return{handleOpen:H}}));var V=(0,y.useCallback)(function(){var t=a()(i()().mark((function t(r){var o,a,l,d;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=r.password.trim(),l=m.find((function(e){return e.key===w})),d=(0,u.ow)(l.privateKey,a)){t.next=6;break}return s.error(B),t.abrupt("return",!1);case 6:return g[w]={isLock:!1,password:a},n(c.N.setLocks(S()({},g))),e.messageApi.success($),null===(o=D.current)||void 0===o||o.resetFields(),O.forEach((function(e){e(C,d)})),t.abrupt("return",!0);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[w,m,g,C,O]);return(0,R.jsxs)(f.Y,{formRef:D,title:T+" "+C,open:F,onFinish:V,onOpenChange:function(e){W(e)},layout:"vertical",width:"420px",modalProps:{destroyOnClose:!0},children:[(0,R.jsx)(M.Z.Password,{name:"password",label:N,placeholder:"",fieldProps:{autoFocus:!1,size:"large"},rules:[{required:!0,whitespace:!0,message:"".concat(P),pattern:/^(?=.*?[a-zA-Z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,}$/}]}),d]})})),te=(0,y.memo)(ee)},75633:function(e,t,n){"use strict";n.d(t,{N:function(){return HM},b:function(){return WM}});var r=n(15009),i=n.n(r),o=n(99289),a=n.n(o),s=n(5574),l=n.n(s),c=n(98390),u=n(12444),d=n.n(u),f=n(72004),h=n.n(f),p=n(25098),m=n.n(p),g=n(31996),v=n.n(g),b=n(26037),y=n.n(b),w=n(9783),_=n.n(w),x=n(80507),k=n(74793),S=n(50553),C="000d9cae502dd1cc895745e204f83cc892bc4c450f92a03ecd4fe057709853cc",M=null;document.addEventListener("dfsWalletLoaded",(function(){if(null===M){var e=window;M=e.dfswallet?e.dfswallet:"",console.log("dfsWalletLoaded")}}));var E=function(){function e(){d()(this,e),_()(this,"appName",""),_()(this,"options",{})}var t,n,r,o,s,l,c,u,f,p,m;return h()(e,[{key:"identity",get:function(){return M.identity}},{key:"connect",value:(m=a()(i()().mark((function e(){var t,n,r,o=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:"",n=o.length>1&&void 0!==o[1]?o[1]:{},r=window,null===M&&r.dfswallet&&(M=r.dfswallet?r.dfswallet:"",console.log("dfsWalletLoaded")),t&&(this.appName=t),this.options=Object.assign(this.options,n),e.abrupt("return",new Promise((function(e){if(null!==M)e(!0);else var t=0,n=setInterval((function(){null===M&&30!=++t||(clearInterval(n),e(null!==M))}),100)})));case 7:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{key:"login",value:(p=a()(i()().mark((function e(){var t,n=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=n.length>0&&void 0!==n[0]?n[0]:{}).appName||(t.appName=this.appName||(location?location.host:"")),t.chainId||(t.chainId=this.options.network?this.options.network.chainId:C),e.next=5,M.login(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"hasAccountFor",value:(f=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M.hasAccountFor(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e){return f.apply(this,arguments)})},{key:"getIdentity",value:(u=a()(i()().mark((function e(){var t,n=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,M.getIdentity(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(){return u.apply(this,arguments)})},{key:"logout",value:(c=a()(i()().mark((function e(){var t,n=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:void 0,e.next=3,M.logout(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(){return c.apply(this,arguments)})},{key:"forgetIdentity",value:(l=a()(i()().mark((function e(){var t,n=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:void 0,e.next=3,M.forgetIdentity(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(){return l.apply(this,arguments)})},{key:"getIdentityFromPermissions",value:(s=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M.getIdentityFromPermissions();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return s.apply(this,arguments)})},{key:"suggestNetwork",value:(o=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M.suggestNetwork(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"addToken",value:(r=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M.addToken(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"getArbitrarySignature",value:(n=a()(i()().mark((function e(t,n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M.getArbitrarySignature(t,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})},{key:"dfs",value:function(e,t,n){return M.dfs(e,t,n)}},{key:"getVersion",value:(t=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M.getVersion();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"getProvider",value:function(){return M}}]),e}(),A=new E,I=n(28316);function O(e){return j.apply(this,arguments)}function j(){return(j=a()(i()().mark((function e(t){var n,r,o,s,l,c,u,d;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new URL(t.chain.url),r="https"===n.protocol.replace(":","")?"https":"http",o={blockchain:t.chain.name,chainId:String(t.chain.id),host:n.hostname,port:n.port?Number(n.port):"https"===r?443:80,protocol:r},e.next=5,A.connect(t.appName,{network:o});case 5:if(e.sent){e.next=8;break}throw new Error("Unable to connect with DFS wallet");case 8:return e.next=10,A.login();case 10:if((s=e.sent)&&s.accounts){e.next=13;break}throw new Error("Unable to retrieve account from DFS");case 13:return l=s.accounts[0],c=r+"://"+o.host+":"+o.port,(u=new I.pc(c)).getRequiredKeys=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)}))),d=A.dfs(o,I.V0,{rpc:u}),e.abrupt("return",{account:l,connector:d});case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(){return(Z=a()(i()().mark((function e(t){var n,r,o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ui){e.next=2;break}throw new Error("No UI available");case 2:return e.next=4,O(t);case 4:if(n=e.sent,!(r=n.account).chainId){e.next=10;break}o=r.chainId,e.next=11;break;case 10:throw new Error("Unknown chain");case 11:return e.abrupt("return",{chain:x.Nz.from(o),permissionLevel:x.V5.from("".concat(r.name,"@").concat(r.authority))});case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(){return(R=a()(i()().mark((function e(t,n){var r,o,a,s,l,c,u,d,f;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.ui){e.next=2;break}throw new Error("No UI available");case 2:return e.next=4,O(n);case 4:return r=e.sent,o=r.connector,a=x.ei.encode({object:t.transaction}),e.next=9,o.deserializeTransactionWithActions(a.array);case 9:return s=e.sent,e.next=12,o.transact(s,{broadcast:!1,blocksBehind:3,expireSeconds:60});case 12:if((l=e.sent).serializedTransaction){e.next=15;break}throw new k.dK("User Canceled request");case 15:return c=x.ei.decode({data:l.serializedTransaction,type:x.YW}),e.next=18,S.nt.create({transaction:c},n.esrOptions);case 18:return u=e.sent,e.next=21,u.fetchAbis(n.abiCache);case 21:return d=e.sent,f=u.resolve(d,n.permissionLevel),e.abrupt("return",{signatures:l.signatures,resolved:f});case 24:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var N=n(69284),P=new URL(n(90058),n.b).toString(),T=function(e){v()(n,e);var t=y()(n);function n(){var e;return d()(this,n),e=t.call(this),_()(m()(e),"id","dfs"),_()(m()(e),"translations",{}),_()(m()(e),"config",{requiresChainSelect:!0,requiresPermissionSelect:!1}),_()(m()(e),"metadata",N.uB.from({name:"DFS Wallet",description:"",logo:P,homepage:"https://github.com/DFSNetwork/dfs-wallet-extension",download:"https://github.com/DFSNetwork/dfs-wallet-extension/releases"})),e}return h()(n,[{key:"login",value:function(e){return new Promise((function(t,n){(function(e){return Z.apply(this,arguments)})(e).then((function(e){t(e)})).catch((function(e){n(e)}))}))}},{key:"sign",value:function(e,t){return function(e,t){return R.apply(this,arguments)}(e,t)}}]),n}(N.k3),B="000d9cae502dd1cc895745e204f83cc892bc4c450f92a03ecd4fe057709853cc",$=null,D=function(){if(null===$){var e=window;$=e.metahub?e.metahub:e.scatter,console.log("metahubLoaded")}};document.addEventListener("metahubLoaded",D),document.addEventListener("scatterLoaded",D);var L=function(){function e(){d()(this,e),_()(this,"appName",""),_()(this,"options",{})}var t,n,r,o,s,l,c,u,f,p,m;return h()(e,[{key:"identity",get:function(){return $.identity}},{key:"connect",value:(m=a()(i()().mark((function e(){var t,n,r,o=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:"",n=o.length>1&&void 0!==o[1]?o[1]:{},r=window,null===$&&r.metahub&&($=r.metahub?r.metahub:r.scatter,console.log("metahubLoaded")),t&&(this.appName=t),this.options=Object.assign(this.options,n),e.abrupt("return",new Promise((function(e){if(null!==$)e(!0);else var t=0,n=setInterval((function(){null===$&&30!=++t||(clearInterval(n),e(null!==$))}),100)})));case 7:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{key:"login",value:(p=a()(i()().mark((function e(){var t,n=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=n.length>0&&void 0!==n[0]?n[0]:{}).appName||(t.appName=this.appName||(location?location.host:"")),t.chainId||(t.chainId=this.options.network?this.options.network.chainId:B),e.next=5,$.login(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"hasAccountFor",value:(f=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$.hasAccountFor(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e){return f.apply(this,arguments)})},{key:"getIdentity",value:(u=a()(i()().mark((function e(){var t,n=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,$.getIdentity(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(){return u.apply(this,arguments)})},{key:"logout",value:(c=a()(i()().mark((function e(){var t,n=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:void 0,e.next=3,$.logout(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(){return c.apply(this,arguments)})},{key:"forgetIdentity",value:(l=a()(i()().mark((function e(){var t,n=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:void 0,e.next=3,$.forgetIdentity(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(){return l.apply(this,arguments)})},{key:"getIdentityFromPermissions",value:(s=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$.getIdentityFromPermissions();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return s.apply(this,arguments)})},{key:"suggestNetwork",value:(o=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$.suggestNetwork(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"addToken",value:(r=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$.addToken(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"getArbitrarySignature",value:(n=a()(i()().mark((function e(t,n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$.getArbitrarySignature(t,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})},{key:"eos",value:function(e,t,n){return $.eos(e,t,n)}},{key:"eosHook",value:function(e){return $.eosHook(e)}},{key:"getVersion",value:(t=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$.getVersion();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"isMetahub",value:function(){return"function"==typeof $.isMetahub&&$.isMetahub()}},{key:"getProvider",value:function(){return $}}]),e}(),z=new L;function F(e){return W.apply(this,arguments)}function W(){return(W=a()(i()().mark((function e(t){var n,r,o,s,l,c,u,d;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new URL(t.chain.url),r="https"===n.protocol.replace(":","")?"https":"http",o={blockchain:t.chain.name,chainId:String(t.chain.id),host:n.hostname,port:n.port?Number(n.port):"https"===r?443:80,protocol:r},e.next=5,z.connect(t.appName,{network:o});case 5:if(e.sent){e.next=8;break}throw new Error("Unable to connect with Metahub wallet");case 8:return e.next=10,z.login();case 10:if((s=e.sent)&&s.accounts){e.next=13;break}throw new Error("Unable to retrieve account from Metahub");case 13:return l=s.accounts[0],c=r+"://"+o.host+":"+o.port,(u=new I.pc(c)).getRequiredKeys=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)}))),d=z.eos(o,I.V0,{rpc:u}),e.abrupt("return",{account:l,connector:d});case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function H(){return(H=a()(i()().mark((function e(t){var n,r,o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ui){e.next=2;break}throw new Error("No UI available");case 2:return e.next=4,F(t);case 4:if(n=e.sent,!(r=n.account).chainId){e.next=10;break}o=r.chainId,e.next=11;break;case 10:throw new Error("Unknown chain");case 11:return e.abrupt("return",{chain:x.Nz.from(o),permissionLevel:x.V5.from("".concat(r.name,"@").concat(r.authority))});case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function V(){return(V=a()(i()().mark((function e(t,n){var r,o,a,s,l,c,u,d,f;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.ui){e.next=2;break}throw new Error("No UI available");case 2:return e.next=4,F(n);case 4:return r=e.sent,o=r.connector,a=x.ei.encode({object:t.transaction}),e.next=9,o.deserializeTransactionWithActions(a.array);case 9:return s=e.sent,e.next=12,o.transact(s,{broadcast:!1,blocksBehind:3,expireSeconds:60});case 12:if((l=e.sent).serializedTransaction){e.next=15;break}throw new k.dK("User Canceled request");case 15:return c=x.ei.decode({data:l.serializedTransaction,type:x.YW}),e.next=18,S.nt.create({transaction:c},n.esrOptions);case 18:return u=e.sent,e.next=21,u.fetchAbis(n.abiCache);case 21:return d=e.sent,f=u.resolve(d,n.permissionLevel),e.abrupt("return",{signatures:l.signatures,resolved:f});case 24:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var U=new URL(n(56941),n.b).toString(),Y=function(e){v()(n,e);var t=y()(n);function n(){var e;return d()(this,n),e=t.call(this),_()(m()(e),"id","metahub"),_()(m()(e),"translations",{}),_()(m()(e),"config",{requiresChainSelect:!0,requiresPermissionSelect:!1}),_()(m()(e),"metadata",N.uB.from({name:"DFS Metahub",description:"",logo:U,homepage:"https://github.com/dfstool/metahub-next",download:"https://github.com/dfstool/metahub-next/releases"})),e}return h()(n,[{key:"login",value:function(e){return new Promise((function(t,n){(function(e){return H.apply(this,arguments)})(e).then((function(e){t(e)})).catch((function(e){n(e)}))}))}},{key:"sign",value:function(e,t){return function(e,t){return V.apply(this,arguments)}(e,t)}}]),n}(N.k3),G=n(62435);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var q="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCI+PHBhdGggZD0iTTM3OS4zOTIgNjc1LjE1N2MtOC43MDQgMC0xNy40MDgtMy40MTMtMjQuMDY0LTEwLjA2OS05NS40MDMtOTUuNDAzLTk1LjQwMy0yNTAuNzEgMC0zNDYuMjgzIDU3LjM0NC01Ny4zNDQgMTM5LjYwNS04NS4xNjIgMjA5LjQwOC03MC44MjYgNTYuMTUgMTEuNjA1IDk5LjY3IDQ4Ljk4MSAxMjIuNzEgMTA1LjQ3MkM3NTcuNzYgNDkyLjAzMiA4MzguMzE0IDU1Mi4yNzcgODgwLjI5OCA1NzZjMTYuMzg0IDkuMjE2IDIyLjE4NiAzMC4wMzcgMTIuOTcgNDYuNDIxcy0zMC4wMzcgMjIuMTg3LTQ2LjQyMSAxMi45NzFjLTU5LjU2My0zMy42MjEtMTQ2LjI2MS0xMDQuNzktMjIwLjg0My0yNTIuNDE2bC0xLjE5NC0yLjczYy0xNC41MDctMzYuMzUzLTM5LjI1NC01OC4xOTgtNzMuNTU4LTY1LjM2Ni00Ny4yNzQtOS43MjgtMTA2LjQ5NiAxMS4yNjQtMTQ3LjI4NSA1Mi4yMjQtNjguNzc5IDY4Ljc3OS02OC43NzkgMTgwLjkwNyAwIDI0OS42ODUgMTMuMzEyIDEzLjMxMiAxMy4zMTIgMzQuOTg3IDAgNDguMjk5LTcuMTY4IDYuNjU2LTE1Ljg3MiAxMC4wNy0yNC41NzYgMTAuMDd6bTI0My4zNyAyNDMuMzcxYy04LjcwMyAwLTE3LjQwNy0zLjQxMy0yNC4wNjMtMTAuMDdsLTE2NC4wMTEtMTY0LjAxYy0xMy4zMTItMTMuMzEyLTEzLjMxMi0zNC45ODcgMC00OC4yOTlzMzQuOTg3LTEzLjMxMiA0OC4yOTkgMGwxNjQuMDEgMTY0LjAxMWMxMy4zMTIgMTMuMzEyIDEzLjMxMiAzNC45ODcgMCA0OC4yOTktNi44MjYgNi42NTYtMTUuNTMgMTAuMDY5LTI0LjIzNCAxMC4wNjl6bTI5Mi41MjMtNDQ0LjQxNmMtOC4wMjEgMC0xNi4wNDItMi43My0yMi41MjgtOC41MzMtMTcuMDY2LTE1LjAxOS0zMy45NjItMzEuOTE1LTUwLjE3Ni01MC41MTgtMTMuMzEyLTE1LjM2LTI2Ljc5NC0zMi4wODUtMzkuNTk0LTQ5LjgzNC0xMS4wOTQtMTUuMTktNy42OC0zNi41MjMgNy42OC00Ny42MTZzMzYuNTIyLTcuNjggNDcuNjE2IDcuNjhjMTEuNzc2IDE2LjIxMyAyMy43MjIgMzEuMjMyIDM1LjY2OSA0NS4wNTYgMTQuMzM2IDE2LjM4NCAyOS4wMTMgMzEuMjMyIDQzLjg2MSA0NC4yMDIgMTQuMTY2IDEyLjQ1OSAxNS41MzEgMzMuOTYzIDMuMDcyIDQ4LjEyOC02LjgyNiA3LjUxLTE2LjIxMyAxMS40MzUtMjUuNiAxMS40MzV6IiBmaWxsPSIjMjlENEIwIi8+PHBhdGggZD0iTTQyOC4yMDMgOTE3LjE2M2MtOC43MDQgMC0xNy40MDgtMy40MTQtMjQuMDY0LTEwLjA3TDIyOC4wMSA3MzEuMTM2Yy03Mi4wMjItNzIuMDIxLTExMS42MTYtMTY3Ljc2NS0xMTEuNjE2LTI2OS42NTMgMC0xMDEuODg4IDM5LjU5NC0xOTcuNjMyIDExMS42MTYtMjY5LjY1NEMzMDcuMiAxMTIuNjQgNDI0LjYxOSA3MS44NTEgNTQyLjIwOCA4Mi43NzNjMTA3LjE3OSA5Ljg5OSAxOTcuODAzIDYxLjYxMSAyNTUuMzE3IDE0NS43NSAxMC41ODIgMTUuNTMgNi42NTYgMzYuODY0LTguODc0IDQ3LjQ0NS0xNS41MzEgMTAuNTgxLTM2LjY5NCA2LjY1Ni00Ny40NDYtOC44NzUtNDUuNzM4LTY2LjkwMS0xMTguNjEzLTEwOC4yMDItMjA1LjMxMi0xMTYuMjI0LTk2LjA4NS04Ljg3NC0xOTUuNDEzIDI1LjI1OS0yNTkuNDEzIDg5LjI1OWEzMTEuMTI1IDMxMS4xMjUgMCAwIDAtOTEuNjQ4IDIyMS4zNTVjMCA4My42MjYgMzIuNTk3IDE2Mi4zMDQgOTEuNjQ4IDIyMS4zNTRsMTc1Ljc4NyAxNzUuOTU4YTM0LjIwMiAzNC4yMDIgMCAwIDEtMjQuMDY0IDU4LjM2OHoiIGZpbGw9IiMyOUQ0QjAiLz48cGF0aCBkPSJNNzkxLjcyMyA4MjUuODU2Yy03LjUxIDAtMTUuMDE5LTIuMzktMjEuMzM0LTcuNTEtMTMzLjYzMi0xMDcuNTItMjQ4LjgzMi0yMzYuODg1LTMwOC4wNTMtMzQ1Ljk0LTkuMDQ1LTE2LjU1NS0yLjkwMS0zNy4zNzcgMTMuNjUzLTQ2LjI1MSAxNi41NTUtOC44NzUgMzcuMzc2LTIuOTAyIDQ2LjI1MSAxMy42NTMgNTUuMTI1IDEwMS41NDcgMTYzLjg0IDIyMy4yMzIgMjkwLjgxNiAzMjUuMjkgMTQuNjc3IDExLjc3NyAxNy4wNjcgMzMuMjggNS4xMiA0Ny45NTgtNi40ODUgOC4zNjMtMTYuMzg0IDEyLjgtMjYuNDUzIDEyLjh6IiBmaWxsPSIjMjlENEIwIi8+PC9zdmc+",X="https://dfstool.github.io/static/logo.0bd19ec7.png",K=localStorage.getItem("passkeyPublicKey");function J(e,t,n){return Q.apply(this,arguments)}function Q(){return Q=a()(i()().mark((function e(t,n,r){var o,a,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ui){e.next=3;break}return r(new Error("No UI available")),e.abrupt("return");case 3:o=0,a=null,s=function e(i){var s=i.data;if(s&&"DFS"===s.channel){var l=JSON.parse(s.data),c=l.status,u=l.message;if("login"===s.type)if("error"===c)a&&a.close(),clearInterval(o),window.removeEventListener("message",e),r(new Error(u));else if("ready"===c)a.postMessage({channel:"DFS",type:"login",data:JSON.stringify({appName:"DFSTool",logo:X})},"*");else if("success"===c){var d=l.data,f=d.channel,h=d.name,p=d.authority,m=d.publicKey;if("webauthn"!==f)a.close(),clearInterval(o),window.removeEventListener("message",e),r(new Error("非Passkey账号"));else{var g=x.V5.from("".concat(h,"@").concat(p)),v=t.chain.id;K=m,localStorage.setItem("passkeyPublicKey",m),a.close(),clearInterval(o),window.removeEventListener("message",e),n({chain:v,permissionLevel:g})}}}},window.addEventListener("message",s,!1),"menubar=1,resizable=1,width=400,height=800","https://dfs.land/dappAuth",!(a=window.open("https://dfs.land/dappAuth","_blank","menubar=1,resizable=1,width=400,height=800"))||a&&(null===a.window||a.closed)?(window.removeEventListener("message",s),r(new Error("Open https://dfs.land/dappAuth error"))):o=setInterval((function(){(!a||a&&(null===a.window||a.closed))&&(clearInterval(o),window.removeEventListener("message",s),r(new Error("Cancel")))}),1e3);case 11:case"end":return e.stop()}}),e)}))),Q.apply(this,arguments)}function ee(e,t,n,r){return te.apply(this,arguments)}function te(){return te=a()(i()().mark((function e(t,n,r,o){var s,l,c;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.ui||o(new Error("No UI available")),s=0,l=null,c=function(){var e=a()(i()().mark((function e(a){var u,d,f,h,p,m,g,v,b,y,w,_;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(u=a.data)||"DFS"!==u.channel){e.next=35;break}if(d=JSON.parse(u.data),f=d.status,h=d.message,"transact"!==u.type){e.next=35;break}if("error"!==f){e.next=14;break}l&&l.close(),clearInterval(s),window.removeEventListener("message",c),p=h,h.hasOwnProperty("message")&&(p=h.message),o(new k.dK(p)),e.next=35;break;case 14:if("ready"!==f){e.next=19;break}m=JSON.parse(JSON.stringify(t.resolvedTransaction)),l.postMessage({channel:"DFS",type:"transact",data:JSON.stringify({appName:"DFSTool",logo:X,transaction:m,options:{useFreeCpu:!1,broadcast:!1,blocksBehind:3,expireSeconds:60,requiredKeys:[K]}})},"*"),e.next=35;break;case 19:if("success"!==f){e.next=35;break}return(g=d.data).serializedTransaction||(l.close(),clearInterval(s),window.removeEventListener("message",c),o(new k.dK("User Canceled request"))),v=Uint8Array.from(Object.values(g.serializedTransaction)),b=x.ei.decode({data:v,type:x.YW}),e.next=26,S.nt.create({transaction:b},n.esrOptions);case 26:return y=e.sent,e.next=29,y.fetchAbis(n.abiCache);case 29:w=e.sent,_=y.resolve(w,n.permissionLevel),l.close(),clearInterval(s),window.removeEventListener("message",c),r({signatures:g.signatures,resolved:_});case 35:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),window.addEventListener("message",c,!1),"menubar=1,resizable=1,width=500,height=800","https://dfs.land/dappAuth/transact",!(l=window.open("https://dfs.land/dappAuth/transact","_blank","menubar=1,resizable=1,width=500,height=800"))||l&&(null===l.window||l.closed)?(window.removeEventListener("message",c),o(new k.dK("Open https://dfs.land/dappAuth/transact error"))):s=setInterval((function(){(!l||l&&(null===l.window||l.closed))&&(clearInterval(s),window.removeEventListener("message",c),o(new k.dK("Cancel")))}),1e3);case 9:case"end":return e.stop()}}),e)}))),te.apply(this,arguments)}var ne=function(e){v()(o,e);var t,n,r=y()(o);function o(){var e;d()(this,o);for(var t=arguments.length,n=new Array(t),i=0;i{const r=new this.WebSocket(this.url);r.onmessage=e=>{if("undefined"!=typeof Blob&&e.data instanceof Blob){const t=new FileReader;t.onload=()=>{this.handleMessage(new Uint8Array(t.result))},t.onerror=()=>{this.emit("error",new le("Could not read message"))},t.readAsArrayBuffer(e.data)}else if("string"==typeof e.data)this.handleMessage((new TextEncoder).encode(e.data));else if(void 0!==ce.Buffer&&(e.data instanceof ce.Buffer||Array.isArray(e.data))){let t=e.data;ce.Buffer.isBuffer(t)||(t=ce.Buffer.concat(t)),this.handleMessage(new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}else e.data instanceof Uint8Array?this.handleMessage(e.data):e.data instanceof ArrayBuffer?this.handleMessage(new Uint8Array(e.data)):this.emit("error",new le("Unhandled event data type"))},r.onerror=e=>{this.socket===r&&this.active&&this.emit("error",new se(e))},r.onopen=()=>{t=0,this.emit("connect")},r.onclose=()=>{var r;this.active&&(clearTimeout(this.timer),this.timer=setTimeout(n,(r=t++,Math.min(Math.pow(7*r,2),5e3)))),this.socket=void 0,clearTimeout(e),this.reconnectTimer&&clearInterval(this.reconnectTimer),this.emit("disconnect")},this.setupReconnectionTimer();const i=r;"function"==typeof i.on&&"function"==typeof i.terminate&&i.on("ping",(()=>{clearTimeout(e),e=setTimeout((()=>{i.terminate()}),15e3)})),this.socket=r};n()}disconnect(){this.active=!1,!this.socket||this.socket.readyState!==this.WebSocket.OPEN&&this.socket.readyState!==this.WebSocket.CONNECTING||this.socket.close(1e3)}get isConnected(){return this.active&&this.socket?.readyState==this.WebSocket.OPEN}handleMessage(e){let t;switch(66===e[0]&&66===e[1]&&1===e[2]&&(this.socket?.send(new Uint8Array([66,66,2,e[3]])),e=e.subarray(4)),this.encoding){case ue.binary:t=e;break;case ue.text:t=(new TextDecoder).decode(e);break;case ue.json:try{t=JSON.parse((new TextDecoder).decode(e))}catch(e){return void this.emit("error",new le("Unable to decode JSON",e))}}this.emit("message",t)}setupReconnectionTimer(){this.reconnectTimer=setInterval((()=>{this.socket?.close(1e3)}),6e5)}}const fe=globalThis||window;var he;!function(e){e.buffered="buffered",e.delivered="delivered"}(he||(he={}));var pe=function(){var e,t,n=!1;function r(n,r){var i=e[(t[n]+t[r])%255];return 0!==n&&0!==r||(i=0),i}var i,o,a,s,l=!1;function c(){function c(n){var r,i,o;for(i=o=function(n){var r=e[255-t[n]];return 0===n&&(r=0),r}(n),r=0;r<4;r++)o^=i=255&(i<<1|i>>>7);return o^=99}n||function(){e=[],t=[];var r,i,o=1;for(r=0;r<255;r++)e[r]=o,i=128&o,o<<=1,o&=255,128===i&&(o^=27),o^=e[r],t[e[r]]=r;e[255]=e[0],t[0]=0,n=!0}(),i=[],o=[],a=[[],[],[],[]],s=[[],[],[],[]];for(var u=0;u<256;u++){var d=c(u);i[u]=d,o[d]=u,a[0][u]=r(2,d)<<24|d<<16|d<<8|r(3,d),s[0][d]=r(14,u)<<24|r(9,u)<<16|r(13,u)<<8|r(11,u);for(var f=1;f<4;f++)a[f][u]=a[f-1][u]>>>8|a[f-1][u]<<24,s[f][d]=s[f-1][d]>>>8|s[f-1][d]<<24}l=!0}var u=function(e,t){l||c();var n=new Uint32Array(t);n.set(i,512),n.set(o,768);for(var r=0;r<4;r++)n.set(a[r],4096+1024*r>>2),n.set(s[r],8192+1024*r>>2);var u=function(e,t,n){"use asm";var r=0,i=0,o=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,h=0,p=0,m=0,g=0,v=0,b=0,y=0,w=0,_=0,x=0,k=0;var S=new e.Uint32Array(n),C=new e.Uint8Array(n);function M(e,t,n,s,l,c,u,d){e=e|0;t=t|0;n=n|0;s=s|0;l=l|0;c=c|0;u=u|0;d=d|0;var f=0,h=0,p=0,m=0,g=0,v=0,b=0,y=0;f=n|0x400,h=n|0x800,p=n|0xc00;l=l^S[(e|0)>>2],c=c^S[(e|4)>>2],u=u^S[(e|8)>>2],d=d^S[(e|12)>>2];for(y=16;(y|0)<=s<<4;y=y+16|0){m=S[(n|l>>22&1020)>>2]^S[(f|c>>14&1020)>>2]^S[(h|u>>6&1020)>>2]^S[(p|d<<2&1020)>>2]^S[(e|y|0)>>2],g=S[(n|c>>22&1020)>>2]^S[(f|u>>14&1020)>>2]^S[(h|d>>6&1020)>>2]^S[(p|l<<2&1020)>>2]^S[(e|y|4)>>2],v=S[(n|u>>22&1020)>>2]^S[(f|d>>14&1020)>>2]^S[(h|l>>6&1020)>>2]^S[(p|c<<2&1020)>>2]^S[(e|y|8)>>2],b=S[(n|d>>22&1020)>>2]^S[(f|l>>14&1020)>>2]^S[(h|c>>6&1020)>>2]^S[(p|u<<2&1020)>>2]^S[(e|y|12)>>2];l=m,c=g,u=v,d=b}r=S[(t|l>>22&1020)>>2]<<24^S[(t|c>>14&1020)>>2]<<16^S[(t|u>>6&1020)>>2]<<8^S[(t|d<<2&1020)>>2]^S[(e|y|0)>>2],i=S[(t|c>>22&1020)>>2]<<24^S[(t|u>>14&1020)>>2]<<16^S[(t|d>>6&1020)>>2]<<8^S[(t|l<<2&1020)>>2]^S[(e|y|4)>>2],o=S[(t|u>>22&1020)>>2]<<24^S[(t|d>>14&1020)>>2]<<16^S[(t|l>>6&1020)>>2]<<8^S[(t|c<<2&1020)>>2]^S[(e|y|8)>>2],a=S[(t|d>>22&1020)>>2]<<24^S[(t|l>>14&1020)>>2]<<16^S[(t|c>>6&1020)>>2]<<8^S[(t|u<<2&1020)>>2]^S[(e|y|12)>>2]}function E(e,t,n,d){e=e|0;t=t|0;n=n|0;d=d|0;M(0x0000,0x0800,0x1000,k,s^e,l^t,c^n,u^d);s=r,l=i,c=o,u=a}function A(e,t,n,d){e=e|0;t=t|0;n=n|0;d=d|0;var f=0;M(0x0400,0x0c00,0x2000,k,e,d,n,t);f=i,i=a,a=f;r=r^s,i=i^l,o=o^c,a=a^u;s=e,l=t,c=n,u=d}function I(e,t,n,r){e=e|0;t=t|0;n=n|0;r=r|0;var i=0,o=0,a=0,d=0,f=0,h=0,p=0,m=0,g=0,v=0;e=e^s,t=t^l,n=n^c,r=r^u;i=y|0,o=w|0,a=_|0,d=x|0;for(;(g|0)<128;g=g+1|0){if(i>>>31){f=f^e,h=h^t,p=p^n,m=m^r}i=i<<1|o>>>31,o=o<<1|a>>>31,a=a<<1|d>>>31,d=d<<1;v=r&1;r=r>>>1|n<<31,n=n>>>1|t<<31,t=t>>>1|e<<31,e=e>>>1;if(v)e=e^0xe1000000}s=f,l=h,c=p,u=m}function O(e){e=e|0;k=e}function j(e,t,n,s){e=e|0;t=t|0;n=n|0;s=s|0;r=e,i=t,o=n,a=s}function Z(e,t,n,r){e=e|0;t=t|0;n=n|0;r=r|0;s=e,l=t,c=n,u=r}function R(e,t,n,r){e=e|0;t=t|0;n=n|0;r=r|0;d=e,f=t,h=n,p=r}function N(e,t,n,r){e=e|0;t=t|0;n=n|0;r=r|0;m=e,g=t,v=n,b=r}function P(e,t,n,r){e=e|0;t=t|0;n=n|0;r=r|0;p=~b&p|b&r,h=~v&h|v&n,f=~g&f|g&t,d=~m&d|m&e}function T(e){e=e|0;if(e&15)return-1;C[e|0]=r>>>24,C[e|1]=r>>>16&255,C[e|2]=r>>>8&255,C[e|3]=r&255,C[e|4]=i>>>24,C[e|5]=i>>>16&255,C[e|6]=i>>>8&255,C[e|7]=i&255,C[e|8]=o>>>24,C[e|9]=o>>>16&255,C[e|10]=o>>>8&255,C[e|11]=o&255,C[e|12]=a>>>24,C[e|13]=a>>>16&255,C[e|14]=a>>>8&255,C[e|15]=a&255;return 16}function B(e){e=e|0;if(e&15)return-1;C[e|0]=s>>>24,C[e|1]=s>>>16&255,C[e|2]=s>>>8&255,C[e|3]=s&255,C[e|4]=l>>>24,C[e|5]=l>>>16&255,C[e|6]=l>>>8&255,C[e|7]=l&255,C[e|8]=c>>>24,C[e|9]=c>>>16&255,C[e|10]=c>>>8&255,C[e|11]=c&255,C[e|12]=u>>>24,C[e|13]=u>>>16&255,C[e|14]=u>>>8&255,C[e|15]=u&255;return 16}function $(e,t,n){e=e|0;t=t|0;n=n|0;var s=0;if(t&15)return-1;while((n|0)>=16){L[e&7](C[t|0]<<24|C[t|1]<<16|C[t|2]<<8|C[t|3],C[t|4]<<24|C[t|5]<<16|C[t|6]<<8|C[t|7],C[t|8]<<24|C[t|9]<<16|C[t|10]<<8|C[t|11],C[t|12]<<24|C[t|13]<<16|C[t|14]<<8|C[t|15]);C[t|0]=r>>>24,C[t|1]=r>>>16&255,C[t|2]=r>>>8&255,C[t|3]=r&255,C[t|4]=i>>>24,C[t|5]=i>>>16&255,C[t|6]=i>>>8&255,C[t|7]=i&255,C[t|8]=o>>>24,C[t|9]=o>>>16&255,C[t|10]=o>>>8&255,C[t|11]=o&255,C[t|12]=a>>>24,C[t|13]=a>>>16&255,C[t|14]=a>>>8&255,C[t|15]=a&255;s=s+16|0,t=t+16|0,n=n-16|0}return s|0}function D(e,t,n){e=e|0;t=t|0;n=n|0;var r=0;if(t&15)return-1;while((n|0)>=16){z[e&1](C[t|0]<<24|C[t|1]<<16|C[t|2]<<8|C[t|3],C[t|4]<<24|C[t|5]<<16|C[t|6]<<8|C[t|7],C[t|8]<<24|C[t|9]<<16|C[t|10]<<8|C[t|11],C[t|12]<<24|C[t|13]<<16|C[t|14]<<8|C[t|15]);r=r+16|0,t=t+16|0,n=n-16|0}return r|0}var L=[E,E,E,A,A,A,A,A];var z=[E,E];return{set_rounds:O,set_state:j,set_iv:Z,set_nonce:R,set_mask:N,set_counter:P,get_state:T,get_iv:B,cipher:$,mac:D}}({Uint8Array:Uint8Array,Uint32Array:Uint32Array},e,t);return u.set_key=function(e,t,r,o,a,l,c,d,f){var h=n.subarray(0,60),p=n.subarray(256,316);h.set([t,r,o,a,l,c,d,f]);for(var m=e,g=1;m<4*e+28;m++){var v=h[m-1];(m%e==0||8===e&&m%e==4)&&(v=i[v>>>24]<<24^i[v>>>16&255]<<16^i[v>>>8&255]<<8^i[255&v]),m%e==0&&(v=v<<8^v>>>24^g<<24,g=g<<1^(128&g?27:0)),h[m]=h[m-e]^v}for(var b=0;b=m-4?v:s[0][i[v>>>24]]^s[1][i[v>>>16&255]]^s[2][i[v>>>8&255]]^s[3][i[255&v]]}u.set_rounds(e+5)},u};return u.ENC={CBC:2},u.DEC={CBC:3},u.MAC={CBC:0},u.HEAP_DATA=16384,u}();function me(e,t,n,r,i){const o=e.length-t,a=oe+t.length),0),n=new Uint8Array(t);let r=0;for(let t=0;t>2,o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12),i>16?o.getUint32(16):0,i>16?o.getUint32(20):0,i>24?o.getUint32(24):0,i>24?o.getUint32(28):0),void 0!==t){if(16!==t.length)throw new TypeError("illegal iv size");const e=new DataView(t.buffer,t.byteOffset,t.byteLength);this.asm.set_iv(e.getUint32(0),e.getUint32(4),e.getUint32(8),e.getUint32(12))}else this.asm.set_iv(0,0,0,0);this.padding=n}AES_Encrypt_process(e){if(!ge(e))throw new TypeError("data isn't of expected type");const t=this.asm,n=this.heap,r=pe.ENC[this.mode],i=pe.HEAP_DATA;let o=this.pos,a=this.len,s=0,l=e.length||0,c=0;let u=0;const d=new Uint8Array(a+l&-16);for(;l>0;)u=me(n,o+a,e,s,l),a+=u,s+=u,l-=u,u=t.cipher(r,i+o,a),u&&d.set(n.subarray(o,o+u),c),c+=u,u0;)f=me(n,o+a,e,s,l),a+=f,s+=f,l-=f,f=t.cipher(r,i+o,a-(l?0:d)),f&&h.set(n.subarray(o,o+f),c),c+=f,f0){if(o%16)throw new Error("data length must be a multiple of the block size");if(e.cipher(n,r+i,o),this.padding){const e=t[i+a-1];if(e<1||e>16||e>a)throw new Error("bad padding");let n=0;for(let r=e;r>1;r--)n|=e^t[i+a-r];if(n)throw new Error("bad padding");a-=e}}const s=new Uint8Array(a);return a>0&&s.set(t.subarray(i,i+a)),this.pos=0,this.len=0,s}}class ye{constructor(e,t,n=!0,r){this.aes=r||new be(e,t,n,"CBC")}static encrypt(e,t,n=!0,r){return new ye(t,r,n).encrypt(e)}static decrypt(e,t,n=!0,r){return new ye(t,r,n).decrypt(e)}encrypt(e){return ve(this.aes.AES_Encrypt_process(e),this.aes.AES_Encrypt_finish())}decrypt(e){return ve(this.aes.AES_Decrypt_process(e),this.aes.AES_Decrypt_finish())}}function we(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}let _e=class extends x.AU{};we([x.AU.field("public_key")],_e.prototype,"from",void 0),we([x.AU.field("uint64")],_e.prototype,"nonce",void 0),we([x.AU.field("bytes")],_e.prototype,"ciphertext",void 0),we([x.AU.field("uint32")],_e.prototype,"checksum",void 0),_e=we([x.AU.type("sealed_message")],_e);let xe=class extends x.AU{};we([x.AU.field("name")],xe.prototype,"session_name",void 0),we([x.AU.field("public_key")],xe.prototype,"request_key",void 0),we([x.AU.field("string",{extension:!0})],xe.prototype,"user_agent",void 0),xe=we([x.AU.type("link_create")],xe);let ke=class extends x.AU{};we([x.AU.field("time_point_sec")],ke.prototype,"expiration",void 0),ke=we([x.AU.type("link_info")],ke);let Se=class extends x.AU{};we([x.AU.field("public_key")],Se.prototype,"from",void 0),we([x.AU.field("uint64")],Se.prototype,"nonce",void 0),we([x.AU.field("bytes")],Se.prototype,"ciphertext",void 0),we([x.AU.field("uint32")],Se.prototype,"checksum",void 0),Se=we([x.AU.type("buoy_message")],Se);let Ce=class extends x.AU{};we([x.AU.field("name")],Ce.prototype,"session_name",void 0),we([x.AU.field("public_key")],Ce.prototype,"request_key",void 0),we([x.AU.field("string",{extension:!0})],Ce.prototype,"user_agent",void 0),Ce=we([x.AU.type("buoy_session")],Ce);let Me=class extends x.AU{};async function Ee(e,t,n){const r=await(i={...e,WebSocket:t||WebSocket},new Promise(((e,t)=>{const n=new de({...i,autoConnect:!0});let r,a;const s=(i,o)=>{clearTimeout(r),i?t(i):e(o),n.disconnect()};o&&(o.cancel=()=>{s(new le("Cancelled",a))}),i.timeout&&(r=setTimeout((()=>{s(new le("Timed out",a))}),i.timeout)),n.on("error",(e=>{e instanceof se?a=e:s(e)})),n.once("message",(e=>{s(void 0,e)}))})));var i,o;if(!r)throw new Error(r.rejected);if("string"==typeof r.rejected)throw new Error(r.rejected);const a=JSON.parse(r);if(void 0===a.sa||void 0===a.sp||void 0===a.cid)throw new Error(n("error.cancelled",{default:"The request was cancelled from Anchor."}));return a}function Ae(){let e,t="";const n="0123456789abcdef";for(e=0;e<36;e+=1)switch(e){case 8:case 13:case 18:case 23:t+="-";break;case 14:t+="4";break;case 19:t+=n[4*Math.random()|8];break;default:t+=n[16*Math.random()|0]}return t}function Ie(){if(/CriOS/.test(navigator.userAgent))return"googlechrome://";if(/FxiOS/.test(navigator.userAgent))return"firefox:://";if(Oe()&&je())return"brave://";if(Oe()){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let t=window.location.href.split("#")[0]+"#";for(let n=0;n<8;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}return Ze()&&/Firefox/i.test(navigator.userAgent)?"android-intent://org.mozilla.firefox":Ze()&&/Edg/.test(navigator.userAgent)?"android-intent://com.microsoft.emmx":Ze()&&(/OPR/.test(navigator.userAgent)||/Opera/.test(navigator.userAgent))?"android-intent://com.opera.browser":Ze()&&je()?"android-intent://com.brave.browser":Ze()&&(/wv/.test(navigator.userAgent)||/Android.*AppleWebKit/.test(navigator.userAgent))?"android-intent://webview":Ze()&&/Chrome\/[.0-9]* Mobile/i.test(navigator.userAgent)?"android-intent://com.android.chrome":window.location.href}function Oe(){return/iP(ad|od|hone)/i.test(navigator.userAgent)}function je(){return navigator.brave&&"function"==typeof navigator.brave.isBrave}function Ze(){return/Android/.test(navigator.userAgent)}function Re(){let e="@wharfkit/protocol-esr 1.2.1";return"undefined"!=typeof navigator&&(e+=" "+navigator.userAgent),e}function Ne(e){const{service:t,channel:n}=e;return{url:`${t}/${n}`,background:!0}}function Pe(e){return{service:e,channel:Ae()}}function Te(e){const t=[];let n=0,r=e.sig;for(;r;)t.push(x.Pc.from(r)),r=e[`sig${n}`],n++;return t}we([x.AU.field("time_point_sec")],Me.prototype,"expiration",void 0),Me=we([x.AU.type("buoy_info")],Me);var Be={link:"启动Anchor",body:"点击下方按钮打开DFS Anchor桌面钱包。",title:"连接Anchor"},$e={cancelled:"请求已从Anchor取消。",not_completed:"此请求未完成。",invalid_response:"无效的Anchor响应,必须包含link_ch, link_key, link_name和cid标识符。",expired:"请求已过期,请重试。"},De={await:"等待Anchor响应",link:"手动触发",label:"手动或使用其他设备签约",body:'请在"{{channelName}}"上打开您的Anchor钱包以浏览并批准此交易。',title:"完成使用Anchor"},Le={en:{login:{title:"Connect with Anchor",body:"Click the button below to open DFS Anchor Wallet on this device.",link:"Launch Anchor"},transact:{title:"Complete using Anchor",body:'Please open your Anchor Wallet on "{{channelName}}" to review and approve this transaction.',label:"Sign manually or with another device",link:"Trigger Manually",await:"Waiting for response from Anchor"},error:{expired:"The request expired, please try again.",invalid_response:"Invalid response from Anchor, must contain link_ch, link_key, link_name and cid flags.",not_completed:"The request was not completed.",cancelled:"The request was cancelled from Anchor."}},ko:{},zh:{anchor:{login:Be,error:$e,transact:De}},"zh-Hans":{anchor:{login:Be,error:$e,transact:De}},"zh-Hant":{anchor:{}}};class ze extends N.k3{constructor(e){super(),this.id="anchor",this.translations=Le,this.config={requiresChainSelect:!0,requiresPermissionSelect:!1},this.metadata=N.uB.from({name:"DFS Anchor",description:"",logo:k.TR.from({dark:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB3aWR0aD0iMTYwIiBoZWlnaHQ9IjE2MCIgdmlld0JveD0iMCAwIDI1NiAyNTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJtYXRyaXgoMS40NCwgMCwgMCwgMS40NCwgLTguNTAxOTI1LCAtNTcuMDc0NTcpIiBzdHlsZT0iIj4KICAgIDx0aXRsZT5XaGl0ZTwvdGl0bGU+CiAgICA8Y2lyY2xlIGN4PSI5NC43OTMiIGN5PSIxMjguNTI0IiByPSI4MCIgZmlsbD0iI0ZCRkRGRiIvPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0gOTQuNzk5IDc4LjUyNCBDIDk3LjA5OCA3OC41MjQgOTkuMTk1IDc5LjgzNyAxMDAuMTk4IDgxLjkwNiBMIDEyNC4yMDQgMTMxLjQwNiBMIDEyNC43NDYgMTMyLjUyNCBMIDExMS40MDkgMTMyLjUyNCBMIDEwNy41MyAxMjQuNTI0IEwgODIuMDY5IDEyNC41MjQgTCA3OC4xODkgMTMyLjUyNCBMIDY0Ljg1MyAxMzIuNTI0IEwgNjUuMzk1IDEzMS40MDYgTCA4OS40MDEgODEuOTA2IEMgOTAuNDA0IDc5LjgzNyA5Mi41MDEgNzguNTI0IDk0Ljc5OSA3OC41MjQgWiBNIDg2LjkxOSAxMTQuNTI0IEwgMTAyLjY4IDExNC41MjQgTCA5NC43OTkgOTguMjc0IEwgODYuOTE5IDExNC41MjQgWiBNIDExMi43OTMgMTQ5LjUyNCBMIDEyNC43OTggMTQ5LjUyNCBDIDEyNC40MzcgMTY1LjY3NiAxMTEuMDY3IDE3OC41MjQgOTQuNzk5IDE3OC41MjQgQyA3OC41MzIgMTc4LjUyNCA2NS4xNjIgMTY1LjY3NiA2NC44MDEgMTQ5LjUyNCBMIDc2LjgwNiAxNDkuNTI0IEMgNzcuMDg3IDE1Ni44NzggODEuOTc0IDE2My4xNTUgODguNzkzIDE2NS41MiBMIDg4Ljc5MyAxNDEuNTI0IEMgODguNzkzIDEzOC4yMSA5MS40OCAxMzUuNTI0IDk0Ljc5MyAxMzUuNTI0IEMgOTguMTA3IDEzNS41MjQgMTAwLjc5MyAxMzguMjEgMTAwLjc5MyAxNDEuNTI0IEwgMTAwLjc5MyAxNjUuNTI0IEMgMTA3LjYyIDE2My4xNjIgMTEyLjUxMSAxNTYuODgzIDExMi43OTMgMTQ5LjUyNCBaIiBmaWxsPSIjMzY1MEEyIi8+CiAgPC9nPgo8L3N2Zz4=",light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYwIiBoZWlnaHQ9IjE2MCIgdmlld0JveD0iMCAwIDE2MCAxNjAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxjaXJjbGUgY3g9IjgwIiBjeT0iODAiIHI9IjgwIiBmaWxsPSIjMzY1MEEyIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNODAuMDA2MyAzMEM4Mi4zMDUxIDMwIDg0LjQwMTkgMzEuMzEzNCA4NS40MDUgMzMuMzgxOEwxMDkuNDExIDgyLjg4MjJMMTA5Ljk1MyA4NEg5Ni42MTYzTDkyLjczNjYgNzZINjcuMjc1OUw2My4zOTYxIDg0SDUwLjA1OTRMNTAuNjAxNyA4Mi44ODE4TDc0LjYwNzcgMzMuMzgxOEM3NS42MTA4IDMxLjMxMzQgNzcuNzA3NSAzMCA4MC4wMDYzIDMwWk03Mi4xMjU2IDY2SDg3Ljg4N0w4MC4wMDYzIDQ5Ljc1MDFMNzIuMTI1NiA2NlpNOTcuOTk5NSAxMDFIMTEwLjAwNUMxMDkuNjQ0IDExNy4xNTIgOTYuMjczOCAxMzAgODAuMDA2MyAxMzBDNjMuNzM4OCAxMzAgNTAuMzY4NiAxMTcuMTUyIDUwLjAwNzggMTAxSDYyLjAxMzFDNjIuMjk0MSAxMDguMzU0IDY3LjE4MDQgMTE0LjYzMSA3NC4wMDAzIDExNi45OTZWOTNDNzQuMDAwMyA4OS42ODYzIDc2LjY4NjYgODcgODAuMDAwMyA4N0M4My4zMTQgODcgODYuMDAwMyA4OS42ODYzIDg2LjAwMDMgOTNWMTE3QzkyLjgyNjUgMTE0LjYzOCA5Ny43MTgzIDEwOC4zNTkgOTcuOTk5NSAxMDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K"}),homepage:"https://github.com/dfstool/anchor",download:"https://github.com/dfstool/anchor/releases"}),this.buoyUrl=e?.buoyUrl||"https://cb.anchor.link",this.buoyWs=e?.buoyWs}login(e){return new Promise(((t,n)=>{this.handleLogin(e).then((e=>{t(e)})).catch((e=>{n(e)}))}))}async handleLogin(e){if(!e.ui)throw new Error("No UI available");e.ui.addTranslations(this.translations);const t=e.ui.getTranslate(this.id),{callback:n,request:r,sameDeviceRequest:i,requestKey:o,privateKey:a}=await async function(e,t){const n=x._q.generate("K1"),r=n.toPublic(),i=Ce.from({session_name:"Anchor Session",request_key:r,user_agent:Re()}),o=!(e.chain||1===e.chains.length),a=Pe(t),s=S.nt.identity({callback:Ne(a),scope:String(e.appName),chainId:o?null:e.chain?.id,chainIds:o?e.chains.map((e=>e.id)):void 0,info:{link:i,scope:String(e.appName)}},e.esrOptions),l=s.clone(),c=Ie();return l.setInfoKey("same_device",!0),l.setInfoKey("return_path",c),{callback:a,request:s,sameDeviceRequest:l,requestKey:r,privateKey:n}}(e,this.buoyUrl),s=e.ui?.prompt({title:t("login.title",{default:"Connect with Anchor"}),body:t("login.body",{default:"Scan with Anchor on your mobile device or click the button below to open on this device."}),elements:[{type:"link",label:t("login.link",{default:"Launch Anchor"}),data:{href:i.encode(!0,!1,"esr:"),label:t("login.link",{default:"Launch Anchor"}),variant:"primary"}}]});s.catch((e=>{if(e instanceof k.dK)throw e}));const l=await Ee(n,this.buoyWs,t);if(async function(e,t){if(!e.sig||0===e.sig.length)throw new Error("Invalid response, must have at least one signature");let n;if(!t.chain&&t.chains.length>1){if(!e.cid)throw new Error("Multi chain response payload must specify resolved chain id (cid)")}else if(n=t.chain||t.chains[0],e.cid&&String(n.id)!==e.cid)throw new Error("Got response for wrong chain id")}(l,e),!l.cid||!l.sa||!l.sp)throw new Error("Invalid callback response");if(l.link_ch&&l.link_key&&l.link_name){this.data.requestKey=o,this.data.privateKey=a,this.data.signerKey=l.link_key&&x.nh.from(l.link_key),this.data.channelUrl=l.link_ch,this.data.channelName=l.link_name;try{if(l.link_meta){const e=JSON.parse(l.link_meta);this.data.sameDevice=e.sameDevice,this.data.launchUrl=e.launchUrl,this.data.triggerUrl=e.triggerUrl}}catch(e){}}return{chain:x.Nz.from(l.cid),permissionLevel:x.V5.from({actor:l.sa,permission:l.sp})}}sign(e,t){return this.handleSigningRequest(e,t)}async handleSigningRequest(e,t){if(!t.ui)throw new Error("No UI available");const n=t.ui.getTranslate(this.id),r=e.transaction.expiration.toDate(),i=new Date,o=Math.floor(r.getTime()-i.getTime()),a=await t.createRequest({transaction:e.transaction});a.setInfoKey("link",ke.from({expiration:r}));const s=function(e,t){const n=Pe(t);return e.setCallback(`${n.service}/${n.channel}`,!0),n}(a,this.buoyUrl),l=(a.encode(!0,!1),!1!==this.data.sameDevice),c=a.clone(),u=Ie();c.setInfoKey("same_device",!0),c.setInfoKey("return_path",u),this.data.sameDevice&&(this.data.launchUrl?window.location.href=this.data.launchUrl:Oe()&&(window.location.href="anchor://link"));const d=t.ui.prompt({title:n("transact.title",{default:"Complete using Anchor"}),body:n("transact.body",{channelName:this.data.channelName,default:`Please open your Anchor Wallet on "${this.data.channelName}" to review and approve this transaction.`}),elements:[{type:"countdown",data:{label:n("transact.await",{default:"Waiting for response from Anchor"}),end:r.toISOString()}},{type:"button",label:n("transact.label",{default:"Sign manually or with another device"}),data:{onClick:l?()=>window.location.href=c.encode():()=>{t.ui?.prompt({title:n("transact.sign_manually.title",{default:"Sign manually"}),body:n("transact.sign_manually.body",{default:"Use the button to open it here."}),elements:[{type:"link",label:n("transact.sign_manually.link.title",{default:"Open Anchor"}),data:{href:String(c),label:n("transact.sign_manually.link.title",{default:"Open Anchor"})}}]})},label:n("transact.label",{default:"Sign manually or with another device"})}}]}),f=setTimeout((()=>{if(!t.ui)throw new Error("No UI available");d.cancel(n("error.expired",{default:"The request expired, please try again."}))}),o);d.catch((()=>clearTimeout(f)));const h=Ee(s,this.buoyWs,n),p=new URL(this.data.channelUrl).origin,m=new URL(this.data.channelUrl).pathname.substring(1),g=function(e,t,n,r){const i=t.sharedSecret(n);r||(r=x.zM.random());const o=x.W4.hash(x.ei.encode({object:r}).appending(i.array)),a=new ye(o.array.slice(0,32),o.array.slice(32,48)),s=x.Jj.from(a.encrypt(x.Jj.from(e,"utf8").array)),l=new DataView(x.Nz.hash(o.array).array.buffer).getUint32(0,!0);return _e.from({from:t.toPublic(),nonce:r,ciphertext:s,checksum:l})}((this.data.sameDevice?c:a).encode(!0,!1,"esr:"),x._q.from(this.data.privateKey),x.nh.from(this.data.signerKey));!async function(e,t){const n=t.fetch||fe.fetch,r=`${t.service.replace(/^ws/,"http").replace(/\/$/,"")}/${t.channel}`,i={};if(t.requireDelivery){if(!t.timeout)throw new Error("requireDelivery can only be used with timeout");i["X-Buoy-Wait"]=`${Math.ceil(t.timeout/1e3)}`}else t.timeout&&(i["X-Buoy-Soft-Wait"]=`${Math.ceil(t.timeout/1e3)}`);let o;o="string"==typeof e||e instanceof Uint8Array?e:JSON.stringify(e);const a=await n(r,{method:"POST",body:o,headers:i});if(2!==Math.floor(a.status/100))throw 408===a.status?new Error("Unable to deliver message"):410===a.status?new Error("Request cancelled"):new Error(`Unexpected status code ${a.status}`);a.headers.get("X-Buoy-Delivery")||he.buffered}(x.ei.encode({object:g}).array,{service:p,channel:m});const v=await Promise.race([h,d]).finally((()=>{clearTimeout(f)}));if("tx"in v&&Te(v).length>0){const e=await S.jo.fromPayload(v,t.esrOptions);return{signatures:Te(v),resolved:e}}const b=n("error.not_completed",{default:"The request was not completed."});throw d.cancel(b),new Error(b)}}var Fe=void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},We="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==Fe?Fe:"undefined"!=typeof self?self:{};function He(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var Ve={},Ue={},Ye={},Ge={},qe=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Xe=function(){function e(e,t){for(var n=0;n>>32-t}},{key:"hash",value:function(t){for(var n=e.pad(t),r=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],a=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],s=n.byteLength/64,l=new Array(s).fill(void 0).map((function(e,t){return function(e){return new DataView(n,64*t,64).getUint32(4*e,!0)}})),c=[1732584193,4023233417,2562383102,271733878,3285377520],u=0;u0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},n=We&&We.__spread||function(){for(var e=[],n=0;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(e,"__esModule",{value:!0});var i=Je.RIPEMD160.hash,o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var s=function(){for(var e=Array(256).fill(-1),t=0;t"9".charCodeAt(0))throw new Error("invalid number");for(var o=i-"0".charCodeAt(0),a=0;a>8}if(o)throw new Error("number is out of range")}return n}function h(e,t){void 0===t&&(t=1);for(var r=Array(t).fill("0".charCodeAt(0)),i=e.length-1;i>=0;--i){for(var o=e[i],a=0;a>8}if(i)throw new Error("base-58 value is out of range")}return n.reverse(),n}function m(e,t){var i,a,l,c,u=[];try{for(var d=r(e),f=d.next();!f.done;f=d.next()){for(var h=f.value,p=0;p>2,r=3*n;t>0&&"="===e[t-1]&&("="===e[t-2]?r-=2:r-=1);for(var i=new Uint8Array(r),o=0;o>4,3*o+1>2),3*o+20)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},tt=We&&We.__spread||function(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(Ye,"__esModule",{value:!0});var rt=Ge,it=function(e){void 0===e&&(e={}),this.skippedBinaryExtension=!1,this.options=e};Ye.SerializerState=it;var ot=function(){function e(e){var t=void 0===e?{}:e,n=t.textEncoder,r=t.textDecoder,i=t.array;this.readPos=0,this.array=i||new Uint8Array(1024),this.length=i?i.length:0,this.textEncoder=n||new TextEncoder,this.textDecoder=r||new TextDecoder("utf-8",{fatal:!0})}return e.prototype.reserve=function(e){if(!(this.length+e<=this.array.length)){for(var t=this.array.length;this.length+e>t;)t=Math.ceil(1.5*t);var n=new Uint8Array(t);n.set(this.array),this.array=n}},e.prototype.haveReadData=function(){return this.readPosthis.length)throw new Error("Read past end of buffer");var t=new Uint8Array(this.array.buffer,this.array.byteOffset+this.readPos,e);return this.readPos+=e,t},e.prototype.pushUint16=function(e){this.push(e>>0&255,e>>8&255)},e.prototype.getUint16=function(){var e=0;return e|=this.get()<<0,e|=this.get()<<8},e.prototype.pushUint32=function(e){this.push(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},e.prototype.getUint32=function(){var e=0;return e|=this.get()<<0,e|=this.get()<<8,e|=this.get()<<16,(e|=this.get()<<24)>>>0},e.prototype.pushNumberAsUint64=function(e){this.pushUint32(e>>>0),this.pushUint32(Math.floor(e/4294967296)>>>0)},e.prototype.getUint64AsNumber=function(){var e=this.getUint32();return 4294967296*(this.getUint32()>>>0)+(e>>>0)},e.prototype.pushVaruint32=function(e){for(;;){if(!(e>>>7)){this.push(e);break}this.push(128|127&e),e>>>=7}},e.prototype.getVaruint32=function(){for(var e=0,t=0;;){var n=this.get();if(e|=(127&n)<>>0},e.prototype.pushVarint32=function(e){this.pushVaruint32(e<<1^e>>31)},e.prototype.getVarint32=function(){var e=this.getVaruint32();return 1&e?~e>>1|2147483648:e>>>1},e.prototype.pushFloat32=function(e){this.pushArray(new Uint8Array(new Float32Array([e]).buffer))},e.prototype.getFloat32=function(){return new Float32Array(this.getUint8Array(4).slice().buffer)[0]},e.prototype.pushFloat64=function(e){this.pushArray(new Uint8Array(new Float64Array([e]).buffer))},e.prototype.getFloat64=function(){return new Float64Array(this.getUint8Array(8).slice().buffer)[0]},e.prototype.pushName=function(e){if("string"!=typeof e)throw new Error("Expected string containing name");function t(e){return e>="a".charCodeAt(0)&&e<="z".charCodeAt(0)?e-"a".charCodeAt(0)+6:e>="1".charCodeAt(0)&&e<="5".charCodeAt(0)?e-"1".charCodeAt(0)+1:0}for(var n=new Uint8Array(8),r=63,i=0;i=0;--a)r>=0&&(n[Math.floor(r/8)]|=(o>>a&1)<=0;){for(var r=0,i=0;i<5;++i)n>=0&&(r=r<<1|e[Math.floor(n/8)]>>n%8&1,--n);t+=r>=6?String.fromCharCode(r+"a".charCodeAt(0)-6):r>=1?String.fromCharCode(r+"1".charCodeAt(0)-1):"."}for(;t.endsWith(".");)t=t.substr(0,t.length-1);return t},e.prototype.pushBytes=function(e){this.pushVaruint32(e.length),this.pushArray(e)},e.prototype.getBytes=function(){return this.getUint8Array(this.getVaruint32())},e.prototype.pushString=function(e){this.pushBytes(this.textEncoder.encode(e))},e.prototype.getString=function(){return this.textDecoder.decode(this.getBytes())},e.prototype.pushSymbolCode=function(e){if("string"!=typeof e)throw new Error("Expected string containing symbol_code");var t=[];for(t.push.apply(t,tt(this.textEncoder.encode(e)));t.length<8;)t.push(0);this.pushArray(t.slice(0,8))},e.prototype.getSymbolCode=function(){var e,t=this.getUint8Array(8);for(e=0;e="0".charCodeAt(0)&&e.charCodeAt(t)<="9".charCodeAt(0);)i=!0,n+=e[t],++t;if(!i)throw new Error("Asset must begin with a number");if("."===e[t])for(++t;t="0".charCodeAt(0)&&e.charCodeAt(t)<="9".charCodeAt(0);)n+=e[t],++r,++t;var o=e.substr(t).trim();this.pushArray(rt.signedDecimalToBinary(8,n)),this.pushSymbol({name:o,precision:r})},e.prototype.getAsset=function(){var e=this.getUint8Array(8),t=this.getSymbol(),n=t.name,r=t.precision,i=rt.signedBinaryToDecimal(e,r+1);return r&&(i=i.substr(0,i.length-r)+"."+i.substr(i.length-r)),i+" "+n},e.prototype.pushPublicKey=function(e){var t=rt.stringToPublicKey(e);this.push(t.type),this.pushArray(t.data)},e.prototype.getPublicKey=function(){var e=this.get(),t=this.getUint8Array(rt.publicKeyDataSize);return rt.publicKeyToString({type:e,data:t})},e.prototype.pushPrivateKey=function(e){var t=rt.stringToPrivateKey(e);this.push(t.type),this.pushArray(t.data)},e.prototype.getPrivateKey=function(){var e=this.get(),t=this.getUint8Array(rt.privateKeyDataSize);return rt.privateKeyToString({type:e,data:t})},e.prototype.pushSignature=function(e){var t=rt.stringToSignature(e);this.push(t.type),this.pushArray(t.data)},e.prototype.getSignature=function(){var e=this.get(),t=this.getUint8Array(rt.signatureDataSize);return rt.signatureToString({type:e,data:t})},e}();function at(e){var t=Date.parse(e);if(Number.isNaN(t))throw new Error("Invalid time format");return t}function st(e){return Math.round(1e3*at(e+"Z"))}function lt(e){var t=new Date(e/1e3).toISOString();return t.substr(0,t.length-1)}function ct(e){return Math.round(at(e+"Z")/1e3)}function ut(e){var t=new Date(1e3*e).toISOString();return t.substr(0,t.length-1)}function dt(e){return Math.round((at(e+"Z")-9466848e5)/500)}function ft(e){var t=new Date(500*e+9466848e5).toISOString();return t.substr(0,t.length-1)}function ht(e){if("string"!=typeof e)throw new Error("Expected string containing symbol");var t=e.match(/^([0-9]+),([A-Z]+)$/);if(!t)throw new Error("Invalid symbol");return{name:t[2],precision:+t[1]}}function pt(e){var t=e.name;return e.precision+","+t}function mt(e){var t,n,r="";try{for(var i=nt(e),o=i.next();!o.done;o=i.next()){r+=("00"+o.value.toString(16)).slice(-2)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r.toUpperCase()}function gt(e){if("string"!=typeof e)throw new Error("Expected string containing hex digits");if(e.length%2)throw new Error("Odd number of hex digits");for(var t=e.length/2,n=new Uint8Array(t),r=0;r=this.fields.length)throw new Error("type index "+r+" is not valid for variant");var i=this.fields[r];return[i.name,i.type.deserialize(e,t,n)]}function kt(e,t,n,r){var i,o;e.pushVaruint32(t.length);try{for(var a=nt(t),s=a.next();!s.done;s=a.next()){var l=s.value;this.arrayOf.serialize(e,l,n,!1)}}catch(e){i={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}function St(e,t,n){for(var r=e.getVaruint32(),i=[],o=0;o",aliasOfName:"",arrayOf:null,optionalOf:null,extensionOf:null,baseName:"",base:null,fields:[],serialize:vt,deserialize:bt},e)}function Ot(e,t){if(Number.isNaN(+e)||Number.isNaN(+t)||"number"!=typeof e&&"string"!=typeof e)throw new Error("Expected number");if(+e!=+t)throw new Error("Number is out of range");return+e}function jt(e,t){var n=e.get(t);if(n&&n.aliasOfName)return jt(e,n.aliasOfName);if(n)return n;if(t.endsWith("[]"))return It({name:t,arrayOf:jt(e,t.substr(0,t.length-2)),serialize:kt,deserialize:St});if(t.endsWith("?"))return It({name:t,optionalOf:jt(e,t.substr(0,t.length-1)),serialize:Ct,deserialize:Mt});if(t.endsWith("$"))return It({name:t,extensionOf:jt(e,t.substr(0,t.length-1)),serialize:Et,deserialize:At});throw new Error("Unknown type: "+t)}function Zt(e,t,n,r,i,o){var a=e.actions.get(n);if(!a)throw new Error("Unknown action "+n+" in contract "+t);var s=new ot({textEncoder:i,textDecoder:o});return a.serialize(s,r),mt(s.asUint8Array())}function Rt(e,t,n,r,i,o){var a=e.actions.get(n);if("string"==typeof r&&(r=gt(r)),!a)throw new Error("Unknown action "+n+" in contract "+t);var s=new ot({textDecoder:o,textEncoder:i});return s.pushArray(r),a.deserialize(s)}Ye.SerialBuffer=ot,Ye.supportedAbiVersion=function(e){return e.startsWith("eosio::abi/1.")},Ye.dateToTimePoint=st,Ye.timePointToDate=lt,Ye.dateToTimePointSec=ct,Ye.timePointSecToDate=ut,Ye.dateToBlockTimestamp=dt,Ye.blockTimestampToDate=ft,Ye.stringToSymbol=ht,Ye.symbolToString=pt,Ye.arrayToHex=mt,Ye.hexToUint8Array=gt,Ye.createInitialTypes=function(){var e=new Map(Object.entries({bool:It({name:"bool",serialize:function(e,t){if("boolean"!=typeof t)throw new Error("Expected true or false");e.push(t?1:0)},deserialize:function(e){return!!e.get()}}),uint8:It({name:"uint8",serialize:function(e,t){e.push(Ot(t,255&t))},deserialize:function(e){return e.get()}}),int8:It({name:"int8",serialize:function(e,t){e.push(Ot(t,t<<24>>24))},deserialize:function(e){return e.get()<<24>>24}}),uint16:It({name:"uint16",serialize:function(e,t){e.pushUint16(Ot(t,65535&t))},deserialize:function(e){return e.getUint16()}}),int16:It({name:"int16",serialize:function(e,t){e.pushUint16(Ot(t,t<<16>>16))},deserialize:function(e){return e.getUint16()<<16>>16}}),uint32:It({name:"uint32",serialize:function(e,t){e.pushUint32(Ot(t,t>>>0))},deserialize:function(e){return e.getUint32()}}),uint64:It({name:"uint64",serialize:function(e,t){e.pushArray(rt.decimalToBinary(8,""+t))},deserialize:function(e){return rt.binaryToDecimal(e.getUint8Array(8))}}),int64:It({name:"int64",serialize:function(e,t){e.pushArray(rt.signedDecimalToBinary(8,""+t))},deserialize:function(e){return rt.signedBinaryToDecimal(e.getUint8Array(8))}}),int32:It({name:"int32",serialize:function(e,t){e.pushUint32(Ot(t,0|t))},deserialize:function(e){return 0|e.getUint32()}}),varuint32:It({name:"varuint32",serialize:function(e,t){e.pushVaruint32(Ot(t,t>>>0))},deserialize:function(e){return e.getVaruint32()}}),varint32:It({name:"varint32",serialize:function(e,t){e.pushVarint32(Ot(t,0|t))},deserialize:function(e){return e.getVarint32()}}),uint128:It({name:"uint128",serialize:function(e,t){e.pushArray(rt.decimalToBinary(16,""+t))},deserialize:function(e){return rt.binaryToDecimal(e.getUint8Array(16))}}),int128:It({name:"int128",serialize:function(e,t){e.pushArray(rt.signedDecimalToBinary(16,""+t))},deserialize:function(e){return rt.signedBinaryToDecimal(e.getUint8Array(16))}}),float32:It({name:"float32",serialize:function(e,t){e.pushFloat32(t)},deserialize:function(e){return e.getFloat32()}}),float64:It({name:"float64",serialize:function(e,t){e.pushFloat64(t)},deserialize:function(e){return e.getFloat64()}}),float128:It({name:"float128",serialize:function(e,t){e.pushUint8ArrayChecked(gt(t),16)},deserialize:function(e){return mt(e.getUint8Array(16))}}),bytes:It({name:"bytes",serialize:function(e,t){t instanceof Uint8Array||Array.isArray(t)?e.pushBytes(t):e.pushBytes(gt(t))},deserialize:function(e,t){return t&&t.options.bytesAsUint8Array?e.getBytes():mt(e.getBytes())}}),string:It({name:"string",serialize:function(e,t){e.pushString(t)},deserialize:function(e){return e.getString()}}),name:It({name:"name",serialize:function(e,t){e.pushName(t)},deserialize:function(e){return e.getName()}}),time_point:It({name:"time_point",serialize:function(e,t){e.pushNumberAsUint64(st(t))},deserialize:function(e){return lt(e.getUint64AsNumber())}}),time_point_sec:It({name:"time_point_sec",serialize:function(e,t){e.pushUint32(ct(t))},deserialize:function(e){return ut(e.getUint32())}}),block_timestamp_type:It({name:"block_timestamp_type",serialize:function(e,t){e.pushUint32(dt(t))},deserialize:function(e){return ft(e.getUint32())}}),symbol_code:It({name:"symbol_code",serialize:function(e,t){e.pushSymbolCode(t)},deserialize:function(e){return e.getSymbolCode()}}),symbol:It({name:"symbol",serialize:function(e,t){e.pushSymbol(ht(t))},deserialize:function(e){return pt(e.getSymbol())}}),asset:It({name:"asset",serialize:function(e,t){e.pushAsset(t)},deserialize:function(e){return e.getAsset()}}),checksum160:It({name:"checksum160",serialize:function(e,t){e.pushUint8ArrayChecked(gt(t),20)},deserialize:function(e){return mt(e.getUint8Array(20))}}),checksum256:It({name:"checksum256",serialize:function(e,t){e.pushUint8ArrayChecked(gt(t),32)},deserialize:function(e){return mt(e.getUint8Array(32))}}),checksum512:It({name:"checksum512",serialize:function(e,t){e.pushUint8ArrayChecked(gt(t),64)},deserialize:function(e){return mt(e.getUint8Array(64))}}),public_key:It({name:"public_key",serialize:function(e,t){e.pushPublicKey(t)},deserialize:function(e){return e.getPublicKey()}}),private_key:It({name:"private_key",serialize:function(e,t){e.pushPrivateKey(t)},deserialize:function(e){return e.getPrivateKey()}}),signature:It({name:"signature",serialize:function(e,t){e.pushSignature(t)},deserialize:function(e){return e.getSignature()}})}));return e.set("extended_asset",It({name:"extended_asset",baseName:"",fields:[{name:"quantity",typeName:"asset",type:e.get("asset")},{name:"contract",typeName:"name",type:e.get("name")}],serialize:yt,deserialize:wt})),e},Ye.getType=jt,Ye.getTypesFromAbi=function(e,t){var n,r,i,o,a,s,l,c,u,d,f=new Map(e);if(t.types)try{for(var h=nt(t.types),p=h.next();!p.done;p=h.next()){var m=p.value,g=m.new_type_name,v=m.type;f.set(g,It({name:g,aliasOfName:v}))}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}if(t.structs)try{for(var b=nt(t.structs),y=b.next();!y.done;y=b.next()){var w=y.value,_=w.name,x=w.base,k=w.fields;f.set(_,It({name:_,baseName:x,fields:k.map((function(e){return{name:e.name,typeName:e.type,type:null}})),serialize:yt,deserialize:wt}))}}catch(e){i={error:e}}finally{try{y&&!y.done&&(o=b.return)&&o.call(b)}finally{if(i)throw i.error}}if(t.variants)try{for(var S=nt(t.variants),C=S.next();!C.done;C=S.next()){var M=C.value,E=M.name,A=M.types;f.set(E,It({name:E,fields:A.map((function(e){return{name:e,typeName:e,type:null}})),serialize:_t,deserialize:xt}))}}catch(e){a={error:e}}finally{try{C&&!C.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}try{for(var I=nt(f),O=I.next();!O.done;O=I.next()){var j=et(O.value,2);j[0];(v=j[1]).baseName&&(v.base=jt(f,v.baseName));try{for(var Z=nt(v.fields),R=Z.next();!R.done;R=Z.next()){var N=R.value;N.type=jt(f,N.typeName)}}catch(e){u={error:e}}finally{try{R&&!R.done&&(d=Z.return)&&d.call(Z)}finally{if(u)throw u.error}}}}catch(e){l={error:e}}finally{try{O&&!O.done&&(c=I.return)&&c.call(I)}finally{if(l)throw l.error}}return f},Ye.transactionHeader=function(e,t){return{expiration:ut(ct(e.timestamp)+t),ref_block_num:65535&e.block_num,ref_block_prefix:e.ref_block_prefix}},Ye.serializeActionData=Zt,Ye.serializeAction=function(e,t,n,r,i,o,a){return{account:t,name:n,authorization:r,data:Zt(e,t,n,i,o,a)}},Ye.deserializeActionData=Rt,Ye.deserializeAction=function(e,t,n,r,i,o,a){return{account:t,name:n,authorization:r,data:Rt(e,t,n,i,o,a)}};var Nt={version:"eosio::abi/1.1",structs:[{name:"extensions_entry",base:"",fields:[{name:"tag",type:"uint16"},{name:"value",type:"bytes"}]},{name:"type_def",base:"",fields:[{name:"new_type_name",type:"string"},{name:"type",type:"string"}]},{name:"field_def",base:"",fields:[{name:"name",type:"string"},{name:"type",type:"string"}]},{name:"struct_def",base:"",fields:[{name:"name",type:"string"},{name:"base",type:"string"},{name:"fields",type:"field_def[]"}]},{name:"action_def",base:"",fields:[{name:"name",type:"name"},{name:"type",type:"string"},{name:"ricardian_contract",type:"string"}]},{name:"table_def",base:"",fields:[{name:"name",type:"name"},{name:"index_type",type:"string"},{name:"key_names",type:"string[]"},{name:"key_types",type:"string[]"},{name:"type",type:"string"}]},{name:"clause_pair",base:"",fields:[{name:"id",type:"string"},{name:"body",type:"string"}]},{name:"error_message",base:"",fields:[{name:"error_code",type:"uint64"},{name:"error_msg",type:"string"}]},{name:"variant_def",base:"",fields:[{name:"name",type:"string"},{name:"types",type:"string[]"}]},{name:"abi_def",base:"",fields:[{name:"version",type:"string"},{name:"types",type:"type_def[]"},{name:"structs",type:"struct_def[]"},{name:"actions",type:"action_def[]"},{name:"tables",type:"table_def[]"},{name:"ricardian_clauses",type:"clause_pair[]"},{name:"error_messages",type:"error_message[]"},{name:"abi_extensions",type:"extensions_entry[]"},{name:"variants",type:"variant_def[]$"}]}]},Pt={version:"eosio::abi/1.0",types:[{new_type_name:"account_name",type:"name"},{new_type_name:"action_name",type:"name"},{new_type_name:"permission_name",type:"name"}],structs:[{name:"permission_level",base:"",fields:[{name:"actor",type:"account_name"},{name:"permission",type:"permission_name"}]},{name:"action",base:"",fields:[{name:"account",type:"account_name"},{name:"name",type:"action_name"},{name:"authorization",type:"permission_level[]"},{name:"data",type:"bytes"}]},{name:"extension",base:"",fields:[{name:"type",type:"uint16"},{name:"data",type:"bytes"}]},{name:"transaction_header",base:"",fields:[{name:"expiration",type:"time_point_sec"},{name:"ref_block_num",type:"uint16"},{name:"ref_block_prefix",type:"uint32"},{name:"max_net_usage_words",type:"varuint32"},{name:"max_cpu_usage_ms",type:"uint8"},{name:"delay_sec",type:"varuint32"}]},{name:"transaction",base:"transaction_header",fields:[{name:"context_free_actions",type:"action[]"},{name:"actions",type:"action[]"},{name:"transaction_extensions",type:"extension[]"}]}]},Tt=We&&We.__assign||function(){return Tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},zt=We&&We.__spread||function(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(Ue,"__esModule",{value:!0});var Wt=Ye,Ht=Nt,Vt=Pt,Ut=function(){function e(e){this.contracts=new Map,this.cachedAbis=new Map,this.rpc=e.rpc,this.authorityProvider=e.authorityProvider||e.rpc,this.abiProvider=e.abiProvider||e.rpc,this.signatureProvider=e.signatureProvider,this.chainId=e.chainId,this.textEncoder=e.textEncoder,this.textDecoder=e.textDecoder,this.abiTypes=Wt.getTypesFromAbi(Wt.createInitialTypes(),Ht),this.transactionTypes=Wt.getTypesFromAbi(Wt.createInitialTypes(),Vt)}return e.prototype.rawAbiToJson=function(e){var t=new Wt.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder,array:e});if(!Wt.supportedAbiVersion(t.getString()))throw new Error("Unsupported abi version");return t.restartRead(),this.abiTypes.get("abi_def").deserialize(t)},e.prototype.getCachedAbi=function(e,t){return void 0===t&&(t=!1),Bt(this,void 0,void 0,(function(){var n,r,i,o;return $t(this,(function(a){switch(a.label){case 0:if(!t&&this.cachedAbis.get(e))return[2,this.cachedAbis.get(e)];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.abiProvider.getRawAbi(e)];case 2:return r=a.sent().abi,i=this.rawAbiToJson(r),n={rawAbi:r,abi:i},[3,4];case 3:throw(o=a.sent()).message="fetching abi for "+e+": "+o.message,o;case 4:if(!n)throw new Error("Missing abi for "+e);return this.cachedAbis.set(e,n),[2,n]}}))}))},e.prototype.getAbi=function(e,t){return void 0===t&&(t=!1),Bt(this,void 0,void 0,(function(){return $t(this,(function(n){switch(n.label){case 0:return[4,this.getCachedAbi(e,t)];case 1:return[2,n.sent().abi]}}))}))},e.prototype.getTransactionAbis=function(e,t){return void 0===t&&(t=!1),Bt(this,void 0,void 0,(function(){var n,r,i,o=this;return $t(this,(function(a){return n=e.actions.map((function(e){return e.account})),r=new Set(n),i=zt(r).map((function(e){return Bt(o,void 0,void 0,(function(){var n;return $t(this,(function(r){switch(r.label){case 0:return n={accountName:e},[4,this.getCachedAbi(e,t)];case 1:return[2,(n.abi=r.sent().rawAbi,n)]}}))}))})),[2,Promise.all(i)]}))}))},e.prototype.getContract=function(e,t){return void 0===t&&(t=!1),Bt(this,void 0,void 0,(function(){var n,r,i,o,a,s,l,c,u,d,f;return $t(this,(function(h){switch(h.label){case 0:return!t&&this.contracts.get(e)?[2,this.contracts.get(e)]:[4,this.getAbi(e,t)];case 1:i=h.sent(),o=Wt.getTypesFromAbi(Wt.createInitialTypes(),i),a=new Map;try{for(s=Ft(i.actions),l=s.next();!l.done;l=s.next())c=l.value,u=c.name,d=c.type,a.set(u,Wt.getType(o,d))}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return f={types:o,actions:a},this.contracts.set(e,f),[2,f]}}))}))},e.prototype.serialize=function(e,t,n){this.transactionTypes.get(t).serialize(e,n)},e.prototype.deserialize=function(e,t){return this.transactionTypes.get(t).deserialize(e)},e.prototype.serializeTransaction=function(e){var t=new Wt.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder});return this.serialize(t,"transaction",Tt({max_net_usage_words:0,max_cpu_usage_ms:0,delay_sec:0,context_free_actions:[],actions:[],transaction_extensions:[]},e)),t.asUint8Array()},e.prototype.deserializeTransaction=function(e){var t=new Wt.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder});return t.pushArray(e),this.deserialize(t,"transaction")},e.prototype.serializeActions=function(e){return Bt(this,void 0,void 0,(function(){var t=this;return $t(this,(function(n){switch(n.label){case 0:return[4,Promise.all(e.map((function(e){var n=e.account,r=e.name,i=e.authorization,o=e.data;return Bt(t,void 0,void 0,(function(){var e;return $t(this,(function(t){switch(t.label){case 0:return[4,this.getContract(n)];case 1:return e=t.sent(),[2,Wt.serializeAction(e,n,r,i,o,this.textEncoder,this.textDecoder)]}}))}))})))];case 1:return[2,n.sent()]}}))}))},e.prototype.deserializeActions=function(e){return Bt(this,void 0,void 0,(function(){var t=this;return $t(this,(function(n){switch(n.label){case 0:return[4,Promise.all(e.map((function(e){var n=e.account,r=e.name,i=e.authorization,o=e.data;return Bt(t,void 0,void 0,(function(){var e;return $t(this,(function(t){switch(t.label){case 0:return[4,this.getContract(n)];case 1:return e=t.sent(),[2,Wt.deserializeAction(e,n,r,i,o,this.textEncoder,this.textDecoder)]}}))}))})))];case 1:return[2,n.sent()]}}))}))},e.prototype.deserializeTransactionWithActions=function(e){return Bt(this,void 0,void 0,(function(){var t,n;return $t(this,(function(r){switch(r.label){case 0:return"string"==typeof e&&(e=Wt.hexToUint8Array(e)),t=this.deserializeTransaction(e),[4,this.deserializeActions(t.actions)];case 1:return n=r.sent(),[2,Tt({},t,{actions:n})]}}))}))},e.prototype.transact=function(e,t){var n=void 0===t?{}:t,r=n.broadcast,i=void 0===r||r,o=n.sign,a=void 0===o||o,s=n.blocksBehind,l=n.expireSeconds;return Bt(this,void 0,void 0,(function(){var t,n,r,o,c,u,d,f,h;return $t(this,(function(p){switch(p.label){case 0:return this.chainId?[3,2]:[4,this.rpc.get_info()];case 1:t=p.sent(),this.chainId=t.chain_id,p.label=2;case 2:return"number"==typeof s&&l?t?[3,4]:[4,this.rpc.get_info()]:[3,6];case 3:t=p.sent(),p.label=4;case 4:return[4,this.rpc.get_block(t.head_block_num-s)];case 5:n=p.sent(),e=Tt({},Wt.transactionHeader(n,l),e),p.label=6;case 6:if(!this.hasRequiredTaposFields(e))throw new Error("Required configuration or TAPOS fields are not present");return[4,this.getTransactionAbis(e)];case 7:return r=p.sent(),o=[{},e],c={},[4,this.serializeActions(e.actions)];case 8:return e=Tt.apply(void 0,o.concat([(c.actions=p.sent(),c)])),u=this.serializeTransaction(e),d={serializedTransaction:u,signatures:[]},a?[4,this.signatureProvider.getAvailableKeys()]:[3,12];case 9:return f=p.sent(),[4,this.authorityProvider.getRequiredKeys({transaction:e,availableKeys:f})];case 10:return h=p.sent(),[4,this.signatureProvider.sign({chainId:this.chainId,requiredKeys:h,serializedTransaction:u,abis:r})];case 11:d=p.sent(),p.label=12;case 12:return i?[2,this.pushSignedTransaction(d)]:[2,d]}}))}))},e.prototype.pushSignedTransaction=function(e){var t=e.signatures,n=e.serializedTransaction;return Bt(this,void 0,void 0,(function(){return $t(this,(function(e){return[2,this.rpc.push_transaction({signatures:t,serializedTransaction:n})]}))}))},e.prototype.hasRequiredTaposFields=function(e){var t=e.expiration,n=e.ref_block_num,r=e.ref_block_prefix;return Dt(e,["expiration","ref_block_num","ref_block_prefix"]),!!(t&&n&&r)},e}();Ue.Api=Ut;var Yt={};Object.defineProperty(Yt,"__esModule",{value:!0});var Gt,qt={},Xt={},Kt=We&&We.__extends||(Gt=function(e,t){return Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Gt(e,t)},function(e,t){function n(){this.constructor=e}Gt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(Xt,"__esModule",{value:!0});var Jt=function(e){function t(n){var r=this;return r=n.error&&n.error.details&&n.error.details.length&&n.error.details[0].message?e.call(this,n.error.details[0].message)||this:n.processed&&n.processed.except&&n.processed.except.message?e.call(this,n.processed.except.message)||this:e.call(this,n.message)||this,Object.setPrototypeOf(r,t.prototype),r.json=n,r}return Kt(t,e),t}(Error);Xt.RpcError=Jt;var Qt=We&&We.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}l((r=r.apply(e,t||[])).next())}))},en=We&&We.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(qt,"__esModule",{value:!0});var nn=Ge,rn=Xt;function on(e){var t,n,r="";try{for(var i=tn(e),o=i.next();!o.done;o=i.next()){r+=("00"+o.value.toString(16)).slice(-2)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}var an=function(){function e(e,t){void 0===t&&(t={}),this.endpoint=e,t.fetch?this.fetchBuiltin=t.fetch:this.fetchBuiltin=We.fetch}return e.prototype.fetch=function(e,t){return Qt(this,void 0,void 0,(function(){var n,r,i;return en(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,(0,this.fetchBuiltin)(this.endpoint+e,{body:JSON.stringify(t),method:"POST"})];case 1:return[4,(n=o.sent()).json()];case 2:if((r=o.sent()).processed&&r.processed.except)throw new rn.RpcError(r);return[3,4];case 3:throw(i=o.sent()).isFetchError=!0,i;case 4:if(!n.ok)throw new rn.RpcError(r);return[2,r]}}))}))},e.prototype.get_abi=function(e){return Qt(this,void 0,void 0,(function(){return en(this,(function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_abi",{account_name:e})];case 1:return[2,t.sent()]}}))}))},e.prototype.get_account=function(e){return Qt(this,void 0,void 0,(function(){return en(this,(function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_account",{account_name:e})];case 1:return[2,t.sent()]}}))}))},e.prototype.get_block_header_state=function(e){return Qt(this,void 0,void 0,(function(){return en(this,(function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_block_header_state",{block_num_or_id:e})];case 1:return[2,t.sent()]}}))}))},e.prototype.get_block=function(e){return Qt(this,void 0,void 0,(function(){return en(this,(function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_block",{block_num_or_id:e})];case 1:return[2,t.sent()]}}))}))},e.prototype.get_code=function(e){return Qt(this,void 0,void 0,(function(){return en(this,(function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_code",{account_name:e})];case 1:return[2,t.sent()]}}))}))},e.prototype.get_currency_balance=function(e,t,n){return void 0===n&&(n=null),Qt(this,void 0,void 0,(function(){return en(this,(function(r){switch(r.label){case 0:return[4,this.fetch("/v1/chain/get_currency_balance",{code:e,account:t,symbol:n})];case 1:return[2,r.sent()]}}))}))},e.prototype.get_currency_stats=function(e,t){return Qt(this,void 0,void 0,(function(){return en(this,(function(n){switch(n.label){case 0:return[4,this.fetch("/v1/chain/get_currency_stats",{code:e,symbol:t})];case 1:return[2,n.sent()]}}))}))},e.prototype.get_info=function(){return Qt(this,void 0,void 0,(function(){return en(this,(function(e){switch(e.label){case 0:return[4,this.fetch("/v1/chain/get_info",{})];case 1:return[2,e.sent()]}}))}))},e.prototype.get_producer_schedule=function(){return Qt(this,void 0,void 0,(function(){return en(this,(function(e){switch(e.label){case 0:return[4,this.fetch("/v1/chain/get_producer_schedule",{})];case 1:return[2,e.sent()]}}))}))},e.prototype.get_producers=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=""),void 0===n&&(n=50),Qt(this,void 0,void 0,(function(){return en(this,(function(r){switch(r.label){case 0:return[4,this.fetch("/v1/chain/get_producers",{json:e,lower_bound:t,limit:n})];case 1:return[2,r.sent()]}}))}))},e.prototype.get_raw_code_and_abi=function(e){return Qt(this,void 0,void 0,(function(){return en(this,(function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_raw_code_and_abi",{account_name:e})];case 1:return[2,t.sent()]}}))}))},e.prototype.getRawAbi=function(e){return Qt(this,void 0,void 0,(function(){var t,n;return en(this,(function(r){switch(r.label){case 0:return[4,this.get_raw_code_and_abi(e)];case 1:return t=r.sent(),n=nn.base64ToBinary(t.abi),[2,{accountName:t.account_name,abi:n}]}}))}))},e.prototype.get_table_rows=function(e){var t=e.json,n=void 0===t||t,r=e.code,i=e.scope,o=e.table,a=e.table_key,s=void 0===a?"":a,l=e.lower_bound,c=void 0===l?"":l,u=e.upper_bound,d=void 0===u?"":u,f=e.index_position,h=void 0===f?1:f,p=e.key_type,m=void 0===p?"":p,g=e.limit,v=void 0===g?10:g,b=e.reverse,y=void 0!==b&&b,w=e.show_payer,_=void 0!==w&&w;return Qt(this,void 0,void 0,(function(){return en(this,(function(e){switch(e.label){case 0:return[4,this.fetch("/v1/chain/get_table_rows",{json:n,code:r,scope:i,table:o,table_key:s,lower_bound:c,upper_bound:d,index_position:h,key_type:m,limit:v,reverse:y,show_payer:_})];case 1:return[2,e.sent()]}}))}))},e.prototype.get_table_by_scope=function(e){var t=e.code,n=e.table,r=e.lower_bound,i=void 0===r?"":r,o=e.upper_bound,a=void 0===o?"":o,s=e.limit,l=void 0===s?10:s;return Qt(this,void 0,void 0,(function(){return en(this,(function(e){switch(e.label){case 0:return[4,this.fetch("/v1/chain/get_table_by_scope",{code:t,table:n,lower_bound:i,upper_bound:a,limit:l})];case 1:return[2,e.sent()]}}))}))},e.prototype.getRequiredKeys=function(e){return Qt(this,void 0,void 0,(function(){var t;return en(this,(function(n){switch(n.label){case 0:return t=nn.convertLegacyPublicKeys,[4,this.fetch("/v1/chain/get_required_keys",{transaction:e.transaction,available_keys:e.availableKeys})];case 1:return[2,t.apply(void 0,[n.sent().required_keys])]}}))}))},e.prototype.push_transaction=function(e){var t=e.signatures,n=e.serializedTransaction;return Qt(this,void 0,void 0,(function(){return en(this,(function(e){switch(e.label){case 0:return[4,this.fetch("/v1/chain/push_transaction",{signatures:t,compression:0,packed_context_free_data:"",packed_trx:on(n)})];case 1:return[2,e.sent()]}}))}))},e.prototype.db_size_get=function(){return Qt(this,void 0,void 0,(function(){return en(this,(function(e){switch(e.label){case 0:return[4,this.fetch("/v1/db_size/get",{})];case 1:return[2,e.sent()]}}))}))},e.prototype.history_get_actions=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),Qt(this,void 0,void 0,(function(){return en(this,(function(r){switch(r.label){case 0:return[4,this.fetch("/v1/history/get_actions",{account_name:e,pos:t,offset:n})];case 1:return[2,r.sent()]}}))}))},e.prototype.history_get_transaction=function(e,t){return void 0===t&&(t=null),Qt(this,void 0,void 0,(function(){return en(this,(function(n){switch(n.label){case 0:return[4,this.fetch("/v1/history/get_transaction",{id:e,block_num_hint:t})];case 1:return[2,n.sent()]}}))}))},e.prototype.history_get_key_accounts=function(e){return Qt(this,void 0,void 0,(function(){return en(this,(function(t){switch(t.label){case 0:return[4,this.fetch("/v1/history/get_key_accounts",{public_key:e})];case 1:return[2,t.sent()]}}))}))},e.prototype.history_get_controlled_accounts=function(e){return Qt(this,void 0,void 0,(function(){return en(this,(function(t){switch(t.label){case 0:return[4,this.fetch("/v1/history/get_controlled_accounts",{controlling_account:e})];case 1:return[2,t.sent()]}}))}))},e}();qt.JsonRpc=an;var sn={};Object.defineProperty(sn,"__esModule",{value:!0}),Object.defineProperty(Ve,"__esModule",{value:!0});var ln=Ue,cn=Ve.Api=ln.Api,un=Yt;Ve.ApiInterfaces=un;var dn=qt,fn=Ve.JsonRpc=dn.JsonRpc,hn=Ge;Ve.Numeric=hn;var pn=sn;Ve.RpcInterfaces=pn;var mn=Xt;Ve.RpcError=mn.RpcError;var gn=Ye;Ve.Serialize=gn;var vn={},bn=null;"undefined"!=typeof WebSocket?bn=WebSocket:"undefined"!=typeof MozWebSocket?bn=MozWebSocket:void 0!==We?bn=We.WebSocket||We.MozWebSocket:"undefined"!=typeof window?bn=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(bn=self.WebSocket||self.MozWebSocket);var yn=bn;yn.default;var wn="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},_n=He(Object.freeze({__proto__:null,default:wn})),xn={exports:{}},kn=void 0!==Fe?Fe:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Sn=[],Cn=[],Mn="undefined"!=typeof Uint8Array?Uint8Array:Array,En=!1;function An(){En=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+Sn[i>>12&63]+Sn[i>>6&63]+Sn[63&i]);return o.join("")}function On(e){var t;En||An();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,l=n-r;sl?l:s+a));return 1===r?(t=e[n-1],i+=Sn[t>>2],i+=Sn[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=Sn[t>>10],i+=Sn[t>>4&63],i+=Sn[t<<2&63],i+="="),o.push(i),o.join("")}function jn(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)}function Zn(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*m}var Rn={}.toString,Nn=Array.isArray||function(e){return"[object Array]"==Rn.call(e)};$n.TYPED_ARRAY_SUPPORT=void 0===kn.TYPED_ARRAY_SUPPORT||kn.TYPED_ARRAY_SUPPORT;var Pn=Tn();function Tn(){return $n.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Bn(e,t){if(Tn()=Tn())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Tn().toString(16)+" bytes");return 0|e}function Hn(e){return!(null==e||!e._isBuffer)}function Vn(e,t){if(Hn(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return br(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return yr(e).length;default:if(r)return br(e).length;t=(""+t).toLowerCase(),r=!0}}function Un(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return sr(this,t,n);case"utf8":case"utf-8":return rr(this,t,n);case"ascii":return or(this,t,n);case"latin1":case"binary":return ar(this,t,n);case"base64":return nr(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lr(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Yn(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Gn(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=$n.from(t,r)),Hn(t))return 0===t.length?-1:qn(e,t,n,r,i);if("number"==typeof t)return t&=255,$n.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):qn(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function qn(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function nr(e,t,n){return 0===t&&n===e.length?On(e):On(e.slice(t,n))}function rr(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=ir)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},$n.prototype.compare=function(e,t,n,r,i){if(!Hn(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),u=0;ui)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Xn(this,e,t,n);case"utf8":case"utf-8":return Kn(this,e,t,n);case"ascii":return Jn(this,e,t,n);case"latin1":case"binary":return Qn(this,e,t,n);case"base64":return er(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tr(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},$n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ir=4096;function or(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function ur(e,t,n,r,i,o){if(!Hn(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function dr(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function fr(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function hr(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function pr(e,t,n,r,i){return i||hr(e,0,n,4),Zn(e,t,n,r,23,4),n+4}function mr(e,t,n,r,i){return i||hr(e,0,n,8),Zn(e,t,n,r,52,8),n+8}$n.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},$n.prototype.readUInt8=function(e,t){return t||cr(e,1,this.length),this[e]},$n.prototype.readUInt16LE=function(e,t){return t||cr(e,2,this.length),this[e]|this[e+1]<<8},$n.prototype.readUInt16BE=function(e,t){return t||cr(e,2,this.length),this[e]<<8|this[e+1]},$n.prototype.readUInt32LE=function(e,t){return t||cr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},$n.prototype.readUInt32BE=function(e,t){return t||cr(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},$n.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||cr(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},$n.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||cr(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},$n.prototype.readInt8=function(e,t){return t||cr(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},$n.prototype.readInt16LE=function(e,t){t||cr(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},$n.prototype.readInt16BE=function(e,t){t||cr(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},$n.prototype.readInt32LE=function(e,t){return t||cr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},$n.prototype.readInt32BE=function(e,t){return t||cr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},$n.prototype.readFloatLE=function(e,t){return t||cr(e,4,this.length),jn(this,e,!0,23,4)},$n.prototype.readFloatBE=function(e,t){return t||cr(e,4,this.length),jn(this,e,!1,23,4)},$n.prototype.readDoubleLE=function(e,t){return t||cr(e,8,this.length),jn(this,e,!0,52,8)},$n.prototype.readDoubleBE=function(e,t){return t||cr(e,8,this.length),jn(this,e,!1,52,8)},$n.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||ur(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},$n.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||ur(this,e,t,1,255,0),$n.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},$n.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||ur(this,e,t,2,65535,0),$n.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):dr(this,e,t,!0),t+2},$n.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||ur(this,e,t,2,65535,0),$n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):dr(this,e,t,!1),t+2},$n.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||ur(this,e,t,4,4294967295,0),$n.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):fr(this,e,t,!0),t+4},$n.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||ur(this,e,t,4,4294967295,0),$n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):fr(this,e,t,!1),t+4},$n.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);ur(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},$n.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);ur(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},$n.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||ur(this,e,t,1,127,-128),$n.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},$n.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||ur(this,e,t,2,32767,-32768),$n.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):dr(this,e,t,!0),t+2},$n.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||ur(this,e,t,2,32767,-32768),$n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):dr(this,e,t,!1),t+2},$n.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||ur(this,e,t,4,2147483647,-2147483648),$n.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):fr(this,e,t,!0),t+4},$n.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||ur(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),$n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):fr(this,e,t,!1),t+4},$n.prototype.writeFloatLE=function(e,t,n){return pr(this,e,t,!0,n)},$n.prototype.writeFloatBE=function(e,t,n){return pr(this,e,t,!1,n)},$n.prototype.writeDoubleLE=function(e,t,n){return mr(this,e,t,!0,n)},$n.prototype.writeDoubleBE=function(e,t,n){return mr(this,e,t,!1,n)},$n.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!$n.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function yr(e){return function(e){var t,n,r,i,o,a;En||An();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Mn(3*s/4-o),r=o>0?s-4:s;var l=0;for(t=0,n=0;t>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=Cn[e.charCodeAt(t)]<<2|Cn[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=Cn[e.charCodeAt(t)]<<10|Cn[e.charCodeAt(t+1)]<<4|Cn[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(gr,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function wr(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function _r(e){return null!=e&&(!!e._isBuffer||xr(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&xr(e.slice(0,0))}(e))}function xr(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var kr=He(Object.freeze({__proto__:null,Buffer:$n,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),$n.alloc(+e)},isBuffer:_r,kMaxLength:Pn}));!function(e,t){var n=kr,r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),o.prototype=Object.create(r.prototype),i(r,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(xn,xn.exports);var Sr=xn.exports;Sr.default;var Cr={exports:{}};function Mr(){throw new Error("setTimeout has not been defined")}function Er(){throw new Error("clearTimeout has not been defined")}var Ar=Mr,Ir=Er;function Or(e){if(Ar===setTimeout)return setTimeout(e,0);if((Ar===Mr||!Ar)&&setTimeout)return Ar=setTimeout,setTimeout(e,0);try{return Ar(e,0)}catch(t){try{return Ar.call(null,e,0)}catch(t){return Ar.call(this,e,0)}}}"function"==typeof kn.setTimeout&&(Ar=setTimeout),"function"==typeof kn.clearTimeout&&(Ir=clearTimeout);var jr,Zr=[],Rr=!1,Nr=-1;function Pr(){Rr&&jr&&(Rr=!1,jr.length?Zr=jr.concat(Zr):Nr=-1,Zr.length&&Tr())}function Tr(){if(!Rr){var e=Or(Pr);Rr=!0;for(var t=Zr.length;t;){for(jr=Zr,Zr=[];++Nr1)for(var n=1;n0&&a.length>i){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[t]=n,++e._eventsCount;return e}function ai(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function si(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function li(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}Kr.prototype=Object.create(null),Jr.EventEmitter=Jr,Jr.usingDomains=!1,Jr.prototype.domain=void 0,Jr.prototype._events=void 0,Jr.prototype._maxListeners=void 0,Jr.defaultMaxListeners=10,Jr.init=function(){this.domain=null,Jr.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Kr,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Jr.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},Jr.prototype.getMaxListeners=function(){return Qr(this)},Jr.prototype.emit=function(e){var t,n,r,i,o,a,s,l="error"===e;if(a=this._events)l=l&&null==a.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var u="function"==typeof n;switch(r=arguments.length){case 1:ei(n,u,this);break;case 2:ti(n,u,this,arguments[1]);break;case 3:ni(n,u,this,arguments[1],arguments[2]);break;case 4:ri(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o0;)if(n[o]===t||n[o].listener&&n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new Kr,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;r0?Reflect.ownKeys(this._events):[]};var ci,ui,di=He(Object.freeze({__proto__:null,EventEmitter:Jr,default:Jr}));function fi(){return ui?ci:(ui=1,ci=di.EventEmitter)}var hi="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},pi=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Ai(t)?n.showHidden=t:t&&Yi(n,t),Ni(n.showHidden)&&(n.showHidden=!1),Ni(n.depth)&&(n.depth=2),Ni(n.colors)&&(n.colors=!1),Ni(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=xi),Si(n,e,n.depth)}function xi(e,t){var n=_i.styles[t];return n?"["+_i.colors[n][0]+"m"+e+"["+_i.colors[n][1]+"m":e}function ki(e,t){return e}function Si(e,t,n){if(e.customInspect&&t&&Di(t.inspect)&&t.inspect!==_i&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Zi(r)||(r=Si(e,r,n)),r}var i=function(e,t){if(Ni(t))return e.stylize("undefined","undefined");if(Zi(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(ji(t))return e.stylize(""+t,"number");if(Ai(t))return e.stylize(""+t,"boolean");if(Ii(t))return e.stylize("null","null")}(e,t);if(i)return i;var o=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),$i(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Ci(t);if(0===o.length){if(Di(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Pi(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Bi(t))return e.stylize(Date.prototype.toString.call(t),"date");if($i(t))return Ci(t)}var l,c="",u=!1,d=["{","}"];(Ei(t)&&(u=!0,d=["[","]"]),Di(t))&&(c=" [Function"+(t.name?": "+t.name:"")+"]");return Pi(t)&&(c=" "+RegExp.prototype.toString.call(t)),Bi(t)&&(c=" "+Date.prototype.toUTCString.call(t)),$i(t)&&(c=" "+Ci(t)),0!==o.length||u&&0!=t.length?n<0?Pi(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=u?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,d)):d[0]+c+d[1]}function Ci(e){return"["+Error.prototype.toString.call(e)+"]"}function Mi(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),Gi(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=Ii(n)?Si(e,l.value,null):Si(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),Ni(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function Ei(e){return Array.isArray(e)}function Ai(e){return"boolean"==typeof e}function Ii(e){return null===e}function Oi(e){return null==e}function ji(e){return"number"==typeof e}function Zi(e){return"string"==typeof e}function Ri(e){return"symbol"==typeof e}function Ni(e){return void 0===e}function Pi(e){return Ti(e)&&"[object RegExp]"===Fi(e)}function Ti(e){return"object"==typeof e&&null!==e}function Bi(e){return Ti(e)&&"[object Date]"===Fi(e)}function $i(e){return Ti(e)&&("[object Error]"===Fi(e)||e instanceof Error)}function Di(e){return"function"==typeof e}function Li(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function zi(e){return $n.isBuffer(e)}function Fi(e){return Object.prototype.toString.call(e)}function Wi(e){return e<10?"0"+e.toString(10):e.toString(10)}_i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},_i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Hi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Vi(){var e=new Date,t=[Wi(e.getHours()),Wi(e.getMinutes()),Wi(e.getSeconds())].join(":");return[e.getDate(),Hi[e.getMonth()],t].join(" ")}function Ui(){console.log("%s - %s",Vi(),gi.apply(null,arguments))}function Yi(e,t){if(!t||!Ti(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Gi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var qi="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function Xi(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(qi&&e[qi]){var t;if("function"!=typeof(t=e[qi]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,qi,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:s,value:function(e,n){return a(this,t(t({},n),{},{depth:0,customInspect:!1}))}}],i&&r(n.prototype,i),l&&r(n,l),Object.defineProperty(n,"prototype",{writable:!1}),e}(),Qi}function ao(){if(no)return to;function e(e,r){n(e,r),t(e)}function t(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}return no=1,to={destroy:function(r,i){var o=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(i?i(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Xr.nextTick(n,this,r)):Xr.nextTick(n,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,(function(n){!i&&n?o._writableState?o._writableState.errorEmitted?Xr.nextTick(t,o):(o._writableState.errorEmitted=!0,Xr.nextTick(e,o,n)):Xr.nextTick(e,o,n):i?(Xr.nextTick(t,o),i(n)):Xr.nextTick(t,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}var so={};var lo,co,uo,fo,ho,po,mo,go,vo={};function bo(e,t,n){n||(n=Error);var r=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);r.prototype.name=n.name,r.prototype.code=e,vo[e]=r}function yo(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function wo(){if(co)return lo;co=1;var e=so.codes.ERR_INVALID_OPT_VALUE;return lo={getHighWaterMark:function(t,n,r,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(n,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new e(i?r:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}},lo}function _o(){if(fo)return uo;function e(e){try{if(!We.localStorage)return!1}catch(e){return!1}var t=We.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}return fo=1,uo=function(t,n){if(e("noDeprecation"))return t;var r=!1;return function(){if(!r){if(e("throwDeprecation"))throw new Error(n);e("traceDeprecation")?console.trace(n):console.warn(n),r=!0}return t.apply(this,arguments)}},uo}function xo(){if(po)return ho;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var t;po=1,ho=_,_.WritableState=w;var n={deprecate:_o()},r=fi(),i=kr.Buffer,o=(void 0!==We?We:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var a,s=ao(),l=wo().getHighWaterMark,c=so.codes,u=c.ERR_INVALID_ARG_TYPE,d=c.ERR_METHOD_NOT_IMPLEMENTED,f=c.ERR_MULTIPLE_CALLBACK,h=c.ERR_STREAM_CANNOT_PIPE,p=c.ERR_STREAM_DESTROYED,m=c.ERR_STREAM_NULL_VALUES,g=c.ERR_STREAM_WRITE_AFTER_END,v=c.ERR_UNKNOWN_ENCODING,b=s.errorOrDestroy;function y(){}function w(n,r,i){t=t||ko(),n=n||{},"boolean"!=typeof i&&(i=r instanceof t),this.objectMode=!!n.objectMode,i&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=l(this,n,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===n.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new f;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(Xr.nextTick(i,r),Xr.nextTick(E,e,t),e._writableState.errorEmitted=!0,b(e,r)):(i(r),e._writableState.errorEmitted=!0,b(e,r),E(e,t))}(e,n,r,t,i);else{var o=C(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||S(e,n),r?Xr.nextTick(k,e,n,o,i):k(e,n,o,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function _(e){var n=this instanceof(t=t||ko());if(!n&&!a.call(_,this))return new _(e);this._writableState=new w(e,this,n),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),r.call(this)}function x(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new p("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function k(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),E(e,t)}function S(t,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(t._writev&&r&&r.next){var i=n.bufferedRequestCount,o=new Array(i),a=n.corkedRequestsFree;a.entry=r;for(var s=0,l=!0;r;)o[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;o.allBuffers=l,x(t,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,d=r.callback;if(x(t,n,!1,n.objectMode?1:c.length,c,u,d),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final((function(n){t.pendingcb--,n&&b(e,n),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var n=C(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,Xr.nextTick(M,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}return _n(_,r),w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(w.prototype,"buffer",{get:n.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===_&&(e&&e._writableState instanceof w)}})):a=function(e){return e instanceof this},_.prototype.pipe=function(){b(this,new h)},_.prototype.write=function(e,t,n){var r,a=this._writableState,s=!1,l=!a.objectMode&&(r=e,i.isBuffer(r)||r instanceof o);return l&&!i.isBuffer(e)&&(e=function(e){return i.from(e)}(e)),"function"==typeof t&&(n=t,t=null),l?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=y),a.ending?function(e,t){var n=new g;b(e,n),Xr.nextTick(t,n)}(this,n):(l||function(e,t,n,r){var i;return null===n?i=new m:"string"==typeof n||t.objectMode||(i=new u("chunk",["string","Buffer"],n)),!i||(b(e,i),Xr.nextTick(r,i),!1)}(this,a,e,n))&&(a.pendingcb++,s=function(e,t,n,r,o,a){if(!n){var s=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=i.from(t,n));return t}(t,r,o);r!==s&&(n=!0,o="buffer",r=s)}var l=t.objectMode?1:r.length;t.length+=l;var c=t.length-1))throw new v(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(e,t,n){n(new d("_write()"))},_.prototype._writev=null,_.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?Xr.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),_.prototype.destroy=s.destroy,_.prototype._undestroy=s.undestroy,_.prototype._destroy=function(e,t){t(e)},ho}function ko(){if(go)return mo;go=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};mo=a;var t=Lo(),n=xo();_n(a,t);for(var r=e(n.prototype),i=0;ie.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))a="The ".concat(e," ").concat(r," ").concat(yo(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(r," ").concat(yo(t,"type"))}return a+=". Received type ".concat(typeof n)}),TypeError),bo("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),bo("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),bo("ERR_STREAM_PREMATURE_CLOSE","Premature close"),bo("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),bo("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),bo("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),bo("ERR_STREAM_WRITE_AFTER_END","write after end"),bo("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),bo("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),bo("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),so.codes=vo;var So=$n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Co(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!So(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Eo;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Ao;break;default:return void(this.write=Mo)}this.charBuffer=new $n(6),this.charReceived=0,this.charLength=0}function Mo(e){return e.toString(this.encoding)}function Eo(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function Ao(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}Co.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var i;r=(t+=e.toString(this.encoding,0,r)).length-1;if((i=t.charCodeAt(r))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,r)}return t},Co.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},Co.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t};var Io=He(Object.freeze({__proto__:null,StringDecoder:Co})),Oo=so.codes.ERR_STREAM_PREMATURE_CLOSE;function jo(){}var Zo,Ro,No,Po,To,Bo,$o=function e(t,n,r){if("function"==typeof n)return e(t,null,n);n||(n={}),r=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===r.prototype||(t=function(e){return r.from(e)}(t)),a)c.endEmitted?b(e,new v):k(e,c,t,!0);else if(c.ended)b(e,new m);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!n?(t=c.decoder.write(t),c.objectMode||0!==t.length?k(e,c,t,!1):A(e,c)):k(e,c,t,!1)}else a||(c.reading=!1,A(e,c));return!c.ended&&(c.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,Xr.nextTick(E,e))}function E(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,R(e)}function A(e,t){t.readingMore||(t.readingMore=!0,Xr.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function j(e){o("readable nexttick read 0"),e.read(0)}function Z(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),R(e),t.flowing&&!t.reading&&e.read(0)}function R(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function P(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,Xr.nextTick(T,t,e))}function T(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function B(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):M(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&P(this),null;var r,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&P(this)),null!==r&&this.emit("data",r),r},_.prototype._read=function(e){b(this,new g("_read()"))},_.prototype.pipe=function(e,n){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,n);var a=(!n||!1!==n.end)&&e!==Xr.stdout&&e!==Xr.stderr?l:m;function s(t,n){o("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,o("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",m),r.removeListener("data",d),u=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function l(){o("onend"),e.end()}i.endEmitted?Xr.nextTick(a):r.once("end",a),e.on("unpipe",s);var c=function(e){return function(){var n=e._readableState;o("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,0===n.awaitDrain&&t(e,"data")&&(n.flowing=!0,R(e))}}(r);e.on("drain",c);var u=!1;function d(t){o("ondata");var n=e.write(t);o("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==B(i.pipes,e))&&!u&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function f(n){o("onerror",n),m(),e.removeListener("error",f),0===t(e,"error")&&b(e,n)}function h(){e.removeListener("finish",p),m()}function p(){o("onfinish"),e.removeListener("close",h),m()}function m(){o("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},_.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?M(this):i.reading||Xr.nextTick(j,this))),r},_.prototype.addListener=_.prototype.on,_.prototype.removeListener=function(e,t){var r=n.prototype.removeListener.call(this,e,t);return"readable"===e&&Xr.nextTick(O,this),r},_.prototype.removeAllListeners=function(e){var t=n.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||Xr.nextTick(O,this),t},_.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Xr.nextTick(Z,e,t))}(this,e)),e.paused=!1,this},_.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},_.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(o("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(o("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a0,(function(e){r||(r=e),e&&o.forEach(sa),a||(o.forEach(sa),i(r))}))}));return t.reduce(la)};ua=Cr.exports,(ua=Cr.exports=Lo()).Stream=ua,ua.Readable=ua,ua.Writable=xo(),ua.Duplex=ko(),ua.Transform=zo,ua.PassThrough=Qo,ua.finished=$o,ua.pipeline=da;var fa=Cr.exports;fa.default;var ha=Sr.Buffer,pa=fa.Transform;function ma(e){pa.call(this),this._block=ha.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}_n(ma,pa),ma.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},ma.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},ma.prototype.update=function(e,t){if(function(e,t){if(!ha.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");ha.isBuffer(e)||(e=ha.from(e,t));for(var n=this._block,r=0;this._blockOffset+e.length-r>=this._blockSize;){for(var i=this._blockOffset;i0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},ma.prototype._update=function(){throw new Error("_update is not implemented")},ma.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},ma.prototype._digest=function(){throw new Error("_digest is not implemented")};var ga=ma;ga.default;var va=_n,ba=ga,ya=Sr.Buffer,wa=new Array(16);function _a(){ba.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function xa(e,t){return e<>>32-t}function ka(e,t,n,r,i,o,a){return xa(e+(t&n|~t&r)+i+o|0,a)+t|0}function Sa(e,t,n,r,i,o,a){return xa(e+(t&r|n&~r)+i+o|0,a)+t|0}function Ca(e,t,n,r,i,o,a){return xa(e+(t^n^r)+i+o|0,a)+t|0}function Ma(e,t,n,r,i,o,a){return xa(e+(n^(t|~r))+i+o|0,a)+t|0}va(_a,ba),_a.prototype._update=function(){for(var e=wa,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=ka(n,r,i,o,e[0],3614090360,7),o=ka(o,n,r,i,e[1],3905402710,12),i=ka(i,o,n,r,e[2],606105819,17),r=ka(r,i,o,n,e[3],3250441966,22),n=ka(n,r,i,o,e[4],4118548399,7),o=ka(o,n,r,i,e[5],1200080426,12),i=ka(i,o,n,r,e[6],2821735955,17),r=ka(r,i,o,n,e[7],4249261313,22),n=ka(n,r,i,o,e[8],1770035416,7),o=ka(o,n,r,i,e[9],2336552879,12),i=ka(i,o,n,r,e[10],4294925233,17),r=ka(r,i,o,n,e[11],2304563134,22),n=ka(n,r,i,o,e[12],1804603682,7),o=ka(o,n,r,i,e[13],4254626195,12),i=ka(i,o,n,r,e[14],2792965006,17),n=Sa(n,r=ka(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=Sa(o,n,r,i,e[6],3225465664,9),i=Sa(i,o,n,r,e[11],643717713,14),r=Sa(r,i,o,n,e[0],3921069994,20),n=Sa(n,r,i,o,e[5],3593408605,5),o=Sa(o,n,r,i,e[10],38016083,9),i=Sa(i,o,n,r,e[15],3634488961,14),r=Sa(r,i,o,n,e[4],3889429448,20),n=Sa(n,r,i,o,e[9],568446438,5),o=Sa(o,n,r,i,e[14],3275163606,9),i=Sa(i,o,n,r,e[3],4107603335,14),r=Sa(r,i,o,n,e[8],1163531501,20),n=Sa(n,r,i,o,e[13],2850285829,5),o=Sa(o,n,r,i,e[2],4243563512,9),i=Sa(i,o,n,r,e[7],1735328473,14),n=Ca(n,r=Sa(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=Ca(o,n,r,i,e[8],2272392833,11),i=Ca(i,o,n,r,e[11],1839030562,16),r=Ca(r,i,o,n,e[14],4259657740,23),n=Ca(n,r,i,o,e[1],2763975236,4),o=Ca(o,n,r,i,e[4],1272893353,11),i=Ca(i,o,n,r,e[7],4139469664,16),r=Ca(r,i,o,n,e[10],3200236656,23),n=Ca(n,r,i,o,e[13],681279174,4),o=Ca(o,n,r,i,e[0],3936430074,11),i=Ca(i,o,n,r,e[3],3572445317,16),r=Ca(r,i,o,n,e[6],76029189,23),n=Ca(n,r,i,o,e[9],3654602809,4),o=Ca(o,n,r,i,e[12],3873151461,11),i=Ca(i,o,n,r,e[15],530742520,16),n=Ma(n,r=Ca(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=Ma(o,n,r,i,e[7],1126891415,10),i=Ma(i,o,n,r,e[14],2878612391,15),r=Ma(r,i,o,n,e[5],4237533241,21),n=Ma(n,r,i,o,e[12],1700485571,6),o=Ma(o,n,r,i,e[3],2399980690,10),i=Ma(i,o,n,r,e[10],4293915773,15),r=Ma(r,i,o,n,e[1],2240044497,21),n=Ma(n,r,i,o,e[8],1873313359,6),o=Ma(o,n,r,i,e[15],4264355552,10),i=Ma(i,o,n,r,e[6],2734768916,15),r=Ma(r,i,o,n,e[13],1309151649,21),n=Ma(n,r,i,o,e[4],4149444226,6),o=Ma(o,n,r,i,e[11],3174756917,10),i=Ma(i,o,n,r,e[2],718787259,15),r=Ma(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},_a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=ya.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};var Ea=_a;Ea.default;var Aa=kr.Buffer,Ia=_n,Oa=ga,ja=new Array(16),Za=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],Ra=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],Na=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],Pa=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],Ta=[0,1518500249,1859775393,2400959708,2840853838],Ba=[1352829926,1548603684,1836072691,2053994217,0];function $a(){Oa.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function Da(e,t){return e<>>32-t}function La(e,t,n,r,i,o,a,s){return Da(e+(t^n^r)+o+a|0,s)+i|0}function za(e,t,n,r,i,o,a,s){return Da(e+(t&n|~t&r)+o+a|0,s)+i|0}function Fa(e,t,n,r,i,o,a,s){return Da(e+((t|~n)^r)+o+a|0,s)+i|0}function Wa(e,t,n,r,i,o,a,s){return Da(e+(t&r|n&~r)+o+a|0,s)+i|0}function Ha(e,t,n,r,i,o,a,s){return Da(e+(t^(n|~r))+o+a|0,s)+i|0}Ia($a,Oa),$a.prototype._update=function(){for(var e=ja,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,s=0|this._a,l=0|this._b,c=0|this._c,u=0|this._d,d=0|this._e,f=0;f<80;f+=1){var h,p;f<16?(h=La(n,r,i,o,a,e[Za[f]],Ta[0],Na[f]),p=Ha(s,l,c,u,d,e[Ra[f]],Ba[0],Pa[f])):f<32?(h=za(n,r,i,o,a,e[Za[f]],Ta[1],Na[f]),p=Wa(s,l,c,u,d,e[Ra[f]],Ba[1],Pa[f])):f<48?(h=Fa(n,r,i,o,a,e[Za[f]],Ta[2],Na[f]),p=Fa(s,l,c,u,d,e[Ra[f]],Ba[2],Pa[f])):f<64?(h=Wa(n,r,i,o,a,e[Za[f]],Ta[3],Na[f]),p=za(s,l,c,u,d,e[Ra[f]],Ba[3],Pa[f])):(h=Ha(n,r,i,o,a,e[Za[f]],Ta[4],Na[f]),p=La(s,l,c,u,d,e[Ra[f]],Ba[4],Pa[f])),n=a,a=o,o=Da(i,10),i=r,r=h,s=d,d=u,u=Da(c,10),c=l,l=p}var m=this._b+i+u|0;this._b=this._c+o+d|0,this._c=this._d+a+s|0,this._d=this._e+n+l|0,this._e=this._a+r+c|0,this._a=m},$a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Aa.alloc?Aa.alloc(20):new Aa(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};var Va=$a;Va.default;var Ua={exports:{}},Ya=Sr.Buffer;function Ga(e,t){this._block=Ya.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Ga.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=Ya.from(e,t));for(var n=this._block,r=this._blockSize,i=e.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},Ga.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var qa=Ga;qa.default;var Xa=_n,Ka=qa,Ja=Sr.Buffer,Qa=[1518500249,1859775393,-1894007588,-899497514],es=new Array(80);function ts(){this.init(),this._w=es,Ka.call(this,64,56)}function ns(e){return e<<30|e>>>2}function rs(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}Xa(ts,Ka),ts.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},ts.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,l=0;l<16;++l)n[l]=e.readInt32BE(4*l);for(;l<80;++l)n[l]=n[l-3]^n[l-8]^n[l-14]^n[l-16];for(var c=0;c<80;++c){var u=~~(c/20),d=0|((t=r)<<5|t>>>27)+rs(u,i,o,a)+s+n[c]+Qa[u];s=a,a=o,o=ns(i),i=r,r=d}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},ts.prototype._hash=function(){var e=Ja.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var is=ts;is.default;var os=_n,as=qa,ss=Sr.Buffer,ls=[1518500249,1859775393,-1894007588,-899497514],cs=new Array(80);function us(){this.init(),this._w=cs,as.call(this,64,56)}function ds(e){return e<<5|e>>>27}function fs(e){return e<<30|e>>>2}function hs(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}os(us,as),us.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},us.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,l=0;l<16;++l)n[l]=e.readInt32BE(4*l);for(;l<80;++l)n[l]=(t=n[l-3]^n[l-8]^n[l-14]^n[l-16])<<1|t>>>31;for(var c=0;c<80;++c){var u=~~(c/20),d=ds(r)+hs(u,i,o,a)+s+n[c]+ls[u]|0;s=a,a=o,o=fs(i),i=r,r=d}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},us.prototype._hash=function(){var e=ss.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var ps=us;ps.default;var ms=_n,gs=qa,vs=Sr.Buffer,bs=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],ys=new Array(64);function ws(){this.init(),this._w=ys,gs.call(this,64,56)}function _s(e,t,n){return n^e&(t^n)}function xs(e,t,n){return e&t|n&(e|t)}function ks(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function Ss(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function Cs(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function Ms(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}ms(ws,gs),ws.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},ws.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,s=0|this._f,l=0|this._g,c=0|this._h,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<64;++u)t[u]=Ms(t[u-2])+t[u-7]+Cs(t[u-15])+t[u-16]|0;for(var d=0;d<64;++d){var f=c+Ss(a)+_s(a,s,l)+bs[d]+t[d]|0,h=ks(n)+xs(n,r,i)|0;c=l,l=s,s=a,a=o+f|0,o=i,i=r,r=n,n=f+h|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=s+this._f|0,this._g=l+this._g|0,this._h=c+this._h|0},ws.prototype._hash=function(){var e=vs.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var Es=ws;Es.default;var As=_n,Is=Es,Os=qa,js=Sr.Buffer,Zs=new Array(64);function Rs(){this.init(),this._w=Zs,Os.call(this,64,56)}As(Rs,Is),Rs.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},Rs.prototype._hash=function(){var e=js.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var Ns=Rs;Ns.default;var Ps=_n,Ts=qa,Bs=Sr.Buffer,$s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Ds=new Array(160);function Ls(){this.init(),this._w=Ds,Ts.call(this,128,112)}function zs(e,t,n){return n^e&(t^n)}function Fs(e,t,n){return e&t|n&(e|t)}function Ws(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function Hs(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Vs(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Us(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Ys(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Gs(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function qs(e,t){return e>>>0>>0?1:0}Ps(Ls,Ts),Ls.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},Ls.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,s=0|this._fh,l=0|this._gh,c=0|this._hh,u=0|this._al,d=0|this._bl,f=0|this._cl,h=0|this._dl,p=0|this._el,m=0|this._fl,g=0|this._gl,v=0|this._hl,b=0;b<32;b+=2)t[b]=e.readInt32BE(4*b),t[b+1]=e.readInt32BE(4*b+4);for(;b<160;b+=2){var y=t[b-30],w=t[b-30+1],_=Vs(y,w),x=Us(w,y),k=Ys(y=t[b-4],w=t[b-4+1]),S=Gs(w,y),C=t[b-14],M=t[b-14+1],E=t[b-32],A=t[b-32+1],I=x+M|0,O=_+C+qs(I,x)|0;O=(O=O+k+qs(I=I+S|0,S)|0)+E+qs(I=I+A|0,A)|0,t[b]=O,t[b+1]=I}for(var j=0;j<160;j+=2){O=t[j],I=t[j+1];var Z=Fs(n,r,i),R=Fs(u,d,f),N=Ws(n,u),P=Ws(u,n),T=Hs(a,p),B=Hs(p,a),$=$s[j],D=$s[j+1],L=zs(a,s,l),z=zs(p,m,g),F=v+B|0,W=c+T+qs(F,v)|0;W=(W=(W=W+L+qs(F=F+z|0,z)|0)+$+qs(F=F+D|0,D)|0)+O+qs(F=F+I|0,I)|0;var H=P+R|0,V=N+Z+qs(H,P)|0;c=l,v=g,l=s,g=m,s=a,m=p,a=o+W+qs(p=h+F|0,h)|0,o=i,h=f,i=r,f=d,r=n,d=u,n=W+V+qs(u=F+H|0,F)|0}this._al=this._al+u|0,this._bl=this._bl+d|0,this._cl=this._cl+f|0,this._dl=this._dl+h|0,this._el=this._el+p|0,this._fl=this._fl+m|0,this._gl=this._gl+g|0,this._hl=this._hl+v|0,this._ah=this._ah+n+qs(this._al,u)|0,this._bh=this._bh+r+qs(this._bl,d)|0,this._ch=this._ch+i+qs(this._cl,f)|0,this._dh=this._dh+o+qs(this._dl,h)|0,this._eh=this._eh+a+qs(this._el,p)|0,this._fh=this._fh+s+qs(this._fl,m)|0,this._gh=this._gh+l+qs(this._gl,g)|0,this._hh=this._hh+c+qs(this._hl,v)|0},Ls.prototype._hash=function(){var e=Bs.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var Xs=Ls;Xs.default;var Ks=_n,Js=Xs,Qs=qa,el=Sr.Buffer,tl=new Array(160);function nl(){this.init(),this._w=tl,Qs.call(this,128,112)}Ks(nl,Js),nl.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},nl.prototype._hash=function(){var e=el.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var rl=nl;rl.default;var il=Ua.exports=function(e){e=e.toLowerCase();var t=il[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};il.sha=is,il.sha1=ps,il.sha224=Ns,il.sha256=Es,il.sha384=rl,il.sha512=Xs;var ol=Ua.exports;function al(){this.head=null,this.tail=null,this.length=0}al.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},al.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},al.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},al.prototype.clear=function(){this.head=this.tail=null,this.length=0},al.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},al.prototype.concat=function(e){if(0===this.length)return $n.alloc(0);if(1===this.length)return this.head.data;for(var t=$n.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t},cl.ReadableState=ll;var sl=wi("stream");function ll(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Bl&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new al,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new Co(e.encoding),this.encoding=e.encoding)}function cl(e){if(!(this instanceof cl))return new cl(e);this._readableState=new ll(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),Jr.call(this)}function ul(e,t,n,r,i){var o=function(e,t){var n=null;$n.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,hl(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var l;!t.decoder||i||r||(n=t.decoder.write(n),l=!t.objectMode&&0===n.length),i||(t.reading=!1),l||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&hl(e))),function(e,t){t.readingMore||(t.readingMore=!0,Br(ml,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=dl?e=dl:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function hl(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(sl("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Br(pl,e):pl(e))}function pl(e){sl("emit readable"),e.emit("readable"),bl(e)}function ml(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=$n.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function wl(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Br(_l,t,e))}function _l(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function xl(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return sl("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?wl(this):hl(this),null;if(0===(e=fl(e,t))&&t.ended)return 0===t.length&&wl(this),null;var r,i=t.needReadable;return sl("need readable",i),(0===t.length||t.length-e0?yl(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&wl(this)),null!==r&&this.emit("data",r),r},cl.prototype._read=function(e){this.emit("error",new Error("not implemented"))},cl.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,sl("pipe count=%d opts=%j",r.pipesCount,t);var i=!t||!1!==t.end?a:c;function o(e){sl("onunpipe"),e===n&&c()}function a(){sl("onend"),e.end()}r.endEmitted?Br(i):n.once("end",i),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;sl("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,bl(e))}}(n);e.on("drain",s);var l=!1;function c(){sl("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",f),e.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",c),n.removeListener("data",d),l=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var u=!1;function d(t){sl("ondata"),u=!1,!1!==e.write(t)||u||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==xl(r.pipes,e))&&!l&&(sl("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,u=!0),n.pause())}function f(t){var n;sl("onerror",t),m(),e.removeListener("error",f),0===(n="error",e.listeners(n).length)&&e.emit("error",t)}function h(){e.removeListener("finish",p),m()}function p(){sl("onfinish"),e.removeListener("close",h),m()}function m(){sl("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",h),e.once("finish",p),e.emit("pipe",n),r.flowing||(sl("pipe resume"),n.resume()),e},cl.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Ml.prototype._write=function(e,t,n){n(new Error("not implemented"))},Ml.prototype._writev=null,Ml.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,Zl(e,t),n&&(t.finished?Br(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},hi(Bl,cl);for(var Nl=Object.keys(Ml.prototype),Pl=0;Pl65536){var t=new Error;throw t.code=22,t.message="Failed to execute 'getRandomValues' on 'Crypto': The ArrayBufferView's byte length ("+e.length+") exceeds the number of bytes of entropy available via this API (65536).",t.name="QuotaExceededError",t}var n=oc.randomBytes(e.length);return e.set(n),e}throw new Error("No secure random number generator available.")};Object.defineProperty(vn,"__esModule",{value:!0});var sc=nc,lc=ac,cc=kr;function uc(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var dc=uc(yn),fc=uc(sc),hc=uc(lc);const pc={EOS:"eos",ETH:"eth",TRX:"trx"};Object.keys(pc).map((e=>({key:e,value:pc[e]})));let mc=class e{constructor(e=pc.EOS,t="",n="",r=null,i=null){this.blockchain=e,this.contract=t,this.symbol=n,this.name=r||n,this.decimals=i}static placeholder(){return new e}static fromJson(e){return Object.assign(this.placeholder(),e)}};const gc="blockchain_support",vc="wallet_support";var bc=Object.freeze({__proto__:null,BLOCKCHAIN_SUPPORT:gc,WALLET_SUPPORT:vc});let yc=class e{constructor(e="",t=""){this.name=e,this.type=t}static placeholder(){return new e}static fromJson(t){return Object.assign(e.placeholder(),t)}isSignatureProvider(){return this.type===gc}isValid(){return Object.keys(bc).map((e=>bc[e])).includes(this.type)}};const wc={disconnect:"disconnect",isConnected:"isConnected",isPaired:"isPaired",addEventHandler:"addEventHandler",removeEventHandler:"removeEventHandler",listen:"listen",getVersion:"getVersion",getIdentity:"getIdentity",getAllAccountsFor:"getAllAccountsFor",getIdentityFromPermissions:"getIdentityFromPermissions",forgetIdentity:"forgetIdentity",updateIdentity:"updateIdentity",authenticate:"authenticate",getArbitrarySignature:"getArbitrarySignature",getPublicKey:"getPublicKey",linkAccount:"linkAccount",hasAccountFor:"hasAccountFor",suggestNetwork:"suggestNetwork",requestTransfer:"requestTransfer",getAvatar:"getAvatar",requestSignature:"requestSignature",createTransaction:"createTransaction",addToken:"addToken",createEncryptionKey:"createEncryptionKey"},_c={[wc.getIdentity]:"login",[wc.getAllAccountsFor]:"loginAll",[wc.forgetIdentity]:"logout",[wc.getIdentityFromPermissions]:"checkLogin"};let xc=class{constructor(e,t,n){const r=t=>()=>{throw console.error(`${e} does not support the ${t} method.`),new Error(`${e} does not support the ${t} method.`)};Object.keys(wc).map((e=>((e,t)=>{void 0===n[t]&&(n[t]=e||r(t)),_c[t]&&void 0===n[_c[t]]&&(n[_c[t]]=n[t]?n[t]:r(t))})(t[e],e)))}static bindBasics(e){e.account=t=>{if(e.identity&&e.identity.accounts)return e.identity.accounts.find((e=>e.blockchain===t))}}},kc=class{static getMethods(e,t){const n=(t,n)=>((t||n)&&(e.holderFns.get().identity=t),n||t);return{[wc.disconnect]:()=>t().disconnect(),[wc.isConnected]:()=>t().isConnected(),[wc.isPaired]:()=>t().isPaired(),[wc.addEventHandler]:(e,n=null)=>t().addEventHandler(e,n),[wc.removeEventHandler]:(e=null)=>t().removeEventHandler(e),[wc.listen]:e=>t().addEventHandler(e),[wc.getVersion]:()=>t().sendApiRequest({type:"getVersion",payload:{}}),[wc.getIdentity]:r=>t().sendApiRequest({type:"getOrRequestIdentity",payload:{fields:r||{accounts:[e.holderFns.get().network]}}}).then(n),[wc.getAllAccountsFor]:r=>t().sendApiRequest({type:"getAllAccountsFor",payload:{fields:r||{accounts:[e.holderFns.get().network]}}}).then(n),[wc.getIdentityFromPermissions]:()=>t().sendApiRequest({type:"identityFromPermissions",payload:{}}).then(n),[wc.forgetIdentity]:()=>t().sendApiRequest({type:"forgetIdentity",payload:{}}).then((e=>n(null,e))),[wc.updateIdentity]:({name:e,kyc:r})=>t().sendApiRequest({type:"updateIdentity",payload:{name:e,kyc:r}}).then((e=>e?n(e):null)),[wc.authenticate]:(e,n=null,r=null)=>t().sendApiRequest({type:"authenticate",payload:{nonce:e,data:n,publicKey:r}}),[wc.getArbitrarySignature]:(e,n)=>t().sendApiRequest({type:"requestArbitrarySignature",payload:{publicKey:e,data:n}}),[wc.getPublicKey]:e=>t().sendApiRequest({type:"getPublicKey",payload:{blockchain:e}}),[wc.linkAccount]:(n,r)=>t().sendApiRequest({type:"linkAccount",payload:{account:n,network:r||e.holderFns.get().network}}),[wc.hasAccountFor]:n=>t().sendApiRequest({type:"hasAccountFor",payload:{network:n||e.holderFns.get().network}}),[wc.suggestNetwork]:n=>t().sendApiRequest({type:"requestAddNetwork",payload:{network:n||e.holderFns.get().network}}),[wc.requestTransfer]:(n,r,i,o={})=>t().sendApiRequest({type:"requestTransfer",payload:{network:n||e.holderFns.get().network,to:r,amount:i,options:o}}),[wc.getAvatar]:()=>t().sendApiRequest({type:"getAvatar",payload:{}}),[wc.requestSignature]:e=>t().sendApiRequest({type:"requestSignature",payload:e}),[wc.createTransaction]:(n,r,i,o)=>t().sendApiRequest({type:"createTransaction",payload:{blockchain:n,actions:r,account:i,network:o||e.holderFns.get().network}}),[wc.addToken]:(n,r)=>t().sendApiRequest({type:"addToken",payload:{token:n,network:r||e.holderFns.get().network}}),[wc.createEncryptionKey]:(e,n,r=null)=>t().sendApiRequest({type:"createEncryptionKey",payload:{scatterPublicKey:e,otherPublicKey:n,nonce:r}})}}},Sc=!1;"undefined"!=typeof document&&document.addEventListener("walletLoaded",(()=>Sc=!0));const Cc=async(e=null,t=0)=>new Promise((n=>(e||(e=n),Sc||"undefined"!=typeof window&&void 0!==window.wallet&&(Sc=!0,1)?e(!0):t>5?e(!1):void setTimeout((()=>Cc(e,t+1)),100))));let Mc=class extends yc{constructor(e,t){super("InjectedWalletV2",vc),this.name="InjectedWalletV2",this.context=e,this.holderFns=t}async connect(){return new Promise((async e=>{await Cc()&&(this.holderFns&&!this.holderFns.get().wallet&&(this.holderFns.get().wallet=this.name),e({disconnect:()=>{},sendApiRequest:window.wallet.sendApiRequest}))}))}async runAfterInterfacing(){return this.holderFns.get().identity=await this.holderFns.get().getIdentityFromPermissions(),!0}methods(){return kc.getMethods(this,(()=>window.wallet))}},Ec=class e{constructor(e="",t="https",n="",r=0,i=pc.EOS,o=""){this.name=e,this.protocol=t,this.host=n,this.port=r,this.blockchain=i,this.chainId=o.toString(),this.token=null}static placeholder(){return new e}static fromJson(t){const n=Object.assign(e.placeholder(),t);return n.chainId=n.chainId?n.chainId.toString():"",n.token=t.hasOwnProperty("token")&&t.token?mc.fromJson(t.token):null,n}fullhost(){return`${this.protocol}://${this.host}${this.port?":":""}${this.port}`}unique(){return(`${this.blockchain}:`+(this.chainId.length?`chain:${this.chainId}`:`${this.host}:${this.port}`)).toLowerCase()}},Ac={};const Ic=()=>"undefined"!=typeof window?window:{localStorage:{setItem:(e,t)=>Ac[e]=t,getItem:e=>Ac[e]||null,removeItem:e=>delete Ac[e]}};let Oc=class{constructor(){}static setAppKey(e){Ic().localStorage.setItem("appkey",e)}static getAppKey(){return Ic().localStorage.getItem("appkey")}static removeAppKey(){return Ic().localStorage.removeItem("appkey")}static setNonce(e){Ic().localStorage.setItem("nonce",e)}static getNonce(){return Ic().localStorage.getItem("nonce")}static removeNonce(){return Ic().localStorage.removeItem("nonce")}};var jc=new RegExp("^.*("+["\\+https:\\/\\/developers.google.com\\/\\+\\/web\\/snippet\\/","googlebot","baiduspider","gurujibot","yandexbot","slurp","msnbot","bingbot","facebookexternalhit","linkedinbot","twitterbot","slackbot","telegrambot","applebot","pingdom","tumblr ","Embedly","spbot"].join("|")+").*$"),Zc=function(e){e=e||{};var t={version:!1,language:!1,platform:!0,os:!0,pixelDepth:!0,colorDepth:!0,resolution:!1,isAuthoritative:!0,silkAccelerated:!0,isKindleFire:!0,isDesktop:!0,isMobile:!0,isTablet:!0,isWindows:!0,isLinux:!0,isLinux64:!0,isChromeOS:!0,isMac:!0,isiPad:!0,isiPhone:!0,isiPod:!0,isAndroid:!0,isSamsung:!0,isSmartTV:!0,isRaspberry:!0,isBlackberry:!0,isTouchScreen:!0,isOpera:!1,isIE:!1,isEdge:!1,isIECompatibilityMode:!1,isSafari:!1,isFirefox:!1,isWebkit:!1,isChrome:!1,isKonqueror:!1,isOmniWeb:!1,isSeaMonkey:!1,isFlock:!1,isAmaya:!1,isPhantomJS:!1,isEpiphany:!1,source:!1,cpuCores:!1};for(var n in e)e.hasOwnProperty(n)&&void 0!==t[n]&&(t[n]=e[n]);return this.options=t,this.version="1.0.0",this._Versions={Edge:/Edge\/([\d\w\.\-]+)/i,Firefox:/firefox\/([\d\w\.\-]+)/i,IE:/msie\s([\d\.]+[\d])|trident\/\d+\.\d+;.*[rv:]+(\d+\.\d)/i,Chrome:/chrome\/([\d\w\.\-]+)/i,Chromium:/(?:chromium|crios)\/([\d\w\.\-]+)/i,Safari:/version\/([\d\w\.\-]+)/i,Opera:/version\/([\d\w\.\-]+)|OPR\/([\d\w\.\-]+)/i,Ps3:/([\d\w\.\-]+)\)\s*$/i,Psp:/([\d\w\.\-]+)\)?\s*$/i,Amaya:/amaya\/([\d\w\.\-]+)/i,SeaMonkey:/seamonkey\/([\d\w\.\-]+)/i,OmniWeb:/omniweb\/v([\d\w\.\-]+)/i,Flock:/flock\/([\d\w\.\-]+)/i,Epiphany:/epiphany\/([\d\w\.\-]+)/i,WinJs:/msapphost\/([\d\w\.\-]+)/i,PhantomJS:/phantomjs\/([\d\w\.\-]+)/i,UC:/UCBrowser\/([\d\w\.]+)/i},this._Browsers={Edge:/edge/i,Amaya:/amaya/i,Konqueror:/konqueror/i,Epiphany:/epiphany/i,SeaMonkey:/seamonkey/i,Flock:/flock/i,OmniWeb:/omniweb/i,Chromium:/chromium|crios/i,Chrome:/chrome/i,Safari:/safari/i,IE:/msie|trident/i,Opera:/opera|OPR/i,PS3:/playstation 3/i,PSP:/playstation portable/i,Firefox:/firefox/i,WinJs:/msapphost/i,PhantomJS:/phantomjs/i,UC:/UCBrowser/i},this._OS={Windows10:/windows nt 10\.0/i,Windows81:/windows nt 6\.3/i,Windows8:/windows nt 6\.2/i,Windows7:/windows nt 6\.1/i,UnknownWindows:/windows nt 6\.\d+/i,WindowsVista:/windows nt 6\.0/i,Windows2003:/windows nt 5\.2/i,WindowsXP:/windows nt 5\.1/i,Windows2000:/windows nt 5\.0/i,WindowsPhone8:/windows phone 8\./,OSXCheetah:/os x 10[._]0/i,OSXPuma:/os x 10[._]1(\D|$)/i,OSXJaguar:/os x 10[._]2/i,OSXPanther:/os x 10[._]3/i,OSXTiger:/os x 10[._]4/i,OSXLeopard:/os x 10[._]5/i,OSXSnowLeopard:/os x 10[._]6/i,OSXLion:/os x 10[._]7/i,OSXMountainLion:/os x 10[._]8/i,OSXMavericks:/os x 10[._]9/i,OSXYosemite:/os x 10[._]10/i,OSXElCapitan:/os x 10[._]11/i,OSXSierra:/os x 10[._]12/i,Mac:/os x/i,Linux:/linux/i,Linux64:/linux x86_64/i,ChromeOS:/cros/i,Wii:/wii/i,PS3:/playstation 3/i,PSP:/playstation portable/i,iPad:/\(iPad.*os (\d+)[._](\d+)/i,iPhone:/\(iPhone.*os (\d+)[._](\d+)/i,Bada:/Bada\/(\d+)\.(\d+)/i,Curl:/curl\/(\d+)\.(\d+)\.(\d+)/i},this._Platform={Windows:/windows nt/i,WindowsPhone:/windows phone/i,Mac:/macintosh/i,Linux:/linux/i,Wii:/wii/i,Playstation:/playstation/i,iPad:/ipad/i,iPod:/ipod/i,iPhone:/iphone/i,Android:/android/i,Blackberry:/blackberry/i,Samsung:/samsung/i,Curl:/curl/i},this.DefaultAgent={isAuthoritative:!0,isMobile:!1,isTablet:!1,isiPad:!1,isiPod:!1,isiPhone:!1,isAndroid:!1,isBlackberry:!1,isOpera:!1,isIE:!1,isEdge:!1,isIECompatibilityMode:!1,isSafari:!1,isFirefox:!1,isWebkit:!1,isChrome:!1,isKonqueror:!1,isOmniWeb:!1,isSeaMonkey:!1,isFlock:!1,isAmaya:!1,isPhantomJS:!1,isEpiphany:!1,isDesktop:!1,isWindows:!1,isLinux:!1,isLinux64:!1,isMac:!1,isChromeOS:!1,isBada:!1,isSamsung:!1,isRaspberry:!1,isBot:!1,isCurl:!1,isAndroidTablet:!1,isWinJs:!1,isKindleFire:!1,isSilk:!1,isCaptive:!1,isSmartTV:!1,isUC:!1,isTouchScreen:!1,silkAccelerated:!1,colorDepth:-1,pixelDepth:-1,resolution:[],cpuCores:-1,language:"unknown",browser:"unknown",version:"unknown",os:"unknown",platform:"unknown",geoIp:{},source:"",hashInt:function(e){var t,n,r=0;if(0===e.length)return r;for(t=0,n=e.length;t>>32-t}function n(e,t){var n,r,i,o,a;return i=2147483648&e,o=2147483648&t,a=(1073741823&e)+(1073741823&t),(n=1073741824&e)&(r=1073741824&t)?2147483648^a^i^o:n|r?1073741824&a?3221225472^a^i^o:1073741824^a^i^o:a^i^o}function r(e,r,i,o,a,s,l){return e=n(e,n(n(function(e,t,n){return e&t|~e&n}(r,i,o),a),l)),n(t(e,s),r)}function i(e,r,i,o,a,s,l){return e=n(e,n(n(function(e,t,n){return e&n|t&~n}(r,i,o),a),l)),n(t(e,s),r)}function o(e,r,i,o,a,s,l){return e=n(e,n(n(function(e,t,n){return e^t^n}(r,i,o),a),l)),n(t(e,s),r)}function a(e,r,i,o,a,s,l){return e=n(e,n(n(function(e,t,n){return t^(e|~n)}(r,i,o),a),l)),n(t(e,s),r)}function s(e){var t,n="",r="";for(t=0;t<=3;t++)n+=(r="0"+(e>>>8*t&255).toString(16)).substr(r.length-2,2);return n}var l,c,u,d,f,h,p,m,g,v;for(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t}(e),l=function(e){for(var t,n=e.length,r=n+8,i=16*((r-r%64)/64+1),o=new Array(i-1),a=0,s=0;s>>29,o}(e),p=1732584193,m=4023233417,g=2562383102,v=271733878,c=0;c0||navigator.msMaxTouchPoints>0},this.getLaguage=function(){this.Agent.language=(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||"").toLowerCase()},this.getColorDepth=function(){this.Agent.colorDepth=screen.colorDepth||-1},this.getScreenResolution=function(){this.Agent.resolution=[screen.availWidth,screen.availHeight]},this.getPixelDepth=function(){this.Agent.pixelDepth=screen.pixelDepth||-1},this.getCPU=function(){this.Agent.cpuCores=navigator.hardwareConcurrency||-1},this.reset=function(){var e=this;for(var t in e.DefaultAgent)e.DefaultAgent.hasOwnProperty(t)&&(e.Agent[t]=e.DefaultAgent[t]);return e},this.parse=function(e){e=e||navigator.userAgent;var t=new Zc;return t.Agent.source=e.replace(/^\s*/,"").replace(/\s*$/,""),t.Agent.os=t.getOS(t.Agent.source),t.Agent.platform=t.getPlatform(t.Agent.source),t.Agent.browser=t.getBrowser(t.Agent.source),t.Agent.version=t.getBrowserVersion(t.Agent.source),t.testBot(),t.testSmartTV(),t.testMobile(),t.testAndroidTablet(),t.testTablet(),t.testCompatibilityMode(),t.testSilk(),t.testKindleFire(),t.testCaptiveNetwork(),t.testTouchSupport(),t.getLaguage(),t.getColorDepth(),t.getPixelDepth(),t.getScreenResolution(),t.getCPU(),t.Agent},this.get=function(e){var t=this.parse(),n=[];for(var r in this.options)this.options.hasOwnProperty(r)&&!0===this.options[r]&&n.push(t[r]);e&&n.push(e),!this.options.resolution&&t.isMobile&&n.push(t.resolution);var i=t.hashMD5(n.join(":"));return[i.slice(0,8),i.slice(8,12),"4"+i.slice(12,15),"b"+i.slice(15,18),i.slice(20)].join("-")},this.Agent=this.DefaultAgent,this};let Rc;if("undefined"==typeof navigator)Rc="nodejs_env";else{const e=(new Zc).parse(),t=[e.language,e.platform,e.os,e.cpuCores,e.colorDepth];Rc=e.hashMD5(t.join(":"))}var Nc=Rc;const Pc=e=>fc.default("sha256").update(e).digest("hex"),Tc=()=>{let e=new Uint8Array(24);return hc.default(e),e.join("")};let Bc=class e{constructor(e,t){this.plugin=e,this.timeout=t,this.uuid=null,this.socket=null,this.connected=!1,this.paired=!1,this.openRequests=[],this.pairingPromise=null,this.eventHandlers={},this.appkey=Oc.getAppKey(),this.appkey||(this.appkey="appkey:"+Tc())}addEventHandler(e,t){t||(t="app"),this.eventHandlers[t]=e}removeEventHandler(e){e||(e="app"),delete this.eventHandlers[e]}link(e=!0,t=null,n=null){return this.uuid=t,new Promise((async t=>{const r=()=>{this.socket.onmessage=i=>{if(-1===i.data.indexOf("42/scatter"))return!1;const[o,a]=JSON.parse(i.data.replace("42/scatter,",""));if("pong"!==o){if("ping"===o)return this.socket.send('42/scatter,["pong"]');switch(o){case"paired":return e(a);case"rekey":return t();case"api":return n(a);case"event":return r(a)}}};const e=e=>{if(this.paired=e,this.paired){const e=Oc.getAppKey(),t=this.appkey.indexOf("appkey:")>-1?Pc(this.appkey):this.appkey;e&&e===t||(Oc.setAppKey(t),this.appkey=Oc.getAppKey())}this.pairingPromise.resolve(e)},t=()=>{this.appkey="appkey:"+Tc(),this.send("rekeyed",{data:{appkey:this.appkey,origin:this.getOrigin()},plugin:this.plugin})},n=e=>{try{e=JSON.parse(e)}catch(e){}const t=this.openRequests.find((t=>t.id===e.id));if(!t)return;this.openRequests=this.openRequests.filter((t=>t.id!==e.id));"object"==typeof e.result&&null!==e.result&&e.result.hasOwnProperty("isError")?t.reject(e.result):t.resolve(e.result)},r=({event:e,payload:t})=>{Object.keys(this.eventHandlers).length&&Object.keys(this.eventHandlers).map((n=>{this.eventHandlers[n](e,t)}))}},i=(e,t)=>n||(t?`local.get-scatter.com:${e}`:`127.0.0.1:${e}`),o=await new Promise((async t=>{if(n)return t([50006]);const r=(e,t)=>fetch(e).then((e=>e.text())).then((e=>t("scatter"===e))).catch((()=>t(!1)));let o=[];let a=!1;const s=(n=null)=>{a||(a=!0,null!==n&&o.push(n),t((o.length?o:[50006,50005]).filter((t=>!(!e&&t%2))).sort(((e,t)=>t%2?e%2?0:-1:1))))};await Promise.all([...new Array(5).keys()].map((async t=>{if(a)return;const n=50005+1500*t;return await r("https://"+i(n+1,!0),(e=>e?s(n+1):null)),e&&await r("http://"+i(n,!1),(e=>e?s(n):null)),!0}))),s()})),a=e=>new Promise((t=>{const n=!(e%2),r=i(e,n),o=n?"wss://":"ws://",a=new dc.default(`${o}${r}/socket.io/?EIO=3&transport=websocket`);a.onerror=()=>t(!1),a.onopen=()=>t(a)}));let s=!1;for(let e=0;et(!0)));break}}}))}isConnected(){return this.socket&&1===this.socket.readyState}isPaired(){return this.paired}disconnect(){return this.socket&&this.socket.close(),!0}sendApiRequest(e){return new Promise(((t,n)=>{if("identityFromPermissions"===e.type&&!this.paired)return t(!1);this.pair().then((()=>{if(!this.paired)return n({code:"not_paired",message:"The user did not allow this app to connect to their Scatter"});e.id=Tc(),e.appkey=this.appkey,e.nonce=Oc.getNonce()||0;const r=Tc();e.nextNonce=Pc(r),Oc.setNonce(r),e.hasOwnProperty("payload")&&!e.payload.hasOwnProperty("origin")&&(e.payload.origin=this.getOrigin()),this.openRequests.push(Object.assign(e,{resolve:t,reject:n})),this.send("api",{data:e,plugin:this.plugin})}))}))}pair(e=!1){return new Promise(((t,n)=>{this.pairingPromise={resolve:t,reject:n},this.send("pair",{data:{appkey:this.appkey,origin:this.getOrigin(),passthrough:e},plugin:this.plugin})}))}send(e=null,t=null){null===e&&null===t?this.socket.send("40/scatter"):this.socket.send("42/scatter,"+JSON.stringify([e,Object.assign(t,{device:Nc,uuid:this.uuid})]))}getOrigin(){return e.getOriginOrPlugin(this.plugin)}static getOriginOrPlugin(e){let t;return t="undefined"!=typeof location&&location.hasOwnProperty("hostname")&&location.hostname.length&&"localhost"!==location.hostname?location.hostname:e,"www."===t.substr(0,4)&&(t=t.replace("www.","")),t}},$c=class extends yc{constructor(e,t){super("LocalSocket",vc),this.name="LocalSocket",this.context=e,this.holderFns=t}connect(e,t={}){return new Promise((n=>{if(!e||!e.length)throw new Error("You must specify a name for this connection");t=Object.assign({linkTimeout:3e3,allowHttp:!0},t),this.socketService=new Bc(e,t.linkTimeout),this.socketService.link(t.allowHttp).then((async e=>e?(this.holderFns.get().isExtension=!1,this.holderFns.get().wallet||(this.holderFns.get().wallet=this.name),n(this.socketService)):n(!1)))}))}async runAfterInterfacing(){return this.holderFns.get().addEventHandler(((e,t)=>this.eventHandler(e,t)),"internal"),this.holderFns.get().identity=await this.holderFns.get().getIdentityFromPermissions(),!0}methods(){return kc.getMethods(this,(()=>this.socketService))}async eventHandler(e,t){switch(e){case Hc.Disconnected:this.holderFns.get().identity=null;break;case Hc.LoggedOut:this.holderFns.get().identity=await this.holderFns.get().getIdentityFromPermissions()}}};let Dc=class extends yc{constructor(e,t){super("RelaySocket",vc),this.name="RelaySocket",this.context=e,this.holderFns=t}connect(e,t={}){return new Promise((async n=>{if(!e||!e.length)throw new Error("You must specify a name for this connection");t=Object.assign({linkTimeout:3e3,allowHttp:!0},t);const r=await fetch(`https://relay.get-scatter.com:443/app/connect/${Nc}`).then((e=>200===e.status?e.json():null));if(!r)return n(!1);this.socketService=new Bc(e,t.linkTimeout),this.socketService.link(t.allowHttp,r,"relaysock.get-scatter.com:443").then((async e=>e?(this.holderFns.get().isExtension=!1,this.holderFns.get().wallet||(this.holderFns.get().wallet=this.name),n(this.socketService)):n(!1)))}))}async runAfterInterfacing(){return this.holderFns.get().identity=await this.holderFns.get().getIdentityFromPermissions(),!0}methods(){return $c.getMethods(this)}async eventHandler(e,t){switch(e){case Hc.Disconnected:this.holderFns.get().identity=null;break;case Hc.LoggedOut:this.holderFns.get().identity=await this.holderFns.get().getIdentityFromPermissions()}}},Lc=!1;"undefined"!=typeof window&&"undefined"!=typeof document&&(void 0!==window.scatter?Lc=!0:document.addEventListener("scatterLoaded",(()=>Lc=!0)));const zc=async(e=null,t=0)=>new Promise((n=>(e||(e=n),Lc?e(!0):t>5?e(!1):void setTimeout((()=>zc(e,t+1)),100))));let Fc=class extends yc{constructor(e,t){super("InjectedWallet",vc),this.name="InjectedWallet",this.context=e,this.holderFns=t}async connect(){return new Promise((async e=>{await zc()&&(this.holderFns&&!this.holderFns.get().wallet&&(this.holderFns.get().wallet=this.name),e("injection"))}))}async runBeforeInterfacing(){const e=this.context.network;if(e){const t=window.scatter.getIdentity.bind(window.scatter),n=window.scatter.useIdentity.bind(window.scatter);window.scatter.getIdentity=r=>t(r||{accounts:[e]}).then((e=>(this.holderFns.get().identity=e,n(e),e)));const r=window.scatter.suggestNetwork.bind(window.scatter);window.scatter.suggestNetwork=t=>r(t||e)}return this.holderFns.get().wallet===this.name&&(window.scatter.wallet=this.name),this.holderFns.set(window.scatter),this.context=this.holderFns.get(),!0}async runAfterInterfacing(){return this.context.isExtension=!0,this.context.connect=this.connect,!0}methods(){return{}}};const Wc=new class{constructor(){this.plugins=[]}loadPlugin(e){this.plugin(e.name)||this.plugins.push(e)}wallets(){return this.plugins.filter((e=>e.type===vc))}signatureProviders(){return this.plugins.filter((e=>e.type===gc))}supportedBlockchains(){return this.signatureProviders().map((e=>name))}plugin(e){return this.plugins.find((t=>t.name===e))}async endorsedNetworks(){return await Promise.all(this.signatureProviders().map((async e=>await e.getEndorsedNetwork())))}},Hc={Disconnected:"dced",LoggedOut:"logout"};let Vc=null,Uc=[],Yc={},Gc=new Proxy(new class{constructor(e){this.scatter=e}plugins(...e){this.scatter.isExtension||e.map((e=>this.scatter.loadPlugin(e)))}connect(...e){return this.scatter.connect(...e)}catchAll(...e){}}(new class{constructor(){this.identity=null,this.network=null,Wc.loadPlugin(new Dc(this,Yc)),Wc.loadPlugin(new $c(this,Yc)),Wc.loadPlugin(new Mc(this,Yc)),Wc.loadPlugin(new Fc(this,Yc))}loadPlugin(e){const t=()=>{if(!Yc.get().identity)throw new Error("No Identity")};if(!e.isValid())throw new Error(`${e.name} doesn't seem to be a valid ScatterJS plugin.`);Wc.loadPlugin(e),e.type===gc&&(this[e.name]=e.signatureProvider(t,(()=>Yc.get().identity)),this[e.name+"Hook"]=e.hookProvider,"function"==typeof e.multiHook&&(this[e.name+"MultiHook"]=e.multiHook),Uc.push(e.setSocketService)),e.type===vc&&e.init(this,Yc,Uc)}async connect(e,t){return new Promise((async n=>{t||(t={}),this.network=t.hasOwnProperty("network")?t.network:null;const r=Wc.wallets();Vc&&(Vc.disconnect(),Vc=null);let i=!1,o=[];for(let a=0;a{e&&("injection"!==e&&(Vc=e,Uc.map((t=>t(e)))),"function"==typeof s.runBeforeInterfacing&&await s.runBeforeInterfacing(),new xc(s.name,s.methods(),Yc.get()),"function"==typeof s.runAfterInterfacing&&await s.runAfterInterfacing(),xc.bindBasics(Yc.get()),i=!0,n(!0))})).catch((()=>!1)),new Promise((e=>setTimeout((()=>e(!1)),5e3)))]))}await Promise.all(o),n(!1)}))}}),{get(e,t){return void 0!==e[t]?e[t]:e.scatter[t]}});Yc.set=e=>Gc.scatter=e,Yc.get=()=>Gc.scatter,"undefined"!=typeof window&&(window.ScatterJS=Gc),Gc.Plugin=yc,Gc.PluginTypes=bc,Gc.Blockchains=pc,Gc.Network=Ec,Gc.Token=mc,Gc.SocketService=Bc,Gc.EVENTS=Hc,Gc.WalletInterface=xc,Gc.WALLET_METHODS=wc;let qc=Bc;let Xc=class extends yc{constructor(){super(pc.EOS,gc)}setSocketService(e){qc=e}hookProvider(e,t=null){return e=Ec.fromJson(e),{requiredFields:{},getAvailableKeys:async()=>await qc.sendApiRequest({type:"identityFromPermissions",payload:{}}).then((e=>e?e.accounts.filter((e=>e.blockchain===pc.EOS)).map((e=>e.publicKey)):[])),sign:async n=>{const r=t?t():{};return n.serializedTransaction=cc.Buffer.from(n.serializedTransaction).toString("hex"),new Promise((async(t,i)=>{qc.sendApiRequest({type:"requestSignature",payload:{transaction:n,blockchain:pc.EOS,network:e,requiredFields:r}}).then((e=>{t({signatures:e.signatures,serializedTransaction:cc.Buffer.from(n.serializedTransaction,"hex")})})).catch((e=>i(e)))}))}}}multiHook(e,t){const n=this.eosHook(e);return Array.isArray(t)||(t=[t]),{getAvailableKeys:async()=>{try{const e=await n.getAvailableKeys();let r=[];return await Promise.all(t.map((async e=>(await e.getAvailableKeys().then((e=>{e.map((e=>r.push(e)))})),!0)))),e.concat(r)}catch(e){throw new Error(e)}},sign:async r=>{try{const i=cc.Buffer.from(r.serializedTransaction,"hex"),o=async t=>({abis:r.abis,chainId:e.chainId,requiredKeys:await t.getAvailableKeys(),serializedTransaction:i}),a=e=>"object"==typeof e&&e.hasOwnProperty("signatures")?e.signatures:e,s=await n.sign(await o(n)).then((e=>a(e)));let l=[];return await Promise.all(t.map((async e=>(await e.sign(await o(e)).then((e=>{a(e).map((e=>l.push(e)))})),!0)))),{signatures:s.concat(l),serializedTransaction:i}}catch(e){throw new Error(e)}}}}signatureProvider(...e){return e[0],(e,t,n={})=>{e=Ec.fromJson(e);let r={};const i=this.hookProvider(e,(()=>r));return o=new t(Object.assign(n,{signatureProvider:i})),a={get(e,t){return(...n)=>{if(void 0===e[t])throw new Error(`${t} does not exist on the eosjs.Api() object.`);const i=n.find((e=>e.hasOwnProperty("requiredFields")));return r=i?i.requiredFields:{},e[t](...n)}}},new Proxy(o,a);var o,a}}};"undefined"!=typeof window&&(window.ScatterEOS=Xc),vn.Blockchains=pc,vn.EVENTS=Hc,vn.Network=Ec,vn.Plugin=yc,vn.PluginTypes=bc,vn.ScatterEOS=Xc;var Kc=vn.ScatterJS=Gc;async function Jc(e){const t=new URL(e.chain.url),n="https"===t.protocol.replace(":","")?"https":"http",r=Kc.Network.fromJson({blockchain:e.chain.name,chainId:String(e.chain.id),host:t.hostname,port:t.port?Number(t.port):"https"===n?443:80,protocol:n});if(!await Kc.connect(e.appName,{network:r}))throw new Error("Unable to connect with Scatter wallet");const i=await Kc.login();if(!i||!i.accounts)throw new Error("Unable to retrieve account from Scatter");const o=i.accounts[0],a=new fn(r.fullhost());a.getRequiredKeys=async()=>[];return{account:o,connector:Kc.eos(r,cn,{rpc:a})}}vn.SocketService=Bc,vn.WALLET_METHODS=wc,vn.WalletInterface=xc;var Qc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function eu(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var tu={},nu=null;"undefined"!=typeof WebSocket?nu=WebSocket:"undefined"!=typeof MozWebSocket?nu=MozWebSocket:void 0!==Qc?nu=Qc.WebSocket||Qc.MozWebSocket:"undefined"!=typeof window?nu=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(nu=self.WebSocket||self.MozWebSocket);var ru=nu;ru.default;var iu="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},ou=eu(Object.freeze({__proto__:null,default:iu})),au={exports:{}},su=[],lu=[],cu="undefined"!=typeof Uint8Array?Uint8Array:Array,uu=!1;function du(){uu=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+su[i>>12&63]+su[i>>6&63]+su[63&i]);return o.join("")}function hu(e){var t;uu||du();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,l=n-r;sl?l:s+a));return 1===r?(t=e[n-1],i+=su[t>>2],i+=su[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=su[t>>10],i+=su[t>>4&63],i+=su[t<<2&63],i+="="),o.push(i),o.join("")}function pu(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)}function mu(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*m}var gu={}.toString,vu=Array.isArray||function(e){return"[object Array]"==gu.call(e)};_u.TYPED_ARRAY_SUPPORT=void 0===Fe.TYPED_ARRAY_SUPPORT||Fe.TYPED_ARRAY_SUPPORT;var bu=yu();function yu(){return _u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function wu(e,t){if(yu()=yu())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+yu().toString(16)+" bytes");return 0|e}function Eu(e){return!(null==e||!e._isBuffer)}function Au(e,t){if(Eu(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return td(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return nd(e).length;default:if(r)return td(e).length;t=(""+t).toLowerCase(),r=!0}}function Iu(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Hu(this,t,n);case"utf8":case"utf-8":return Lu(this,t,n);case"ascii":return Fu(this,t,n);case"latin1":case"binary":return Wu(this,t,n);case"base64":return Du(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vu(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Ou(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ju(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=_u.from(t,r)),Eu(t))return 0===t.length?-1:Zu(e,t,n,r,i);if("number"==typeof t)return t&=255,_u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Zu(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Zu(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Du(e,t,n){return 0===t&&n===e.length?hu(e):hu(e.slice(t,n))}function Lu(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=zu)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},_u.prototype.compare=function(e,t,n,r,i){if(!Eu(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),u=0;ui)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Ru(this,e,t,n);case"utf8":case"utf-8":return Nu(this,e,t,n);case"ascii":return Pu(this,e,t,n);case"latin1":case"binary":return Tu(this,e,t,n);case"base64":return Bu(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $u(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},_u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var zu=4096;function Fu(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function Yu(e,t,n,r,i,o){if(!Eu(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function Gu(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function qu(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function Xu(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ku(e,t,n,r,i){return i||Xu(e,0,n,4),mu(e,t,n,r,23,4),n+4}function Ju(e,t,n,r,i){return i||Xu(e,0,n,8),mu(e,t,n,r,52,8),n+8}_u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},_u.prototype.readUInt8=function(e,t){return t||Uu(e,1,this.length),this[e]},_u.prototype.readUInt16LE=function(e,t){return t||Uu(e,2,this.length),this[e]|this[e+1]<<8},_u.prototype.readUInt16BE=function(e,t){return t||Uu(e,2,this.length),this[e]<<8|this[e+1]},_u.prototype.readUInt32LE=function(e,t){return t||Uu(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},_u.prototype.readUInt32BE=function(e,t){return t||Uu(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},_u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Uu(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},_u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Uu(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},_u.prototype.readInt8=function(e,t){return t||Uu(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},_u.prototype.readInt16LE=function(e,t){t||Uu(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},_u.prototype.readInt16BE=function(e,t){t||Uu(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},_u.prototype.readInt32LE=function(e,t){return t||Uu(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},_u.prototype.readInt32BE=function(e,t){return t||Uu(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},_u.prototype.readFloatLE=function(e,t){return t||Uu(e,4,this.length),pu(this,e,!0,23,4)},_u.prototype.readFloatBE=function(e,t){return t||Uu(e,4,this.length),pu(this,e,!1,23,4)},_u.prototype.readDoubleLE=function(e,t){return t||Uu(e,8,this.length),pu(this,e,!0,52,8)},_u.prototype.readDoubleBE=function(e,t){return t||Uu(e,8,this.length),pu(this,e,!1,52,8)},_u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Yu(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},_u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Yu(this,e,t,1,255,0),_u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},_u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Yu(this,e,t,2,65535,0),_u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Gu(this,e,t,!0),t+2},_u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Yu(this,e,t,2,65535,0),_u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Gu(this,e,t,!1),t+2},_u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Yu(this,e,t,4,4294967295,0),_u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):qu(this,e,t,!0),t+4},_u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Yu(this,e,t,4,4294967295,0),_u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):qu(this,e,t,!1),t+4},_u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Yu(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},_u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Yu(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},_u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Yu(this,e,t,1,127,-128),_u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},_u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Yu(this,e,t,2,32767,-32768),_u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Gu(this,e,t,!0),t+2},_u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Yu(this,e,t,2,32767,-32768),_u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Gu(this,e,t,!1),t+2},_u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Yu(this,e,t,4,2147483647,-2147483648),_u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):qu(this,e,t,!0),t+4},_u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Yu(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),_u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):qu(this,e,t,!1),t+4},_u.prototype.writeFloatLE=function(e,t,n){return Ku(this,e,t,!0,n)},_u.prototype.writeFloatBE=function(e,t,n){return Ku(this,e,t,!1,n)},_u.prototype.writeDoubleLE=function(e,t,n){return Ju(this,e,t,!0,n)},_u.prototype.writeDoubleBE=function(e,t,n){return Ju(this,e,t,!1,n)},_u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!_u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function nd(e){return function(e){var t,n,r,i,o,a;uu||du();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new cu(3*s/4-o),r=o>0?s-4:s;var l=0;for(t=0,n=0;t>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=lu[e.charCodeAt(t)]<<2|lu[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=lu[e.charCodeAt(t)]<<10|lu[e.charCodeAt(t+1)]<<4|lu[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Qu,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function rd(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function id(e){return null!=e&&(!!e._isBuffer||od(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&od(e.slice(0,0))}(e))}function od(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var ad=eu(Object.freeze({__proto__:null,Buffer:_u,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),_u.alloc(+e)},isBuffer:id,kMaxLength:bu}));!function(e,t){var n=ad,r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),o.prototype=Object.create(r.prototype),i(r,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(au,au.exports);var sd=au.exports;sd.default;var ld={exports:{}};function cd(){throw new Error("setTimeout has not been defined")}function ud(){throw new Error("clearTimeout has not been defined")}var dd=cd,fd=ud;function hd(e){if(dd===setTimeout)return setTimeout(e,0);if((dd===cd||!dd)&&setTimeout)return dd=setTimeout,setTimeout(e,0);try{return dd(e,0)}catch(t){try{return dd.call(null,e,0)}catch(t){return dd.call(this,e,0)}}}"function"==typeof Fe.setTimeout&&(dd=setTimeout),"function"==typeof Fe.clearTimeout&&(fd=clearTimeout);var pd,md=[],gd=!1,vd=-1;function bd(){gd&&pd&&(gd=!1,pd.length?md=pd.concat(md):vd=-1,md.length&&yd())}function yd(){if(!gd){var e=hd(bd);gd=!0;for(var t=md.length;t;){for(pd=md,md=[];++vd1)for(var n=1;n0&&a.length>i){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[t]=n,++e._eventsCount;return e}function Wd(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function Hd(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function Vd(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}Nd.prototype=Object.create(null),Pd.EventEmitter=Pd,Pd.usingDomains=!1,Pd.prototype.domain=void 0,Pd.prototype._events=void 0,Pd.prototype._maxListeners=void 0,Pd.defaultMaxListeners=10,Pd.init=function(){this.domain=null,Pd.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Nd,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Pd.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},Pd.prototype.getMaxListeners=function(){return Td(this)},Pd.prototype.emit=function(e){var t,n,r,i,o,a,s,l="error"===e;if(a=this._events)l=l&&null==a.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var u="function"==typeof n;switch(r=arguments.length){case 1:Bd(n,u,this);break;case 2:$d(n,u,this,arguments[1]);break;case 3:Dd(n,u,this,arguments[1],arguments[2]);break;case 4:Ld(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o0;)if(n[o]===t||n[o].listener&&n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new Nd,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;r0?Reflect.ownKeys(this._events):[]};var Ud=eu(Object.freeze({__proto__:null,EventEmitter:Pd,default:Pd})),Yd=Ud.EventEmitter;Yd.default;var Gd="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},qd=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),uf(t)?n.showHidden=t:t&&If(n,t),gf(n.showHidden)&&(n.showHidden=!1),gf(n.depth)&&(n.depth=2),gf(n.colors)&&(n.colors=!1),gf(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=rf),af(n,e,n.depth)}function rf(e,t){var n=nf.styles[t];return n?"["+nf.colors[n][0]+"m"+e+"["+nf.colors[n][1]+"m":e}function of(e,t){return e}function af(e,t,n){if(e.customInspect&&t&&_f(t.inspect)&&t.inspect!==nf&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return pf(r)||(r=af(e,r,n)),r}var i=function(e,t){if(gf(t))return e.stylize("undefined","undefined");if(pf(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(hf(t))return e.stylize(""+t,"number");if(uf(t))return e.stylize(""+t,"boolean");if(df(t))return e.stylize("null","null")}(e,t);if(i)return i;var o=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),wf(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return sf(t);if(0===o.length){if(_f(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(vf(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(yf(t))return e.stylize(Date.prototype.toString.call(t),"date");if(wf(t))return sf(t)}var l,c="",u=!1,d=["{","}"];(cf(t)&&(u=!0,d=["[","]"]),_f(t))&&(c=" [Function"+(t.name?": "+t.name:"")+"]");return vf(t)&&(c=" "+RegExp.prototype.toString.call(t)),yf(t)&&(c=" "+Date.prototype.toUTCString.call(t)),wf(t)&&(c=" "+sf(t)),0!==o.length||u&&0!=t.length?n<0?vf(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=u?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,d)):d[0]+c+d[1]}function sf(e){return"["+Error.prototype.toString.call(e)+"]"}function lf(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),Of(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=df(n)?af(e,l.value,null):af(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),gf(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function cf(e){return Array.isArray(e)}function uf(e){return"boolean"==typeof e}function df(e){return null===e}function ff(e){return null==e}function hf(e){return"number"==typeof e}function pf(e){return"string"==typeof e}function mf(e){return"symbol"==typeof e}function gf(e){return void 0===e}function vf(e){return bf(e)&&"[object RegExp]"===Sf(e)}function bf(e){return"object"==typeof e&&null!==e}function yf(e){return bf(e)&&"[object Date]"===Sf(e)}function wf(e){return bf(e)&&("[object Error]"===Sf(e)||e instanceof Error)}function _f(e){return"function"==typeof e}function xf(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function kf(e){return _u.isBuffer(e)}function Sf(e){return Object.prototype.toString.call(e)}function Cf(e){return e<10?"0"+e.toString(10):e.toString(10)}nf.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},nf.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Mf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ef(){var e=new Date,t=[Cf(e.getHours()),Cf(e.getMinutes()),Cf(e.getSeconds())].join(":");return[e.getDate(),Mf[e.getMonth()],t].join(" ")}function Af(){console.log("%s - %s",Ef(),Kd.apply(null,arguments))}function If(e,t){if(!t||!bf(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Of(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var jf="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function Zf(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(jf&&e[jf]){var t;if("function"!=typeof(t=e[jf]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,jf,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:s,value:function(e,n){return a(this,t(t({},n),{},{depth:0,customInspect:!1}))}}],i&&r(n.prototype,i),l&&r(n,l),Object.defineProperty(n,"prototype",{writable:!1}),e}(),Pf}function Lf(e,t){Ff(e,t),zf(e)}function zf(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Ff(e,t){e.emit("error",t)}var Wf={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Rd.nextTick(Ff,this,e)):Rd.nextTick(Ff,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?Rd.nextTick(zf,n):(n._writableState.errorEmitted=!0,Rd.nextTick(Lf,n,e)):Rd.nextTick(Lf,n,e):t?(Rd.nextTick(zf,n),t(e)):Rd.nextTick(zf,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}},Hf={};var Vf={};function Uf(e,t,n){n||(n=Error);var r=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);r.prototype.name=n.name,r.prototype.code=e,Vf[e]=r}function Yf(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}Uf("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),Uf("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,o,a;if("string"==typeof t&&(i="not ",t.substr(!o||o<0?0:+o,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))a="The ".concat(e," ").concat(r," ").concat(Yf(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(r," ").concat(Yf(t,"type"))}return a+=". Received type ".concat(typeof n)}),TypeError),Uf("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Uf("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),Uf("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Uf("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),Uf("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Uf("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Uf("ERR_STREAM_WRITE_AFTER_END","write after end"),Uf("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Uf("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),Uf("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Hf.codes=Vf;var Gf=Hf.codes.ERR_INVALID_OPT_VALUE;var qf,Xf,Kf,Jf,Qf={getHighWaterMark:function(e,t,n,r){var i=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,r,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new Gf(r?n:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}},eh=function(e,t){if(th("noDeprecation"))return e;var n=!1;return function(){if(!n){if(th("throwDeprecation"))throw new Error(t);th("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function th(e){try{if(!Qc.localStorage)return!1}catch(e){return!1}var t=Qc.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}function nh(){if(Xf)return qf;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var t;Xf=1,qf=_,_.WritableState=w;var n={deprecate:eh},r=Yd,i=ad.Buffer,o=(void 0!==Qc?Qc:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var a,s=Wf,l=Qf.getHighWaterMark,c=Hf.codes,u=c.ERR_INVALID_ARG_TYPE,d=c.ERR_METHOD_NOT_IMPLEMENTED,f=c.ERR_MULTIPLE_CALLBACK,h=c.ERR_STREAM_CANNOT_PIPE,p=c.ERR_STREAM_DESTROYED,m=c.ERR_STREAM_NULL_VALUES,g=c.ERR_STREAM_WRITE_AFTER_END,v=c.ERR_UNKNOWN_ENCODING,b=s.errorOrDestroy;function y(){}function w(n,r,i){t=t||rh(),n=n||{},"boolean"!=typeof i&&(i=r instanceof t),this.objectMode=!!n.objectMode,i&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=l(this,n,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===n.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new f;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(Rd.nextTick(i,r),Rd.nextTick(E,e,t),e._writableState.errorEmitted=!0,b(e,r)):(i(r),e._writableState.errorEmitted=!0,b(e,r),E(e,t))}(e,n,r,t,i);else{var o=C(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||S(e,n),r?Rd.nextTick(k,e,n,o,i):k(e,n,o,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function _(e){var n=this instanceof(t=t||rh());if(!n&&!a.call(_,this))return new _(e);this._writableState=new w(e,this,n),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),r.call(this)}function x(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new p("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function k(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),E(e,t)}function S(t,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(t._writev&&r&&r.next){var i=n.bufferedRequestCount,o=new Array(i),a=n.corkedRequestsFree;a.entry=r;for(var s=0,l=!0;r;)o[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;o.allBuffers=l,x(t,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,d=r.callback;if(x(t,n,!1,n.objectMode?1:c.length,c,u,d),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final((function(n){t.pendingcb--,n&&b(e,n),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var n=C(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,Rd.nextTick(M,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}return ou(_,r),w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(w.prototype,"buffer",{get:n.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===_&&(e&&e._writableState instanceof w)}})):a=function(e){return e instanceof this},_.prototype.pipe=function(){b(this,new h)},_.prototype.write=function(e,t,n){var r,a=this._writableState,s=!1,l=!a.objectMode&&(r=e,i.isBuffer(r)||r instanceof o);return l&&!i.isBuffer(e)&&(e=function(e){return i.from(e)}(e)),"function"==typeof t&&(n=t,t=null),l?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=y),a.ending?function(e,t){var n=new g;b(e,n),Rd.nextTick(t,n)}(this,n):(l||function(e,t,n,r){var i;return null===n?i=new m:"string"==typeof n||t.objectMode||(i=new u("chunk",["string","Buffer"],n)),!i||(b(e,i),Rd.nextTick(r,i),!1)}(this,a,e,n))&&(a.pendingcb++,s=function(e,t,n,r,o,a){if(!n){var s=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=i.from(t,n));return t}(t,r,o);r!==s&&(n=!0,o="buffer",r=s)}var l=t.objectMode?1:r.length;t.length+=l;var c=t.length-1))throw new v(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(e,t,n){n(new d("_write()"))},_.prototype._writev=null,_.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?Rd.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),_.prototype.destroy=s.destroy,_.prototype._undestroy=s.undestroy,_.prototype._destroy=function(e,t){t(e)},qf}function rh(){if(Jf)return Kf;Jf=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};Kf=a;var t=wh(),n=nh();ou(a,t);for(var r=e(n.prototype),i=0;i=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var i;r=(t+=e.toString(this.encoding,0,r)).length-1;if((i=t.charCodeAt(r))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,r)}return t},oh.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},oh.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t};var ch=eu(Object.freeze({__proto__:null,StringDecoder:oh})),uh=Hf.codes.ERR_STREAM_PREMATURE_CLOSE;function dh(){}var fh,hh,ph,mh,gh,vh,bh=function e(t,n,r){if("function"==typeof n)return e(t,null,n);n||(n={}),r=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===r.prototype||(t=function(e){return r.from(e)}(t)),a)c.endEmitted?b(e,new v):k(e,c,t,!0);else if(c.ended)b(e,new m);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!n?(t=c.decoder.write(t),c.objectMode||0!==t.length?k(e,c,t,!1):A(e,c)):k(e,c,t,!1)}else a||(c.reading=!1,A(e,c));return!c.ended&&(c.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,Rd.nextTick(E,e))}function E(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,R(e)}function A(e,t){t.readingMore||(t.readingMore=!0,Rd.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function j(e){o("readable nexttick read 0"),e.read(0)}function Z(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),R(e),t.flowing&&!t.reading&&e.read(0)}function R(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function P(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,Rd.nextTick(T,t,e))}function T(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function B(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):M(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&P(this),null;var r,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&P(this)),null!==r&&this.emit("data",r),r},_.prototype._read=function(e){b(this,new g("_read()"))},_.prototype.pipe=function(e,n){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,n);var a=(!n||!1!==n.end)&&e!==Rd.stdout&&e!==Rd.stderr?l:m;function s(t,n){o("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,o("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",m),r.removeListener("data",d),u=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function l(){o("onend"),e.end()}i.endEmitted?Rd.nextTick(a):r.once("end",a),e.on("unpipe",s);var c=function(e){return function(){var n=e._readableState;o("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,0===n.awaitDrain&&t(e,"data")&&(n.flowing=!0,R(e))}}(r);e.on("drain",c);var u=!1;function d(t){o("ondata");var n=e.write(t);o("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==B(i.pipes,e))&&!u&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function f(n){o("onerror",n),m(),e.removeListener("error",f),0===t(e,"error")&&b(e,n)}function h(){e.removeListener("finish",p),m()}function p(){o("onfinish"),e.removeListener("close",h),m()}function m(){o("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},_.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?M(this):i.reading||Rd.nextTick(j,this))),r},_.prototype.addListener=_.prototype.on,_.prototype.removeListener=function(e,t){var r=n.prototype.removeListener.call(this,e,t);return"readable"===e&&Rd.nextTick(O,this),r},_.prototype.removeAllListeners=function(e){var t=n.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||Rd.nextTick(O,this),t},_.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Rd.nextTick(Z,e,t))}(this,e)),e.paused=!1,this},_.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},_.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(o("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(o("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a0,(function(e){r||(r=e),e&&o.forEach(zh),a||(o.forEach(zh),i(r))}))}));return t.reduce(Fh)};!function(e,t){(t=e.exports=wh()).Stream=t,t.Readable=t,t.Writable=nh(),t.Duplex=rh(),t.Transform=_h,t.PassThrough=Rh,t.finished=bh,t.pipeline=Hh}(ld,ld.exports);var Vh=ld.exports;Vh.default;var Uh=sd.Buffer,Yh=Vh.Transform;function Gh(e){Yh.call(this),this._block=Uh.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}ou(Gh,Yh),Gh.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},Gh.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},Gh.prototype.update=function(e,t){if(function(e,t){if(!Uh.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");Uh.isBuffer(e)||(e=Uh.from(e,t));for(var n=this._block,r=0;this._blockOffset+e.length-r>=this._blockSize;){for(var i=this._blockOffset;i0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},Gh.prototype._update=function(){throw new Error("_update is not implemented")},Gh.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},Gh.prototype._digest=function(){throw new Error("_digest is not implemented")};var qh=Gh;qh.default;var Xh=ou,Kh=qh,Jh=sd.Buffer,Qh=new Array(16);function ep(){Kh.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function tp(e,t){return e<>>32-t}function np(e,t,n,r,i,o,a){return tp(e+(t&n|~t&r)+i+o|0,a)+t|0}function rp(e,t,n,r,i,o,a){return tp(e+(t&r|n&~r)+i+o|0,a)+t|0}function ip(e,t,n,r,i,o,a){return tp(e+(t^n^r)+i+o|0,a)+t|0}function op(e,t,n,r,i,o,a){return tp(e+(n^(t|~r))+i+o|0,a)+t|0}Xh(ep,Kh),ep.prototype._update=function(){for(var e=Qh,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=np(n,r,i,o,e[0],3614090360,7),o=np(o,n,r,i,e[1],3905402710,12),i=np(i,o,n,r,e[2],606105819,17),r=np(r,i,o,n,e[3],3250441966,22),n=np(n,r,i,o,e[4],4118548399,7),o=np(o,n,r,i,e[5],1200080426,12),i=np(i,o,n,r,e[6],2821735955,17),r=np(r,i,o,n,e[7],4249261313,22),n=np(n,r,i,o,e[8],1770035416,7),o=np(o,n,r,i,e[9],2336552879,12),i=np(i,o,n,r,e[10],4294925233,17),r=np(r,i,o,n,e[11],2304563134,22),n=np(n,r,i,o,e[12],1804603682,7),o=np(o,n,r,i,e[13],4254626195,12),i=np(i,o,n,r,e[14],2792965006,17),n=rp(n,r=np(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=rp(o,n,r,i,e[6],3225465664,9),i=rp(i,o,n,r,e[11],643717713,14),r=rp(r,i,o,n,e[0],3921069994,20),n=rp(n,r,i,o,e[5],3593408605,5),o=rp(o,n,r,i,e[10],38016083,9),i=rp(i,o,n,r,e[15],3634488961,14),r=rp(r,i,o,n,e[4],3889429448,20),n=rp(n,r,i,o,e[9],568446438,5),o=rp(o,n,r,i,e[14],3275163606,9),i=rp(i,o,n,r,e[3],4107603335,14),r=rp(r,i,o,n,e[8],1163531501,20),n=rp(n,r,i,o,e[13],2850285829,5),o=rp(o,n,r,i,e[2],4243563512,9),i=rp(i,o,n,r,e[7],1735328473,14),n=ip(n,r=rp(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=ip(o,n,r,i,e[8],2272392833,11),i=ip(i,o,n,r,e[11],1839030562,16),r=ip(r,i,o,n,e[14],4259657740,23),n=ip(n,r,i,o,e[1],2763975236,4),o=ip(o,n,r,i,e[4],1272893353,11),i=ip(i,o,n,r,e[7],4139469664,16),r=ip(r,i,o,n,e[10],3200236656,23),n=ip(n,r,i,o,e[13],681279174,4),o=ip(o,n,r,i,e[0],3936430074,11),i=ip(i,o,n,r,e[3],3572445317,16),r=ip(r,i,o,n,e[6],76029189,23),n=ip(n,r,i,o,e[9],3654602809,4),o=ip(o,n,r,i,e[12],3873151461,11),i=ip(i,o,n,r,e[15],530742520,16),n=op(n,r=ip(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=op(o,n,r,i,e[7],1126891415,10),i=op(i,o,n,r,e[14],2878612391,15),r=op(r,i,o,n,e[5],4237533241,21),n=op(n,r,i,o,e[12],1700485571,6),o=op(o,n,r,i,e[3],2399980690,10),i=op(i,o,n,r,e[10],4293915773,15),r=op(r,i,o,n,e[1],2240044497,21),n=op(n,r,i,o,e[8],1873313359,6),o=op(o,n,r,i,e[15],4264355552,10),i=op(i,o,n,r,e[6],2734768916,15),r=op(r,i,o,n,e[13],1309151649,21),n=op(n,r,i,o,e[4],4149444226,6),o=op(o,n,r,i,e[11],3174756917,10),i=op(i,o,n,r,e[2],718787259,15),r=op(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},ep.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Jh.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};var ap=ep;ap.default;var sp=ad.Buffer,lp=ou,cp=qh,up=new Array(16),dp=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],fp=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],hp=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],pp=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],mp=[0,1518500249,1859775393,2400959708,2840853838],gp=[1352829926,1548603684,1836072691,2053994217,0];function vp(){cp.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function bp(e,t){return e<>>32-t}function yp(e,t,n,r,i,o,a,s){return bp(e+(t^n^r)+o+a|0,s)+i|0}function wp(e,t,n,r,i,o,a,s){return bp(e+(t&n|~t&r)+o+a|0,s)+i|0}function _p(e,t,n,r,i,o,a,s){return bp(e+((t|~n)^r)+o+a|0,s)+i|0}function xp(e,t,n,r,i,o,a,s){return bp(e+(t&r|n&~r)+o+a|0,s)+i|0}function kp(e,t,n,r,i,o,a,s){return bp(e+(t^(n|~r))+o+a|0,s)+i|0}lp(vp,cp),vp.prototype._update=function(){for(var e=up,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,s=0|this._a,l=0|this._b,c=0|this._c,u=0|this._d,d=0|this._e,f=0;f<80;f+=1){var h,p;f<16?(h=yp(n,r,i,o,a,e[dp[f]],mp[0],hp[f]),p=kp(s,l,c,u,d,e[fp[f]],gp[0],pp[f])):f<32?(h=wp(n,r,i,o,a,e[dp[f]],mp[1],hp[f]),p=xp(s,l,c,u,d,e[fp[f]],gp[1],pp[f])):f<48?(h=_p(n,r,i,o,a,e[dp[f]],mp[2],hp[f]),p=_p(s,l,c,u,d,e[fp[f]],gp[2],pp[f])):f<64?(h=xp(n,r,i,o,a,e[dp[f]],mp[3],hp[f]),p=wp(s,l,c,u,d,e[fp[f]],gp[3],pp[f])):(h=kp(n,r,i,o,a,e[dp[f]],mp[4],hp[f]),p=yp(s,l,c,u,d,e[fp[f]],gp[4],pp[f])),n=a,a=o,o=bp(i,10),i=r,r=h,s=d,d=u,u=bp(c,10),c=l,l=p}var m=this._b+i+u|0;this._b=this._c+o+d|0,this._c=this._d+a+s|0,this._d=this._e+n+l|0,this._e=this._a+r+c|0,this._a=m},vp.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=sp.alloc?sp.alloc(20):new sp(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};var Sp=vp;Sp.default;var Cp={exports:{}},Mp=sd.Buffer;function Ep(e,t){this._block=Mp.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Ep.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=Mp.from(e,t));for(var n=this._block,r=this._blockSize,i=e.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},Ep.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Ap=Ep;Ap.default;var Ip=ou,Op=Ap,jp=sd.Buffer,Zp=[1518500249,1859775393,-1894007588,-899497514],Rp=new Array(80);function Np(){this.init(),this._w=Rp,Op.call(this,64,56)}function Pp(e){return e<<30|e>>>2}function Tp(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}Ip(Np,Op),Np.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Np.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,l=0;l<16;++l)n[l]=e.readInt32BE(4*l);for(;l<80;++l)n[l]=n[l-3]^n[l-8]^n[l-14]^n[l-16];for(var c=0;c<80;++c){var u=~~(c/20),d=0|((t=r)<<5|t>>>27)+Tp(u,i,o,a)+s+n[c]+Zp[u];s=a,a=o,o=Pp(i),i=r,r=d}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},Np.prototype._hash=function(){var e=jp.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var Bp=Np;Bp.default;var $p=ou,Dp=Ap,Lp=sd.Buffer,zp=[1518500249,1859775393,-1894007588,-899497514],Fp=new Array(80);function Wp(){this.init(),this._w=Fp,Dp.call(this,64,56)}function Hp(e){return e<<5|e>>>27}function Vp(e){return e<<30|e>>>2}function Up(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}$p(Wp,Dp),Wp.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Wp.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,l=0;l<16;++l)n[l]=e.readInt32BE(4*l);for(;l<80;++l)n[l]=(t=n[l-3]^n[l-8]^n[l-14]^n[l-16])<<1|t>>>31;for(var c=0;c<80;++c){var u=~~(c/20),d=Hp(r)+Up(u,i,o,a)+s+n[c]+zp[u]|0;s=a,a=o,o=Vp(i),i=r,r=d}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},Wp.prototype._hash=function(){var e=Lp.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var Yp=Wp;Yp.default;var Gp=ou,qp=Ap,Xp=sd.Buffer,Kp=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Jp=new Array(64);function Qp(){this.init(),this._w=Jp,qp.call(this,64,56)}function em(e,t,n){return n^e&(t^n)}function tm(e,t,n){return e&t|n&(e|t)}function nm(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function rm(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function im(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function om(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}Gp(Qp,qp),Qp.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},Qp.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,s=0|this._f,l=0|this._g,c=0|this._h,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<64;++u)t[u]=om(t[u-2])+t[u-7]+im(t[u-15])+t[u-16]|0;for(var d=0;d<64;++d){var f=c+rm(a)+em(a,s,l)+Kp[d]+t[d]|0,h=nm(n)+tm(n,r,i)|0;c=l,l=s,s=a,a=o+f|0,o=i,i=r,r=n,n=f+h|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=s+this._f|0,this._g=l+this._g|0,this._h=c+this._h|0},Qp.prototype._hash=function(){var e=Xp.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var am=Qp;am.default;var sm=ou,lm=am,cm=Ap,um=sd.Buffer,dm=new Array(64);function fm(){this.init(),this._w=dm,cm.call(this,64,56)}sm(fm,lm),fm.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},fm.prototype._hash=function(){var e=um.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var hm=fm;hm.default;var pm=ou,mm=Ap,gm=sd.Buffer,vm=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],bm=new Array(160);function ym(){this.init(),this._w=bm,mm.call(this,128,112)}function wm(e,t,n){return n^e&(t^n)}function _m(e,t,n){return e&t|n&(e|t)}function xm(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function km(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Sm(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Cm(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Mm(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Em(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Am(e,t){return e>>>0>>0?1:0}pm(ym,mm),ym.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},ym.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,s=0|this._fh,l=0|this._gh,c=0|this._hh,u=0|this._al,d=0|this._bl,f=0|this._cl,h=0|this._dl,p=0|this._el,m=0|this._fl,g=0|this._gl,v=0|this._hl,b=0;b<32;b+=2)t[b]=e.readInt32BE(4*b),t[b+1]=e.readInt32BE(4*b+4);for(;b<160;b+=2){var y=t[b-30],w=t[b-30+1],_=Sm(y,w),x=Cm(w,y),k=Mm(y=t[b-4],w=t[b-4+1]),S=Em(w,y),C=t[b-14],M=t[b-14+1],E=t[b-32],A=t[b-32+1],I=x+M|0,O=_+C+Am(I,x)|0;O=(O=O+k+Am(I=I+S|0,S)|0)+E+Am(I=I+A|0,A)|0,t[b]=O,t[b+1]=I}for(var j=0;j<160;j+=2){O=t[j],I=t[j+1];var Z=_m(n,r,i),R=_m(u,d,f),N=xm(n,u),P=xm(u,n),T=km(a,p),B=km(p,a),$=vm[j],D=vm[j+1],L=wm(a,s,l),z=wm(p,m,g),F=v+B|0,W=c+T+Am(F,v)|0;W=(W=(W=W+L+Am(F=F+z|0,z)|0)+$+Am(F=F+D|0,D)|0)+O+Am(F=F+I|0,I)|0;var H=P+R|0,V=N+Z+Am(H,P)|0;c=l,v=g,l=s,g=m,s=a,m=p,a=o+W+Am(p=h+F|0,h)|0,o=i,h=f,i=r,f=d,r=n,d=u,n=W+V+Am(u=F+H|0,F)|0}this._al=this._al+u|0,this._bl=this._bl+d|0,this._cl=this._cl+f|0,this._dl=this._dl+h|0,this._el=this._el+p|0,this._fl=this._fl+m|0,this._gl=this._gl+g|0,this._hl=this._hl+v|0,this._ah=this._ah+n+Am(this._al,u)|0,this._bh=this._bh+r+Am(this._bl,d)|0,this._ch=this._ch+i+Am(this._cl,f)|0,this._dh=this._dh+o+Am(this._dl,h)|0,this._eh=this._eh+a+Am(this._el,p)|0,this._fh=this._fh+s+Am(this._fl,m)|0,this._gh=this._gh+l+Am(this._gl,g)|0,this._hh=this._hh+c+Am(this._hl,v)|0},ym.prototype._hash=function(){var e=gm.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var Im=ym;Im.default;var Om=ou,jm=Im,Zm=Ap,Rm=sd.Buffer,Nm=new Array(160);function Pm(){this.init(),this._w=Nm,Zm.call(this,128,112)}Om(Pm,jm),Pm.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},Pm.prototype._hash=function(){var e=Rm.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var Tm=Pm;Tm.default;var Bm=Cp.exports=function(e){e=e.toLowerCase();var t=Bm[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};Bm.sha=Bp,Bm.sha1=Yp,Bm.sha224=hm,Bm.sha256=am,Bm.sha384=Tm,Bm.sha512=Im;var $m=Cp.exports;function Dm(){this.head=null,this.tail=null,this.length=0}Dm.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},Dm.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},Dm.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},Dm.prototype.clear=function(){this.head=this.tail=null,this.length=0},Dm.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},Dm.prototype.concat=function(e){if(0===this.length)return _u.alloc(0);if(1===this.length)return this.head.data;for(var t=_u.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t},Fm.ReadableState=zm;var Lm=tf("stream");function zm(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof gg&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new Dm,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new oh(e.encoding),this.encoding=e.encoding)}function Fm(e){if(!(this instanceof Fm))return new Fm(e);this._readableState=new zm(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),Pd.call(this)}function Wm(e,t,n,r,i){var o=function(e,t){var n=null;_u.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,Um(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var l;!t.decoder||i||r||(n=t.decoder.write(n),l=!t.objectMode&&0===n.length),i||(t.reading=!1),l||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&Um(e))),function(e,t){t.readingMore||(t.readingMore=!0,wd(Gm,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=Hm?e=Hm:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function Um(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Lm("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?wd(Ym,e):Ym(e))}function Ym(e){Lm("emit readable"),e.emit("readable"),Km(e)}function Gm(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=_u.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function Qm(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,wd(eg,t,e))}function eg(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function tg(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return Lm("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Qm(this):Um(this),null;if(0===(e=Vm(e,t))&&t.ended)return 0===t.length&&Qm(this),null;var r,i=t.needReadable;return Lm("need readable",i),(0===t.length||t.length-e0?Jm(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Qm(this)),null!==r&&this.emit("data",r),r},Fm.prototype._read=function(e){this.emit("error",new Error("not implemented"))},Fm.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,Lm("pipe count=%d opts=%j",r.pipesCount,t);var i=!t||!1!==t.end?a:c;function o(e){Lm("onunpipe"),e===n&&c()}function a(){Lm("onend"),e.end()}r.endEmitted?wd(i):n.once("end",i),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;Lm("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,Km(e))}}(n);e.on("drain",s);var l=!1;function c(){Lm("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",f),e.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",c),n.removeListener("data",d),l=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var u=!1;function d(t){Lm("ondata"),u=!1,!1!==e.write(t)||u||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==tg(r.pipes,e))&&!l&&(Lm("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,u=!0),n.pause())}function f(t){var n;Lm("onerror",t),m(),e.removeListener("error",f),0===(n="error",e.listeners(n).length)&&e.emit("error",t)}function h(){e.removeListener("finish",p),m()}function p(){Lm("onfinish"),e.removeListener("close",h),m()}function m(){Lm("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",h),e.once("finish",p),e.emit("pipe",n),r.flowing||(Lm("pipe resume"),n.resume()),e},Fm.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},og.prototype._write=function(e,t,n){n(new Error("not implemented"))},og.prototype._writev=null,og.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,dg(e,t),n&&(t.finished?wd(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Gd(gg,Fm);for(var hg=Object.keys(og.prototype),pg=0;pg65536){var t=new Error;throw t.code=22,t.message="Failed to execute 'getRandomValues' on 'Crypto': The ArrayBufferView's byte length ("+e.length+") exceeds the number of bytes of entropy available via this API (65536).",t.name="QuotaExceededError",t}var n=$g.randomBytes(e.length);return e.set(n),e}throw new Error("No secure random number generator available.")};Object.defineProperty(tu,"__esModule",{value:!0});var Lg=Pg,zg=Dg,Fg=ad;function Wg(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var Hg=Wg(ru),Vg=Wg(Lg),Ug=Wg(zg);const Yg={EOS:"eos",ETH:"eth",TRX:"trx"};Object.keys(Yg).map((e=>({key:e,value:Yg[e]})));class Gg{constructor(e=Yg.EOS,t="",n="",r=null,i=null){this.blockchain=e,this.contract=t,this.symbol=n,this.name=r||n,this.decimals=i}static placeholder(){return new Gg}static fromJson(e){return Object.assign(this.placeholder(),e)}}const qg="blockchain_support",Xg="wallet_support";var Kg=Object.freeze({__proto__:null,BLOCKCHAIN_SUPPORT:qg,WALLET_SUPPORT:Xg});class Jg{constructor(e="",t=""){this.name=e,this.type=t}static placeholder(){return new Jg}static fromJson(e){return Object.assign(Jg.placeholder(),e)}isSignatureProvider(){return this.type===qg}isValid(){return Object.keys(Kg).map((e=>Kg[e])).includes(this.type)}}const Qg={disconnect:"disconnect",isConnected:"isConnected",isPaired:"isPaired",addEventHandler:"addEventHandler",removeEventHandler:"removeEventHandler",listen:"listen",getVersion:"getVersion",getIdentity:"getIdentity",getAllAccountsFor:"getAllAccountsFor",getIdentityFromPermissions:"getIdentityFromPermissions",forgetIdentity:"forgetIdentity",updateIdentity:"updateIdentity",authenticate:"authenticate",getArbitrarySignature:"getArbitrarySignature",getPublicKey:"getPublicKey",linkAccount:"linkAccount",hasAccountFor:"hasAccountFor",suggestNetwork:"suggestNetwork",requestTransfer:"requestTransfer",getAvatar:"getAvatar",requestSignature:"requestSignature",createTransaction:"createTransaction",addToken:"addToken",createEncryptionKey:"createEncryptionKey"},ev={[Qg.getIdentity]:"login",[Qg.getAllAccountsFor]:"loginAll",[Qg.forgetIdentity]:"logout",[Qg.getIdentityFromPermissions]:"checkLogin"};class tv{constructor(e,t,n){const r=t=>()=>{throw console.error(`${e} does not support the ${t} method.`),new Error(`${e} does not support the ${t} method.`)};Object.keys(Qg).map((e=>((e,t)=>{void 0===n[t]&&(n[t]=e||r(t)),ev[t]&&void 0===n[ev[t]]&&(n[ev[t]]=n[t]?n[t]:r(t))})(t[e],e)))}static bindBasics(e){e.account=t=>{if(e.identity&&e.identity.accounts)return e.identity.accounts.find((e=>e.blockchain===t))}}}class nv{static getMethods(e,t){const n=(t,n)=>((t||n)&&(e.holderFns.get().identity=t),n||t);return{[Qg.disconnect]:()=>t().disconnect(),[Qg.isConnected]:()=>t().isConnected(),[Qg.isPaired]:()=>t().isPaired(),[Qg.addEventHandler]:(e,n=null)=>t().addEventHandler(e,n),[Qg.removeEventHandler]:(e=null)=>t().removeEventHandler(e),[Qg.listen]:e=>t().addEventHandler(e),[Qg.getVersion]:()=>t().sendApiRequest({type:"getVersion",payload:{}}),[Qg.getIdentity]:r=>t().sendApiRequest({type:"getOrRequestIdentity",payload:{fields:r||{accounts:[e.holderFns.get().network]}}}).then(n),[Qg.getAllAccountsFor]:r=>t().sendApiRequest({type:"getAllAccountsFor",payload:{fields:r||{accounts:[e.holderFns.get().network]}}}).then(n),[Qg.getIdentityFromPermissions]:()=>t().sendApiRequest({type:"identityFromPermissions",payload:{}}).then(n),[Qg.forgetIdentity]:()=>t().sendApiRequest({type:"forgetIdentity",payload:{}}).then((e=>n(null,e))),[Qg.updateIdentity]:({name:e,kyc:r})=>t().sendApiRequest({type:"updateIdentity",payload:{name:e,kyc:r}}).then((e=>e?n(e):null)),[Qg.authenticate]:(e,n=null,r=null)=>t().sendApiRequest({type:"authenticate",payload:{nonce:e,data:n,publicKey:r}}),[Qg.getArbitrarySignature]:(e,n)=>t().sendApiRequest({type:"requestArbitrarySignature",payload:{publicKey:e,data:n}}),[Qg.getPublicKey]:e=>t().sendApiRequest({type:"getPublicKey",payload:{blockchain:e}}),[Qg.linkAccount]:(n,r)=>t().sendApiRequest({type:"linkAccount",payload:{account:n,network:r||e.holderFns.get().network}}),[Qg.hasAccountFor]:n=>t().sendApiRequest({type:"hasAccountFor",payload:{network:n||e.holderFns.get().network}}),[Qg.suggestNetwork]:n=>t().sendApiRequest({type:"requestAddNetwork",payload:{network:n||e.holderFns.get().network}}),[Qg.requestTransfer]:(n,r,i,o={})=>t().sendApiRequest({type:"requestTransfer",payload:{network:n||e.holderFns.get().network,to:r,amount:i,options:o}}),[Qg.getAvatar]:()=>t().sendApiRequest({type:"getAvatar",payload:{}}),[Qg.requestSignature]:e=>t().sendApiRequest({type:"requestSignature",payload:e}),[Qg.createTransaction]:(n,r,i,o)=>t().sendApiRequest({type:"createTransaction",payload:{blockchain:n,actions:r,account:i,network:o||e.holderFns.get().network}}),[Qg.addToken]:(n,r)=>t().sendApiRequest({type:"addToken",payload:{token:n,network:r||e.holderFns.get().network}}),[Qg.createEncryptionKey]:(e,n,r=null)=>t().sendApiRequest({type:"createEncryptionKey",payload:{scatterPublicKey:e,otherPublicKey:n,nonce:r}})}}}let rv=!1;"undefined"!=typeof document&&document.addEventListener("walletLoaded",(()=>rv=!0));const iv=async(e=null,t=0)=>new Promise((n=>(e||(e=n),rv||"undefined"!=typeof window&&void 0!==window.wallet&&(rv=!0,1)?e(!0):t>5?e(!1):void setTimeout((()=>iv(e,t+1)),100))));class ov extends Jg{constructor(e,t){super("InjectedWalletV2",Xg),this.name="InjectedWalletV2",this.context=e,this.holderFns=t}async connect(){return new Promise((async e=>{await iv()&&(this.holderFns&&!this.holderFns.get().wallet&&(this.holderFns.get().wallet=this.name),e({disconnect:()=>{},sendApiRequest:window.wallet.sendApiRequest}))}))}async runAfterInterfacing(){return this.holderFns.get().identity=await this.holderFns.get().getIdentityFromPermissions(),!0}methods(){return nv.getMethods(this,(()=>window.wallet))}}class av{constructor(e="",t="https",n="",r=0,i=Yg.EOS,o=""){this.name=e,this.protocol=t,this.host=n,this.port=r,this.blockchain=i,this.chainId=o.toString(),this.token=null}static placeholder(){return new av}static fromJson(e){const t=Object.assign(av.placeholder(),e);return t.chainId=t.chainId?t.chainId.toString():"",t.token=e.hasOwnProperty("token")&&e.token?Gg.fromJson(e.token):null,t}fullhost(){return`${this.protocol}://${this.host}${this.port?":":""}${this.port}`}unique(){return(`${this.blockchain}:`+(this.chainId.length?`chain:${this.chainId}`:`${this.host}:${this.port}`)).toLowerCase()}}let sv={};const lv=()=>"undefined"!=typeof window?window:{localStorage:{setItem:(e,t)=>sv[e]=t,getItem:e=>sv[e]||null,removeItem:e=>delete sv[e]}};class cv{constructor(){}static setAppKey(e){lv().localStorage.setItem("appkey",e)}static getAppKey(){return lv().localStorage.getItem("appkey")}static removeAppKey(){return lv().localStorage.removeItem("appkey")}static setNonce(e){lv().localStorage.setItem("nonce",e)}static getNonce(){return lv().localStorage.getItem("nonce")}static removeNonce(){return lv().localStorage.removeItem("nonce")}}var uv=new RegExp("^.*("+["\\+https:\\/\\/developers.google.com\\/\\+\\/web\\/snippet\\/","googlebot","baiduspider","gurujibot","yandexbot","slurp","msnbot","bingbot","facebookexternalhit","linkedinbot","twitterbot","slackbot","telegrambot","applebot","pingdom","tumblr ","Embedly","spbot"].join("|")+").*$"),dv=function(e){e=e||{};var t={version:!1,language:!1,platform:!0,os:!0,pixelDepth:!0,colorDepth:!0,resolution:!1,isAuthoritative:!0,silkAccelerated:!0,isKindleFire:!0,isDesktop:!0,isMobile:!0,isTablet:!0,isWindows:!0,isLinux:!0,isLinux64:!0,isChromeOS:!0,isMac:!0,isiPad:!0,isiPhone:!0,isiPod:!0,isAndroid:!0,isSamsung:!0,isSmartTV:!0,isRaspberry:!0,isBlackberry:!0,isTouchScreen:!0,isOpera:!1,isIE:!1,isEdge:!1,isIECompatibilityMode:!1,isSafari:!1,isFirefox:!1,isWebkit:!1,isChrome:!1,isKonqueror:!1,isOmniWeb:!1,isSeaMonkey:!1,isFlock:!1,isAmaya:!1,isPhantomJS:!1,isEpiphany:!1,source:!1,cpuCores:!1};for(var n in e)e.hasOwnProperty(n)&&void 0!==t[n]&&(t[n]=e[n]);return this.options=t,this.version="1.0.0",this._Versions={Edge:/Edge\/([\d\w\.\-]+)/i,Firefox:/firefox\/([\d\w\.\-]+)/i,IE:/msie\s([\d\.]+[\d])|trident\/\d+\.\d+;.*[rv:]+(\d+\.\d)/i,Chrome:/chrome\/([\d\w\.\-]+)/i,Chromium:/(?:chromium|crios)\/([\d\w\.\-]+)/i,Safari:/version\/([\d\w\.\-]+)/i,Opera:/version\/([\d\w\.\-]+)|OPR\/([\d\w\.\-]+)/i,Ps3:/([\d\w\.\-]+)\)\s*$/i,Psp:/([\d\w\.\-]+)\)?\s*$/i,Amaya:/amaya\/([\d\w\.\-]+)/i,SeaMonkey:/seamonkey\/([\d\w\.\-]+)/i,OmniWeb:/omniweb\/v([\d\w\.\-]+)/i,Flock:/flock\/([\d\w\.\-]+)/i,Epiphany:/epiphany\/([\d\w\.\-]+)/i,WinJs:/msapphost\/([\d\w\.\-]+)/i,PhantomJS:/phantomjs\/([\d\w\.\-]+)/i,UC:/UCBrowser\/([\d\w\.]+)/i},this._Browsers={Edge:/edge/i,Amaya:/amaya/i,Konqueror:/konqueror/i,Epiphany:/epiphany/i,SeaMonkey:/seamonkey/i,Flock:/flock/i,OmniWeb:/omniweb/i,Chromium:/chromium|crios/i,Chrome:/chrome/i,Safari:/safari/i,IE:/msie|trident/i,Opera:/opera|OPR/i,PS3:/playstation 3/i,PSP:/playstation portable/i,Firefox:/firefox/i,WinJs:/msapphost/i,PhantomJS:/phantomjs/i,UC:/UCBrowser/i},this._OS={Windows10:/windows nt 10\.0/i,Windows81:/windows nt 6\.3/i,Windows8:/windows nt 6\.2/i,Windows7:/windows nt 6\.1/i,UnknownWindows:/windows nt 6\.\d+/i,WindowsVista:/windows nt 6\.0/i,Windows2003:/windows nt 5\.2/i,WindowsXP:/windows nt 5\.1/i,Windows2000:/windows nt 5\.0/i,WindowsPhone8:/windows phone 8\./,OSXCheetah:/os x 10[._]0/i,OSXPuma:/os x 10[._]1(\D|$)/i,OSXJaguar:/os x 10[._]2/i,OSXPanther:/os x 10[._]3/i,OSXTiger:/os x 10[._]4/i,OSXLeopard:/os x 10[._]5/i,OSXSnowLeopard:/os x 10[._]6/i,OSXLion:/os x 10[._]7/i,OSXMountainLion:/os x 10[._]8/i,OSXMavericks:/os x 10[._]9/i,OSXYosemite:/os x 10[._]10/i,OSXElCapitan:/os x 10[._]11/i,OSXSierra:/os x 10[._]12/i,Mac:/os x/i,Linux:/linux/i,Linux64:/linux x86_64/i,ChromeOS:/cros/i,Wii:/wii/i,PS3:/playstation 3/i,PSP:/playstation portable/i,iPad:/\(iPad.*os (\d+)[._](\d+)/i,iPhone:/\(iPhone.*os (\d+)[._](\d+)/i,Bada:/Bada\/(\d+)\.(\d+)/i,Curl:/curl\/(\d+)\.(\d+)\.(\d+)/i},this._Platform={Windows:/windows nt/i,WindowsPhone:/windows phone/i,Mac:/macintosh/i,Linux:/linux/i,Wii:/wii/i,Playstation:/playstation/i,iPad:/ipad/i,iPod:/ipod/i,iPhone:/iphone/i,Android:/android/i,Blackberry:/blackberry/i,Samsung:/samsung/i,Curl:/curl/i},this.DefaultAgent={isAuthoritative:!0,isMobile:!1,isTablet:!1,isiPad:!1,isiPod:!1,isiPhone:!1,isAndroid:!1,isBlackberry:!1,isOpera:!1,isIE:!1,isEdge:!1,isIECompatibilityMode:!1,isSafari:!1,isFirefox:!1,isWebkit:!1,isChrome:!1,isKonqueror:!1,isOmniWeb:!1,isSeaMonkey:!1,isFlock:!1,isAmaya:!1,isPhantomJS:!1,isEpiphany:!1,isDesktop:!1,isWindows:!1,isLinux:!1,isLinux64:!1,isMac:!1,isChromeOS:!1,isBada:!1,isSamsung:!1,isRaspberry:!1,isBot:!1,isCurl:!1,isAndroidTablet:!1,isWinJs:!1,isKindleFire:!1,isSilk:!1,isCaptive:!1,isSmartTV:!1,isUC:!1,isTouchScreen:!1,silkAccelerated:!1,colorDepth:-1,pixelDepth:-1,resolution:[],cpuCores:-1,language:"unknown",browser:"unknown",version:"unknown",os:"unknown",platform:"unknown",geoIp:{},source:"",hashInt:function(e){var t,n,r=0;if(0===e.length)return r;for(t=0,n=e.length;t>>32-t}function n(e,t){var n,r,i,o,a;return i=2147483648&e,o=2147483648&t,a=(1073741823&e)+(1073741823&t),(n=1073741824&e)&(r=1073741824&t)?2147483648^a^i^o:n|r?1073741824&a?3221225472^a^i^o:1073741824^a^i^o:a^i^o}function r(e,r,i,o,a,s,l){return e=n(e,n(n(function(e,t,n){return e&t|~e&n}(r,i,o),a),l)),n(t(e,s),r)}function i(e,r,i,o,a,s,l){return e=n(e,n(n(function(e,t,n){return e&n|t&~n}(r,i,o),a),l)),n(t(e,s),r)}function o(e,r,i,o,a,s,l){return e=n(e,n(n(function(e,t,n){return e^t^n}(r,i,o),a),l)),n(t(e,s),r)}function a(e,r,i,o,a,s,l){return e=n(e,n(n(function(e,t,n){return t^(e|~n)}(r,i,o),a),l)),n(t(e,s),r)}function s(e){var t,n="",r="";for(t=0;t<=3;t++)n+=(r="0"+(e>>>8*t&255).toString(16)).substr(r.length-2,2);return n}var l,c,u,d,f,h,p,m,g,v;for(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t}(e),l=function(e){for(var t,n=e.length,r=n+8,i=16*((r-r%64)/64+1),o=new Array(i-1),a=0,s=0;s>>29,o}(e),p=1732584193,m=4023233417,g=2562383102,v=271733878,c=0;c0||navigator.msMaxTouchPoints>0},this.getLaguage=function(){this.Agent.language=(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||"").toLowerCase()},this.getColorDepth=function(){this.Agent.colorDepth=screen.colorDepth||-1},this.getScreenResolution=function(){this.Agent.resolution=[screen.availWidth,screen.availHeight]},this.getPixelDepth=function(){this.Agent.pixelDepth=screen.pixelDepth||-1},this.getCPU=function(){this.Agent.cpuCores=navigator.hardwareConcurrency||-1},this.reset=function(){var e=this;for(var t in e.DefaultAgent)e.DefaultAgent.hasOwnProperty(t)&&(e.Agent[t]=e.DefaultAgent[t]);return e},this.parse=function(e){e=e||navigator.userAgent;var t=new dv;return t.Agent.source=e.replace(/^\s*/,"").replace(/\s*$/,""),t.Agent.os=t.getOS(t.Agent.source),t.Agent.platform=t.getPlatform(t.Agent.source),t.Agent.browser=t.getBrowser(t.Agent.source),t.Agent.version=t.getBrowserVersion(t.Agent.source),t.testBot(),t.testSmartTV(),t.testMobile(),t.testAndroidTablet(),t.testTablet(),t.testCompatibilityMode(),t.testSilk(),t.testKindleFire(),t.testCaptiveNetwork(),t.testTouchSupport(),t.getLaguage(),t.getColorDepth(),t.getPixelDepth(),t.getScreenResolution(),t.getCPU(),t.Agent},this.get=function(e){var t=this.parse(),n=[];for(var r in this.options)this.options.hasOwnProperty(r)&&!0===this.options[r]&&n.push(t[r]);e&&n.push(e),!this.options.resolution&&t.isMobile&&n.push(t.resolution);var i=t.hashMD5(n.join(":"));return[i.slice(0,8),i.slice(8,12),"4"+i.slice(12,15),"b"+i.slice(15,18),i.slice(20)].join("-")},this.Agent=this.DefaultAgent,this};let fv;if("undefined"==typeof navigator)fv="nodejs_env";else{const e=(new dv).parse(),t=[e.language,e.platform,e.os,e.cpuCores,e.colorDepth];fv=e.hashMD5(t.join(":"))}var hv=fv;const pv=e=>Vg.default("sha256").update(e).digest("hex"),mv=()=>{let e=new Uint8Array(24);return Ug.default(e),e.join("")};class gv{constructor(e,t){this.plugin=e,this.timeout=t,this.uuid=null,this.socket=null,this.connected=!1,this.paired=!1,this.openRequests=[],this.pairingPromise=null,this.eventHandlers={},this.appkey=cv.getAppKey(),this.appkey||(this.appkey="appkey:"+mv())}addEventHandler(e,t){t||(t="app"),this.eventHandlers[t]=e}removeEventHandler(e){e||(e="app"),delete this.eventHandlers[e]}link(e=!0,t=null,n=null){return this.uuid=t,new Promise((async t=>{const r=()=>{this.socket.onmessage=i=>{if(-1===i.data.indexOf("42/scatter"))return!1;const[o,a]=JSON.parse(i.data.replace("42/scatter,",""));if("pong"!==o){if("ping"===o)return this.socket.send('42/scatter,["pong"]');switch(o){case"paired":return e(a);case"rekey":return t();case"api":return n(a);case"event":return r(a)}}};const e=e=>{if(this.paired=e,this.paired){const e=cv.getAppKey(),t=this.appkey.indexOf("appkey:")>-1?pv(this.appkey):this.appkey;e&&e===t||(cv.setAppKey(t),this.appkey=cv.getAppKey())}this.pairingPromise.resolve(e)},t=()=>{this.appkey="appkey:"+mv(),this.send("rekeyed",{data:{appkey:this.appkey,origin:this.getOrigin()},plugin:this.plugin})},n=e=>{try{e=JSON.parse(e)}catch(e){}const t=this.openRequests.find((t=>t.id===e.id));if(!t)return;this.openRequests=this.openRequests.filter((t=>t.id!==e.id));"object"==typeof e.result&&null!==e.result&&e.result.hasOwnProperty("isError")?t.reject(e.result):t.resolve(e.result)},r=({event:e,payload:t})=>{Object.keys(this.eventHandlers).length&&Object.keys(this.eventHandlers).map((n=>{this.eventHandlers[n](e,t)}))}},i=(e,t)=>n||(t?`local.get-scatter.com:${e}`:`127.0.0.1:${e}`),o=await new Promise((async t=>{if(n)return t([50006]);const r=(e,t)=>fetch(e).then((e=>e.text())).then((e=>t("scatter"===e))).catch((()=>t(!1)));let o=[];let a=!1;const s=(n=null)=>{a||(a=!0,null!==n&&o.push(n),t((o.length?o:[50006,50005]).filter((t=>!(!e&&t%2))).sort(((e,t)=>t%2?e%2?0:-1:1))))};await Promise.all([...new Array(5).keys()].map((async t=>{if(a)return;const n=50005+1500*t;return await r("https://"+i(n+1,!0),(e=>e?s(n+1):null)),e&&await r("http://"+i(n,!1),(e=>e?s(n):null)),!0}))),s()})),a=e=>new Promise((t=>{const n=!(e%2),r=i(e,n),o=n?"wss://":"ws://",a=new Hg.default(`${o}${r}/socket.io/?EIO=3&transport=websocket`);a.onerror=()=>t(!1),a.onopen=()=>t(a)}));let s=!1;for(let e=0;et(!0)));break}}}))}isConnected(){return this.socket&&1===this.socket.readyState}isPaired(){return this.paired}disconnect(){return this.socket&&this.socket.close(),!0}sendApiRequest(e){return new Promise(((t,n)=>{if("identityFromPermissions"===e.type&&!this.paired)return t(!1);this.pair().then((()=>{if(!this.paired)return n({code:"not_paired",message:"The user did not allow this app to connect to their Scatter"});e.id=mv(),e.appkey=this.appkey,e.nonce=cv.getNonce()||0;const r=mv();e.nextNonce=pv(r),cv.setNonce(r),e.hasOwnProperty("payload")&&!e.payload.hasOwnProperty("origin")&&(e.payload.origin=this.getOrigin()),this.openRequests.push(Object.assign(e,{resolve:t,reject:n})),this.send("api",{data:e,plugin:this.plugin})}))}))}pair(e=!1){return new Promise(((t,n)=>{this.pairingPromise={resolve:t,reject:n},this.send("pair",{data:{appkey:this.appkey,origin:this.getOrigin(),passthrough:e},plugin:this.plugin})}))}send(e=null,t=null){null===e&&null===t?this.socket.send("40/scatter"):this.socket.send("42/scatter,"+JSON.stringify([e,Object.assign(t,{device:hv,uuid:this.uuid})]))}getOrigin(){return gv.getOriginOrPlugin(this.plugin)}static getOriginOrPlugin(e){let t;return t="undefined"!=typeof location&&location.hasOwnProperty("hostname")&&location.hostname.length&&"localhost"!==location.hostname?location.hostname:e,"www."===t.substr(0,4)&&(t=t.replace("www.","")),t}}class vv extends Jg{constructor(e,t){super("LocalSocket",Xg),this.name="LocalSocket",this.context=e,this.holderFns=t}connect(e,t={}){return new Promise((n=>{if(!e||!e.length)throw new Error("You must specify a name for this connection");t=Object.assign({linkTimeout:3e3,allowHttp:!0},t),this.socketService=new gv(e,t.linkTimeout),this.socketService.link(t.allowHttp).then((async e=>e?(this.holderFns.get().isExtension=!1,this.holderFns.get().wallet||(this.holderFns.get().wallet=this.name),n(this.socketService)):n(!1)))}))}async runAfterInterfacing(){return this.holderFns.get().addEventHandler(((e,t)=>this.eventHandler(e,t)),"internal"),this.holderFns.get().identity=await this.holderFns.get().getIdentityFromPermissions(),!0}methods(){return nv.getMethods(this,(()=>this.socketService))}async eventHandler(e,t){switch(e){case kv.Disconnected:this.holderFns.get().identity=null;break;case kv.LoggedOut:this.holderFns.get().identity=await this.holderFns.get().getIdentityFromPermissions()}}}class bv extends Jg{constructor(e,t){super("RelaySocket",Xg),this.name="RelaySocket",this.context=e,this.holderFns=t}connect(e,t={}){return new Promise((async n=>{if(!e||!e.length)throw new Error("You must specify a name for this connection");t=Object.assign({linkTimeout:3e3,allowHttp:!0},t);const r=await fetch(`https://relay.get-scatter.com:443/app/connect/${hv}`).then((e=>200===e.status?e.json():null));if(!r)return n(!1);this.socketService=new gv(e,t.linkTimeout),this.socketService.link(t.allowHttp,r,"relaysock.get-scatter.com:443").then((async e=>e?(this.holderFns.get().isExtension=!1,this.holderFns.get().wallet||(this.holderFns.get().wallet=this.name),n(this.socketService)):n(!1)))}))}async runAfterInterfacing(){return this.holderFns.get().identity=await this.holderFns.get().getIdentityFromPermissions(),!0}methods(){return vv.getMethods(this)}async eventHandler(e,t){switch(e){case kv.Disconnected:this.holderFns.get().identity=null;break;case kv.LoggedOut:this.holderFns.get().identity=await this.holderFns.get().getIdentityFromPermissions()}}}let yv=!1;"undefined"!=typeof window&&"undefined"!=typeof document&&(void 0!==window.scatter?yv=!0:document.addEventListener("scatterLoaded",(()=>yv=!0)));const wv=async(e=null,t=0)=>new Promise((n=>(e||(e=n),yv?e(!0):t>5?e(!1):void setTimeout((()=>wv(e,t+1)),100))));class _v extends Jg{constructor(e,t){super("InjectedWallet",Xg),this.name="InjectedWallet",this.context=e,this.holderFns=t}async connect(){return new Promise((async e=>{await wv()&&(this.holderFns&&!this.holderFns.get().wallet&&(this.holderFns.get().wallet=this.name),e("injection"))}))}async runBeforeInterfacing(){const e=this.context.network;if(e){const t=window.scatter.getIdentity.bind(window.scatter),n=window.scatter.useIdentity.bind(window.scatter);window.scatter.getIdentity=r=>t(r||{accounts:[e]}).then((e=>(this.holderFns.get().identity=e,n(e),e)));const r=window.scatter.suggestNetwork.bind(window.scatter);window.scatter.suggestNetwork=t=>r(t||e)}return this.holderFns.get().wallet===this.name&&(window.scatter.wallet=this.name),this.holderFns.set(window.scatter),this.context=this.holderFns.get(),!0}async runAfterInterfacing(){return this.context.isExtension=!0,this.context.connect=this.connect,!0}methods(){return{}}}const xv=new class{constructor(){this.plugins=[]}loadPlugin(e){this.plugin(e.name)||this.plugins.push(e)}wallets(){return this.plugins.filter((e=>e.type===Xg))}signatureProviders(){return this.plugins.filter((e=>e.type===qg))}supportedBlockchains(){return this.signatureProviders().map((e=>name))}plugin(e){return this.plugins.find((t=>t.name===e))}async endorsedNetworks(){return await Promise.all(this.signatureProviders().map((async e=>await e.getEndorsedNetwork())))}},kv={Disconnected:"dced",LoggedOut:"logout"};let Sv=null,Cv=[],Mv={};let Ev=new Proxy(new class{constructor(e){this.scatter=e}plugins(...e){this.scatter.isExtension||e.map((e=>this.scatter.loadPlugin(e)))}connect(...e){return this.scatter.connect(...e)}catchAll(...e){}}(new class{constructor(){this.identity=null,this.network=null,xv.loadPlugin(new bv(this,Mv)),xv.loadPlugin(new vv(this,Mv)),xv.loadPlugin(new ov(this,Mv)),xv.loadPlugin(new _v(this,Mv))}loadPlugin(e){const t=()=>{if(!Mv.get().identity)throw new Error("No Identity")};if(!e.isValid())throw new Error(`${e.name} doesn't seem to be a valid ScatterJS plugin.`);xv.loadPlugin(e),e.type===qg&&(this[e.name]=e.signatureProvider(t,(()=>Mv.get().identity)),this[e.name+"Hook"]=e.hookProvider,"function"==typeof e.multiHook&&(this[e.name+"MultiHook"]=e.multiHook),Cv.push(e.setSocketService)),e.type===Xg&&e.init(this,Mv,Cv)}async connect(e,t){return new Promise((async n=>{t||(t={}),this.network=t.hasOwnProperty("network")?t.network:null;const r=xv.wallets();Sv&&(Sv.disconnect(),Sv=null);let i=!1,o=[];for(let a=0;a{e&&("injection"!==e&&(Sv=e,Cv.map((t=>t(e)))),"function"==typeof s.runBeforeInterfacing&&await s.runBeforeInterfacing(),new tv(s.name,s.methods(),Mv.get()),"function"==typeof s.runAfterInterfacing&&await s.runAfterInterfacing(),tv.bindBasics(Mv.get()),i=!0,n(!0))})).catch((()=>!1)),new Promise((e=>setTimeout((()=>e(!1)),5e3)))]))}await Promise.all(o),n(!1)}))}}),{get(e,t){return void 0!==e[t]?e[t]:e.scatter[t]}});Mv.set=e=>Ev.scatter=e,Mv.get=()=>Ev.scatter,"undefined"!=typeof window&&(window.ScatterJS=Ev),Ev.Plugin=Jg,Ev.PluginTypes=Kg,Ev.Blockchains=Yg,Ev.Network=av,Ev.Token=Gg,Ev.SocketService=gv,Ev.EVENTS=kv,Ev.WalletInterface=tv,Ev.WALLET_METHODS=Qg;let Av=gv;class Iv extends Jg{constructor(){super(Yg.EOS,qg)}setSocketService(e){Av=e}hookProvider(e,t=null){return e=av.fromJson(e),{requiredFields:{},getAvailableKeys:async()=>await Av.sendApiRequest({type:"identityFromPermissions",payload:{}}).then((e=>e?e.accounts.filter((e=>e.blockchain===Yg.EOS)).map((e=>e.publicKey)):[])),sign:async n=>{const r=t?t():{};return n.serializedTransaction=Fg.Buffer.from(n.serializedTransaction).toString("hex"),new Promise((async(t,i)=>{Av.sendApiRequest({type:"requestSignature",payload:{transaction:n,blockchain:Yg.EOS,network:e,requiredFields:r}}).then((e=>{t({signatures:e.signatures,serializedTransaction:Fg.Buffer.from(n.serializedTransaction,"hex")})})).catch((e=>i(e)))}))}}}multiHook(e,t){const n=this.eosHook(e);return Array.isArray(t)||(t=[t]),{getAvailableKeys:async()=>{try{const e=await n.getAvailableKeys();let r=[];return await Promise.all(t.map((async e=>(await e.getAvailableKeys().then((e=>{e.map((e=>r.push(e)))})),!0)))),e.concat(r)}catch(e){throw new Error(e)}},sign:async r=>{try{const i=Fg.Buffer.from(r.serializedTransaction,"hex"),o=async t=>({abis:r.abis,chainId:e.chainId,requiredKeys:await t.getAvailableKeys(),serializedTransaction:i}),a=e=>"object"==typeof e&&e.hasOwnProperty("signatures")?e.signatures:e,s=await n.sign(await o(n)).then((e=>a(e)));let l=[];return await Promise.all(t.map((async e=>(await e.sign(await o(e)).then((e=>{a(e).map((e=>l.push(e)))})),!0)))),{signatures:s.concat(l),serializedTransaction:i}}catch(e){throw new Error(e)}}}}signatureProvider(...e){return e[0],(e,t,n={})=>{e=av.fromJson(e);let r={};const i=this.hookProvider(e,(()=>r));return o=new t(Object.assign(n,{signatureProvider:i})),a={get(e,t){return(...n)=>{if(void 0===e[t])throw new Error(`${t} does not exist on the eosjs.Api() object.`);const i=n.find((e=>e.hasOwnProperty("requiredFields")));return r=i?i.requiredFields:{},e[t](...n)}}},new Proxy(o,a);var o,a}}}"undefined"!=typeof window&&(window.ScatterEOS=Iv),tu.Blockchains=Yg,tu.EVENTS=kv,tu.Network=av,tu.Plugin=Jg,tu.PluginTypes=Kg;var Ov=tu.ScatterEOS=Iv,jv=tu.ScatterJS=Ev;tu.SocketService=gv,tu.WALLET_METHODS=Qg,tu.WalletInterface=tv;class Zv extends N.k3{constructor(){super(),this.id="tokenpocket",this.translations={},this.config={requiresChainSelect:!0,requiresPermissionSelect:!1},this.metadata=N.uB.from({name:"TokenPocket",description:"",logo:{dark:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABrYSURBVHgB7d1PjF3nXfDx57RpEyBxQl/U+k1elEivhCcLiIXIH8QiFQaVDYoLi7IgJrtKjRDbNtl005AttEZiR5wVC4i9jMBVvED4j5DcDRkvAAeRMAFE0ziirhA9zG/u3PGdO+fOvefec//+Ph9pGM/4joF4PM/3POd5nlM9+c0f1wUASOVTBQBIRwAAQEICAAASEgAAkJAAAICEBAAAJCQAACAhAQAACQkAAEhIAABAQgIAABISAACQkAAAgIQEAAAkJAAAICEBAAAJCQAASEgAAEBCAgAAEhIAAJCQAACAhAQAACQkAAAgIQEAAAkJAABISAAAQEICAAASEgAAkJAAAICEBAAAJCQAACAhAQAACQkAAEhIAABAQgIAABISAACQkAAAgIQEAAAkJAAAICEBAAAJCQAASEgAAEBCAgAAEhIAAJCQAACAhAQAACQkAAAgIQEAAAkJAABISAAAQEICAAASEgAAkJAAAICEBAAAJCQAACAhAQAACQkAAEhIAABAQgIAABISAACQkAAAgIQEAAAkJAAAICEBAAAJCQAASEgAAEBCAgAAEhIAAJCQAACAhAQAACQkAAAgIQEAAAkJAABISAAAQEICAAASEgAAkJAAAICEBAAAJCQAACAhAQAACQkAAEhIAABAQgIAABISAACQkAAAgIQEAAAkJAAAICEBAAAJCQAASEgAAEBCAgAAEhIAAJCQAACAhAQAACQkAAAgIQEAAAkJAABISAAAQEICAAASEgAAkJAAAICEBAAAJCQAACAhAQAACQkAAEhIAABAQgIAABISAACQkAAAgIQEAAAkJAAAICEBAAAJCQAASEgAAEBCAgAAEhIAAJCQAACAhAQAACQkAAAgIQEAAAkJAABISAAAQEICAAASEgAAkJAAAICEBAAAJCQAACAhAQAACQkAAEhIAABAQgIAABISAACQkAAAgIQEAAAkJAAAICEBAAAJCQAASOi+wkJtfWH37WQpjz1SoNH7H+2+/aCUOz8sZfvDwpo78UApD+6+nbi/9+/+oQd6n4/3Jx5o/pqP7+7+/e+/ffyj3ufi++KDjwp0RgAsQPwjf/HZqpx77t4/fpjU9k4p7+6+3bhdlxvv9QYCVkv8G3/04V7cb52s9gb6/lvX/+YjCuL7Id5v79R73x8RCTduF2ilevKbP64Lc3PmVCmvna0M/HTm+u1SLt6sy3dv9a4UWawY7E/tz+Q980S1UjN6EQMRiNd3YzFmj0QBxxEAc/TyF6vy8vMF5iKuAP96u5Q/uVKbFZij/oB/ZqvaH/TLWolgjNmj6+8JAg4TAHNi8GeR3ropBLoUg/4LT/UG/SdPbs6tu340RhCYQUIAzEFMB/7VH1QFFil+uF+4Wsr5K/5JT2Nw0F+3q/xpXd6ONzGQlQCYgz/7vTw/QFg9MQvw0htmAyYRg/4vPV7Kuef8m41ZpIvfq90mSEQAdCzuEf7lV139s1wxG3D+nbpcuFZoYGfOaBGO8b1jx8nmsw2wY2efKrB0Mah9/Td6u0/cErjn6cd763PM0I0WtzBj51KwtmSzCYCOxR5gWBUvf7GURx+pyquXckeAgX86Xz4db5XbAxtKAHQsVgzDKokf4rt3+1JGgIG/G/0QiC2FMaMkBDaDAOiY+4msomwRYOCfj/jvGYcfuTWwGQQAJBER8MFH1UavCYj71996wcA/b4O3BoTA+hIAkEisCYgHDV28WTZKrOr/2vO9Vf0sToTAr21Vzp9YUx4HDMl840vVRj2NMp63EQdvGfyXI257RljG34E1UOtFAEAy8QM7psnXXURMHLr17d/xsK1VEH8ff/HVau97y+PO14MAgITiHvm5Z8vaevG5au/ALff6V0/cFogwi5kZVpsAgKRilfyJNbtyjv97Y3D5xpfsuFllMQMQMzNf/5JzUVaZAICkHto7Dresjdja9xeu+tdKrMuItQFuCawmAQCJxUNw1mEWIGYr3njJQLKO4u8sbtes8y2nTSUAILFVnwXoT/m//HxhjfWfTeGWwGoRAJBczAKsov6qclP+myNuCcRsgJmc1SAAILm4Onv6ibJSYgW5gWIzxSPTY1bH3+3yCQCgfHmFHmMdW/zs7d9s/XUBtgoulwAAypmt1VgMGIv9Yosfmy8CL0LP4sDlEQDA3g/jU0s+xjUWiFnsl08sDnz5eYsDl0EAAHueebwszWsvOMs/s3iWgAhYPAEA7Nla0gxADP5nTxeSEwGLJwCAPVsnF//D1+DPIBGwWAIA2BMrsxe5ENDgTxMRsDgCADiwqK13seDP4M8oImAxBABw4NEFHM4SW/0s+GOciACROF8CAFiYGPxt9WNScZto1U6p3CQCADjw2MNlbuLUN4M/bX3nK44NnhcBABy486MyF/ED/LWz7unS3kP7T4Rch8dWrxsBABz4+G7pXAz+8QPc2f5MK76H/vgrArJrAgCYq1jxbwqXWcVjoeN7ie4IAODAJx3PAMSivzNbBToRu0c8QbA7AgA48P5HpTNxtLBFf3Qt1pKYUeqGAAD23Lnb3RqA+AH9bfdsmYNYS/KtF3xvdUEAAHve3Smd+drzrtKYn1gPcO7ZwowEALBne6cuXTj7VClfdoIbc/b136iW9gTLTSEAgD2Xb5WZxVV/LPyDRXjNrYCZCABgz60ObgGY+meRLDSdjQAAyvXbsy8ANPXPMpx7TnROSwAA5eL3Zr//b+qfZbArYHoCAJKL7X/f3S4zicHfVRjLErsCHBDUngCA5C5v1zNN/+8t/HMfliWLXQEeGNSOAIDkzl8pM4mFf7BsEaIvOhugFQEAiV28Wc90/G/80LXwj1URCwLNAkxOAEBis179W3zFKokFgWYBJicAIKnz78x29f/0E73FV7BKzAJMTgBAQjHwv3mtzORl9/5ZQWYBJicAIKFXLs228t/VP6vMLMBkBAAkE1P/N26Xmbj6Z5WZBZiMAIBE4sjfWRf+xcp/V/+sOrMA4wkASCLu+796afYjf+37Zx2YBRhPAEACMfi/9MZsq/6Dff+sk7OnxepxBEDHZv0BC13ravAPTz9eYG1EsMaCVZoJgI6928Ez1aEr2zvdDf7BE/9YNxasjiYAOnbjvdnvsUIX4pjfLgf/uJLyxD/WTSxYtRiwmQDo2MWbvcerwrLE99/rb9fllUtlpr3+w84+5UqK9WQxYDMB0LH44fudK2YBWI7Y5vd7u1f9F66WTsWK6l/bKrCWnn5CvDYRAHPw5tXeD2JYlP5Vf0z5b89hHcqZU70IgHUUtwHcvjpKAMxJ7Le2I4B5i4H//O6M06//UfdX/YN+dcsVFOvt7FOFIfcV5qK/9erbX6nK1skCnYoZpsu36nLpZrf3+ZuY/mcT7N0GcHv2EAEwRxEBv/WndTl7urcVxRQUs4hBP3aZvLU76H+wwNkle//ZBP3bAGZm7xEACxA7A2JLVoTAmd2p1Mce7n0juqfKsP4Pp+0Pe1f22zu9e/q3duZ/pT/KGdP/bIhYy3JhxsdgbxIBsED9EFg3Lz/vAJgmsdp+1qfqrQMP/mFTxFqWC9fcBuizCBAYKdavuHXFpnjypEOBBgkAYCTnqLNJ4rbrKYuyDwgAYKSnH3frh83yjEWtB6wBAEZ69onCHMWizzjLYXCBZ0xTWyA8P7YD3iMAgEZbBqLO9c9viMWjsZVz1M6OE/tT1XG1GrswnCXSnSf9tzwgAIBGW18odCCu8GPleRwRPulWznhdREK8xUmPsRAzduOcPe2WzKwiaiMCPLrdGgBgBFedsxk8pvn8O7Od4xC3CuLpjvFnreNW4lVzStzuEQBAo62TrjanFVP9cQrorAP/sH4IxBkUTrSbnrjtEQBAI/dKp3Phau+pjPMcoOPWQPzv8NTR6YjbHgEAHGEB4HTOv1OX198uC9F/4FicMEo74rZHAABHGPzbi8H//JWycK9cEgFtxfe3EwEFANDAPdJ2Ytp/GYN/3x++3XtoFJNzxLUAABrEEyuZTEzFL2raf5TYcfD7f17vvWcydgIIAKCBRVKTi/vwqyBC5DtOuJuYGQABADRwf3QyMfW/Stvx4rAhOwMmIwAEANDAD8fxYuB/81pZOefNAkzEQlcBADTww3G8G7dX8zCeOCPALMB4jz3iNpcAAA5x9T+ZZa76HyceOMTxRK4AAIb4wThebLlb5aN4nQswnnUuAgAYIgDGu357ta+wYzug2wDH830uAABau/FeWXnbO24DjJN9FkAAAIc8dH9hjA/W4El8TgYcL/ssgAAADnFvdLx312Bw3f6wwLEEAEALq7z4b5BjgRlHAABAQgIAABISAAAt3PfpshZsc2McAQDQwn2f6r2tOgHAOAIAoKUHPltW3tbJAscSAAAtfe4ny8rb+oKH3YyzLjs65kUAALT04BoclvTMEwWOJQAAWvr8Q6V8ZoUXA8b0v6c6Hs85CQIAoLXYCbDKi+xefNb0/zjZp/+DAABoKYbXn/t8WUkRJqb/x/vYDIAAAJjGzzzYe1s1556rTP9P4M5dT0sUAAAt1ftjx5P/t6yUGPjPPlWYgFsAAgCgvf1b7J/fnQE49YWyMr72vKv/Sa3DI53nTQAAzODnHyvlcz9Vlu7F3an/L58uTOhdj0sWAACz+OynS/nVU8vdFRDb/r7xpUILn1gEKAAA2upvsqv3P3jo/lJ+8xdKObGECIgp/29/xba/tt7dKekJAIAp7Q27de8XMfj/9i9W5eEFRkBc+f/lV933b2vb4L9HAAC0VA+99UUE/M7TVXn8c2Xu4p5/DP6e+tfe+x/ZAhjuKwC0Vg28DXrkJ3p78f/un0v523+sy/f/q3Qqrva/9ULlsJ8Z3LhdKAIAYCr14Pv66Od/5f+Xcvr/VeXydl2u3S4zi9mFOOL33HOrfQzxOrADoEcAAExp7/Z/0zTA/u/F9sDf3R20z54u5R//o5S/+Ye6/P2/lonFoB/nDJz75d0r/scN/F25ZQ3AHgEAMIX+uF/XI35z4PP/ZzcEHt2duj+zVZUf/LCUf/l+Kf/8n3X5909K+bc7+xGx68T9vUF+62S1t8DvyZMG/a7FAkDPAegRAAAzqEZ9rhpogIEXxaOEf/anS/niz1Xl/s/0Bv37VvjRwptme8cCwD67AABmUR2NgP6swJE4qBu+zhb+hbr+XmGfAABo6dBBQHVvwG+6FXCwVbAe+sL+1x38ISyKHQD3CACAlo4M9tW9+/j9jwcH9oMDg1iquP/vKYD3CACAtqqDAwAbr+IHp/arQ5+898vK1P/CXb+twgYJAIAZNN3HjxmC48b3eoLX0L3LtwoDBADArIZnAKqhTxnpl+7OXff/hwkAgJaGz/4Znliuhx8S0DDz7BbAYsWJjBwmAABaGn4Y0PBgPup0wMHfNxwtlun/owQAwBRGPQwoDO/6a5whYGFi+v/ydmGIAACY0qhxvJrkYxGwMKb/mwkAgCmMehpg//kAh44CqJq/lsV463uFBgIAYFYDA3w98PGocwKGv4b5iYN/rP5vJgAApnCwBmDEIoCDBYIjvtY0wGKcv+I/9CgCAKClwcV9R7b8Db1m+IPBWwP1kRfSNVf/owkAgCkd7AJoMYgf7BCojP3zdvFm7ez/YwgAgJb62/hG7gKohqb/69F/BvPz5rXCMQQAQFvDi/5GGDwsqOnP8Djg+bl+u5R3dwrHEAAAs6obPtz/3KgDg0z/z9eb15TVOAIAYFYjlvoPPgq4HrdQkM7EfX8n/40nAACmNPLI/6Y1Ag2PDHaNOh+2/k1GAABM6bhtfP046N8OqAY+Xxp+TTfi6v/izcIEBABAFxrWATQ9EXhwGyDdc/U/OQEAMIX+Nr96+NF/+78evD3QNCS5BdC9WPnv6n9yAgBgCv3p/eFjfZuO+R11HHDbQ4Q43quXJFUbAgBgSiMeAzD2Nf3XGa6649S/9gQAQEuHpvaHRvj+vf1DA3x1/J/DbGLgP3+l0JIAAGjp0G3/oUf+1QMHAA0bfkCQkwC7EYf+uPpvTwAAzEHd8MGhHQC1NQBdiIH/wtXCFAQAQEvHre4/9IIRYpag/8AgZvPSG/4rTksAALR0ZAHfiDHouA7wNMDZnX/H1P8sBADAFEYeAzzg0CLAwa2C1cBBQEJgKhb+zU4AAMxquATqoYOABhYKHjknwBqAqZj6n50AAGhrYFFf0zDUv79/3ELAevhsYCb2+tum/rsgAADaqo6u6B/4rd7gPjTlP6je/5xdAO3FgT9W/XdDAAC0dOj+//A5APsvqIbPBhj4eG+GwJV/a3HV//rbhY4IAICWBg8CqsuRNX57HwyO+UeWCAzeDhACE7lzt3ff/+O7hY4IAICWGtb8HTnlr//5Qy8afEll9r+NeMyv+/7dEgAALR1axH/ME4FGDfAOAWon9vu77989AQAwhXrwFw1X90deN7QmwNX/ZC5cre33nxMBANDW0Ja+4dF8cBeAgX562zsW/c2TAABoq+kKf/C3q6Fp/mMeGawQmsX9/t//czdK5kkAAEzh0Lg9dBsgZgCObPOrj35YNXye3uAfK/4t+psvAQDQUtX06+Ou8od+vx6+hcABg//iCACAlo4M3NXRjw9tDWwY6SsLAY8w+C+WAABoa9zDfAau8KsRX2b0P8zgv3gCAKCtgSf7NR7pWw09DXD/fxyKgdoiwD6D/3IIAICWDg3sTeqBAb40P/THSYA9Bv/lua8A0MqoR/0eMmaAr4/72iRin7/z/ZdHAAC0VR89+3/U0/0OYmH4tMCSexdAPNb3lUuFJRIAAG0NrAE4eOJfw97AevA15vsPxNn+jvddPgEAMKVRV/cTfW2dLwzikb5/+Ha9e/VfWAECAGAKk17dH6z0H46EZDMCFvutHgEAMIVDY/qIY3+PPQiojF43sGniiX5/sjvlb7HfahEAAF2rGn7Z8MTAasNnAWLK//yVejcACitIAADMoPEwn4GTAI9sGezb8MH/+u1SXr1kyn+VCQCAlqqh900vGHxNdcyfsWlc9a8PAQDQ0uBVfTXqBWVo+r8e8Wds0DoAV/3rRQAAtNS/qj/uNL968P3wU4EG/pxN4Kp/PQkAgCkcjOkNc/z9c/4PvabpD9gAVvivLwEA0NK45wAMPgho1DHAI750bZjuX38CAKCt4WcBDIzk1Yj3I16+dvcBYuCP6f4btwtrTgAAzGJ4f385/uPBr1unsd/Av3kEAEBbgyN30wK/6ujLjvz2oXsEq8vAv7kEAEBLR3b1jdgFMGLxf+/z1eqO/bGq/62bdXnzWnGPf4MJAICW+gP7wQDecBLgka2Cwy9ZwdE/rvYv36rLpZtW9WcgAACm1N/iVx8zA3D8Fy9fXO1fuFbvDf6m+XMRAABT6m/xG36oz5EdACMG+2U1QH+K//Itg35mAgCgrcGjfquRv33wmuEZgmoJOwD2rvDfc6XPPQIAoIW4ev7kR6U88Jnex+Pu5TctBOwfFNT4JMEOxP+N7+6Usr3Tu8q/teOePkcJAIAW/u1OKVf/qZTPfLqUR36ilM/9VCmPPVLKg/eX8uju+/v3f6qOfWJg34yLAQcH++14/2HZew/jCACAKfz3/5Ty75/03m592P9sXU48sBsFP9kLg595sJTPn6jKid04eHj3c48+XMpnd3/q/uxPj//zB7ffxa/f/8HuYP/Dev99b6D/4CNX9kxPAAB0KAbkeLv9n/3PbMhTf9g4nyoAQDoCAAASEgAAkJAAAICEBAAAJCQAACAhAQAACQkAAEhIAABAQgIAABISAACQkAAAgIQEAAAkJAAAICEBAAAJCQAASEgAAEBCAgAAEhIAAJCQAACAhAQAACQkAAAgIQEAAAkJAABISAAAQEICAAASEgAAkJAAAICEBAAAJCQAACAhAQAACQkAAEhIAABAQgIAABISAACQkAAAgIQEAAAkJAAY6+MfFRp88FHZSB/fLUACAoCx3v9+ocH7GxoAN94rHGN7py6wCQQAYxkQjrp+u2ysO3c3+/+/WV2+VWAjCADGMiAcdfF7m30VeOM9V7lNYtbnxu0CG0EAMJHzVwwIfTEIXLxZNtqFq73w4zD/DtgkAoCJxFWPqc+eDINADP7fuGSwGxSzYJsefuQiAJjYKxfrjV34NqkLV+s0g8B3t13x9sX3/auCiA0jAJhYXBW+9EbeCLh4sy6vv11SOf+OCNjeyf19z+aqnvzmj2UtrTz2SCkvP1/K2dNVySDCJwbBuC+e1dNPlPLaC9Xe330W8fd+4Vpd3rzqbAQ2kwBgajEonHuuKmdOlY0UA8Bbu1f9b17b3D3/bZ09XcqZrao883gpDz1QNlLc649dEAZ+Np0AYGYndgeCUydL2dp9O3F/WXsx2L//A9u9xom/9wc3LAI+uWvQJw8BAAAJWQQIAAkJAABISAAAQEICAAASEgAAkJAAAICEBAAAJCQAACAhAQAACQkAAEhIAABAQgIAABISAACQkAAAgIQEAAAkJAAAICEBAAAJCQAASEgAAEBCAgAAEhIAAJCQAACAhAQAACQkAAAgIQEAAAkJAABISAAAQEICAAASEgAAkJAAAICEBAAAJCQAACAhAQAACQkAAEhIAABAQgIAABISAACQkAAAgIQEAAAkJAAAICEBAAAJCQAASEgAAEBCAgAAEhIAAJCQAACAhAQAACQkAAAgIQEAAAkJAABISAAAQEICAAASEgAAkJAAAICEBAAAJCQAACAhAQAACQkAAEhIAABAQgIAABISAACQkAAAgIQEAAAkJAAAICEBAAAJCQAASEgAAEBCAgAAEhIAAJCQAACAhAQAACQkAAAgIQEAAAkJAABISAAAQEICAAASEgAAkJAAAICEBAAAJCQAACAhAQAACQkAAEhIAABAQgIAABISAACQkAAAgIQEAAAkJAAAICEBAAAJCQAASEgAAEBCAgAAEhIAAJCQAACAhAQAACQkAAAgIQEAAAkJAABISAAAQEICAAASEgAAkJAAAICEBAAAJCQAACAhAQAACQkAAEhIAABAQgIAABISAACQkAAAgIQEAAAkJAAAICEBAAAJCQAASEgAAEBCAgAAEhIAAJCQAACAhAQAACQkAAAgIQEAAAkJAABISAAAQEICAAASEgAAkJAAAICEBAAAJCQAACAhAQAACQkAAEhIAABAQgIAABISAACQkAAAgIQEAAAkJAAAICEBAAAJ/S/MYXeG0cb1RQAAAABJRU5ErkJggg==",light:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAZlBMVEX///8pgP7Z6f9Xm/7C2/9tqP5Ikv7R5P+lyv9xq/40h/9hof8xhP43iP5lpP4nf/71+f9Olv7u9f+y0v8/jf6cxf/j7/9LlP58sv/q8//J3//c6/+Dtv47i/6UwP+81/+jyP+Juf6QLkp1AAAFJklEQVR4nO2c6baqIBSAb5IDSh4RBzLFfP+XvHaaB0GFws7a37/WSuNThr232L9/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgFVSZz2fapeO/Z0kSdLCqU4H+kX/OTHq4bfBfNjaKUY1p5fYOf66ZZcD/V0x7tBxGinD1JtPiVzRqtuTFH4reIwQLU/HlTTCtWgdUypVhcOVFsRzRSVtTlJUrLegm8cjGxrXgvlbEzJClHoehwZlXGaSVsKlG0JeHkoI5YE/epwNg3GjLbJaNW47ZFK0XVzKbjrJ+t5ZaavE8csrNRXirl+apFUej7hSHmaOpkoUGRFZbbD/4uwFc71RQ5BQHBRaIobuSH9R86eG9INj/GVqIsWU8SkRErOHdhQMZ1POkNU6JsZEVpm47+WOiCbOI40b7BYgsuK3rUj8bvq8TlA+28SgSHw7cfm1N+MUhArHvggKtlePbtLwMGBiUIRe5y2nnudxOIuY17sMipSXJjjdnH51Nrm5sZZFkoBqnKafx+cs8m/oWskaa50zxJVdkfNg1xggR7I5A9789FvsdRMDQvfTl3iTC+Jvz0qYfhhK3OnBijkRL//98W1t4IReN7lzGRNp+O8QTdrIxNkosyZCj8GvrzvSj5BuanZiSqQ5hYxMZwm5QqKpi4mpVBefpqxOsyZzZsMnRiqcGyg+kOxUfEiZsbkDTVwV81y/L5BLllroBFn3lI8JpwJfd3SSDOFLYue7xlalqct7kqxrlG3CzT2htEHk/PWw8aLupr7WmhnqB8K+t067J6l/KSxfKtNM3kWoYNdatHOteG73xnpW37dyE8V6H0l+grgDd31MXkgaryy9Rt0FSZcaqKTOEklaVzn5NlGdB0HOkXqyxIVeyU4tshoSCZDiQoeoZn6xTYsqqFXf7aPptS0RoehZJArOj1ISJ1dFyYhNDrhMiXTyph08rt8u9tLf6EX2e0siKZe3zBN3nX6nWD2pEJZEtnKRPl26+7oqt8/q2pJIgaUi3mNonuTSqavh3JKIIxV5EZkz6eSQLVUEPz3UYtIyxTeJSEOzxYo8PzBl0mlroSI/d9X6I4F0sC9V5CfLH0QUefFiRUJ+/+C3jzGl64jXdQsVidldQUGVm9I8X6gI5eymczmqzSP2gkalSMT7IP536kq2604Vx9sL49UiUdz1Kmmfj4zY2eH6rzZTLEQEIRfzmuOYqgt53FqGOEaEepm8QnMh7N5efPiMCN3/DZHpda2Fisx6kLhEEWRg7l2CCMFGboh9kae8+EtFXiQv3ymyEbM2pCxOhMRmhrp1kedk8jtFSG1mpNsWCZ82rH6pCA0MPOFZgEhWz980uySRhr/eZv9tIs1zQfIrRfro3dwAsShicsKyKdLg1tRKaFUkw2b7lS0RT+u9i8WIEKT3JsxSRJqYGR4eVkR0X0xahgjJEGfG4l17IgR17fhXl5cggp5FNmXkdoH/ll71NpEGxXHUizTkRNhQV7S6b1J+XISgOmB5h7Eb9cS4FnnAJrwOvxSRw3P27XbnswMBu9tC+G0ihwk2SU98wuJdIkYTjZGACIi8CRABkTcBIiDyJkAERN7E3xGRvag69DBfIVIb2H41GUe2/z4beJhfcGmdXbw5GXzdppwONmrwvwzkb/Sg9sMOxzY5YqhRYTz4d0VOPvjnNJtI80+O5pKsa5ptngmzaHj/UVKJiJb0Ff1RFoY6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPwh/gOl/IhHuogvmQAAAABJRU5ErkJggg=="},homepage:"https://www.tokenpocket.pro/",download:"https://www.tokenpocket.pro/en/download/app"}),jv.plugins(new Ov)}login(e){return new Promise(((t,n)=>{(async function(e){if(!e.ui)throw new Error("No UI available");const{account:t}=await Jc(e);let n;if(t.chainId)n=t.chainId;else{if(!t.blockchain||!Object.keys(k.Dn).includes(t.blockchain.toUpperCase()))throw new Error("Unknown chain");n=k.Dn[t.blockchain.toUpperCase()].id}return{chain:x.Nz.from(n),permissionLevel:x.V5.from(`${t.name}@${t.authority}`)}})(e).then((e=>{t(e)})).catch((e=>{n(e)}))}))}sign(e,t){return async function(e,t){if(!t.ui)throw new Error("No UI available");const{connector:n}=await Jc(t),r=x.ei.encode({object:e.transaction}),i=await n.deserializeTransactionWithActions(r.array),o=await n.transact(i,{broadcast:!1});if(!o.serializedTransaction)throw new k.dK("User Canceled request");const a=x.ei.decode({data:o.serializedTransaction,type:x.YW}),s=await S.nt.create({transaction:a},t.esrOptions),l=await s.fetchAbis(t.abiCache),c=s.resolve(l,t.permissionLevel);return{signatures:o.signatures,resolved:c}}(e,t)}}function Rv(){}const Nv=e=>e;function Pv(e,t){for(const n in t)e[n]=t[n];return e}function Tv(e){return e()}function Bv(){return Object.create(null)}function $v(e){e.forEach(Tv)}function Dv(e){return"function"==typeof e}function Lv(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let zv;function Fv(e,t){return e===t||(zv||(zv=document.createElement("a")),zv.href=t,e===zv.href)}function Wv(e,...t){if(null==e){for(const e of t)e(void 0);return Rv}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Hv(e){let t;return Wv(e,(e=>t=e))(),t}function Vv(e,t,n){e.$$.on_destroy.push(Wv(t,n))}function Uv(e,t,n,r){if(e){const i=Yv(e,t,n,r);return e[0](i)}}function Yv(e,t,n,r){return e[1]&&r?Pv(n.ctx.slice(),e[1](r(t))):n.ctx}function Gv(e,t,n,r){if(e[2]&&r){const i=e[2](r(n));if(void 0===t.dirty)return i;if("object"==typeof i){const e=[],n=Math.max(t.dirty.length,i.length);for(let r=0;r32){const t=[],n=e.ctx.length/32;for(let e=0;ewindow.performance.now():()=>Date.now(),tb=Qv?e=>requestAnimationFrame(e):Rv;const nb=new Set;function rb(e){nb.forEach((t=>{t.c(e)||(nb.delete(t),t.f())})),0!==nb.size&&tb(rb)}function ib(e){let t;return 0===nb.size&&tb(rb),{promise:new Promise((n=>{nb.add(t={c:e,f:n})})),abort(){nb.delete(t)}}}function ob(e,t){e.appendChild(t)}function ab(e,t,n){const r=sb(e);if(!r.getElementById(t)){const e=hb("style");e.id=t,e.textContent=n,cb(r,e)}}function sb(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function lb(e){const t=hb("style");return t.textContent="/* empty */",cb(sb(e),t),t.sheet}function cb(e,t){return ob(e.head||e,t),t.sheet}function ub(e,t,n){e.insertBefore(t,n||null)}function db(e){e.parentNode&&e.parentNode.removeChild(e)}function fb(e,t){for(let n=0;ne.removeEventListener(t,n,r)}function yb(e){return function(t){return t.preventDefault(),e.call(this,t)}}function wb(e){return function(t){t.target===this&&e.call(this,t)}}function _b(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function xb(e,t){t=""+t,e.data!==t&&(e.data=t)}function kb(e,t){e.value=null==t?"":t}function Sb(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function Cb(e,t,n){e.classList.toggle(t,!!n)}function Mb(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function Eb(e,t){return new e(t)}const Ab=new Map;let Ib,Ob=0;function jb(e,t,n,r,i,o,a,s=0){const l=16.666/r;let c="{\n";for(let e=0;e<=1;e+=l){const r=t+(n-t)*o(e);c+=100*e+`%{${a(r,1-r)}}\n`}const u=c+`100% {${a(n,1-n)}}\n}`,d=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(u)}_${s}`,f=sb(e),{stylesheet:h,rules:p}=Ab.get(f)||function(e,t){const n={stylesheet:lb(t),rules:{}};return Ab.set(e,n),n}(f,e);p[d]||(p[d]=!0,h.insertRule(`@keyframes ${d} ${u}`,h.cssRules.length));const m=e.style.animation||"";return e.style.animation=`${m?`${m}, `:""}${d} ${r}ms linear ${i}ms 1 both`,Ob+=1,d}function Zb(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),i=n.length-r.length;i&&(e.style.animation=r.join(", "),Ob-=i,Ob||tb((()=>{Ob||(Ab.forEach((e=>{const{ownerNode:t}=e.stylesheet;t&&db(t)})),Ab.clear())})))}function Rb(e){Ib=e}function Nb(){if(!Ib)throw new Error("Function called outside component initialization");return Ib}function Pb(e){Nb().$$.on_mount.push(e)}function Tb(e){Nb().$$.on_destroy.push(e)}function Bb(){const e=Nb();return(t,n,{cancelable:r=!1}={})=>{const i=e.$$.callbacks[t];if(i){const o=Mb(t,n,{cancelable:r});return i.slice().forEach((t=>{t.call(e,o)})),!o.defaultPrevented}return!0}}function $b(e){return Nb().$$.context.get(e)}const Db=[],Lb=[];let zb=[];const Fb=[],Wb=Promise.resolve();let Hb=!1;function Vb(e){zb.push(e)}function Ub(e){Fb.push(e)}const Yb=new Set;let Gb,qb=0;function Xb(){if(0!==qb)return;const e=Ib;do{try{for(;qb{Gb=null}))),Gb}function Qb(e,t,n){e.dispatchEvent(Mb(`${t?"intro":"outro"}${n}`))}const ey=new Set;let ty;function ny(){ty={r:0,c:[],p:ty}}function ry(){ty.r||$v(ty.c),ty=ty.p}function iy(e,t){e&&e.i&&(ey.delete(e),e.i(t))}function oy(e,t,n,r){if(e&&e.o){if(ey.has(e))return;ey.add(e),ty.c.push((()=>{ey.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}else r&&r()}const ay={duration:0};function sy(e,t,n,r){let i,o=t(e,n,{direction:"both"}),a=r?0:1,s=null,l=null,c=null;function u(){c&&Zb(e,c)}function d(e,t){const n=e.b-a;return t*=Math.abs(n),{a:a,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function f(t){const{delay:n=0,duration:r=300,easing:f=Nv,tick:h=Rv,css:p}=o||ay,m={start:eb()+n,b:t};t||(m.group=ty,ty.r+=1),"inert"in e&&(t?void 0!==i&&(e.inert=i):(i=e.inert,e.inert=!0)),s||l?l=m:(p&&(u(),c=jb(e,a,t,r,n,f,p)),t&&h(0,1),s=d(m,r),Vb((()=>Qb(e,t,"start"))),ib((t=>{if(l&&t>l.start&&(s=d(l,r),l=null,Qb(e,s.b,"start"),p&&(u(),c=jb(e,a,s.b,s.duration,0,f,o.css))),s)if(t>=s.end)h(a=s.b,1-a),Qb(e,s.b,"end"),l||(s.b?u():--s.group.r||$v(s.group.c)),s=null;else if(t>=s.start){const e=t-s.start;a=s.a+s.d*f(e/s.duration),h(a,1-a)}return!(!s&&!l)})))}return{run(e){Dv(o)?Jb().then((()=>{o=o({direction:e?"in":"out"}),f(e)})):f(e)},end(){u(),s=l=null}}}function ly(e){return void 0!==e?.length?e:Array.from(e)}function cy(e,t){const n={},r={},i={$$scope:1};let o=e.length;for(;o--;){const a=e[o],s=t[o];if(s){for(const e in a)e in s||(r[e]=1);for(const e in s)i[e]||(n[e]=s[e],i[e]=1);e[o]=s}else for(const e in a)i[e]=1}for(const e in r)e in n||(n[e]=void 0);return n}function uy(e){return"object"==typeof e&&null!==e?e:{}}function dy(e,t,n){const r=e.$$.props[t];void 0!==r&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function fy(e){e&&e.c()}function hy(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),Vb((()=>{const t=e.$$.on_mount.map(Tv).filter(Dv);e.$$.on_destroy?e.$$.on_destroy.push(...t):$v(t),e.$$.on_mount=[]})),i.forEach(Vb)}function py(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];zb.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),zb=t}(n.after_update),$v(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function my(e,t){-1===e.$$.dirty[0]&&(Db.push(e),Hb||(Hb=!0,Wb.then(Xb)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const o=r.length?r[0]:n;return c.ctx&&i(c.ctx[t],c.ctx[t]=o)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](o),u&&my(e,t)),n})):[],c.update(),u=!0,$v(c.before_update),c.fragment=!!r&&r(c.ctx),t.target){if(t.hydrate){const e=(d=t.target,Array.from(d.childNodes));c.fragment&&c.fragment.l(e),e.forEach(db)}else c.fragment&&c.fragment.c();t.intro&&iy(e.$$.fragment),hy(e,t.target,t.anchor),Xb()}var d;Rb(l)}class vy{$$=void 0;$$set=void 0;$destroy(){py(this,1),this.$destroy=Rv}$on(e,t){if(!Dv(t))return Rv;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function by(e){ab(e,"svelte-efme7g","h2.svelte-efme7g{color:var(--body-text-color);font-size:var(--fs-2);font-weight:600;text-align:center;margin:0;margin-block-start:var(--space-xs)}")}function yy(e){let t,n;const r=e[1].default,i=Uv(r,e,e[0],null);return{c(){t=hb("h2"),i&&i.c(),_b(t,"class","svelte-efme7g")},m(e,r){ub(e,t,r),i&&i.m(t,null),n=!0},p(e,[t]){i&&i.p&&(!n||1&t)&&qv(i,r,e,e[0],n?Gv(r,e[0],t,null):Xv(e[0]),null)},i(e){n||(iy(i,e),n=!0)},o(e){oy(i,e),n=!1},d(e){e&&db(t),i&&i.d(e)}}}function wy(e,t,n){let{$$slots:r={},$$scope:i}=t;return e.$$set=e=>{"$$scope"in e&&n(0,i=e.$$scope)},[i,r]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class _y extends vy{constructor(e){super(),gy(this,e,wy,yy,Lv,{},by)}}function xy(e){ab(e,"svelte-fszb3i","p.svelte-fszb3i{color:var(--body-text-color-variant);font-size:var(--fs-1);font-weight:400;text-align:center;margin:0;overflow-wrap:anywhere}")}function ky(e){let t,n;const r=e[1].default,i=Uv(r,e,e[0],null);return{c(){t=hb("p"),i&&i.c(),_b(t,"class","svelte-fszb3i")},m(e,r){ub(e,t,r),i&&i.m(t,null),n=!0},p(e,[t]){i&&i.p&&(!n||1&t)&&qv(i,r,e,e[0],n?Gv(r,e[0],t,null):Xv(e[0]),null)},i(e){n||(iy(i,e),n=!0)},o(e){oy(i,e),n=!1},d(e){e&&db(t),i&&i.d(e)}}}function Sy(e,t,n){let{$$slots:r={},$$scope:i}=t;return e.$$set=e=>{"$$scope"in e&&n(0,i=e.$$scope)},[i,r]}class Cy extends vy{constructor(e){super(),gy(this,e,Sy,ky,Lv,{},xy)}}const My={copy:'\n',check:'\n',close:'\n',"file-code":'\n',wharf:'\n',login:'\n',"chevron-right":'\n',"chevron-left":'\n',wallet:'\n',expand:'\n',signal:'\n',settings:'\n',globe:'\n',github:'\n',info:'\n',theme:'\n',waves:'\n',"external-link":'\n',error:'\n',alert:'\n'};function Ey(e){ab(e,"svelte-19w48ux","div.svelte-19w48ux svg{width:100%;height:100%}")}function Ay(e){let t,n=My[e[0]]+"";return{c(){t=hb("div"),Sb(t,"width",e[1]),Sb(t,"display","grid"),Sb(t,"place-content","center"),Sb(t,"color",e[2]),_b(t,"class","svelte-19w48ux")},m(e,r){ub(e,t,r),t.innerHTML=n},p(e,[r]){1&r&&n!==(n=My[e[0]]+"")&&(t.innerHTML=n),2&r&&Sb(t,"width",e[1]),4&r&&Sb(t,"color",e[2])},i:Rv,o:Rv,d(e){e&&db(t)}}}function Iy(e,t,n){let{name:r}=t,{size:i="var(--space-l)"}=t,{color:o="currentColor"}=t;return e.$$set=e=>{"name"in e&&n(0,r=e.name),"size"in e&&n(1,i=e.size),"color"in e&&n(2,o=e.color)},[r,i,o]}class Oy extends vy{constructor(e){super(),gy(this,e,Iy,Ay,Lv,{name:0,size:1,color:2},Ey)}}function jy(e){ab(e,"svelte-1u0n4gl","div.svelte-1u0n4gl{display:grid;justify-items:center;gap:var(--space-s);text-align:center;color:var(--body-text-color);margin-block:var(--space-s)}")}function Zy(e){let t,n;return t=new Oy({props:{name:e[2],size:"var(--space-3xl)",color:e[3]}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};4&n&&(r.name=e[2]),8&n&&(r.color=e[3]),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function Ry(e){let t,n;return t=new _y({props:{$$slots:{default:[Ny]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};17&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function Ny(e){let t;return{c(){t=mb(e[0])},m(e,n){ub(e,t,n)},p(e,n){1&n&&xb(t,e[0])},d(e){e&&db(t)}}}function Py(e){let t,n;return t=new Cy({props:{$$slots:{default:[Ty]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};18&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function Ty(e){let t;return{c(){t=mb(e[1])},m(e,n){ub(e,t,n)},p(e,n){2&n&&xb(t,e[1])},d(e){e&&db(t)}}}function By(e){let t,n,r,i,o=e[2]&&Zy(e),a=e[0]&&Ry(e),s=e[1]&&Py(e);return{c(){t=hb("div"),o&&o.c(),n=gb(),a&&a.c(),r=gb(),s&&s.c(),_b(t,"class","svelte-1u0n4gl")},m(e,l){ub(e,t,l),o&&o.m(t,null),ob(t,n),a&&a.m(t,null),ob(t,r),s&&s.m(t,null),i=!0},p(e,[i]){e[2]?o?(o.p(e,i),4&i&&iy(o,1)):(o=Zy(e),o.c(),iy(o,1),o.m(t,n)):o&&(ny(),oy(o,1,1,(()=>{o=null})),ry()),e[0]?a?(a.p(e,i),1&i&&iy(a,1)):(a=Ry(e),a.c(),iy(a,1),a.m(t,r)):a&&(ny(),oy(a,1,1,(()=>{a=null})),ry()),e[1]?s?(s.p(e,i),2&i&&iy(s,1)):(s=Py(e),s.c(),iy(s,1),s.m(t,null)):s&&(ny(),oy(s,1,1,(()=>{s=null})),ry())},i(e){i||(iy(o),iy(a),iy(s),i=!0)},o(e){oy(o),oy(a),oy(s),i=!1},d(e){e&&db(t),o&&o.d(),a&&a.d(),s&&s.d()}}}function $y(e,t,n){let{title:r}=t,{details:i}=t,{icon:o}=t,{iconColor:a="currentColor"}=t;return e.$$set=e=>{"title"in e&&n(0,r=e.title),"details"in e&&n(1,i=e.details),"icon"in e&&n(2,o=e.icon),"iconColor"in e&&n(3,a=e.iconColor)},[r,i,o,a]}class Dy extends vy{constructor(e){super(),gy(this,e,$y,By,Lv,{title:0,details:1,icon:2,iconColor:3},jy)}}function Ly(e){let t,n;return t=new Dy({props:{title:e[0],details:e[1],icon:"error",iconColor:"var(--color-error-2)"}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.title=e[0]),2&n&&(r.details=e[1]),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function zy(e,t,n){let{title:r}=t,{details:i}=t;return e.$$set=e=>{"title"in e&&n(0,r=e.title),"details"in e&&n(1,i=e.details)},[r,i]}class Fy extends vy{constructor(e){super(),gy(this,e,zy,Ly,Lv,{title:0,details:1})}}const Wy=[];function Hy(e,t=Rv){let n;const r=new Set;function i(t){if(Lv(e,t)&&(e=t,n)){const t=!Wy.length;for(const t of r)t[1](),Wy.push(t,e);if(t){for(let e=0;e{r.delete(l),0===r.size&&n&&(n(),n=null)}}}}function Vy(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return a=(e,n)=>{let a=!1;const s=[];let l=0,c=Rv;const u=()=>{if(l)return;c();const i=t(r?s[0]:s,e,n);o?e(i):c=Dv(i)?i:Rv},d=i.map(((e,t)=>Wv(e,(e=>{s[t]=e,l&=~(1<{l|=1<{e&&r(JSON.parse(e))}))),{subscribe:n,set:e=>{i&&i.write("settings",JSON.stringify(e)),r(e)},update:e=>{const n=e(Hv(t));i&&i.write("settings",JSON.stringify(n)),r(n)}}}(),Ky={title:"Wharf",subtitle:"Status Message"},Jy=Hy(Ky),Qy={path:"",history:[]},ew=()=>{const{set:e,subscribe:t,update:n}=Hy(Qy);return{back:()=>n((e=>({...e,path:e.history[e.history.length-1],history:e.history.slice(0,-1)}))),push:e=>n((t=>({...t,path:e,history:[...t.history,t.path]}))),set:e,subscribe:t,update:n}},tw=ew(),nw=Hy([]),rw=Hy(void 0),iw=(()=>{const{set:e,subscribe:t,update:n}=Hy(void 0);return{reset:()=>e(void 0),set:e,subscribe:t,update:n}})(),ow={chainId:void 0,permissionLevel:void 0,walletPluginIndex:void 0},aw=Hy(void 0),sw=Hy(void 0),lw=Hy({...ow}),cw={chain:void 0,pluginId:void 0},uw=Hy(void 0),dw=Hy({...cw}),fw=Hy(void 0),hw=Hy(void 0),pw=Hy(void 0),mw=Hy(void 0);function gw(e){let t,n;return t=new Fy({props:{title:e[1]("error.title",{default:"Error"}),details:e[0]}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.title=e[1]("error.title",{default:"Error"})),1&n&&(r.details=e[0]),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function vw(e){let t,n,r=e[0]&&gw(e);return{c(){t=hb("div"),r&&r.c(),_b(t,"class","error")},m(e,i){ub(e,t,i),r&&r.m(t,null),n=!0},p(e,[n]){e[0]?r?(r.p(e,n),1&n&&iy(r,1)):(r=gw(e),r.c(),iy(r,1),r.m(t,null)):r&&(ny(),oy(r,1,1,(()=>{r=null})),ry())},i(e){n||(iy(r),n=!0)},o(e){oy(r),n=!1},d(e){e&&db(t),r&&r.d()}}}function bw(e,t,n){let r,i;Vv(e,hw,(e=>n(0,r=e)));const{t:o}=$b("i18n");return Vv(e,o,(e=>n(1,i=e))),[r,i,o]}class yw extends vy{constructor(e){super(),gy(this,e,bw,vw,Lv,{})}}function ww(e){ab(e,"svelte-1q25md2","ul.svelte-1q25md2{list-style:none;padding:0;margin:0}")}function _w(e){let t,n;const r=e[1].default,i=Uv(r,e,e[0],null);return{c(){t=hb("ul"),i&&i.c(),_b(t,"class","svelte-1q25md2")},m(e,r){ub(e,t,r),i&&i.m(t,null),n=!0},p(e,[t]){i&&i.p&&(!n||1&t)&&qv(i,r,e,e[0],n?Gv(r,e[0],t,null):Xv(e[0]),null)},i(e){n||(iy(i,e),n=!0)},o(e){oy(i,e),n=!1},d(e){e&&db(t),i&&i.d(e)}}}function xw(e,t,n){let{$$slots:r={},$$scope:i}=t;return e.$$set=e=>{"$$scope"in e&&n(0,i=e.$$scope)},[i,r]}class kw extends vy{constructor(e){super(),gy(this,e,xw,_w,Lv,{},ww)}}function Sw(e){ab(e,"svelte-1w5zc52","li.svelte-1w5zc52.svelte-1w5zc52{display:flex;height:calc(var(--space-l) * 2);align-items:center;color:var(--body-text-color);font-size:var(--fs-1);font-weight:500}li.svelte-1w5zc52.svelte-1w5zc52:not(:last-child){border-bottom:1px solid var(--list-divider-color)}button.svelte-1w5zc52.svelte-1w5zc52,a.svelte-1w5zc52.svelte-1w5zc52{flex:1;height:100%;display:flex;align-items:center;cursor:pointer;border:none;background:none;color:inherit;font-size:inherit;font-family:inherit;font-weight:inherit;margin:0;padding:0;padding-inline-start:var(--space-3xs);text-decoration:none}.leading.svelte-1w5zc52.svelte-1w5zc52{inline-size:var(--space-xl);block-size:var(--space-xl);display:grid;place-content:center}.leading.svelte-1w5zc52>.svelte-1w5zc52{max-inline-size:30px;max-block-size:30px}.leading.svelte-1w5zc52 img.svelte-1w5zc52{width:100%;height:100%;object-fit:contain}.trailing.svelte-1w5zc52.svelte-1w5zc52{opacity:0.2;padding-inline-end:var(--space-s)}li.svelte-1w5zc52.svelte-1w5zc52:hover{background:var(--list-item-background-color-hover)}li.svelte-1w5zc52:hover .trailing.svelte-1w5zc52{opacity:1}.label.svelte-1w5zc52.svelte-1w5zc52{flex:1;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline-start:var(--space-xs)}.value.svelte-1w5zc52.svelte-1w5zc52{font-weight:400;padding-inline-end:var(--space-xs)}")}function Cw(e){let t,n,r,i,o,a,s,l,c,u;const d=[Aw,Ew],f=[];function h(e,t){return e[4]?0:e[2]?1:-1}~(r=h(e))&&(i=f[r]=d[r](e));let p=e[5]&&Iw(e),m=e[3]&&Ow(e);return{c(){t=hb("a"),n=hb("div"),i&&i.c(),o=gb(),a=hb("span"),s=mb(e[0]),l=gb(),p&&p.c(),c=gb(),m&&m.c(),_b(n,"class","leading svelte-1w5zc52"),_b(a,"class","label svelte-1w5zc52"),_b(t,"href",e[6]),_b(t,"target","_blank"),_b(t,"rel","noreferrer"),_b(t,"class","svelte-1w5zc52")},m(e,i){ub(e,t,i),ob(t,n),~r&&f[r].m(n,null),ob(t,o),ob(t,a),ob(a,s),ob(t,l),p&&p.m(t,null),ob(t,c),m&&m.m(t,null),u=!0},p(e,o){let a=r;r=h(e),r===a?~r&&f[r].p(e,o):(i&&(ny(),oy(f[a],1,1,(()=>{f[a]=null})),ry()),~r?(i=f[r],i?i.p(e,o):(i=f[r]=d[r](e),i.c()),iy(i,1),i.m(n,null)):i=null),(!u||1&o)&&xb(s,e[0]),e[5]?p?p.p(e,o):(p=Iw(e),p.c(),p.m(t,c)):p&&(p.d(1),p=null),e[3]?m?(m.p(e,o),8&o&&iy(m,1)):(m=Ow(e),m.c(),iy(m,1),m.m(t,null)):m&&(ny(),oy(m,1,1,(()=>{m=null})),ry()),(!u||64&o)&&_b(t,"href",e[6])},i(e){u||(iy(i),iy(m),u=!0)},o(e){oy(i),oy(m),u=!1},d(e){e&&db(t),~r&&f[r].d(),p&&p.d(),m&&m.d()}}}function Mw(e){let t,n,r,i,o,a,s,l,c,u,d,f;const h=[Zw,jw],p=[];function m(e,t){return e[4]?0:e[2]?1:-1}~(r=m(e))&&(i=p[r]=h[r](e));let g=e[5]&&Rw(e),v=e[3]&&Nw(e);return{c(){t=hb("button"),n=hb("div"),i&&i.c(),o=gb(),a=hb("span"),s=mb(e[0]),l=gb(),g&&g.c(),c=gb(),v&&v.c(),_b(n,"class","leading svelte-1w5zc52"),_b(a,"class","label svelte-1w5zc52"),_b(t,"class","svelte-1w5zc52")},m(i,h){ub(i,t,h),ob(t,n),~r&&p[r].m(n,null),ob(t,o),ob(t,a),ob(a,s),ob(t,l),g&&g.m(t,null),ob(t,c),v&&v.m(t,null),u=!0,d||(f=bb(t,"click",(function(){Dv(e[1])&&e[1].apply(this,arguments)})),d=!0)},p(o,a){let l=r;r=m(e=o),r===l?~r&&p[r].p(e,a):(i&&(ny(),oy(p[l],1,1,(()=>{p[l]=null})),ry()),~r?(i=p[r],i?i.p(e,a):(i=p[r]=h[r](e),i.c()),iy(i,1),i.m(n,null)):i=null),(!u||1&a)&&xb(s,e[0]),e[5]?g?g.p(e,a):(g=Rw(e),g.c(),g.m(t,c)):g&&(g.d(1),g=null),e[3]?v?(v.p(e,a),8&a&&iy(v,1)):(v=Nw(e),v.c(),iy(v,1),v.m(t,null)):v&&(ny(),oy(v,1,1,(()=>{v=null})),ry())},i(e){u||(iy(i),iy(v),u=!0)},o(e){oy(i),oy(v),u=!1},d(e){e&&db(t),~r&&p[r].d(),g&&g.d(),v&&v.d(),d=!1,f()}}}function Ew(e){let t,n,r;return n=new Oy({props:{name:e[2]}}),{c(){t=hb("div"),fy(n.$$.fragment),_b(t,"class","icon svelte-1w5zc52")},m(e,i){ub(e,t,i),hy(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.name=e[2]),n.$set(r)},i(e){r||(iy(n.$$.fragment,e),r=!0)},o(e){oy(n.$$.fragment,e),r=!1},d(e){e&&db(t),py(n)}}}function Aw(e){let t,n,r,i;return{c(){t=hb("div"),n=hb("img"),Fv(n.src,r=e[4])||_b(n,"src",r),_b(n,"alt",i=`${e[0]} logo`),_b(n,"class","svelte-1w5zc52"),_b(t,"class","logo svelte-1w5zc52")},m(e,r){ub(e,t,r),ob(t,n)},p(e,t){16&t&&!Fv(n.src,r=e[4])&&_b(n,"src",r),1&t&&i!==(i=`${e[0]} logo`)&&_b(n,"alt",i)},i:Rv,o:Rv,d(e){e&&db(t)}}}function Iw(e){let t,n;return{c(){t=hb("span"),n=mb(e[5]),_b(t,"class","value svelte-1w5zc52")},m(e,r){ub(e,t,r),ob(t,n)},p(e,t){32&t&&xb(n,e[5])},d(e){e&&db(t)}}}function Ow(e){let t,n,r;return n=new Oy({props:{name:e[3]}}),{c(){t=hb("div"),fy(n.$$.fragment),_b(t,"class","trailing svelte-1w5zc52")},m(e,i){ub(e,t,i),hy(n,t,null),r=!0},p(e,t){const r={};8&t&&(r.name=e[3]),n.$set(r)},i(e){r||(iy(n.$$.fragment,e),r=!0)},o(e){oy(n.$$.fragment,e),r=!1},d(e){e&&db(t),py(n)}}}function jw(e){let t,n,r;return n=new Oy({props:{name:e[2]}}),{c(){t=hb("div"),fy(n.$$.fragment),_b(t,"class","icon svelte-1w5zc52")},m(e,i){ub(e,t,i),hy(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.name=e[2]),n.$set(r)},i(e){r||(iy(n.$$.fragment,e),r=!0)},o(e){oy(n.$$.fragment,e),r=!1},d(e){e&&db(t),py(n)}}}function Zw(e){let t,n,r,i;return{c(){t=hb("div"),n=hb("img"),Fv(n.src,r=e[4])||_b(n,"src",r),_b(n,"alt",i=`${e[0]} logo`),_b(n,"class","svelte-1w5zc52"),_b(t,"class","logo svelte-1w5zc52")},m(e,r){ub(e,t,r),ob(t,n)},p(e,t){16&t&&!Fv(n.src,r=e[4])&&_b(n,"src",r),1&t&&i!==(i=`${e[0]} logo`)&&_b(n,"alt",i)},i:Rv,o:Rv,d(e){e&&db(t)}}}function Rw(e){let t,n;return{c(){t=hb("span"),n=mb(e[5]),_b(t,"class","value svelte-1w5zc52")},m(e,r){ub(e,t,r),ob(t,n)},p(e,t){32&t&&xb(n,e[5])},d(e){e&&db(t)}}}function Nw(e){let t,n,r;return n=new Oy({props:{name:e[3]}}),{c(){t=hb("div"),fy(n.$$.fragment),_b(t,"class","trailing svelte-1w5zc52")},m(e,i){ub(e,t,i),hy(n,t,null),r=!0},p(e,t){const r={};8&t&&(r.name=e[3]),n.$set(r)},i(e){r||(iy(n.$$.fragment,e),r=!0)},o(e){oy(n.$$.fragment,e),r=!1},d(e){e&&db(t),py(n)}}}function Pw(e){let t,n;const r=e[8].default,i=Uv(r,e,e[7],null),o=i||function(e){let t,n,r,i;const o=[Mw,Cw],a=[];function s(e,t){return e[6]?1:0}return t=s(e),n=a[t]=o[t](e),{c(){n.c(),r=vb()},m(e,n){a[t].m(e,n),ub(e,r,n),i=!0},p(e,i){let l=t;t=s(e),t===l?a[t].p(e,i):(ny(),oy(a[l],1,1,(()=>{a[l]=null})),ry(),n=a[t],n?n.p(e,i):(n=a[t]=o[t](e),n.c()),iy(n,1),n.m(r.parentNode,r))},i(e){i||(iy(n),i=!0)},o(e){oy(n),i=!1},d(e){e&&db(r),a[t].d(e)}}}(e);return{c(){t=hb("li"),o&&o.c(),_b(t,"class","svelte-1w5zc52")},m(e,r){ub(e,t,r),o&&o.m(t,null),n=!0},p(e,[t]){i?i.p&&(!n||128&t)&&qv(i,r,e,e[7],n?Gv(r,e[7],t,null):Xv(e[7]),null):o&&o.p&&(!n||127&t)&&o.p(e,n?t:-1)},i(e){n||(iy(o,e),n=!0)},o(e){oy(o,e),n=!1},d(e){e&&db(t),o&&o.d(e)}}}function Tw(e,t,n){let{$$slots:r={},$$scope:i}=t,{label:o}=t,{onClick:a=(()=>{})}=t,{leadingIcon:s}=t,{trailingIcon:l="chevron-right"}=t,{logo:c}=t,{value:u}=t,{link:d}=t;return e.$$set=e=>{"label"in e&&n(0,o=e.label),"onClick"in e&&n(1,a=e.onClick),"leadingIcon"in e&&n(2,s=e.leadingIcon),"trailingIcon"in e&&n(3,l=e.trailingIcon),"logo"in e&&n(4,c=e.logo),"value"in e&&n(5,u=e.value),"link"in e&&n(6,d=e.link),"$$scope"in e&&n(7,i=e.$$scope)},[o,a,s,l,c,u,d,i,r]}class Bw extends vy{constructor(e){super(),gy(this,e,Tw,Pw,Lv,{label:0,onClick:1,leadingIcon:2,trailingIcon:3,logo:4,value:5,link:6},Sw)}}function $w(e){return e.startsWith("http://")||e.startsWith("https://")}function Dw(e){return e.startsWith("data:image/")}function Lw(e){const{name:t,logo:n}=e;let{theme:r}=Hv(Xy);const i="light"===r?"dark":"light";if(r||(r=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),!n)return"getLogo"in e?e.getLogo()?.[r]??e.getLogo()?.[i]:void console.warn(`${t} does not have a logo.`);const o=n[r]??n[i];if($w(o.toString())||Dw(o.toString()))return o;console.warn(`${t} ${r} logo is not a supported image format.`)}function zw(e){ab(e,"svelte-1d8fcdl","section.svelte-1d8fcdl{display:flex;flex-direction:column;gap:var(--space-s)}")}function Fw(e,t,n){const r=e.slice();return r[4]=t[n],r}function Ww(e){let t,n,r,i,o;return n=new _y({props:{$$slots:{default:[Hw]},$$scope:{ctx:e}}}),i=new kw({props:{$$slots:{default:[Uw]},$$scope:{ctx:e}}}),{c(){t=hb("section"),fy(n.$$.fragment),r=gb(),fy(i.$$.fragment),_b(t,"class","svelte-1d8fcdl")},m(e,a){ub(e,t,a),hy(n,t,null),ob(t,r),hy(i,t,null),o=!0},p(e,t){const r={};130&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r);const o={};129&t&&(o.$$scope={dirty:t,ctx:e}),i.$set(o)},i(e){o||(iy(n.$$.fragment,e),iy(i.$$.fragment,e),o=!0)},o(e){oy(n.$$.fragment,e),oy(i.$$.fragment,e),o=!1},d(e){e&&db(t),py(n),py(i)}}}function Hw(e){let t;return{c(){t=mb(e[1])},m(e,n){ub(e,t,n)},p(e,n){2&n&&xb(t,e[1])},d(e){e&&db(t)}}}function Vw(e){let t,n;function r(){return e[3](e[4])}return t=new Bw({props:{label:e[4].name,onClick:r,leadingIcon:"wharf",logo:Lw(e[4])}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(n,i){e=n;const o={};1&i&&(o.label=e[4].name),1&i&&(o.onClick=r),1&i&&(o.logo=Lw(e[4])),t.$set(o)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function Uw(e){let t,n,r=ly(e[0]),i=[];for(let t=0;toy(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e{r=null})),ry())},i(e){n||(iy(r),n=!0)},o(e){oy(r),n=!1},d(e){e&&db(t),r&&r.d(e)}}}function Gw(e,t,n){let{chains:r}=t,{title:i}=t;const o=Bb();return e.$$set=e=>{"chains"in e&&n(0,r=e.chains),"title"in e&&n(1,i=e.title)},[r,i,o,e=>o("select",e.id)]}class qw extends vy{constructor(e){super(),gy(this,e,Gw,Yw,Lv,{chains:0,title:1},zw)}}function Xw(e){ab(e,"svelte-hwtk1p",".button.svelte-hwtk1p{--button-height:var(--space-2xl);cursor:pointer;display:flex;justify-content:center;align-items:center;gap:var(--space-2xs);height:var(--button-height);line-height:var(--button-height);text-decoration:none;text-align:center;border-radius:var(--border-radius-inner);font-size:var(--fs-1);font-weight:600;color:var(--button-color, var(--button-text-color));background:var(--button-background, var(--button-primary-background));border:none;box-shadow:var(--button-outline);flex:1}.button.svelte-hwtk1p:hover{background:var(--button-background-hover, var(--button-primary-background-hover));box-shadow:var(--button-outline-hover, var(--button-primary-outline-hover))}.button.svelte-hwtk1p:active{background:var(--button-background-active, var(--button-primary-background-active));box-shadow:var(--button-outline-active);color:var(--button-text-color-active)}.secondary.svelte-hwtk1p{--button-background:var(--button-secondary-background);--button-background-hover:var(--button-secondary-background-hover);--button-background-active:var(--button-secondary-background-active);--button-outline-hover:var(--button-secondary-outline-hover)}.outlined.svelte-hwtk1p{--button-background:transparent;--button-background-hover:transparent;--button-background-active:var(--button-outlined-background-active);--button-outline:var(--button-outlined-outline);--button-outline-hover:var(--button-outlined-outline-hover)}")}function Kw(e){let t,n,r,i,o,a,s=e[1]&&function(e){let t,n;return t=new Oy({props:{name:e[1]}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p:Rv,i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}(e);return{c(){t=hb("button"),s&&s.c(),n=gb(),r=hb("span"),r.textContent=`${e[0]}`,_b(t,"class","button "+e[3]+" svelte-hwtk1p"),t.autofocus=e[4]},m(l,c){ub(l,t,c),s&&s.m(t,null),ob(t,n),ob(t,r),i=!0,e[4]&&t.focus(),o||(a=bb(t,"click",e[2]),o=!0)},p(e,[t]){e[1]&&s.p(e,t)},i(e){i||(iy(s),i=!0)},o(e){oy(s),i=!1},d(e){e&&db(t),s&&s.d(),o=!1,a()}}}function Jw(e,t,n){let{data:r}=t;const{label:i,icon:o,onClick:a,variant:s="primary",autofocus:l}=r;return e.$$set=e=>{"data"in e&&n(5,r=e.data)},[i,o,a,s,l,r]}class Qw extends vy{constructor(e){super(),gy(this,e,Jw,Kw,Lv,{data:5},Xw)}}function e_(e){ab(e,"svelte-3b7p6","input.svelte-3b7p6{box-sizing:border-box;height:var(--space-2xl);border-radius:var(--border-radius-inner);border:1px solid var(--input-border-color);padding-inline:var(--space-m);color:var(--body-text-color);background-color:var(--body-background-color);font-size:var(--fs-1)}input.svelte-3b7p6::placeholder{font-size:var(--fs-1);color:var(--input-placeholder-color);font-style:italic}input.svelte-3b7p6:hover{border:1px solid transparent;outline:2px solid var(--input-border-color-hover);background-color:var(--input-background-focus)}input.svelte-3b7p6:focus-within{border:1px solid transparent;outline:2px solid var(--input-border-color-focus);background-color:var(--input-background-focus)}input.error.svelte-3b7p6{border:1px solid var(--error-color);color:var(--error-color)}input.error.svelte-3b7p6:focus-within{border:1px solid transparent;color:var(--body-text-color)}")}function t_(e){let t,n,r;return{c(){t=hb("input"),t.autofocus=e[3],_b(t,"type","text"),_b(t,"placeholder",e[1]),_b(t,"class","svelte-3b7p6"),Cb(t,"error",e[4])},m(i,o){ub(i,t,o),kb(t,e[0]),e[3]&&t.focus(),n||(r=[bb(t,"keyup",yb((function(){Dv(e[2])&&e[2].apply(this,arguments)}))),bb(t,"input",e[5])],n=!0)},p(n,[r]){e=n,8&r&&(t.autofocus=e[3]),2&r&&_b(t,"placeholder",e[1]),1&r&&t.value!==e[0]&&kb(t,e[0]),16&r&&Cb(t,"error",e[4])},i:Rv,o:Rv,d(e){e&&db(t),n=!1,$v(r)}}}function n_(e,t,n){let{value:r}=t,{placeholder:i}=t,{onKeyup:o}=t,{autofocus:a=!1}=t,{error:s=!1}=t;return e.$$set=e=>{"value"in e&&n(0,r=e.value),"placeholder"in e&&n(1,i=e.placeholder),"onKeyup"in e&&n(2,o=e.onKeyup),"autofocus"in e&&n(3,a=e.autofocus),"error"in e&&n(4,s=e.error)},[r,i,o,a,s,function(){r=this.value,n(0,r)}]}class r_ extends vy{constructor(e){super(),gy(this,e,n_,t_,Lv,{value:0,placeholder:1,onKeyup:2,autofocus:3,error:4},e_)}}function i_(e){let t,n;return t=new Dy({props:{title:e[0],details:e[1],icon:"alert"}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.title=e[0]),2&n&&(r.details=e[1]),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function o_(e,t,n){let{title:r}=t,{details:i}=t;return e.$$set=e=>{"title"in e&&n(0,r=e.title),"details"in e&&n(1,i=e.details)},[r,i]}class a_ extends vy{constructor(e){super(),gy(this,e,o_,i_,Lv,{title:0,details:1})}}function s_(e){ab(e,"svelte-13p224c","section.svelte-13p224c{display:flex;flex-direction:column;gap:var(--space-s)}p.loading.svelte-13p224c{margin:0;text-align:center;height:var(--space-4xl)}p.error.svelte-13p224c{margin:0;text-align:center;color:var(--error-color)}.input-group.svelte-13p224c{display:flex;flex-direction:column;gap:var(--space-m);margin-top:var(--space-s)}")}function l_(e,t,n){const r=e.slice();return r[17]=t[n],r}function c_(e){let t,n,r,i,o,a,s,l,c;function u(t){e[16](t)}t=new _y({props:{$$slots:{default:[h_]},$$scope:{ctx:e}}});let d={onKeyup:e[13],placeholder:"Account name",autofocus:!e[2],error:e[5]&&e[2]===e[3]};void 0!==e[2]&&(d.value=e[2]),i=new r_({props:d}),Lb.push((()=>dy(i,"value",u)));let f=e[5]&&p_(e);return l=new Qw({props:{data:{variant:"primary",onClick:e[12],label:e[8]("login.enter.lookup",{default:"Lookup Account"})}}}),{c(){fy(t.$$.fragment),n=gb(),r=hb("div"),fy(i.$$.fragment),a=gb(),f&&f.c(),s=gb(),fy(l.$$.fragment),_b(r,"class","input-group svelte-13p224c")},m(e,o){hy(t,e,o),ub(e,n,o),ub(e,r,o),hy(i,r,null),ob(r,a),f&&f.m(r,null),ob(r,s),hy(l,r,null),c=!0},p(e,n){const a={};1048578&n&&(a.$$scope={dirty:n,ctx:e}),t.$set(a);const c={};4&n&&(c.autofocus=!e[2]),44&n&&(c.error=e[5]&&e[2]===e[3]),!o&&4&n&&(o=!0,c.value=e[2],Ub((()=>o=!1))),i.$set(c),e[5]?f?f.p(e,n):(f=p_(e),f.c(),f.m(r,s)):f&&(f.d(1),f=null);const u={};256&n&&(u.data={variant:"primary",onClick:e[12],label:e[8]("login.enter.lookup",{default:"Lookup Account"})}),l.$set(u)},i(e){c||(iy(t.$$.fragment,e),iy(i.$$.fragment,e),iy(l.$$.fragment,e),c=!0)},o(e){oy(t.$$.fragment,e),oy(i.$$.fragment,e),oy(l.$$.fragment,e),c=!1},d(e){e&&(db(n),db(r)),py(t,e),py(i),f&&f.d(),py(l)}}}function u_(e){let t,n,r,i;return t=new _y({props:{$$slots:{default:[m_]},$$scope:{ctx:e}}}),r=new a_({props:{title:e[8]("login.select.no_accounts",{default:"No accounts found"}),details:e[8]("login.select.no_match",{default:"No accounts found matching {{publicKey}}",publicKey:e[0].metadata.publicKey})}}),{c(){fy(t.$$.fragment),n=gb(),fy(r.$$.fragment)},m(e,o){hy(t,e,o),ub(e,n,o),hy(r,e,o),i=!0},p(e,n){const i={};1048578&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i);const o={};256&n&&(o.title=e[8]("login.select.no_accounts",{default:"No accounts found"})),257&n&&(o.details=e[8]("login.select.no_match",{default:"No accounts found matching {{publicKey}}",publicKey:e[0].metadata.publicKey})),r.$set(o)},i(e){i||(iy(t.$$.fragment,e),iy(r.$$.fragment,e),i=!0)},o(e){oy(t.$$.fragment,e),oy(r.$$.fragment,e),i=!1},d(e){e&&db(n),py(t,e),py(r,e)}}}function d_(e){let t,n,r,i;return t=new _y({props:{$$slots:{default:[g_]},$$scope:{ctx:e}}}),r=new kw({props:{$$slots:{default:[b_]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment),n=gb(),fy(r.$$.fragment)},m(e,o){hy(t,e,o),ub(e,n,o),hy(r,e,o),i=!0},p(e,n){const i={};1048832&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i);const o={};1048640&n&&(o.$$scope={dirty:n,ctx:e}),r.$set(o)},i(e){i||(iy(t.$$.fragment,e),iy(r.$$.fragment,e),i=!0)},o(e){oy(t.$$.fragment,e),oy(r.$$.fragment,e),i=!1},d(e){e&&db(n),py(t,e),py(r,e)}}}function f_(e){let t,n,r=e[8]("loading",{default:"Loading..."})+"";return{c(){t=hb("p"),n=mb(r),_b(t,"class","loading svelte-13p224c")},m(e,r){ub(e,t,r),ob(t,n)},p(e,t){256&t&&r!==(r=e[8]("loading",{default:"Loading..."})+"")&&xb(n,r)},i:Rv,o:Rv,d(e){e&&db(t)}}}function h_(e){let t;return{c(){t=mb(e[1])},m(e,n){ub(e,t,n)},p(e,n){2&n&&xb(t,e[1])},d(e){e&&db(t)}}}function p_(e){let t,n,r,i,o=e[8]("login.enter.not_found",{default:"Unable to find account"})+"";return{c(){t=hb("p"),n=mb(o),r=gb(),i=mb(e[3]),_b(t,"class","error svelte-13p224c")},m(e,o){ub(e,t,o),ob(t,n),ob(t,r),ob(t,i)},p(e,t){256&t&&o!==(o=e[8]("login.enter.not_found",{default:"Unable to find account"})+"")&&xb(n,o),8&t&&xb(i,e[3])},d(e){e&&db(t)}}}function m_(e){let t;return{c(){t=mb(e[1])},m(e,n){ub(e,t,n)},p(e,n){2&n&&xb(t,e[1])},d(e){e&&db(t)}}}function g_(e){let t,n=e[8]("login.select.account")+"";return{c(){t=mb(n)},m(e,n){ub(e,t,n)},p(e,r){256&r&&n!==(n=e[8]("login.select.account")+"")&&xb(t,n)},d(e){e&&db(t)}}}function v_(e){let t,n;function r(){return e[15](e[17])}return t=new Bw({props:{label:String(e[17]),onClick:r}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(n,i){e=n;const o={};64&i&&(o.label=String(e[17])),64&i&&(o.onClick=r),t.$set(o)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function b_(e){let t,n,r=ly(e[6]),i=[];for(let t=0;toy(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e0?1:e[0].metadata.publicKey?2:e[4]?-1:3}return~(n=s(e))&&(r=a[n]=o[n](e)),{c(){t=hb("section"),r&&r.c(),_b(t,"class","svelte-13p224c")},m(e,r){ub(e,t,r),~n&&a[n].m(t,null),i=!0},p(e,[i]){let l=n;n=s(e),n===l?~n&&a[n].p(e,i):(r&&(ny(),oy(a[l],1,1,(()=>{a[l]=null})),ry()),~n?(r=a[n],r?r.p(e,i):(r=a[n]=o[n](e),r.c()),iy(r,1),r.m(t,null)):r=null)},i(e){i||(iy(r),i=!0)},o(e){oy(r),i=!1},d(e){e&&db(t),~n&&a[n].d()}}}function w_(e,t,n){let r,i;const{t:o}=$b("i18n");Vv(e,o,(e=>n(8,i=e)));let{client:a}=t,{walletPlugin:s}=t,{title:l}=t;const c=Bb();let u=Hy(!0);Vv(e,u,(e=>n(7,r=e)));let d,f,h="",p="",m=!1;async function g(){u.set(!0);try{const e=await a.v1.chain.get_account(h);e.account_name.equals(h)&&(n(4,d=e.account_name),n(6,f=e.permissions.map((t=>x.V5.from(`${e.account_name}@${t.perm_name}`))))),n(5,m=!1)}catch(e){n(5,m=!0)}finally{n(3,p=h),u.set(!1)}}Pb((async()=>{if(s.config.requiresPermissionSelect){const e=s.metadata.name,t=await a.call({path:"/v1/chain/get_account",params:{account_name:e}}),r=[],i=x.nh.from(s.metadata.publicKey).toString();t.permissions.forEach((t=>{const n=t.required_auth.keys,o=t.perm_name;n.find((e=>x.nh.from(e.key).toString()===i))&&r.push(x.V5.from(`${e}@${o}`))})),u.set(!1),n(6,f=r)}else s.config.requiresPermissionEntry&&(u.set(!1),n(6,f=[]))}));return e.$$set=e=>{"client"in e&&n(14,a=e.client),"walletPlugin"in e&&n(0,s=e.walletPlugin),"title"in e&&n(1,l=e.title)},[s,l,h,p,d,m,f,r,i,o,c,u,g,function(e){if("Enter"==e.code)return e.preventDefault(),g(),!1},a,e=>c("select",e),function(e){h=e,n(2,h)}]}class __ extends vy{constructor(e){super(),gy(this,e,w_,y_,Lv,{client:14,walletPlugin:0,title:1},s_)}}function x_(e){ab(e,"svelte-lwrp5l","section.svelte-lwrp5l{display:flex;flex-direction:column;gap:var(--space-s)}")}function k_(e,t,n){const r=e.slice();return r[4]=t[n],r[6]=n,r}function S_(e){let t,n,r,i,o;return n=new _y({props:{$$slots:{default:[C_]},$$scope:{ctx:e}}}),i=new kw({props:{$$slots:{default:[E_]},$$scope:{ctx:e}}}),{c(){t=hb("section"),fy(n.$$.fragment),r=gb(),fy(i.$$.fragment),_b(t,"class","svelte-lwrp5l")},m(e,a){ub(e,t,a),hy(n,t,null),ob(t,r),hy(i,t,null),o=!0},p(e,t){const r={};130&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r);const o={};129&t&&(o.$$scope={dirty:t,ctx:e}),i.$set(o)},i(e){o||(iy(n.$$.fragment,e),iy(i.$$.fragment,e),o=!0)},o(e){oy(n.$$.fragment,e),oy(i.$$.fragment,e),o=!1},d(e){e&&db(t),py(n),py(i)}}}function C_(e){let t;return{c(){t=mb(e[1])},m(e,n){ub(e,t,n)},p(e,n){2&n&&xb(t,e[1])},d(e){e&&db(t)}}}function M_(e){let t,n;return t=new Bw({props:{label:e[4].metadata.name,onClick:function(){return e[3](e[6])},leadingIcon:"wallet",logo:Lw(e[4].metadata)}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(n,r){e=n;const i={};1&r&&(i.label=e[4].metadata.name),1&r&&(i.logo=Lw(e[4].metadata)),t.$set(i)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function E_(e){let t,n,r=ly(e[0]),i=[];for(let t=0;toy(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e{r=null})),ry())},i(e){n||(iy(r),n=!0)},o(e){oy(r),n=!1},d(e){e&&db(t),r&&r.d(e)}}}function I_(e,t,n){let{wallets:r}=t,{title:i}=t;const o=Bb();return e.$$set=e=>{"wallets"in e&&n(0,r=e.wallets),"title"in e&&n(1,i=e.title)},[r,i,o,e=>o("select",e)]}class O_ extends vy{constructor(e){super(),gy(this,e,I_,A_,Lv,{wallets:0,title:1},x_)}}function j_(e){return"[object Date]"===Object.prototype.toString.call(e)}function Z_(e){return e<.5?4*e*e*e:.5*Math.pow(2*e-2,3)+1}function R_(e){const t=e-1;return t*t*t+1}function N_(e,t){if(e===t||e!=e)return()=>e;const n=typeof e;if(n!==typeof t||Array.isArray(e)!==Array.isArray(t))throw new Error("Cannot interpolate values of different type");if(Array.isArray(e)){const n=t.map(((t,n)=>N_(e[n],t)));return e=>n.map((t=>t(e)))}if("object"===n){if(!e||!t)throw new Error("Object cannot be null");if(j_(e)&&j_(t)){e=e.getTime();const n=(t=t.getTime())-e;return t=>new Date(e+t*n)}const n=Object.keys(t),r={};return n.forEach((n=>{r[n]=N_(e[n],t[n])})),e=>{const t={};return n.forEach((n=>{t[n]=r[n](e)})),t}}if("number"===n){const n=t-e;return t=>e+t*n}throw new Error(`Cannot interpolate ${n} values`)}function P_(e){ab(e,"svelte-1cxfvrd",'.loader.svelte-1cxfvrd.svelte-1cxfvrd{position:relative;display:grid;place-items:center;grid-template-areas:"stack" "text";gap:var(--space-m)}.logo.svelte-1cxfvrd.svelte-1cxfvrd{grid-area:stack;place-self:center;color:var(--body-text-color);width:var(--space-2xl);display:flex;align-items:center;justify-content:center}.logo.svelte-1cxfvrd img.svelte-1cxfvrd{width:100%;height:100%;object-fit:contain}.logo.svelte-1cxfvrd>svg{width:35%;height:35%}.text.svelte-1cxfvrd.svelte-1cxfvrd{grid-area:text;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:var(--space-4xs)}.text.svelte-1cxfvrd .label.svelte-1cxfvrd{font-size:var(--fs-2);font-weight:500;color:var(--body-text-color);margin:0}.text.svelte-1cxfvrd span.svelte-1cxfvrd{font-size:var(--fs-1);font-variant-numeric:tabular-nums;color:var(--body-text-color-variant)}svg.svelte-1cxfvrd.svelte-1cxfvrd{grid-area:stack;animation:2.5s linear infinite svelte-1cxfvrd-svg-animation}@keyframes svelte-1cxfvrd-svg-animation{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}circle.svelte-1cxfvrd.svelte-1cxfvrd{transform-origin:center}circle.spinner.svelte-1cxfvrd.svelte-1cxfvrd{stroke:var(--loading-circle-color)}circle.track.svelte-1cxfvrd.svelte-1cxfvrd{stroke:var(--loading-circle-track-color)}circle.animated.svelte-1cxfvrd.svelte-1cxfvrd{animation:svelte-1cxfvrd-dash 2.1s ease-in-out both infinite}@keyframes svelte-1cxfvrd-dash{0%{stroke-dashoffset:var(--circumference);transform:rotate(0)}50%,65%{stroke-dashoffset:70;transform:rotate(90deg)}100%{stroke-dashoffset:var(--circumference);transform:rotate(360deg)}}')}function T_(e){let t,n,r,i;const o=[$_,B_],a=[];return~(n=function(e,t){return $w(e[5])||Dw(e[5])?0:e[5]in My?1:-1}(e))&&(r=a[n]=o[n](e)),{c(){t=hb("div"),r&&r.c(),_b(t,"class","logo svelte-1cxfvrd")},m(e,r){ub(e,t,r),~n&&a[n].m(t,null),i=!0},p(e,t){r&&r.p(e,t)},i(e){i||(iy(r),i=!0)},o(e){oy(r),i=!1},d(e){e&&db(t),~n&&a[n].d()}}}function B_(e){let t,n;return t=new Oy({props:{name:e[5],size:"75%"}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p:Rv,i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function $_(e){let t,n;return{c(){t=hb("img"),Fv(t.src,n=e[5])||_b(t,"src",n),_b(t,"alt","loading logo"),_b(t,"class","svelte-1cxfvrd")},m(e,n){ub(e,t,n)},p:Rv,i:Rv,o:Rv,d(e){e&&db(t)}}}function D_(e){let t,n=e[1],r=L_(e);return{c(){r.c(),t=vb()},m(e,n){r.m(e,n),ub(e,t,n)},p(e,i){2&i&&Lv(n,n=e[1])?(r.d(1),r=L_(e),r.c(),r.m(t.parentNode,t)):r.p(e,i)},d(e){e&&db(t),r.d(e)}}}function L_(e){let t,n,r=H_(e[0])+"";return{c(){t=hb("span"),n=mb(r),_b(t,"class","svelte-1cxfvrd"),Cb(t,"label",!e[4])},m(e,r){ub(e,t,r),ob(t,n)},p(e,t){1&t&&r!==(r=H_(e[0])+"")&&xb(n,r)},d(e){e&&db(t)}}}function z_(e){let t,n,r,i,o,a,s,l,c,u=e[5]&&T_(e),d=e[4]&&function(e){let t;return{c(){t=hb("p"),t.textContent=`${e[4]}`,_b(t,"class","label svelte-1cxfvrd")},m(e,n){ub(e,t,n)},p:Rv,d(e){e&&db(t)}}}(e),f=e[0]&&D_(e);return{c(){t=hb("div"),n=pb("svg"),r=pb("circle"),i=pb("circle"),o=gb(),u&&u.c(),a=gb(),s=hb("div"),d&&d.c(),l=gb(),f&&f.c(),_b(r,"class","track svelte-1cxfvrd"),_b(r,"cx",e[6]),_b(r,"cy",e[6]),_b(r,"r",e[7]),_b(r,"stroke-width",W_-1),_b(r,"stroke-linecap","round"),_b(r,"stroke-dasharray",e[3]),_b(r,"stroke-dashoffset",0),_b(r,"fill","none"),_b(i,"class","spinner svelte-1cxfvrd"),_b(i,"cx",e[6]),_b(i,"cy",e[6]),_b(i,"r",e[7]),_b(i,"stroke-width",W_),_b(i,"stroke-linecap","round"),_b(i,"stroke-dasharray",e[3]),_b(i,"fill","none"),Sb(i,"--radius",e[7]),Sb(i,"--circumference",e[3]),Cb(i,"animated",e[2]),_b(n,"width",F_),_b(n,"height",F_),_b(n,"class","svelte-1cxfvrd"),Cb(n,"animated",e[2]),_b(s,"class","text svelte-1cxfvrd"),_b(t,"class","loader svelte-1cxfvrd")},m(e,h){ub(e,t,h),ob(t,n),ob(n,r),ob(n,i),ob(t,o),u&&u.m(t,null),ob(t,a),ob(t,s),d&&d.m(s,null),ob(s,l),f&&f.m(s,null),c=!0},p(e,[t]){(!c||8&t)&&_b(r,"stroke-dasharray",e[3]),(!c||8&t)&&_b(i,"stroke-dasharray",e[3]),(!c||8&t)&&Sb(i,"--circumference",e[3]),(!c||4&t)&&Cb(i,"animated",e[2]),(!c||4&t)&&Cb(n,"animated",e[2]),e[5]&&u.p(e,t),e[4]&&d.p(e,t),e[0]?f?f.p(e,t):(f=D_(e),f.c(),f.m(s,null)):f&&(f.d(1),f=null)},i(e){c||(iy(u),c=!0)},o(e){oy(u),c=!1},d(e){e&&db(t),u&&u.d(),d&&d.d(),f&&f.d()}}}let F_=100,W_=8;function H_(e){const t=e.getTime()-Date.now();return t>0?new Date(t).toISOString().slice(14,19):"00:00"}function V_(e,t,n){let r,i,o,a,s,{data:l={}}=t,{label:c,end:u,logo:d,loading:f=!0}=l,h=F_/2,p=h-W_,m=function(e,t={}){const n=Hy(e);let r,i=e;function o(o,a){if(null==e)return n.set(e=o),Promise.resolve();i=o;let s=r,l=!1,{delay:c=0,duration:u=400,easing:d=Nv,interpolate:f=N_}=Pv(Pv({},t),a);if(0===u)return s&&(s.abort(),s=null),n.set(e=i),Promise.resolve();const h=eb()+c;let p;return r=ib((t=>{if(tu?(n.set(e=o),!1):(n.set(e=p(d(r/u))),!0)})),r.promise}return{set:o,update:(t,n)=>o(t(i,e),n),subscribe:n.subscribe}}(2*Math.PI*p,{duration:500,easing:R_});return Vv(e,m,(e=>n(3,i=e))),Tb((()=>{s&&clearInterval(s)})),e.$$set=e=>{"data"in e&&n(9,l=e.data)},e.$$.update=()=>{2051&e.$$.dirty&&(s&&clearInterval(s),u&&(n(0,o=new Date(u)),n(11,s=setInterval((()=>{n(1,a=new Date(o).getTime()-Date.now()),a<=0&&(clearInterval(s),m.set(1e3),n(10,f=!1))}),200)))),1024&e.$$.dirty&&n(2,r=f)},[o,a,r,i,c,d,h,p,m,l,f,s]}class U_ extends vy{constructor(e){super(),gy(this,e,V_,z_,Lv,{data:9},P_)}}function Y_(e,{delay:t=0,duration:n=400,easing:r=Nv}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:e=>"opacity: "+e*i}}function G_(e,{delay:t=0,duration:n=400,easing:r=R_,x:i=0,y:o=0,opacity:a=0}={}){const s=getComputedStyle(e),l=+s.opacity,c="none"===s.transform?"":s.transform,u=l*(1-a),[d,f]=Jv(i),[h,p]=Jv(o);return{delay:t,duration:n,easing:r,css:(e,t)=>`\n\t\t\ttransform: ${c} translate(${(1-e)*d}${f}, ${(1-e)*h}${p});\n\t\t\topacity: ${l-u*t}`}}function q_(e){let t;const n=e[5].default,r=Uv(n,e,e[4],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,i){r&&r.p&&(!t||16&i)&&qv(r,n,e,e[4],t?Gv(n,e[4],i,null):Xv(e[4]),null)},i(e){t||(iy(r,e),t=!0)},o(e){oy(r,e),t=!1},d(e){r&&r.d(e)}}}function X_(e){let t,n,r;const i=e[5].default,o=Uv(i,e,e[4],null);return{c(){t=hb("div"),o&&o.c(),_b(t,"class","transition")},m(e,n){ub(e,t,n),o&&o.m(t,null),r=!0},p(t,n){e=t,o&&o.p&&(!r||16&n)&&qv(o,i,e,e[4],r?Gv(i,e[4],n,null):Xv(e[4]),null)},i(i){r||(iy(o,i),n||Vb((()=>{n=function(e,t,n){const r={direction:"in"};let i,o,a=t(e,n,r),s=!1,l=0;function c(){i&&Zb(e,i)}function u(){const{delay:t=0,duration:n=300,easing:r=Nv,tick:u=Rv,css:d}=a||ay;d&&(i=jb(e,0,1,n,t,r,d,l++)),u(0,1);const f=eb()+t,h=f+n;o&&o.abort(),s=!0,Vb((()=>Qb(e,!0,"start"))),o=ib((t=>{if(s){if(t>=h)return u(1,0),Qb(e,!0,"end"),c(),s=!1;if(t>=f){const e=r((t-f)/n);u(e,1-e)}}return s}))}let d=!1;return{start(){d||(d=!0,Zb(e),Dv(a)?(a=a(r),Jb().then(u)):u())},invalidate(){d=!1},end(){s&&(c(),s=!1)}}}(t,G_,{duration:200,x:e[1],y:e[0]}),n.start()})),r=!0)},o(e){oy(o,e),r=!1},d(e){e&&db(t),o&&o.d(e)}}}function K_(e){let t,n,r,i;const o=[X_,q_],a=[];return t=function(e,t){return e[2]?0:1}(e),n=a[t]=o[t](e),{c(){n.c(),r=vb()},m(e,n){a[t].m(e,n),ub(e,r,n),i=!0},p(e,[t]){n.p(e,t)},i(e){i||(iy(n),i=!0)},o(e){oy(n),i=!1},d(e){e&&db(r),a[t].d(e)}}}function J_(e,t,n){let r,i,o;Vv(e,Xy,(e=>n(6,o=e)));let{$$slots:a={},$$scope:s}=t,{direction:l}=t;const{animations:c}=o,u=["ltr","rtl"],d=e=>"rtl"===e||"btt"===e?100:-100;return e.$$set=e=>{"direction"in e&&n(3,l=e.direction),"$$scope"in e&&n(4,s=e.$$scope)},e.$$.update=()=>{8&e.$$.dirty&&n(1,[r,i]=l?u.includes(l)?[d(l),0]:[0,d(l)]:[0,0],r,(n(0,i),n(3,l)))},[i,r,c,l,s,a]}class Q_ extends vy{constructor(e){super(),gy(this,e,J_,K_,Lv,{direction:3})}}function ex(e){let t,n,r=e[3]("loading",{default:"Loading..."})+"";return{c(){t=hb("p"),n=mb(r)},m(e,r){ub(e,t,r),ob(t,n)},p(e,t){8&t&&r!==(r=e[3]("loading",{default:"Loading..."})+"")&&xb(n,r)},i:Rv,o:Rv,d(e){e&&db(t)}}}function tx(e){let t,n,r,i;const o=[ax,ox,ix,rx,nx],a=[];function s(e,t){return e[5]===e[0].selectWallet?0:e[5]===e[0].selectChain&&e[6]?1:e[5]===e[0].enterPermission&&e[7]&&e[8]?2:e[5]===e[0].selectPermission&&e[7]&&e[8]?3:4}return t=s(e),n=a[t]=o[t](e),{c(){n.c(),r=vb()},m(e,n){a[t].m(e,n),ub(e,r,n),i=!0},p(e,i){let l=t;t=s(e),t===l?a[t].p(e,i):(ny(),oy(a[l],1,1,(()=>{a[l]=null})),ry(),n=a[t],n?n.p(e,i):(n=a[t]=o[t](e),n.c()),iy(n,1),n.m(r.parentNode,r))},i(e){i||(iy(n),i=!0)},o(e){oy(n),i=!1},d(e){e&&db(r),a[t].d(e)}}}function nx(e){let t,n;return t=new U_({props:{data:{label:e[3]("login.complete",{default:"Complete the login using your selected wallet."})}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.data={label:e[3]("login.complete",{default:"Complete the login using your selected wallet."})}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function rx(e){let t,n;return t=new Q_({props:{direction:e[1],$$slots:{default:[sx]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.direction=e[1]),268435848&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function ix(e){let t,n;return t=new Q_({props:{direction:e[1],$$slots:{default:[lx]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.direction=e[1]),268435848&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function ox(e){let t,n;return t=new Q_({props:{direction:e[1],$$slots:{default:[cx]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.direction=e[1]),268435528&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function ax(e){let t,n;return t=new Q_({props:{direction:e[1],$$slots:{default:[ux]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.direction=e[1]),268435468&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function sx(e){let t,n;return t=new __({props:{client:e[7],walletPlugin:e[8],title:e[3]("login.select.account",{default:"Select an Account"})}}),t.$on("select",e[16]),t.$on("cancel",e[15]),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};128&n&&(r.client=e[7]),256&n&&(r.walletPlugin=e[8]),8&n&&(r.title=e[3]("login.select.account",{default:"Select an Account"})),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function lx(e){let t,n;return t=new __({props:{client:e[7],walletPlugin:e[8],title:e[3]("login.enter.account",{default:"Enter account name"})}}),t.$on("select",e[16]),t.$on("cancel",e[15]),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};128&n&&(r.client=e[7]),256&n&&(r.walletPlugin=e[8]),8&n&&(r.title=e[3]("login.enter.account",{default:"Enter account name"})),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function cx(e){let t,n;return t=new qw({props:{chains:e[6],title:e[3]("login.select.blockchain",{default:"Select a Blockchain"})}}),t.$on("select",e[14]),t.$on("cancel",e[18]),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};64&n&&(r.chains=e[6]),8&n&&(r.title=e[3]("login.select.blockchain",{default:"Select a Blockchain"})),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function ux(e){let t,n;return t=new O_({props:{wallets:e[2].walletPlugins,title:e[3]("login.select.wallet",{default:"Select a Wallet"})}}),t.$on("select",e[17]),t.$on("cancel",e[19]),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};4&n&&(r.wallets=e[2].walletPlugins),8&n&&(r.title=e[3]("login.select.wallet",{default:"Select a Wallet"})),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function dx(e){let t,n,r,i;const o=[tx,ex],a=[];function s(e,t){return e[4]&&e[2]?0:1}return t=s(e),n=a[t]=o[t](e),{c(){n.c(),r=vb()},m(e,n){a[t].m(e,n),ub(e,r,n),i=!0},p(e,[i]){let l=t;t=s(e),t===l?a[t].p(e,i):(ny(),oy(a[l],1,1,(()=>{a[l]=null})),ry(),n=a[t],n?n.p(e,i):(n=a[t]=o[t](e),n.c()),iy(n,1),n.m(r.parentNode,r))},i(e){i||(iy(n),i=!0)},o(e){oy(n),i=!1},d(e){e&&db(r),a[t].d(e)}}}function fx(e,t,n){let r,i,o,a,s,l,c,u,d,f;Vv(e,lw,(e=>n(21,r=e))),Vv(e,mw,(e=>n(1,i=e))),Vv(e,pw,(e=>n(22,o=e))),Vv(e,aw,(e=>n(2,a=e))),Vv(e,Jy,(e=>n(4,l=e)));const{t:h}=$b("i18n");Vv(e,h,(e=>n(3,s=e)));let p=!1;const m=Bb();var g;!function(e){e.done="done",e.enterPermission="enterPermission",e.selectChain="selectChain",e.selectPermission="selectPermission",e.selectWallet="selectWallet"}(g||(g={}));const v=Vy([aw,lw],(([e,t])=>{if(e&&void 0!==t.chainId)return e.chain?e.chain:e.chains.find((e=>e.id===t.chainId))})),b=Vy([v,aw],(([e,t])=>{if(t&&void 0!==e)return t.getClient(e)}));Vv(e,b,(e=>n(7,d=e)));const y=Vy([aw,lw],(([e,t])=>{if(e&&void 0!==t.walletPluginIndex)return e.walletPlugins[t.walletPluginIndex]}));Vv(e,y,(e=>n(8,f=e)));let w=Vy([aw,y],(([e,t])=>e&&t?t.config.supportedChains?e.chains.filter((e=>!t.config.supportedChains||t.config.supportedChains.includes(String(e.id)))):e.chains:[]));Vv(e,w,(e=>n(6,u=e)));const _=aw.subscribe((e=>{e&&(Kv(Jy,l.subtitle=s("login.title-app",{appName:e.appName,default:"Login to {{appName}}"}),l),e.chain&&Kv(lw,r.chainId=e.chain.id,r),1===e.chains.length&&Kv(lw,r.chainId=e.chains[0].id,r),e.permissionLevel&&Kv(lw,r.permissionLevel=e.permissionLevel,r),1===e.walletPlugins.length&&Kv(lw,r.walletPluginIndex=0,r),void 0!==e.walletPluginIndex&&Kv(lw,r.walletPluginIndex=e.walletPluginIndex,r))}));Pb((()=>{Kv(Jy,l.title=s("login.title",{default:"Login"}),l)})),Tb(_);const x=Vy([lw,y],(([e,t])=>{if(!t)return g.selectWallet;const{requiresChainSelect:n,requiresPermissionEntry:i,requiresPermissionSelect:o,supportedChains:s}=t.config;return!e.chainId&&s&&1===s.length?(Kv(lw,r.chainId=s[0],r),g.selectPermission):!e.chainId&&a&&a.chain?(Kv(lw,r.chainId=a?.chain.id,r),g.selectPermission):!e.chainId&&n?g.selectChain:!e.permissionLevel&&o?g.selectPermission:!e.permissionLevel&&i?g.enterPermission:void C()}));Vv(e,x,(e=>n(5,c=e)));const k=()=>{Kv(lw,r.chainId=void 0,r),Kv(pw,o=S,o),Kv(mw,i="ltr",i)},S=()=>{Kv(lw,r.walletPluginIndex=void 0,r),Kv(pw,o=void 0,o),Kv(mw,i="ltr",i)},C=()=>{p||(p=!0,m("complete",r),pw.set(void 0),Gy.set(!1))};return[g,i,a,s,l,c,u,d,f,h,b,y,w,x,e=>{Kv(lw,r.chainId=e.detail,r),Kv(pw,o=k,o),Kv(mw,i="rtl",i)},k,e=>{Kv(lw,r.permissionLevel=e.detail,r),Kv(pw,o=void 0,o),Kv(mw,i="rtl",i)},e=>{Kv(pw,o=S,o),Kv(lw,r.walletPluginIndex=e.detail,r),Kv(mw,i="rtl",i)},S,()=>{m("cancel")}]}class hx extends vy{constructor(e){super(),gy(this,e,fx,dx,Lv,{})}}function px(e){ab(e,"svelte-1m2zvm","div.svelte-1m2zvm{flex:1;display:flex;justify-content:space-between;gap:var(--space-xs)}")}function mx(e){let t,n;const r=e[1].default,i=Uv(r,e,e[0],null);return{c(){t=hb("div"),i&&i.c(),_b(t,"class","svelte-1m2zvm")},m(e,r){ub(e,t,r),i&&i.m(t,null),n=!0},p(e,[t]){i&&i.p&&(!n||1&t)&&qv(i,r,e,e[0],n?Gv(r,e[0],t,null):Xv(e[0]),null)},i(e){n||(iy(i,e),n=!0)},o(e){oy(i,e),n=!1},d(e){e&&db(t),i&&i.d(e)}}}function gx(e,t,n){let{$$slots:r={},$$scope:i}=t;return e.$$set=e=>{"$$scope"in e&&n(0,i=e.$$scope)},[i,r]}class vx extends vy{constructor(e){super(),gy(this,e,gx,mx,Lv,{},px)}}function bx(e){let t,n,r,i;return t=new Qw({props:{data:{variant:"outlined",label:e[0]("decline",{default:"Decline"}),onClick:e[3],icon:"close"}}}),r=new Qw({props:{data:{variant:"primary",label:e[0]("accept",{default:"Accept"}),onClick:e[4],icon:"check",autofocus:!0}}}),{c(){fy(t.$$.fragment),n=gb(),fy(r.$$.fragment)},m(e,o){hy(t,e,o),ub(e,n,o),hy(r,e,o),i=!0},p(e,n){const i={};1&n&&(i.data={variant:"outlined",label:e[0]("decline",{default:"Decline"}),onClick:e[3],icon:"close"}),t.$set(i);const o={};1&n&&(o.data={variant:"primary",label:e[0]("accept",{default:"Accept"}),onClick:e[4],icon:"check",autofocus:!0}),r.$set(o)},i(e){i||(iy(t.$$.fragment,e),iy(r.$$.fragment,e),i=!0)},o(e){oy(t.$$.fragment,e),oy(r.$$.fragment,e),i=!1},d(e){e&&db(n),py(t,e),py(r,e)}}}function yx(e){let t,n;return t=new vx({props:{$$slots:{default:[bx]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,[n]){const r={};33&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function wx(e,t,n){let r;const{t:i}=$b("i18n");Vv(e,i,(e=>n(0,r=e)));const o=Bb();return[r,i,o,()=>o("cancel"),()=>o("complete")]}class _x extends vy{constructor(e){super(),gy(this,e,wx,yx,Lv,{})}}function xx(e){ab(e,"svelte-1lmgxnd",".asset.svelte-1lmgxnd.svelte-1lmgxnd{text-align:center}.asset.svelte-1lmgxnd>.svelte-1lmgxnd{margin:0;line-height:1.5}.value.svelte-1lmgxnd.svelte-1lmgxnd{font-size:var(--fs-2);font-weight:600;color:var(--body-text-color)}.label.svelte-1lmgxnd.svelte-1lmgxnd{font-size:var(--fs-0);font-weight:400;color:var(--body-text-color-variant)}")}function kx(e){let t,n,r,i,o,a,s=e[0].value+"",l=e[0].label+"";return{c(){t=hb("div"),n=hb("p"),r=mb(s),i=gb(),o=hb("p"),a=mb(l),_b(n,"class","value svelte-1lmgxnd"),_b(o,"class","label svelte-1lmgxnd"),_b(t,"class","asset svelte-1lmgxnd")},m(e,s){ub(e,t,s),ob(t,n),ob(n,r),ob(t,i),ob(t,o),ob(o,a)},p(e,t){1&t&&s!==(s=e[0].value+"")&&xb(r,s),1&t&&l!==(l=e[0].label+"")&&xb(a,l)},d(e){e&&db(t)}}}function Sx(e){let t,n=e[0]&&kx(e);return{c(){n&&n.c(),t=vb()},m(e,r){n&&n.m(e,r),ub(e,t,r)},p(e,[r]){e[0]?n?n.p(e,r):(n=kx(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:Rv,o:Rv,d(e){e&&db(t),n&&n.d(e)}}}function Cx(e,t,n){let{data:r={label:"[[Unknown Label]]",value:"[[Unknown Value]]"}}=t;return e.$$set=e=>{"data"in e&&n(0,r=e.data)},[r]}class Mx extends vy{constructor(e){super(),gy(this,e,Cx,Sx,Lv,{data:0},xx)}}function Ex(e){ab(e,"svelte-1bils14","button.svelte-1bils14{cursor:pointer;display:block;width:300px;height:65px;border-radius:12px;font-size:16px;font-weight:600;color:var(--button-text-color);background-color:var(--button-tertiary-color);border:none;box-shadow:none;margin:27px auto 0}")}function Ax(e){let t,n,r,i,o=e[0]("close",{default:"Close"})+"";return{c(){t=hb("button"),n=mb(o),_b(t,"class","svelte-1bils14")},m(o,a){ub(o,t,a),ob(t,n),r||(i=bb(t,"click",e[3]),r=!0)},p(e,[t]){1&t&&o!==(o=e[0]("close",{default:"Close"})+"")&&xb(n,o)},i:Rv,o:Rv,d(e){e&&db(t),r=!1,i()}}}function Ix(e,t,n){let r;const{t:i}=$b("i18n");Vv(e,i,(e=>n(0,r=e)));const o=Bb();return[r,i,o,()=>o("complete")]}class Ox extends vy{constructor(e){super(),gy(this,e,Ix,Ax,Lv,{},Ex)}}function jx(e){ab(e,"svelte-785ja0",".button.svelte-785ja0{--button-height:var(--space-2xl);cursor:pointer;display:flex;justify-content:center;align-items:center;gap:var(--space-2xs);height:var(--button-height);line-height:var(--button-height);text-decoration:none;text-align:center;border-radius:var(--border-radius-inner);font-size:var(--fs-1);font-weight:600;color:var(--button-color, var(--button-text-color));background:var(--button-background, var(--button-primary-background));border:none;box-shadow:var(--button-outline);flex:1}.button.svelte-785ja0:hover{background:var(--button-background-hover, var(--button-primary-background-hover));box-shadow:var(--button-outline-hover, var(--button-primary-outline-hover))}.button.svelte-785ja0:active{background:var(--button-background-active, var(--button-primary-background-active));box-shadow:var(--button-outline-active);color:var(--button-text-color-active)}.secondary.svelte-785ja0{--button-background:var(--button-secondary-background);--button-background-hover:var(--button-secondary-background-hover);--button-background-active:var(--button-secondary-background-active);--button-outline-hover:var(--button-secondary-outline-hover)}.outlined.svelte-785ja0{--button-background:transparent;--button-background-hover:transparent;--button-background-active:var(--button-outlined-background-active);--button-outline:var(--button-outlined-outline);--button-outline-hover:var(--button-outlined-outline-hover)}a.svelte-785ja0{align-self:stretch}")}function Zx(e){let t,n,r,i,o=e[3]&&function(e){let t,n;return t=new Oy({props:{name:e[3]}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p:Rv,i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}(e);return{c(){var i;t=hb("a"),o&&o.c(),n=gb(),r=hb("span"),r.textContent=`${e[2]}`,_b(t,"class",(null==(i=e[5])?"":i)+" svelte-785ja0"),_b(t,"href",e[1]),_b(t,"target",e[4]),_b(t,"rel","noreferrer"),Cb(t,"button",e[0])},m(e,a){ub(e,t,a),o&&o.m(t,null),ob(t,n),ob(t,r),i=!0},p(e,[t]){e[3]&&o.p(e,t)},i(e){i||(iy(o),i=!0)},o(e){oy(o),i=!1},d(e){e&&db(t),o&&o.d()}}}function Rx(e,t,n){let{data:r}=t,{button:i=!0,href:o,label:a,icon:s,target:l,variant:c="outlined"}=r;return e.$$set=e=>{"data"in e&&n(6,r=e.data)},[i,o,a,s,l,c,r]}class Nx extends vy{constructor(e){super(),gy(this,e,Rx,Zx,Lv,{data:6},jx)}}var Px={L:1,M:0,Q:3,H:2},Tx=1,Bx=2,$x=4,Dx=8;class Lx{constructor(e){this.mode=$x,this.data=e}getLength(){return this.data.length}write(e){for(let t=0;t>>7-e%8&1)}put(e,t){for(let n=0;n>>t-n-1&1))}getLengthInBits(){return this.length}putBit(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}}const Fx={glog:function(e){if(e<1)throw new Error("glog("+e+")");return Fx.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return Fx.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(let e=0;e<8;e++)Fx.EXP_TABLE[e]=1<=0;)t^=Qx.G15<=0;)t^=Qx.G18<>>=1;return t},getPatternPosition:function(e){return Qx.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case Vx:return(t+n)%2==0;case Ux:return t%2==0;case Yx:return n%3==0;case Gx:return(t+n)%3==0;case qx:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case Xx:return t*n%2+t*n%3==0;case Kx:return(t*n%2+t*n%3)%2==0;case Jx:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){let t=new Wx([1],0);for(let n=0;n5&&(n+=3+o-5)}for(let r=0;r=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=ek.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)}setupPositionProbePattern(e,t){for(let n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(let r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+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)}getBestMaskPattern(){let e=0,t=0;for(let n=0;n<8;n++){this.makeImpl(!0,n);const r=Qx.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t}setupTimingPattern(){for(let e=8;e>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(let n=0;n<18;n++){const r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}}setupTypeInfo(e,t){const n=this.errorCorrectLevel<<3|t,r=Qx.getBCHTypeInfo(n);for(let t=0;t<15;t++){const n=!e&&1==(r>>t&1);t<6?this.modules[t][8]=n:t<8?this.modules[t+1][8]=n:this.modules[this.moduleCount-15+t][8]=n}for(let t=0;t<15;t++){const n=!e&&1==(r>>t&1);t<8?this.modules[8][this.moduleCount-t-1]=n:t<9?this.modules[8][15-t-1+1]=n:this.modules[8][15-t-1]=n}this.modules[this.moduleCount-8][8]=!e}mapData(e,t){let n=-1,r=this.moduleCount-1,i=7,o=0;for(let a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(let n=0;n<2;n++)if(null==this.modules[r][a-n]){let s=!1;o>>i&1));Qx.getMask(t,r,a-n)&&(s=!s),this.modules[r][a-n]=s,i--,-1==i&&(o++,i=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}}static createData(e,t,n){const r=Hx.getRSBlocks(e,t),i=new zx;for(let t=0;t8*o)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+8*o+")");for(i.getLengthInBits()+4<=8*o&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*o)&&(i.put(ek.PAD0,8),!(i.getLengthInBits()>=8*o));)i.put(ek.PAD1,8);return ek.createBytes(i,r)}static createBytes(e,t){let n=0,r=0,i=0;const o=new Array(t.length),a=new Array(t.length);for(let s=0;s=0?d.get(t):0}}let s=0;for(let e=0;e.svelte-vj0cjm{grid-area:stack}.check.svelte-vj0cjm.svelte-vj0cjm{background:var(--body-background-color)}")}function nk(e){let t,n,r,i,o,a,s,l,c,u,d,f,h,p,m=e[3]&&rk(e),g=e[3]&&ik(e);l=new Oy({props:{name:"copy",size:"var(--space-m)"}});let v=e[2]&&ok();return{c(){t=hb("div"),m&&m.c(),n=gb(),r=hb("div"),g&&g.c(),i=gb(),o=hb("button"),a=hb("div"),s=hb("div"),fy(l.$$.fragment),c=gb(),v&&v.c(),u=gb(),d=hb("div"),d.innerHTML='Copy to clipboard',_b(s,"class","svelte-vj0cjm"),_b(a,"class","icon svelte-vj0cjm"),_b(o,"class","copy svelte-vj0cjm"),_b(r,"class","button-group svelte-vj0cjm"),_b(t,"class","wrapper svelte-vj0cjm")},m(b,y){ub(b,t,y),m&&m.m(t,null),ob(t,n),ob(t,r),g&&g.m(r,null),ob(r,i),ob(r,o),ob(o,a),ob(a,s),hy(l,s,null),ob(a,c),v&&v.m(a,null),ob(o,u),ob(o,d),f=!0,h||(p=bb(o,"click",e[11]),h=!0)},p(e,o){e[3]?m?m.p(e,o):(m=rk(e),m.c(),m.m(t,n)):m&&(m.d(1),m=null),e[3]?g?(g.p(e,o),8&o&&iy(g,1)):(g=ik(e),g.c(),iy(g,1),g.m(r,i)):g&&(ny(),oy(g,1,1,(()=>{g=null})),ry()),e[2]?v?4&o&&iy(v,1):(v=ok(),v.c(),iy(v,1),v.m(a,null)):v&&(ny(),oy(v,1,1,(()=>{v=null})),ry())},i(e){f||(iy(g),iy(l.$$.fragment,e),iy(v),f=!0)},o(e){oy(g),oy(l.$$.fragment,e),oy(v),f=!1},d(e){e&&db(t),m&&m.d(),g&&g.d(),py(l),v&&v.d(),h=!1,p()}}}function rk(e){let t,n,r,i,o,a;return{c(){t=hb("div"),n=gb(),r=hb("dialog"),i=hb("button"),_b(t,"class","main qr svelte-vj0cjm"),_b(i,"class","qr svelte-vj0cjm"),_b(r,"class","svelte-vj0cjm")},m(s,l){var c;ub(s,t,l),t.innerHTML=e[3],ub(s,n,l),ub(s,r,l),ob(r,i),i.innerHTML=e[3],e[10](r),o||(a=[bb(i,"click",e[6]),bb(r,"click",wb(e[7])),bb(r,"keydown",(c=yb(e[8]),function(e){return e.stopPropagation(),c.call(this,e)}),!0)],o=!0)},p(e,n){8&n&&(t.innerHTML=e[3]),8&n&&(i.innerHTML=e[3])},d(i){i&&(db(t),db(n),db(r)),e[10](null),o=!1,$v(a)}}}function ik(e){let t,n,r,i,o,a,s;return n=new Oy({props:{name:"expand",size:"var(--space-m)"}}),{c(){t=hb("button"),fy(n.$$.fragment),r=gb(),i=hb("div"),i.innerHTML='Expand QR code',_b(t,"class","expand svelte-vj0cjm")},m(l,c){ub(l,t,c),hy(n,t,null),ob(t,r),ob(t,i),o=!0,a||(s=bb(t,"click",e[5]),a=!0)},p:Rv,i(e){o||(iy(n.$$.fragment,e),o=!0)},o(e){oy(n.$$.fragment,e),o=!1},d(e){e&&db(t),py(n),a=!1,s()}}}function ok(e){let t,n,r,i;return n=new Oy({props:{name:"check",size:"var(--space-m)"}}),{c(){t=hb("div"),fy(n.$$.fragment),_b(t,"class","check svelte-vj0cjm")},m(e,r){ub(e,t,r),hy(n,t,null),i=!0},i(e){i||(iy(n.$$.fragment,e),e&&Vb((()=>{i&&(r||(r=sy(t,Y_,{duration:180,easing:Z_},!0)),r.run(1))})),i=!0)},o(e){oy(n.$$.fragment,e),e&&(r||(r=sy(t,Y_,{duration:180,easing:Z_},!1)),r.run(0)),i=!1},d(e){e&&db(t),py(n),e&&r&&r.end()}}}function ak(e){let t,n,r=e[0]&&nk(e);return{c(){r&&r.c(),t=vb()},m(e,i){r&&r.m(e,i),ub(e,t,i),n=!0},p(e,[n]){e[0]?r?(r.p(e,n),1&n&&iy(r,1)):(r=nk(e),r.c(),iy(r,1),r.m(t.parentNode,t)):r&&(ny(),oy(r,1,1,(()=>{r=null})),ry())},i(e){n||(iy(r),n=!0)},o(e){oy(r),n=!1},d(e){e&&db(t),r&&r.d(e)}}}function sk(e,t,n){let r,i,{data:o=""}=t,a=!1,s=!1;const l=Hy();Vv(e,l,(e=>n(3,r=e))),Pb((()=>{try{l.set(function(e,t="L",n=-1){const r=new ek(n,Px[t]),i=[];r.addData(e),r.make();const o=r.modules,a=o.length;for(const[e,t]of o.entries()){let n;for(const[r,o]of t.entries())o?(n||(n={x:r,y:e,width:0,height:1}),n.width++):(n&&n.width>0&&i.push(n),n=void 0);n&&n.width>0&&i.push(n)}const s=[``];for(const{x:e,y:t,width:n,height:r}of i)s.push(``);return s.push(""),s.join("")}(o))}catch(e){console.error("Error rendering QR code",e)}}));const c=()=>{i.close(),a=!1};function u(e){navigator.clipboard&&(navigator.clipboard.writeText(e),n(2,s=!0),setTimeout((()=>n(2,s=!1)),1200))}return e.$$set=e=>{"data"in e&&n(0,o=e.data)},[o,i,s,r,l,()=>{a?c():(a=!0,i.showModal())},c,function(e){var t=i.getBoundingClientRect();t.top<=e.clientY&&e.clientY<=t.top+t.height&&t.left<=e.clientX&&e.clientX<=t.left+t.width||c()},function(e){"Escape"===e.key&&c()},u,function(e){Lb[e?"unshift":"push"]((()=>{i=e,n(1,i)}))},()=>u(o)]}ek.PAD0=236,ek.PAD1=17;class lk extends vy{constructor(e){super(),gy(this,e,sk,ak,Lv,{data:0},tk)}}function ck(e){ab(e,"svelte-1gpx2bs",'.wrapper.svelte-1gpx2bs{position:relative;display:flex;display:grid;background-color:var(--text-area-background);border-radius:var(--border-radius-inner);overflow:hidden}textarea.svelte-1gpx2bs{--rows:9;flex:1;color:var(--text-area-text-color);background-color:var(--text-area-background);border:none;font-size:var(--fs-0);font-weight:400;line-height:1.5;resize:none;opacity:0.75;height:calc(var(--fs-0) * 1.5 * var(--rows) - var(--fs-0) * 1.5 * 0.5);border-radius:inherit;padding-inline-start:var(--space-m);padding-block-start:var(--space-m)}.wrapper.svelte-1gpx2bs::before,.wrapper.svelte-1gpx2bs::after{content:"";display:block;position:absolute;z-index:2;width:100%;height:var(--space-l);background:linear-gradient(var(--deg), transparent, black 100%)}.wrapper.svelte-1gpx2bs::before{--deg:0;top:0;opacity:var(--top-shadow-opacity, 0)}.wrapper.svelte-1gpx2bs::after{--deg:180deg;bottom:0;opacity:var(--bottom-shadow-opacity, 0)}')}function uk(e){let t,n,r,i,o;return{c(){t=hb("div"),n=hb("textarea"),n.readOnly=!0,n.value=r=e[0].content,_b(n,"class","svelte-1gpx2bs"),_b(t,"class","wrapper svelte-1gpx2bs")},m(r,a){ub(r,t,a),ob(t,n),e[4](n),e[5](t),i||(o=bb(n,"scroll",e[3]),i=!0)},p(e,[t]){1&t&&r!==(r=e[0].content)&&(n.value=r)},i:Rv,o:Rv,d(n){n&&db(t),e[4](null),e[5](null),i=!1,o()}}}function dk(e,t,n){let r,i,{data:o={}}=t;return Pb((()=>{let e=.2*(1-i.scrollTop/(i.scrollHeight-i.clientHeight));r.style.setProperty("--bottom-shadow-opacity",e)})),e.$$set=e=>{"data"in e&&n(0,o=e.data)},[o,r,i,function(e){let t=e.target.scrollHeight-e.target.clientHeight,n=e.target.scrollTop/t,i=.2*n,o=.2*(1-n);r.style.setProperty("--top-shadow-opacity",i),r.style.setProperty("--bottom-shadow-opacity",o)},function(e){Lb[e?"unshift":"push"]((()=>{i=e,n(2,i)}))},function(e){Lb[e?"unshift":"push"]((()=>{r=e,n(1,r)}))}]}class fk extends vy{constructor(e){super(),gy(this,e,dk,uk,Lv,{data:0},ck)}}function hk(e){ab(e,"svelte-1kd5uy1",".prompt.svelte-1kd5uy1{display:flex;flex-direction:column;gap:var(--space-m);gap:var(--space-l)}.text.svelte-1kd5uy1{display:flex;flex-direction:column;gap:var(--space-s);text-align:center}")}function pk(e,t,n){const r=e.slice();return r[6]=t[n],r}function mk(e){let t,n=e[0]?.args.title+"";return{c(){t=mb(n)},m(e,n){ub(e,t,n)},p(e,r){1&r&&n!==(n=e[0]?.args.title+"")&&xb(t,n)},d(e){e&&db(t)}}}function gk(e){let t,n=e[0]?.args.body+"";return{c(){t=mb(n)},m(e,n){ub(e,t,n)},p(e,r){1&r&&n!==(n=e[0]?.args.body+"")&&xb(t,n)},d(e){e&&db(t)}}}function vk(e){let t,n,r;const i=[e[6].props];var o=e[6].component;function a(e,t){let n={};if(void 0!==t&&2&t)n=cy(i,[uy(e[6].props)]);else for(let e=0;e{py(e,1)})),ry()}o?(t=Eb(o,a(e,r)),t.$on("complete",e[4]),t.$on("cancel",e[5]),fy(t.$$.fragment),iy(t.$$.fragment,1),hy(t,n.parentNode,n)):t=null}else if(o){const n=2&r?cy(i,[uy(e[6].props)]):{};t.$set(n)}},i(e){r||(t&&iy(t.$$.fragment,e),r=!0)},o(e){t&&oy(t.$$.fragment,e),r=!1},d(e){e&&db(n),t&&py(t,e)}}}function bk(e){let t,n,r,i,o,a,s;r=new _y({props:{$$slots:{default:[mk]},$$scope:{ctx:e}}}),o=new Cy({props:{$$slots:{default:[gk]},$$scope:{ctx:e}}});let l=ly(e[1]),c=[];for(let t=0;toy(c[e],1,1,(()=>{c[e]=null}));return{c(){t=hb("div"),n=hb("div"),fy(r.$$.fragment),i=gb(),fy(o.$$.fragment),a=gb();for(let e=0;en(0,r=e)));const o=Vy(iw,(e=>{const t=[];return e&&e.args.elements.forEach((e=>{switch(e.type){case"accept":t.push({component:_x,props:{data:e.data}});break;case"asset":t.push({component:Mx,props:{data:e.data}});break;case"close":t.push({component:Ox,props:{label:e.label}});break;case"link":t.push({component:Nx,props:{data:e.data}});break;case"qr":t.push({component:lk,props:{data:e.data}});break;case"countdown":t.push({component:U_,props:{data:e.data}});break;case"textarea":t.push({component:fk,props:{data:e.data}});break;case"button":t.push({component:Qw,props:{data:e.data}});break;default:throw new Error(`Unknown element type: ${e.type}`)}})),t}));Vv(e,o,(e=>n(1,i=e)));const a=Bb();return[r,i,o,a,()=>a("complete"),()=>a("cancel")]}class wk extends vy{constructor(e){super(),gy(this,e,yk,bk,Lv,{},hk)}}var _k="1.2.0";function xk(e){ab(e,"svelte-tj2pg7","div.svelte-tj2pg7{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-m)}svg.svelte-tj2pg7{height:auto;width:100%;max-width:200px}")}function kk(e){let t,n,r,i,o,a,s,l,c,u,d,f,h;return{c(){t=pb("svg"),n=pb("path"),r=pb("path"),i=pb("path"),o=pb("path"),a=pb("path"),s=pb("path"),l=pb("path"),c=pb("path"),u=pb("path"),d=pb("path"),f=pb("path"),h=pb("path"),_b(n,"d","M273.403 84.085C273.403 83.4185 272.851 82.8783 272.171 82.8783H265.007C264.327 82.8783 263.775 83.4185 263.775 84.085V106.927C263.775 110.163 263.082 112.365 261.908 113.745C260.77 115.083 259.014 115.841 256.4 115.841C253.723 115.841 251.923 115.078 250.76 113.737C249.564 112.357 248.859 110.158 248.859 106.927V96.1519C248.859 95.4854 248.307 94.9452 247.627 94.9452H240.408C239.727 94.9452 239.175 95.4854 239.175 96.1519V106.927C239.175 110.16 238.474 112.36 237.286 113.74C236.131 115.08 234.345 115.841 231.689 115.841C229.131 115.841 227.36 115.114 226.172 113.816C225.018 112.514 224.315 110.304 224.315 106.927V84.085C224.315 83.4185 223.763 82.8783 223.082 82.8783H215.863C215.183 82.8783 214.631 83.4185 214.631 84.085V107.148C214.631 112.616 216.054 116.982 219.088 120.045C222.122 123.107 226.385 124.559 231.689 124.559C234.557 124.559 237.131 124.116 239.384 123.194L239.394 123.19C241.185 122.439 242.729 121.465 244.007 120.261C245.263 121.467 246.796 122.44 248.585 123.19L248.609 123.2C250.927 124.115 253.531 124.559 256.4 124.559C261.699 124.559 265.947 123.129 268.946 120.1C271.982 117.036 273.403 112.65 273.403 107.148V84.085Z"),_b(n,"fill","#494E62"),_b(r,"d","M326.457 84.085C326.457 83.4185 325.905 82.8783 325.224 82.8783H318.005C317.325 82.8783 316.773 83.4185 316.773 84.085V98.8619H299.136V84.085C299.136 83.4185 298.584 82.8783 297.904 82.8783H290.685C290.004 82.8783 289.452 83.4185 289.452 84.085V122.8C289.452 123.466 290.004 124.006 290.685 124.006H297.904C298.584 124.006 299.136 123.466 299.136 122.8V107.414H316.773V122.8C316.773 123.466 317.325 124.006 318.005 124.006H325.224C325.905 124.006 326.457 123.466 326.457 122.8V84.085Z"),_b(r,"fill","#494E62"),_b(i,"fill-rule","evenodd"),_b(i,"clip-rule","evenodd"),_b(i,"d","M378.176 124.006C378.857 124.006 379.408 123.466 379.408 122.8V101.341C379.408 97.4001 378.66 93.9713 377.103 91.1039C375.588 88.2098 373.417 86.0002 370.597 84.5155C367.796 83.0409 364.552 82.3252 360.906 82.3252C357.26 82.3252 354.016 83.0409 351.215 84.5155C348.395 86.0002 346.206 88.2088 344.655 91.1009L344.652 91.1063C343.133 93.9728 342.404 97.4004 342.404 101.341V122.8C342.404 123.466 342.955 124.006 343.636 124.006H350.744C351.425 124.006 351.977 123.466 351.977 122.8V114.051H369.724V122.8C369.724 123.466 370.276 124.006 370.957 124.006H378.176ZM367.395 93.4304L367.404 93.4391C368.88 94.9405 369.724 97.2793 369.724 100.677V105.609H351.977V100.677C351.977 97.2793 352.821 94.9405 354.297 93.4392L354.306 93.4303C355.798 91.882 357.923 91.0435 360.85 91.0435C363.778 91.0435 365.903 91.882 367.395 93.4304Z"),_b(i,"fill","#494E62"),_b(o,"fill-rule","evenodd"),_b(o,"clip-rule","evenodd"),_b(o,"d","M421.019 123.482C421.249 123.81 421.63 124.006 422.036 124.006H429.81C430.268 124.006 430.688 123.758 430.901 123.361C431.114 122.964 431.085 122.485 430.826 122.116L422.723 110.587C424.933 109.494 426.707 107.983 428.005 106.045C429.603 103.717 430.376 100.969 430.376 97.8563C430.376 94.8268 429.663 92.1432 428.187 89.8559C426.712 87.5705 424.59 85.837 421.877 84.6445C419.204 83.4531 416.099 82.8783 412.596 82.8783H396.603C395.923 82.8783 395.371 83.4185 395.371 84.085V122.8C395.371 123.466 395.923 124.006 396.603 124.006H403.822C404.503 124.006 405.055 123.466 405.055 122.8V112.724H412.596C412.917 112.724 413.212 112.72 413.475 112.711L421.019 123.482ZM418.638 93.0871C419.931 94.1409 420.637 95.6687 420.637 97.8563C420.637 100.039 419.933 101.592 418.631 102.686C417.309 103.76 415.252 104.393 412.263 104.393H405.055V91.3754H412.263C415.256 91.3754 417.315 92.0098 418.638 93.0871Z"),_b(o,"fill","#494E62"),_b(a,"d","M453.668 122.8V109.184H469.372C470.053 109.184 470.605 108.644 470.605 107.977V101.894C470.605 101.227 470.053 100.687 469.372 100.687H453.668V98.5753C453.668 95.9375 454.441 94.1359 455.807 92.9529C457.199 91.7469 459.374 91.0435 462.542 91.0435C465.829 91.0435 468.452 91.7903 470.494 93.201C470.805 93.416 471.2 93.478 471.565 93.3691C471.929 93.2601 472.221 92.9924 472.357 92.6438L474.634 86.7813C474.839 86.251 474.64 85.6517 474.155 85.3418C472.582 84.3375 470.769 83.5885 468.732 83.0814C466.697 82.5746 464.521 82.3252 462.209 82.3252C456.701 82.3252 452.209 83.729 448.887 86.6749C445.583 89.6004 443.984 93.6202 443.984 98.5753V122.8C443.984 123.466 444.536 124.006 445.217 124.006H452.436C453.116 124.006 453.668 123.466 453.668 122.8Z"),_b(a,"fill","#494E62"),_b(s,"d","M177.58 117.515C177.507 121.507 174.869 124.279 172.268 125.782L166.67 129.016C163.999 130.559 160.875 131.159 158.077 131.159C155.278 131.159 152.155 130.559 149.485 129.016L143.994 125.782V136.762C143.994 140.829 141.316 143.664 138.68 145.188L133.083 148.422C130.411 149.965 127.288 150.565 124.489 150.565C121.69 150.565 118.567 149.965 115.897 148.422L107.695 143.683L99.495 148.422C96.8235 149.965 93.7002 150.565 90.9014 150.565C88.1027 150.565 84.9808 149.965 82.3093 148.422L43.1243 125.782C40.523 124.279 37.8851 121.507 37.812 117.515L37.8105 117.269V131.648L37.812 131.895C37.8851 135.886 40.523 138.659 43.1243 140.161L82.3093 162.801C84.9808 164.344 88.1027 164.944 90.9014 164.944C93.7002 164.944 96.8235 164.344 99.495 162.801L107.695 158.063L115.897 162.801C118.567 164.344 121.69 164.944 124.489 164.944C127.288 164.944 130.411 164.344 133.083 162.801L138.68 159.567C141.316 158.044 143.994 155.209 143.994 151.142V140.161L149.485 143.396C152.155 144.939 155.278 145.538 158.077 145.538C160.875 145.538 163.999 144.939 166.67 143.396L172.268 140.161C174.869 138.659 177.507 135.886 177.58 131.895L177.58 117.515Z"),_b(s,"fill","#F4FAF4"),_b(l,"d","M37.8456 103.768C37.8224 103.982 37.8105 104.199 37.8105 104.419V117.268L37.812 117.515C37.8851 121.507 40.523 124.279 43.1243 125.782L82.3093 148.422C84.9808 149.964 88.1027 150.564 90.9014 150.564C93.7002 150.564 96.8235 149.964 99.495 148.422L107.695 143.683L115.897 148.422C118.567 149.964 121.69 150.564 124.489 150.564C127.288 150.564 130.411 149.964 133.083 148.422L138.68 145.187C141.316 143.664 143.994 140.829 143.994 136.762V125.782L149.484 129.016C152.155 130.559 155.278 131.159 158.077 131.159C160.875 131.159 163.999 130.559 166.67 129.016L172.268 125.782C174.869 124.279 177.507 121.507 177.58 117.515V103.136C177.506 107.127 174.869 109.899 172.268 111.402L166.67 114.636C163.999 116.179 160.875 116.779 158.077 116.779C155.278 116.779 152.155 116.179 149.484 114.636L143.887 111.402C143.797 111.35 143.707 111.296 143.617 111.241C143.86 112.035 143.997 112.892 143.997 113.813C143.997 114.082 143.985 114.346 143.962 114.604C143.983 114.807 143.994 115.012 143.994 115.219V122.382C143.994 126.449 141.316 129.284 138.68 130.808L133.083 134.042C130.411 135.585 127.288 136.184 124.489 136.184C121.69 136.184 118.567 135.585 115.897 134.042L107.695 129.303L99.495 134.042C96.8235 135.585 93.7002 136.184 90.9014 136.184C88.1027 136.184 84.9808 135.585 82.3093 134.042L43.1243 111.402C40.6627 109.98 38.1684 107.421 37.8456 103.768Z"),_b(l,"fill","#B2F2E1"),_b(c,"d","M105.024 64.9883C105.03 65.0464 105.036 65.1046 105.043 65.1627C105.324 67.5849 106.527 69.4925 108.024 70.9048C107.915 70.903 107.807 70.9021 107.699 70.9021C106.824 70.9021 105.918 70.9607 105.003 71.0884V65.4957C105.003 65.3248 105.01 65.1556 105.024 64.9883Z"),_b(c,"fill","#B2F2E1"),_b(u,"d","M48.7253 82.7478L43.1274 85.9821C40.6334 87.423 38.1038 90.037 37.837 93.7573C37.8195 93.932 37.8105 94.1145 37.8105 94.3053V102.889L37.812 103.135C37.8851 107.127 40.523 109.899 43.1243 111.402L82.3093 134.042C84.9808 135.585 88.1027 136.185 90.9014 136.185C93.7001 136.185 96.8235 135.585 99.495 134.042L107.695 129.304L115.897 134.042C118.567 135.585 121.69 136.185 124.489 136.185C127.288 136.185 130.411 135.585 133.083 134.042L138.68 130.808C141.316 129.284 143.994 126.45 143.994 122.382V115.219C143.994 115.012 143.983 114.807 143.962 114.605C143.985 114.346 143.997 114.082 143.997 113.813C143.997 112.892 143.86 112.035 143.617 111.241C143.707 111.296 143.797 111.35 143.887 111.402L149.484 114.636C152.155 116.179 155.278 116.779 158.077 116.779C160.875 116.779 163.999 116.179 166.67 114.636L172.268 111.402C174.869 109.899 177.507 107.127 177.58 103.135V94.6923C177.583 94.5981 177.584 94.5031 177.584 94.4075C177.584 94.3119 177.583 94.217 177.58 94.1228L177.581 75.2371C177.583 75.1592 177.584 75.0808 177.584 75.0019C177.584 70.9348 174.908 68.0999 172.271 66.5765L133.085 43.9366C130.415 42.3936 127.292 41.7939 124.493 41.7939C121.694 41.7939 118.571 42.3936 115.9 43.9366L110.303 47.1708C107.666 48.6943 104.989 51.5291 104.989 55.5963C104.989 55.788 104.995 55.9769 105.006 56.1631C105.004 56.2285 105.003 56.2944 105.003 56.3609V63.611C104.984 63.8988 104.981 64.1871 104.992 64.4752C104.999 64.7047 105.016 64.9341 105.043 65.163C105.324 67.5851 106.527 69.4928 108.024 70.9051C107.915 70.9033 107.807 70.9024 107.699 70.9024C104.9 70.9024 101.777 71.5021 99.1067 73.045L93.5087 76.2793C90.8719 77.8027 88.1951 80.6376 88.1951 84.7047C88.1951 84.9692 88.2065 85.2285 88.2284 85.4826C88.2236 85.5807 88.2212 85.6793 88.2212 85.7785V92.5656L88.2109 92.7314L88.2007 92.9128C88.1934 93.0894 88.1919 93.2661 88.1948 93.4428C88.2007 93.8112 88.2314 94.1794 88.2855 94.5454C88.3525 94.997 88.4513 95.4299 88.5777 95.8443L65.9101 82.7478C63.2396 81.2049 60.1164 80.6052 57.3177 80.6052C54.519 80.6052 51.3958 81.2049 48.7253 82.7478Z"),_b(u,"fill","#7BE7CE"),_b(d,"d","M130.088 49.1268C126.997 47.3406 121.984 47.3405 118.893 49.1268L113.295 52.3611C110.203 54.1473 110.203 57.0434 113.295 58.8296L151.801 81.0771C153.286 81.9349 154.12 83.0983 154.12 84.3114V85.0962C154.12 86.3092 153.286 87.4726 151.801 88.3304L146.882 91.1723C143.791 92.9586 143.791 95.8546 146.882 97.6409L152.48 100.875C155.572 102.661 160.584 102.661 163.676 100.875L169.274 97.6409C172.366 95.8546 172.366 92.9586 169.274 91.1723L164.355 88.3304C162.87 87.4726 162.036 86.3092 162.036 85.0962V84.3114C162.036 83.0983 162.87 81.9349 164.355 81.0771L169.274 78.2352C172.366 76.449 172.366 73.5529 169.274 71.7667L130.088 49.1268Z"),_b(d,"fill","#494E62"),_b(f,"d","M62.9133 87.938C59.8216 86.1518 54.8091 86.1518 51.7174 87.938L46.1195 91.1723C43.0279 92.9585 43.0279 95.8546 46.1195 97.6408L85.305 120.281C88.3967 122.067 93.4092 122.067 96.5009 120.281L107.697 113.812L62.9133 87.938Z"),_b(f,"fill","#494E62"),_b(h,"d","M128.449 104.502C128.449 105.715 129.283 106.878 130.768 107.736L135.686 110.578C138.778 112.364 138.778 115.26 135.686 117.046L130.088 120.281C126.997 122.067 121.984 122.067 118.893 120.281L107.697 113.812L118.213 107.736C119.698 106.878 120.532 105.715 120.532 104.502L120.532 103.717C120.532 102.504 119.698 101.341 118.213 100.483L96.5009 87.938C93.4092 86.1518 93.4092 83.2557 96.5009 81.4695L102.099 78.2352C105.19 76.449 110.203 76.449 113.295 78.2352L135.686 91.1723C138.778 92.9585 138.778 95.8546 135.686 97.6409L130.768 100.483C129.283 101.341 128.449 102.504 128.449 103.717L128.449 104.502Z"),_b(h,"fill","#494E62"),_b(t,"width","512"),_b(t,"height","206"),_b(t,"viewBox","0 0 512 206"),_b(t,"fill","none"),_b(t,"xmlns","http://www.w3.org/2000/svg"),_b(t,"class","svelte-tj2pg7")},m(e,p){ub(e,t,p),ob(t,n),ob(t,r),ob(t,i),ob(t,o),ob(t,a),ob(t,s),ob(t,l),ob(t,c),ob(t,u),ob(t,d),ob(t,f),ob(t,h)},d(e){e&&db(t)}}}function Sk(e){let t,n,r,i,o,a,s,l,c,u,d,f,h;return{c(){t=pb("svg"),n=pb("path"),r=pb("path"),i=pb("path"),o=pb("path"),a=pb("path"),s=pb("path"),l=pb("path"),c=pb("path"),u=pb("path"),d=pb("path"),f=pb("path"),h=pb("path"),_b(n,"d","M273.61 84.1001C273.61 83.4342 273.058 82.8944 272.378 82.8944H265.214C264.534 82.8944 263.982 83.4342 263.982 84.1001V106.924C263.982 110.157 263.289 112.358 262.115 113.737C260.978 115.074 259.221 115.831 256.607 115.831C253.93 115.831 252.13 115.069 250.967 113.728C249.771 112.35 249.066 110.153 249.066 106.924V96.1574C249.066 95.4915 248.514 94.9517 247.834 94.9517H240.615C239.934 94.9517 239.382 95.4915 239.382 96.1574V106.924C239.382 110.154 238.681 112.352 237.493 113.731C236.338 115.07 234.552 115.831 231.897 115.831C229.338 115.831 227.567 115.104 226.379 113.807C225.225 112.507 224.522 110.299 224.522 106.924V84.1001C224.522 83.4342 223.97 82.8944 223.289 82.8944H216.071C215.39 82.8944 214.838 83.4342 214.838 84.1001V107.145C214.838 112.609 216.261 116.971 219.295 120.031C222.329 123.091 226.593 124.542 231.897 124.542C234.764 124.542 237.338 124.099 239.591 123.178L239.601 123.174C241.392 122.423 242.936 121.451 244.214 120.248C245.47 121.452 247.003 122.424 248.792 123.174L248.816 123.184C251.134 124.098 253.738 124.542 256.607 124.542C261.906 124.542 266.154 123.113 269.153 120.086C272.189 117.025 273.61 112.643 273.61 107.145V84.1001Z"),_b(n,"fill","white"),_b(r,"d","M326.664 84.1001C326.664 83.4342 326.112 82.8944 325.431 82.8944H318.212C317.532 82.8944 316.98 83.4342 316.98 84.1001V98.8652H299.343V84.1001C299.343 83.4342 298.791 82.8944 298.111 82.8944H290.892C290.211 82.8944 289.659 83.4342 289.659 84.1001V122.784C289.659 123.45 290.211 123.99 290.892 123.99H298.111C298.791 123.99 299.343 123.45 299.343 122.784V107.411H316.98V122.784C316.98 123.45 317.532 123.99 318.212 123.99H325.431C326.112 123.99 326.664 123.45 326.664 122.784V84.1001Z"),_b(r,"fill","white"),_b(i,"fill-rule","evenodd"),_b(i,"clip-rule","evenodd"),_b(i,"d","M378.383 123.99C379.064 123.99 379.615 123.45 379.615 122.784V101.342C379.615 97.4046 378.867 93.9786 377.31 91.1134C375.795 88.2217 373.624 86.0139 370.804 84.5303C368.003 83.0569 364.759 82.3418 361.113 82.3418C357.467 82.3418 354.223 83.0569 351.422 84.5303C348.602 86.0138 346.413 88.2207 344.862 91.1105L344.859 91.1159C343.34 93.9801 342.611 97.4049 342.611 101.342V122.784C342.611 123.45 343.162 123.99 343.843 123.99H350.951C351.632 123.99 352.184 123.45 352.184 122.784V114.042H369.931V122.784C369.931 123.45 370.483 123.99 371.164 123.99H378.383ZM367.602 93.4381L367.611 93.4468C369.087 94.947 369.931 97.284 369.931 100.679V105.607H352.184V100.679C352.184 97.284 353.028 94.947 354.504 93.4469L354.513 93.438C356.005 91.891 358.13 91.0532 361.057 91.0532C363.985 91.0532 366.11 91.891 367.602 93.4381Z"),_b(i,"fill","white"),_b(o,"fill-rule","evenodd"),_b(o,"clip-rule","evenodd"),_b(o,"d","M421.226 123.466C421.456 123.794 421.837 123.99 422.243 123.99H430.017C430.475 123.99 430.895 123.741 431.108 123.345C431.321 122.949 431.292 122.469 431.033 122.1L422.93 110.581C425.14 109.488 426.914 107.979 428.212 106.043C429.81 103.717 430.583 100.971 430.583 97.8605C430.583 94.8334 429.87 92.152 428.394 89.8665C426.919 87.5829 424.797 85.8508 422.084 84.6593C419.411 83.4688 416.306 82.8944 412.803 82.8944H396.81C396.13 82.8944 395.578 83.4342 395.578 84.1001V122.784C395.578 123.45 396.13 123.99 396.81 123.99H404.029C404.71 123.99 405.262 123.45 405.262 122.784V112.716H412.803C413.124 112.716 413.419 112.712 413.682 112.703L421.226 123.466ZM418.845 93.0951C420.138 94.1481 420.844 95.6746 420.844 97.8605C420.844 100.042 420.14 101.594 418.838 102.686C417.516 103.76 415.459 104.391 412.47 104.391H405.262V91.3847H412.47C415.463 91.3847 417.522 92.0186 418.845 93.0951Z"),_b(o,"fill","white"),_b(a,"d","M453.875 122.784V109.179H469.579C470.26 109.179 470.812 108.639 470.812 107.973V101.895C470.812 101.229 470.26 100.689 469.579 100.689H453.875V98.5789C453.875 95.9432 454.648 94.1431 456.014 92.961C457.406 91.7559 459.581 91.0532 462.749 91.0532C466.036 91.0532 468.659 91.7993 470.701 93.2089C471.012 93.4237 471.408 93.4857 471.772 93.3768C472.136 93.268 472.428 93.0005 472.564 92.6522L474.841 86.7944C475.046 86.2644 474.847 85.6657 474.362 85.356C472.789 84.3525 470.976 83.6041 468.939 83.0974C466.904 82.5911 464.728 82.3418 462.416 82.3418C456.908 82.3418 452.417 83.7445 449.094 86.688C445.79 89.6112 444.191 93.6277 444.191 98.5789V122.784C444.191 123.45 444.743 123.99 445.424 123.99H452.643C453.323 123.99 453.875 123.45 453.875 122.784Z"),_b(a,"fill","white"),_b(s,"d","M177.787 117.503C177.714 121.492 175.076 124.262 172.475 125.763L166.877 128.995C164.206 130.537 161.082 131.136 158.284 131.136C155.485 131.136 152.362 130.537 149.692 128.995L144.201 125.763V136.735C144.201 140.799 141.523 143.631 138.887 145.154L133.29 148.385C130.618 149.927 127.495 150.526 124.696 150.526C121.897 150.526 118.774 149.927 116.104 148.385L107.902 143.651L99.702 148.385C97.0305 149.927 93.9072 150.526 91.1085 150.526C88.3098 150.526 85.1879 149.927 82.5164 148.385L43.3313 125.763C40.73 124.262 38.0922 121.492 38.019 117.503L38.0176 117.257V131.625L38.019 131.871C38.0922 135.86 40.73 138.63 43.3313 140.131L82.5164 162.753C85.1879 164.295 88.3098 164.894 91.1085 164.894C93.9072 164.894 97.0305 164.295 99.702 162.753L107.902 158.018L116.104 162.753C118.774 164.295 121.897 164.894 124.696 164.894C127.495 164.894 130.618 164.295 133.29 162.753L138.887 159.521C141.523 157.999 144.201 155.167 144.201 151.103V140.131L149.692 143.363C152.362 144.905 155.485 145.504 158.284 145.504C161.082 145.504 164.206 144.905 166.877 143.363L172.475 140.131C175.076 138.63 177.714 135.86 177.787 131.871L177.787 117.503Z"),_b(s,"fill","#7BE7CE"),_b(l,"d","M38.0526 103.767C38.0295 103.981 38.0176 104.198 38.0176 104.418V117.257L38.019 117.503C38.0922 121.492 40.73 124.262 43.3313 125.763L82.5164 148.385C85.1879 149.927 88.3097 150.526 91.1085 150.526C93.9072 150.526 97.0305 149.927 99.702 148.385L107.902 143.65L116.104 148.385C118.774 149.927 121.897 150.526 124.696 150.526C127.495 150.526 130.618 149.927 133.29 148.385L138.887 145.153C141.523 143.631 144.201 140.799 144.201 136.735V125.763L149.692 128.995C152.362 130.537 155.485 131.136 158.284 131.136C161.082 131.136 164.206 130.537 166.877 128.995L172.475 125.763C175.076 124.262 177.714 121.492 177.787 117.503V103.136C177.714 107.124 175.076 109.893 172.475 111.395L166.877 114.627C164.206 116.168 161.082 116.768 158.284 116.768C155.485 116.768 152.362 116.168 149.692 114.627L144.094 111.395C144.004 111.343 143.914 111.289 143.824 111.234C144.067 112.027 144.204 112.884 144.204 113.804C144.204 114.073 144.192 114.337 144.169 114.595C144.19 114.797 144.201 115.002 144.201 115.209V122.366C144.201 126.43 141.523 129.263 138.887 130.785L133.29 134.017C130.618 135.558 127.495 136.158 124.696 136.158C121.897 136.158 118.774 135.558 116.104 134.017L107.902 129.282L99.702 134.017C97.0305 135.558 93.9072 136.158 91.1085 136.158C88.3097 136.158 85.1879 135.558 82.5164 134.017L43.3313 111.395C40.8698 109.974 38.3755 107.417 38.0526 103.767Z"),_b(l,"fill","#B2F2E1"),_b(c,"d","M105.231 65.0186C105.237 65.0767 105.243 65.1348 105.25 65.1928C105.531 67.6131 106.734 69.5192 108.231 70.9303C108.122 70.9285 108.014 70.9276 107.906 70.9276C107.031 70.9276 106.125 70.9862 105.21 71.1138V65.5255C105.21 65.3548 105.217 65.1857 105.231 65.0186Z"),_b(c,"fill","#B2F2E1"),_b(u,"d","M48.9324 82.7639L43.3344 85.9955C40.8405 87.4353 38.3108 90.0472 38.044 93.7645C38.0265 93.939 38.0176 94.1214 38.0176 94.312V102.889L38.019 103.135C38.0922 107.124 40.73 109.894 43.3313 111.395L82.5164 134.017C85.1879 135.559 88.3097 136.158 91.1085 136.158C93.9072 136.158 97.0305 135.559 99.702 134.017L107.902 129.282L116.104 134.017C118.774 135.559 121.897 136.158 124.696 136.158C127.495 136.158 130.618 135.559 133.29 134.017L138.887 130.785C141.523 129.263 144.201 126.431 144.201 122.367V115.209C144.201 115.003 144.19 114.798 144.169 114.595C144.192 114.337 144.204 114.073 144.204 113.804C144.204 112.884 144.067 112.027 143.824 111.235C143.914 111.29 144.004 111.343 144.094 111.395L149.692 114.627C152.362 116.169 155.485 116.768 158.284 116.768C161.082 116.768 164.206 116.169 166.877 114.627L172.475 111.395C175.076 109.894 177.714 107.124 177.787 103.135V94.6988C177.79 94.6046 177.791 94.5098 177.791 94.4142C177.791 94.3187 177.79 94.2239 177.787 94.1297L177.788 75.2591C177.79 75.1813 177.791 75.103 177.791 75.0242C177.791 70.9603 175.115 68.1277 172.478 66.6055L133.292 43.9837C130.622 42.442 127.499 41.8428 124.7 41.8428C121.901 41.8428 118.778 42.442 116.107 43.9837L110.51 47.2154C107.873 48.7376 105.196 51.5702 105.196 55.6341C105.196 55.8256 105.202 56.0144 105.214 56.2005C105.211 56.2658 105.21 56.3317 105.21 56.3981V63.6424C105.191 63.9299 105.188 64.218 105.199 64.5058C105.206 64.7352 105.223 64.9644 105.25 65.1931C105.531 67.6133 106.734 69.5194 108.231 70.9306C108.122 70.9288 108.014 70.9279 107.906 70.9279C105.107 70.9279 101.984 71.5271 99.3137 73.0688L93.7158 76.3005C91.0789 77.8227 88.4022 80.6553 88.4022 84.7192C88.4022 84.9835 88.4135 85.2426 88.4354 85.4964C88.4306 85.5945 88.4282 85.693 88.4282 85.7922V92.5738L88.4179 92.7394L88.4077 92.9207C88.4004 93.0971 88.3989 93.2737 88.4019 93.4503C88.4077 93.8184 88.4384 94.1863 88.4925 94.552C88.5595 95.0033 88.6583 95.4358 88.7848 95.8499L66.1171 82.7639C63.4466 81.2222 60.3234 80.623 57.5247 80.623C54.726 80.623 51.6029 81.2222 48.9324 82.7639Z"),_b(u,"fill","#F4FAF4"),_b(d,"d","M130.295 49.1697C127.204 47.3849 122.191 47.3849 119.1 49.1697L113.502 52.4013C110.41 54.1862 110.41 57.0799 113.502 58.8647L152.008 81.0944C153.493 81.9515 154.327 83.114 154.327 84.3261V85.1102C154.327 86.3223 153.493 87.4848 152.008 88.3419L147.089 91.1815C143.998 92.9663 143.998 95.8601 147.089 97.6449L152.687 100.877C155.779 102.661 160.791 102.661 163.883 100.877L169.481 97.6449C172.573 95.8601 172.573 92.9663 169.481 91.1815L164.562 88.3419C163.077 87.4848 162.243 86.3224 162.243 85.1102V84.3261C162.243 83.114 163.077 81.9515 164.562 81.0944L169.481 78.2548C172.573 76.47 172.573 73.5762 169.481 71.7914L130.295 49.1697Z"),_b(d,"fill","#494E62"),_b(f,"d","M63.1203 87.9498C60.0287 86.165 55.0161 86.165 51.9245 87.9498L46.3265 91.1815C43.2349 92.9663 43.2349 95.8601 46.3265 97.6449L85.512 120.267C88.6037 122.051 93.6162 122.051 96.7079 120.267L107.904 113.803L63.1203 87.9498Z"),_b(f,"fill","#494E62"),_b(h,"d","M128.656 104.5C128.656 105.712 129.49 106.875 130.975 107.732L135.893 110.572C138.985 112.356 138.985 115.25 135.893 117.035L130.295 120.267C127.204 122.051 122.191 122.051 119.1 120.267L107.904 113.803L118.42 107.732C119.905 106.875 120.739 105.712 120.739 104.5L120.739 103.716C120.739 102.504 119.905 101.342 118.42 100.485L96.7079 87.9498C93.6162 86.165 93.6162 83.2713 96.7079 81.4865L102.306 78.2548C105.397 76.47 110.41 76.47 113.502 78.2548L135.893 91.1815C138.985 92.9663 138.985 95.8601 135.893 97.6449L130.975 100.485C129.49 101.342 128.656 102.504 128.656 103.716L128.656 104.5Z"),_b(h,"fill","#494E62"),_b(t,"width","513"),_b(t,"height","206"),_b(t,"viewBox","0 0 513 206"),_b(t,"fill","none"),_b(t,"xmlns","http://www.w3.org/2000/svg"),_b(t,"class","svelte-tj2pg7")},m(e,p){ub(e,t,p),ob(t,n),ob(t,r),ob(t,i),ob(t,o),ob(t,a),ob(t,s),ob(t,l),ob(t,c),ob(t,u),ob(t,d),ob(t,f),ob(t,h)},d(e){e&&db(t)}}}function Ck(e){let t,n=e[1]("settings.about.version",{version:_k})+"";return{c(){t=mb(n)},m(e,n){ub(e,t,n)},p(e,r){2&r&&n!==(n=e[1]("settings.about.version",{version:_k})+"")&&xb(t,n)},d(e){e&&db(t)}}}function Mk(e){let t,n=e[1]("settings.about.author")+"";return{c(){t=mb(n)},m(e,n){ub(e,t,n)},p(e,r){2&r&&n!==(n=e[1]("settings.about.author")+"")&&xb(t,n)},d(e){e&&db(t)}}}function Ek(e){let t,n,r,i,o,a,s,l;function c(e,t){return"dark"===e[0]?Sk:kk}let u=c(e),d=u(e);return r=new _y({props:{$$slots:{default:[Ck]},$$scope:{ctx:e}}}),o=new Cy({props:{$$slots:{default:[Mk]},$$scope:{ctx:e}}}),s=new Nx({props:{data:{button:!0,variant:"primary",label:e[1]("settings.about.link"),href:"https://wharfkit.com",target:"_blank"}}}),{c(){t=hb("div"),d.c(),n=gb(),fy(r.$$.fragment),i=gb(),fy(o.$$.fragment),a=gb(),fy(s.$$.fragment),_b(t,"class","svelte-tj2pg7")},m(e,c){ub(e,t,c),d.m(t,null),ob(t,n),hy(r,t,null),ob(t,i),hy(o,t,null),ob(t,a),hy(s,t,null),l=!0},p(e,[i]){u!==(u=c(e))&&(d.d(1),d=u(e),d&&(d.c(),d.m(t,n)));const a={};10&i&&(a.$$scope={dirty:i,ctx:e}),r.$set(a);const l={};10&i&&(l.$$scope={dirty:i,ctx:e}),o.$set(l);const f={};2&i&&(f.data={button:!0,variant:"primary",label:e[1]("settings.about.link"),href:"https://wharfkit.com",target:"_blank"}),s.$set(f)},i(e){l||(iy(r.$$.fragment,e),iy(o.$$.fragment,e),iy(s.$$.fragment,e),l=!0)},o(e){oy(r.$$.fragment,e),oy(o.$$.fragment,e),oy(s.$$.fragment,e),l=!1},d(e){e&&db(t),d.d(),py(r),py(o),py(s)}}}function Ak(e,t,n){let r,i;const{t:o}=$b("i18n");return Vv(e,o,(e=>n(1,i=e))),n(0,({theme:r}=Hv(Xy)),r),[r,i,o]}class Ik extends vy{constructor(e){super(),gy(this,e,Ak,Ek,Lv,{},xk)}}var Ok={en:"English",ko:"한국어",zh:"中文","zh-Hans":"中文简体","zh-Hant":"中文繁体"};function jk(e){ab(e,"svelte-yv3ifw","label.svelte-yv3ifw{flex:1;height:100%;display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding-inline:var(--space-s)}")}function Zk(e){let t,n,r;return n=new Oy({props:{name:"check"}}),{c(){t=hb("div"),fy(n.$$.fragment),_b(t,"class","trailing")},m(e,i){ub(e,t,i),hy(n,t,null),r=!0},i(e){r||(iy(n.$$.fragment,e),r=!0)},o(e){oy(n.$$.fragment,e),r=!1},d(e){e&&db(t),py(n)}}}function Rk(e){let t,n;const r=e[8].default,i=Uv(r,e,e[7],null),o=i||function(e){let t,n,r,i,o,a,s,l,c=e[2]&&Zk();return{c(){t=hb("input"),n=gb(),r=mb(e[6]),i=gb(),c&&c.c(),o=vb(),_b(t,"type","radio"),_b(t,"name",e[0]),t.value=e[1],t.checked=e[2],t.hidden=e[5],_b(t,"group",e[3])},m(u,d){ub(u,t,d),ub(u,n,d),ub(u,r,d),ub(u,i,d),c&&c.m(u,d),ub(u,o,d),a=!0,s||(l=bb(t,"change",(function(){Dv(e[4])&&e[4].apply(this,arguments)})),s=!0)},p(n,i){e=n,(!a||1&i)&&_b(t,"name",e[0]),(!a||2&i)&&(t.value=e[1]),(!a||4&i)&&(t.checked=e[2]),(!a||32&i)&&(t.hidden=e[5]),(!a||8&i)&&_b(t,"group",e[3]),(!a||64&i)&&xb(r,e[6]),e[2]?c?4&i&&iy(c,1):(c=Zk(),c.c(),iy(c,1),c.m(o.parentNode,o)):c&&(ny(),oy(c,1,1,(()=>{c=null})),ry())},i(e){a||(iy(c),a=!0)},o(e){oy(c),a=!1},d(e){e&&(db(t),db(n),db(r),db(i),db(o)),c&&c.d(e),s=!1,l()}}}(e);return{c(){t=hb("label"),o&&o.c(),_b(t,"class","svelte-yv3ifw")},m(e,r){ub(e,t,r),o&&o.m(t,null),n=!0},p(e,[t]){i?i.p&&(!n||128&t)&&qv(i,r,e,e[7],n?Gv(r,e[7],t,null):Xv(e[7]),null):o&&o.p&&(!n||127&t)&&o.p(e,n?t:-1)},i(e){n||(iy(o,e),n=!0)},o(e){oy(o,e),n=!1},d(e){e&&db(t),o&&o.d(e)}}}function Nk(e,t,n){let{$$slots:r={},$$scope:i}=t,{name:o}=t,{value:a}=t,{checked:s}=t,{group:l}=t,{onChange:c}=t,{hidden:u}=t,{label:d}=t;return e.$$set=e=>{"name"in e&&n(0,o=e.name),"value"in e&&n(1,a=e.value),"checked"in e&&n(2,s=e.checked),"group"in e&&n(3,l=e.group),"onChange"in e&&n(4,c=e.onChange),"hidden"in e&&n(5,u=e.hidden),"label"in e&&n(6,d=e.label),"$$scope"in e&&n(7,i=e.$$scope)},[o,a,s,l,c,u,d,i,r]}class Pk extends vy{constructor(e){super(),gy(this,e,Nk,Rk,Lv,{name:0,value:1,checked:2,group:3,onChange:4,hidden:5,label:6},jk)}}function Tk(e,t,n){const r=e.slice();return r[6]=t[n],r}function Bk(e){let t,n,r,i;function o(){return e[4](e[6])}function a(t){e[5](t)}let s={label:e[6].label,name:e[0],value:e[6].value,checked:e[3][e[0]]===e[6].value,onChange:o,hidden:!0};return void 0!==e[3][e[0]]&&(s.group=e[3][e[0]]),t=new Pk({props:s}),Lb.push((()=>dy(t,"group",a))),{c(){fy(t.$$.fragment),r=gb()},m(e,n){hy(t,e,n),ub(e,r,n),i=!0},p(r,i){e=r;const a={};2&i&&(a.label=e[6].label),1&i&&(a.name=e[0]),2&i&&(a.value=e[6].value),11&i&&(a.checked=e[3][e[0]]===e[6].value),6&i&&(a.onChange=o),!n&&9&i&&(n=!0,a.group=e[3][e[0]],Ub((()=>n=!1))),t.$set(a)},i(e){i||(iy(t.$$.fragment,e),i=!0)},o(e){oy(t.$$.fragment,e),i=!1},d(e){e&&db(r),py(t,e)}}}function $k(e){let t,n;return t=new Bw({props:{$$slots:{default:[Bk]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};527&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function Dk(e){let t,n,r=ly(e[1]),i=[];for(let t=0;toy(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;en(3,r=e)));let{setting:i}=t,{options:o}=t,{onChange:a=(e=>{Kv(Xy,r[i]=e,r)})}=t;return e.$$set=e=>{"setting"in e&&n(0,i=e.setting),"options"in e&&n(1,o=e.options),"onChange"in e&&n(2,a=e.onChange)},[i,o,a,r,e=>a(e.value),function(t){e.$$.not_equal(r[i],t)&&(r[i]=t,Xy.set(r))}]}class Fk extends vy{constructor(e){super(),gy(this,e,zk,Lk,Lv,{setting:0,options:1,onChange:2})}}function Wk(e){let t,n;return t=new Q_({props:{direction:e[4],$$slots:{default:[Vk]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.direction=e[4]),524353&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function Hk(e){let t,n,r,i,o,a,s,l,c,u;return t=new Bw({props:{label:e[0]("settings.theme.title"),onClick:e[11],leadingIcon:"theme",value:e[6].theme?e[0](`settings.theme.${e[6].theme}`):e[0]("settings.theme.automatic")}}),r=new Bw({props:{label:e[0]("settings.language.title"),onClick:e[12],leadingIcon:"globe",value:Ok[e[6].language]}}),o=new Bw({props:{label:e[0]("settings.animations.title"),onClick:e[13],leadingIcon:"waves",value:e[6].animations?e[0]("settings.animations.enabled"):e[0]("settings.animations.disabled")}}),s=new Bw({props:{label:e[0]("settings.about.title"),onClick:e[14],leadingIcon:"info"}}),c=new Bw({props:{label:e[0]("settings.github"),link:"https://www.github.com/wharfkit",leadingIcon:"github",trailingIcon:"external-link"}}),{c(){fy(t.$$.fragment),n=gb(),fy(r.$$.fragment),i=gb(),fy(o.$$.fragment),a=gb(),fy(s.$$.fragment),l=gb(),fy(c.$$.fragment)},m(e,d){hy(t,e,d),ub(e,n,d),hy(r,e,d),ub(e,i,d),hy(o,e,d),ub(e,a,d),hy(s,e,d),ub(e,l,d),hy(c,e,d),u=!0},p(e,n){const i={};1&n&&(i.label=e[0]("settings.theme.title")),65&n&&(i.value=e[6].theme?e[0](`settings.theme.${e[6].theme}`):e[0]("settings.theme.automatic")),t.$set(i);const a={};1&n&&(a.label=e[0]("settings.language.title")),64&n&&(a.value=Ok[e[6].language]),r.$set(a);const l={};1&n&&(l.label=e[0]("settings.animations.title")),65&n&&(l.value=e[6].animations?e[0]("settings.animations.enabled"):e[0]("settings.animations.disabled")),o.$set(l);const u={};1&n&&(u.label=e[0]("settings.about.title")),s.$set(u);const d={};1&n&&(d.label=e[0]("settings.github")),c.$set(d)},i(e){u||(iy(t.$$.fragment,e),iy(r.$$.fragment,e),iy(o.$$.fragment,e),iy(s.$$.fragment,e),iy(c.$$.fragment,e),u=!0)},o(e){oy(t.$$.fragment,e),oy(r.$$.fragment,e),oy(o.$$.fragment,e),oy(s.$$.fragment,e),oy(c.$$.fragment,e),u=!1},d(e){e&&(db(n),db(i),db(a),db(l)),py(t,e),py(r,e),py(o,e),py(s,e),py(c,e)}}}function Vk(e){let t,n;return t=new kw({props:{$$slots:{default:[Hk]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};524353&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function Uk(e){let t,n;return t=new Q_({props:{direction:e[4],$$slots:{default:[Xk]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.direction=e[4]),524296&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function Yk(e){let t,n;return t=new Q_({props:{direction:e[4],$$slots:{default:[Kk]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.direction=e[4]),524292&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function Gk(e){let t,n;return t=new Q_({props:{direction:e[4],$$slots:{default:[Jk]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.direction=e[4]),524290&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function qk(e){let t,n;return t=new Q_({props:{direction:e[4],$$slots:{default:[Qk]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.direction=e[4]),524288&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function Xk(e){let t,n;return t=new Fk({props:{setting:"animations",options:e[3]}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.options=e[3]),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function Kk(e){let t,n;return t=new Fk({props:{setting:"language",options:e[2],onChange:e[15]}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};4&n&&(r.options=e[2]),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function Jk(e){let t,n;return t=new Fk({props:{setting:"theme",options:e[1]}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.options=e[1]),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function Qk(e){let t,n;return t=new Ik({}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function eS(e){let t,n,r,i,o,a=!e[5].path&&Wk(e);const s=[qk,Gk,Yk,Uk],l=[];function c(e,t){return"about"===e[5].path?0:"theme"===e[5].path?1:"language"===e[5].path?2:"animations"===e[5].path?3:-1}return~(r=c(e))&&(i=l[r]=s[r](e)),{c(){t=hb("div"),a&&a.c(),n=gb(),i&&i.c(),_b(t,"class","settings-menu")},m(e,i){ub(e,t,i),a&&a.m(t,null),ob(t,n),~r&&l[r].m(t,null),o=!0},p(e,[o]){e[5].path?a&&(ny(),oy(a,1,1,(()=>{a=null})),ry()):a?(a.p(e,o),32&o&&iy(a,1)):(a=Wk(e),a.c(),iy(a,1),a.m(t,n));let u=r;r=c(e),r===u?~r&&l[r].p(e,o):(i&&(ny(),oy(l[u],1,1,(()=>{l[u]=null})),ry()),~r?(i=l[r],i?i.p(e,o):(i=l[r]=s[r](e),i.c()),iy(i,1),i.m(t,null)):i=null)},i(e){o||(iy(a),iy(i),o=!0)},o(e){oy(a),oy(i),o=!1},d(e){e&&db(t),a&&a.d(),~r&&l[r].d()}}}function tS(e,t,n){let r,i,o,a,s,l,c,u;Vv(e,Jy,(e=>n(16,s=e))),Vv(e,mw,(e=>n(4,l=e))),Vv(e,Xy,(e=>n(6,u=e)));const d=ew();Vv(e,d,(e=>n(5,c=e)));const{t:f,setLocale:h}=$b("i18n");function p(){Kv(mw,l="ltr",l),tw.back(),pw.set(void 0)}function m(e){Kv(mw,l="rtl",l),d.push(e),Kv(Jy,s.subtitle=a(`settings.${e}.title`),s),pw.set((()=>{Kv(mw,l="ltr",l),d.back(),pw.set(p),Kv(Jy,s.subtitle=void 0,s)}))}async function g(e){await h(e)&&(Xy.set({...Hv(Xy),language:e}),Kv(Jy,s.title=a("settings.title"),s),Kv(Jy,s.subtitle=a("settings.language.title"),s))}Vv(e,f,(e=>n(0,a=e))),Pb((()=>{pw.set(p),Kv(Jy,s.title=a("settings.title"),s),Kv(Jy,s.subtitle=void 0,s),Kv(mw,l="rtl",l)}));return e.$$.update=()=>{1&e.$$.dirty&&n(3,r=[{label:a("settings.animations.enabled"),value:!0},{label:a("settings.animations.disabled"),value:!1}]),1&e.$$.dirty&&n(1,o=[{label:a("settings.theme.automatic"),value:void 0},{label:a("settings.theme.light"),value:"light"},{label:a("settings.theme.dark"),value:"dark"}])},n(2,i=Object.keys(Ok).map((e=>({label:Ok[e],value:e})))),[a,o,i,r,l,c,u,d,f,m,g,()=>m("theme"),()=>m("language"),()=>m("animations"),()=>m("about"),e=>g(e)]}class nS extends vy{constructor(e){super(),gy(this,e,tS,eS,Lv,{})}}function rS(e){let t,n;return t=new U_({props:{data:{label:e[0]("transact.processing",{default:"Performing transaction..."})}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.data={label:e[0]("transact.processing",{default:"Performing transaction..."})}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function iS(e,t,n){let r;const{t:i}=$b("i18n");return Vv(e,i,(e=>n(0,r=e))),Bb(),[r,i]}class oS extends vy{constructor(e){super(),gy(this,e,iS,rS,Lv,{})}}function aS(e){ab(e,"svelte-1d8fcdl","section.svelte-1d8fcdl{display:flex;flex-direction:column;gap:var(--space-s)}")}function sS(e,t,n){const r=e.slice();return r[4]=t[n],r}function lS(e){let t,n,r,i,o;return n=new _y({props:{$$slots:{default:[cS]},$$scope:{ctx:e}}}),i=new kw({props:{$$slots:{default:[dS]},$$scope:{ctx:e}}}),{c(){t=hb("section"),fy(n.$$.fragment),r=gb(),fy(i.$$.fragment),_b(t,"class","svelte-1d8fcdl")},m(e,a){ub(e,t,a),hy(n,t,null),ob(t,r),hy(i,t,null),o=!0},p(e,t){const r={};130&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r);const o={};129&t&&(o.$$scope={dirty:t,ctx:e}),i.$set(o)},i(e){o||(iy(n.$$.fragment,e),iy(i.$$.fragment,e),o=!0)},o(e){oy(n.$$.fragment,e),oy(i.$$.fragment,e),o=!1},d(e){e&&db(t),py(n),py(i)}}}function cS(e){let t;return{c(){t=mb(e[1])},m(e,n){ub(e,t,n)},p(e,n){2&n&&xb(t,e[1])},d(e){e&&db(t)}}}function uS(e){let t,n;function r(){return e[3](e[4])}return t=new Bw({props:{label:e[4].name,onClick:r,leadingIcon:"wharf",logo:Lw(e[4].metadata)}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(n,i){e=n;const o={};1&i&&(o.label=e[4].name),1&i&&(o.onClick=r),1&i&&(o.logo=Lw(e[4].metadata)),t.$set(o)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function dS(e){let t,n,r=ly(e[0]),i=[];for(let t=0;toy(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e{r=null})),ry())},i(e){n||(iy(r),n=!0)},o(e){oy(r),n=!1},d(e){e&&db(t),r&&r.d(e)}}}function hS(e,t,n){let{plugins:r}=t,{title:i}=t;const o=Bb();return e.$$set=e=>{"plugins"in e&&n(0,r=e.plugins),"title"in e&&n(1,i=e.title)},[r,i,o,e=>o("select",e.id)]}class pS extends vy{constructor(e){super(),gy(this,e,hS,fS,Lv,{plugins:0,title:1},aS)}}function mS(e){let t,n,r=e[2]("loading",{default:"Loading..."})+"";return{c(){t=hb("p"),n=mb(r)},m(e,r){ub(e,t,r),ob(t,n)},p(e,t){4&t&&r!==(r=e[2]("loading",{default:"Loading..."})+"")&&xb(n,r)},i:Rv,o:Rv,d(e){e&&db(t)}}}function gS(e){let t,n,r,i;const o=[yS,bS,vS],a=[];function s(e,t){return e[5]===e[0].selectPlugin?0:e[5]===e[0].selectChain&&e[6]?1:2}return t=s(e),n=a[t]=o[t](e),{c(){n.c(),r=vb()},m(e,n){a[t].m(e,n),ub(e,r,n),i=!0},p(e,i){let l=t;t=s(e),t===l?a[t].p(e,i):(ny(),oy(a[l],1,1,(()=>{a[l]=null})),ry(),n=a[t],n?n.p(e,i):(n=a[t]=o[t](e),n.c()),iy(n,1),n.m(r.parentNode,r))},i(e){i||(iy(n),i=!0)},o(e){oy(n),i=!1},d(e){e&&db(r),a[t].d(e)}}}function vS(e){let t,n;return t=new U_({props:{data:{label:e[2]("accountCreation.countdown",{default:"Creating Account"})}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};4&n&&(r.data={label:e[2]("accountCreation.countdown",{default:"Creating Account"})}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function bS(e){let t,n;return t=new Q_({props:{direction:e[1],$$slots:{default:[wS]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.direction=e[1]),4194372&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function yS(e){let t,n;return t=new Q_({props:{direction:e[1],$$slots:{default:[_S]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.direction=e[1]),4194324&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function wS(e){let t,n;return t=new qw({props:{chains:e[6],title:e[2]("accountCreation.select.chain",{default:"Select a Blockchain"})}}),t.$on("select",e[11]),t.$on("cancel",e[12]),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};64&n&&(r.chains=e[6]),4&n&&(r.title=e[2]("accountCreation.select.chain",{default:"Select a Blockchain"})),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function _S(e){let t,n;return t=new pS({props:{plugins:e[4].accountCreationPlugins,title:e[2]("accountCreation.select.plugin",{default:"Select a Service Provider"})}}),t.$on("select",e[10]),t.$on("cancel",e[13]),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.plugins=e[4].accountCreationPlugins),4&n&&(r.title=e[2]("accountCreation.select.plugin",{default:"Select a Service Provider"})),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function xS(e){let t,n,r,i;const o=[gS,mS],a=[];function s(e,t){return e[3]&&e[4]?0:1}return t=s(e),n=a[t]=o[t](e),{c(){n.c(),r=vb()},m(e,n){a[t].m(e,n),ub(e,r,n),i=!0},p(e,[i]){let l=t;t=s(e),t===l?a[t].p(e,i):(ny(),oy(a[l],1,1,(()=>{a[l]=null})),ry(),n=a[t],n?n.p(e,i):(n=a[t]=o[t](e),n.c()),iy(n,1),n.m(r.parentNode,r))},i(e){i||(iy(n),i=!0)},o(e){oy(n),i=!1},d(e){e&&db(r),a[t].d(e)}}}function kS(e,t,n){let r,i,o,a,s,l,c,u;Vv(e,mw,(e=>n(1,r=e))),Vv(e,pw,(e=>n(15,i=e))),Vv(e,dw,(e=>n(16,o=e))),Vv(e,Jy,(e=>n(3,s=e))),Vv(e,uw,(e=>n(4,l=e)));const{t:d}=$b("i18n");Vv(e,d,(e=>n(2,a=e)));let f=!1;const h=Bb();var p;!function(e){e.done="done",e.selectPlugin="selectPlugin",e.selectChain="selectChain"}(p||(p={}));const m=Vy([uw,dw],(([e,t])=>{if(!e||!t)return;const n=e.accountCreationPlugins.find((e=>e.id===t.pluginId));return t.chain||1!==n?.config.supportedChains?.length||(t.chain=n.config.supportedChains[0].id),n}));let g=Vy([uw,m],(([e,t])=>{if(e&&t){if(t.config.supportedChains&&e.chains)return e.chains.filter((e=>t.config.supportedChains?.find((t=>t.id.equals(e.id)))))}else if(e)return e.chains;return[]}));Vv(e,g,(e=>n(6,u=e)));const v=uw.subscribe((e=>{e&&(Kv(Jy,s.subtitle=a("login.title-app",{appName:e.appName,default:"Login to {{appName}}"}),s),1===e.accountCreationPlugins.length&&Kv(dw,o.pluginId=e.accountCreationPlugins[0].id,o),e.chain?Kv(dw,o.chain=e.chain.id,o):e.chains&&1===e.chains.length&&Kv(dw,o.chain=e.chains[0].id,o))}));Pb((()=>{Kv(Jy,s.title=a("accountCreation.title",{default:"Create Account"}),s)})),Tb(v);const b=Vy([uw,dw,m,g],(([e,t,n,r])=>{if(!n&&e?.uiRequirements.requiresPluginSelect)return p.selectPlugin;let i=n?.config.requiresChainSelect;if(!1!==i&&(i=e?.uiRequirements.requiresChainSelect),!t.chain&&i)return p.selectChain;f||(f=!0,setTimeout((()=>{h("complete",o),pw.set(void 0)}),100))}));Vv(e,b,(e=>n(5,c=e)));const y=e=>{Kv(dw,o.pluginId=void 0,o),Kv(pw,i=void 0,i),Kv(mw,r="ltr",r)},w=e=>{Kv(dw,o.chain=void 0,o),Kv(pw,i=y,i),Kv(mw,r="ltr",r)};return[p,r,a,s,l,c,u,d,g,b,e=>{Kv(dw,o.pluginId=e.detail,o),Kv(pw,i=y,i),Kv(mw,r="rtl",r)},e=>{Kv(dw,o.chain=e.detail,o),Kv(pw,i=w,i),Kv(mw,r="rtl",r)},w,()=>{h("cancel")}]}class SS extends vy{constructor(e){super(),gy(this,e,kS,xS,Lv,{})}}function CS(e){ab(e,"svelte-mttle8","button.svelte-mttle8.svelte-mttle8{--button-size:46px;--button-size:var(--space-2xl);position:relative;isolation:isolate;background:var(--header-button-background);border:1px solid var(--header-button-outline);border:none;box-shadow:inset 0 0 0 1px var(--header-button-outline);border-radius:var(--border-radius-inner);cursor:pointer;width:var(--button-size);height:var(--button-size);display:grid;place-content:center;color:var(--header-text-color);transition:transform 80ms ease}button.svelte-mttle8.svelte-mttle8:active{transform:scale(95%);transform-origin:center}@media(hover: hover){button.svelte-mttle8:hover .background.svelte-mttle8{opacity:1}}.background.svelte-mttle8.svelte-mttle8{position:absolute;border-radius:var(--border-radius-inner);inset:0;opacity:0;z-index:-1;transition:opacity 80ms ease;background:var(--header-button-outline)}.visually-hidden.svelte-mttle8.svelte-mttle8{border:0;clip:rect(0 0 0 0);height:auto;margin:0;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}")}function MS(e){let t,n,r,i,o,a,s,l,c,u;return i=new Oy({props:{name:e[1]}}),{c(){t=hb("button"),n=hb("span"),r=gb(),fy(i.$$.fragment),o=gb(),a=hb("span"),s=mb(e[1]),_b(n,"class","background svelte-mttle8"),_b(a,"class","label visually-hidden svelte-mttle8"),_b(t,"class","svelte-mttle8")},m(d,f){ub(d,t,f),ob(t,n),ob(t,r),hy(i,t,null),ob(t,o),ob(t,a),ob(a,s),l=!0,c||(u=bb(t,"click",(function(){Dv(e[0])&&e[0].apply(this,arguments)})),c=!0)},p(t,[n]){e=t;const r={};2&n&&(r.name=e[1]),i.$set(r),(!l||2&n)&&xb(s,e[1])},i(e){l||(iy(i.$$.fragment,e),l=!0)},o(e){oy(i.$$.fragment,e),l=!1},d(e){e&&db(t),py(i),c=!1,u()}}}function ES(e,t,n){let{onClick:r}=t,{icon:i}=t;return e.$$set=e=>{"onClick"in e&&n(0,r=e.onClick),"icon"in e&&n(1,i=e.icon)},[r,i]}class AS extends vy{constructor(e){super(),gy(this,e,ES,MS,Lv,{onClick:0,icon:1},CS)}}function IS(e){ab(e,"svelte-ajt3u",".wrapper.svelte-ajt3u{transform-origin:top;overflow:hidden;position:relative;height:var(--container-height);background-color:var(--header-background-color)}.clipped.svelte-ajt3u{clip-path:url(#wave-clip)}.container.svelte-ajt3u{position:absolute;left:0;bottom:0;width:200%;height:100%;transform-origin:bottom}@keyframes svelte-ajt3u-wave-slide{from{transform:translate(0)}to{transform:translate(-50%)}}.wave.svelte-ajt3u{position:absolute;bottom:-2px;opacity:0.9999;transform-origin:bottom}.wave.foreground.svelte-ajt3u{--swell:var(--foreground-swell);--swell-speed:var(--foreground-swell-speed);--swell-delay:var(--foreground-delay)}.wave.midground.svelte-ajt3u{--swell:var(--midground-swell);--swell-speed:var(--midground-swell-speed);--swell-delay:var(--midground-delay)}.wave.background.svelte-ajt3u{--swell:var(--background-swell);--swell-speed:var(--background-swell-speed);--swell-delay:var(--background-delay)}@keyframes svelte-ajt3u-wave-swell{from{transform:scaleY(1)}to{transform:scaleY(var(--swell))}}")}function OS(e){let t,n,r,i,o,a,s,l,c,u,d,f,h,p,m,g,v;return{c(){t=hb("div"),n=pb("svg"),r=pb("defs"),i=pb("clipPath"),o=pb("path"),a=gb(),s=hb("div"),l=pb("svg"),c=pb("rect"),u=gb(),d=hb("div"),f=pb("svg"),h=pb("rect"),p=gb(),m=hb("div"),g=pb("svg"),v=pb("rect"),_b(o,"d","M 0 300 V 100 Q 100 0 200 100 Q 300 200 400 100 Q 500 0 600 100 Q 700 200 800 100 V 300"),_b(i,"id","wave-clip"),_b(n,"height","0"),_b(n,"width","0"),_b(c,"class","clipped svelte-ajt3u"),_b(c,"height","100%"),_b(c,"width","100%"),_b(c,"fill",KS),_b(l,"class","wave background svelte-ajt3u"),_b(l,"width","100%"),_b(l,"height",DS+"%"),_b(l,"viewBox","0 0 800 300"),_b(l,"preserveAspectRatio","none"),_b(s,"class","container background svelte-ajt3u"),_b(h,"class","clipped svelte-ajt3u"),_b(h,"width","100%"),_b(h,"height","100%"),_b(h,"fill",XS),_b(f,"class","wave midground svelte-ajt3u"),_b(f,"width","100%"),_b(f,"height",$S+"%"),_b(f,"viewBox","0 0 800 300"),_b(f,"preserveAspectRatio","none"),_b(d,"class","container midground svelte-ajt3u"),_b(v,"class","clipped svelte-ajt3u"),_b(v,"width","100%"),_b(v,"height","100%"),_b(v,"fill",qS),_b(g,"class","wave foreground svelte-ajt3u"),_b(g,"width","100%"),_b(g,"height",BS+"%"),_b(g,"viewBox","0 0 800 300"),_b(g,"preserveAspectRatio","none"),_b(m,"class","container foreground svelte-ajt3u"),_b(t,"class","wrapper svelte-ajt3u"),Sb(t,"--frequency",ZS+"ms"),Sb(t,"--foreground-speed",RS+"ms"),Sb(t,"--midground-speed",NS+"ms"),Sb(t,"--background-speed",PS+"ms"),Sb(t,"--container-height",TS+"px"),Sb(t,"--motion",jS),Sb(t,"--foreground-swell",LS),Sb(t,"--midground-swell",zS),Sb(t,"--background-swell",FS),Sb(t,"--foreground-swell-speed",WS+"ms"),Sb(t,"--midground-swell-speed",HS+"ms"),Sb(t,"--background-swell-speed",VS+"ms"),Sb(t,"--foreground-delay",US+"ms"),Sb(t,"--midground-delay",YS+"ms"),Sb(t,"--background-delay",GS+"ms")},m(e,b){ub(e,t,b),ob(t,n),ob(n,r),ob(r,i),ob(i,o),ob(t,a),ob(t,s),ob(s,l),ob(l,c),ob(t,u),ob(t,d),ob(d,f),ob(f,h),ob(t,p),ob(t,m),ob(m,g),ob(g,v)},p:Rv,i:Rv,o:Rv,d(e){e&&db(t)}}}let jS="linear",ZS=7e3,RS=1e4,NS=9500,PS=8600,TS=25,BS=50,$S=75,DS=100,LS=1.2,zS=1.4,FS=1.3,WS=3100,HS=2300,VS=1e3,US=9e3,YS=7900,GS=9100;const qS="var(--wave-foreground-color)",XS="var(--wave-midground-color)",KS="var(--wave-background-color)";function JS(e){return[]}class QS extends vy{constructor(e){super(),gy(this,e,JS,OS,Lv,{},IS)}}function eC(e){ab(e,"svelte-j6z3r6",".modal-header.svelte-j6z3r6.svelte-j6z3r6{box-sizing:border-box;min-height:var(--header-height);color:var(--header-text-color);background:var(--header-background-color);display:grid;grid-template-columns:1fr auto 1fr;gap:var(--space-s);padding:var(--space-m)}.modal-header.svelte-j6z3r6 .slot.svelte-j6z3r6{display:flex;align-items:center}.modal-header.svelte-j6z3r6 .center.svelte-j6z3r6{flex-direction:column;justify-content:space-around;text-align:center}.modal-header.svelte-j6z3r6 .right.svelte-j6z3r6{justify-content:flex-end}.modal-header.svelte-j6z3r6 .svelte-j6z3r6:is(h2, p){color:var(--header-text-color);margin:0;line-height:1.1em}.modal-header.svelte-j6z3r6 h2.svelte-j6z3r6{font-size:var(--fs-3);font-weight:700}.modal-header.svelte-j6z3r6 p.svelte-j6z3r6{font-size:var(--fs-0)}")}const tC=e=>({}),nC=e=>({}),rC=e=>({}),iC=e=>({}),oC=e=>({}),aC=e=>({});function sC(e){let t,n;return t=new AS({props:{icon:"settings",onClick:e[8]}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};16&n&&(r.onClick=e[8]),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function lC(e){let t,n;return t=new AS({props:{icon:"chevron-left",onClick:e[2]}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,n){const r={};4&n&&(r.onClick=e[2]),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function cC(e){let t,n;return{c(){t=hb("p"),n=mb(e[1]),_b(t,"class","svelte-j6z3r6")},m(e,r){ub(e,t,r),ob(t,n)},p(e,t){2&t&&xb(n,e[1])},d(e){e&&db(t)}}}function uC(e){let t,n,r,i,o,a,s,l,c;const u=e[7].left,d=Uv(u,e,e[6],aC),f=d||function(e){let t,n,r,i;const o=[lC,sC],a=[];function s(e,t){return e[2]?0:e[3]?1:-1}return~(t=s(e))&&(n=a[t]=o[t](e)),{c(){n&&n.c(),r=vb()},m(e,n){~t&&a[t].m(e,n),ub(e,r,n),i=!0},p(e,i){let l=t;t=s(e),t===l?~t&&a[t].p(e,i):(n&&(ny(),oy(a[l],1,1,(()=>{a[l]=null})),ry()),~t?(n=a[t],n?n.p(e,i):(n=a[t]=o[t](e),n.c()),iy(n,1),n.m(r.parentNode,r)):n=null)},i(e){i||(iy(n),i=!0)},o(e){oy(n),i=!1},d(e){e&&db(r),~t&&a[t].d(e)}}}(e),h=e[7].center,p=Uv(h,e,e[6],iC),m=p||function(e){let t,n,r,i,o=e[1]&&cC(e);return{c(){t=hb("h2"),n=mb(e[0]),r=gb(),o&&o.c(),i=vb(),_b(t,"class","svelte-j6z3r6")},m(e,a){ub(e,t,a),ob(t,n),ub(e,r,a),o&&o.m(e,a),ub(e,i,a)},p(e,t){1&t&&xb(n,e[0]),e[1]?o?o.p(e,t):(o=cC(e),o.c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)},d(e){e&&(db(t),db(r),db(i)),o&&o.d(e)}}}(e),g=e[7].right,v=Uv(g,e,e[6],nC),b=v||function(e){let t,n;return t=new AS({props:{icon:"close",onClick:e[9]}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p:Rv,i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}(e);return l=new QS({}),{c(){t=hb("div"),n=hb("div"),f&&f.c(),r=gb(),i=hb("div"),m&&m.c(),o=gb(),a=hb("div"),b&&b.c(),s=gb(),fy(l.$$.fragment),_b(n,"class","slot left svelte-j6z3r6"),_b(i,"class","slot center svelte-j6z3r6"),_b(a,"class","slot right svelte-j6z3r6"),_b(t,"class","modal-header svelte-j6z3r6")},m(e,u){ub(e,t,u),ob(t,n),f&&f.m(n,null),ob(t,r),ob(t,i),m&&m.m(i,null),ob(t,o),ob(t,a),b&&b.m(a,null),ub(e,s,u),hy(l,e,u),c=!0},p(e,[t]){d?d.p&&(!c||64&t)&&qv(d,u,e,e[6],c?Gv(u,e[6],t,oC):Xv(e[6]),aC):f&&f.p&&(!c||28&t)&&f.p(e,c?t:-1),p?p.p&&(!c||64&t)&&qv(p,h,e,e[6],c?Gv(h,e[6],t,rC):Xv(e[6]),iC):m&&m.p&&(!c||3&t)&&m.p(e,c?t:-1),v&&v.p&&(!c||64&t)&&qv(v,g,e,e[6],c?Gv(g,e[6],t,tC):Xv(e[6]),nC)},i(e){c||(iy(f,e),iy(m,e),iy(b,e),iy(l.$$.fragment,e),c=!0)},o(e){oy(f,e),oy(m,e),oy(b,e),oy(l.$$.fragment,e),c=!1},d(e){e&&(db(t),db(s)),f&&f.d(e),m&&m.d(e),b&&b.d(e),py(l,e)}}}function dC(e,t,n){let r,i,o;Vv(e,pw,(e=>n(2,r=e))),Vv(e,Gy,(e=>n(3,i=e))),Vv(e,mw,(e=>n(4,o=e)));let{$$slots:a={},$$scope:s}=t,{title:l}=t,{subtitle:c}=t;const u=Bb();return e.$$set=e=>{"title"in e&&n(0,l=e.title),"subtitle"in e&&n(1,c=e.subtitle),"$$scope"in e&&n(6,s=e.$$scope)},[l,c,r,i,o,u,s,a,()=>{tw.push("settings"),Kv(mw,o="rtl",o)},()=>u("cancel")]}class fC extends vy{constructor(e){super(),gy(this,e,dC,uC,Lv,{title:0,subtitle:1},eC)}}function hC(e){ab(e,"svelte-1sehg96",':host dialog.svelte-1sehg96{color-scheme:light;--body-background-color:white;--body-text-color:var(--color-primary-700);--body-text-color-variant:var(--color-neutral-700);--header-background-color:var(--color-primary-700);--header-text-color:var(--color-primary-50);--header-button-background:var(--header-background-color);--header-button-outline:var(--color-primary-900);--button-text-color:var(--wharf-blue);--button-text-color-active:var(--wharf-blue);--button-outline-active:inset 0 0 0 2px var(--button-text-color);--button-primary-background:var(--color-secondary-200);--button-primary-background-hover:var(--color-secondary-200);--button-primary-background-active:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),\n var(--color-secondary-200);--button-primary-outline-hover:inset 0 0 0 1px #00000030,\n inset 0 0 0 1px var(--color-secondary-200);--button-secondary-background:var(--color-custom-1);--button-secondary-background-hover:var(--color-custom-1);--button-secondary-background-active:var(--color-secondary-200);--button-secondary-outline-hover:inset 0 0 0 1px #00000020,\n inset 0 0 0 1px var(--color-secondary-200);--button-outlined-background-active:var(--color-secondary-200);--button-outlined-outline:inset 0 0 0 1px var(--color-secondary-200);--button-outlined-outline-hover:inset 0 0 0 1px #00000020,\n inset 0 0 0 1px var(--color-secondary-200);--input-placeholder-color:var(--color-neutral-500);--input-background-focus:var(--color-neutral-100);--input-border-color:#00000030;--input-border-color-hover:var(--color-custom-5);--input-border-color-focus:var(--wharf-blue);--qr-border-color:inset 0 0 0 1px rgba(0 0 0 / 0.3), inset 0 0 0 1px var(--seafoam-mint);--checkbox-stroke:var(--wharf-blue);--checkbox-fill:var(--reef-turquoise);--error-color:var(--color-error-1);--list-item-background-color-hover:var(--color-custom-9);--list-item-text-color-hover:var(--color-secondary-500);--list-divider-color:#00000010;--text-area-background:var(--swell-mist);--text-area-text-color:#242424;--loading-circle-color:var(--reef-turquoise);--loading-circle-track-color:rgba(0 0 0 / 0.05);--wave-foreground-color:var(--body-background-color);--wave-midground-color:var(--seafoam-mint);--wave-background-color:var(--reef-turquoise)}:host dialog[data-theme=dark].svelte-1sehg96{color-scheme:dark;--body-background-color:var(--color-primary-990);--body-text-color:white;--body-text-color-variant:var(--color-neutral-300);--header-background-color:var(--color-primary-700);--header-text-color:var(--color-primary-50);--header-button-background:var(--header-background-color);--header-button-outline:var(--color-primary-900);--button-text-color:var(--body-text-color);--button-text-color-active:var(--reef-turquoise);--button-outline-active:inset 0 0 0 2px var(--reef-turquoise);--button-primary-background:var(--color-secondary-500);--button-primary-background-hover:var(--color-secondary-500);--button-primary-background-active:var(--color-custom-2);--button-primary-outline-hover:inset 0 0 0 1px white;--button-secondary-background:var(--color-primary-800);--button-secondary-background-hover:var(--color-primary-800);--button-secondary-background-active:var(--color-primary-900);--button-secondary-outline-hover:inset 0 0 0 1px #ffffff30;--button-outlined-background-active:var(--color-primary-900);--button-outlined-outline:inset 0 0 0 1px #00000030;--button-outlined-outline-hover:inset 0 0 0 1px #ffffff30;--input-placeholder-color:#ffffff75;--input-background-focus:var(--color-custom-4);--input-border-color:#ffffff30;--input-border-color-hover:var(--color-custom-6);--input-border-color-focus:var(--reef-turquoise);--qr-border-color:inset 0 0 0 1px rgba(0 0 0 / 0.3);--checkbox-stroke:var(--reef-turquoise);--checkbox-fill:var(--color-custom-3);--error-color:var(--color-error-3);--list-item-background-color-hover:var(--color-custom-8);--list-item-text-color-hover:var(--color-secondary-400);--list-divider-color:#ffffff10;--text-area-background:var(--color-primary-900);--text-area-text-color:#ffffff;--loading-circle-color:var(--seafoam-mint);--loading-circle-track-color:rgba(0 0 0 / 0.05);--wave-foreground-color:var(--body-background-color);--wave-midground-color:#2f3445;--wave-background-color:#3e4356}@media(prefers-color-scheme: dark){:host dialog.svelte-1sehg96{color-scheme:dark;--body-background-color:var(--color-primary-990);--body-text-color:white;--body-text-color-variant:var(--color-neutral-300);--header-background-color:var(--color-primary-700);--header-text-color:var(--color-primary-50);--header-button-background:var(--header-background-color);--header-button-outline:var(--color-primary-900);--button-text-color:var(--body-text-color);--button-text-color-active:var(--reef-turquoise);--button-outline-active:inset 0 0 0 2px var(--reef-turquoise);--button-primary-background:var(--color-secondary-500);--button-primary-background-hover:var(--color-secondary-500);--button-primary-background-active:var(--color-custom-2);--button-primary-outline-hover:inset 0 0 0 1px white;--button-secondary-background:var(--color-primary-800);--button-secondary-background-hover:var(--color-primary-800);--button-secondary-background-active:var(--color-primary-900);--button-secondary-outline-hover:inset 0 0 0 1px #ffffff30;--button-outlined-background-active:var(--color-primary-900);--button-outlined-outline:inset 0 0 0 1px #00000030;--button-outlined-outline-hover:inset 0 0 0 1px #ffffff30;--input-placeholder-color:#ffffff75;--input-background-focus:var(--color-custom-4);--input-border-color:#ffffff30;--input-border-color-hover:var(--color-custom-6);--input-border-color-focus:var(--reef-turquoise);--qr-border-color:inset 0 0 0 1px rgba(0 0 0 / 0.3);--checkbox-stroke:var(--reef-turquoise);--checkbox-fill:var(--color-custom-3);--error-color:var(--color-error-3);--list-item-background-color-hover:var(--color-custom-8);--list-item-text-color-hover:var(--color-secondary-400);--list-divider-color:#ffffff10;--text-area-background:var(--color-primary-900);--text-area-text-color:#ffffff;--loading-circle-color:var(--seafoam-mint);--loading-circle-track-color:rgba(0 0 0 / 0.05);--wave-foreground-color:var(--body-background-color);--wave-midground-color:#2f3445;--wave-background-color:#3e4356}:host dialog[data-theme=light].svelte-1sehg96{color-scheme:light;--body-background-color:white;--body-text-color:var(--color-primary-700);--body-text-color-variant:var(--color-neutral-700);--header-background-color:var(--color-primary-700);--header-text-color:var(--color-primary-50);--header-button-background:var(--header-background-color);--header-button-outline:var(--color-primary-900);--button-text-color:var(--wharf-blue);--button-text-color-active:var(--wharf-blue);--button-outline-active:inset 0 0 0 2px var(--button-text-color);--button-primary-background:var(--color-secondary-200);--button-primary-background-hover:var(--color-secondary-200);--button-primary-background-active:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),\n var(--color-secondary-200);--button-primary-outline-hover:inset 0 0 0 1px #00000030,\n inset 0 0 0 1px var(--color-secondary-200);--button-secondary-background:var(--color-custom-1);--button-secondary-background-hover:var(--color-custom-1);--button-secondary-background-active:var(--color-secondary-200);--button-secondary-outline-hover:inset 0 0 0 1px #00000020,\n inset 0 0 0 1px var(--color-secondary-200);--button-outlined-background-active:var(--color-secondary-200);--button-outlined-outline:inset 0 0 0 1px var(--color-secondary-200);--button-outlined-outline-hover:inset 0 0 0 1px #00000020,\n inset 0 0 0 1px var(--color-secondary-200);--input-placeholder-color:var(--color-neutral-500);--input-background-focus:var(--color-neutral-100);--input-border-color:#00000030;--input-border-color-hover:var(--color-custom-5);--input-border-color-focus:var(--wharf-blue);--qr-border-color:inset 0 0 0 1px rgba(0 0 0 / 0.3), inset 0 0 0 1px var(--seafoam-mint);--checkbox-stroke:var(--wharf-blue);--checkbox-fill:var(--reef-turquoise);--error-color:var(--color-error-1);--list-item-background-color-hover:var(--color-custom-9);--list-item-text-color-hover:var(--color-secondary-500);--list-divider-color:#00000010;--text-area-background:var(--swell-mist);--text-area-text-color:#242424;--loading-circle-color:var(--reef-turquoise);--loading-circle-track-color:rgba(0 0 0 / 0.05);--wave-foreground-color:var(--body-background-color);--wave-midground-color:var(--seafoam-mint);--wave-background-color:var(--reef-turquoise)}}:host dialog.svelte-1sehg96{--wharf-blue:var(--color-primary-700);--reef-turquoise:var(--color-secondary-300);--seafoam-mint:var(--color-secondary-200);--swell-mist:var(--color-accent-50);--color-primary-50:#f6f7f9;--color-primary-100:#ededf1;--color-primary-200:#d6d8e1;--color-primary-300:#b3b8c6;--color-primary-400:#8991a7;--color-primary-500:#6b738c;--color-primary-600:#565c73;--color-primary-700:#494e62;--color-primary-800:#3c4050;--color-primary-900:#363944;--color-primary-990:#252835;--color-secondary-50:#f1fcf9;--color-secondary-100:#cef9ed;--color-secondary-200:#b2f2e1;--color-secondary-300:#7be7ce;--color-secondary-400:#35ccae;--color-secondary-500:#1cb095;--color-secondary-600:#148d79;--color-secondary-700:#147163;--color-secondary-800:#155a51;--color-secondary-900:#164b43;--color-accent-50:#f4faf4;--color-accent-100:#e4f4e5;--color-accent-200:#cae8cc;--color-accent-300:#a1d4a3;--color-accent-400:#70b874;--color-accent-500:#4c9b51;--color-accent-600:#3a7f3e;--color-accent-700:#306534;--color-accent-800:#2a512d;--color-accent-900:#244326;--color-neutral-100:#f7f7f7;--color-neutral-200:#e3e3e3;--color-neutral-300:#c8c8c8;--color-neutral-400:#a4a4a4;--color-neutral-500:#818181;--color-neutral-600:#666666;--color-neutral-700:#515151;--color-neutral-800:#434343;--color-neutral-900:#383838;--color-custom-1:#f3f8f3;--color-custom-2:#415e60;--color-custom-3:#344b4d;--color-custom-4:#3d435a;--color-custom-5:#8ec2b4;--color-custom-6:#777b8b;--color-custom-7:#35ccae10;--color-custom-8:#575c6e;--color-custom-9:#f4f5f7;--color-error-1:#cd3939;--color-error-2:#ff5454;--color-error-3:#ffacac;font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;--measure:35ch;--fs-0:calc(var(--fs-2) * 0.75);--fs-1:calc(var(--fs-2) * 0.875);--fs-2:var(--wharfkit-font-base, 1rem);--fs-3:calc(var(--fs-2) * 1.25);--ratio:1.5;--space-4xs:calc(var(--space-3xs) / var(--ratio));--space-3xs:calc(var(--space-2xs) / var(--ratio));--space-2xs:calc(var(--space-xs) / var(--ratio));--space-xs:calc(var(--space-s) / var(--ratio));--space-s:calc(var(--space-m) / var(--ratio));--space-m:var(--wharfkit-space-base, 1rem);--space-l:calc(var(--space-m) * var(--ratio));--space-xl:calc(var(--space-l) * var(--ratio));--space-2xl:calc(var(--space-xl) * var(--ratio));--space-3xl:calc(var(--space-2xl) * var(--ratio));--space-4xl:calc(var(--space-3xl) * var(--ratio));--space-5xl:calc(var(--space-4xl) * var(--ratio));--space-6xl:calc(var(--space-5xl) * var(--ratio));--space-7xl:calc(var(--space-6xl) * var(--ratio));--space-8xl:calc(var(--space-7xl) * var(--ratio));--space-9xl:calc(var(--space-8xl) * var(--ratio));--border-radius-outer:1.5rem;--border-radius-inner:0.75rem;--header-height:var(--space-3xl)}.svelte-1sehg96{box-sizing:border-box}.svelte-1sehg96::selection{color:var(--wharf-blue);background-color:var(--seafoam-mint)}dialog.svelte-1sehg96{--margin-top:var(--space-xl);font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;margin-bottom:0;margin-top:var(--margin-top);margin-inline:auto;border:none !important;border-radius:var(--border-radius-outer);padding:0;width:min(var(--space-7xl), 100vw - var(--space-m));box-shadow:0px 4px 154px rgba(0, 0, 0, 0.35);background:none}dialog.svelte-1sehg96::backdrop{background:rgba(0, 0, 0, 0.75)}.modal-content.svelte-1sehg96{--max-modal-content-height:calc(\n 100svh - var(--header-height) - var(--margin-top) - var(--margin-top)\n );padding:var(--space-m);background-color:var(--body-background-color);overflow:hidden;overflow-y:scroll;max-height:var(--max-modal-content-height);scrollbar-gutter:stable both-edges;scrollbar-color:var(--header-background-color)}.modal-content.svelte-1sehg96::-webkit-scrollbar{width:2px;background-color:var(--body-background-color)}.modal-content.svelte-1sehg96::-webkit-scrollbar-thumb{background:var(--header-background-color)}')}function pC(e){let t,n,r,i,o,a,s,l;n=new fC({props:{title:e[2].title,subtitle:e[2].subtitle}}),n.$on("cancel",e[3]);const c=e[6].default,u=Uv(c,e,e[5],null);return{c(){t=hb("dialog"),fy(n.$$.fragment),r=gb(),i=hb("div"),u&&u.c(),_b(i,"class","modal-content svelte-1sehg96"),_b(t,"data-theme",o=e[1].theme),_b(t,"class","svelte-1sehg96")},m(o,c){ub(o,t,c),hy(n,t,null),ob(t,r),ob(t,i),u&&u.m(i,null),e[7](t),a=!0,s||(l=bb(t,"mousedown",wb(e[4]),{passive:!1,capture:!0}),s=!0)},p(e,[r]){const i={};4&r&&(i.title=e[2].title),4&r&&(i.subtitle=e[2].subtitle),n.$set(i),u&&u.p&&(!a||32&r)&&qv(u,c,e,e[5],a?Gv(c,e[5],r,null):Xv(e[5]),null),(!a||2&r&&o!==(o=e[1].theme))&&_b(t,"data-theme",o)},i(e){a||(iy(n.$$.fragment,e),iy(u,e),a=!0)},o(e){oy(n.$$.fragment,e),oy(u,e),a=!1},d(r){r&&db(t),py(n),u&&u.d(r),e[7](null),s=!1,l()}}}function mC(e,t,n){let r,i,o;Vv(e,nw,(e=>n(8,r=e))),Vv(e,Xy,(e=>n(1,i=e))),Vv(e,Jy,(e=>n(2,o=e)));let a,{$$slots:s={},$$scope:l}=t;function c(){r.map((e=>e("Modal closed",!0))),Yy.set(!1)}return Tb(Yy.subscribe((e=>{a&&(e&&!a.open?a.showModal():!e&&a.open&&(a.close(),Uy()))}))),document.addEventListener("keydown",(e=>{"Escape"===e.key&&a.open&&c()})),e.$$set=e=>{"$$scope"in e&&n(5,l=e.$$scope)},[a,i,o,c,function(e){var t=a.getBoundingClientRect();t.top<=e.clientY&&e.clientY<=t.top+t.height&&t.left<=e.clientX&&e.clientX<=t.left+t.width||c()},l,s,function(e){Lb[e?"unshift":"push"]((()=>{a=e,n(0,a)}))}]}class gC extends vy{constructor(e){super(),gy(this,e,mC,pC,Lv,{},hC)}}function vC(e){let t;return{c(){t=hb("p"),t.textContent="Modal inactive"},m(e,n){ub(e,t,n)},p:Rv,i:Rv,o:Rv,d(e){e&&db(t)}}}function bC(e){let t,n,r,i;const o=[CC,SC,kC,xC,_C,wC,yC],a=[];function s(e,t){return e[2]?0:e[0]?1:"login"===e[3].path?2:"transact"===e[3].path?3:"settings"===e[3].path?4:"create-account"===e[3].path?5:6}return t=s(e),n=a[t]=o[t](e),{c(){n.c(),r=vb()},m(e,n){a[t].m(e,n),ub(e,r,n),i=!0},p(e,i){let l=t;t=s(e),t===l?a[t].p(e,i):(ny(),oy(a[l],1,1,(()=>{a[l]=null})),ry(),n=a[t],n?n.p(e,i):(n=a[t]=o[t](e),n.c()),iy(n,1),n.m(r.parentNode,r))},i(e){i||(iy(n),i=!0)},o(e){oy(n),i=!1},d(e){e&&db(r),a[t].d(e)}}}function yC(e){let t,n;return t=new U_({}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p:Rv,i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function wC(e){let t,n;return t=new SS({}),t.$on("cancel",e[4]),t.$on("complete",e[5]),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p:Rv,i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function _C(e){let t,n;return t=new nS({}),t.$on("cancel",e[4]),t.$on("complete",e[5]),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p:Rv,i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function xC(e){let t,n;return t=new oS({}),t.$on("cancel",e[4]),t.$on("complete",e[5]),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p:Rv,i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function kC(e){let t,n;return t=new hx({}),t.$on("cancel",e[4]),t.$on("complete",e[5]),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p:Rv,i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function SC(e){let t,n;return t=new wk({}),t.$on("cancel",e[4]),t.$on("complete",e[5]),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p:Rv,i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function CC(e){let t,n;return t=new yw({}),t.$on("cancel",e[4]),t.$on("complete",e[5]),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p:Rv,i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function MC(e){let t,n,r,i;const o=[bC,vC],a=[];function s(e,t){return e[1]?0:1}return t=s(e),n=a[t]=o[t](e),{c(){n.c(),r=vb()},m(e,n){a[t].m(e,n),ub(e,r,n),i=!0},p(e,i){let l=t;t=s(e),t===l?a[t].p(e,i):(ny(),oy(a[l],1,1,(()=>{a[l]=null})),ry(),n=a[t],n?n.p(e,i):(n=a[t]=o[t](e),n.c()),iy(n,1),n.m(r.parentNode,r))},i(e){i||(iy(n),i=!0)},o(e){oy(n),i=!1},d(e){e&&db(r),a[t].d(e)}}}function EC(e){let t,n;return t=new gC({props:{$$slots:{default:[MC]},$$scope:{ctx:e}}}),{c(){fy(t.$$.fragment)},m(e,r){hy(t,e,r),n=!0},p(e,[n]){const r={};1039&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(iy(t.$$.fragment,e),n=!0)},o(e){oy(t.$$.fragment,e),n=!1},d(e){py(t,e)}}}function AC(e,t,n){let r,i,o,a,s,l;Vv(e,iw,(e=>n(0,r=e))),Vv(e,fw,(e=>n(7,i=e))),Vv(e,sw,(e=>n(8,o=e))),Vv(e,Yy,(e=>n(1,a=e))),Vv(e,hw,(e=>n(2,s=e))),Vv(e,tw,(e=>n(3,l=e)));let{i18n:c}=t;var u,d;u="i18n",d=c,Nb().$$.context.set(u,d);return Tb(tw.subscribe((e=>{e&&"login"===e.path?Gy.set(!0):Gy.set(!1)}))),e.$$set=e=>{"i18n"in e&&n(6,c=e.i18n)},[r,a,s,l,function({detail:e}){o&&o.reject(e),r&&(r.reject(e),iw.reset()),tw.back()},function({detail:e}){o&&o.resolve(e),i&&i.resolve(e),r&&(r.resolve(e),iw.reset(),tw.back())},c]}class IC extends vy{constructor(e){super(),gy(this,e,AC,EC,Lv,{i18n:6})}}var OC=Object.defineProperty,jC=Object.defineProperties,ZC=Object.getOwnPropertyDescriptors,RC=Object.getOwnPropertySymbols,NC=Object.prototype.hasOwnProperty,PC=Object.prototype.propertyIsEnumerable,TC=(e,t,n)=>t in e?OC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,BC=(e,t)=>{for(var n in t||(t={}))NC.call(t,n)&&TC(e,n,t[n]);if(RC)for(var n of RC(t))PC.call(t,n)&&TC(e,n,t[n]);return e},$C=(e,t)=>jC(e,ZC(t)),DC=(e,t)=>{var n={};for(var r in e)NC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&RC)for(var r of RC(e))t.indexOf(r)<0&&PC.call(e,r)&&(n[r]=e[r]);return n},LC=["error","warn","debug"],zC=({logger:e=console,level:t=LC[1],prefix:n="[i18n]: "})=>LC.reduce(((r,i,o)=>$C(BC({},r),{[i]:r=>LC.indexOf(t)>=o&&e[i](`${n}${r}`)})),{}),FC=zC({}),WC=e=>{var t=e,{parser:n,key:r,params:i,translations:o,locale:a,fallbackLocale:s}=t,l=DC(t,["parser","key","params","translations","locale","fallbackLocale"]);if(!r)return FC.warn(`No translation key provided ('${a}' locale). Skipping translation...`),"";if(!a)return FC.warn(`No locale provided for '${r}' key. Skipping translation...`),"";let c=(o[a]||{})[r];return s&&void 0===c&&(c=(o[s]||{})[r]),l.hasOwnProperty("fallbackValue")&&void 0===c?l.fallbackValue:n.parse(c,i,a,r)},HC=(...e)=>e.length?e.filter((e=>!!e)).map((e=>{let t=`${e}`.toLowerCase();try{let[n]=Intl.Collator.supportedLocalesOf(e);if(!n)throw new Error;t=n}catch(t){FC.warn(`'${e}' locale is non-standard.`)}return t})):[],VC=(e,t,n)=>Object.keys(e||{}).reduce(((r,i)=>{let o=e[i],a=n?`${n}.${i}`:`${i}`;return t&&Array.isArray(o)?$C(BC({},r),{[a]:o.map((e=>VC(e,t)))}):o&&"object"==typeof o?BC(BC({},r),VC(o,t,a)):$C(BC({},r),{[a]:o})}),{}),UC=async e=>{try{let t=await Promise.all(e.map((e=>{var t=e,{loader:n}=t,r=DC(t,["loader"]);return new Promise((async e=>{let t;try{t=await n()}catch(e){FC.error(`Failed to load translation. Verify your '${r.locale}' > '${r.key}' Loader.`),FC.error(e)}e($C(BC({loader:n},r),{data:t}))}))})));return(e=>e.reduce(((e,{key:t,data:n,locale:r})=>{if(!n)return e;let[i]=HC(r),o=$C(BC({},e[i]||{}),{[t]:n});return $C(BC({},e),{[i]:o})}),{}))(t)}catch(e){FC.error(e)}return{}},YC=(e,t)=>{let n=!0;try{n=Object.keys(e).filter((t=>void 0!==e[t])).every((n=>e[n]===t[n]))}catch(e){}return n},GC=864e5,qC=class{constructor(e){this.cachedAt=0,this.loadedKeys={},this.currentRoute=Hy(),this.config=Hy(),this.isLoading=Hy(!1),this.promises=new Set,this.loading={subscribe:this.isLoading.subscribe,toPromise:(e,t)=>{let{fallbackLocale:n}=Hv(this.config),r=Array.from(this.promises).filter((r=>{let i=YC({locale:HC(e)[0],route:t},r);return n&&(i=i||YC({locale:HC(n)[0],route:t},r)),i})).map((({promise:e})=>e));return Promise.all(r)},get:()=>Hv(this.isLoading)},this.privateRawTranslations=Hy({}),this.rawTranslations={subscribe:this.privateRawTranslations.subscribe,get:()=>Hv(this.rawTranslations)},this.privateTranslations=Hy({}),this.translations={subscribe:this.privateTranslations.subscribe,get:()=>Hv(this.translations)},this.locales=$C(BC({},Vy([this.config,this.privateTranslations],(([e,t])=>{if(!e)return[];let{loaders:n=[]}=e,r=n.map((({locale:e})=>e)),i=Object.keys(t).map((e=>e));return Array.from(new Set([...HC(...r),...HC(...i)]))}),[])),{get:()=>Hv(this.locales)}),this.internalLocale=Hy(),this.loaderTrigger=Vy([this.internalLocale,this.currentRoute],(([e,t],n)=>{var r,i;void 0!==e&&void 0!==t&&(e!==(null==(r=Hv(this.loaderTrigger))?void 0:r[0])||t!==(null==(i=Hv(this.loaderTrigger))?void 0:i[1]))&&(FC.debug("Triggering translation load..."),n([e,t]))}),[]),this.localeHelper=Hy(),this.locale={subscribe:this.localeHelper.subscribe,forceSet:this.localeHelper.set,set:this.internalLocale.set,update:this.internalLocale.update,get:()=>Hv(this.locale)},this.initialized=Vy([this.locale,this.currentRoute,this.privateTranslations],(([e,t,n],r)=>{Hv(this.initialized)||r(void 0!==e&&void 0!==t&&!!Object.keys(n).length)})),this.translation=Vy([this.privateTranslations,this.locale,this.isLoading],(([e,t,n],r)=>{let i=e[t];i&&Object.keys(i).length&&!n&&r(i)}),{}),this.t=$C(BC({},Vy([this.config,this.translation],(e=>{var[t]=e,n=t,{parser:r,fallbackLocale:i}=n,o=DC(n,["parser","fallbackLocale"]);return(e,...t)=>WC(BC({parser:r,key:e,params:t,translations:this.translations.get(),locale:this.locale.get(),fallbackLocale:i},o.hasOwnProperty("fallbackValue")?{fallbackValue:o.fallbackValue}:{}))}))),{get:(e,...t)=>Hv(this.t)(e,...t)}),this.l=$C(BC({},Vy([this.config,this.translations],(e=>{var[t,...n]=e,r=t,{parser:i,fallbackLocale:o}=r,a=DC(r,["parser","fallbackLocale"]),[s]=n;return(e,t,...n)=>WC(BC({parser:i,key:t,params:n,translations:s,locale:e,fallbackLocale:o},a.hasOwnProperty("fallbackValue")?{fallbackValue:a.fallbackValue}:{}))}))),{get:(e,t,...n)=>Hv(this.l)(e,t,...n)}),this.getLocale=e=>{let{fallbackLocale:t}=Hv(this.config)||{},n=e||t;if(!n)return;let r=this.locales.get();return r.find((e=>HC(n).includes(e)))||r.find((e=>HC(t).includes(e)))},this.setLocale=e=>{if(e&&e!==Hv(this.internalLocale))return FC.debug(`Setting '${e}' locale.`),this.internalLocale.set(e),this.loading.toPromise(e,Hv(this.currentRoute))},this.setRoute=e=>{if(e!==Hv(this.currentRoute)){FC.debug(`Setting '${e}' route.`),this.currentRoute.set(e);let t=Hv(this.internalLocale);return this.loading.toPromise(t,e)}},this.loadConfig=async e=>{await this.configLoader(e)},this.getTranslationProps=async(e=this.locale.get(),t=Hv(this.currentRoute))=>{let n=Hv(this.config);if(!n||!e)return[];let r=this.translations.get(),{loaders:i,fallbackLocale:o="",cache:a=GC}=n||{},s=Number.isNaN(+a)?GC:+a;this.cachedAt?Date.now()>s+this.cachedAt&&(FC.debug("Refreshing cache."),this.loadedKeys={},this.cachedAt=0):(FC.debug("Setting cache timestamp."),this.cachedAt=Date.now());let[l,c]=HC(e,o),u=r[l],d=r[c],f=(i||[]).map((e=>{var t=e,{locale:n}=t,r=DC(t,["locale"]);return $C(BC({},r),{locale:HC(n)[0]})})).filter((({routes:e})=>{return!e||(e||[]).some((n=t,e=>{try{if("string"==typeof e)return e===n;if("object"==typeof e)return e.test(n)}catch(e){FC.error("Invalid route config!")}return!1}));var n})).filter((({key:e,locale:t})=>t===l&&(!u||!(this.loadedKeys[l]||[]).includes(e))||o&&t===c&&(!d||!(this.loadedKeys[c]||[]).includes(e))));if(f.length){this.isLoading.set(!0),FC.debug("Fetching translations...");let e=await UC(f);this.isLoading.set(!1);let t=Object.keys(e).reduce(((t,n)=>$C(BC({},t),{[n]:Object.keys(e[n])})),{}),n=f.filter((({key:e,locale:n})=>(t[n]||[]).some((t=>`${t}`.startsWith(e))))).reduce(((e,{key:t,locale:n})=>$C(BC({},e),{[n]:[...e[n]||[],t]})),{});return[e,n]}return[]},this.addTranslations=(e,t)=>{if(!e)return;let n=Hv(this.config),{preprocess:r}=n||{};FC.debug("Adding translations...");let i=Object.keys(e||{});this.privateRawTranslations.update((t=>i.reduce(((t,n)=>$C(BC({},t),{[n]:BC(BC({},t[n]||{}),e[n])})),t))),this.privateTranslations.update((t=>i.reduce(((t,n)=>{let i=!0,o=e[n];return"function"==typeof r&&(o=r(o)),("function"==typeof r||"none"===r)&&(i=!1),$C(BC({},t),{[n]:BC(BC({},t[n]||{}),i?VC(o,"preserveArrays"===r):o)})}),t))),i.forEach((n=>{let r=Object.keys(e[n]).map((e=>`${e}`.split(".")[0]));t&&(r=t[n]),this.loadedKeys[n]=Array.from(new Set([...this.loadedKeys[n]||[],...r||[]]))}))},this.loader=async([e,t])=>{let n=this.getLocale(e)||void 0;FC.debug(`Adding loader promise for '${n}' locale and '${t}' route.`);let r=(async()=>{let e=await this.getTranslationProps(n,t);e.length&&this.addTranslations(...e)})();this.promises.add({locale:n,route:t,promise:r}),r.then((()=>{n&&this.locale.get()!==n&&this.locale.forceSet(n)}))},this.loadTranslations=(e,t=Hv(this.currentRoute)||"")=>{let n=this.getLocale(e);if(n)return this.setRoute(t),this.setLocale(n),this.loading.toPromise(n,t)},this.loaderTrigger.subscribe(this.loader),this.isLoading.subscribe((async e=>{e&&this.promises.size&&(await this.loading.toPromise(),this.promises.clear(),FC.debug("Loader promises have been purged."))})),e&&this.loadConfig(e)}async configLoader(e){if(!e)return FC.error("No config provided!");let t=e,{initLocale:n,fallbackLocale:r,translations:i,log:o}=t,a=DC(t,["initLocale","fallbackLocale","translations","log"]);var s;o&&(s=zC(o),FC=s),[n]=HC(n),[r]=HC(r),FC.debug("Setting config."),this.config.set(BC({initLocale:n,fallbackLocale:r,translations:i},a)),i&&this.addTranslations(i),n&&await this.loadTranslations(n)}},XC=Object.defineProperty,KC=Object.defineProperties,JC=Object.getOwnPropertyDescriptors,QC=Object.getOwnPropertySymbols,eM=Object.prototype.hasOwnProperty,tM=Object.prototype.propertyIsEnumerable,nM=(e,t,n)=>t in e?XC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rM=(e,t)=>{for(var n in t||(t={}))eM.call(t,n)&&nM(e,n,t[n]);if(QC)for(var n of QC(t))tM.call(t,n)&&nM(e,n,t[n]);return e},iM=(e,t)=>KC(e,JC(t)),oM=(e,t)=>{var n={};for(var r in e)eM.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&QC)for(var r of QC(e))t.indexOf(r)<0&&tM.call(e,r)&&(n[r]=e[r]);return n},aM={};((e,t)=>{for(var n in t)XC(e,n,{get:t[n],enumerable:!0})})(aM,{ago:()=>yM,currency:()=>wM,date:()=>mM,eq:()=>lM,gt:()=>dM,gte:()=>hM,lt:()=>uM,lte:()=>fM,ne:()=>cM,number:()=>pM});var sM=(e,t)=>{let{modifierDefaults:n}=t||{},{[e]:r}=n||{};return r||{}},lM=({value:e,options:t=[],defaultValue:n=""})=>(t.find((({key:t})=>`${t}`.toLowerCase()===`${e}`.toLowerCase()))||{}).value||n,cM=({value:e,options:t=[],defaultValue:n=""})=>(t.find((({key:t})=>`${t}`.toLowerCase()!==`${e}`.toLowerCase()))||{}).value||n,uM=({value:e,options:t=[],defaultValue:n=""})=>(t.sort(((e,t)=>+e.key-+t.key)).find((({key:t})=>+e<+t))||{}).value||n,dM=({value:e,options:t=[],defaultValue:n=""})=>(t.sort(((e,t)=>+t.key-+e.key)).find((({key:t})=>+e>+t))||{}).value||n,fM=({value:e,options:t=[],defaultValue:n=""})=>lM({value:e,options:t,defaultValue:uM({value:e,options:t,defaultValue:n})}),hM=({value:e,options:t=[],defaultValue:n=""})=>lM({value:e,options:t,defaultValue:dM({value:e,options:t,defaultValue:n})}),pM=({value:e,props:t,defaultValue:n="",locale:r="",parserOptions:i})=>{if(!r)return"";let o=sM("number",i),{maximumFractionDigits:a}=o,s=oM(o,["maximumFractionDigits"]),l=(null==t?void 0:t.number)||{},{maximumFractionDigits:c=a||2}=l,u=oM(l,["maximumFractionDigits"]);return new Intl.NumberFormat(r,rM(iM(rM({},s),{maximumFractionDigits:c}),u)).format(+e||+n)},mM=({value:e,props:t,defaultValue:n="",locale:r="",parserOptions:i})=>{if(!r)return"";let o=oM(sM("date",i),[]),a=oM((null==t?void 0:t.date)||{},[]);return new Intl.DateTimeFormat(r,rM(rM({},o),a)).format(+e||+n)},gM=[{key:"second",multiplier:1e3},{key:"minute",multiplier:60},{key:"hour",multiplier:60},{key:"day",multiplier:24},{key:"week",multiplier:7},{key:"month",multiplier:13/3},{key:"year",multiplier:12}],vM=(e="",t="")=>new RegExp(`^${e}s?$`).test(t),bM=(e,t)=>gM.reduce((([e,n],{key:r,multiplier:i},o)=>{if(vM(n,t))return[e,n];if(!n||o===(e=>gM.indexOf(gM.find((({key:t})=>vM(t,e)))))(n)+1){let o=Math.round(e/i);if(!n||Math.abs(o)>=1||"auto"!==t)return[o,r]}return[e,n]}),[e,""]),yM=({value:e,defaultValue:t="",locale:n="",props:r,parserOptions:i})=>{if(!n)return"";let o=sM("ago",i),{format:a,numeric:s}=o,l=oM(o,["format","numeric"]),c=(null==r?void 0:r.ago)||{},{format:u=a||"auto",numeric:d=s||"auto"}=c,f=oM(c,["format","numeric"]),h=bM(+e||+t,u);return new Intl.RelativeTimeFormat(n,rM(iM(rM({},l),{numeric:d}),f)).format(...h)},wM=({value:e,defaultValue:t="",locale:n="",props:r,parserOptions:i})=>{if(!n)return"";let o=sM("currency",i),{ratio:a,currency:s}=o,l=oM(o,["ratio","currency"]),c=(null==r?void 0:r.currency)||{},{ratio:u=a||1,currency:d=s}=c,f=oM(c,["ratio","currency"]);return new Intl.NumberFormat(n,rM(iM(rM({},l),{style:"currency",currency:d}),f)).format(u*(e||t))},_M=e=>"string"==typeof e?e.replace(/\\(?=:|;|{|})/g,""):e,xM=({value:e,props:t,payload:n,parserOptions:r,locale:i})=>{if((e=>"string"==typeof e&&/{{(?:(?!{{|}}).)+}}/.test(e))(e)){let o=(({value:e,props:t,payload:n,parserOptions:r,locale:i})=>`${e}`.replace(/{{\s*(?:(?!{{|}}).)+\s*}}/g,(e=>{let o=_M(`${e.match(/(?!{|\s).+?(?!\\[:;]).(?=\s*(?:[:;]|}}$))/)}`),a=null==n?void 0:n[o],[,s=""]=e.match(/.+?(?!\\;).;\s*default\s*:\s*([^\s:;].+?(?:\\[:;]|[^;}])*)(?=\s*(?:;|}}$))/i)||[];s=s||(null==n?void 0:n.default)||"";let[,l=""]=e.match(/{{\s*(?:[^;]|(?:\\;))+\s*(?:(?!\\:).[:])\s*(?!\s)((?:\\;|[^;])+?)(?=\s*(?:[;]|}}$))/i)||[];if(void 0===a&&"ne"!==l)return s;let c=!!l,{customModifiers:u}=r||{},d=rM(rM({},aM),u||{});l=Object.keys(d).includes(l)?l:"eq";let f=d[l],h=(e.match(/[^\s:;{](?:[^;]|\\[;])+[^:;}]/gi)||[]).reduce(((e,t,n)=>{if(n>0){let n=_M(`${t.match(/(?:(?:\\:)|[^:])+/)}`.trim()),r=`${t.match(/(?:(?:\\:)|[^:])+$/)}`.trimStart();if(n&&"default"!==n&&r)return[...e,{key:n,value:r}]}return e}),[]);return c||h.length?f({value:a,options:h,props:t,defaultValue:s,locale:i,parserOptions:r}):a})))({value:e,payload:n,props:t,parserOptions:r,locale:i});return xM({value:o,payload:n,props:t,parserOptions:r,locale:i})}return _M(e)},kM=e=>({parse:(t,[n,r],i,o)=>(null!=n&&n.default&&void 0===t&&(t=n.default),void 0===t&&(t=o),xM({value:t,payload:n,props:r,parserOptions:e,locale:i}))}),SM=Object.defineProperty,CM=Object.defineProperties,MM=Object.getOwnPropertyDescriptors,EM=Object.getOwnPropertySymbols,AM=Object.prototype.hasOwnProperty,IM=Object.prototype.propertyIsEnumerable,OM=(e,t,n)=>t in e?SM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jM=e=>{var t=e,{parserOptions:n={}}=t,r=((e,t)=>{var n={};for(var r in e)AM.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&EM)for(var r of EM(e))t.indexOf(r)<0&&IM.call(e,r)&&(n[r]=e[r]);return n})(t,["parserOptions"]);return((e,t)=>CM(e,MM(t)))(((e,t)=>{for(var n in t||(t={}))AM.call(t,n)&&OM(e,n,t[n]);if(EM)for(var n of EM(t))IM.call(t,n)&&OM(e,n,t[n]);return e})({},r),{parser:kM(n)})},ZM=class extends qC{constructor(e){super(e&&jM(e)),this.loadConfig=e=>super.configLoader(jM(e))}},RM={accept:"Accept",cancel:"Cancel",close:"Close",decline:"Decline",error:{title:"Error",subtitle:"An Error happened."},loading:"Loading…",login:{complete:"Awaiting response from your wallet.",enter:{account:"Enter account name",lookup:"Lookup Account",not_found:"Unable to find account"},select:{account:"Select an available account",blockchain:"Select which blockchain to login with",wallet:"Connect your wallet to login",no_match:"No accounts found matching {{publicKey}}"},title:"Login","title-app":"{{appName}}"},transact:{title:"Transact",subtitle:" ",processing:"Processing transaction…",signing:"Signing transaction",signed:"Transaction signed",broadcasting:"Broadcasting transaction",broadcasted:"Transaction sent"},settings:{title:"Settings",language:{title:"Language"},theme:{title:"Theme",automatic:"Automatic",light:"Light",dark:"Dark"},animations:{title:"Animations",enabled:"Enabled",disabled:"Disabled"},github:"Report an issue on Github",about:{title:"About",version:"Version {{version}}",author:"An open source SDK for Antelope-based blockchains created by Greymass and made possible through funding by the Antelope Coalition (EOS, Telos, UX, and WAX).",link:"Read more about Wharf"}}},NM={accept:"받아들이다",cancel:"취소",close:"닫다",decline:"거절하다",error:{title:"오류",subtitle:"오류가 발생했습니다."},loading:"로드...",login:{complete:"",enter:{account:"Enter account name",lookup:"Lookup Account",not_found:"Unable to find account"},select:{account:"계정 선택",blockchain:"블록체인 선택",wallet:"지갑 선택",no_match:"{{publicKey}}와 일치하는 계정을 찾을 수 없습니다."},title:"로그인","title-app":"{{appName}}에 로그인"},transact:{title:"거래하다",subtitle:" ",processing:"Performing transaction...",signing:"서명 트랜잭션",signed:"트랜잭션 서명",broadcasting:"방송 거래",broadcasted:"거래 방송"},settings:{title:"설정",language:{title:"언어"},theme:{title:"테마",automatic:"자동",light:"밝은 테마",dark:"어두운 테마"},animations:{title:"애니메이션",enabled:"활성화",disabled:"비활성화"},github:"Github에서 문제 보고",about:{title:"정보",version:"{{version}} 버전",author:"",link:"부두에 대해 자세히 알아보기"}}},PM={accept:"接受",cancel:"取消",close:"关闭",decline:"下降",error:{title:"错误",subtitle:"发生错误。"},loading:"加载中。。。",login:{complete:"",enter:{account:"Enter account name",lookup:"Lookup Account",not_found:"Unable to find account"},select:{account:"选择一个帐户",blockchain:"选择一个区块链",wallet:"选择一个钱包",no_match:"未找到与 {{publicKey}} 匹配的帐户。"},title:"登陆","title-app":"登陆到 {{appName}}"},transact:{title:"办理",subtitle:" ",processing:"Performing transaction...",signing:"签署交易",signed:"交易已签署",broadcasting:"广播交易",broadcasted:"交易广播"},settings:{title:"设置",language:{title:"语言"},theme:{title:"主题",automatic:"自动",light:"浅色",dark:"深色"},animations:{title:"动画",enabled:"启用",disabled:"禁用"},github:"在 Github 上报告问题",about:{title:"关于",version:"版本 {{version}}",author:"",link:"阅读更多关于码头的信息"}}},TM={accept:"接受",cancel:"取消",close:"關閉",decline:"下降",error:{title:"錯誤",subtitle:"發生錯誤。"},loading:"裝載。。。",login:{complete:"",enter:{account:"Enter account name",lookup:"Lookup Account",not_found:"Unable to find account"},select:{account:"選擇一個帳戶",blockchain:"選擇一個區塊鏈",wallet:"選擇一個錢包",no_match:"未找到與 {{publicKey}} 匹配的帳戶。"},title:"登錄","title-app":"登錄到 {{appName}}"},transact:{title:"辦理",subtitle:"",processing:"Performing transaction...",signing:"簽署交易",signed:"交易已簽署",broadcasting:"廣播交易",broadcasted:"交易廣播"},settings:{title:"設置",language:{title:"語言"},theme:{title:"主題",automatic:"自動",light:"光",dark:"暗"},animations:{title:"動畫",enabled:"啟用",disabled:"殘"},github:"在 Github 上報告問題",about:{title:"關於",version:"版本 {{version}}",author:"",link:"閱讀更多關於碼頭的資訊"}}};const BM={initLocale:"en",translations:{en:{...Ok,...RM},ko:{...Ok,...NM},zh:{...Ok,...PM},"zh-Hans":{...Ok,...PM},"zh-Hant":{...Ok,...TM}}};new ZM(BM);const $M={id:"wharfkit-web-ui",minimal:!1};class DM extends N.DC{constructor(e=$M){super(),this.elementId="wharfkit-web-ui",this.logging=!1,this.minimal=!1,this.addCancelablePromise=e=>nw.update((t=>[...t,e])),this.element=document.createElement("div"),this.elementId=e.id||$M.id,this.element.id=this.elementId,this.shadow=this.element.attachShadow({mode:"closed"}),this.i18n=((e={})=>{const t={...BM,...e};return new ZM(t)})();let t=(navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language||"en").split("-")[0];this.minimal=e.minimal||!1;const n=Hv(Xy).language;n&&(t=n),void 0!==e.logging&&(this.logging=e.logging),this.log(`Setting language to ${t}`),Xy.update((e=>({...e,language:t}))),this.i18n.loadTranslations(t),"complete"===document.readyState||"interactive"===document.readyState?this.appendDialogElement():document.addEventListener("DOMContentLoaded",(()=>this.appendDialogElement()))}appendDialogElement(){document.getElementById(this.elementId)||(document.body.append(this.element),document.removeEventListener("DOMContentLoaded",(()=>this.appendDialogElement())),new IC({target:this.shadow,props:{i18n:this.i18n}}))}log(...e){this.logging&&console.log("WebRenderer, LOG:",...e)}login(e){this.log("login",e),Yy.set(!0),tw.push("login");const t=(0,k.L5)(new Promise(((e,t)=>sw.set({reject:t,resolve:e}))));return this.addCancelablePromise(t.cancel),aw.set(e),t}async onError(e){const t=e instanceof k.dK,n=t&&!0===e.silent;this.log("onError",{isCancelable:t,isSilent:n,error:e}),n||(this.minimal?Yy.set(!1):(Yy.set(!0),hw.set(String(e.message)),tw.push("error")))}async onAccountCreate(e){this.log("onAccountCreate",e),Yy.set(!0),tw.push("create-account");const t=(0,k.L5)(new Promise(((e,t)=>fw.set({reject:t,resolve:e}))));return this.addCancelablePromise(t.cancel),uw.set(e),t}async onAccountCreateComplete(){this.log("onAccountCreateComplete"),Yy.set(!1),Uy()}async onLogin(){this.log("onLogin"),Yy.set(!0),Jy.update((e=>({...e,title:this.i18n.t.get("login.title",{default:"Login"}),subtitle:""}))),tw.push("login")}async onLoginComplete(){this.log("onLoginResult"),Yy.set(!1),Uy()}async onTransact(){this.log("onTransact"),this.minimal||Yy.set(!0),Jy.update((e=>({...e,title:this.i18n.t.get("transact.title",{default:"Transact"}),subtitle:""}))),tw.push("transact")}async onTransactComplete(){this.log("onTransactResult"),Uy(),Yy.set(!1)}async onSign(){this.log("onSign")}async onSignComplete(){this.log("onSignComplete")}async onBroadcast(){this.log("onBroadcast")}async onBroadcastComplete(){this.log("onBroadcastComplete")}prompt(e){this.log("prompt",e),Yy.set(!0),tw.push("prompt");const t=(0,k.L5)(new Promise(((t,n)=>{iw.set({args:e,resolve:t,reject:n})})),(e=>{throw e}));return this.addCancelablePromise(t.cancel),t}status(e){this.minimal||Yy.set(!0),Jy.update((t=>({...t,subtitle:e})))}translate(e,t,n){return n?this.i18n.t.get(`${n}.${e}`,t):this.i18n.t.get(e,t)}addTranslations(e){this.i18n.addTranslations(e)}}DM.version="1.2.0";var LM=new URL(n(90058),n.b).toString(),zM=new URL(n(34054),n.b).toString(),FM=new URL(n(14268),n.b).toString(),WM=function(){var e=(0,ie.useSelector)((function(e){return e.global.chain})),t=(0,G.useState)(),n=l()(t,2),r=n[0],o=n[1],s=(0,G.useCallback)(a()(i()().mark((function t(){var n,r,a,s,l,u,d,f,h,p,m;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.name,r=e.id.toString(),a=e.url,s="DFSTool",t.t0=n,t.next="DFS"===t.t0?7:"EOS"===t.t0?12:"Jungle 4 (Testnet)"===t.t0?16:20;break;case 7:return l={appName:s,chains:[{id:r,url:a,logo:LM,name:n}],ui:new DM,walletPlugins:[new ne,new T,new ze,new Y,new re.q("5JFL7hToNNUCgHDx3KtGgCpYsFbwZZxdkWuEn8jmNq5SqFJSYyx")]},u={transactPlugins:[new c.Z({actor:"dfs.service",permission:"cpu",privateKey:"5JdBkvZva99uwBanXjGGhF4T7SrLpgTBipU76CD9QN4dFRPuD4N"})]},d=new N.ZP(l,u),o(d),t.abrupt("break",20);case 12:return f={appName:s,chains:[{id:r,url:a,logo:zM,name:n}],ui:new DM,walletPlugins:[new Zv,new ze,new re.q("5JFL7hToNNUCgHDx3KtGgCpYsFbwZZxdkWuEn8jmNq5SqFJSYyx")]},h=new N.ZP(f),o(h),t.abrupt("break",20);case 16:return p={appName:s,chains:[{id:r,url:a,logo:FM,name:n}],ui:new DM,walletPlugins:[new ze,new re.q("5JFL7hToNNUCgHDx3KtGgCpYsFbwZZxdkWuEn8jmNq5SqFJSYyx")]},m=new N.ZP(p),o(m),t.abrupt("break",20);case 20:case"end":return t.stop()}}),t)}))),[e]);return(0,G.useEffect)((function(){e&&s()}),[e,s]),r};function HM(){var e=(0,G.useReducer)((function(e){return e+1}),0);return l()(e,2)[1]}},3990:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"account",effects:{},subscriptions:{},state:{isContract:!1,accountInfo:void 0,creator:"",activeKey:"info",profile:void 0,markets:void 0,tokens:[],nfts:[],liqTokens:[],voter:void 0,authority:[],tokensLoading:!1,nftsLoading:!1,loading:!1,tokensValue:0,nftsValue:0,liqsValue:{balValue:0,reserveValue:0,diffValue:0},txs:[],approvals2:void 0,proposals:void 0,referrer:void 0,relation:void 0,dfsPrice:1},reducers:{setRelation:function(e,t){var n=t.payload;return i()(i()({},e),{},{relation:n})},setReferrer:function(e,t){var n=t.payload;return i()(i()({},e),{},{referrer:n})},setApprovals2:function(e,t){var n=t.payload;return i()(i()({},e),{},{approvals2:n})},setProposals:function(e,t){var n=t.payload;return i()(i()({},e),{},{proposals:n})},setIsContract:function(e,t){var n=t.payload;return i()(i()({},e),{},{isContract:n})},setAccountInfo:function(e,t){var n=t.payload;return i()(i()({},e),{},{accountInfo:n})},setCreator:function(e,t){var n=t.payload;return i()(i()({},e),{},{creator:n})},setActiveKey:function(e,t){var n=t.payload;return i()(i()({},e),{},{activeKey:n})},setProfile:function(e,t){var n=t.payload;return i()(i()({},e),{},{profile:n})},setMarkets:function(e,t){var n=t.payload;return i()(i()({},e),{},{markets:n})},setVoter:function(e,t){var n=t.payload;return i()(i()({},e),{},{voter:n})},setAuthority:function(e,t){var n=t.payload;return i()(i()({},e),{},{authority:n})},setTokens:function(e,t){var n=t.payload;return i()(i()({},e),{},{tokens:n})},setNfts:function(e,t){var n=t.payload;return i()(i()({},e),{},{nfts:n})},setLiqTokens:function(e,t){var n=t.payload;return i()(i()({},e),{},{liqTokens:n})},setTokensLoading:function(e,t){var n=t.payload;return i()(i()({},e),{},{tokensLoading:n})},setNftsLoading:function(e,t){var n=t.payload;return i()(i()({},e),{},{nftsLoading:n})},setTokensValue:function(e,t){var n=t.payload;return i()(i()({},e),{},{tokensValue:n})},setNftsValue:function(e,t){var n=t.payload;return i()(i()({},e),{},{nftsValue:n})},setLiqsValue:function(e,t){var n=t.payload;return i()(i()({},e),{},{liqsValue:n})},setLoading:function(e,t){var n=t.payload;return i()(i()({},e),{},{loading:n})},setTxs:function(e,t){var n=t.payload;return i()(i()({},e),{},{txs:n})},setDfsPrice:function(e,t){var n=t.payload;return i()(i()({},e),{},{dfsPrice:n})}}};var o={setRelation:function(e){return{type:"account/setRelation",payload:e}},setReferrer:function(e){return{type:"account/setReferrer",payload:e}},setApprovals2:function(e){return{type:"account/setApprovals2",payload:e}},setProposals:function(e){return{type:"account/setProposals",payload:e}},setIsContract:function(e){return{type:"account/setIsContract",payload:e}},setAccountInfo:function(e){return{type:"account/setAccountInfo",payload:e}},setCreator:function(e){return{type:"account/setCreator",payload:e}},setActiveKey:function(e){return{type:"account/setActiveKey",payload:e}},setProfile:function(e){return{type:"account/setProfile",payload:e}},setMarkets:function(e){return{type:"account/setMarkets",payload:e}},setVoter:function(e){return{type:"account/setVoter",payload:e}},setAuthority:function(e){return{type:"account/setAuthority",payload:e}},setTokens:function(e){return{type:"account/setTokens",payload:e}},setNfts:function(e){return{type:"account/setNfts",payload:e}},setLiqTokens:function(e){return{type:"account/setLiqTokens",payload:e}},setTokensLoading:function(e){return{type:"account/setTokensLoading",payload:e}},setNftsLoading:function(e){return{type:"account/setNftsLoading",payload:e}},setTokensValue:function(e){return{type:"account/setTokensValue",payload:e}},setNftsValue:function(e){return{type:"account/setNftsValue",payload:e}},setLiqsValue:function(e){return{type:"account/setLiqsValue",payload:e}},setLoading:function(e){return{type:"account/setLoading",payload:e}},setTxs:function(e){return{type:"account/setTxs",payload:e}},setDfsPrice:function(e){return{type:"account/setDfsPrice",payload:e}}}},2460:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"autoclaim",effects:{},subscriptions:{},state:{dataSource:[]},reducers:{setDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{dataSource:n})}}};var o={setDataSource:function(e){return{type:"autoclaim/setDataSource",payload:e}}}},5958:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"bridgelog",effects:{},subscriptions:{},state:{dataSourceIn:[],dataSourceOut:[],inSymFilters:[],outSymFilters:[],inFromFilters:[],outFromFilters:[],inToFilters:[],outToFilters:[]},reducers:{setDataSourceIn:function(e,t){var n=t.payload;return i()(i()({},e),{},{dataSourceIn:n})},setDataSourceOut:function(e,t){var n=t.payload;return i()(i()({},e),{},{dataSourceOut:n})},setInSymFilters:function(e,t){var n=t.payload;return i()(i()({},e),{},{inSymFilters:n})},setOutSymFilters:function(e,t){var n=t.payload;return i()(i()({},e),{},{outSymFilters:n})},setInFromFilters:function(e,t){var n=t.payload;return i()(i()({},e),{},{inFromFilters:n})},setOutFromFilters:function(e,t){var n=t.payload;return i()(i()({},e),{},{outFromFilters:n})},setInToFilters:function(e,t){var n=t.payload;return i()(i()({},e),{},{inToFilters:n})},setOutToFilters:function(e,t){var n=t.payload;return i()(i()({},e),{},{outToFilters:n})}}};var o={setDataSourceIn:function(e){return{type:"bridgelog/setDataSourceIn",payload:e}},setDataSourceOut:function(e){return{type:"bridgelog/setDataSourceOut",payload:e}},setInSymFilters:function(e){return{type:"bridgelog/setInSymFilters",payload:e}},setOutSymFilters:function(e){return{type:"bridgelog/setOutSymFilters",payload:e}},setInFromFilters:function(e){return{type:"bridgelog/setInFromFilters",payload:e}},setOutFromFilters:function(e){return{type:"bridgelog/setOutFromFilters",payload:e}},setInToFilters:function(e){return{type:"bridgelog/setInToFilters",payload:e}},setOutToFilters:function(e){return{type:"bridgelog/setOutToFilters",payload:e}}}},80107:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"contract",effects:{},subscriptions:{},state:{abi:void 0,rawAbi:void 0,contract:void 0,activeKey:"tables",actionType:"",actionSelection:"",tableSelection:"",tableDataSource:[],tableColumns:[],tableByScope:!1,tableParams:{code:"",table:"",scope:void 0,lower_bound:void 0,upper_bound:void 0,limit:100,reverse:void 0,index_position:void 0,key_type:"i64",json:!0,show_payer:void 0,time_limit_ms:100},tableByScopeParams:{code:"",table:"",lower_bound:void 0,upper_bound:void 0,limit:100,reverse:void 0,time_limit_ms:100},batchActions:[],encodeData:void 0,decodeData:void 0,readOnlyData:void 0,fields:[],contextFreeActions:!1,contextFreeData:!1},reducers:{setContextFreeActions:function(e,t){var n=t.payload;return i()(i()({},e),{},{contextFreeActions:n})},setContextFreeData:function(e,t){var n=t.payload;return i()(i()({},e),{},{contextFreeData:n})},setActiveKey:function(e,t){var n=t.payload;return i()(i()({},e),{},{activeKey:n})},setABI:function(e,t){var n=t.payload;return i()(i()({},e),{},{abi:n})},setRawABI:function(e,t){var n=t.payload;return i()(i()({},e),{},{rawAbi:n})},setContract:function(e,t){var n=t.payload;return i()(i()({},e),{},{contract:n})},setActionType:function(e,t){var n=t.payload;return i()(i()({},e),{},{actionType:n})},setActionSelection:function(e,t){var n=t.payload;return i()(i()({},e),{},{actionSelection:n})},setTableSelection:function(e,t){var n=t.payload;return i()(i()({},e),{},{tableSelection:n})},setTableDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{tableDataSource:n})},setTableColumns:function(e,t){var n=t.payload;return i()(i()({},e),{},{tableColumns:n})},setTableByScope:function(e,t){var n=t.payload;return i()(i()({},e),{},{tableByScope:n})},setTableParams:function(e,t){var n=t.payload;return i()(i()({},e),{},{tableParams:n})},setTableByScopeParams:function(e,t){var n=t.payload;return i()(i()({},e),{},{tableByScopeParams:n})},setBatchActions:function(e,t){var n=t.payload;return i()(i()({},e),{},{batchActions:n})},setEncodeData:function(e,t){var n=t.payload;return i()(i()({},e),{},{encodeData:n})},setDecodeData:function(e,t){var n=t.payload;return i()(i()({},e),{},{decodeData:n})},setReadOnlyData:function(e,t){var n=t.payload;return i()(i()({},e),{},{readOnlyData:n})},setFields:function(e,t){var n=t.payload;return i()(i()({},e),{},{fields:n})}}};var o={setContextFreeActions:function(e){return{type:"contract/setContextFreeActions",payload:e}},setContextFreeData:function(e){return{type:"contract/setContextFreeData",payload:e}},setABI:function(e){return{type:"contract/setABI",payload:e}},setRawABI:function(e){return{type:"contract/setRawABI",payload:e}},setActiveKey:function(e){return{type:"contract/setActiveKey",payload:e}},setContract:function(e){return{type:"contract/setContract",payload:e}},setActionType:function(e){return{type:"contract/setActionType",payload:e}},setActionSelection:function(e){return{type:"contract/setActionSelection",payload:e}},setTableSelection:function(e){return{type:"contract/setTableSelection",payload:e}},setTableDataSource:function(e){return{type:"contract/setTableDataSource",payload:e}},setTableColumns:function(e){return{type:"contract/setTableColumns",payload:e}},setTableByScope:function(e){return{type:"contract/setTableByScope",payload:e}},setTableParams:function(e){return{type:"contract/setTableParams",payload:e}},setTableByScopeParams:function(e){return{type:"contract/setTableByScopeParams",payload:e}},setBatchActions:function(e){return{type:"contract/setBatchActions",payload:e}},setEncodeData:function(e){return{type:"contract/setEncodeData",payload:e}},setDecodeData:function(e){return{type:"contract/setDecodeData",payload:e}},setReadOnlyData:function(e){return{type:"contract/setReadOnlyData",payload:e}},setFields:function(e){return{type:"contract/setFields",payload:e}}}},9004:function(e,t,n){"use strict";n.d(t,{N:function(){return f}});var r=n(97857),i=n.n(r),o=JSON.parse(localStorage.getItem("chainInfo")),a=JSON.parse(localStorage.getItem("ramInfo")),s=JSON.parse(localStorage.getItem("nodeInfo")),l=JSON.parse(localStorage.getItem("marketInfo")),c=JSON.parse(localStorage.getItem("supplyInfo")),u=JSON.parse(localStorage.getItem("convertInfo")),d=JSON.parse(localStorage.getItem("bridgeInfo"));o=o||{blockTime:.5,totalBlocks:0,totalAccounts:0,totalContracts:0},a=a||{ramPrice:0,totalRam:0,boughtRam:0,freeRam:0,boughtRamRatio:0,freeRamRatio:0,totalRamStake:0,ramfee:0},s=s||{totalNodes:0,totalProducers:0,totalNodesOnline:0,rewardMinVotes:0,bpRewardPoolBal:0},l=l||{dfsPrice:0,dfsMarketCap:0,swapTVL:0,swapPairs:0,last24hVolumeUsd:0,totalVolumeUsd:0},c=c||{totalMinted:0,maxSupply:1e7,lpRewardPoolBal:0},u=u||{dfsCurrentQuantity:0,dfsMaxQuantity:0,dfsnCurrentQuantity:0,dfsnMaxQuantity:1e6},d=d||{totalValue:0,totalTokens:0},t.Z={namespace:"dash",effects:{},subscriptions:{},state:{chainInfo:o,ramInfo:a,nodeInfo:s,marketInfo:l,supplyInfo:c,convertInfo:u,bridgeInfo:d},reducers:{setChainInfo:function(e,t){var n=t.payload;return localStorage.setItem("chainInfo",JSON.stringify(n)),i()(i()({},e),{},{chainInfo:n})},setRamInfo:function(e,t){var n=t.payload;return localStorage.setItem("ramInfo",JSON.stringify(n)),i()(i()({},e),{},{ramInfo:n})},setNodeInfo:function(e,t){var n=t.payload;return localStorage.setItem("nodeInfo",JSON.stringify(n)),i()(i()({},e),{},{nodeInfo:n})},setMarketInfo:function(e,t){var n=t.payload;return localStorage.setItem("marketInfo",JSON.stringify(n)),i()(i()({},e),{},{marketInfo:n})},setSupplyInfo:function(e,t){var n=t.payload;return localStorage.setItem("supplyInfo",JSON.stringify(n)),i()(i()({},e),{},{supplyInfo:n})},setConvertInfo:function(e,t){var n=t.payload;return localStorage.setItem("convertInfo",JSON.stringify(n)),i()(i()({},e),{},{convertInfo:n})},setBridgeInfo:function(e,t){var n=t.payload;return localStorage.setItem("bridgeInfo",JSON.stringify(n)),i()(i()({},e),{},{bridgeInfo:n})}}};var f={setChainInfo:function(e){return{type:"dash/setChainInfo",payload:e}},setRamInfo:function(e){return{type:"dash/setRamInfo",payload:e}},setNodeInfo:function(e){return{type:"dash/setNodeInfo",payload:e}},setMarketInfo:function(e){return{type:"dash/setMarketInfo",payload:e}},setSupplyInfo:function(e){return{type:"dash/setSupplyInfo",payload:e}},setConvertInfo:function(e){return{type:"dash/setConvertInfo",payload:e}},setBridgeInfo:function(e){return{type:"dash/setBridgeInfo",payload:e}}}},17346:function(e,t,n){"use strict";n.d(t,{N:function(){return s}});var r=n(97857),i=n.n(r),o=JSON.parse(localStorage.getItem("noTips")),a=o||{};t.Z={namespace:"ecosystem",effects:{},subscriptions:{},state:{noTips:a,ecosystem:{},tokenDataSource:[],pppDataSource:[],activeKey:"all"},reducers:{setNoTips:function(e,t){var n=t.payload;return i()(i()({},e),{},{noTips:n})},setActiveKey:function(e,t){var n=t.payload;return i()(i()({},e),{},{activeKey:n})},setEcosystem:function(e,t){var n=t.payload;return i()(i()({},e),{},{ecosystem:n})},setTokenDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{tokenDataSource:n})},setPPPDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{pppDataSource:n})}}};var s={setNoTips:function(e){return{type:"ecosystem/setNoTips",payload:e}},setActiveKey:function(e){return{type:"ecosystem/setActiveKey",payload:e}},setEcosystem:function(e){return{type:"ecosystem/setEcosystem",payload:e}},setTokenDataSource:function(e){return{type:"ecosystem/setTokenDataSource",payload:e}},setPPPDataSource:function(e){return{type:"ecosystem/setPPPDataSource",payload:e}}}},90837:function(e,t,n){"use strict";n.d(t,{N:function(){return h},Z:function(){return f}});var r=n(97857),i=n.n(r),o=JSON.parse('{"000d9cae502dd1cc895745e204f83cc892bc4c450f92a03ecd4fe057709853cc":[{"label":"DFS Hong Kong (官方节点)","value":"https://api.dfs.land"},{"label":"招财猫","value":"https://api.zhaocai.win"},{"label":"DFSOnline-呼和浩特","value":"https://3ht.dfsnode.online"},{"label":"DFS Singapore","value":"https://api.dfs-chain.com"},{"label":"DFS Moon区块链浏览器","value":"https://api.dfsmoon.com"},{"label":"Time is money","value":"https://api.timedfs.uk"},{"label":"dfs never fail","value":"https://mars.stn.bio"},{"label":"至真园","value":"https://api.singaporedfs.com"}],"aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906":[{"label":"TokenPocket","value":"https://eospush.mytokenpocket.vip"},{"label":"Greymass","value":"https://eos.greymass.com"},{"label":"Eosflare","value":"https://api.eosflare.io"}],"73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d":[{"label":"https://jungle4.greymass.com","value":"https://jungle4.greymass.com"},{"label":"https://jungle4.cryptolions.io:443","value":"https://jungle4.cryptolions.io:443"},{"label":"https://jungle4.eosphere.io:443","value":"https://jungle4.eosphere.io:443"},{"label":"https://jungle4.genereos.io:443","value":"https://jungle4.genereos.io:443"}]}'),a=n(64119),s=n(74793),l=n(80507),c=JSON.parse(localStorage.getItem("freeCpu"));c=null===c||c;var u=JSON.parse(localStorage.getItem("chain"));u=u||s.Dn.DFS;var d=JSON.parse(localStorage.getItem("node"));(0,a.Jm)(u,d,o);var f={namespace:"global",effects:{},subscriptions:{},state:{chain:u,session:void 0,accountKit:void 0,contractKit:void 0,account:void 0,freeCpu:c,authority:[],privateKey:l._q.from("5JdBkvZva99uwBanXjGGhF4T7SrLpgTBipU76CD9QN4dFRPuD4N"),node:d,nodes:o,status:"default",host:"https://8.138.81.44"},reducers:{setSession:function(e,t){var n=t.payload;return i()(i()({},e),{},{session:n})},setAccountKit:function(e,t){var n=t.payload;return i()(i()({},e),{},{accountKit:n})},setContractKit:function(e,t){var n=t.payload;return i()(i()({},e),{},{contractKit:n})},setAccount:function(e,t){var n=t.payload;return i()(i()({},e),{},{account:n})},setChain:function(e,t){var n=t.payload;return localStorage.setItem("chain",JSON.stringify({name:n.name,id:n.id.toString(),url:n.url})),i()(i()({},e),{},{chain:n})},setFreeCpu:function(e,t){var n=t.payload;return localStorage.setItem("freeCpu",JSON.stringify(n)),i()(i()({},e),{},{freeCpu:n})},setAuthority:function(e,t){var n=t.payload;return i()(i()({},e),{},{authority:n})},setNode:function(e,t){var n=t.payload;return localStorage.setItem("node",JSON.stringify(n)),i()(i()({},e),{},{node:n})},setStatus:function(e,t){var n=t.payload;return i()(i()({},e),{},{status:n})},setHost:function(e,t){var n=t.payload;return i()(i()({},e),{},{host:n})}}},h={setSession:function(e){return{type:"global/setSession",payload:e}},setAccountKit:function(e){return{type:"global/setAccountKit",payload:e}},setContractKit:function(e){return{type:"global/setContractKit",payload:e}},setAccount:function(e){return{type:"global/setAccount",payload:e}},setChain:function(e){return{type:"global/setChain",payload:e}},setFreeCpu:function(e){return{type:"global/setFreeCpu",payload:e}},setAuthority:function(e){return{type:"global/setAuthority",payload:e}},setNode:function(e){return{type:"global/setNode",payload:e}},setStatus:function(e){return{type:"global/setStatus",payload:e}},setHost:function(e){return{type:"global/setHost",payload:e}}}},81876:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"jiu",effects:{},subscriptions:{},state:{donationDataSource:[],holderDataSource:[],holderDataSourceReset:[],crowdDataSource:[],activeKey:"4",tokenPriceMap:{},dailyAccountDataSource:[],weeklyAccountDataSource:[],monthlyAccountDataSource:[],liqsCache:{},assetsCache:{}},reducers:{setDonationDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{donationDataSource:n})},setHolderDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{holderDataSource:n})},setHolderDataSourceReset:function(e,t){var n=t.payload;return i()(i()({},e),{},{holderDataSourceReset:n})},setDailyAccountDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{dailyAccountDataSource:n})},setWeeklyAccountDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{weeklyAccountDataSource:n})},setMonthlyAccountDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{monthlyAccountDataSource:n})},setCrowdDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{crowdDataSource:n})},setActiveKey:function(e,t){var n=t.payload;return i()(i()({},e),{},{activeKey:n})},setTokenPriceMap:function(e,t){var n=t.payload;return i()(i()({},e),{},{tokenPriceMap:n})},setLiqsCache:function(e,t){var n=t.payload;return i()(i()({},e),{},{liqsCache:n})},setAssetsCache:function(e,t){var n=t.payload;return i()(i()({},e),{},{assetsCache:n})}}};var o={setDonationDataSource:function(e){return{type:"jiu/setDonationDataSource",payload:e}},setHolderDataSource:function(e){return{type:"jiu/setHolderDataSource",payload:e}},setHolderDataSourceReset:function(e){return{type:"jiu/setHolderDataSourceReset",payload:e}},setDailyAccountDataSource:function(e){return{type:"jiu/setDailyAccountDataSource",payload:e}},setWeeklyAccountDataSource:function(e){return{type:"jiu/setWeeklyAccountDataSource",payload:e}},setMonthlyAccountDataSource:function(e){return{type:"jiu/setMonthlyAccountDataSource",payload:e}},setCrowdDataSource:function(e){return{type:"jiu/setCrowdDataSource",payload:e}},setActiveKey:function(e){return{type:"jiu/setActiveKey",payload:e}},setTokenPriceMap:function(e){return{type:"jiu/setTokenPriceMap",payload:e}},setLiqsCache:function(e){return{type:"jiu/setLiqsCache",payload:e}},setAssetsCache:function(e){return{type:"jiu/setAssetsCache",payload:e}}}},25450:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"jiuburn",effects:{},subscriptions:{},state:{dataSource:[],dailyDFSDataSource:[],weeklyDFSDataSource:[],monthlyDFSDataSource:[],dailyJIUDataSource:[],weeklyJIUDataSource:[],monthlyJIUDataSource:[],totals:{buyQuantity:"0.00000000 DFS",buyQuantitySymbol:"DFS",buyQuantityAmount:0,burnQuantity:"0.0000 JIU",burnQuantitySymbol:"JIU",burnQuantityAmount:0,buyCount:0,burnCount:0}},reducers:{setDailyDFSDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{dailyDFSDataSource:n})},setWeeklyDFSDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{weeklyDFSDataSource:n})},setMonthlyDFSDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{monthlyDFSDataSource:n})},setDailyJIUDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{dailyJIUDataSource:n})},setWeeklyJIUDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{weeklyJIUDataSource:n})},setMonthlyJIUDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{monthlyJIUDataSource:n})},setDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{dataSource:n})},setTotals:function(e,t){var n=t.payload;return i()(i()({},e),{},{totals:n})}}};var o={setDailyDFSDataSource:function(e){return{type:"jiuburn/setDailyDFSDataSource",payload:e}},setWeeklyDFSDataSource:function(e){return{type:"jiuburn/setWeeklyDFSDataSource",payload:e}},setMonthlyDFSDataSource:function(e){return{type:"jiuburn/setMonthlyDFSDataSource",payload:e}},setDailyJIUDataSource:function(e){return{type:"jiuburn/setDailyJIUDataSource",payload:e}},setWeeklyJIUDataSource:function(e){return{type:"jiuburn/setWeeklyJIUDataSource",payload:e}},setMonthlyJIUDataSource:function(e){return{type:"jiuburn/setMonthlyJIUDataSource",payload:e}},setDataSource:function(e){return{type:"jiuburn/setDataSource",payload:e}},setTotals:function(e){return{type:"jiuburn/setTotals",payload:e}}}},12247:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"liqlog",effects:{},subscriptions:{},state:{dataSource:[],q0Filters:[],q1Filters:[],bal0Filters:[],bal1Filters:[],userFilters:[],limit:100},reducers:{setDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{dataSource:n})},setQ0Filters:function(e,t){var n=t.payload;return i()(i()({},e),{},{q0Filters:n})},setQ1Filters:function(e,t){var n=t.payload;return i()(i()({},e),{},{q1Filters:n})},setBal0Filters:function(e,t){var n=t.payload;return i()(i()({},e),{},{bal0Filters:n})},setBal1Filters:function(e,t){var n=t.payload;return i()(i()({},e),{},{bal1Filters:n})},setUserFilters:function(e,t){var n=t.payload;return i()(i()({},e),{},{userFilters:n})},setLimit:function(e,t){var n=t.payload;return i()(i()({},e),{},{limit:n})}}};var o={setDataSource:function(e){return{type:"liqlog/setDataSource",payload:e}},setQ0Filters:function(e){return{type:"liqlog/setQ0Filters",payload:e}},setQ1Filters:function(e){return{type:"liqlog/setQ1Filters",payload:e}},setBal0Filters:function(e){return{type:"liqlog/setBal0Filters",payload:e}},setBal1Filters:function(e){return{type:"liqlog/setBal1Filters",payload:e}},setUserFilters:function(e){return{type:"liqlog/setUserFilters",payload:e}},setLimit:function(e){return{type:"liqlog/setLimit",payload:e}}}},49939:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"msig",effects:{},subscriptions:{},state:{myProposals:[],myApprovals2:[],requestedProposals:[],requestedApprovals2:[],searchProposals:[],searchApprovals2:[]},reducers:{setMyProposals:function(e,t){var n=t.payload;return i()(i()({},e),{},{myProposals:n})},setMyApprovals2:function(e,t){var n=t.payload;return i()(i()({},e),{},{myApprovals2:n})},setRequestedProposals:function(e,t){var n=t.payload;return i()(i()({},e),{},{requestedProposals:n})},setRequestedApprovals2:function(e,t){var n=t.payload;return i()(i()({},e),{},{requestedApprovals2:n})},setSearchProposals:function(e,t){var n=t.payload;return i()(i()({},e),{},{searchProposals:n})},setSearchApprovals2:function(e,t){var n=t.payload;return i()(i()({},e),{},{searchApprovals2:n})}}};var o={setMyProposals:function(e){return{type:"msig/setMyProposals",payload:e}},setMyApprovals2:function(e){return{type:"msig/setMyApprovals2",payload:e}},setRequestedProposals:function(e){return{type:"msig/setRequestedProposals",payload:e}},setRequestedApprovals2:function(e){return{type:"msig/setRequestedApprovals2",payload:e}},setSearchProposals:function(e){return{type:"msig/setSearchProposals",payload:e}},setSearchApprovals2:function(e){return{type:"msig/setSearchApprovals2",payload:e}}}},40956:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"ppp",effects:{},subscriptions:{},state:{valueEnum:[],projects:[],project:{tradeFeeRatioValue:0},stats:[],projectOptions:[],projectNft:[],projectNftGrow:[],projectNftGrowCount:99,projectNftRank:[],projectNftReset:[],projectNftRankReset:[],projectNftSupply:0,projectBuyNumber:0,projectSellNumber:0,projectBurnNumber:0,projectSplitNumber:0,projectId:0,projectSecToBurnNft:0,projectSecPerRound:0,projectAccountFilter:[],projectNextRound:{value:0,text:""},projectLastRound:{value:0,text:""},projectNftLoading:!1,projectTotalHolder:0,projectTotalInvest:0,projectTotalProfit:0,projectTotalValue:0,projectProfitRate:0,projectProfitRateSplit:0,projectRewardPool:[],projectEndTime:0,projectToken:{contract:"eosio.token",symbol:"DFS",mid:1,pair:"USDT/DFS"},projectSwapLog:[],pppSwapLog:[],pppTokenLogos:{},vipAccounts:["dfsnetworkio","dfsnetworkbp","testaccount1","testaccount2","testaccount3","ppptothemoon","pppmakegreat","pppisthebest","eulnm3rmodmg","x3bgg3gpyj24","mxxiyrnosfsv","hwpugiimxaw2","jzxxxlunrypu","fp3ndtpgco3p","mym1w1f2mab1","mn5y4klyaigd","x43lhvghc3a4","3sv5ije341p1","elxme1quek5e","ickkhnmxhnlr"],accessAccounts:["dfsnetworkio","dfsnetworkbp","testaccount1","testaccount2","testaccount3","ppptothemoon","pppmakegreat","pppisthebest","eulnm3rmodmg","x3bgg3gpyj24","mxxiyrnosfsv","hwpugiimxaw2","jzxxxlunrypu","fp3ndtpgco3p","mym1w1f2mab1","mn5y4klyaigd","x43lhvghc3a4","3sv5ije341p1","elxme1quek5e","ickkhnmxhnlr","123422343234","ceuow1fqggvo","jiudaojiudao","manjianetvip","manjianetmkt","beacqvxxtryr","iloveugzhiyi","kujv3ucfrgkf","ef3pjjgwxvbq","dfsismemegod","iloveblowjob","thechosenone","elonmuskcool","formyferrari","doitjustdoit","555555111111","111111111111","dfspppxzcbtc","justdoittttt","godogsgogogo"]},reducers:{setValueEnum:function(e,t){var n=t.payload;return i()(i()({},e),{},{valueEnum:n})},setProjects:function(e,t){var n=t.payload;return i()(i()({},e),{},{projects:n})},setProject:function(e,t){var n=t.payload;return i()(i()({},e),{},{project:n})},setStats:function(e,t){var n=t.payload;return i()(i()({},e),{},{stats:n})},setProjectOptions:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectOptions:n})},setProjectNft:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectNft:n})},setProjectNftRank:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectNftRank:n})},setProjectNftGrow:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectNftGrow:n})},setProjectNftCount:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectNftCount:n})},setProjectNftReset:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectNftReset:n})},setProjectNftRankReset:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectNftRankReset:n})},setProjectNftSupply:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectNftSupply:n})},setProjectBuyNumber:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectBuyNumber:n})},setProjectSellNumber:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectSellNumber:n})},setProjectSplitNumber:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectSplitNumber:n})},setProjectBurnNumber:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectBurnNumber:n})},setProjectId:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectId:n})},setProjectSecToBurnNft:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectSecToBurnNft:n})},setProjectAccountFilter:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectAccountFilter:n})},setProjectNextRound:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectNextRound:n})},setProjectLastRound:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectLastRound:n})},setProjectSecPerRound:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectSecPerRound:n})},setProjectNftLoading:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectNftLoading:n})},setProjectTotalHolder:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectTotalHolder:n})},setProjectTotalInvest:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectTotalInvest:n})},setProjectTotalProfit:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectTotalProfit:n})},setProjectTotalValue:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectTotalValue:n})},setProjectProfitRate:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectProfitRate:n})},setProjectProfitRateSplit:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectProfitRateSplit:n})},setProjectRewardPool:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectRewardPool:n})},setProjectEndTime:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectEndTime:n})},setProjectToken:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectToken:n})},setProjectSwapLog:function(e,t){var n=t.payload;return i()(i()({},e),{},{projectSwapLog:n})},setPPPSwapLog:function(e,t){var n=t.payload;return i()(i()({},e),{},{pppSwapLog:n})},setPPPTokenLogos:function(e,t){var n=t.payload;return i()(i()({},e),{},{pppTokenLogos:n})}}};var o={setValueEnum:function(e){return{type:"ppp/setValueEnum",payload:e}},setProjects:function(e){return{type:"ppp/setProjects",payload:e}},setProject:function(e){return{type:"ppp/setProject",payload:e}},setStats:function(e){return{type:"ppp/setStats",payload:e}},setProjectOptions:function(e){return{type:"ppp/setProjectOptions",payload:e}},setProjectNft:function(e){return{type:"ppp/setProjectNft",payload:e}},setProjectNftRank:function(e){return{type:"ppp/setProjectNftRank",payload:e}},setProjectNftGrow:function(e){return{type:"ppp/setProjectNftGrow",payload:e}},setProjectNftGrowCount:function(e){return{type:"ppp/setProjectNftGrowCount",payload:e}},setProjectNftReset:function(e){return{type:"ppp/setProjectNftReset",payload:e}},setProjectNftRankReset:function(e){return{type:"ppp/setProjectNftRankReset",payload:e}},setProjectNftSupply:function(e){return{type:"ppp/setProjectNftSupply",payload:e}},setProjectBuyNumber:function(e){return{type:"ppp/setProjectBuyNumber",payload:e}},setProjectSellNumber:function(e){return{type:"ppp/setProjectSellNumber",payload:e}},setProjectSplitNumber:function(e){return{type:"ppp/setProjectSplitNumber",payload:e}},setProjectBurnNumber:function(e){return{type:"ppp/setProjectBurnNumber",payload:e}},setProjectId:function(e){return{type:"ppp/setProjectId",payload:e}},setProjectSecToBurnNft:function(e){return{type:"ppp/setProjectSecToBurnNft",payload:e}},setProjectAccountFilter:function(e){return{type:"ppp/setProjectAccountFilter",payload:e}},setProjectNextRound:function(e){return{type:"ppp/setProjectNextRound",payload:e}},setProjectLastRound:function(e){return{type:"ppp/setProjectLastRound",payload:e}},setProjectSecPerRound:function(e){return{type:"ppp/setProjectSecPerRound",payload:e}},setProjectNftLoading:function(e){return{type:"ppp/setProjectNftLoading",payload:e}},setProjectTotalHolder:function(e){return{type:"ppp/setProjectTotalHolder",payload:e}},setProjectTotalInvest:function(e){return{type:"ppp/setProjectTotalInvest",payload:e}},setProjectTotalProfit:function(e){return{type:"ppp/setProjectTotalProfit",payload:e}},setProjectTotalValue:function(e){return{type:"ppp/setProjectTotalValue",payload:e}},setProjectProfitRate:function(e){return{type:"ppp/setProjectProfitRate",payload:e}},setProjectProfitRateSplit:function(e){return{type:"ppp/setProjectProfitRateSplit",payload:e}},setProjectRewardPool:function(e){return{type:"ppp/setProjectRewardPool",payload:e}},setProjectEndTime:function(e){return{type:"ppp/setProjectEndTime",payload:e}},setProjectToken:function(e){return{type:"ppp/setProjectToken",payload:e}},setProjectSwapLog:function(e){return{type:"ppp/setProjectSwapLog",payload:e}},setPPPSwapLog:function(e){return{type:"ppp/setPPPSwapLog",payload:e}},setPPPTokenLogos:function(e){return{type:"ppp/setPPPTokenLogos",payload:e}}}},5621:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"statistics",effects:{},subscriptions:{},state:{dailyAccountDataSource:[],weeklyAccountDataSource:[],monthlyAccountDataSource:[],minuteDataSource:[],minuteApyDataSource:[],minuteNodeDataSource:[],hourDataSource:[],holderDataSource:[],holderDataSourceReset:[],token:{contract:"eosio.token",symbol:"DFS",mid:1,pair:"USDT/DFS"}},reducers:{setMinuteDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{minuteDataSource:n})},setMinuteApyDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{minuteApyDataSource:n})},setMinuteNodeDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{minuteNodeDataSource:n})},setHourDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{hourDataSource:n})},setDailyAccountDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{dailyAccountDataSource:n})},setWeeklyAccountDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{weeklyAccountDataSource:n})},setMonthlyAccountDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{monthlyAccountDataSource:n})},setHolderDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{holderDataSource:n})},setHolderDataSourceReset:function(e,t){var n=t.payload;return i()(i()({},e),{},{holderDataSourceReset:n})},setToken:function(e,t){var n=t.payload;return i()(i()({},e),{},{token:n})}}};var o={setMinuteDataSource:function(e){return{type:"statistics/setMinuteDataSource",payload:e}},setMinuteApyDataSource:function(e){return{type:"statistics/setMinuteApyDataSource",payload:e}},setMinuteNodeDataSource:function(e){return{type:"statistics/setMinuteNodeDataSource",payload:e}},setHourDataSource:function(e){return{type:"statistics/setHourDataSource",payload:e}},setDailyAccountDataSource:function(e){return{type:"statistics/setDailyAccountDataSource",payload:e}},setWeeklyAccountDataSource:function(e){return{type:"statistics/setWeeklyAccountDataSource",payload:e}},setMonthlyAccountDataSource:function(e){return{type:"statistics/setMonthlyAccountDataSource",payload:e}},setHolderDataSource:function(e){return{type:"statistics/setHolderDataSource",payload:e}},setHolderDataSourceReset:function(e){return{type:"statistics/setHolderDataSourceReset",payload:e}},setToken:function(e){return{type:"statistics/setToken",payload:e}}}},52272:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"swaplog",effects:{},subscriptions:{},state:{dataSource:[],dailyDataSource:[],inFilters:[],outFilters:[],userFilters:[],limit:100,days:3},reducers:{setDailyDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{dailyDataSource:n})},setDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{dataSource:n})},setInFilters:function(e,t){var n=t.payload;return i()(i()({},e),{},{inFilters:n})},setOutFilters:function(e,t){var n=t.payload;return i()(i()({},e),{},{outFilters:n})},setUserFilters:function(e,t){var n=t.payload;return i()(i()({},e),{},{userFilters:n})},setLimit:function(e,t){var n=t.payload;return i()(i()({},e),{},{limit:n})},setDays:function(e,t){var n=t.payload;return i()(i()({},e),{},{days:n})}}};var o={setDailyDataSource:function(e){return{type:"swaplog/setDailyDataSource",payload:e}},setDataSource:function(e){return{type:"swaplog/setDataSource",payload:e}},setInFilters:function(e){return{type:"swaplog/setInFilters",payload:e}},setOutFilters:function(e){return{type:"swaplog/setOutFilters",payload:e}},setUserFilters:function(e){return{type:"swaplog/setUserFilters",payload:e}},setLimit:function(e){return{type:"swaplog/setLimit",payload:e}},setDays:function(e){return{type:"swaplog/setDays",payload:e}}}},90098:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"transaction",effects:{},subscriptions:{},state:{txid:"",activeKey:"summary",transaction:void 0,transactionTrace:void 0,loading:!1,totalActions:0,totalTraces:0},reducers:{setTxid:function(e,t){var n=t.payload;return i()(i()({},e),{},{txid:n})},setActiveKey:function(e,t){var n=t.payload;return i()(i()({},e),{},{activeKey:n})},setTransaction:function(e,t){var n=t.payload;return i()(i()({},e),{},{transaction:n})},setTransactionTrace:function(e,t){var n=t.payload;return i()(i()({},e),{},{transactionTrace:n})},setLoading:function(e,t){var n=t.payload;return i()(i()({},e),{},{loading:n})},setTotalActions:function(e,t){var n=t.payload;return i()(i()({},e),{},{totalActions:n})},setTotalTraces:function(e,t){var n=t.payload;return i()(i()({},e),{},{totalTraces:n})}}};var o={setTxid:function(e){return{type:"transaction/setTxid",payload:e}},setActiveKey:function(e){return{type:"transaction/setActiveKey",payload:e}},setTransaction:function(e){return{type:"transaction/setTransaction",payload:e}},setTransactionTrace:function(e){return{type:"transaction/setTransactionTrace",payload:e}},setLoading:function(e){return{type:"transaction/setLoading",payload:e}},setTotalActions:function(e){return{type:"transaction/setTotalActions",payload:e}},setTotalTraces:function(e){return{type:"transaction/setTotalTraces",payload:e}}}},18008:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"transfer",effects:{},subscriptions:{},state:{valueEnum:[]},reducers:{setValueEnum:function(e,t){var n=t.payload;return i()(i()({},e),{},{valueEnum:n})}}};var o={setValueEnum:function(e){return{type:"transfer/setValueEnum",payload:e}}}},19601:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"vote",effects:{},subscriptions:{},state:{nodeDataSource:[],producerDataSource1:[],producerDataSource2:[],kingDataSource:[],responseTime:{},bonusDataSource:[],searchNode:"",summary:{node:"",totalVoters:0,totalVotes:0,totalRatio:0,totalBonus:0}},reducers:{setNodeDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{nodeDataSource:n})},setBonusDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{bonusDataSource:n})},setProducerDataSource1:function(e,t){var n=t.payload;return i()(i()({},e),{},{producerDataSource1:n})},setProducerDataSource2:function(e,t){var n=t.payload;return i()(i()({},e),{},{producerDataSource2:n})},setKingDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{kingDataSource:n})},setResponseTime:function(e,t){var n=t.payload;return i()(i()({},e),{},{responseTime:n})},setSummary:function(e,t){var n=t.payload;return i()(i()({},e),{},{summary:n})}}};var o={setNodeDataSource:function(e){return{type:"vote/setNodeDataSource",payload:e}},setBonusDataSource:function(e){return{type:"vote/setBonusDataSource",payload:e}},setProducerDataSource1:function(e){return{type:"vote/setProducerDataSource1",payload:e}},setProducerDataSource2:function(e){return{type:"vote/setProducerDataSource2",payload:e}},setKingDataSource:function(e){return{type:"vote/setKingDataSource",payload:e}},setResponseTime:function(e){return{type:"vote/setResponseTime",payload:e}},setSummary:function(e){return{type:"vote/setSummary",payload:e}}}},38592:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(97857),i=n.n(r);t.Z={namespace:"wallet",effects:{},subscriptions:{},state:{dataSource:[],wallets:[],locks:{},abi:void 0,rawAbi:void 0,contract:void 0,activeKey:"actions",actionType:"",actionSelection:"",batchActions:[],fields:[],freeCpu:!0},reducers:{setDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{dataSource:n})},setWallets:function(e,t){var n=t.payload;return i()(i()({},e),{},{wallets:n})},setLocks:function(e,t){var n=t.payload;return i()(i()({},e),{},{locks:n})},setActiveKey:function(e,t){var n=t.payload;return i()(i()({},e),{},{activeKey:n})},setABI:function(e,t){var n=t.payload;return i()(i()({},e),{},{abi:n})},setRawABI:function(e,t){var n=t.payload;return i()(i()({},e),{},{rawAbi:n})},setContract:function(e,t){var n=t.payload;return i()(i()({},e),{},{contract:n})},setActionType:function(e,t){var n=t.payload;return i()(i()({},e),{},{actionType:n})},setActionSelection:function(e,t){var n=t.payload;return i()(i()({},e),{},{actionSelection:n})},setBatchActions:function(e,t){var n=t.payload;return i()(i()({},e),{},{batchActions:n})},setFields:function(e,t){var n=t.payload;return i()(i()({},e),{},{fields:n})},setFreeCpu:function(e,t){var n=t.payload;return i()(i()({},e),{},{freeCpu:n})}}};var o={setDataSource:function(e){return{type:"wallet/setDataSource",payload:e}},setWallets:function(e){return{type:"wallet/setWallets",payload:e}},setLocks:function(e){return{type:"wallet/setLocks",payload:e}},setABI:function(e){return{type:"wallet/setABI",payload:e}},setRawABI:function(e){return{type:"wallet/setRawABI",payload:e}},setActiveKey:function(e){return{type:"wallet/setActiveKey",payload:e}},setContract:function(e){return{type:"wallet/setContract",payload:e}},setActionType:function(e){return{type:"wallet/setActionType",payload:e}},setActionSelection:function(e){return{type:"wallet/setActionSelection",payload:e}},setBatchActions:function(e){return{type:"wallet/setBatchActions",payload:e}},setFields:function(e){return{type:"wallet/setFields",payload:e}},setFreeCpu:function(e){return{type:"wallet/setFreeCpu",payload:e}}}},31120:function(e,t,n){"use strict";n.d(t,{Q:function(){return _r},db:function(){return kr}});var r=n(15009),i=n.n(r),o=n(99289),a=n.n(o),s=n(72004),l=n.n(s),c=n(12444),u=n.n(c),d=n(25098),f=n.n(d),h=n(31996),p=n.n(h),m=n(26037),g=n.n(m),v=n(9783),b=n.n(v);const y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,w=Object.keys,_=Array.isArray;function x(e,t){return"object"!=typeof t||w(t).forEach((function(n){e[n]=t[n]})),e}"undefined"==typeof Promise||y.Promise||(y.Promise=Promise);const k=Object.getPrototypeOf,S={}.hasOwnProperty;function C(e,t){return S.call(e,t)}function M(e,t){"function"==typeof t&&(t=t(k(e))),("undefined"==typeof Reflect?w:Reflect.ownKeys)(t).forEach((n=>{A(e,n,t[n])}))}const E=Object.defineProperty;function A(e,t,n,r){E(e,t,x(n&&C(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function I(e){return{from:function(t){return e.prototype=Object.create(t.prototype),A(e.prototype,"constructor",e),{extend:M.bind(null,e.prototype)}}}}const O=Object.getOwnPropertyDescriptor;function j(e,t){let n;return O(e,t)||(n=k(e))&&j(n,t)}const Z=[].slice;function R(e,t,n){return Z.call(e,t,n)}function N(e,t){return t(e)}function P(e){if(!e)throw new Error("Assertion Failed")}function T(e){y.setImmediate?setImmediate(e):setTimeout(e,0)}function B(e,t){return e.reduce(((e,n,r)=>{var i=t(n,r);return i&&(e[i[0]]=i[1]),e}),{})}function $(e,t){if("string"==typeof t&&C(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,i=t.length;r["Int","Uint","Float"].map((t=>t+e+"Array")))))).filter((e=>y[e])),H=W.map((e=>y[e]));B(W,(e=>[e,!0]));let V=null;function U(e){V="undefined"!=typeof WeakMap&&new WeakMap;const t=Y(e);return V=null,t}function Y(e){if(!e||"object"!=typeof e)return e;let t=V&&V.get(e);if(t)return t;if(_(e)){t=[],V&&V.set(e,t);for(var n=0,r=e.length;n=0)t=e;else{const n=k(e);for(var i in t=n===Object.prototype?{}:Object.create(n),V&&V.set(e,t),e)C(e,i)&&(t[i]=Y(e[i]))}return t}const{toString:G}={};function q(e){return G.call(e).slice(8,-1)}const X="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",K="symbol"==typeof X?function(e){var t;return null!=e&&(t=e[X])&&t.apply(e)}:function(){return null},J={};function Q(e){var t,n,r,i;if(1===arguments.length){if(_(e))return e.slice();if(this===J&&"string"==typeof e)return[e];if(i=K(e)){for(n=[];!(r=i.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}const ee="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var te="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function ne(e,t){te=e,re=t}var re=()=>!0;const ie=!new Error("").stack;function oe(){if(ie)try{throw oe.arguments,new Error}catch(e){return e}return new Error}function ae(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(re).map((e=>"\n"+e)).join("")):""}var se=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],le=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(se),ce={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function ue(e,t){this._e=oe(),this.name=e,this.message=t}function de(e,t){return e+". Errors: "+Object.keys(t).map((e=>t[e].toString())).filter(((e,t,n)=>n.indexOf(e)===t)).join("\n")}function fe(e,t,n,r){this._e=oe(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=de(e,t)}function he(e,t){this._e=oe(),this.name="BulkError",this.failures=Object.keys(t).map((e=>t[e])),this.failuresByPos=t,this.message=de(e,t)}I(ue).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+ae(this._e,2))}},toString:function(){return this.name+": "+this.message}}),I(fe).from(ue),I(he).from(ue);var pe=le.reduce(((e,t)=>(e[t]=t+"Error",e)),{});const me=ue;var ge=le.reduce(((e,t)=>{var n=t+"Error";function r(e,r){this._e=oe(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=ce[t]||n,this.inner=null)}return I(r).from(me),e[t]=r,e}),{});ge.Syntax=SyntaxError,ge.Type=TypeError,ge.Range=RangeError;var ve=se.reduce(((e,t)=>(e[t+"Error"]=ge[t],e)),{}),be=le.reduce(((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=ge[t]),e)),{});function ye(){}function we(e){return e}function _e(e,t){return null==e||e===we?t:function(n){return t(e(n))}}function xe(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function ke(e,t){return e===ye?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?xe(r,this.onsuccess):r),i&&(this.onerror=this.onerror?xe(i,this.onerror):i),void 0!==o?o:n}}function Se(e,t){return e===ye?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?xe(n,this.onsuccess):n),r&&(this.onerror=this.onerror?xe(r,this.onerror):r)}}function Ce(e,t){return e===ye?t:function(n){var r=e.apply(this,arguments);x(n,r);var i=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?xe(i,this.onsuccess):i),o&&(this.onerror=this.onerror?xe(o,this.onerror):o),void 0===r?void 0===a?void 0:a:x(r,a)}}function Me(e,t){return e===ye?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function Ee(e,t){return e===ye?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,i=arguments.length,o=new Array(i);i--;)o[i]=arguments[i];return n.then((function(){return t.apply(r,o)}))}return t.apply(this,arguments)}}be.ModifyError=fe,be.DexieError=ue,be.BulkError=he;var Ae={};const[Ie,Oe,je]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,k(e),e];const t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,k(t),e]})(),Ze=Oe&&Oe.then,Re=Ie&&Ie.constructor,Ne=!!je;var Pe=!1,Te=je?()=>{je.then(ot)}:y.setImmediate?setImmediate.bind(null,ot):y.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver((()=>{ot(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(ot,0)},Be=function(e,t){Ue.push([e,t]),De&&(Te(),De=!1)},$e=!0,De=!0,Le=[],ze=[],Fe=null,We=we,He={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Ot,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((e=>{try{Ot(e[0],e[1])}catch(e){}}))}},Ve=He,Ue=[],Ye=0,Ge=[];function qe(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ye,this._lib=!1;var t=this._PSD=Ve;if(te&&(this._stackHolder=oe(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==Ae)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Qe(this,this._value))}this._state=null,this._value=null,++t.ref,Je(this,e)}const Xe={get:function(){var e=Ve,t=mt;function n(n,r){var i=!e.global&&(e!==Ve||t!==mt);const o=i&&!yt();var a=new qe(((t,a)=>{tt(this,new Ke(Et(n,e,i,o),Et(r,e,i,o),t,a,e))}));return te&&it(a,this),a}return n.prototype=Ae,n},set:function(e){A(this,"then",e&&e.prototype===Ae?Xe:{get:function(){return e},set:Xe.set})}};function Ke(e,t,n,r,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=i}function Je(e,t){try{t((t=>{if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&at();t&&"function"==typeof t.then?Je(e,((e,n)=>{t instanceof qe?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,et(e)),n&&st()}}),Qe.bind(null,e))}catch(t){Qe(e,t)}}function Qe(e,t){if(ze.push(t),null===e._state){var n=e._lib&&at();t=We(t),e._state=!1,e._value=t,te&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,void 0)}catch(e){}}((()=>{var n=j(t,"stack");t._promise=e,A(t,"stack",{get:()=>Pe?n&&(n.get?n.get.apply(t):n.value):e.stack})})),function(e){Le.some((t=>t._value===e._value))||Le.push(e)}(e),et(e),n&&st()}}function et(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n{0==--Ye&<()}),[]))}function tt(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++Ye,Be(nt,[n,e,t])}else e._listeners.push(t)}function nt(e,t,n){try{Fe=t;var r,i=t._value;t._state?r=e(i):(ze.length&&(ze=[]),r=e(i),-1===ze.indexOf(i)&&function(e){for(var t=Le.length;t;)if(Le[--t]._value===e._value)return void Le.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{Fe=null,0==--Ye&<(),--n.psd.ref||n.psd.finalize()}}function rt(e,t,n){if(t.length===n)return t;var r="";if(!1===e._state){var i,o,a=e._value;null!=a?(i=a.name||"Error",o=a.message||a,r=ae(a,0)):(i=a,o=""),t.push(i+(o?": "+o:"")+r)}return te&&((r=ae(e._stackHolder,2))&&-1===t.indexOf(r)&&t.push(r),e._prev&&rt(e._prev,t,n)),t}function it(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function ot(){at()&&st()}function at(){var e=$e;return $e=!1,De=!1,e}function st(){var e,t,n;do{for(;Ue.length>0;)for(e=Ue,Ue=[],n=e.length,t=0;t0);$e=!0,De=!0}function lt(){var e=Le;Le=[],e.forEach((e=>{e._PSD.onunhandled.call(null,e._value,e)}));for(var t=Ge.slice(0),n=t.length;n;)t[--n]()}function ct(e){return new qe(Ae,!1,e)}function ut(e,t){var n=Ve;return function(){var r=at(),i=Ve;try{return kt(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{kt(i,!1),r&&st()}}}M(qe.prototype,{then:Xe,_then:function(e,t){tt(this,new Ke(null,null,e,t,Ve))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,(e=>e instanceof t?n(e):ct(e))):this.then(null,(e=>e&&e.name===t?n(e):ct(e)))},finally:function(e){return this.then((t=>(e(),t)),(t=>(e(),ct(t))))},stack:{get:function(){if(this._stack)return this._stack;try{Pe=!0;var e=rt(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{Pe=!1}}},timeout:function(e,t){return e<1/0?new qe(((n,r)=>{var i=setTimeout((()=>r(new ge.Timeout(t))),e);this.then(n,r).finally(clearTimeout.bind(null,i))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&A(qe.prototype,Symbol.toStringTag,"Dexie.Promise"),He.env=St(),M(qe,{all:function(){var e=Q.apply(null,arguments).map(wt);return new qe((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach(((i,o)=>qe.resolve(i).then((n=>{e[o]=n,--r||t(e)}),n)))}))},resolve:e=>{if(e instanceof qe)return e;if(e&&"function"==typeof e.then)return new qe(((t,n)=>{e.then(t,n)}));var t=new qe(Ae,!0,e);return it(t,Fe),t},reject:ct,race:function(){var e=Q.apply(null,arguments).map(wt);return new qe(((t,n)=>{e.map((e=>qe.resolve(e).then(t,n)))}))},PSD:{get:()=>Ve,set:e=>Ve=e},totalEchoes:{get:()=>mt},newPSD:vt,usePSD:Ct,scheduler:{get:()=>Be,set:e=>{Be=e}},rejectionMapper:{get:()=>We,set:e=>{We=e}},follow:(e,t)=>new qe(((n,r)=>vt(((t,n)=>{var r=Ve;r.unhandleds=[],r.onunhandled=n,r.finalize=xe((function(){!function(e){Ge.push((function t(){e(),Ge.splice(Ge.indexOf(t),1)})),++Ye,Be((()=>{0==--Ye&<()}),[])}((()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])}))}),r.finalize),e()}),t,n,r)))}),Re&&(Re.allSettled&&A(qe,"allSettled",(function(){const e=Q.apply(null,arguments).map(wt);return new qe((t=>{0===e.length&&t([]);let n=e.length;const r=new Array(n);e.forEach(((e,i)=>qe.resolve(e).then((e=>r[i]={status:"fulfilled",value:e}),(e=>r[i]={status:"rejected",reason:e})).then((()=>--n||t(r)))))}))})),Re.any&&"undefined"!=typeof AggregateError&&A(qe,"any",(function(){const e=Q.apply(null,arguments).map(wt);return new qe(((t,n)=>{0===e.length&&n(new AggregateError([]));let r=e.length;const i=new Array(r);e.forEach(((e,o)=>qe.resolve(e).then((e=>t(e)),(e=>{i[o]=e,--r||n(new AggregateError(i))}))))}))})));const dt={awaits:0,echoes:0,id:0};var ft=0,ht=[],pt=0,mt=0,gt=0;function vt(e,t,n,r){var i=Ve,o=Object.create(i);o.parent=i,o.ref=0,o.global=!1,o.id=++gt;var a=He.env;o.env=Ne?{Promise:qe,PromiseProp:{value:qe,configurable:!0,writable:!0},all:qe.all,race:qe.race,allSettled:qe.allSettled,any:qe.any,resolve:qe.resolve,reject:qe.reject,nthen:At(a.nthen,o),gthen:At(a.gthen,o)}:{},t&&x(o,t),++i.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=Ct(o,e,n,r);return 0===o.ref&&o.finalize(),s}function bt(){return dt.id||(dt.id=++ft),++dt.awaits,dt.echoes+=100,dt.id}function yt(){return!!dt.awaits&&(0==--dt.awaits&&(dt.id=0),dt.echoes=100*dt.awaits,!0)}function wt(e){return dt.echoes&&e&&e.constructor===Re?(bt(),e.then((e=>(yt(),e)),(e=>(yt(),jt(e))))):e}function _t(e){++mt,dt.echoes&&0!=--dt.echoes||(dt.echoes=dt.id=0),ht.push(Ve),kt(e,!0)}function xt(){var e=ht[ht.length-1];ht.pop(),kt(e,!1)}function kt(e,t){var n=Ve;if((t?!dt.echoes||pt++&&e===Ve:!pt||--pt&&e===Ve)||Mt(t?_t.bind(null,e):xt),e!==Ve&&(Ve=e,n===He&&(He.env=St()),Ne)){var r=He.env.Promise,i=e.env;Oe.then=i.nthen,r.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(y,"Promise",i.PromiseProp),r.all=i.all,r.race=i.race,r.resolve=i.resolve,r.reject=i.reject,i.allSettled&&(r.allSettled=i.allSettled),i.any&&(r.any=i.any))}}function St(){var e=y.Promise;return Ne?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(y,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Oe.then,gthen:e.prototype.then}:{}}function Ct(e,t,n,r,i){var o=Ve;try{return kt(e,!0),t(n,r,i)}finally{kt(o,!1)}}function Mt(e){Ze.call(Ie,e)}function Et(e,t,n,r){return"function"!=typeof e?e:function(){var i=Ve;n&&bt(),kt(t,!0);try{return e.apply(this,arguments)}finally{kt(i,!1),r&&Mt(yt)}}}function At(e,t){return function(n,r){return e.call(this,Et(n,t),Et(r,t))}}-1===(""+Ze).indexOf("[native code]")&&(bt=yt=ye);const It="unhandledrejection";function Ot(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,i={promise:t,reason:e};if(y.document&&document.createEvent?((r=document.createEvent("Event")).initEvent(It,!0,!0),x(r,i)):y.CustomEvent&&x(r=new CustomEvent(It,{detail:i}),i),r&&y.dispatchEvent&&(dispatchEvent(r),!y.PromiseRejectionEvent&&y.onunhandledrejection))try{y.onunhandledrejection(r)}catch(e){}te&&r&&!r.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}var jt=qe.reject;function Zt(e,t,n,r){if(e.idbdb&&(e._state.openComplete||Ve.letThrough||e._vip)){var i=e._createTransaction(t,n,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(i){return i.name===pe.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>Zt(e,t,n,r)))):jt(i)}return i._promise(t,((e,t)=>vt((()=>(Ve.trans=i,r(e,t,i)))))).then((e=>i._completion.then((()=>e))))}if(e._state.openComplete)return jt(new ge.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return jt(new ge.DatabaseClosed);e.open().catch(ye)}return e._state.dbReadyPromise.then((()=>Zt(e,t,n,r)))}const Rt="3.2.7",Nt=String.fromCharCode(65535),Pt=-1/0,Tt="Invalid key provided. Keys must be of type string, number, Date or Array.",Bt="String expected.",$t=[],Dt="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Lt=Dt,zt=Dt,Ft=e=>!/(dexie\.js|dexie\.min\.js)/.test(e),Wt="__dbnames",Ht="readonly",Vt="readwrite";function Ut(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const Yt={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Gt(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=U(t))[e],t)}class qt{_trans(e,t,n){const r=this._tx||Ve.trans,i=this.name;function o(e,n,r){if(!r.schema[i])throw new ge.NotFound("Table "+i+" not part of transaction");return t(r.idbtrans,r)}const a=at();try{return r&&r.db===this.db?r===Ve.trans?r._promise(e,o,n):vt((()=>r._promise(e,o,n)),{trans:r,transless:Ve.transless||Ve}):Zt(this.db,e,[this.name],o)}finally{a&&st()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",(t=>this.core.get({trans:t,key:e}).then((e=>this.hook.reading.fire(e))))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(_(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const t=w(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter((e=>{if(e.compound&&t.every((t=>e.keyPath.indexOf(t)>=0))){for(let n=0;ne.keyPath.length-t.keyPath.length))[0];if(n&&this.db._maxKey!==Nt){const r=n.keyPath.slice(0,t.length);return this.where(r).equals(r.map((t=>e[t])))}!n&&te&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);const{idxByName:r}=this.schema,i=this.db._deps.indexedDB;function o(e,t){try{return 0===i.cmp(e,t)}catch(e){return!1}}const[a,s]=t.reduce((([t,n],i)=>{const a=r[i],s=e[i];return[t||a,t||!a?Ut(n,a&&a.multi?e=>{const t=$(e,i);return _(t)&&t.some((e=>o(s,e)))}:e=>o(s,$(e,i))):n]}),[null,null]);return a?this.where(a.name).equals(e[a.keyPath]).filter(s):n?this.filter(s):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,_(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const t=t=>{if(!t)return t;const n=Object.create(e.prototype);for(var r in t)if(C(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass((function(e){x(this,e)}))}add(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let i=e;return r&&n&&(i=Gt(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[i]}))).then((e=>e.numFailures?qe.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{D(e,r,t)}catch(e){}return t}))}update(e,t){if("object"!=typeof e||_(e))return this.where(":id").equals(e).modify(t);{const n=$(e,this.schema.primKey.keyPath);if(void 0===n)return jt(new ge.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?w(t).forEach((n=>{D(e,n,t[n])})):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let i=e;return r&&n&&(i=Gt(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"put",values:[i],keys:null!=t?[t]:null}))).then((e=>e.numFailures?qe.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{D(e,r,t)}catch(e){}return t}))}delete(e){return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:[e]}))).then((e=>e.numFailures?qe.reject(e.failures[0]):void 0))}clear(){return this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"deleteRange",range:Yt}))).then((e=>e.numFailures?qe.reject(e.failures[0]):void 0))}bulkGet(e){return this._trans("readonly",(t=>this.core.getMany({keys:e,trans:t}).then((e=>e.map((e=>this.hook.reading.fire(e)))))))}bulkAdd(e,t,n){const r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:o}=this.schema.primKey;if(o&&r)throw new ge.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new ge.InvalidArgument("Arguments objects and keys must have the same length");const a=e.length;let s=o&&n?e.map(Gt(o)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:s,wantResults:i}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new he(`${this.name}.bulkAdd(): ${e} of ${a} operations failed`,r)}))}))}bulkPut(e,t,n){const r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:o}=this.schema.primKey;if(o&&r)throw new ge.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new ge.InvalidArgument("Arguments objects and keys must have the same length");const a=e.length;let s=o&&n?e.map(Gt(o)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:s,wantResults:i}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new he(`${this.name}.bulkPut(): ${e} of ${a} operations failed`,r)}))}))}bulkDelete(e){const t=e.length;return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:e}))).then((({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new he(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)}))}}function Xt(e){var t={},n=function(n,r){if(r){for(var i=arguments.length,o=new Array(i-1);--i;)o[i-1]=arguments[i];return t[n].subscribe.apply(null,o),e}if("string"==typeof n)return t[n]};n.addEventType=o;for(var r=1,i=arguments.length;rUt(r(),t()):t,e.justLimit=n&&!r}function tn(e,t){if(e.isPrimKey)return t.primaryKey;const n=t.getIndexByKeyPath(e.index);if(!n)throw new ge.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function nn(e,t,n){const r=tn(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function rn(e,t,n,r){const i=e.replayFilter?Ut(e.filter,e.replayFilter()):e.filter;if(e.or){const o={},a=(e,n,r)=>{if(!i||i(n,r,(e=>n.stop(e)),(e=>n.fail(e)))){var a=n.primaryKey,s=""+a;"[object ArrayBuffer]"===s&&(s=""+new Uint8Array(a)),C(o,s)||(o[s]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(a,n),on(nn(e,r,n),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return on(nn(e,r,n),Ut(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function on(e,t,n,r){var i=ut(r?(e,t,i)=>n(r(e),t,i):n);return e.then((e=>{if(e)return e.start((()=>{var n=()=>e.continue();t&&!t(e,(e=>n=e),(t=>{e.stop(t),n=ye}),(t=>{e.fail(t),n=ye}))||i(e.value,e,(e=>n=e)),n()}))}))}function an(e,t){try{const n=sn(e),r=sn(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:ern(t,e,n,t.table.core)))}count(e){return this._read((e=>{const t=this._ctx,n=t.table.core;if(Jt(t,!0))return n.count({trans:e,query:{index:tn(t,n.schema),range:t.range}}).then((e=>Math.min(e,t.limit)));var r=0;return rn(t,(()=>(++r,!1)),e,n).then((()=>r))})).then(e)}sortBy(e,t){const n=e.split(".").reverse(),r=n[0],i=n.length-1;function o(e,t){return t?o(e[n[t]],t-1):e[r]}var a="next"===this._ctx.dir?1:-1;function s(e,t){var n=o(e,i),r=o(t,i);return nr?a:0}return this.toArray((function(e){return e.sort(s)})).then(t)}toArray(e){return this._read((e=>{var t=this._ctx;if("next"===t.dir&&Jt(t,!0)&&t.limit>0){const{valueMapper:n}=t,r=tn(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then((({result:e})=>n?e.map(n):e))}{const n=[];return rn(t,(e=>n.push(e)),e,t.table.core).then((()=>n))}}),e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,Jt(t)?en(t,(()=>{var t=e;return(e,n)=>0===t||(1===t?(--t,!1):(n((()=>{e.advance(t),t=0})),!1))})):en(t,(()=>{var t=e;return()=>--t<0}))),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),en(this._ctx,(()=>{var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this}until(e,t){return Qt(this._ctx,(function(n,r,i){return!e(n.value)||(r(i),t)})),this}first(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)}last(e){return this.reverse().first(e)}filter(e){var t,n;return Qt(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=Ut(t.isMatch,n),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&Jt(t,!0)&&t.limit>0)return this._read((e=>{var n=tn(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((({result:e})=>e)).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys((function(e){return e[0]})).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return Qt(this._ctx,(function(e){var t=e.primaryKey.toString(),r=C(n,t);return n[t]=!0,!r})),this}modify(e){var t=this._ctx;return this._write((n=>{var r;if("function"==typeof e)r=e;else{var i=w(e),o=i.length;r=function(t){for(var n=!1,r=0;r{const{failures:n,numFailures:r}=t;d+=e-r;for(let e of w(n))u.push(n[e])};return this.clone().primaryKeys().then((i=>{const o=u=>{const d=Math.min(c,i.length-u);return a.getMany({trans:n,keys:i.slice(u,u+d),cache:"immutable"}).then((f=>{const p=[],m=[],g=s?[]:null,v=[];for(let e=0;e0&&a.mutate({trans:n,type:"add",values:p}).then((e=>{for(let t in e.failures)v.splice(parseInt(t),1);h(p.length,e)}))).then((()=>(m.length>0||b&&"object"==typeof e)&&a.mutate({trans:n,type:"put",keys:g,values:m,criteria:b,changeSpec:"function"!=typeof e&&e}).then((e=>h(m.length,e))))).then((()=>(v.length>0||b&&e===un)&&a.mutate({trans:n,type:"delete",keys:v,criteria:b}).then((e=>h(v.length,e))))).then((()=>i.length>u+d&&o(u+c)))}))};return o(0).then((()=>{if(u.length>0)throw new fe("Error modifying one or more objects",u,d,f);return i.length}))}))}))}delete(){var e=this._ctx,t=e.range;return Jt(e)&&(e.isPrimKey&&!zt||3===t.type)?this._write((n=>{const{primaryKey:r}=e.table.core.schema,i=t;return e.table.core.count({trans:n,query:{index:r,range:i}}).then((t=>e.table.core.mutate({trans:n,type:"deleteRange",range:i}).then((({failures:e,lastResult:n,results:r,numFailures:i})=>{if(i)throw new fe("Could not delete some values",Object.keys(e).map((t=>e[t])),t-i);return t-i}))))})):this.modify(un)}}const un=(e,t)=>t.value=null;function dn(e,t){return et?-1:e===t?0:1}function hn(e,t,n){var r=e instanceof yn?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function pn(e){return new e.Collection(e,(()=>bn(""))).limit(0)}function mn(e,t,n,r,i,o){for(var a=Math.min(e.length,r.length),s=-1,l=0;l=0?e.substr(0,s)+t[s]+n.substr(s+1):null;i(e[l],c)<0&&(s=l)}return a"string"==typeof e)))return hn(e,Bt);function f(e){i=function(e){return"next"===e?e=>e.toUpperCase():e=>e.toLowerCase()}(e),o=function(e){return"next"===e?e=>e.toLowerCase():e=>e.toUpperCase()}(e),a="next"===e?dn:fn;var t=n.map((function(e){return{lower:o(e),upper:i(e)}})).sort((function(e,t){return a(e.lower,t.lower)}));s=t.map((function(e){return e.upper})),l=t.map((function(e){return e.lower})),c=e,u="next"===e?"":r}f("next");var h=new e.Collection(e,(()=>vn(s[0],l[d-1]+r)));h._ondirectionchange=function(e){f(e)};var p=0;return h._addAlgorithm((function(e,n,r){var i=e.key;if("string"!=typeof i)return!1;var f=o(i);if(t(f,l,p))return!0;for(var h=null,m=p;m0)&&(h=g)}return n(null!==h?function(){e.continue(h+u)}:r),!1})),h}function vn(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function bn(e){return{type:1,lower:e,upper:e}}class yn{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?pn(this):new this.Collection(this,(()=>vn(e,t,!n,!r)))}catch(e){return hn(this,Tt)}}equals(e){return null==e?hn(this,Tt):new this.Collection(this,(()=>bn(e)))}above(e){return null==e?hn(this,Tt):new this.Collection(this,(()=>vn(e,void 0,!0)))}aboveOrEqual(e){return null==e?hn(this,Tt):new this.Collection(this,(()=>vn(e,void 0,!1)))}below(e){return null==e?hn(this,Tt):new this.Collection(this,(()=>vn(void 0,e,!1,!0)))}belowOrEqual(e){return null==e?hn(this,Tt):new this.Collection(this,(()=>vn(void 0,e)))}startsWith(e){return"string"!=typeof e?hn(this,Bt):this.between(e,e+Nt,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):gn(this,((e,t)=>0===e.indexOf(t[0])),[e],Nt)}equalsIgnoreCase(e){return gn(this,((e,t)=>e===t[0]),[e],"")}anyOfIgnoreCase(){var e=Q.apply(J,arguments);return 0===e.length?pn(this):gn(this,((e,t)=>-1!==t.indexOf(e)),e,"")}startsWithAnyOfIgnoreCase(){var e=Q.apply(J,arguments);return 0===e.length?pn(this):gn(this,((e,t)=>t.some((t=>0===e.indexOf(t)))),e,Nt)}anyOf(){const e=Q.apply(J,arguments);let t=this._cmp;try{e.sort(t)}catch(e){return hn(this,Tt)}if(0===e.length)return pn(this);const n=new this.Collection(this,(()=>vn(e[0],e[e.length-1])));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm(((n,i,o)=>{const a=n.key;for(;t(a,e[r])>0;)if(++r,r===e.length)return i(o),!1;return 0===t(a,e[r])||(i((()=>{n.continue(e[r])})),!1)})),n}notEqual(e){return this.inAnyRange([[Pt,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=Q.apply(J,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return hn(this,Tt)}const t=e.reduce(((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[Pt,t]]),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){const n=this._cmp,r=this._ascending,i=this._descending,o=this._min,a=this._max;if(0===e.length)return pn(this);if(!e.every((e=>void 0!==e[0]&&void 0!==e[1]&&r(e[0],e[1])<=0)))return hn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ge.InvalidArgument);const s=!t||!1!==t.includeLowers,l=t&&!0===t.includeUppers;let c,u=r;function d(e,t){return u(e[0],t[0])}try{c=e.reduce((function(e,t){let r=0,i=e.length;for(;r0){i[0]=o(i[0],t[0]),i[1]=a(i[1],t[1]);break}}return r===i&&e.push(t),e}),[]),c.sort(d)}catch(e){return hn(this,Tt)}let f=0;const h=l?e=>r(e,c[f][1])>0:e=>r(e,c[f][1])>=0,p=s?e=>i(e,c[f][0])>0:e=>i(e,c[f][0])>=0;let m=h;const g=new this.Collection(this,(()=>vn(c[0][0],c[c.length-1][1],!s,!l)));return g._ondirectionchange=e=>{"next"===e?(m=h,u=r):(m=p,u=i),c.sort(d)},g._addAlgorithm(((e,t,n)=>{for(var i=e.key;m(i);)if(++f,f===c.length)return t(n),!1;return!!function(e){return!h(e)&&!p(e)}(i)||(0===this._cmp(i,c[f][1])||0===this._cmp(i,c[f][0])||t((()=>{u===r?e.continue(c[f][0]):e.continue(c[f][1])})),!1)})),g}startsWithAnyOf(){const e=Q.apply(J,arguments);return e.every((e=>"string"==typeof e))?0===e.length?pn(this):this.inAnyRange(e.map((e=>[e,e+Nt]))):hn(this,"startsWithAnyOf() only works with strings")}}function wn(e){return ut((function(t){return _n(t),e(t.target.error),!1}))}function _n(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const xn="storagemutated",kn="x-storagemutated-1",Sn=Xt(null,xn);class Cn{_lock(){return P(!Ve.global),++this._reculock,1!==this._reculock||Ve.global||(Ve.lockOwnerFor=this),this}_unlock(){if(P(!Ve.global),0==--this._reculock)for(Ve.global||(Ve.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{Ct(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&Ve.lockOwnerFor!==this}create(e){if(!this.mode)return this;const t=this.db.idbdb,n=this.db._state.dbOpenError;if(P(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new ge.DatabaseClosed(n);case"MissingAPIError":throw new ge.MissingAPI(n.message,n);default:throw new ge.OpenFailed(n)}if(!this.active)throw new ge.TransactionInactive;return P(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=ut((t=>{_n(t),this._reject(e.error)})),e.onabort=ut((t=>{_n(t),this.active&&this._reject(new ge.Abort(e.error)),this.active=!1,this.on("abort").fire(t)})),e.oncomplete=ut((()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&Sn.storagemutated.fire(e.mutatedParts)})),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return jt(new ge.ReadOnly("Transaction is readonly"));if(!this.active)return jt(new ge.TransactionInactive);if(this._locked())return new qe(((r,i)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,i)},Ve])}));if(n)return vt((()=>{var e=new qe(((e,n)=>{this._lock();const r=t(e,n,this);r&&r.then&&r.then(e,n)}));return e.finally((()=>this._unlock())),e._lib=!0,e}));var r=new qe(((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)}));return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();const n=qe.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((()=>n));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var i=t._waitingFor;return new qe(((e,r)=>{n.then((n=>t._waitingQueue.push(ut(e.bind(null,n)))),(e=>t._waitingQueue.push(ut(r.bind(null,e))))).finally((()=>{t._waitingFor===i&&(t._waitingFor=null)}))}))}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ge.Abort))}table(e){const t=this._memoizedTables||(this._memoizedTables={});if(C(t,e))return t[e];const n=this.schema[e];if(!n)throw new ge.NotFound("Table "+e+" not part of transaction");const r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function Mn(e,t,n,r,i,o,a){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:o,src:(n&&!a?"&":"")+(r?"*":"")+(i?"++":"")+En(t)}}function En(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function An(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:B(n,(e=>[e.name,e]))}}let In=e=>{try{return e.only([[]]),In=()=>[[]],[[]]}catch(e){return In=()=>Nt,Nt}};function On(e){return null==e?()=>{}:"string"==typeof e?function(e){return 1===e.split(".").length?t=>t[e]:t=>$(t,e)}(e):t=>$(t,e)}function jn(e){return[].slice.call(e)}let Zn=0;function Rn(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function Nn(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:n,upper:r,lowerOpen:i,upperOpen:o}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!o):void 0===r?t.lowerBound(n,!!i):t.bound(n,r,!!i,!!o)}const{schema:i,hasGetAll:o}=function(e,t){const n=jn(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((e=>t.objectStore(e))).map((e=>{const{keyPath:t,autoIncrement:n}=e,r=_(t),i=null==t,o={},a={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:i,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:On(t)},indexes:jn(e.indexNames).map((t=>e.index(t))).map((e=>{const{name:t,unique:n,multiEntry:r,keyPath:i}=e,a={name:t,compound:_(i),keyPath:i,unique:n,multiEntry:r,extractKey:On(i)};return o[Rn(i)]=a,a})),getIndexByKeyPath:e=>o[Rn(e)]};return o[":id"]=a.primaryKey,null!=t&&(o[Rn(t)]=a.primaryKey),a}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),a=i.tables.map((e=>function(e){const t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:n,keys:i,values:o,range:a}){return new Promise(((s,l)=>{s=ut(s);const c=e.objectStore(t),u=null==c.keyPath,d="put"===n||"add"===n;if(!d&&"delete"!==n&&"deleteRange"!==n)throw new Error("Invalid operation type: "+n);const{length:f}=i||o||{length:1};if(i&&o&&i.length!==o.length)throw new Error("Given keys array must have same length as given values array.");if(0===f)return s({numFailures:0,failures:{},results:[],lastResult:void 0});let h;const p=[],m=[];let g=0;const v=e=>{++g,_n(e)};if("deleteRange"===n){if(4===a.type)return s({numFailures:g,failures:m,results:[],lastResult:void 0});3===a.type?p.push(h=c.clear()):p.push(h=c.delete(r(a)))}else{const[e,t]=d?u?[o,i]:[o,null]:[i,null];if(d)for(let r=0;r{const t=e.target.result;p.forEach(((e,t)=>null!=e.error&&(m[t]=e.error))),s({numFailures:g,failures:m,results:"delete"===n?i:p.map((e=>e.result)),lastResult:t})};h.onerror=e=>{v(e),b(e)},h.onsuccess=b}))},getMany:({trans:e,keys:n})=>new Promise(((r,i)=>{r=ut(r);const o=e.objectStore(t),a=n.length,s=new Array(a);let l,c=0,u=0;const d=e=>{const t=e.target;s[t._pos]=t.result,++u===c&&r(s)},f=wn(i);for(let e=0;enew Promise(((r,i)=>{r=ut(r);const o=e.objectStore(t).get(n);o.onsuccess=e=>r(e.target.result),o.onerror=wn(i)})),query:function(e){return n=>new Promise(((i,o)=>{i=ut(i);const{trans:a,values:s,limit:l,query:c}=n,u=l===1/0?void 0:l,{index:d,range:f}=c,h=a.objectStore(t),p=d.isPrimaryKey?h:h.index(d.name),m=r(f);if(0===l)return i({result:[]});if(e){const e=s?p.getAll(m,u):p.getAllKeys(m,u);e.onsuccess=e=>i({result:e.target.result}),e.onerror=wn(o)}else{let e=0;const t=s||!("openKeyCursor"in p)?p.openCursor(m):p.openKeyCursor(m),n=[];t.onsuccess=r=>{const o=t.result;return o?(n.push(s?o.value:o.primaryKey),++e===l?i({result:n}):void o.continue()):i({result:n})},t.onerror=wn(o)}}))}(o),openCursor:function({trans:e,values:n,query:i,reverse:o,unique:a}){return new Promise(((s,l)=>{s=ut(s);const{index:c,range:u}=i,d=e.objectStore(t),f=c.isPrimaryKey?d:d.index(c.name),h=o?a?"prevunique":"prev":a?"nextunique":"next",p=n||!("openKeyCursor"in f)?f.openCursor(r(u),h):f.openKeyCursor(r(u),h);p.onerror=wn(l),p.onsuccess=ut((t=>{const n=p.result;if(!n)return void s(null);n.___id=++Zn,n.done=!1;const r=n.continue.bind(n);let i=n.continuePrimaryKey;i&&(i=i.bind(n));const o=n.advance.bind(n),a=()=>{throw new Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw new Error("Cursor not started")},n.fail=ut(l),n.next=function(){let e=1;return this.start((()=>e--?this.continue():this.stop())).then((()=>this))},n.start=e=>{const t=new Promise(((e,t)=>{e=ut(e),p.onerror=wn(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=a,e(t)}})),s=()=>{if(p.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw new Error("Cursor behind last entry")},n.stop()};return p.onsuccess=ut((e=>{p.onsuccess=s,s()})),n.continue=r,n.continuePrimaryKey=i,n.advance=o,s(),t},s(n)}),l)}))},count({query:e,trans:n}){const{index:i,range:o}=e;return new Promise(((e,a)=>{const s=n.objectStore(t),l=i.isPrimaryKey?s:s.index(i.name),c=r(o),u=c?l.count(c):l.count();u.onsuccess=ut((t=>e(t.target.result))),u.onerror=wn(a)}))}}}(e))),s={};return a.forEach((e=>s[e.name]=e)),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!s[e])throw new Error(`Table '${e}' not found`);return s[e]},MIN_KEY:-1/0,MAX_KEY:In(t),schema:i}}function Pn({_novip:e},t){const n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},i){const o=function(e,t){return t.reduce(((e,{create:t})=>({...e,...t(e)})),e)}(Nn(t,n,i),e.dbcore);return{dbcore:o}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach((t=>{const n=t.name;e.core.schema.tables.some((e=>e.name===n))&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))}))}function Tn({_novip:e},t,n,r){n.forEach((n=>{const i=r[n];t.forEach((t=>{const r=j(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?A(t,n,{get(){return this.table(n)},set(e){E(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,i))}))}))}function Bn({_novip:e},t){t.forEach((t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]}))}function $n(e,t){return e._cfg.version-t._cfg.version}function Dn(e,t,n,r){const i=e._dbSchema,o=e._createTransaction("readwrite",e._storeNames,i);o.create(n),o._completion.catch(r);const a=o._reject.bind(o),s=Ve.transless||Ve;vt((()=>{Ve.trans=o,Ve.transless=s,0===t?(w(i).forEach((e=>{zn(n,e,i[e].primKey,i[e].indexes)})),Pn(e,n),qe.follow((()=>e.on.populate.fire(o))).catch(a)):function({_novip:e},t,n,r){const i=[],o=e._versions;let a=e._dbSchema=Wn(e,e.idbdb,r),s=!1;const l=o.filter((e=>e._cfg.version>=t));return l.forEach((o=>{i.push((()=>{const i=a,l=o._cfg.dbschema;Hn(e,i,r),Hn(e,l,r),a=e._dbSchema=l;const c=Ln(i,l);c.add.forEach((e=>{zn(r,e[0],e[1].primKey,e[1].indexes)})),c.change.forEach((e=>{if(e.recreate)throw new ge.Upgrade("Not yet support for changing primary key");{const t=r.objectStore(e.name);e.add.forEach((e=>Fn(t,e))),e.change.forEach((e=>{t.deleteIndex(e.name),Fn(t,e)})),e.del.forEach((e=>t.deleteIndex(e)))}}));const u=o._cfg.contentUpgrade;if(u&&o._cfg.version>t){Pn(e,r),n._memoizedTables={},s=!0;let t=L(l);c.del.forEach((e=>{t[e]=i[e]})),Bn(e,[e.Transaction.prototype]),Tn(e,[e.Transaction.prototype],w(t),t),n.schema=t;const o=ee(u);let a;o&&bt();const d=qe.follow((()=>{if(a=u(n),a&&o){var e=yt.bind(null,null);a.then(e,e)}}));return a&&"function"==typeof a.then?qe.resolve(a):d.then((()=>a))}})),i.push((t=>{s&&Lt||function(e,t){[].slice.call(t.db.objectStoreNames).forEach((n=>null==e[n]&&t.db.deleteObjectStore(n)))}(o._cfg.dbschema,t),Bn(e,[e.Transaction.prototype]),Tn(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema}))})),function e(){return i.length?qe.resolve(i.shift()(n.idbtrans)).then(e):qe.resolve()}().then((()=>{var e,t;t=r,w(e=a).forEach((n=>{t.db.objectStoreNames.contains(n)||zn(t,n,e[n].primKey,e[n].indexes)}))}))}(e,t,o,n).catch(a)}))}function Ln(e,t){const n={del:[],add:[],change:[]};let r;for(r in e)t[r]||n.del.push(r);for(r in t){const i=e[r],o=t[r];if(i){const e={name:r,def:o,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(o.primKey.keyPath||"")||i.primKey.auto!==o.primKey.auto&&!Dt)e.recreate=!0,n.change.push(e);else{const t=i.idxByName,r=o.idxByName;let a;for(a in t)r[a]||e.del.push(a);for(a in r){const n=t[a],i=r[a];n?n.src!==i.src&&e.change.push(i):e.add.push(i)}(e.del.length>0||e.add.length>0||e.change.length>0)&&n.change.push(e)}}else n.add.push([r,o])}return n}function zn(e,t,n,r){const i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((e=>Fn(i,e))),i}function Fn(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function Wn(e,t,n){const r={};return R(t.objectStoreNames,0).forEach((e=>{const t=n.objectStore(e);let i=t.keyPath;const o=Mn(En(i),i||"",!1,!1,!!t.autoIncrement,i&&"string"!=typeof i,!0),a=[];for(let e=0;e{if(null!==e[n]){var r=e[n].split(",").map(((e,t)=>{const n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return Mn(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),_(r),0===t)})),i=r.shift();if(i.multi)throw new ge.Schema("Primary key cannot be multi-valued");r.forEach((e=>{if(e.auto)throw new ge.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new ge.Schema("Index must have a name and cannot be an empty string")})),t[n]=An(n,i,r)}}))}stores(e){const t=this.db;this._cfg.storesSource=this._cfg.storesSource?x(this._cfg.storesSource,e):e;const n=t._versions,r={};let i={};return n.forEach((e=>{x(r,e._cfg.storesSource),i=e._cfg.dbschema={},e._parseStoresSpec(r,i)})),t._dbSchema=i,Bn(t,[t._allTables,t,t.Transaction.prototype]),Tn(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],w(i),i),t._storeNames=w(i),this}upgrade(e){return this._cfg.contentUpgrade=Ee(this._cfg.contentUpgrade||ye,e),this}}function Un(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new hr(Wt,{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function Yn(e){return e&&"function"==typeof e.databases}function Gn(e){return vt((function(){return Ve.letThrough=!0,e()}))}function qn(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var n=function(){return indexedDB.databases().finally(t)};e=setInterval(n,100),n()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function Xn(e){var t=t=>e.next(t),n=i(t),r=i((t=>e.throw(t)));function i(e){return t=>{var i=e(t),o=i.value;return i.done?o:o&&"function"==typeof o.then?o.then(n,r):_(o)?Promise.all(o).then(n,r):n(o)}}return i(t)()}function Kn(e,t,n){var r=arguments.length;if(r<2)throw new ge.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];return n=i.pop(),[e,F(i),n]}function Jn(e,t,n,r,i){return qe.resolve().then((()=>{const o=Ve.transless||Ve,a=e._createTransaction(t,n,e._dbSchema,r),s={trans:a,transless:o};if(r)a.idbtrans=r.idbtrans;else try{a.create(),e._state.PR1398_maxLoop=3}catch(r){return r.name===pe.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>Jn(e,t,n,null,i)))):jt(r)}const l=ee(i);let c;l&&bt();const u=qe.follow((()=>{if(c=i.call(a,a),c)if(l){var e=yt.bind(null,null);c.then(e,e)}else"function"==typeof c.next&&"function"==typeof c.throw&&(c=Xn(c))}),s);return(c&&"function"==typeof c.then?qe.resolve(c).then((e=>a.active?e:jt(new ge.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn")))):u.then((()=>c))).then((e=>(r&&a._resolve(),a._completion.then((()=>e))))).catch((e=>(a._reject(e),jt(e))))}))}function Qn(e,t,n){const r=_(e)?e.slice():[e];for(let e=0;e0,u={...n,isVirtual:c,keyTail:t,keyLength:l,extractKey:On(e),unique:!c&&n.unique};return s.push(u),u.isPrimaryKey||o.push(u),l>1&&a(2===l?e[0]:e.slice(0,l-1),t+1,n),s.sort(((e,t)=>e.keyTail-t.keyTail)),u}const s=a(r.primaryKey.keyPath,0,r.primaryKey);i[":id"]=[s];for(const e of r.indexes)a(e.keyPath,0,e);function l(t){const n=t.query.index;return n.isVirtual?{...t,query:{index:n,range:(r=t.query.range,i=n.keyTail,{type:1===r.type?2:r.type,lower:Qn(r.lower,r.lowerOpen?e.MAX_KEY:e.MIN_KEY,i),lowerOpen:!0,upper:Qn(r.upper,r.upperOpen?e.MIN_KEY:e.MAX_KEY,i),upperOpen:!0})}}:t;var r,i}const c={...n,schema:{...r,primaryKey:s,indexes:o,getIndexByKeyPath:function(e){const t=i[Rn(e)];return t&&t[0]}},count:e=>n.count(l(e)),query:e=>n.query(l(e)),openCursor(t){const{keyTail:r,isVirtual:i,keyLength:o}=t.query.index;return i?n.openCursor(l(t)).then((n=>n&&function(n){const i=Object.create(n,{continue:{value:function(i){null!=i?n.continue(Qn(i,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,o).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value(t,i){n.continuePrimaryKey(Qn(t,e.MAX_KEY,r),i)}},primaryKey:{get:()=>n.primaryKey},key:{get(){const e=n.key;return 1===o?e[0]:e.slice(0,o)}},value:{get:()=>n.value}});return i}(n))):n.openCursor(t)}};return c}}}};function tr(e,t,n,r){return n=n||{},r=r||"",w(e).forEach((i=>{if(C(t,i)){var o=e[i],a=t[i];if("object"==typeof o&&"object"==typeof a&&o&&a){const e=q(o);e!==q(a)?n[r+i]=t[i]:"Object"===e?tr(o,a,n,r+i+"."):o!==a&&(n[r+i]=t[i])}else o!==a&&(n[r+i]=t[i])}else n[r+i]=void 0})),w(t).forEach((i=>{C(e,i)||(n[r+i]=t[i])})),n}const nr={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const n=e.table(t),{primaryKey:r}=n.schema,i={...n,mutate(e){const i=Ve.trans,{deleting:o,creating:a,updating:s}=i.table(t).hook;switch(e.type){case"add":if(a.fire===ye)break;return i._promise("readwrite",(()=>l(e)),!0);case"put":if(a.fire===ye&&s.fire===ye)break;return i._promise("readwrite",(()=>l(e)),!0);case"delete":if(o.fire===ye)break;return i._promise("readwrite",(()=>l(e)),!0);case"deleteRange":if(o.fire===ye)break;return i._promise("readwrite",(()=>function(e){return c(e.trans,e.range,1e4)}(e)),!0)}return n.mutate(e);function l(e){const t=Ve.trans,i=e.keys||function(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}(r,e);if(!i)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:i}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),function(e,t,n){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}(n,e,i).then((l=>{const c=i.map(((n,i)=>{const c=l[i],u={onerror:null,onsuccess:null};if("delete"===e.type)o.fire.call(u,n,c,t);else if("add"===e.type||void 0===c){const o=a.fire.call(u,n,e.values[i],t);null==n&&null!=o&&(n=o,e.keys[i]=n,r.outbound||D(e.values[i],r.keyPath,n))}else{const r=tr(c,e.values[i]),o=s.fire.call(u,r,n,c,t);if(o){const t=e.values[i];Object.keys(o).forEach((e=>{C(t,e)?t[e]=o[e]:D(t,e,o[e])}))}}return u}));return n.mutate(e).then((({failures:t,results:n,numFailures:r,lastResult:o})=>{for(let r=0;r(c.forEach((t=>t.onerror&&t.onerror(e))),Promise.reject(e))))}))}function c(e,t,i){return n.query({trans:e,values:!1,query:{index:r,range:t},limit:i}).then((({result:n})=>l({type:"delete",keys:n,trans:e}).then((r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length({table:t=>{const n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);const t=rr(e.keys,e.trans._cache,"clone"===e.cache);return t?qe.resolve(t):n.getMany(e).then((t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?U(t):t},t)))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))}}})};function or(e){return!("from"in e)}const ar=function(e,t){if(!this){const t=new ar;return e&&"d"in e&&x(t,e),t}x(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function sr(e,t,n){const r=an(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(or(e))return x(e,{from:t,to:n,d:1});const i=e.l,o=e.r;if(an(n,e.from)<0)return i?sr(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},ur(e);if(an(t,e.to)>0)return o?sr(o,t,n):e.r={from:t,to:n,d:1,l:null,r:null},ur(e);an(t,e.from)<0&&(e.from=t,e.l=null,e.d=o?o.d+1:1),an(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);const a=!e.r;i&&!e.l&&lr(e,i),o&&a&&lr(e,o)}function lr(e,t){or(t)||function e(t,{from:n,to:r,l:i,r:o}){sr(t,n,r),i&&e(t,i),o&&e(t,o)}(e,t)}function cr(e){let t=or(e)?null:{s:0,n:e};return{next(e){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&an(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||an(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function ur(e){var t,n;const r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){const t="r"===i?"l":"r",n={...e},r=e[i];e.from=r.from,e.to=r.to,e[i]=r[i],n[i]=r[t],e[t]=n,n.d=dr(n)}e.d=dr(e)}function dr({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}M(ar.prototype,{add(e){return lr(this,e),this},addKey(e){return sr(this,e,e),this},addKeys(e){return e.forEach((e=>sr(this,e,e))),this},[X](){return cr(this)}});const fr={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,n=new ar(e.MIN_KEY,e.MAX_KEY);return{...e,table:r=>{const i=e.table(r),{schema:o}=i,{primaryKey:a}=o,{extractKey:s,outbound:l}=a,c={...i,mutate:e=>{const a=e.trans,s=a.mutatedParts||(a.mutatedParts={}),l=e=>{const n=`idb://${t}/${r}/${e}`;return s[n]||(s[n]=new ar)},c=l(""),u=l(":dels"),{type:d}=e;let[f,h]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[];const p=e.trans._cache;return i.mutate(e).then((e=>{if(_(f)){"delete"!==d&&(f=e.results),c.addKeys(f);const t=rr(f,p);t||"add"===d||u.addKeys(f),(t||h)&&function(e,t,n,r){t.indexes.forEach((function(t){const i=e(t.name||"");function o(e){return null!=e?t.extractKey(e):null}const a=e=>t.multiEntry&&_(e)?e.forEach((e=>i.addKey(e))):i.addKey(e);(n||r).forEach(((e,t)=>{const i=n&&o(n[t]),s=r&&o(r[t]);0!==an(i,s)&&(null!=i&&a(i),null!=s&&a(s))}))}))}(l,o,t,h)}else if(f){const e={from:f.lower,to:f.upper};u.add(e),c.add(e)}else c.add(n),u.add(n),o.indexes.forEach((e=>l(e.name).add(n)));return e}))}},u=({query:{index:t,range:n}})=>{var r,i;return[t,new ar(null!==(r=n.lower)&&void 0!==r?r:e.MIN_KEY,null!==(i=n.upper)&&void 0!==i?i:e.MAX_KEY)]},d={get:e=>[a,new ar(e.key)],getMany:e=>[a,(new ar).addKeys(e.keys)],count:u,query:u,openCursor:u};return w(d).forEach((e=>{c[e]=function(o){const{subscr:a}=Ve;if(a){const c=e=>{const n=`idb://${t}/${r}/${e}`;return a[n]||(a[n]=new ar)},u=c(""),f=c(":dels"),[h,p]=d[e](o);if(c(h.name||"").add(p),!h.isPrimaryKey){if("count"!==e){const t="query"===e&&l&&o.values&&i.query({...o,values:!1});return i[e].apply(this,arguments).then((n=>{if("query"===e){if(l&&o.values)return t.then((({result:e})=>(u.addKeys(e),n)));const e=o.values?n.result.map(s):n.result;o.values?u.addKeys(e):f.addKeys(e)}else if("openCursor"===e){const e=n,t=o.values;return e&&Object.create(e,{key:{get:()=>(f.addKey(e.primaryKey),e.key)},primaryKey:{get(){const t=e.primaryKey;return f.addKey(t),t}},value:{get:()=>(t&&u.addKey(e.primaryKey),e.value)}})}return n}))}f.add(n)}}return i[e].apply(this,arguments)}})),c}}}};class hr{constructor(e,t){this._middlewares={},this.verno=0;const n=hr.dependencies;this._options=t={addons:hr.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};const{addons:r}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ye,dbReadyPromise:null,cancelOpen:ye,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var o;i.dbReadyPromise=new qe((e=>{i.dbReadyResolve=e})),i.openCanceller=new qe(((e,t)=>{i.cancelOpen=t})),this._state=i,this.name=e,this.on=Xt(this,"populate","blocked","versionchange","close",{ready:[Ee,ye]}),this.on.ready.subscribe=N(this.on.ready.subscribe,(e=>(t,n)=>{hr.vip((()=>{const r=this._state;if(r.openComplete)r.dbOpenError||qe.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);const r=this;n||e((function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)}))}}))})),this.Collection=(o=this,Kt(cn.prototype,(function(e,t){this.db=o;let n=Yt,r=null;if(t)try{n=t()}catch(e){r=e}const i=e._ctx,a=i.table,s=a.hook.reading.fire;this._ctx={table:a,index:i.index,isPrimKey:!i.index||a.schema.primKey.keyPath&&i.index===a.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:i.or,valueMapper:s!==we?s:null}}))),this.Table=function(e){return Kt(qt.prototype,(function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:Xt(null,{creating:[ke,ye],reading:[_e,we],updating:[Ce,ye],deleting:[Se,ye]})}))}(this),this.Transaction=function(e){return Kt(Cn.prototype,(function(t,n,r,i,o){this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=i,this.idbtrans=null,this.on=Xt(this,"complete","error","abort"),this.parent=o||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new qe(((e,t)=>{this._resolve=e,this._reject=t})),this._completion.then((()=>{this.active=!1,this.on.complete.fire()}),(e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),jt(e)}))}))}(this),this.Version=function(e){return Kt(Vn.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return Kt(yn.prototype,(function(t,n,r){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r};const i=e._deps.indexedDB;if(!i)throw new ge.MissingAPI;this._cmp=this._ascending=i.cmp.bind(i),this._descending=(e,t)=>i.cmp(t,e),this._max=(e,t)=>i.cmp(e,t)>0?e:t,this._min=(e,t)=>i.cmp(e,t)<0?e:t,this._IDBKeyRange=e._deps.IDBKeyRange}))}(this),this.on("versionchange",(e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()})),this.on("blocked",(e=>{!e.newVersion||e.newVersionnew this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),$t.filter((e=>e.name===this.name&&e!==this&&!e._state.vcFired)).map((t=>t.on("versionchange").fire(e)))},this.use(er),this.use(nr),this.use(fr),this.use(ir),this.vip=Object.create(this,{_vip:{value:!0}}),r.forEach((e=>e(this)))}version(e){if(isNaN(e)||e<.1)throw new ge.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new ge.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const t=this._versions;var n=t.filter((t=>t._cfg.version===e))[0];return n||(n=new this.Version(e),t.push(n),t.sort($n),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||Ve.letThrough||this._vip)?e():new qe(((e,t)=>{if(this._state.openComplete)return t(new ge.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new ge.DatabaseClosed);this.open().catch(ye)}this._state.dbReadyPromise.then(e,t)})).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});const i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:t,level:null==n?10:n,name:r}),i.sort(((e,t)=>e.level-t.level)),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((e=>n?e.create!==n:!!t&&e.name!==t))),this}open(){return function(e){const t=e._state,{indexedDB:n}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((()=>t.dbOpenError?jt(t.dbOpenError):e));te&&(t.openCanceller._stackHolder=oe()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const r=t.openCanceller;function i(){if(t.openCanceller!==r)throw new ge.DatabaseClosed("db.open() was cancelled")}let o=t.dbReadyResolve,a=null,s=!1;const l=()=>new qe(((r,o)=>{if(i(),!n)throw new ge.MissingAPI;const l=e.name,c=t.autoSchema?n.open(l):n.open(l,Math.round(10*e.verno));if(!c)throw new ge.MissingAPI;c.onerror=wn(o),c.onblocked=ut(e._fireOnBlocked),c.onupgradeneeded=ut((r=>{if(a=c.transaction,t.autoSchema&&!e._options.allowEmptyDB){c.onerror=_n,a.abort(),c.result.close();const e=n.deleteDatabase(l);e.onsuccess=e.onerror=ut((()=>{o(new ge.NoSuchDatabase(`Database ${l} doesnt exist`))}))}else{a.onerror=wn(o);var i=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;s=i<1,e._novip.idbdb=c.result,Dn(e,i/10,a,o)}}),o),c.onsuccess=ut((()=>{a=null;const n=e._novip.idbdb=c.result,i=R(n.objectStoreNames);if(i.length>0)try{const r=n.transaction(1===(o=i).length?o[0]:o,"readonly");t.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;const r=e._dbSchema=Wn(0,t,n);e._storeNames=R(t.objectStoreNames,0),Tn(e,[e._allTables],w(r),r)}(e,n,r):(Hn(e,e._dbSchema,r),function(e,t){const n=Ln(Wn(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((e=>e.add.length||e.change.length)))}(e,r)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Pn(e,r)}catch(e){}var o;$t.push(e),n.onversionchange=ut((n=>{t.vcFired=!0,e.on("versionchange").fire(n)})),n.onclose=ut((t=>{e.on("close").fire(t)})),s&&function({indexedDB:e,IDBKeyRange:t},n){!Yn(e)&&n!==Wt&&Un(e,t).put({name:n}).catch(ye)}(e._deps,l),r()}),o)})).catch((e=>e&&"UnknownError"===e.name&&t.PR1398_maxLoop>0?(t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),l()):qe.reject(e)));return qe.race([r,("undefined"==typeof navigator?qe.resolve():qn()).then(l)]).then((()=>(i(),t.onReadyBeingFired=[],qe.resolve(Gn((()=>e.on.ready.fire(e.vip)))).then((function n(){if(t.onReadyBeingFired.length>0){let r=t.onReadyBeingFired.reduce(Ee,ye);return t.onReadyBeingFired=[],qe.resolve(Gn((()=>r(e.vip)))).then(n)}}))))).finally((()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1})).then((()=>e)).catch((n=>{t.dbOpenError=n;try{a&&a.abort()}catch(e){}return r===t.openCanceller&&e._close(),jt(n)})).finally((()=>{t.openComplete=!0,o()}))}(this)}_close(){const e=this._state,t=$t.indexOf(this);if(t>=0&&$t.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new qe((t=>{e.dbReadyResolve=t})),e.openCanceller=new qe(((t,n)=>{e.cancelOpen=n}))}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new ge.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,t=this._state;return new qe(((n,r)=>{const i=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=ut((()=>{!function({indexedDB:e,IDBKeyRange:t},n){!Yn(e)&&n!==Wt&&Un(e,t).delete(n).catch(ye)}(this._deps,this.name),n()})),e.onerror=wn(r),e.onblocked=this._fireOnBlocked};if(e)throw new ge.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(i):i()}))}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return w(this._allTables).map((e=>this._allTables[e]))}transaction(){const e=Kn.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r=Ve.trans;r&&r.db===this&&-1===e.indexOf("!")||(r=null);const i=-1!==e.indexOf("?");let o,a;e=e.replace("!","").replace("?","");try{if(a=t.map((e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||e===Ht)o=Ht;else{if("rw"!=e&&e!=Vt)throw new ge.InvalidArgument("Invalid transaction mode: "+e);o=Vt}if(r){if(r.mode===Ht&&o===Vt){if(!i)throw new ge.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&a.forEach((e=>{if(r&&-1===r.storeNames.indexOf(e)){if(!i)throw new ge.SubTransaction("Table "+e+" not included in parent transaction.");r=null}})),i&&r&&!r.active&&(r=null)}}catch(e){return r?r._promise(null,((t,n)=>{n(e)})):jt(e)}const s=Jn.bind(null,this,o,a,r,n);return r?r._promise(o,s,"lock"):Ve.trans?Ct(Ve.transless,(()=>this._whenReady(s))):this._whenReady(s)}table(e){if(!C(this._allTables,e))throw new ge.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const pr="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class mr{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[pr](){return this}}function gr(e,t){return w(t).forEach((n=>{lr(e[n]||(e[n]=new ar),t[n])})),e}let vr;try{vr={indexedDB:y.indexedDB||y.mozIndexedDB||y.webkitIndexedDB||y.msIndexedDB,IDBKeyRange:y.IDBKeyRange||y.webkitIDBKeyRange}}catch(y){vr={indexedDB:null,IDBKeyRange:null}}const br=hr;function yr(e){let t=wr;try{wr=!0,Sn.storagemutated.fire(e)}finally{wr=t}}M(br,{...be,delete:e=>new br(e,{addons:[]}).delete(),exists:e=>new br(e,{addons:[]}).open().then((e=>(e.close(),!0))).catch("NoSuchDatabaseError",(()=>!1)),getDatabaseNames(e){try{return function({indexedDB:e,IDBKeyRange:t}){return Yn(e)?Promise.resolve(e.databases()).then((e=>e.map((e=>e.name)).filter((e=>e!==Wt)))):Un(e,t).toCollection().primaryKeys()}(br.dependencies).then(e)}catch(e){return jt(new ge.MissingAPI)}},defineClass:()=>function(e){x(this,e)},ignoreTransaction:e=>Ve.trans?Ct(Ve.transless,e):e(),vip:Gn,async:function(e){return function(){try{var t=Xn(e.apply(this,arguments));return t&&"function"==typeof t.then?t:qe.resolve(t)}catch(e){return jt(e)}}},spawn:function(e,t,n){try{var r=Xn(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:qe.resolve(r)}catch(e){return jt(e)}},currentTransaction:{get:()=>Ve.trans||null},waitFor:function(e,t){const n=qe.resolve("function"==typeof e?br.ignoreTransaction(e):e).timeout(t||6e4);return Ve.trans?Ve.trans.waitFor(n):n},Promise:qe,debug:{get:()=>te,set:e=>{ne(e,"dexie"===e?()=>!0:Ft)}},derive:I,extend:x,props:M,override:N,Events:Xt,on:Sn,liveQuery:function(e){let t,n=!1;const r=new mr((r=>{const i=ee(e);let o=!1,a={},s={};const l={get closed(){return o},unsubscribe:()=>{o=!0,Sn.storagemutated.unsubscribe(f)}};r.start&&r.start(l);let c=!1,u=!1;function d(){return w(s).some((e=>a[e]&&function(e,t){const n=cr(t);let r=n.next();if(r.done)return!1;let i=r.value;const o=cr(e);let a=o.next(i.from),s=a.value;for(;!r.done&&!a.done;){if(an(s.from,i.to)<=0&&an(s.to,i.from)>=0)return!0;an(i.from,s.from)<0?i=(r=n.next(s.from)).value:s=(a=o.next(i.from)).value}return!1}(a[e],s[e])))}const f=e=>{gr(a,e),d()&&h()},h=()=>{if(c||o)return;a={};const p={},m=function(t){i&&bt();const n=()=>vt(e,{subscr:t,trans:null}),r=Ve.trans?Ct(Ve.transless,n):n();return i&&r.then(yt,yt),r}(p);u||(Sn(xn,f),u=!0),c=!0,Promise.resolve(m).then((e=>{n=!0,t=e,c=!1,o||(d()?h():(a={},s=p,r.next&&r.next(e)))}),(e=>{c=!1,n=!1,r.error&&r.error(e),l.unsubscribe()}))};return h(),l}));return r.hasValue=()=>n,r.getValue=()=>t,r},extendObservabilitySet:gr,getByKeyPath:$,setByKeyPath:D,delByKeyPath:function(e,t){"string"==typeof t?D(e,t,void 0):"length"in t&&[].map.call(t,(function(t){D(e,t,void 0)}))},shallowClone:L,deepClone:U,getObjectDiff:tr,cmp:an,asap:T,minKey:Pt,addons:[],connections:$t,errnames:pe,dependencies:vr,semVer:Rt,version:Rt.split(".").map((e=>parseInt(e))).reduce(((e,t,n)=>e+t/Math.pow(10,2*n)))}),br.maxKey=In(br.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(Sn(xn,(e=>{if(!wr){let t;Dt?(t=document.createEvent("CustomEvent"),t.initCustomEvent(kn,!0,!0,e)):t=new CustomEvent(kn,{detail:e}),wr=!0,dispatchEvent(t),wr=!1}})),addEventListener(kn,(({detail:e})=>{wr||yr(e)})));let wr=!1;if("undefined"!=typeof BroadcastChannel){const e=new BroadcastChannel(kn);"function"==typeof e.unref&&e.unref(),Sn(xn,(t=>{wr||e.postMessage(t)})),e.onmessage=e=>{e.data&&yr(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){Sn(xn,(e=>{try{wr||("undefined"!=typeof localStorage&&localStorage.setItem(kn,JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach((t=>t.postMessage({type:kn,changedParts:e}))))}catch(e){}})),"undefined"!=typeof addEventListener&&addEventListener("storage",(e=>{if(e.key===kn){const t=JSON.parse(e.newValue);t&&yr(t.changedParts)}}));const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",(function({data:e}){e&&e.type===kn&&yr(e.changedParts)}))}function _r(e){return xr.apply(this,arguments)}function xr(){return(xr=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.then((function(e){return[null,e]})).catch((function(e){return[e,null]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}qe.rejectionMapper=function(e,t){if(!e||e instanceof ue||e instanceof TypeError||e instanceof SyntaxError||!e.name||!ve[e.name])return e;var n=new ve[e.name](t||e.message,e);return"stack"in e&&A(n,"stack",{get:function(){return this.inner.stack}}),n},ne(te,Ft);var kr=new(function(e){p()(n,e);var t=g()(n);function n(){var e;return u()(this,n),e=t.call(this,"DFSToolDB"),b()(f()(e),"txList",void 0),b()(f()(e),"wallets",void 0),b()(f()(e),"accounts",void 0),e.version(1).stores({txList:"&key, chainId, account",wallets:"&key, chainId, account, publicKey",accounts:"&key, account, creation_date"}),e}return l()(n)}(hr))},64119:function(e,t,n){"use strict";n.d(t,{CE:function(){return S},FE:function(){return $},Hj:function(){return I},IU:function(){return E},Jm:function(){return R},Mn:function(){return j},Tv:function(){return Z},_9:function(){return T},_v:function(){return k},fD:function(){return D},g_:function(){return B},ow:function(){return P},q6:function(){return N},ri:function(){return L},zI:function(){return C}});var r=n(15009),i=n.n(r),o=n(72004),a=n.n(o),s=n(12444),l=n.n(s),c=n(31996),u=n.n(c),d=n(26037),f=n.n(d),h=n(9783),p=n.n(h),m=n(52677),g=n.n(m),v=n(99289),b=n.n(v),y=n(80507),w=n(45360),_=n(81354),x=n.n(_);function k(e){return new Promise((function(t){return setTimeout(t,e)}))}function S(e,t){var n=t||"",r=String(e),i=Number(r)<1,o=Number(r)<0;if(r.includes("e-")){var a=r.split("e-")[1],s=r.split("e-")[0],l=0;s.includes(".")?(l=s.split(".")[1].length,r=Number(r).toFixed(l+Number(a))):r=Number(r).toFixed(Number(a))}if(i){if(/0(\.0+)?$/.test(r))return n+"0";var c=/-?0\.(0{4,})/,u=/-?\d+\.0*\d{3}/.exec(r);if(r=u?u[0]:r,u=c.exec(r)){var d=u[1].length;return o?n+r.replace(c,"-0.0{"+d+"}"):n+r.replace(c,"0.0{"+d+"}")}return n+r}return n+Number(r).toLocaleString()}function C(e){return M.apply(this,arguments)}function M(){return(M=b()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:return n=e.sent,e.abrupt("return",[null,n]);case 7:if(e.prev=7,e.t0=e.catch(0),!(e.t0 instanceof Error)){e.next=13;break}return e.abrupt("return",[e.t0.message,null]);case 13:if("object"!==g()(e.t0)){e.next=17;break}return e.abrupt("return",[JSON.stringify(e.t0),null]);case 17:return e.abrupt("return",[e.t0,null]);case 18:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function E(e,t){return A.apply(this,arguments)}function A(){return(A=b()(i()().mark((function e(t,n){var r;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:return r=e.sent,e.abrupt("return",r);case 7:if(e.prev=7,e.t0=e.catch(0),!(e.t0 instanceof Error)){e.next=14;break}throw w.ZP.error({content:n||e.t0.message,duration:5}),e.t0;case 14:throw"object"===g()(e.t0)?w.ZP.error({content:n||JSON.stringify(e.t0),duration:5}):w.ZP.error({content:n||e.t0,duration:5}),e.t0;case 16:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function I(e,t,n){return O.apply(this,arguments)}function O(){return(O=b()(i()().mark((function e(t,n,r){var o,a,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=null!=n?n:function(){},e.prev=1,e.next=4,t;case 4:return a=e.sent,e.abrupt("return",a);case 8:if(e.prev=8,e.t0=e.catch(1),!(e.t0 instanceof Error)){e.next=16;break}throw o(),w.ZP.error({content:r||e.t0.message,duration:5}),e.t0;case 16:throw"object"===g()(e.t0)?(s="",s=e.t0.hasOwnProperty("message")?e.t0.message:JSON.stringify(e.t0),w.ZP.error({content:r||s,duration:5})):w.ZP.error({content:r||e.t0,duration:5}),o(),e.t0;case 19:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)}function j(){var e=navigator.userAgent;return/mobile/i.test(e)}function Z(e,t){e instanceof Error?(console.log(e.message),t.error(e.message)):e.response?(console.log(e.response),t.error(JSON.stringify(e.response.data))):e.request?(console.log("no response"),t.error("No response")):(console.log(e),"object"===g()(e)?t.error(JSON.stringify(e)):t.error(e))}function R(e,t,n){var r=e.id.toString();t&&t.hasOwnProperty(r)&&(t[r].custom||n[r].find((function(e){return e.value===t[r].url}))?e.url=t[r].url:t[r].url=e.url)}function N(e,t){return x().AES.encrypt(e,t).toString()}function P(e,t){return x().AES.decrypt(e,t).toString(x().enc.Utf8)}var T=function(e){u()(n,e);var t=f()(n);function n(){return l()(this,n),t.apply(this,arguments)}return a()(n)}(y.AU);p()(T,"abiName","freecpu"),p()(T,"abiFields",[{name:"user",type:y.VG}]);var B=function(e){u()(n,e);var t=f()(n);function n(){return l()(this,n),t.apply(this,arguments)}return a()(n)}(y.AU);p()(B,"abiName","burn"),p()(B,"abiFields",[{name:"assetid",type:y.zM}]);var $=function(e){u()(n,e);var t=f()(n);function n(){return l()(this,n),t.apply(this,arguments)}return a()(n)}(y.AU);function D(e){return e+" "}function L(e){return parseFloat(e.toString().split(" ")[0])}p()($,"abiName","transfer"),p()($,"abiFields",[{name:"from",type:y.VG},{name:"to",type:y.VG},{name:"quantity",type:y.xR},{name:"memo",type:"string"}])},44106:function(e,t,n){"use strict";var r=n(28316),i=n(58722),o=new i.JsSignatureProvider(["5JtUScZK2XEp3g9gh7F8bwtPTRAkASmNrrftmx4AxDKD5K4zDnr"]),a=new r.pc("https://api.dfs.land"),s=new r.V0({rpc:a,signatureProvider:o});t.Z=s},98390:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(15009),i=n.n(r),o=n(99289),a=n.n(o),s=n(12444),l=n.n(s),c=n(72004),u=n.n(c),d=n(25098),f=n.n(d),h=n(31996),p=n.n(h),m=n(26037),g=n.n(m),v=n(9783),b=n.n(v),y=n(64119),w=n(59530),_=n(80507),x=n(69284),k=function(e){p()(r,e);var t,n=g()(r);function r(e){var t;return l()(this,r),t=n.call(this),b()(f()(t),"id","transact-plugin-cosigner"),b()(f()(t),"actor",void 0),b()(f()(t),"permission",void 0),b()(f()(t),"privateKey",void 0),b()(f()(t),"contract",_.VG.from("dfsfreecpu11")),b()(f()(t),"action",_.VG.from("freecpu")),t.actor=_.VG.from(e.actor),t.permission=_.VG.from(e.permission),t.privateKey=_._q.from(e.privateKey),e.contract&&(t.contract=_.VG.from(e.contract)),e.action&&(t.action=_.VG.from(e.action)),t}return u()(r,[{key:"register",value:function(e){var t=this;e.addHook(x.mS.beforeSign,function(){var e=a()(i()().mark((function e(n,r){var o,a,s,l;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,w.getDvaApp)()){e.next=4;break}return e.abrupt("return",n);case 4:if((0,w.getDvaApp)()._store.getState().global.freeCpu){e.next=7;break}return e.abrupt("return",{request:n});case 7:return e.next=9,t.prependAction(n,r);case 9:return o=e.sent,e.next=12,r.resolve(o);case 12:return a=e.sent,s=t.privateKey.signDigest(a.transaction.signingDigest(n.getChainId())),e.next=16,r.createRequest({transaction:a.transaction});case 16:return l=e.sent,e.abrupt("return",{request:l,signatures:[s]});case 18:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}},{key:"prependAction",value:(t=a()(i()().mark((function e(t,n){var r,o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=_.aU.from({account:this.contract,name:this.action,authorization:[{actor:this.actor,permission:this.permission},{actor:n.permissionLevel.actor.toString(),permission:n.permissionLevel.permission.toString()}],data:y._9.from({user:n.permissionLevel.actor.toString()})}),o=(0,x.wA)(t,r),e.abrupt("return",o);case 3:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})}]),r}(x.io)},34390:function(e,t,n){"use strict";n.d(t,{q:function(){return y}});var r=n(12444),i=n.n(r),o=n(72004),a=n.n(o),s=n(25098),l=n.n(s),c=n(31996),u=n.n(c),d=n(26037),f=n.n(d),h=n(9783),p=n.n(h),m=n(69284),g=n(80507),v=n(74793),b=new URL(n(24602),n.b).toString(),y=function(e){u()(n,e);var t=f()(n);function n(e){var r;i()(this,n),r=t.call(this),p()(l()(r),"id","wallet-plugin-privatekey"),p()(l()(r),"config",{requiresChainSelect:!1,requiresPermissionSelect:!1}),p()(l()(r),"metadata",m.uB.from({name:"Don't Click(不要点击)",description:"",logo:b}));var o=g._q.from(e);return r.data.privateKey=o,r.metadata.publicKey=String(o.toPublic()),r.metadata.description="An unsecured wallet that can sign for authorities using the ".concat(String(r.data.publicKey).substring(0,11)+"..."+String(r.data.publicKey).substring(String(r.data.publicKey).length-4,String(r.data.publicKey).length)," public key."),r}return a()(n,[{key:"login",value:function(e){var t;return t=e.chain?e.chain.id:e.chains[0].id,(0,v.L5)(new Promise((function(n,r){e.permissionLevel?n({chain:t,permissionLevel:e.permissionLevel}):r("Calling login() without a permissionLevel is not supported by the WalletPluginPrivateKey plugin.")})))}},{key:"sign",value:function(e,t){var n=this;return(0,v.L5)(new Promise((function(r){var i=g.YW.from(e.transaction).signingDigest(g.Nz.from(t.chain.id));r({signatures:[g._q.from(n.data.privateKey).signDigest(i)]})})))}}]),n}(m.k3)},58235:function(e,t,n){"use strict";var r=t;r.bignum=n(4590),r.define=n(3403).define,r.base=n(84849),r.constants=n(6468),r.decoders=n(3380),r.encoders=n(72992)},3403:function(e,t,n){"use strict";var r=n(72992),i=n(3380),o=n(35717);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t=this.name;function n(e){this._initNamed(e,t)}return o(n,e),n.prototype._initNamed=function(t,n){e.call(this,t,n)},new n(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},a.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},a.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},85371:function(e,t,n){"use strict";var r=n(52677).default,i=n(35717),o=n(29874).b,a=n(2399).Buffer;function s(e,t){o.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function l(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return l.isEncoderBuffer(e)||(e=new l(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+r(e));this.value=e,this.length=e.length}}i(s,o),t.C=s,s.isDecoderBuffer=function(e){return e instanceof s||"object"===r(e)&&a.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},s.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new s(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=l,l.isEncoderBuffer=function(e){return e instanceof l||"object"===r(e)&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},l.prototype.join=function(e,t){return e||(e=a.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},84849:function(e,t,n){"use strict";var r=t;r.Reporter=n(29874).b,r.DecoderBuffer=n(85371).C,r.EncoderBuffer=n(85371).R,r.Node=n(81440)},81440:function(e,t,n){"use strict";var r=n(52677).default,i=n(29874).b,o=n(85371).R,a=n(85371).C,s=n(79746),l=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(l);function u(e,t,n){var r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=u;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var e=this._baseState,t={};d.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},u.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},u.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(s(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==r(e)||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),l.forEach((function(e){u.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(n),this}})),u.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},u.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,i=n.default,o=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var l=null;if(null!==n.explicit?l=n.explicit:null!==n.implicit?l=n.implicit:null!==n.tag&&(l=n.tag),null!==l||n.any){if(o=this._peekTag(e,l,n.any),e.isError(o))return o}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(c)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){var u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}var d=e.offset;if(null===n.use&&null===n.choice){var f;n.any&&(f=e.save());var h=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(h))return h;n.any?i=e.raw(f):e=h}if(t&&t.track&&null!==n.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var p=new a(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(p,t)}}return n.obj&&o&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,i),i},u.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),s(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},u.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(o){var a=e.save(),s=n.choice[o];try{var l=s._decode(e,t);if(e.isError(l))return!1;r={type:o,value:l},i=!0}catch(t){return e.restore(a),!1}return!0}),this),i?r:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new o(e,this.reporter)},u.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var i=this._encodeValue(e,t,n);if(void 0!==i&&!this._skipDefault(i,t,n))return i}},u.prototype._encodeValue=function(e,t,n){var o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new i);var a=null;if(this.reporter=t,o.optional&&void 0===e){if(null===o.default)return;e=o.default}var s=null,l=!1;if(o.any)a=this._createEncoderBuffer(e);else if(o.choice)a=this._encodeChoice(e,t);else if(o.contains)s=this._getUse(o.contains,n)._encode(e,t),l=!0;else if(o.children)s=o.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var i=t.enterKey(n._baseState.key);if("object"!==r(e))return t.error("Child expected, but input is not object");var o=n._encode(e[n._baseState.key],t,e);return t.leaveKey(i),o}),this).filter((function(e){return e})),s=this._createEncoderBuffer(s);else if("seqof"===o.tag||"setof"===o.tag){if(!o.args||1!==o.args.length)return t.error("Too many args for : "+o.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,s=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),c))}else null!==o.use?a=this._getUse(o.use,n)._encode(e,t):(s=this._encodePrimitive(o.tag,e),l=!0);if(!o.any&&null===o.choice){var u=null!==o.implicit?o.implicit:o.tag,d=null===o.implicit?"universal":"context";null===u?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(a=this._encodeComposite(u,l,d,s))}return null!==o.explicit&&(a=this._encodeComposite(o.explicit,!1,"context",a)),a},u.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},29874:function(e,t,n){"use strict";var r=n(35717);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.b=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof o;if(t=r?e:new o(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},1929:function(e,t){"use strict";function n(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n(t.tag)},6468:function(e,t,n){"use strict";var r=t;r._reverse=function(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t},r.der=n(1929)},98451:function(e,t,n){"use strict";var r=n(35717),i=n(4590),o=n(85371).C,a=n(81440),s=n(1929);function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.call(this,"der",e)}function u(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=s.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){var o=n;for(n=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;n<<=7,n|=127&o}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function d(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(var o=0;o=31)return r.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=a.tagClassByName[n||"universal"]<<6,i}(e,t,n,this.reporter);if(r.length<128){var s=i.alloc(2);return s[0]=o,s[1]=r.length,this._createEncoderBuffer([s,r])}for(var l=1,c=r.length;c>=256;c>>=8)l++;var u=i.alloc(2+l);u[0]=o,u[1]=128|l;for(var d=1+l,f=r.length;f>0;d--,f>>=8)u[d]=255&f;return this._createEncoderBuffer([u,r])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=i.alloc(2*e.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var a=0,s=0;s=128;l>>=7)a++}for(var c=i.alloc(a),u=c.length-1,d=e.length-1;d>=0;d--){var f=e[d];for(c[u--]=127&f;(f>>=7)>0;)c[u--]=128|127&f}return this._createEncoderBuffer(c)},l.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[c(r.getUTCFullYear()),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[c(r.getUTCFullYear()%100),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=i.from(n)}if(i.isBuffer(e)){var r=e.length;0===e.length&&r++;var o=i.alloc(r);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var a=1,s=e;s>=256;s>>=8)a++;for(var l=new Array(a),c=l.length-1;c>=0;c--)l[c]=255&e,e>>=8;return 128&l[0]&&l.unshift(0),this._createEncoderBuffer(i.from(l))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r