PageSourceSearch

https://did-app-v2.d.id/bit/_next/static/chunks/4954.b8474b9bc12fd331.js

js d.id collected 2026-09-24 11:12:11 UTC 17,831 bytes, 64 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="537de392-7c5b-4520-afed-ce051fc938d3",e._sentryDebugIdIdentifier="sentry-dbid-537de392-7c5b-4520-afed-ce051fc938d3")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"2cb1d62b066346655e3552e91a7641bb5c693287"};"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4954],{94954:function(e,t,n){n.d(t,{ccc:function(){return r}});var r={};n.r(r),n.d(r,{Address:function(){return i.Address},Bytes:function(){return i.Bytes},Cell:function(){return i.Cell},CellAny:function(){return i.CellAny},CellDep:function(){return i.CellDep},CellDepInfo:function(){return i.CellDepInfo},CellDepVec:function(){return i.CellDepVec},CellInput:function(){return i.CellInput},CellInputVec:function(){return i.CellInputVec},CellOutput:function(){return i.CellOutput},CellOutputVec:function(){return i.CellOutputVec},Client:function(){return i.Client},ClientBlock:function(){return i.ClientBlock},ClientBlockHeader:function(){return i.ClientBlockHeader},ClientBlockUncle:function(){return i.ClientBlockUncle},ClientCache:function(){return i.ClientCache},ClientCacheMemory:function(){return i.ClientCacheMemory},ClientIndexerSearchKey:function(){return i.ClientIndexerSearchKey},ClientIndexerSearchKeyFilter:function(){return i.ClientIndexerSearchKeyFilter},ClientIndexerSearchKeyTransaction:function(){return i.ClientIndexerSearchKeyTransaction},ClientJsonRpc:function(){return i.ClientJsonRpc},ClientPublicMainnet:function(){return i.ClientPublicMainnet},ClientPublicTestnet:function(){return i.ClientPublicTestnet},ClientTransactionResponse:function(){return i.ClientTransactionResponse},Connector:function(){return P},DepTypeCodec:function(){return i.DepTypeCodec},Eip6963:function(){return i.Eip6963},ErrorClientBase:function(){return i.ErrorClientBase},ErrorClientDuplicatedTransaction:function(){return i.ErrorClientDuplicatedTransaction},ErrorClientMaxFeeRateExceeded:function(){return i.ErrorClientMaxFeeRateExceeded},ErrorClientRBFRejected:function(){return i.ErrorClientRBFRejected},ErrorClientResolveUnknown:function(){return i.ErrorClientResolveUnknown},ErrorClientVerification:function(){return i.ErrorClientVerification},ErrorClientWaitTransactionTimeout:function(){return i.ErrorClientWaitTransactionTimeout},ErrorTransactionInsufficientCapacity:function(){return i.ErrorTransactionInsufficientCapacity},ErrorTransactionInsufficientCoin:function(){return i.ErrorTransactionInsufficientCoin},HashTypeCodec:function(){return i.HashTypeCodec},HasherCkb:function(){return i.HasherCkb},HasherKeecak256:function(){return i.HasherKeecak256},JoyId:function(){return i.JoyId},KnownScript:function(){return i.KnownScript},Nip07:function(){return i.Nip07},Okx:function(){return i.Okx},One:function(){return i.One},OutPoint:function(){return i.OutPoint},Provider:function(){return $},RawTransaction:function(){return i.RawTransaction},Rei:function(){return i.Rei},RequestorJsonRpc:function(){return i.RequestorJsonRpc},Script:function(){return i.Script},ScriptInfo:function(){return i.ScriptInfo},ScriptOpt:function(){return i.ScriptOpt},ScriptVec:function(){return i.ScriptVec},Signature:function(){return i.Signature},Signer:function(){return i.Signer},SignerAlwaysError:function(){return i.SignerAlwaysError},SignerBtc:function(){return i.SignerBtc},SignerBtcPublicKeyReadonly:function(){return i.SignerBtcPublicKeyReadonly},SignerCkbPrivateKey:function(){return i.SignerCkbPrivateKey},SignerCkbPublicKey:function(){return i.SignerCkbPublicKey},SignerCkbScriptReadonly:function(){return i.SignerCkbScriptReadonly},SignerDoge:function(){return i.SignerDoge},SignerDogeAddressReadonly:function(){return i.SignerDogeAddressReadonly},SignerDogePrivateKey:function(){return i.SignerDogePrivateKey},SignerDummy:function(){return i.SignerDummy},SignerEvm:function(){return i.SignerEvm},SignerEvmAddressReadonly:function(){return i.SignerEvmAddressReadonly},SignerInfo:function(){return i.SignerInfo},SignerNostr:function(){return i.SignerNostr},SignerNostrPrivateKey:function(){return i.SignerNostrPrivateKey},SignerNostrPublicKeyReadonly:function(){return i.SignerNostrPublicKeyReadonly},SignerOpenLink:function(){return i.SignerOpenLink},SignerSignType:function(){return i.SignerSignType},SignerType:function(){return i.SignerType},SignersController:function(){return i.SignersController},Since:function(){return i.Since},Transaction:function(){return i.Transaction},UniSat:function(){return i.UniSat},UtxoGlobal:function(){return i.UtxoGlobal},WebComponentConnector:function(){return k},WitnessArgs:function(){return i.WitnessArgs},Xverse:function(){return i.Xverse},Zero:function(){return i.Zero},apply:function(){return i.apply},btcEcdsaPublicKeyHash:function(){return i.btcEcdsaPublicKeyHash},btcP2pkhAddressFromPublicKey:function(){return i.btcP2pkhAddressFromPublicKey},btcPublicKeyFromP2pkhAddress:function(){return i.btcPublicKeyFromP2pkhAddress},btcVarLengthBytesFrom:function(){return i.btcVarLengthBytesFrom},buildNostrEventFromMessage:function(){return i.buildNostrEventFromMessage},bytesConcat:function(){return i.bytesConcat},bytesConcatTo:function(){return i.bytesConcatTo},bytesEq:function(){return i.bytesEq},bytesFrom:function(){return i.bytesFrom},bytesTo:function(){return i.bytesTo},calcDaoClaimEpoch:function(){return i.calcDaoClaimEpoch},calcDaoProfit:function(){return i.calcDaoProfit},depTypeFrom:function(){return i.depTypeFrom},depTypeFromBytes:function(){return i.depTypeFromBytes},depTypeToBytes:function(){return i.depTypeToBytes},epochFrom:function(){return i.epochFrom},epochFromHex:function(){return i.epochFromHex},epochToHex:function(){return i.epochToHex},fixedPointFrom:function(){return i.fixedPointFrom},fixedPointToString:function(){return i.fixedPointToString},hashCkb:function(){return i.hashCkb},hashTypeFrom:function(){return i.hashTypeFrom},hashTypeFromBytes:function(){return i.hashTypeFromBytes},hashTypeId:function(){return i.hashTypeId},hashTypeToBytes:function(){return i.hashTypeToBytes},hexFrom:function(){return i.hexFrom},isWebview:function(){return i.isWebview},keystoreDecrypt:function(){return i.keystoreDecrypt},keystoreEncrypt:function(){return i.keystoreEncrypt},messageHashBtcEcdsa:function(){return i.messageHashBtcEcdsa},messageHashCkbSecp256k1:function(){return i.messageHashCkbSecp256k1}
1,messageHashDogeEcdsa:function(){return i.messageHashDogeEcdsa},mol:function(){return i.mol},nostrEventHash:function(){return i.nostrEventHash},numBeFromBytes:function(){return i.numBeFromBytes},numBeToBytes:function(){return i.numBeToBytes},numFrom:function(){return i.numFrom},numFromBytes:function(){return i.numFromBytes},numLeFromBytes:function(){return i.numLeFromBytes},numLeToBytes:function(){return i.numLeToBytes},numMax:function(){return i.numMax},numMin:function(){return i.numMin},numToBytes:function(){return i.numToBytes},numToHex:function(){return i.numToHex},reduceAsync:function(){return i.reduceAsync},sleep:function(){return i.sleep},spore:function(){return i.spore},ssri:function(){return i.ssri},stringify:function(){return i.stringify},udt:function(){return i.udt},udtBalanceFrom:function(){return i.udtBalanceFrom},useCcc:function(){return x},useSigner:function(){return _},verifyMessageBtcEcdsa:function(){return i.verifyMessageBtcEcdsa},verifyMessageCkbSecp256k1:function(){return i.verifyMessageCkbSecp256k1},verifyMessageDogeEcdsa:function(){return i.verifyMessageDogeEcdsa},verifyMessageEvmPersonal:function(){return i.verifyMessageEvmPersonal},verifyMessageJoyId:function(){return i.verifyMessageJoyId},verifyMessageNostrEvent:function(){return i.verifyMessageNostrEvent}});var i=n(84193),o=n(40033),s=n(70453),c=n(74709),u=n(73926),l=n(19471),a=n(7186);/**
2 * @license
3 * Copyright 2017 Google LLC
4 * SPDX-License-Identifier: BSD-3-Clause
5 */let f=(e,t)=>{let n=e._$AN;if(void 0===n)return!1;for(let e of n)e._$AO?.(t,!1),f(e,t);return!0},d=e=>{let t,n;do{if(void 0===(t=e._$AM))break;(n=t._$AN).delete(e),e=t}while(0===n?.size)},h=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),g(t)}};function p(e){void 0!==this._$AN?(d(this),this._$AM=e,h(this)):this._$AM=e}function y(e,t=!1,n=0){let r=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size){if(t){if(Array.isArray(r))for(let e=n;e<r.length;e++)f(r[e],!1),d(r[e]);else null!=r&&(f(r,!1),d(r))}else f(this,e)}}let g=e=>{e.type==a.pX.CHILD&&(e._$AP??=y,e._$AQ??=p)};
5class C extends a.Xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),h(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(f(this,e),d(this))}setValue(e){if((0,l.OR)(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}/**
6 * @license
7 * Copyright 2020 Google LLC
8 * SPDX-License-Identifier: BSD-3-Clause
9 */let m=()=>new v;class v{}let b=new WeakMap,S=(0,a.XM)(class extends C{render(e){return u.Ld}update(e,[t]){let n=t!==this.G;return n&&void 0!==this.G&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.G=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),u.Ld}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.G){let t=this.ht??globalThis,n=b.get(t);void 0===n&&(n=new WeakMap,b.set(t,n)),void 0!==n.get(this.G)&&this.G.call(this.ht,void 0),n.set(this.G,e),void 0!==e&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){return"function"==typeof this.G?b.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var w=n(27433);class E{get controller(){return this.host.signersController??this.defaultController}constructor(e){this.host=e,this.wallets=[],this.defaultController=new o.fR.SignersController,e.addController(this)}refresh(){return this.controller.refresh(this.host.client,e=>{this.wallets=[...e],this.update()},this.host)}update(){this.host.refreshSigner(),this.host.requestUpdate()}hostConnected(){this.refresh(),setTimeout(()=>this.refresh(),500)}hostDisconnected(){this.controller.disconnect()}}var T=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};let k=class extends s.oi{constructor(){super(...arguments),this.client=new o.fR.ClientPublicTestnet,this.signersControllerInner=new E(this),this.mainRef=m(),this.bodyRef=m()}setClient(e){this.client=e}disconnect(){this.onClose(()=>{this.walletName=void 0,this.signerName=void 0,this.saveConnection(),this.signer?.signer.disconnect()})}loadConnection(){let{signerName:e,walletName:t}=JSON.parse(window.localStorage.getItem("ccc-connection-info")??"{}");this.signerName=e,this.walletName=t}saveConnection(){window.localStorage.setItem("ccc-connection-info",JSON.stringify({signerName:this.signerName,walletName:this.walletName}))}connectedCallback(){super.connectedCallback(),this.loadConnection()}willUpdate(e){(e.has("name")||e.has("icon")||e.has("client")||e.has("signerFilter")||e.has("preferredNetworks"))&&this.signersControllerInner.refresh(),(e.has("walletName")||e.has("signerName"))&&this.refreshSigner(),this.dispatchEvent(new Event("willUpdate"))}refreshSigner(){let e=this.signersControllerInner.wallets.find(({name:e})=>e===this.walletName),t=e?.signers.find(({name:e})=>e===this.signerName);this.updateSigner(e,t)}async updateSigner(e,t){t?.signer!==this.signer?.signer&&(this.unregisterSignerReplacer?.(),this.unregisterSignerReplacer=void 0,t&&await t.signer.isConnected()?(this.wallet=e,this.signer=t,this.unregisterSignerReplacer?.(),this.unregisterSignerReplacer=t.signer.onReplaced(()=>{this.signersControllerInner.refresh()})):(this.wallet=void 0,this.signer=void 0))}render(){return s.dy`<div
10      class="background"
11      @click=${e=>{e.target===e.currentTarget&&this.onClose()}}
12      @close=${e=>{e.stopPropagation(),this.onClose(e.callback)}}
13      @updated=${()=>this.updated()}
14    >
15      <div class="main" ${S(this.mainRef)}>
16        ${this.wallet&&this.signer?s.dy`
17              <ccc-connected-scene
18                ?hideMark=${this.hideMark}
19                .wallet=${this.wallet}
20                .signer=${this.signer.signer}
21                .clientOptions=${this.clientOptions}
22                @disconnect=${()=>this.disconnect()}
23                @select-client=${e=>this.setClient(e.client)}
24                ${S(this.bodyRef)}
25              ></ccc-connected-scene>
26            `:s.dy`
27              <ccc-selecting-scene
28                .wallets=${this.signersControllerInner.wallets}
29                @connected=${({walletName:e,signerName:t})=>{this.walletName=e,this.signerName=t,this.refreshSigner(),this.saveConnection()}}
30                ${S(this.bodyRef)}
31              ></ccc-selecting-scene>
32            `}
33      </div>
34    </div>`}onClose(e){this.mainRef.value&&(this.mainRef.value.style.height="0"),setTimeout(()=>{this.dispatchEvent(new w.M),this.bodyRef.value?.onClose?.(),e?.()},150)}updated(){this.mainRef.value&&(this.mainRef.value.style.height=`${this.bodyRef.value?.clientHeight??0}px`)}};k.styles=s.iv`
35    :host {
36      width: 100vw;
37      height: 100vh;
38      position: fixed;
39      left: 0;
40      top: 0;
41    }
42
43    .background {
44      width: 100%;
45      height: 100%;
46      background: rgba(18, 19, 24, 0.7);
47    }
48
49    .main {
50      position: fixed;
51      left: 50%;
52      top: 50%;
53      transform: translate(-50%, -50%);
54      background: var(--background);
55      border-radius: 1.2rem;
56      overflow: hidden;
57      transition: height 0.15s ease-out;
58    }
59  `,T([(0,c.Cb)()],k.prototype,"hideMark",void 0),T([(0,c.Cb)()],k.prototype,"name",void 0),T([(0,c.Cb)()],k.prototype,"icon",void 0),T([(0,c.Cb)()],k.prototype,"preferredNetworks",void 0),T([(0,c.Cb)()],k.prototype,"signersController",void 0),T([(0,c.SB)()],k.prototype,"clientOptions",void 0),T([(0,c.SB)()],k.prototype,"client",void 0),T([(0,c.SB)()],k.prototype,"walletName",void 0),T([(0,c.SB)()],k.prototype,"signerName",void 0),T([(0,c.SB)()],k.prototype,"wallet",void 0),T([(0,c.SB)()],k.prototype,"signer",void 0),T([(0,c.SB)()],k.prototype,"unregisterSignerReplacer",void 0),k=T([(0,c.Mo)("ccc-connector")],k),n(1999),n(87136);/**
60 * @license
61 * Copyright 2018 Google LLC
62 * SPDX-License-Identifier: BSD-3-Clause
63 */let R=new Set(["children","localName","ref","style","className"]),B=new WeakMap,N=(e,t,n,r,i)=>{let o,s;let c=i?.[t];void 0===c?(e[t]=n,null==n&&t in HTMLElement.prototype&&e.removeAttribute(t)):n!==r&&(void 0===(o=B.get(e))&&B.set(e,o=new Map),s=o.get(c),void 0!==n?void 0===s?(o.set(c,s={handleEvent:n}),e.addEventListener(c,s)):s.handleEvent=n:void 0!==s&&(o.delete(c),e.removeEventListener(c,s)))};var A=n(52983),M=n.t(A,2);let P=(({react:e,tagName:t,elementClass:n,events:r,displayName:i})=>{let o=new Set(Object.keys(r??{})),s=e.forwardRef((i,s)=>{let c=e.useRef(new Map),u=e.useRef(null),l={},a={};for(let[e,t]of Object.entries(i))R.has(e)?l["className"===e?"class":e]=t:o.has(e)||e in n.prototype?a[e]=t:l[e]=t;return e.useLayoutEffect(()=>{if(null===u.current)return;let e=new Map;for(let t in a)N(u.current,t,i[t],c.current.get(t),r),c.current.delete(t),e.set(t,i[t]);for(let[e,t]of c.current)N(u.current,e,void 0,t,r);c.current=e}),e.useLayoutEffect(()=>{u.current?.removeAttribute("defer-hydration")},[]),l.suppressHydrationWarning=!0,e.createElement(t,{...l,ref:e.useCallback(e=>{u.current=e,"function"==typeof s?s(e):null!==s&&(s.current=e)},[s])})});return s.displayName=i??n.name,s})({tagName:"ccc-connector",elementClass:k,react:M,events:{onWillUpdate:"willUpdate",onClose:"close"}}),I=(0,A.createContext)(void 0);class F extends i.SignersController{constructor(e){super(),this.filter=e}async addSigner(e,t,n,r){if(!this.filter||await this.filter(n,{name:e,icon:t}))return super.addSigner(e,t,n,r)}}function $({children:e,connectorProps:t,hideMark:n,name:r,icon:o,signerFilter:s,signersController:c,defaultClient:u,clientOptions:l,preferredNetworks:a}){let[f,d]=(0,A.useState)(null),[h,p]=(0,A.useState)(!1),[y,g]=(0,A.useState)(0),C=(0,A.useRef)(void 0),m=(0,A.useMemo)(()=>f?.client??new i.ClientPublicTestnet,[f?.client]),v=(0,A.useCallback)(()=>{p(!0),f?.requestUpdate()},[p,f,f?.requestUpdate]),b=(0,A.useCallback)(()=>{p(!1),f?.requestUpdate()},[p,f,f?.requestUpdate]),S=(0,A.useMemo)(()=>f?.disconnect.bind(f)??(()=>{}),[f,f?.disconnect]),w=(0,A.useMemo)(()=>f?.setClient.bind(f)??(()=>{}),[f,f?.setClient]);return(0,A.useEffect)(()=>{u&&w(u)},[w]),(0,A.useEffect)(()=>
63{C.current?C.current.filter=s:C.current=new F(s)},[s]),A.createElement(I.Provider,{value:{isOpen:h,open:v,close:b,disconnect:S,setClient:w,client:m,wallet:f?.wallet,signerInfo:f?.signer}},A.createElement(P,{hideMark:n,name:r,icon:o,signersController:c??C.current,ref:d,onWillUpdate:()=>g(e=>e+1),onClose:b,preferredNetworks:a,clientOptions:l,...t,style:{zIndex:999,...h?{}:{display:"none"},"--background":"#fff","--divider":"#eee","--btn-primary":"#f8f8f8","--btn-primary-hover":"#efeeee","--btn-secondary":"#ddd","--btn-secondary-hover":"#ccc","--icon-primary":"#1E1E1E","--icon-secondary":"#666666",color:"#1e1e1e","--tip-color":"#666",...t?.style}}),e)}function x(){let e=(0,A.useContext)(I);if(!e)throw Error("The component which invokes the useCcc hook should be placed in a ccc.Provider.");return e}function _(){return x().signerInfo?.signer}}}]);
64//# sourceMappingURL=4954.b8474b9bc12fd331.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.