!function(e){var t={};function n(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(o,s,function(t){return e[t]}.bind(null,s));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t,n){"use strict";var o,s="object"==typeof Reflect?Reflect:null,r=s&&"function"==typeof s.apply?s.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};o=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var c=10;function u(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function h(e,t,n,o){var s,r,i,a;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),i=r[t]),void 0===i)i=r[t]=n,++e._eventsCount;else if("function"==typeof i?i=r[t]=o?[n,i]:[i,n]:o?i.unshift(n):i.push(n),(s=u(e))>0&&i.length>s&&!i.warned){i.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=i.length,a=c,console&&console.warn&&console.warn(a)}return e}function d(){for(var e=[],t=0;t0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var c=s[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,h=m(c,u);for(n=0;n=0;r--)if(n[r]===t||n[r].listener===t){i=n[r].listener,s=r;break}if(s<0)return this;0===s?n.shift():function(e,t){for(;t+1=0;o--)this.removeListener(e,t[o]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var o=n(2);function s(t,n,s,r,i){const a=e.env.DEBUG;if(!s||!n)throw new Error("cannot safely postMessage without knowing the target origin");const c={};return t.addEventListener(o.a.MESSAGE,e=>{if(e.source!==n||e.origin!==s)return;if(!e.data||!e.data.type)return;if(!e.data.hasOwnProperty("payload"))return;if("string"!=typeof e.data.type)return;const t=c[e.data.type];t&&t.size&&t.forEach(t=>{a&&console.log(`[pO] ${r} <-- ${i}`,e.data.type,e.data.payload,s);t(e.data.payload,(e,t)=>{a&&console.log(`[pO respond] ${r} --\x3e ${i}`,e,t,s),n.postMessage({type:e,payload:t},s)})})}),{addHandler:(e,t)=>{c[e]||(c[e]=new Map),c[e].set(t,t)},postMessage:(e,t)=>{a&&console.log(`[pO] ${r} --\x3e ${i}`,e,t,s),n.postMessage({type:e,payload:t},s)}}}function r(t,n,o){const s=[];return t.source!==n&&s.push("PostMessage source does not match expected source"),t.origin!==o&&s.push("PostMessage origin does not match expected origin"),t.data||s.push("PostMessage does not contain a data property"),t.data.type||s.push("PostMessage's data property does not have a type property"),t.data.hasOwnProperty("payload")||s.push("PostMessage's data property does not have a payload property"),"string"!=typeof t.data.type&&s.push("PostMessage's data.type property is not a string"),!s.length||(function(t,...n){e.env.DEBUG&&console[t](...n)}("error",s,t),!1)}function i(e,t,n,s){return n.addEventListener(o.a.MESSAGE,n=>{r(n,e,t)&&s(n.data.type,n.data.payload)}),{postMessage:(n,o)=>{const s=t;e.postMessage({type:n,payload:o},s)}}}function a(e,t,n,o="main window",r="iframe"){return s(e,t.contentWindow,n,o,r)}}).call(this,n(3))},function(e,t,n){"use strict";var o;n.d(t,"a",(function(){return o})),function(e){e.STORAGE="storage",e.MESSAGE="message",e.UNLOCK="unlockProtocol"}(o||(o={}))},function(e,t){var n,o,s=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{o="function"==typeof clearTimeout?clearTimeout:i}catch(e){o=i}}();var c,u=[],h=!1,d=-1;function l(){h&&c&&(h=!1,c.length?u=c.concat(u):d=-1,u.length&&f())}function f(){if(!h){var e=a(l);h=!0;for(var t=u.length;t;){for(c=u,u=[];++d1)for(var n=1;n{a(e,t)},500))}function c(e,t){e.document.body.style.overflow="hidden",t.className="unlock start show"}function u(e,t){t.className="unlock start",e.document.body.style.overflow=""}class h extends s.EventEmitter{}class d extends h{constructor(e,t){super(),this.emitWrapper=(e,t)=>{e===o.UPDATE_LOCKS&&t&&!Object.keys(t).length||(e!==o.WEB3||this.validateWeb3MethodCall(t))&&this.emit(e,t)},this.iframe=i(e,t,"unlock data");const n=new URL(this.iframe.src);a(e,this.iframe);const{postMessage:s}=Object(r.a)(this.iframe.contentWindow,n.origin,e,this.emitWrapper);this.postMessage=s}validateWeb3MethodCall(e){return!(!e||"object"!=typeof e)&&(!(!e.method||"string"!=typeof e.method)&&(!(!e.params||!Array.isArray(e.params))&&("number"==typeof e.id&&Math.round(e.id)===e.id)))}}class l extends s.EventEmitter{}class f extends l{constructor(e,t){super(),this.setReady=()=>{this.isReady=!0,this.flushBuffer()},this.isReady=!1,this.window=e,this.iframe=i(e,t,"unlock checkout");const n=new URL(this.iframe.src);a(e,this.iframe),this.buffer=[];const{postMessage:o}=Object(r.a)(this.iframe.contentWindow,n.origin,e,this.emit.bind(this));this.postMessage=(e,t)=>{this.isReady?o(e,t):this.buffer.push([e,t])}}flushBuffer(){this.isReady&&this.buffer.forEach(([e,t])=>{this.postMessage(e,t)})}showIframe(){c(this.window,this.iframe)}hideIframe(){u(this.window,this.iframe)}}class p extends s.EventEmitter{}class m extends p{constructor(e,t){super(),this.buffer=[],this.ready=!1,this.window=e,this.iframe={contentWindow:{postMessage:()=>{}},className:"",name:"unlock accounts",src:t,setAttribute:()=>{}}}createIframe(){const e=new URL(this.iframe.src);this.iframe=i(this.window,this.iframe.src,"unlock accounts"),a(this.window,this.iframe);const{postMessage:t,addHandler:n}=Object(r.b)(this.window,this.iframe,e.origin,"main window","User Accounts iframe");this._postMessage=t,this._addHandler=n,this.setupListeners()}showIframe(){c(this.window,this.iframe)}hideIframe(){u(this.window,this.iframe)}setupListeners(){this.addHandler(o.READY,()=>{this.ready=!0,this.sendBufferedMessages(),this.emit(o.READY)}),this.addHandler(o.UPDATE_ACCOUNT,e=>this.emit(o.UPDATE_ACCOUNT,e)),this.addHandler(o.UPDATE_NETWORK,e=>this.emit(o.UPDATE_NETWORK,e)),this.addHandler(o.INITIATED_TRANSACTION,()=>this.emit(o.INITIATED_TRANSACTION)),this.addHandler(o.SHOW_ACCOUNTS_MODAL,()=>this.emit(o.SHOW_ACCOUNTS_MODAL)),this.addHandler(o.HIDE_ACCOUNTS_MODAL,()=>this.emit(o.HIDE_ACCOUNTS_MODAL))}sendBufferedMessages(){this.buffer.forEach(({type:e,payload:t})=>{this.postMessage(e,t)}),this.buffer=[]}async addHandler(e,t){this._addHandler&&this._addHandler(e,t)}async postMessage(e,t){this.ready?this._postMessage&&this._postMessage(e,t):this.buffer.push({type:e,payload:t})}}new RegExp("^0x[a-fA-F0-9]{40}$"),new RegExp("^0x[a-fA-F0-9]{64}$"),new RegExp("(?:/([a-z0-9]+))?/(0x[a-fA-F0-9]{40})(?:/([^#?]+)/?)?");const g=["0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359","0x6b175474e89094c44da98b954eedeac495271d0f","0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","0xaFF4481D10270F50f203E0763e2597776068CBc5"].map(e=>e.toLowerCase());var A=e=>{const t={};return Object.keys(e).forEach(e=>{g.indexOf(e.toLowerCase())>-1?t[e]="35":t[e]="0"}),t};function E(e,t,n){n.postMessage(o.WEB3_RESULT,{id:e,jsonrpc:"2.0",result:{id:e,jsonrpc:"2.0",result:t}})}function v({iframes:e,hasWallet:t,setHasWeb3:n,getHasWeb3:s,isMetaMask:r,window:i}){e.checkout.on(o.PURCHASE_KEY,t=>{e.data.postMessage(o.PURCHASE_KEY,t)}),e.data.on(o.READY_WEB3,async()=>{if(!t)return n(!1),void e.data.postMessage(o.WALLET_INFO,{noWallet:!0,notEnabled:!1,isMetaMask:!1});n(!0);try{await async function(e,t){if(!e.web3||!e.web3.currentProvider)return;const n=e.web3.currentProvider;n.enable&&(t.checkout.postMessage(o.UPDATE_WALLET,!0),await n.enable(),t.checkout.postMessage(o.UPDATE_WALLET,!1))}(i,e)}catch(t){return void e.data.postMessage(o.WALLET_INFO,{noWallet:!1,notEnabled:!0,isMetaMask:r})}e.data.postMessage(o.WALLET_INFO,{noWallet:!1,notEnabled:!1,isMetaMask:r})}),e.data.on(o.WEB3,t=>{if(!s())return void e.data.postMessage(o.WEB3_RESULT,{id:t.id,jsonrpc:"2.0",error:"No web3 wallet is available"});const{method:n,params:r,id:a}=t,c=i.web3.currentProvider;(c.sendAsync||c.send).call(c,{method:n,params:r,jsonrpc:"2.0",id:a},(t,n)=>{e.data.postMessage(o.WEB3_RESULT,t?{id:a,error:t,jsonrpc:"2.0"}:{id:a,result:n,jsonrpc:"2.0"})})})}class w{constructor(e,t,n,o){this.data=new d(e,t),this.checkout=new f(e,n),this.accounts=new m(e,o)}init(e){!function({config:e,dataIframe:t}){t.on(o.READY,()=>{t.postMessage(o.CONFIG,e)})}({config:e,dataIframe:this.data,checkoutIframe:this.checkout})}}class y{constructor(e,t,n,o){this.hasWeb3=!1,this.userAccountAddress=null,this.setUserAccountAddress=e=>{this.userAccountAddress=e},this.setUserAccountNetwork=e=>{this.userAccountNetwork=e},this.getUserAccountAddress=()=>this.userAccountAddress,this.getUserAccountNetwork=()=>this.userAccountNetwork,this.setHasWeb3=e=>{this.hasWeb3=e},this.getHasWeb3=()=>this.hasWeb3,this.window=e,this.iframes=t,this.config=n,this.userAccountNetwork=o.network}init({shouldUseUserAccounts:e,hasWallet:t,isMetaMask:n}){if(e&&function({iframes:e,config:t,setUserAccountAddress:n,setUserAccountNetwork:s}){e.accounts.on(o.READY,()=>{e.accounts.postMessage(o.CONFIG,t),e.data.postMessage(o.SEND_UPDATES,"locks")}),e.data.on(o.UPDATE_LOCKS,t=>{e.accounts.postMessage(o.UPDATE_LOCKS,t)}),e.accounts.on(o.UPDATE_ACCOUNT,e=>{n(e)}),e.accounts.on(o.UPDATE_NETWORK,e=>{s(e)}),e.accounts.on(o.INITIATED_TRANSACTION,()=>{e.data.postMessage(o.INITIATED_TRANSACTION,void 0)}),e.accounts.createIframe()}({iframes:this.iframes,config:this.config,setUserAccountAddress:this.setUserAccountAddress,setUserAccountNetwork:this.setUserAccountNetwork}),e&&!t){!function({iframes:e,setHasWeb3:t,getUserAccountAddress:n,getUserAccountNetwork:s}){e.accounts.on(o.READY,()=>{e.accounts.postMessage(o.SEND_UPDATES,"account"),e.accounts.postMessage(o.SEND_UPDATES,"network")}),e.checkout.on(o.PURCHASE_KEY,t=>{e.accounts.postMessage(o.PURCHASE_KEY,t)}),t(!0),e.data.on(o.READY_WEB3,async()=>{e.data.postMessage(o.WALLET_INFO,{noWallet:!1,notEnabled:!1,isMetaMask:!1})}),e.data.on(o.WEB3,t=>{const{method:r,id:i}=t,a=n(),c=s();switch(r){case"eth_accounts":E(i,a?[a]:[],e.data);break;case"net_version":E(i,c,e.data);break;default:e.data.postMessage(o.WEB3_RESULT,{id:i,jsonrpc:"2.0",error:`"${r}" is not supported`})}})}({iframes:this.iframes,setHasWeb3:this.setHasWeb3,getUserAccountAddress:this.getUserAccountAddress,getUserAccountNetwork:this.getUserAccountNetwork});const{checkout:e}=this.iframes;e.once(o.READY,()=>{e.postMessage(o.USING_MANAGED_ACCOUNT,void 0)})}else v({iframes:this.iframes,hasWallet:t,setHasWeb3:this.setHasWeb3,getHasWeb3:this.getHasWeb3,isMetaMask:n,window:this.window})}}function C(e){if(!e||!e.locks||"object"!=typeof e.locks)return e;const t=Object.keys(e.locks);return t.length?{...e,locks:t.reduce((t,n)=>({...t,[n.toLowerCase()]:e.locks[n]}),{})}:e}class T{constructor(e,t){this.showCheckoutWhenAccountsHides=!1,this.showingCheckout=!1,this.showingAccountsIframe=!1,this.lockStatus=void 0,this.blockchainData={locks:{},account:null,balance:{},network:1,keys:{},transactions:{}},this.toggleLockState=e=>{const t={[o.LOCKED]:!0,[o.UNLOCKED]:!1}[e];this.lockStatus!==e&&(this.dispatchEvent(e),this.setCachedLockedState(t),this.lockStatus=e,this.iframes.accounts.postMessage(e,void 0))},this.getCachedLockState=()=>{try{const e=this.window.localStorage.getItem("__unlockProtocol.locked");return e?"true"!==e&&"false"!==e?"ignore":JSON.parse(e):"ignore"}catch(e){return"ignore"}},this.dispatchCachedLockState=()=>{const e=this.getCachedLockState();!0===e&&this.dispatchEvent("locked"),!1===e&&this.dispatchEvent("unlocked")},this.setCachedLockedState=e=>{try{this.window.localStorage.setItem("__unlockProtocol.locked",JSON.stringify(e))}catch(e){}},this.setCachedAccountAddress=e=>{try{this.window.localStorage.setItem("__unlockProtocol.accountAddress",e)}catch(e){}},this.setupUnlockProtocolVariable=()=>{const e=()=>{this.showCheckoutIframe()},t={},n={writable:!1,configurable:!1,enumerable:!1};Object.defineProperties(t,{loadCheckoutModal:{value:e,...n},getState:{value:()=>this.lockStatus,...n},blockchainData:{value:()=>this.blockchainData,...n},resetConfig:{value:e=>{this.lockStatus=void 0;const t=C(e);this.iframes.accounts.postMessage(o.CONFIG,t),this.iframes.checkout.postMessage(o.CONFIG,t),this.iframes.data.postMessage(o.CONFIG,t)},...n}});const s=Object.freeze||Object;s(t.prototype),s(t);try{this.window.unlockProtocol&&this.window.unlockProtocol.loadCheckoutModal===e||Object.defineProperties(this.window,{unlockProtocol:{value:t,...n}})}catch(e){console.error("WARNING: unlockProtocol already defined, cannot re-define it")}},this.dispatchEvent=e=>{let t;try{t=new this.window.CustomEvent("unlockProtocol",{detail:e})}catch(n){t=this.window.document.createEvent("customevent"),t.initCustomEvent("unlockProtocol",!0,!0,e)}this.window.dispatchEvent(t)},this.hideCheckoutIframe=()=>{this.showCheckoutWhenAccountsHides=!1,this.showingCheckout=!1,this.iframes.checkout.hideIframe()},this.showCheckoutIframe=()=>{this.showingAccountsIframe?(this.showCheckoutWhenAccountsHides=!0,this.showingCheckout=!1):(this.showingCheckout=!0,this.showCheckoutWhenAccountsHides=!1,this.iframes.checkout.showIframe())},this.showAccountIframe=()=>{this.showingCheckout&&(this.showCheckoutWhenAccountsHides=!0,this.showingCheckout=!1,this.iframes.checkout.hideIframe()),this.showingAccountsIframe=!0,this.iframes.accounts.showIframe()},this.hideAccountIframe=()=>{this.showingAccountsIframe=!1,this.iframes.accounts.hideIframe(),this.showCheckoutWhenAccountsHides&&(this.showingCheckout=!0,this.showCheckoutWhenAccountsHides=!1,this.iframes.checkout.showIframe())},this.window=e,this.iframes=t,this.setupUnlockProtocolVariable(),this.dispatchCachedLockState()}init(){!function({iframes:e,toggleLockState:t,hideAccountIframe:n,showAccountIframe:s,hideCheckoutIframe:r,blockchainData:i,setCachedAccountAddress:a}){e.data.on(o.LOCKED,()=>{t(o.LOCKED)}),e.data.on(o.UNLOCKED,()=>{t(o.UNLOCKED)}),e.data.on(o.ERROR,e=>{"no ethereum wallet is available"===e&&t(o.LOCKED)}),e.data.on(o.UPDATE_LOCKS,e=>{i.locks=e}),e.data.on(o.UPDATE_ACCOUNT,e=>{i.account=e,e&&a(e)}),e.data.on(o.UPDATE_ACCOUNT_BALANCE,e=>{i.balance=e}),e.data.on(o.UPDATE_NETWORK,e=>{i.network=e}),e.data.on(o.UPDATE_KEYS,e=>{i.keys=e}),e.data.on(o.UPDATE_TRANSACTIONS,e=>{i.transactions=e}),e.checkout.on(o.DISMISS_CHECKOUT,()=>{r()}),e.accounts.on(o.SHOW_ACCOUNTS_MODAL,()=>{s()}),e.accounts.on(o.HIDE_ACCOUNTS_MODAL,()=>{n()})}({iframes:this.iframes,toggleLockState:this.toggleLockState,hideAccountIframe:this.hideAccountIframe,showAccountIframe:this.showAccountIframe,hideCheckoutIframe:this.hideCheckoutIframe,blockchainData:this.blockchainData,setCachedAccountAddress:this.setCachedAccountAddress})}}function b(e){return!(!e.web3||!e.web3.currentProvider)}function k(e){return!!b(e)&&!!e.web3.currentProvider.isMetaMask}function _(e,t){return!b(e)&&("true"===t.unlockUserAccounts||!0===t.unlockUserAccounts)}function U(e,t){let n;try{n=new t.CustomEvent("unlockProtocol",{detail:e})}catch(o){n=t.document.createEvent("customevent"),n.initCustomEvent("unlockProtocol",!0,!0,e)}t.dispatchEvent(n)}function O(e,t,n,s=!1){let r=C(n);if(!r)throw new Error("Invalid configuration, please set window.unlockProtocolConfig");const i=!!r.unlockUserAccounts;!!e.web3||i||(r={...r,locks:{}},U("locked",e));const a=`?origin=${encodeURIComponent(e.origin)}`,c=`${t.paywallUrl}/static/data-iframe.1.0.html${a}`,u=`${t.paywallUrl}/checkout${a}`,h=t.accountsUrl+a,d=new w(e,c,u,h);d.init(r);const l=new y(e,d,r,t),f=new T(e,d);if(f.init(),s){const e=t=>{t&&(f.showCheckoutIframe(),d.data.removeListener(o.UPDATE_ACCOUNT,e))};d.data.on(o.UPDATE_ACCOUNT,e)}const p=function(e,t){return{hasWallet:b(e),isMetaMask:k(e),shouldUseUserAccounts:_(e,t)}}(e,r);return l.init(p),function({usingManagedAccount:e,dataIframe:t,checkoutIframe:n,config:s}){t.on(o.UPDATE_ACCOUNT,e=>n.postMessage(o.UPDATE_ACCOUNT,e)),t.on(o.UPDATE_ACCOUNT_BALANCE,t=>{let s=t;e&&(s=A(t)),n.postMessage(o.UPDATE_ACCOUNT_BALANCE,s)}),t.on(o.UPDATE_LOCKS,e=>n.postMessage(o.UPDATE_LOCKS,e)),t.on(o.UPDATE_KEYS,e=>n.postMessage(o.UPDATE_KEYS,e)),t.on(o.UPDATE_TRANSACTIONS,e=>n.postMessage(o.UPDATE_TRANSACTIONS,e)),t.on(o.UPDATE_NETWORK,e=>n.postMessage(o.UPDATE_NETWORK,e)),n.on(o.READY,()=>{n.setReady(),n.postMessage(o.CONFIG,s);["locks","account","balance","network","keys","transactions"].forEach(e=>t.postMessage(o.SEND_UPDATES,e))}),n.on(o.SET_USER_METADATA,e=>{t.postMessage(o.SET_USER_METADATA,e)}),t.on(o.SET_USER_METADATA_SUCCESS,()=>{n.postMessage(o.SET_USER_METADATA_SUCCESS,void 0)}),t.on(o.ERROR,e=>n.postMessage(o.ERROR,e)),t.on(o.LOCKED,()=>n.postMessage(o.LOCKED,void 0)),t.on(o.UNLOCKED,e=>n.postMessage(o.UNLOCKED,e))}({usingManagedAccount:p.shouldUseUserAccounts,constants:t,config:r,dataIframe:d.data,checkoutIframe:d.checkout}),d}n(4);!function(e,t){if(!!e.web3)try{if(!e.localStorage.getItem("__unlockProtocol.accountAddress"))return e.unlockProtocol={loadCheckoutModal:()=>{O(e,t,e.unlockProtocolConfig,!0)},resetConfig:n=>{O(e,t,n,!1)}},void U("locked",e)}catch(e){}let n=!1;if("loading"!==document.readyState)O(e,t,e.unlockProtocolConfig),n=!0;else{const o=()=>{n||O(e,t,e.unlockProtocolConfig),n=!0};e.addEventListener("DOMContentLoaded",o),e.addEventListener("load",o)}}(window,{unlockEnv:"prod",accountsUrl:"https://app.unlock-protocol.com/account",paywallUrl:"https://paywall.unlock-protocol.com",usersIframeUrl:"https://app.unlock-protocol.com/account",readOnlyProvider:"https://eth-mainnet.alchemyapi.io/jsonrpc/b7Mxclz5hGyHqoeodGLQ17F5Qi97S7xJ",locksmithUri:"https://locksmith.unlock-protocol.com",erc20ContractSymbol:"DAI",erc20ContractAddress:"0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359",httpProvider:"ganache-integration"})}]); //# sourceMappingURL=unlock.1.0.min.js.map