@wormhole-foundation/wormhole-connect 0.3.3-beta.1-development → 0.3.3-beta.3-development

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/main.js +86 -86
  2. package/dist/src/config/mainnet/gasEstimates.d.ts.map +1 -1
  3. package/dist/src/config/mainnet/nttGroups.d.ts.map +1 -1
  4. package/dist/src/config/mainnet/tokens.d.ts.map +1 -1
  5. package/dist/src/routes/utils.d.ts.map +1 -1
  6. package/dist/src/views/Bridge/Bridge.d.ts.map +1 -1
  7. package/lib/{aptos-zqw8CE0g.js → aptos-Gl7Lvx33.js} +1 -1
  8. package/lib/{aptos-cjiLVgwc.mjs → aptos-wWY9cYKb.mjs} +1 -1
  9. package/lib/{ccip-3qscPCG4.mjs → ccip-U0O--jNe.mjs} +3 -3
  10. package/lib/{ccip-zP2Pn-k1.js → ccip-ZIQJfzGP.js} +1 -1
  11. package/lib/{cosmos-3CuMYWTB.js → cosmos-FDC9IzRr.js} +1 -1
  12. package/lib/{cosmos-LZbcmh28.mjs → cosmos-c0ODp2pR.mjs} +3 -3
  13. package/lib/{evm-Kp2uR9Fe.js → evm-HSpaYhQP.js} +3 -3
  14. package/lib/{evm-2aMPlWl0.mjs → evm-wgq2htQK.mjs} +4 -4
  15. package/lib/{index-soixhS2C.js → index-4Y1uNAAU.js} +3 -3
  16. package/lib/{index-zgwtG0wU.js → index-Mg5q9ZMw.js} +1 -1
  17. package/lib/{index-p4cvTk2e.js → index-Mk7LYYdN.js} +1 -1
  18. package/lib/{index-pbA6ePf7.mjs → index-MoMbeAKz.mjs} +1 -1
  19. package/lib/{index-9CzlFlmy.js → index-MvsxOCsW.js} +1 -1
  20. package/lib/{index-Hgi51M-G.mjs → index-TdxYLzGx.mjs} +3 -3
  21. package/lib/{index-dEADQOcf.js → index-iJmUtx_H.js} +1 -1
  22. package/lib/{index-HBwOgLYJ.mjs → index-oliZI3Bw.mjs} +82 -23
  23. package/lib/{index-WEpJeYUB.mjs → index-vsAk8D8-.mjs} +2 -2
  24. package/lib/{index-AzuDRjt4.mjs → index-zXvuSp6M.mjs} +1 -1
  25. package/lib/{index.es-P2W5Cy73.mjs → index.es-9kvKUYIv.mjs} +2 -2
  26. package/lib/{index.es-siSLzXPl.mjs → index.es-CueUNOIp.mjs} +1 -1
  27. package/lib/{index.es-jza9AjyO.js → index.es-MjAXWJbv.js} +2 -2
  28. package/lib/{index.es-j9OF4RCQ.js → index.es-NIfnGwYn.js} +1 -1
  29. package/lib/{index.es-FpKwGSlX.js → index.es-dKB91XRm.js} +1 -1
  30. package/lib/{index.es-NVLYuEEG.mjs → index.es-l5YUjdFo.mjs} +4 -4
  31. package/lib/index.js +1 -1
  32. package/lib/index.mjs +1 -1
  33. package/lib/{libsodium-wrappers-QUuw9ka0.js → libsodium-wrappers-9aCJqlW5.js} +1 -1
  34. package/lib/{libsodium-wrappers-RbcWfPuP.mjs → libsodium-wrappers-t-G4VebW.mjs} +1 -1
  35. package/lib/{sei-y7SngMRu.js → sei-LCVHAbJP.js} +1 -1
  36. package/lib/{sei-jqCqxgBA.mjs → sei-kAT23rRb.mjs} +2 -2
  37. package/lib/{solana-N7jROrW3.mjs → solana-9cEEFpYk.mjs} +3 -3
  38. package/lib/{solana-x57BQ6qu.js → solana-iA5G1mT6.js} +1 -1
  39. package/lib/{solanaEmbed.esm-ck9jvWiL.mjs → solanaEmbed.esm-83vVt6e1.mjs} +2 -2
  40. package/lib/{solanaEmbed.esm-hNvP2iQv.js → solanaEmbed.esm-IF6HXU18.js} +1 -1
  41. package/lib/src/config/mainnet/gasEstimates.d.ts.map +1 -1
  42. package/lib/src/config/mainnet/nttGroups.d.ts.map +1 -1
  43. package/lib/src/config/mainnet/tokens.d.ts.map +1 -1
  44. package/lib/src/routes/utils.d.ts.map +1 -1
  45. package/lib/src/views/Bridge/Bridge.d.ts.map +1 -1
  46. package/lib/{sui-F-C4vaHz.js → sui-2auVkRE6.js} +1 -1
  47. package/lib/{sui-DtGG5GWD.mjs → sui-MKTbT49-.mjs} +1 -1
  48. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index-soixhS2C.js"),kr=require("./dijkstra-dsi_GddY.js"),Qt=require("./index.es-FpKwGSlX.js"),pt=require("./index.es-j9OF4RCQ.js");require("react");require("react-dom");var Ar=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},Nr=Ar,mt={"text/plain":"Text","text/html":"Url",default:"Text"},Br="Copy to clipboard: #{key}, Enter";function Rr(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Lr(e,t){var n,r,o,a,i,l,c=!1;t||(t={}),n=t.debug||!1;try{o=Nr(),a=document.createRange(),i=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(s){if(s.stopPropagation(),t.format)if(s.preventDefault(),typeof s.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=mt[t.format]||mt.default;window.clipboardData.setData(d,e)}else s.clipboardData.clearData(),s.clipboardData.setData(t.format,e);t.onCopy&&(s.preventDefault(),t.onCopy(s.clipboardData))}),document.body.appendChild(l),a.selectNodeContents(l),i.addRange(a);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(s){n&&console.error("unable to copy using execCommand: ",s),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=Rr("message"in t?t.message:Br),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(a):i.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var Mr=Lr,Ge={},A={};Object.defineProperty(A,"__esModule",{value:!0});var Jt=A.getLocalStorage=ln=A.getLocalStorageOrThrow=an=A.getCrypto=on=A.getCryptoOrThrow=rn=A.getLocation=nn=A.getLocationOrThrow=tn=A.getNavigator=en=A.getNavigatorOrThrow=Zt=A.getDocument=Xt=A.getDocumentOrThrow=Gt=A.getFromWindowOrThrow=jt=A.getFromWindow=void 0;function Q(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}var jt=A.getFromWindow=Q;function re(e){const t=Q(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}var Gt=A.getFromWindowOrThrow=re;function Pr(){return re("document")}var Xt=A.getDocumentOrThrow=Pr;function Or(){return Q("document")}var Zt=A.getDocument=Or;function Ir(){return re("navigator")}var en=A.getNavigatorOrThrow=Ir;function Dr(){return Q("navigator")}var tn=A.getNavigator=Dr;function Ur(){return re("location")}var nn=A.getLocationOrThrow=Ur;function $r(){return Q("location")}var rn=A.getLocation=$r;function Wr(){return re("crypto")}var on=A.getCryptoOrThrow=Wr;function Fr(){return Q("crypto")}var an=A.getCrypto=Fr;function zr(){return re("localStorage")}var ln=A.getLocalStorageOrThrow=zr;function qr(){return Q("localStorage")}Jt=A.getLocalStorage=qr;Object.defineProperty(Ge,"__esModule",{value:!0});var cn=Ge.getWindowMetadata=void 0;const vt=A;function Hr(){let e,t;try{e=vt.getDocumentOrThrow(),t=vt.getLocationOrThrow()}catch{return null}function n(){const d=e.getElementsByTagName("link"),y=[];for(let _=0;_<d.length;_++){const h=d[_],b=h.getAttribute("rel");if(b&&b.toLowerCase().indexOf("icon")>-1){const f=h.getAttribute("href");if(f)if(f.toLowerCase().indexOf("https:")===-1&&f.toLowerCase().indexOf("http:")===-1&&f.indexOf("//")!==0){let v=t.protocol+"//"+t.host;if(f.indexOf("/")===0)v+=f;else{const m=t.pathname.split("/");m.pop();const g=m.join("/");v+=g+"/"+f}y.push(v)}else if(f.indexOf("//")===0){const v=t.protocol+f;y.push(v)}else y.push(f)}}return y}function r(...d){const y=e.getElementsByTagName("meta");for(let _=0;_<y.length;_++){const h=y[_],b=["itemprop","property","name"].map(f=>h.getAttribute(f)).filter(f=>f?d.includes(f):!1);if(b.length&&b){const f=h.getAttribute("content");if(f)return f}}return""}function o(){let d=r("name","og:site_name","og:title","twitter:title");return d||(d=e.title),d}function a(){return r("description","og:description","twitter:description","keywords")}const i=o(),l=a(),c=t.origin,u=n();return{description:l,url:c,icons:u,name:i}}cn=Ge.getWindowMetadata=Hr;var Kr=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],i=0,l=a.length;i<l;i++,o++)r[o]=a[i];return r},Vr=function(){function e(t,n,r){this.name=t,this.version=n,this.os=r,this.type="browser"}return e}(),Yr=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=B.dist.process.platform}return e}(),Qr=function(){function e(t,n,r,o){this.name=t,this.version=n,this.os=r,this.bot=o,this.type="bot-device"}return e}(),Jr=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}(),jr=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}(),Gr=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Xr=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,wt=3,Zr=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",Gr]],yt=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function eo(e){return e?bt(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new jr:typeof navigator<"u"?bt(navigator.userAgent):ro()}function to(e){return e!==""&&Zr.reduce(function(t,n){var r=n[0],o=n[1];if(t)return t;var a=o.exec(e);return!!a&&[r,a]},!1)}function bt(e){var t=to(e);if(!t)return null;var n=t[0],r=t[1];if(n==="searchbot")return new Jr;var o=r[1]&&r[1].split(/[._]/).slice(0,3);o?o.length<wt&&(o=Kr(o,oo(wt-o.length))):o=[];var a=o.join("."),i=no(e),l=Xr.exec(e);return l&&l[1]?new Qr(n,a,i,l[1]):new Vr(n,a,i)}function no(e){for(var t=0,n=yt.length;t<n;t++){var r=yt[t],o=r[0],a=r[1],i=a.exec(e);if(i)return o}return null}function ro(){var e=typeof B.dist.process<"u"&&B.dist.process.version;return e?new Yr(B.dist.process.version.slice(1)):null}function oo(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}function Xe(e){return eo(e)}function xe(){const e=Xe();return e&&e.os?e.os:void 0}function sn(){const e=xe();return e?e.toLowerCase().includes("android"):!1}function un(){const e=xe();return e?e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function ao(){return xe()?sn()||un():!1}function fn(){const e=Xe();return e&&e.name?e.name.toLowerCase()==="node":!1}function io(){return!fn()&&!!dn()}const lo=jt,co=Gt,so=Xt,uo=Zt,fo=en,dn=tn,_o=nn,ho=rn,go=on,po=an,mo=ln,Te=Jt;function vo(){return cn()}function wo(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch{return e}}function yo(e){return typeof e=="string"?e:JSON.stringify(e)}const _n=wo,hn=yo;function gn(e,t){const n=hn(t),r=Te();r&&r.setItem(e,n)}function bo(e){let t=null,n=null;const r=Te();return r&&(n=r.getItem(e)),t=n&&_n(n),t}function Co(e){const t=Te();t&&t.removeItem(e)}const pn="WALLETCONNECT_DEEPLINK_CHOICE";function Eo(e,t){const n=encodeURIComponent(e);return t.universalLink?`${t.universalLink}/wc?uri=${n}`:t.deepLink?`${t.deepLink}${t.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function xo(e){const t=e.href.split("?")[0];gn(pn,Object.assign(Object.assign({},e),{href:t}))}function mn(e,t){return e.filter(n=>n.name.toLowerCase().includes(t.toLowerCase()))[0]}function To(e,t){let n=e;return t&&(n=t.map(r=>mn(e,r)).filter(Boolean)),n}const vn="https://registry.walletconnect.com";function So(){return vn+"/api/v2/wallets"}function ko(){return vn+"/api/v2/dapps"}function wn(e,t="mobile"){var n;return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:(n=e.image_url.sm)!==null&&n!==void 0?n:"",universalLink:e[t].universal||"",deepLink:e[t].native||""}}function Ao(e,t="mobile"){return Object.values(e).filter(n=>!!n[t].universal||!!n[t].native).map(n=>wn(n,t))}const No=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:Xe,detectOS:xe,formatIOSMobile:Eo,formatMobileRegistry:Ao,formatMobileRegistryEntry:wn,getClientMeta:vo,getCrypto:po,getCryptoOrThrow:go,getDappRegistryUrl:ko,getDocument:uo,getDocumentOrThrow:so,getFromWindow:lo,getFromWindowOrThrow:co,getLocal:bo,getLocalStorage:Te,getLocalStorageOrThrow:mo,getLocation:ho,getLocationOrThrow:_o,getMobileLinkRegistry:To,getMobileRegistryEntry:mn,getNavigator:dn,getNavigatorOrThrow:fo,getWalletRegistryUrl:So,isAndroid:sn,isBrowser:io,isIOS:un,isMobile:ao,isNode:fn,mobileLinkChoiceKey:pn,removeLocal:Co,safeJsonParse:_n,safeJsonStringify:hn,saveMobileLinkInfo:xo,setLocal:gn},Symbol.toStringTag,{value:"Module"})),Bo=B.getAugmentedNamespace(No);var de={},Ro=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},yn={},K={},Lo={}.toString,Ze=Array.isArray||function(e){return Lo.call(e)=="[object Array]"},Mo=Ze;function Po(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},e.foo()===42}catch{return!1}}T.TYPED_ARRAY_SUPPORT=Po();var Ct=T.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function T(e,t,n){return!T.TYPED_ARRAY_SUPPORT&&!(this instanceof T)?new T(e,t,n):typeof e=="number"?bn(this,e):Fo(this,e,t,n)}T.TYPED_ARRAY_SUPPORT&&(T.prototype.__proto__=Uint8Array.prototype,T.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&T[Symbol.species]===T&&Object.defineProperty(T,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function et(e){if(e>=Ct)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ct.toString(16)+" bytes");return e|0}function Oo(e){return e!==e}function G(e,t){var n;return T.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t),n.__proto__=T.prototype):(n=e,n===null&&(n=new T(t)),n.length=t),n}function bn(e,t){var n=G(e,t<0?0:et(t)|0);if(!T.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)n[r]=0;return n}function Io(e,t){var n=En(t)|0,r=G(e,n),o=r.write(t);return o!==n&&(r=r.slice(0,o)),r}function Fe(e,t){for(var n=t.length<0?0:et(t.length)|0,r=G(e,n),o=0;o<n;o+=1)r[o]=t[o]&255;return r}function Do(e,t,n,r){if(n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");var o;return n===void 0&&r===void 0?o=new Uint8Array(t):r===void 0?o=new Uint8Array(t,n):o=new Uint8Array(t,n,r),T.TYPED_ARRAY_SUPPORT?o.__proto__=T.prototype:o=Fe(e,o),o}function Uo(e,t){if(T.isBuffer(t)){var n=et(t.length)|0,r=G(e,n);return r.length===0||t.copy(r,0,0,n),r}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||Oo(t.length)?G(e,0):Fe(e,t);if(t.type==="Buffer"&&Array.isArray(t.data))return Fe(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Cn(e,t){t=t||1/0;for(var n,r=e.length,o=null,a=[],i=0;i<r;++i){if(n=e.charCodeAt(i),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return a}function En(e){if(T.isBuffer(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var t=e.length;return t===0?0:Cn(e).length}function $o(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Wo(e,t,n,r){return $o(Cn(t,e.length-n),e,n,r)}function Fo(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?Do(e,t,n,r):typeof t=="string"?Io(e,t):Uo(e,t)}T.prototype.write=function(t,n,r){n===void 0?(r=this.length,n=0):r===void 0&&typeof n=="string"?(r=this.length,n=0):isFinite(n)&&(n=n|0,isFinite(r)?r=r|0:r=void 0);var o=this.length-n;if((r===void 0||r>o)&&(r=o),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");return Wo(this,t,n,r)};T.prototype.slice=function(t,n){var r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);var o;if(T.TYPED_ARRAY_SUPPORT)o=this.subarray(t,n),o.__proto__=T.prototype;else{var a=n-t;o=new T(a,void 0);for(var i=0;i<a;++i)o[i]=this[i+t]}return o};T.prototype.copy=function(t,n,r,o){if(r||(r=0),!o&&o!==0&&(o=this.length),n>=t.length&&(n=t.length),n||(n=0),o>0&&o<r&&(o=r),o===r||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-n<o-r&&(o=t.length-n+r);var a=o-r,i;if(this===t&&r<n&&n<o)for(i=a-1;i>=0;--i)t[i+n]=this[i+r];else if(a<1e3||!T.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+n]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),n);return a};T.prototype.fill=function(t,n,r){if(typeof t=="string"){if(typeof n=="string"?(n=0,r=this.length):typeof r=="string"&&(r=this.length),t.length===1){var o=t.charCodeAt(0);o<256&&(t=o)}}else typeof t=="number"&&(t=t&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);var a;if(typeof t=="number")for(a=n;a<r;++a)this[a]=t;else{var i=T.isBuffer(t)?t:new T(t),l=i.length;for(a=0;a<r-n;++a)this[a+n]=i[a%l]}return this};T.concat=function(t,n){if(!Mo(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return G(null,0);var r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var o=bn(null,n),a=0;for(r=0;r<t.length;++r){var i=t[r];if(!T.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(o,a),a+=i.length}return o};T.byteLength=En;T.prototype._isBuffer=!0;T.isBuffer=function(t){return!!(t!=null&&t._isBuffer)};K.alloc=function(e){var t=new T(e);return t.fill(0),t};K.from=function(e){return new T(e)};var O={},tt,zo=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};O.getSymbolTotalCodewords=function(t){return zo[t]};O.getBCHDigit=function(e){for(var t=0;e!==0;)t++,e>>>=1;return t};O.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');tt=t};O.isKanjiModeEnabled=function(){return typeof tt<"u"};O.toSJIS=function(t){return tt(t)};var Se={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");var r=n.toLowerCase();switch(r){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,o){if(e.isValid(r))return r;try{return t(r)}catch{return o}}})(Se);function xn(){this.buffer=[],this.length=0}xn.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(var n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var qo=xn,Et=K;function _e(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=Et.alloc(e*e),this.reservedBit=Et.alloc(e*e)}_e.prototype.set=function(e,t,n,r){var o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)};_e.prototype.get=function(e,t){return this.data[e*this.size+t]};_e.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};_e.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Ho=_e,Tn={};(function(e){var t=O.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];for(var o=Math.floor(r/7)+2,a=t(r),i=a===145?26:Math.ceil((a-13)/(2*o-2))*2,l=[a-7],c=1;c<o-1;c++)l[c]=l[c-1]-i;return l.push(6),l.reverse()},e.getPositions=function(r){for(var o=[],a=e.getRowColCoords(r),i=a.length,l=0;l<i;l++)for(var c=0;c<i;c++)l===0&&c===0||l===0&&c===i-1||l===i-1&&c===0||o.push([a[l],a[c]]);return o}})(Tn);var Sn={},Ko=O.getSymbolSize,xt=7;Sn.getPositions=function(t){var n=Ko(t);return[[0,0],[n-xt,0],[0,n-xt]]};var kn={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){for(var a=o.size,i=0,l=0,c=0,u=null,s=null,d=0;d<a;d++){l=c=0,u=s=null;for(var y=0;y<a;y++){var _=o.get(d,y);_===u?l++:(l>=5&&(i+=t.N1+(l-5)),u=_,l=1),_=o.get(y,d),_===s?c++:(c>=5&&(i+=t.N1+(c-5)),s=_,c=1)}l>=5&&(i+=t.N1+(l-5)),c>=5&&(i+=t.N1+(c-5))}return i},e.getPenaltyN2=function(o){for(var a=o.size,i=0,l=0;l<a-1;l++)for(var c=0;c<a-1;c++){var u=o.get(l,c)+o.get(l,c+1)+o.get(l+1,c)+o.get(l+1,c+1);(u===4||u===0)&&i++}return i*t.N2},e.getPenaltyN3=function(o){for(var a=o.size,i=0,l=0,c=0,u=0;u<a;u++){l=c=0;for(var s=0;s<a;s++)l=l<<1&2047|o.get(u,s),s>=10&&(l===1488||l===93)&&i++,c=c<<1&2047|o.get(s,u),s>=10&&(c===1488||c===93)&&i++}return i*t.N3},e.getPenaltyN4=function(o){for(var a=0,i=o.data.length,l=0;l<i;l++)a+=o.data[l];var c=Math.abs(Math.ceil(a*100/i/5)-10);return c*t.N4};function n(r,o,a){switch(r){case e.Patterns.PATTERN000:return(o+a)%2===0;case e.Patterns.PATTERN001:return o%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(o+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return o*a%2+o*a%3===0;case e.Patterns.PATTERN110:return(o*a%2+o*a%3)%2===0;case e.Patterns.PATTERN111:return(o*a%3+(o+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(o,a){for(var i=a.size,l=0;l<i;l++)for(var c=0;c<i;c++)a.isReserved(c,l)||a.xor(c,l,n(o,c,l))},e.getBestMask=function(o,a){for(var i=Object.keys(e.Patterns).length,l=0,c=1/0,u=0;u<i;u++){a(u),e.applyMask(u,o);var s=e.getPenaltyN1(o)+e.getPenaltyN2(o)+e.getPenaltyN3(o)+e.getPenaltyN4(o);e.applyMask(u,o),s<c&&(c=s,l=u)}return l}})(kn);var ke={},q=Se,pe=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],me=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ke.getBlocksCount=function(t,n){switch(n){case q.L:return pe[(t-1)*4+0];case q.M:return pe[(t-1)*4+1];case q.Q:return pe[(t-1)*4+2];case q.H:return pe[(t-1)*4+3];default:return}};ke.getTotalCodewordsCount=function(t,n){switch(n){case q.L:return me[(t-1)*4+0];case q.M:return me[(t-1)*4+1];case q.Q:return me[(t-1)*4+2];case q.H:return me[(t-1)*4+3];default:return}};var An={},Ae={},Nn=K,ie=Nn.alloc(512),we=Nn.alloc(256);(function(){for(var t=1,n=0;n<255;n++)ie[n]=t,we[t]=n,t<<=1,t&256&&(t^=285);for(n=255;n<512;n++)ie[n]=ie[n-255]})();Ae.log=function(t){if(t<1)throw new Error("log("+t+")");return we[t]};Ae.exp=function(t){return ie[t]};Ae.mul=function(t,n){return t===0||n===0?0:ie[we[t]+we[n]]};(function(e){var t=K,n=Ae;e.mul=function(o,a){for(var i=t.alloc(o.length+a.length-1),l=0;l<o.length;l++)for(var c=0;c<a.length;c++)i[l+c]^=n.mul(o[l],a[c]);return i},e.mod=function(o,a){for(var i=t.from(o);i.length-a.length>=0;){for(var l=i[0],c=0;c<a.length;c++)i[c]^=n.mul(a[c],l);for(var u=0;u<i.length&&i[u]===0;)u++;i=i.slice(u)}return i},e.generateECPolynomial=function(o){for(var a=t.from([1]),i=0;i<o;i++)a=e.mul(a,[1,n.exp(i)]);return a}})(An);var Tt=K,Bn=An,Vo=B.bufferPolyfill.Buffer;function nt(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}nt.prototype.initialize=function(t){this.degree=t,this.genPoly=Bn.generateECPolynomial(this.degree)};nt.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var n=Tt.alloc(this.degree),r=Vo.concat([t,n],t.length+this.degree),o=Bn.mod(r,this.genPoly),a=this.degree-o.length;if(a>0){var i=Tt.alloc(this.degree);return o.copy(i,a),i}return o};var Yo=nt,Rn={},V={},rt={};rt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var D={},Ln="[0-9]+",Qo="[A-Z $%*+\\-./:]+",se="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";se=se.replace(/u/g,"\\u");var Jo="(?:(?![A-Z0-9 $%*+\\-./:]|"+se+`)(?:.|[\r
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index-4Y1uNAAU.js"),kr=require("./dijkstra-dsi_GddY.js"),Qt=require("./index.es-dKB91XRm.js"),pt=require("./index.es-NIfnGwYn.js");require("react");require("react-dom");var Ar=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},Nr=Ar,mt={"text/plain":"Text","text/html":"Url",default:"Text"},Br="Copy to clipboard: #{key}, Enter";function Rr(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Lr(e,t){var n,r,o,a,i,l,c=!1;t||(t={}),n=t.debug||!1;try{o=Nr(),a=document.createRange(),i=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(s){if(s.stopPropagation(),t.format)if(s.preventDefault(),typeof s.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=mt[t.format]||mt.default;window.clipboardData.setData(d,e)}else s.clipboardData.clearData(),s.clipboardData.setData(t.format,e);t.onCopy&&(s.preventDefault(),t.onCopy(s.clipboardData))}),document.body.appendChild(l),a.selectNodeContents(l),i.addRange(a);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(s){n&&console.error("unable to copy using execCommand: ",s),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=Rr("message"in t?t.message:Br),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(a):i.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var Mr=Lr,Ge={},A={};Object.defineProperty(A,"__esModule",{value:!0});var Jt=A.getLocalStorage=ln=A.getLocalStorageOrThrow=an=A.getCrypto=on=A.getCryptoOrThrow=rn=A.getLocation=nn=A.getLocationOrThrow=tn=A.getNavigator=en=A.getNavigatorOrThrow=Zt=A.getDocument=Xt=A.getDocumentOrThrow=Gt=A.getFromWindowOrThrow=jt=A.getFromWindow=void 0;function Q(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}var jt=A.getFromWindow=Q;function re(e){const t=Q(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}var Gt=A.getFromWindowOrThrow=re;function Pr(){return re("document")}var Xt=A.getDocumentOrThrow=Pr;function Or(){return Q("document")}var Zt=A.getDocument=Or;function Ir(){return re("navigator")}var en=A.getNavigatorOrThrow=Ir;function Dr(){return Q("navigator")}var tn=A.getNavigator=Dr;function Ur(){return re("location")}var nn=A.getLocationOrThrow=Ur;function $r(){return Q("location")}var rn=A.getLocation=$r;function Wr(){return re("crypto")}var on=A.getCryptoOrThrow=Wr;function Fr(){return Q("crypto")}var an=A.getCrypto=Fr;function zr(){return re("localStorage")}var ln=A.getLocalStorageOrThrow=zr;function qr(){return Q("localStorage")}Jt=A.getLocalStorage=qr;Object.defineProperty(Ge,"__esModule",{value:!0});var cn=Ge.getWindowMetadata=void 0;const vt=A;function Hr(){let e,t;try{e=vt.getDocumentOrThrow(),t=vt.getLocationOrThrow()}catch{return null}function n(){const d=e.getElementsByTagName("link"),y=[];for(let _=0;_<d.length;_++){const h=d[_],b=h.getAttribute("rel");if(b&&b.toLowerCase().indexOf("icon")>-1){const f=h.getAttribute("href");if(f)if(f.toLowerCase().indexOf("https:")===-1&&f.toLowerCase().indexOf("http:")===-1&&f.indexOf("//")!==0){let v=t.protocol+"//"+t.host;if(f.indexOf("/")===0)v+=f;else{const m=t.pathname.split("/");m.pop();const g=m.join("/");v+=g+"/"+f}y.push(v)}else if(f.indexOf("//")===0){const v=t.protocol+f;y.push(v)}else y.push(f)}}return y}function r(...d){const y=e.getElementsByTagName("meta");for(let _=0;_<y.length;_++){const h=y[_],b=["itemprop","property","name"].map(f=>h.getAttribute(f)).filter(f=>f?d.includes(f):!1);if(b.length&&b){const f=h.getAttribute("content");if(f)return f}}return""}function o(){let d=r("name","og:site_name","og:title","twitter:title");return d||(d=e.title),d}function a(){return r("description","og:description","twitter:description","keywords")}const i=o(),l=a(),c=t.origin,u=n();return{description:l,url:c,icons:u,name:i}}cn=Ge.getWindowMetadata=Hr;var Kr=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],i=0,l=a.length;i<l;i++,o++)r[o]=a[i];return r},Vr=function(){function e(t,n,r){this.name=t,this.version=n,this.os=r,this.type="browser"}return e}(),Yr=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=B.dist.process.platform}return e}(),Qr=function(){function e(t,n,r,o){this.name=t,this.version=n,this.os=r,this.bot=o,this.type="bot-device"}return e}(),Jr=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}(),jr=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}(),Gr=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Xr=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,wt=3,Zr=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",Gr]],yt=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function eo(e){return e?bt(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new jr:typeof navigator<"u"?bt(navigator.userAgent):ro()}function to(e){return e!==""&&Zr.reduce(function(t,n){var r=n[0],o=n[1];if(t)return t;var a=o.exec(e);return!!a&&[r,a]},!1)}function bt(e){var t=to(e);if(!t)return null;var n=t[0],r=t[1];if(n==="searchbot")return new Jr;var o=r[1]&&r[1].split(/[._]/).slice(0,3);o?o.length<wt&&(o=Kr(o,oo(wt-o.length))):o=[];var a=o.join("."),i=no(e),l=Xr.exec(e);return l&&l[1]?new Qr(n,a,i,l[1]):new Vr(n,a,i)}function no(e){for(var t=0,n=yt.length;t<n;t++){var r=yt[t],o=r[0],a=r[1],i=a.exec(e);if(i)return o}return null}function ro(){var e=typeof B.dist.process<"u"&&B.dist.process.version;return e?new Yr(B.dist.process.version.slice(1)):null}function oo(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}function Xe(e){return eo(e)}function xe(){const e=Xe();return e&&e.os?e.os:void 0}function sn(){const e=xe();return e?e.toLowerCase().includes("android"):!1}function un(){const e=xe();return e?e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function ao(){return xe()?sn()||un():!1}function fn(){const e=Xe();return e&&e.name?e.name.toLowerCase()==="node":!1}function io(){return!fn()&&!!dn()}const lo=jt,co=Gt,so=Xt,uo=Zt,fo=en,dn=tn,_o=nn,ho=rn,go=on,po=an,mo=ln,Te=Jt;function vo(){return cn()}function wo(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch{return e}}function yo(e){return typeof e=="string"?e:JSON.stringify(e)}const _n=wo,hn=yo;function gn(e,t){const n=hn(t),r=Te();r&&r.setItem(e,n)}function bo(e){let t=null,n=null;const r=Te();return r&&(n=r.getItem(e)),t=n&&_n(n),t}function Co(e){const t=Te();t&&t.removeItem(e)}const pn="WALLETCONNECT_DEEPLINK_CHOICE";function Eo(e,t){const n=encodeURIComponent(e);return t.universalLink?`${t.universalLink}/wc?uri=${n}`:t.deepLink?`${t.deepLink}${t.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function xo(e){const t=e.href.split("?")[0];gn(pn,Object.assign(Object.assign({},e),{href:t}))}function mn(e,t){return e.filter(n=>n.name.toLowerCase().includes(t.toLowerCase()))[0]}function To(e,t){let n=e;return t&&(n=t.map(r=>mn(e,r)).filter(Boolean)),n}const vn="https://registry.walletconnect.com";function So(){return vn+"/api/v2/wallets"}function ko(){return vn+"/api/v2/dapps"}function wn(e,t="mobile"){var n;return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:(n=e.image_url.sm)!==null&&n!==void 0?n:"",universalLink:e[t].universal||"",deepLink:e[t].native||""}}function Ao(e,t="mobile"){return Object.values(e).filter(n=>!!n[t].universal||!!n[t].native).map(n=>wn(n,t))}const No=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:Xe,detectOS:xe,formatIOSMobile:Eo,formatMobileRegistry:Ao,formatMobileRegistryEntry:wn,getClientMeta:vo,getCrypto:po,getCryptoOrThrow:go,getDappRegistryUrl:ko,getDocument:uo,getDocumentOrThrow:so,getFromWindow:lo,getFromWindowOrThrow:co,getLocal:bo,getLocalStorage:Te,getLocalStorageOrThrow:mo,getLocation:ho,getLocationOrThrow:_o,getMobileLinkRegistry:To,getMobileRegistryEntry:mn,getNavigator:dn,getNavigatorOrThrow:fo,getWalletRegistryUrl:So,isAndroid:sn,isBrowser:io,isIOS:un,isMobile:ao,isNode:fn,mobileLinkChoiceKey:pn,removeLocal:Co,safeJsonParse:_n,safeJsonStringify:hn,saveMobileLinkInfo:xo,setLocal:gn},Symbol.toStringTag,{value:"Module"})),Bo=B.getAugmentedNamespace(No);var de={},Ro=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},yn={},K={},Lo={}.toString,Ze=Array.isArray||function(e){return Lo.call(e)=="[object Array]"},Mo=Ze;function Po(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},e.foo()===42}catch{return!1}}T.TYPED_ARRAY_SUPPORT=Po();var Ct=T.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function T(e,t,n){return!T.TYPED_ARRAY_SUPPORT&&!(this instanceof T)?new T(e,t,n):typeof e=="number"?bn(this,e):Fo(this,e,t,n)}T.TYPED_ARRAY_SUPPORT&&(T.prototype.__proto__=Uint8Array.prototype,T.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&T[Symbol.species]===T&&Object.defineProperty(T,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function et(e){if(e>=Ct)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ct.toString(16)+" bytes");return e|0}function Oo(e){return e!==e}function G(e,t){var n;return T.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t),n.__proto__=T.prototype):(n=e,n===null&&(n=new T(t)),n.length=t),n}function bn(e,t){var n=G(e,t<0?0:et(t)|0);if(!T.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)n[r]=0;return n}function Io(e,t){var n=En(t)|0,r=G(e,n),o=r.write(t);return o!==n&&(r=r.slice(0,o)),r}function Fe(e,t){for(var n=t.length<0?0:et(t.length)|0,r=G(e,n),o=0;o<n;o+=1)r[o]=t[o]&255;return r}function Do(e,t,n,r){if(n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");var o;return n===void 0&&r===void 0?o=new Uint8Array(t):r===void 0?o=new Uint8Array(t,n):o=new Uint8Array(t,n,r),T.TYPED_ARRAY_SUPPORT?o.__proto__=T.prototype:o=Fe(e,o),o}function Uo(e,t){if(T.isBuffer(t)){var n=et(t.length)|0,r=G(e,n);return r.length===0||t.copy(r,0,0,n),r}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||Oo(t.length)?G(e,0):Fe(e,t);if(t.type==="Buffer"&&Array.isArray(t.data))return Fe(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Cn(e,t){t=t||1/0;for(var n,r=e.length,o=null,a=[],i=0;i<r;++i){if(n=e.charCodeAt(i),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return a}function En(e){if(T.isBuffer(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var t=e.length;return t===0?0:Cn(e).length}function $o(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Wo(e,t,n,r){return $o(Cn(t,e.length-n),e,n,r)}function Fo(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?Do(e,t,n,r):typeof t=="string"?Io(e,t):Uo(e,t)}T.prototype.write=function(t,n,r){n===void 0?(r=this.length,n=0):r===void 0&&typeof n=="string"?(r=this.length,n=0):isFinite(n)&&(n=n|0,isFinite(r)?r=r|0:r=void 0);var o=this.length-n;if((r===void 0||r>o)&&(r=o),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");return Wo(this,t,n,r)};T.prototype.slice=function(t,n){var r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);var o;if(T.TYPED_ARRAY_SUPPORT)o=this.subarray(t,n),o.__proto__=T.prototype;else{var a=n-t;o=new T(a,void 0);for(var i=0;i<a;++i)o[i]=this[i+t]}return o};T.prototype.copy=function(t,n,r,o){if(r||(r=0),!o&&o!==0&&(o=this.length),n>=t.length&&(n=t.length),n||(n=0),o>0&&o<r&&(o=r),o===r||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-n<o-r&&(o=t.length-n+r);var a=o-r,i;if(this===t&&r<n&&n<o)for(i=a-1;i>=0;--i)t[i+n]=this[i+r];else if(a<1e3||!T.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+n]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),n);return a};T.prototype.fill=function(t,n,r){if(typeof t=="string"){if(typeof n=="string"?(n=0,r=this.length):typeof r=="string"&&(r=this.length),t.length===1){var o=t.charCodeAt(0);o<256&&(t=o)}}else typeof t=="number"&&(t=t&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);var a;if(typeof t=="number")for(a=n;a<r;++a)this[a]=t;else{var i=T.isBuffer(t)?t:new T(t),l=i.length;for(a=0;a<r-n;++a)this[a+n]=i[a%l]}return this};T.concat=function(t,n){if(!Mo(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return G(null,0);var r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var o=bn(null,n),a=0;for(r=0;r<t.length;++r){var i=t[r];if(!T.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(o,a),a+=i.length}return o};T.byteLength=En;T.prototype._isBuffer=!0;T.isBuffer=function(t){return!!(t!=null&&t._isBuffer)};K.alloc=function(e){var t=new T(e);return t.fill(0),t};K.from=function(e){return new T(e)};var O={},tt,zo=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};O.getSymbolTotalCodewords=function(t){return zo[t]};O.getBCHDigit=function(e){for(var t=0;e!==0;)t++,e>>>=1;return t};O.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');tt=t};O.isKanjiModeEnabled=function(){return typeof tt<"u"};O.toSJIS=function(t){return tt(t)};var Se={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");var r=n.toLowerCase();switch(r){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,o){if(e.isValid(r))return r;try{return t(r)}catch{return o}}})(Se);function xn(){this.buffer=[],this.length=0}xn.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(var n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var qo=xn,Et=K;function _e(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=Et.alloc(e*e),this.reservedBit=Et.alloc(e*e)}_e.prototype.set=function(e,t,n,r){var o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)};_e.prototype.get=function(e,t){return this.data[e*this.size+t]};_e.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};_e.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Ho=_e,Tn={};(function(e){var t=O.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];for(var o=Math.floor(r/7)+2,a=t(r),i=a===145?26:Math.ceil((a-13)/(2*o-2))*2,l=[a-7],c=1;c<o-1;c++)l[c]=l[c-1]-i;return l.push(6),l.reverse()},e.getPositions=function(r){for(var o=[],a=e.getRowColCoords(r),i=a.length,l=0;l<i;l++)for(var c=0;c<i;c++)l===0&&c===0||l===0&&c===i-1||l===i-1&&c===0||o.push([a[l],a[c]]);return o}})(Tn);var Sn={},Ko=O.getSymbolSize,xt=7;Sn.getPositions=function(t){var n=Ko(t);return[[0,0],[n-xt,0],[0,n-xt]]};var kn={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){for(var a=o.size,i=0,l=0,c=0,u=null,s=null,d=0;d<a;d++){l=c=0,u=s=null;for(var y=0;y<a;y++){var _=o.get(d,y);_===u?l++:(l>=5&&(i+=t.N1+(l-5)),u=_,l=1),_=o.get(y,d),_===s?c++:(c>=5&&(i+=t.N1+(c-5)),s=_,c=1)}l>=5&&(i+=t.N1+(l-5)),c>=5&&(i+=t.N1+(c-5))}return i},e.getPenaltyN2=function(o){for(var a=o.size,i=0,l=0;l<a-1;l++)for(var c=0;c<a-1;c++){var u=o.get(l,c)+o.get(l,c+1)+o.get(l+1,c)+o.get(l+1,c+1);(u===4||u===0)&&i++}return i*t.N2},e.getPenaltyN3=function(o){for(var a=o.size,i=0,l=0,c=0,u=0;u<a;u++){l=c=0;for(var s=0;s<a;s++)l=l<<1&2047|o.get(u,s),s>=10&&(l===1488||l===93)&&i++,c=c<<1&2047|o.get(s,u),s>=10&&(c===1488||c===93)&&i++}return i*t.N3},e.getPenaltyN4=function(o){for(var a=0,i=o.data.length,l=0;l<i;l++)a+=o.data[l];var c=Math.abs(Math.ceil(a*100/i/5)-10);return c*t.N4};function n(r,o,a){switch(r){case e.Patterns.PATTERN000:return(o+a)%2===0;case e.Patterns.PATTERN001:return o%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(o+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return o*a%2+o*a%3===0;case e.Patterns.PATTERN110:return(o*a%2+o*a%3)%2===0;case e.Patterns.PATTERN111:return(o*a%3+(o+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(o,a){for(var i=a.size,l=0;l<i;l++)for(var c=0;c<i;c++)a.isReserved(c,l)||a.xor(c,l,n(o,c,l))},e.getBestMask=function(o,a){for(var i=Object.keys(e.Patterns).length,l=0,c=1/0,u=0;u<i;u++){a(u),e.applyMask(u,o);var s=e.getPenaltyN1(o)+e.getPenaltyN2(o)+e.getPenaltyN3(o)+e.getPenaltyN4(o);e.applyMask(u,o),s<c&&(c=s,l=u)}return l}})(kn);var ke={},q=Se,pe=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],me=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ke.getBlocksCount=function(t,n){switch(n){case q.L:return pe[(t-1)*4+0];case q.M:return pe[(t-1)*4+1];case q.Q:return pe[(t-1)*4+2];case q.H:return pe[(t-1)*4+3];default:return}};ke.getTotalCodewordsCount=function(t,n){switch(n){case q.L:return me[(t-1)*4+0];case q.M:return me[(t-1)*4+1];case q.Q:return me[(t-1)*4+2];case q.H:return me[(t-1)*4+3];default:return}};var An={},Ae={},Nn=K,ie=Nn.alloc(512),we=Nn.alloc(256);(function(){for(var t=1,n=0;n<255;n++)ie[n]=t,we[t]=n,t<<=1,t&256&&(t^=285);for(n=255;n<512;n++)ie[n]=ie[n-255]})();Ae.log=function(t){if(t<1)throw new Error("log("+t+")");return we[t]};Ae.exp=function(t){return ie[t]};Ae.mul=function(t,n){return t===0||n===0?0:ie[we[t]+we[n]]};(function(e){var t=K,n=Ae;e.mul=function(o,a){for(var i=t.alloc(o.length+a.length-1),l=0;l<o.length;l++)for(var c=0;c<a.length;c++)i[l+c]^=n.mul(o[l],a[c]);return i},e.mod=function(o,a){for(var i=t.from(o);i.length-a.length>=0;){for(var l=i[0],c=0;c<a.length;c++)i[c]^=n.mul(a[c],l);for(var u=0;u<i.length&&i[u]===0;)u++;i=i.slice(u)}return i},e.generateECPolynomial=function(o){for(var a=t.from([1]),i=0;i<o;i++)a=e.mul(a,[1,n.exp(i)]);return a}})(An);var Tt=K,Bn=An,Vo=B.bufferPolyfill.Buffer;function nt(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}nt.prototype.initialize=function(t){this.degree=t,this.genPoly=Bn.generateECPolynomial(this.degree)};nt.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var n=Tt.alloc(this.degree),r=Vo.concat([t,n],t.length+this.degree),o=Bn.mod(r,this.genPoly),a=this.degree-o.length;if(a>0){var i=Tt.alloc(this.degree);return o.copy(i,a),i}return o};var Yo=nt,Rn={},V={},rt={};rt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var D={},Ln="[0-9]+",Qo="[A-Z $%*+\\-./:]+",se="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";se=se.replace(/u/g,"\\u");var Jo="(?:(?![A-Z0-9 $%*+\\-./:]|"+se+`)(?:.|[\r
2
2
  ]))+`;D.KANJI=new RegExp(se,"g");D.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");D.BYTE=new RegExp(Jo,"g");D.NUMERIC=new RegExp(Ln,"g");D.ALPHANUMERIC=new RegExp(Qo,"g");var jo=new RegExp("^"+se+"$"),Go=new RegExp("^"+Ln+"$"),Xo=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");D.testKanji=function(t){return jo.test(t)};D.testNumeric=function(t){return Go.test(t)};D.testAlphanumeric=function(t){return Xo.test(t)};(function(e){var t=rt,n=D;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,i){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?a.ccBits[0]:i<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return n.testNumeric(a)?e.NUMERIC:n.testAlphanumeric(a)?e.ALPHANUMERIC:n.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function r(o){if(typeof o!="string")throw new Error("Param is not a string");var a=o.toLowerCase();switch(a){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(a,i){if(e.isValid(a))return a;try{return r(a)}catch{return i}}})(V);(function(e){var t=O,n=ke,r=Se,o=V,a=rt,i=Ze,l=7973,c=t.getBCHDigit(l);function u(_,h,b){for(var f=1;f<=40;f++)if(h<=e.getCapacity(f,b,_))return f}function s(_,h){return o.getCharCountIndicator(_,h)+4}function d(_,h){var b=0;return _.forEach(function(f){var v=s(f.mode,h);b+=v+f.getBitsLength()}),b}function y(_,h){for(var b=1;b<=40;b++){var f=d(_,b);if(f<=e.getCapacity(b,h,o.MIXED))return b}}e.from=function(h,b){return a.isValid(h)?parseInt(h,10):b},e.getCapacity=function(h,b,f){if(!a.isValid(h))throw new Error("Invalid QR Code version");typeof f>"u"&&(f=o.BYTE);var v=t.getSymbolTotalCodewords(h),m=n.getTotalCodewordsCount(h,b),g=(v-m)*8;if(f===o.MIXED)return g;var p=g-s(f,h);switch(f){case o.NUMERIC:return Math.floor(p/10*3);case o.ALPHANUMERIC:return Math.floor(p/11*2);case o.KANJI:return Math.floor(p/13);case o.BYTE:default:return Math.floor(p/8)}},e.getBestVersionForData=function(h,b){var f,v=r.from(b,r.M);if(i(h)){if(h.length>1)return y(h,v);if(h.length===0)return 1;f=h[0]}else f=h;return u(f.mode,f.getLength(),v)},e.getEncodedBits=function(h){if(!a.isValid(h)||h<7)throw new Error("Invalid QR Code version");for(var b=h<<12;t.getBCHDigit(b)-c>=0;)b^=l<<t.getBCHDigit(b)-c;return h<<12|b}})(Rn);var Mn={},ze=O,Pn=1335,Zo=21522,St=ze.getBCHDigit(Pn);Mn.getEncodedBits=function(t,n){for(var r=t.bit<<3|n,o=r<<10;ze.getBCHDigit(o)-St>=0;)o^=Pn<<ze.getBCHDigit(o)-St;return(r<<10|o)^Zo};var On={},ea=V;function X(e){this.mode=ea.NUMERIC,this.data=e.toString()}X.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};X.prototype.getLength=function(){return this.data.length};X.prototype.getBitsLength=function(){return X.getBitsLength(this.data.length)};X.prototype.write=function(t){var n,r,o;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),o=parseInt(r,10),t.put(o,10);var a=this.data.length-n;a>0&&(r=this.data.substr(n),o=parseInt(r,10),t.put(o,a*3+1))};var ta=X,na=V,Me=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Z(e){this.mode=na.ALPHANUMERIC,this.data=e}Z.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Z.prototype.getLength=function(){return this.data.length};Z.prototype.getBitsLength=function(){return Z.getBitsLength(this.data.length)};Z.prototype.write=function(t){var n;for(n=0;n+2<=this.data.length;n+=2){var r=Me.indexOf(this.data[n])*45;r+=Me.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(Me.indexOf(this.data[n]),6)};var ra=Z,oa=K,aa=V;function ee(e){this.mode=aa.BYTE,this.data=oa.from(e)}ee.getBitsLength=function(t){return t*8};ee.prototype.getLength=function(){return this.data.length};ee.prototype.getBitsLength=function(){return ee.getBitsLength(this.data.length)};ee.prototype.write=function(e){for(var t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var ia=ee,la=V,ca=O;function te(e){this.mode=la.KANJI,this.data=e}te.getBitsLength=function(t){return t*13};te.prototype.getLength=function(){return this.data.length};te.prototype.getBitsLength=function(){return te.getBitsLength(this.data.length)};te.prototype.write=function(e){var t;for(t=0;t<this.data.length;t++){var n=ca.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
3
3
  Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var sa=te;(function(e){var t=V,n=ta,r=ra,o=ia,a=sa,i=D,l=O,c=kr.dijkstraExports;function u(v){return unescape(encodeURIComponent(v)).length}function s(v,m,g){for(var p=[],E;(E=v.exec(g))!==null;)p.push({data:E[0],index:E.index,mode:m,length:E[0].length});return p}function d(v){var m=s(i.NUMERIC,t.NUMERIC,v),g=s(i.ALPHANUMERIC,t.ALPHANUMERIC,v),p,E;l.isKanjiModeEnabled()?(p=s(i.BYTE,t.BYTE,v),E=s(i.KANJI,t.KANJI,v)):(p=s(i.BYTE_KANJI,t.BYTE,v),E=[]);var S=m.concat(g,p,E);return S.sort(function(x,k){return x.index-k.index}).map(function(x){return{data:x.data,mode:x.mode,length:x.length}})}function y(v,m){switch(m){case t.NUMERIC:return n.getBitsLength(v);case t.ALPHANUMERIC:return r.getBitsLength(v);case t.KANJI:return a.getBitsLength(v);case t.BYTE:return o.getBitsLength(v)}}function _(v){return v.reduce(function(m,g){var p=m.length-1>=0?m[m.length-1]:null;return p&&p.mode===g.mode?(m[m.length-1].data+=g.data,m):(m.push(g),m)},[])}function h(v){for(var m=[],g=0;g<v.length;g++){var p=v[g];switch(p.mode){case t.NUMERIC:m.push([p,{data:p.data,mode:t.ALPHANUMERIC,length:p.length},{data:p.data,mode:t.BYTE,length:p.length}]);break;case t.ALPHANUMERIC:m.push([p,{data:p.data,mode:t.BYTE,length:p.length}]);break;case t.KANJI:m.push([p,{data:p.data,mode:t.BYTE,length:u(p.data)}]);break;case t.BYTE:m.push([{data:p.data,mode:t.BYTE,length:u(p.data)}])}}return m}function b(v,m){for(var g={},p={start:{}},E=["start"],S=0;S<v.length;S++){for(var x=v[S],k=[],R=0;R<x.length;R++){var N=x[R],Y=""+S+R;k.push(Y),g[Y]={node:N,lastCount:0},p[Y]={};for(var U=0;U<E.length;U++){var P=E[U];g[P]&&g[P].node.mode===N.mode?(p[P][Y]=y(g[P].lastCount+N.length,N.mode)-y(g[P].lastCount,N.mode),g[P].lastCount+=N.length):(g[P]&&(g[P].lastCount=N.length),p[P][Y]=y(N.length,N.mode)+4+t.getCharCountIndicator(N.mode,m))}}E=k}for(U=0;U<E.length;U++)p[E[U]].end=0;return{map:p,table:g}}function f(v,m){var g,p=t.getBestModeForData(v);if(g=t.from(m,p),g!==t.BYTE&&g.bit<p.bit)throw new Error('"'+v+'" cannot be encoded with mode '+t.toString(g)+`.
4
4
  Suggested mode is: `+t.toString(p));switch(g===t.KANJI&&!l.isKanjiModeEnabled()&&(g=t.BYTE),g){case t.NUMERIC:return new n(v);case t.ALPHANUMERIC:return new r(v);case t.KANJI:return new a(v);case t.BYTE:return new o(v)}}e.fromArray=function(m){return m.reduce(function(g,p){return typeof p=="string"?g.push(f(p,null)):p.data&&g.push(f(p.data,p.mode)),g},[])},e.fromString=function(m,g){for(var p=d(m,l.isKanjiModeEnabled()),E=h(p),S=b(E,g),x=c.find_path(S.map,"start","end"),k=[],R=1;R<x.length-1;R++)k.push(S.table[x[R]].node);return e.fromArray(_(k))},e.rawSplit=function(m){return e.fromArray(d(m,l.isKanjiModeEnabled()))}})(On);var kt=K,Ne=O,Pe=Se,ua=qo,fa=Ho,da=Tn,_a=Sn,qe=kn,He=ke,ha=Yo,ye=Rn,ga=Mn,pa=V,Oe=On,ma=Ze;function va(e,t){for(var n=e.size,r=_a.getPositions(t),o=0;o<r.length;o++)for(var a=r[o][0],i=r[o][1],l=-1;l<=7;l++)if(!(a+l<=-1||n<=a+l))for(var c=-1;c<=7;c++)i+c<=-1||n<=i+c||(l>=0&&l<=6&&(c===0||c===6)||c>=0&&c<=6&&(l===0||l===6)||l>=2&&l<=4&&c>=2&&c<=4?e.set(a+l,i+c,!0,!0):e.set(a+l,i+c,!1,!0))}function wa(e){for(var t=e.size,n=8;n<t-8;n++){var r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function ya(e,t){for(var n=da.getPositions(t),r=0;r<n.length;r++)for(var o=n[r][0],a=n[r][1],i=-2;i<=2;i++)for(var l=-2;l<=2;l++)i===-2||i===2||l===-2||l===2||i===0&&l===0?e.set(o+i,a+l,!0,!0):e.set(o+i,a+l,!1,!0)}function ba(e,t){for(var n=e.size,r=ye.getEncodedBits(t),o,a,i,l=0;l<18;l++)o=Math.floor(l/3),a=l%3+n-8-3,i=(r>>l&1)===1,e.set(o,a,i,!0),e.set(a,o,i,!0)}function Ie(e,t,n){var r=e.size,o=ga.getEncodedBits(t,n),a,i;for(a=0;a<15;a++)i=(o>>a&1)===1,a<6?e.set(a,8,i,!0):a<8?e.set(a+1,8,i,!0):e.set(r-15+a,8,i,!0),a<8?e.set(8,r-a-1,i,!0):a<9?e.set(8,15-a-1+1,i,!0):e.set(8,15-a-1,i,!0);e.set(r-8,8,1,!0)}function Ca(e,t){for(var n=e.size,r=-1,o=n-1,a=7,i=0,l=n-1;l>0;l-=2)for(l===6&&l--;;){for(var c=0;c<2;c++)if(!e.isReserved(o,l-c)){var u=!1;i<t.length&&(u=(t[i]>>>a&1)===1),e.set(o,l-c,u),a--,a===-1&&(i++,a=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}function Ea(e,t,n){var r=new ua;n.forEach(function(u){r.put(u.mode.bit,4),r.put(u.getLength(),pa.getCharCountIndicator(u.mode,e)),u.write(r)});var o=Ne.getSymbolTotalCodewords(e),a=He.getTotalCodewordsCount(e,t),i=(o-a)*8;for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);for(var l=(i-r.getLengthInBits())/8,c=0;c<l;c++)r.put(c%2?17:236,8);return xa(r,e,t)}function xa(e,t,n){for(var r=Ne.getSymbolTotalCodewords(t),o=He.getTotalCodewordsCount(t,n),a=r-o,i=He.getBlocksCount(t,n),l=r%i,c=i-l,u=Math.floor(r/i),s=Math.floor(a/i),d=s+1,y=u-s,_=new ha(y),h=0,b=new Array(i),f=new Array(i),v=0,m=kt.from(e.buffer),g=0;g<i;g++){var p=g<c?s:d;b[g]=m.slice(h,h+p),f[g]=_.encode(b[g]),h+=p,v=Math.max(v,p)}var E=kt.alloc(r),S=0,x,k;for(x=0;x<v;x++)for(k=0;k<i;k++)x<b[k].length&&(E[S++]=b[k][x]);for(x=0;x<y;x++)for(k=0;k<i;k++)E[S++]=f[k][x];return E}function Ta(e,t,n,r){var o;if(ma(e))o=Oe.fromArray(e);else if(typeof e=="string"){var a=t;if(!a){var i=Oe.rawSplit(e);a=ye.getBestVersionForData(i,n)}o=Oe.fromString(e,a||40)}else throw new Error("Invalid data");var l=ye.getBestVersionForData(o,n);if(!l)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=l;else if(t<l)throw new Error(`
@@ -1,3 +1,3 @@
1
- "use strict";const g=require("./index-soixhS2C.js");var Ne={},Ze={exports:{}},He={};(function(o){o.fetch=n(g.commonjsGlobal.fetch)&&n(g.commonjsGlobal.ReadableStream),o.writableStream=n(g.commonjsGlobal.WritableStream),o.abortController=n(g.commonjsGlobal.AbortController);var r;function h(){if(r!==void 0)return r;if(g.commonjsGlobal.XMLHttpRequest){r=new g.commonjsGlobal.XMLHttpRequest;try{r.open("GET",g.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{r=null}}else r=null;return r}function f(b){var u=h();if(!u)return!1;try{return u.responseType=b,u.responseType===b}catch{}return!1}o.arraybuffer=o.fetch||f("arraybuffer"),o.msstream=!o.fetch&&f("ms-stream"),o.mozchunkedarraybuffer=!o.fetch&&f("moz-chunked-arraybuffer"),o.overrideMimeType=o.fetch||(h()?n(h().overrideMimeType):!1);function n(b){return typeof b=="function"}r=null})(He);var xe={},Ve=He,nt=g.inherits_browserExports,Je=g.requireReadableBrowser(),Ce=xe.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},Ge=xe.IncomingMessage=function(o,r,h,f){var n=this;if(Je.Readable.call(n),n._mode=h,n.headers={},n.rawHeaders=[],n.trailers={},n.rawTrailers=[],n.on("end",function(){g.dist.process.nextTick(function(){n.emit("close")})}),h==="fetch"){let A=function(){u.read().then(function(d){if(!n._destroyed){if(f(d.done),d.done){n.push(null);return}n.push(g.dist.Buffer.from(d.value)),A()}}).catch(function(d){f(!0),n._destroyed||n.emit("error",d)})};if(n._fetchResponse=r,n.url=r.url,n.statusCode=r.status,n.statusMessage=r.statusText,r.headers.forEach(function(d,x){n.headers[x.toLowerCase()]=d,n.rawHeaders.push(x,d)}),Ve.writableStream){var b=new WritableStream({write:function(d){return f(!1),new Promise(function(x,ee){n._destroyed?ee():n.push(g.dist.Buffer.from(d))?x():n._resumeFetch=x})},close:function(){f(!0),n._destroyed||n.push(null)},abort:function(d){f(!0),n._destroyed||n.emit("error",d)}});try{r.body.pipeTo(b).catch(function(d){f(!0),n._destroyed||n.emit("error",d)});return}catch{}}var u=r.body.getReader();A()}else{n._xhr=o,n._pos=0,n.url=o.responseURL,n.statusCode=o.status,n.statusMessage=o.statusText;var a=o.getAllResponseHeaders().split(/\r?\n/);if(a.forEach(function(A){var d=A.match(/^([^:]+):\s*(.*)/);if(d){var x=d[1].toLowerCase();x==="set-cookie"?(n.headers[x]===void 0&&(n.headers[x]=[]),n.headers[x].push(d[2])):n.headers[x]!==void 0?n.headers[x]+=", "+d[2]:n.headers[x]=d[2],n.rawHeaders.push(d[1],d[2])}}),n._charset="x-user-defined",!Ve.overrideMimeType){var v=n.rawHeaders["mime-type"];if(v){var w=v.match(/;\s*charset=([^;])(;|$)/);w&&(n._charset=w[1].toLowerCase())}n._charset||(n._charset="utf-8")}}};nt(Ge,Je.Readable);Ge.prototype._read=function(){var o=this,r=o._resumeFetch;r&&(o._resumeFetch=null,r())};Ge.prototype._onXHRProgress=function(o){var r=this,h=r._xhr,f=null;switch(r._mode){case"text":if(f=h.responseText,f.length>r._pos){var n=f.substr(r._pos);if(r._charset==="x-user-defined"){for(var b=g.dist.Buffer.alloc(n.length),u=0;u<n.length;u++)b[u]=n.charCodeAt(u)&255;r.push(b)}else r.push(n,r._charset);r._pos=f.length}break;case"arraybuffer":if(h.readyState!==Ce.DONE||!h.response)break;f=h.response,r.push(g.dist.Buffer.from(new Uint8Array(f)));break;case"moz-chunked-arraybuffer":if(f=h.response,h.readyState!==Ce.LOADING||!f)break;r.push(g.dist.Buffer.from(new Uint8Array(f)));break;case"ms-stream":if(f=h.response,h.readyState!==Ce.LOADING)break;var a=new g.commonjsGlobal.MSStreamReader;a.onprogress=function(){a.result.byteLength>r._pos&&(r.push(g.dist.Buffer.from(new Uint8Array(a.result.slice(r._pos)))),r._pos=a.result.byteLength)},a.onload=function(){o(!0),r.push(null)},a.readAsArrayBuffer(f);break}r._xhr.readyState===Ce.DONE&&r._mode!=="ms-stream"&&(o(!0),r.push(null))};var fe=He,st=g.inherits_browserExports,Qe=xe,ke=g.requireReadableBrowser(),at=Qe.IncomingMessage,Ye=Qe.readyStates;function it(o,r){return fe.fetch&&r?"fetch":fe.mozchunkedarraybuffer?"moz-chunked-arraybuffer":fe.msstream?"ms-stream":fe.arraybuffer&&o?"arraybuffer":"text"}var S=Ze.exports=function(o){var r=this;ke.Writable.call(r),r._opts=o,r._body=[],r._headers={},o.auth&&r.setHeader("Authorization","Basic "+g.dist.Buffer.from(o.auth).toString("base64")),Object.keys(o.headers).forEach(function(n){r.setHeader(n,o.headers[n])});var h,f=!0;if(o.mode==="disable-fetch"||"requestTimeout"in o&&!fe.abortController)f=!1,h=!0;else if(o.mode==="prefer-streaming")h=!1;else if(o.mode==="allow-wrong-content-type")h=!fe.overrideMimeType;else if(!o.mode||o.mode==="default"||o.mode==="prefer-fast")h=!0;else throw new Error("Invalid value for opts.mode");r._mode=it(h,f),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",function(){r._onFinish()})};st(S,ke.Writable);S.prototype.setHeader=function(o,r){var h=this,f=o.toLowerCase();ht.indexOf(f)===-1&&(h._headers[f]={name:o,value:r})};S.prototype.getHeader=function(o){var r=this._headers[o.toLowerCase()];return r?r.value:null};S.prototype.removeHeader=function(o){var r=this;delete r._headers[o.toLowerCase()]};S.prototype._onFinish=function(){var o=this;if(!o._destroyed){var r=o._opts;"timeout"in r&&r.timeout!==0&&o.setTimeout(r.timeout);var h=o._headers,f=null;r.method!=="GET"&&r.method!=="HEAD"&&(f=new Blob(o._body,{type:(h["content-type"]||{}).value||""}));var n=[];if(Object.keys(h).forEach(function(v){var w=h[v].name,A=h[v].value;Array.isArray(A)?A.forEach(function(d){n.push([w,d])}):n.push([w,A])}),o._mode==="fetch"){var b=null;if(fe.abortController){var u=new AbortController;b=u.signal,o._fetchAbortController=u,"requestTimeout"in r&&r.requestTimeout!==0&&(o._fetchTimer=g.commonjsGlobal.setTimeout(function(){o.emit("requestTimeout"),o._fetchAbortController&&o._fetchAbortController.abort()},r.requestTimeout))}g.commonjsGlobal.fetch(o._opts.url,{method:o._opts.method,headers:n,body:f||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin",signal:b}).then(function(v){o._fetchResponse=v,o._resetTimers(!1),o._connect()},function(v){o._resetTimers(!0),o._destroyed||o.emit("error",v)})}else{var a=o._xhr=new g.commonjsGlobal.XMLHttpRequest;try{a.open(o._opts.method,o._opts.url,!0)}catch(v){g.dist.process.nextTick(function(){o.emit("error",v)});return}"responseType"in a&&(a.responseType=o._mode),"withCredentials"in a&&(a.withCredentials=!!r.withCredentials),o._mode==="text"&&"overrideMimeType"in a&&a.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in r&&(a.timeout=r.requestTimeout,a.ontimeout=function(){o.emit("requestTimeout")}),n.forEach(function(v){a.setRequestHeader(v[0],v[1])}),o._response=null,a.onreadystatechange=function(){switch(a.readyState){case Ye.LOADING:case Ye.DONE:o._onXHRProgress();break}},o._mode==="moz-chunked-arraybuffer"&&(a.onprogress=function(){o._onXHRProgress()}),a.onerror=function(){o._destroyed||(o._resetTimers(!0),o.emit("error",new Error("XHR error")))};try{a.send(f)}catch(v){g.dist.process.nextTick(function(){o.emit("error",v)});return}}}};function ft(o){try{var r=o.status;return r!==null&&r!==0}catch{return!1}}S.prototype._onXHRProgress=function(){var o=this;o._resetTimers(!1),!(!ft(o._xhr)||o._destroyed)&&(o._response||o._connect(),o._response._onXHRProgress(o._resetTimers.bind(o)))};S.prototype._connect=function(){var o=this;o._destroyed||(o._response=new at(o._xhr,o._fetchResponse,o._mode,o._resetTimers.bind(o)),o._response.on("error",function(r){o.emit("error",r)}),o.emit("response",o._response))};S.prototype._write=function(o,r,h){var f=this;f._body.push(o),h()};S.prototype._resetTimers=function(o){var r=this;g.commonjsGlobal.clearTimeout(r._socketTimer),r._socketTimer=null,o?(g.commonjsGlobal.clearTimeout(r._fetchTimer),r._fetchTimer=null):r._socketTimeout&&(r._socketTimer=g.commonjsGlobal.setTimeout(function(){r.emit("timeout")},r._socketTimeout))};S.prototype.abort=S.prototype.destroy=function(o){var r=this;r._destroyed=!0,r._resetTimers(!0),r._response&&(r._response._destroyed=!0),r._xhr?r._xhr.abort():r._fetchAbortController&&r._fetchAbortController.abort(),o&&r.emit("error",o)};S.prototype.end=function(o,r,h){var f=this;typeof o=="function"&&(h=o,o=void 0),ke.Writable.prototype.end.call(f,o,r,h)};S.prototype.setTimeout=function(o,r){var h=this;r&&h.once("timeout",r),h._socketTimeout=o,h._resetTimers(!1)};S.prototype.flushHeaders=function(){};S.prototype.setNoDelay=function(){};S.prototype.setSocketKeepAlive=function(){};var ht=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],ut=Ze.exports,lt=pt,ct=Object.prototype.hasOwnProperty;function pt(){for(var o={},r=0;r<arguments.length;r++){var h=arguments[r];for(var f in h)ct.call(h,f)&&(o[f]=h[f])}return o}var mt={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},Me={exports:{}},Ae={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Ae.exports;(function(o,r){(function(h){var f=r&&!r.nodeType&&r,n=o&&!o.nodeType&&o,b=typeof g.commonjsGlobal=="object"&&g.commonjsGlobal;(b.global===b||b.window===b||b.self===b)&&(h=b);var u,a=2147483647,v=36,w=1,A=26,d=38,x=700,ee=72,se=128,I="-",qe=/^xn--/,Ee=/[^\x20-\x7E]/,Oe=/[\x2E\u3002\uFF0E\uFF61]/g,Ue={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ce=v-w,F=Math.floor,te=String.fromCharCode,ae;function Z(i){throw new RangeError(Ue[i])}function pe(i,p){for(var y=i.length,T=[];y--;)T[y]=p(i[y]);return T}function be(i,p){var y=i.split("@"),T="";y.length>1&&(T=y[0]+"@",i=y[1]),i=i.replace(Oe,".");var R=i.split("."),L=pe(R,p).join(".");return T+L}function _e(i){for(var p=[],y=0,T=i.length,R,L;y<T;)R=i.charCodeAt(y++),R>=55296&&R<=56319&&y<T?(L=i.charCodeAt(y++),(L&64512)==56320?p.push(((R&1023)<<10)+(L&1023)+65536):(p.push(R),y--)):p.push(R);return p}function he(i){return pe(i,function(p){var y="";return p>65535&&(p-=65536,y+=te(p>>>10&1023|55296),p=56320|p&1023),y+=te(p),y}).join("")}function re(i){return i-48<10?i-22:i-65<26?i-65:i-97<26?i-97:v}function ue(i,p){return i+22+75*(i<26)-((p!=0)<<5)}function oe(i,p,y){var T=0;for(i=y?F(i/x):i>>1,i+=F(i/p);i>ce*A>>1;T+=v)i=F(i/ce);return F(T+(ce+1)*i/(i+d))}function Te(i){var p=[],y=i.length,T,R=0,L=se,q=ee,C,M,$,B,P,N,k,W,J;for(C=i.lastIndexOf(I),C<0&&(C=0),M=0;M<C;++M)i.charCodeAt(M)>=128&&Z("not-basic"),p.push(i.charCodeAt(M));for($=C>0?C+1:0;$<y;){for(B=R,P=1,N=v;$>=y&&Z("invalid-input"),k=re(i.charCodeAt($++)),(k>=v||k>F((a-R)/P))&&Z("overflow"),R+=k*P,W=N<=q?w:N>=q+A?A:N-q,!(k<W);N+=v)J=v-W,P>F(a/J)&&Z("overflow"),P*=J;T=p.length+1,q=oe(R-B,T,B==0),F(R/T)>a-L&&Z("overflow"),L+=F(R/T),R%=T,p.splice(R++,0,L)}return he(p)}function we(i){var p,y,T,R,L,q,C,M,$,B,P,N=[],k,W,J,me;for(i=_e(i),k=i.length,p=se,y=0,L=ee,q=0;q<k;++q)P=i[q],P<128&&N.push(te(P));for(T=R=N.length,R&&N.push(I);T<k;){for(C=a,q=0;q<k;++q)P=i[q],P>=p&&P<C&&(C=P);for(W=T+1,C-p>F((a-y)/W)&&Z("overflow"),y+=(C-p)*W,p=C,q=0;q<k;++q)if(P=i[q],P<p&&++y>a&&Z("overflow"),P==p){for(M=y,$=v;B=$<=L?w:$>=L+A?A:$-L,!(M<B);$+=v)me=M-B,J=v-B,N.push(te(ue(B+me%J,0))),M=F(me/J);N.push(te(ue(M,0))),L=oe(y,W,T==R),y=0,++T}++y,++p}return N.join("")}function Le(i){return be(i,function(p){return qe.test(p)?Te(p.slice(4).toLowerCase()):p})}function Pe(i){return be(i,function(p){return Ee.test(p)?"xn--"+we(p):p})}if(u={version:"1.4.1",ucs2:{decode:_e,encode:he},decode:Te,encode:we,toASCII:Pe,toUnicode:Le},f&&n)if(o.exports==f)n.exports=u;else for(ae in u)u.hasOwnProperty(ae)&&(f[ae]=u[ae]);else h.punycode=u})(g.commonjsGlobal)})(Ae,Ae.exports);var dt=Ae.exports;(function(o,r){Object.defineProperty(r,"__esModule",{value:!0});var h=dt,f=g.require$$2;function n(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var b=n(h),u=n(f),a={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},v=b.default,w=a,A=oe,d=we,x=Le,ee=Te,se=I;function I(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var qe=/^([a-z0-9.+-]+:)/i,Ee=/:[0-9]*$/,Oe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ue=["<",">",'"',"`"," ","\r",`
1
+ "use strict";const g=require("./index-4Y1uNAAU.js");var Ne={},Ze={exports:{}},He={};(function(o){o.fetch=n(g.commonjsGlobal.fetch)&&n(g.commonjsGlobal.ReadableStream),o.writableStream=n(g.commonjsGlobal.WritableStream),o.abortController=n(g.commonjsGlobal.AbortController);var r;function h(){if(r!==void 0)return r;if(g.commonjsGlobal.XMLHttpRequest){r=new g.commonjsGlobal.XMLHttpRequest;try{r.open("GET",g.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{r=null}}else r=null;return r}function f(b){var u=h();if(!u)return!1;try{return u.responseType=b,u.responseType===b}catch{}return!1}o.arraybuffer=o.fetch||f("arraybuffer"),o.msstream=!o.fetch&&f("ms-stream"),o.mozchunkedarraybuffer=!o.fetch&&f("moz-chunked-arraybuffer"),o.overrideMimeType=o.fetch||(h()?n(h().overrideMimeType):!1);function n(b){return typeof b=="function"}r=null})(He);var xe={},Ve=He,nt=g.inherits_browserExports,Je=g.requireReadableBrowser(),Ce=xe.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},Ge=xe.IncomingMessage=function(o,r,h,f){var n=this;if(Je.Readable.call(n),n._mode=h,n.headers={},n.rawHeaders=[],n.trailers={},n.rawTrailers=[],n.on("end",function(){g.dist.process.nextTick(function(){n.emit("close")})}),h==="fetch"){let A=function(){u.read().then(function(d){if(!n._destroyed){if(f(d.done),d.done){n.push(null);return}n.push(g.dist.Buffer.from(d.value)),A()}}).catch(function(d){f(!0),n._destroyed||n.emit("error",d)})};if(n._fetchResponse=r,n.url=r.url,n.statusCode=r.status,n.statusMessage=r.statusText,r.headers.forEach(function(d,x){n.headers[x.toLowerCase()]=d,n.rawHeaders.push(x,d)}),Ve.writableStream){var b=new WritableStream({write:function(d){return f(!1),new Promise(function(x,ee){n._destroyed?ee():n.push(g.dist.Buffer.from(d))?x():n._resumeFetch=x})},close:function(){f(!0),n._destroyed||n.push(null)},abort:function(d){f(!0),n._destroyed||n.emit("error",d)}});try{r.body.pipeTo(b).catch(function(d){f(!0),n._destroyed||n.emit("error",d)});return}catch{}}var u=r.body.getReader();A()}else{n._xhr=o,n._pos=0,n.url=o.responseURL,n.statusCode=o.status,n.statusMessage=o.statusText;var a=o.getAllResponseHeaders().split(/\r?\n/);if(a.forEach(function(A){var d=A.match(/^([^:]+):\s*(.*)/);if(d){var x=d[1].toLowerCase();x==="set-cookie"?(n.headers[x]===void 0&&(n.headers[x]=[]),n.headers[x].push(d[2])):n.headers[x]!==void 0?n.headers[x]+=", "+d[2]:n.headers[x]=d[2],n.rawHeaders.push(d[1],d[2])}}),n._charset="x-user-defined",!Ve.overrideMimeType){var v=n.rawHeaders["mime-type"];if(v){var w=v.match(/;\s*charset=([^;])(;|$)/);w&&(n._charset=w[1].toLowerCase())}n._charset||(n._charset="utf-8")}}};nt(Ge,Je.Readable);Ge.prototype._read=function(){var o=this,r=o._resumeFetch;r&&(o._resumeFetch=null,r())};Ge.prototype._onXHRProgress=function(o){var r=this,h=r._xhr,f=null;switch(r._mode){case"text":if(f=h.responseText,f.length>r._pos){var n=f.substr(r._pos);if(r._charset==="x-user-defined"){for(var b=g.dist.Buffer.alloc(n.length),u=0;u<n.length;u++)b[u]=n.charCodeAt(u)&255;r.push(b)}else r.push(n,r._charset);r._pos=f.length}break;case"arraybuffer":if(h.readyState!==Ce.DONE||!h.response)break;f=h.response,r.push(g.dist.Buffer.from(new Uint8Array(f)));break;case"moz-chunked-arraybuffer":if(f=h.response,h.readyState!==Ce.LOADING||!f)break;r.push(g.dist.Buffer.from(new Uint8Array(f)));break;case"ms-stream":if(f=h.response,h.readyState!==Ce.LOADING)break;var a=new g.commonjsGlobal.MSStreamReader;a.onprogress=function(){a.result.byteLength>r._pos&&(r.push(g.dist.Buffer.from(new Uint8Array(a.result.slice(r._pos)))),r._pos=a.result.byteLength)},a.onload=function(){o(!0),r.push(null)},a.readAsArrayBuffer(f);break}r._xhr.readyState===Ce.DONE&&r._mode!=="ms-stream"&&(o(!0),r.push(null))};var fe=He,st=g.inherits_browserExports,Qe=xe,ke=g.requireReadableBrowser(),at=Qe.IncomingMessage,Ye=Qe.readyStates;function it(o,r){return fe.fetch&&r?"fetch":fe.mozchunkedarraybuffer?"moz-chunked-arraybuffer":fe.msstream?"ms-stream":fe.arraybuffer&&o?"arraybuffer":"text"}var S=Ze.exports=function(o){var r=this;ke.Writable.call(r),r._opts=o,r._body=[],r._headers={},o.auth&&r.setHeader("Authorization","Basic "+g.dist.Buffer.from(o.auth).toString("base64")),Object.keys(o.headers).forEach(function(n){r.setHeader(n,o.headers[n])});var h,f=!0;if(o.mode==="disable-fetch"||"requestTimeout"in o&&!fe.abortController)f=!1,h=!0;else if(o.mode==="prefer-streaming")h=!1;else if(o.mode==="allow-wrong-content-type")h=!fe.overrideMimeType;else if(!o.mode||o.mode==="default"||o.mode==="prefer-fast")h=!0;else throw new Error("Invalid value for opts.mode");r._mode=it(h,f),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",function(){r._onFinish()})};st(S,ke.Writable);S.prototype.setHeader=function(o,r){var h=this,f=o.toLowerCase();ht.indexOf(f)===-1&&(h._headers[f]={name:o,value:r})};S.prototype.getHeader=function(o){var r=this._headers[o.toLowerCase()];return r?r.value:null};S.prototype.removeHeader=function(o){var r=this;delete r._headers[o.toLowerCase()]};S.prototype._onFinish=function(){var o=this;if(!o._destroyed){var r=o._opts;"timeout"in r&&r.timeout!==0&&o.setTimeout(r.timeout);var h=o._headers,f=null;r.method!=="GET"&&r.method!=="HEAD"&&(f=new Blob(o._body,{type:(h["content-type"]||{}).value||""}));var n=[];if(Object.keys(h).forEach(function(v){var w=h[v].name,A=h[v].value;Array.isArray(A)?A.forEach(function(d){n.push([w,d])}):n.push([w,A])}),o._mode==="fetch"){var b=null;if(fe.abortController){var u=new AbortController;b=u.signal,o._fetchAbortController=u,"requestTimeout"in r&&r.requestTimeout!==0&&(o._fetchTimer=g.commonjsGlobal.setTimeout(function(){o.emit("requestTimeout"),o._fetchAbortController&&o._fetchAbortController.abort()},r.requestTimeout))}g.commonjsGlobal.fetch(o._opts.url,{method:o._opts.method,headers:n,body:f||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin",signal:b}).then(function(v){o._fetchResponse=v,o._resetTimers(!1),o._connect()},function(v){o._resetTimers(!0),o._destroyed||o.emit("error",v)})}else{var a=o._xhr=new g.commonjsGlobal.XMLHttpRequest;try{a.open(o._opts.method,o._opts.url,!0)}catch(v){g.dist.process.nextTick(function(){o.emit("error",v)});return}"responseType"in a&&(a.responseType=o._mode),"withCredentials"in a&&(a.withCredentials=!!r.withCredentials),o._mode==="text"&&"overrideMimeType"in a&&a.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in r&&(a.timeout=r.requestTimeout,a.ontimeout=function(){o.emit("requestTimeout")}),n.forEach(function(v){a.setRequestHeader(v[0],v[1])}),o._response=null,a.onreadystatechange=function(){switch(a.readyState){case Ye.LOADING:case Ye.DONE:o._onXHRProgress();break}},o._mode==="moz-chunked-arraybuffer"&&(a.onprogress=function(){o._onXHRProgress()}),a.onerror=function(){o._destroyed||(o._resetTimers(!0),o.emit("error",new Error("XHR error")))};try{a.send(f)}catch(v){g.dist.process.nextTick(function(){o.emit("error",v)});return}}}};function ft(o){try{var r=o.status;return r!==null&&r!==0}catch{return!1}}S.prototype._onXHRProgress=function(){var o=this;o._resetTimers(!1),!(!ft(o._xhr)||o._destroyed)&&(o._response||o._connect(),o._response._onXHRProgress(o._resetTimers.bind(o)))};S.prototype._connect=function(){var o=this;o._destroyed||(o._response=new at(o._xhr,o._fetchResponse,o._mode,o._resetTimers.bind(o)),o._response.on("error",function(r){o.emit("error",r)}),o.emit("response",o._response))};S.prototype._write=function(o,r,h){var f=this;f._body.push(o),h()};S.prototype._resetTimers=function(o){var r=this;g.commonjsGlobal.clearTimeout(r._socketTimer),r._socketTimer=null,o?(g.commonjsGlobal.clearTimeout(r._fetchTimer),r._fetchTimer=null):r._socketTimeout&&(r._socketTimer=g.commonjsGlobal.setTimeout(function(){r.emit("timeout")},r._socketTimeout))};S.prototype.abort=S.prototype.destroy=function(o){var r=this;r._destroyed=!0,r._resetTimers(!0),r._response&&(r._response._destroyed=!0),r._xhr?r._xhr.abort():r._fetchAbortController&&r._fetchAbortController.abort(),o&&r.emit("error",o)};S.prototype.end=function(o,r,h){var f=this;typeof o=="function"&&(h=o,o=void 0),ke.Writable.prototype.end.call(f,o,r,h)};S.prototype.setTimeout=function(o,r){var h=this;r&&h.once("timeout",r),h._socketTimeout=o,h._resetTimers(!1)};S.prototype.flushHeaders=function(){};S.prototype.setNoDelay=function(){};S.prototype.setSocketKeepAlive=function(){};var ht=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],ut=Ze.exports,lt=pt,ct=Object.prototype.hasOwnProperty;function pt(){for(var o={},r=0;r<arguments.length;r++){var h=arguments[r];for(var f in h)ct.call(h,f)&&(o[f]=h[f])}return o}var mt={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},Me={exports:{}},Ae={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Ae.exports;(function(o,r){(function(h){var f=r&&!r.nodeType&&r,n=o&&!o.nodeType&&o,b=typeof g.commonjsGlobal=="object"&&g.commonjsGlobal;(b.global===b||b.window===b||b.self===b)&&(h=b);var u,a=2147483647,v=36,w=1,A=26,d=38,x=700,ee=72,se=128,I="-",qe=/^xn--/,Ee=/[^\x20-\x7E]/,Oe=/[\x2E\u3002\uFF0E\uFF61]/g,Ue={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ce=v-w,F=Math.floor,te=String.fromCharCode,ae;function Z(i){throw new RangeError(Ue[i])}function pe(i,p){for(var y=i.length,T=[];y--;)T[y]=p(i[y]);return T}function be(i,p){var y=i.split("@"),T="";y.length>1&&(T=y[0]+"@",i=y[1]),i=i.replace(Oe,".");var R=i.split("."),L=pe(R,p).join(".");return T+L}function _e(i){for(var p=[],y=0,T=i.length,R,L;y<T;)R=i.charCodeAt(y++),R>=55296&&R<=56319&&y<T?(L=i.charCodeAt(y++),(L&64512)==56320?p.push(((R&1023)<<10)+(L&1023)+65536):(p.push(R),y--)):p.push(R);return p}function he(i){return pe(i,function(p){var y="";return p>65535&&(p-=65536,y+=te(p>>>10&1023|55296),p=56320|p&1023),y+=te(p),y}).join("")}function re(i){return i-48<10?i-22:i-65<26?i-65:i-97<26?i-97:v}function ue(i,p){return i+22+75*(i<26)-((p!=0)<<5)}function oe(i,p,y){var T=0;for(i=y?F(i/x):i>>1,i+=F(i/p);i>ce*A>>1;T+=v)i=F(i/ce);return F(T+(ce+1)*i/(i+d))}function Te(i){var p=[],y=i.length,T,R=0,L=se,q=ee,C,M,$,B,P,N,k,W,J;for(C=i.lastIndexOf(I),C<0&&(C=0),M=0;M<C;++M)i.charCodeAt(M)>=128&&Z("not-basic"),p.push(i.charCodeAt(M));for($=C>0?C+1:0;$<y;){for(B=R,P=1,N=v;$>=y&&Z("invalid-input"),k=re(i.charCodeAt($++)),(k>=v||k>F((a-R)/P))&&Z("overflow"),R+=k*P,W=N<=q?w:N>=q+A?A:N-q,!(k<W);N+=v)J=v-W,P>F(a/J)&&Z("overflow"),P*=J;T=p.length+1,q=oe(R-B,T,B==0),F(R/T)>a-L&&Z("overflow"),L+=F(R/T),R%=T,p.splice(R++,0,L)}return he(p)}function we(i){var p,y,T,R,L,q,C,M,$,B,P,N=[],k,W,J,me;for(i=_e(i),k=i.length,p=se,y=0,L=ee,q=0;q<k;++q)P=i[q],P<128&&N.push(te(P));for(T=R=N.length,R&&N.push(I);T<k;){for(C=a,q=0;q<k;++q)P=i[q],P>=p&&P<C&&(C=P);for(W=T+1,C-p>F((a-y)/W)&&Z("overflow"),y+=(C-p)*W,p=C,q=0;q<k;++q)if(P=i[q],P<p&&++y>a&&Z("overflow"),P==p){for(M=y,$=v;B=$<=L?w:$>=L+A?A:$-L,!(M<B);$+=v)me=M-B,J=v-B,N.push(te(ue(B+me%J,0))),M=F(me/J);N.push(te(ue(M,0))),L=oe(y,W,T==R),y=0,++T}++y,++p}return N.join("")}function Le(i){return be(i,function(p){return qe.test(p)?Te(p.slice(4).toLowerCase()):p})}function Pe(i){return be(i,function(p){return Ee.test(p)?"xn--"+we(p):p})}if(u={version:"1.4.1",ucs2:{decode:_e,encode:he},decode:Te,encode:we,toASCII:Pe,toUnicode:Le},f&&n)if(o.exports==f)n.exports=u;else for(ae in u)u.hasOwnProperty(ae)&&(f[ae]=u[ae]);else h.punycode=u})(g.commonjsGlobal)})(Ae,Ae.exports);var dt=Ae.exports;(function(o,r){Object.defineProperty(r,"__esModule",{value:!0});var h=dt,f=g.require$$2;function n(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var b=n(h),u=n(f),a={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},v=b.default,w=a,A=oe,d=we,x=Le,ee=Te,se=I;function I(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var qe=/^([a-z0-9.+-]+:)/i,Ee=/:[0-9]*$/,Oe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ue=["<",">",'"',"`"," ","\r",`
2
2
  `," "],ce=["{","}","|","\\","^","`"].concat(Ue),F=["'"].concat(ce),te=["%","/","?",";","#"].concat(F),ae=["/","?","#"],Z=255,pe=/^[+a-z0-9A-Z_-]{0,63}$/,be=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_e={javascript:!0,"javascript:":!0},he={javascript:!0,"javascript:":!0},re={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ue=u.default;function oe(e,s,t){if(e&&w.isObject(e)&&e instanceof I)return e;var c=new I;return c.parse(e,s,t),c}I.prototype.parse=function(e,s,t){if(!w.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var c=e.indexOf("?"),_=c!==-1&&c<e.indexOf("#")?"?":"#",D=e.split(_),H=/\\/g;D[0]=D[0].replace(H,"/"),e=D.join(_);var l=e;if(l=l.trim(),!t&&e.split("#").length===1){var K=Oe.exec(l);if(K)return this.path=l,this.href=l,this.pathname=K[1],K[2]?(this.search=K[2],s?this.query=ue.parse(this.search.substr(1)):this.query=this.search.substr(1)):s&&(this.search="",this.query={}),this}var E=qe.exec(l);if(E){E=E[0];var ie=E.toLowerCase();this.protocol=ie,l=l.substr(E.length)}if(t||E||l.match(/^\/\/[^@\/]+@[^@\/]+/)){var de=l.substr(0,2)==="//";de&&!(E&&he[E])&&(l=l.substr(2),this.slashes=!0)}if(!he[E]&&(de||E&&!re[E])){for(var j=-1,O=0;O<ae.length;O++){var Q=l.indexOf(ae[O]);Q!==-1&&(j===-1||Q<j)&&(j=Q)}var ve,G;j===-1?G=l.lastIndexOf("@"):G=l.lastIndexOf("@",j),G!==-1&&(ve=l.slice(0,G),l=l.slice(G+1),this.auth=decodeURIComponent(ve)),j=-1;for(var O=0;O<te.length;O++){var Q=l.indexOf(te[O]);Q!==-1&&(j===-1||Q<j)&&(j=Q)}j===-1&&(j=l.length),this.host=l.slice(0,j),l=l.slice(j),this.parseHost(),this.hostname=this.hostname||"";var ye=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ye)for(var m=this.hostname.split(/\./),O=0,U=m.length;O<U;O++){var V=m[O];if(V&&!V.match(pe)){for(var z="",X=0,Se=V.length;X<Se;X++)V.charCodeAt(X)>127?z+="x":z+=V[X];if(!z.match(pe)){var ne=m.slice(0,O),Y=m.slice(O+1),le=V.match(be);le&&(ne.push(le[1]),Y.unshift(le[2])),Y.length&&(l="/"+Y.join(".")+l),this.hostname=ne.join(".");break}}}this.hostname.length>Z?this.hostname="":this.hostname=this.hostname.toLowerCase(),ye||(this.hostname=v.toASCII(this.hostname));var Ie=this.port?":"+this.port:"",rt=this.hostname||"";this.host=rt+Ie,this.href+=this.host,ye&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!_e[ie])for(var O=0,U=F.length;O<U;O++){var ge=F[O];if(l.indexOf(ge)!==-1){var je=encodeURIComponent(ge);je===ge&&(je=escape(ge)),l=l.split(ge).join(je)}}var Fe=l.indexOf("#");Fe!==-1&&(this.hash=l.substr(Fe),l=l.slice(0,Fe));var Re=l.indexOf("?");if(Re!==-1?(this.search=l.substr(Re),this.query=l.substr(Re+1),s&&(this.query=ue.parse(this.query)),l=l.slice(0,Re)):s&&(this.search="",this.query={}),l&&(this.pathname=l),re[ie]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ie=this.pathname||"",ot=this.search||"";this.path=Ie+ot}return this.href=this.format(),this};function Te(e){return w.isString(e)&&(e=oe(e)),e instanceof I?e.format():I.prototype.format.call(e)}I.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var s=this.protocol||"",t=this.pathname||"",c=this.hash||"",_=!1,D="";this.host?_=e+this.host:this.hostname&&(_=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(_+=":"+this.port)),this.query&&w.isObject(this.query)&&Object.keys(this.query).length&&(D=ue.stringify(this.query));var H=this.search||D&&"?"+D||"";return s&&s.substr(-1)!==":"&&(s+=":"),this.slashes||(!s||re[s])&&_!==!1?(_="//"+(_||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):_||(_=""),c&&c.charAt(0)!=="#"&&(c="#"+c),H&&H.charAt(0)!=="?"&&(H="?"+H),t=t.replace(/[?#]/g,function(l){return encodeURIComponent(l)}),H=H.replace("#","%23"),s+_+t+H+c};function we(e,s){return oe(e,!1,!0).resolve(s)}I.prototype.resolve=function(e){return this.resolveObject(oe(e,!1,!0)).format()};function Le(e,s){return e?oe(e,!1,!0).resolveObject(s):s}I.prototype.resolveObject=function(e){if(w.isString(e)){var s=new I;s.parse(e,!1,!0),e=s}for(var t=new I,c=Object.keys(this),_=0;_<c.length;_++){var D=c[_];t[D]=this[D]}if(t.hash=e.hash,e.href==="")return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var H=Object.keys(e),l=0;l<H.length;l++){var K=H[l];K!=="protocol"&&(t[K]=e[K])}return re[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!re[e.protocol]){for(var E=Object.keys(e),ie=0;ie<E.length;ie++){var de=E[ie];t[de]=e[de]}return t.href=t.format(),t}if(t.protocol=e.protocol,!e.host&&!he[e.protocol]){for(var U=(e.pathname||"").split("/");U.length&&!(e.host=U.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),U[0]!==""&&U.unshift(""),U.length<2&&U.unshift(""),t.pathname=U.join("/")}else t.pathname=e.pathname;if(t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,t.pathname||t.search){var j=t.pathname||"",O=t.search||"";t.path=j+O}return t.slashes=t.slashes||e.slashes,t.href=t.format(),t}var Q=t.pathname&&t.pathname.charAt(0)==="/",ve=e.host||e.pathname&&e.pathname.charAt(0)==="/",G=ve||Q||t.host&&e.pathname,ye=G,m=t.pathname&&t.pathname.split("/")||[],U=e.pathname&&e.pathname.split("/")||[],V=t.protocol&&!re[t.protocol];if(V&&(t.hostname="",t.port=null,t.host&&(m[0]===""?m[0]=t.host:m.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(U[0]===""?U[0]=e.host:U.unshift(e.host)),e.host=null),G=G&&(U[0]===""||m[0]==="")),ve)t.host=e.host||e.host===""?e.host:t.host,t.hostname=e.hostname||e.hostname===""?e.hostname:t.hostname,t.search=e.search,t.query=e.query,m=U;else if(U.length)m||(m=[]),m.pop(),m=m.concat(U),t.search=e.search,t.query=e.query;else if(!w.isNullOrUndefined(e.search)){if(V){t.hostname=t.host=m.shift();var z=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;z&&(t.auth=z.shift(),t.host=t.hostname=z.shift())}return t.search=e.search,t.query=e.query,(!w.isNull(t.pathname)||!w.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!m.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var X=m.slice(-1)[0],Se=(t.host||e.host||m.length>1)&&(X==="."||X==="..")||X==="",ne=0,Y=m.length;Y>=0;Y--)X=m[Y],X==="."?m.splice(Y,1):X===".."?(m.splice(Y,1),ne++):ne&&(m.splice(Y,1),ne--);if(!G&&!ye)for(;ne--;ne)m.unshift("..");G&&m[0]!==""&&(!m[0]||m[0].charAt(0)!=="/")&&m.unshift(""),Se&&m.join("/").substr(-1)!=="/"&&m.push("");var le=m[0]===""||m[0]&&m[0].charAt(0)==="/";if(V){t.hostname=t.host=le?"":m.length?m.shift():"";var z=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;z&&(t.auth=z.shift(),t.host=t.hostname=z.shift())}return G=G||t.host&&m.length,G&&!le&&m.unshift(""),m.length?t.pathname=m.join("/"):(t.pathname=null,t.path=null),(!w.isNull(t.pathname)||!w.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=t.format(),t},I.prototype.parseHost=function(){var e=this.host,s=Ee.exec(e);s&&(s=s[0],s!==":"&&(this.port=s.substr(1)),e=e.substr(0,e.length-s.length)),e&&(this.hostname=e)};function Pe(e,s){for(var t=0,c=e.length-1;c>=0;c--){var _=e[c];_==="."?e.splice(c,1):_===".."?(e.splice(c,1),t++):t&&(e.splice(c,1),t--)}if(s)for(;t--;t)e.unshift("..");return e}function i(){for(var e="",s=!1,t=arguments.length-1;t>=-1&&!s;t--){var c=t>=0?arguments[t]:"/";if(typeof c!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!c)continue;e=c+"/"+e,s=c.charAt(0)==="/"}return e=Pe(p(e.split("/"),function(_){return!!_}),!s).join("/"),(s?"/":"")+e||"."}function p(e,s){if(e.filter)return e.filter(s);for(var t=[],c=0;c<e.length;c++)s(e[c],c,e)&&t.push(e[c]);return t}var y=function(e){function s(){var c=this||self;return delete e.prototype.__magic__,c}if(typeof globalThis=="object")return globalThis;if(this)return s();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:s});var t=__magic__;return t}(Object),T=ee,R=A,L=d,q=se,C=y.URL,M=y.URLSearchParams,$=/%/g,B=/\\/g,P=/\n/g,N=/\r/g,k=/\t/g,W=47;function J(e){var s=e??null;return!!(s!==null&&(s!=null&&s.href)&&(s!=null&&s.origin))}function me(e){if(e.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var s=e.pathname,t=0;t<s.length;t++)if(s[t]==="%"){var c=s.codePointAt(t+2)|32;if(s[t+1]==="2"&&c===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(s)}function tt(e){return e.includes("%")&&(e=e.replace($,"%25")),e.includes("\\")&&(e=e.replace(B,"%5C")),e.includes(`
3
3
  `)&&(e=e.replace(P,"%0A")),e.includes("\r")&&(e=e.replace(N,"%0D")),e.includes(" ")&&(e=e.replace(k,"%09")),e}var $e=function(s){if(typeof s>"u")throw new TypeError('The "domain" argument must be specified');return new C("http://"+s).hostname},Be=function(s){if(typeof s>"u")throw new TypeError('The "domain" argument must be specified');return new C("http://"+s).hostname},ze=function(s){var t=new C("file://"),c=i(s),_=s.charCodeAt(s.length-1);return _===W&&c[c.length-1]!=="/"&&(c+="/"),t.pathname=tt(c),t},Xe=function(s){if(!J(s)&&typeof s!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof s+" ("+s+")");var t=new C(s);if(t.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return me(t)},We=function(s,t){var c,_,D;if(t===void 0&&(t={}),!(s instanceof C))return T(s);if(typeof t!="object"||t===null)throw new TypeError('The "options" argument must be of type object.');var H=(c=t.auth)!=null?c:!0,l=(_=t.fragment)!=null?_:!0,K=(D=t.search)!=null?D:!0,E=new C(s.toString());return H||(E.username="",E.password=""),l||(E.hash=""),K||(E.search=""),E.toString()},Ke={format:We,parse:R,resolve:L,resolveObject:x,Url:q,URL:C,URLSearchParams:M,domainToASCII:$e,domainToUnicode:Be,pathToFileURL:ze,fileURLToPath:Xe};r.URL=C,r.URLSearchParams=M,r.Url=q,r.default=Ke,r.domainToASCII=$e,r.domainToUnicode=Be,r.fileURLToPath=Xe,r.format=We,r.parse=R,r.pathToFileURL=ze,r.resolve=L,r.resolveObject=x,r=o.exports=Ke})(Me,Me.exports);var De=Me.exports;(function(o){var r=ut,h=xe,f=lt,n=mt,b=De,u=o;u.request=function(a,v){typeof a=="string"?a=b.parse(a):a=f(a);var w=g.commonjsGlobal.location.protocol.search(/^https?:$/)===-1?"http:":"",A=a.protocol||w,d=a.hostname||a.host,x=a.port,ee=a.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),a.url=(d?A+"//"+d:"")+(x?":"+x:"")+ee,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var se=new r(a);return v&&se.on("response",v),se},u.get=function(v,w){var A=u.request(v,w);return A.end(),A},u.ClientRequest=r,u.IncomingMessage=h.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=n,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(Ne);var et={exports:{}};(function(o){var r=Ne,h=De,f=o.exports;for(var n in r)r.hasOwnProperty(n)&&(f[n]=r[n]);f.request=function(u,a){return u=b(u),r.request.call(this,u,a)},f.get=function(u,a){return u=b(u),r.get.call(this,u,a)};function b(u){if(typeof u=="string"&&(u=h.parse(u)),u.protocol||(u.protocol="https:"),u.protocol!=="https:")throw new Error('Protocol "'+u.protocol+'" not supported. Expected "https:"');return u}})(et);var vt=et.exports;exports.httpsBrowserifyExports=vt;exports.streamHttp=Ne;exports.urlExports=De;
@@ -1,4 +1,4 @@
1
- import { q as P, b0 as Ye, d as Z, b1 as Ze, aW as it } from "./index-HBwOgLYJ.mjs";
1
+ import { q as P, b0 as Ye, d as Z, b1 as Ze, aW as it } from "./index-oliZI3Bw.mjs";
2
2
  var Je = {}, Qe = { exports: {} }, je = {};
3
3
  (function(o) {
4
4
  o.fetch = n(P.fetch) && n(P.ReadableStream), o.writableStream = n(P.WritableStream), o.abortController = n(P.AbortController);
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-dEADQOcf.js"),Io=require("./dijkstra-dsi_GddY.js"),ko=require("./index-soixhS2C.js");require("react");require("react-dom");var Mo=function(t){for(var r=[],n=t.length,o=0;o<n;o++){var i=t.charCodeAt(o);if(i>=55296&&i<=56319&&n>o+1){var a=t.charCodeAt(o+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-iJmUtx_H.js"),Io=require("./dijkstra-dsi_GddY.js"),ko=require("./index-4Y1uNAAU.js");require("react");require("react-dom");var Mo=function(t){for(var r=[],n=t.length,o=0;o<n;o++){var i=t.charCodeAt(o);if(i>=55296&&i<=56319&&n>o+1){var a=t.charCodeAt(o+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1,7 +1,7 @@
1
- import { d as $, p as Jt, s as Nr, g as jt, a9 as Br, ad as Rr } from "./index-HBwOgLYJ.mjs";
1
+ import { d as $, p as Jt, s as Nr, g as jt, a9 as Br, ad as Rr } from "./index-oliZI3Bw.mjs";
2
2
  import { d as Lr } from "./dijkstra-_4avdlbo.mjs";
3
- import { Q as Mr } from "./index.es-P2W5Cy73.mjs";
4
- import { U as Pr, z as Or } from "./index.es-siSLzXPl.mjs";
3
+ import { Q as Mr } from "./index.es-9kvKUYIv.mjs";
4
+ import { U as Pr, z as Or } from "./index.es-CueUNOIp.mjs";
5
5
  import "react";
6
6
  import "react-dom";
7
7
  var Ir = function() {
@@ -1 +1 @@
1
- "use strict";const me=Symbol(),se=Object.getPrototypeOf,G=new WeakMap,he=e=>e&&(G.has(e)?G.get(e):se(e)===Object.prototype||se(e)===Array.prototype),ge=e=>he(e)&&e[me]||null,ne=(e,t=!0)=>{G.set(e,t)};var H={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const F=e=>typeof e=="object"&&e!==null,A=new WeakMap,x=new WeakSet,be=(e=Object.is,t=(n,g)=>new Proxy(n,g),s=n=>F(n)&&!x.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,g,I=r)=>{const v=l.get(n);if((v==null?void 0:v[0])===g)return v[1];const w=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return ne(w,!0),l.set(n,[g,w]),Reflect.ownKeys(n).forEach(k=>{if(Object.getOwnPropertyDescriptor(w,k))return;const W=Reflect.get(n,k),M={value:W,enumerable:!0,configurable:!0};if(x.has(W))ne(W,!1);else if(W instanceof Promise)delete M.value,M.get=()=>I(W);else if(A.has(W)){const[b,q]=A.get(W);M.value=c(b,q(),I)}Object.defineProperty(w,k,M)}),Object.preventExtensions(w)},m=new WeakMap,f=[1,1],E=n=>{if(!F(n))throw new Error("object required");const g=m.get(n);if(g)return g;let I=f[0];const v=new Set,w=(a,i=++f[0])=>{I!==i&&(I=i,v.forEach(o=>o(a,i)))};let k=f[1];const W=(a=++f[1])=>(k!==a&&!v.size&&(k=a,b.forEach(([i])=>{const o=i[1](a);o>I&&(I=o)})),I),M=a=>(i,o)=>{const h=[...i];h[1]=[a,...h[1]],w(h,o)},b=new Map,q=(a,i)=>{if((H?"production":void 0)!=="production"&&b.has(a))throw new Error("prop listener already exists");if(v.size){const o=i[3](M(a));b.set(a,[i,o])}else b.set(a,[i])},te=a=>{var i;const o=b.get(a);o&&(b.delete(a),(i=o[1])==null||i.call(o))},pe=a=>(v.add(a),v.size===1&&b.forEach(([o,h],N)=>{if((H?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const R=o[3](M(N));b.set(N,[o,R])}),()=>{v.delete(a),v.size===0&&b.forEach(([o,h],N)=>{h&&(h(),b.set(N,[o]))})}),J=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),$=t(J,{deleteProperty(a,i){const o=Reflect.get(a,i);te(i);const h=Reflect.deleteProperty(a,i);return h&&w(["delete",[i],o]),h},set(a,i,o,h){const N=Reflect.has(a,i),R=Reflect.get(a,i,h);if(N&&(e(R,o)||m.has(o)&&e(R,m.get(o))))return!0;te(i),F(o)&&(o=ge(o)||o);let V=o;if(o instanceof Promise)o.then(C=>{o.status="fulfilled",o.value=C,w(["resolve",[i],C])}).catch(C=>{o.status="rejected",o.reason=C,w(["reject",[i],C])});else{!A.has(o)&&s(o)&&(V=E(o));const C=!x.has(V)&&A.get(V);C&&q(i,C)}return Reflect.set(a,i,V,h),w(["set",[i],o,R]),!0}});m.set(n,$);const fe=[J,W,c,pe];return A.set($,fe),Reflect.ownKeys(n).forEach(a=>{const i=Object.getOwnPropertyDescriptor(n,a);"value"in i&&($[a]=n[a],delete i.value,delete i.writable),Object.defineProperty(J,a,i)}),$})=>[E,A,x,e,t,s,r,l,c,m,f],[ye]=be();function j(e={}){return ye(e)}function P(e,t,s){const r=A.get(e);(H?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let f=!1;const n=m(g=>{if(c.push(g),s){t(c.splice(0));return}l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,n()}}function ve(e,t){const s=A.get(e);(H?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=j({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),ee={state:d,subscribe(e){return P(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},u={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return u.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return u.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(u.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!u.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(u.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(u.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=ee.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),p=j({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ue={state:p,subscribe(e){return P(p.events,()=>e(ve(p.events[p.events.length-1])))},initialize(){p.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(p.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){p.connectedWalletId=e},click(e){if(p.enabled){const t={type:"CLICK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},track(e){if(p.enabled){const t={type:"TRACK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},view(e){if(p.enabled){const t={type:"VIEW",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}}},L=j({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),y={state:L,subscribe(e){return P(L,()=>e(L))},setChains(e){L.chains=e},setWalletConnectUri(e){L.walletConnectUri=e},setIsCustomDesktop(e){L.isCustomDesktop=e},setIsCustomMobile(e){L.isCustomMobile=e},setIsDataLoaded(e){L.isDataLoaded=e},setIsUiLoaded(e){L.isUiLoaded=e},setIsAuth(e){L.isAuth=e}},B=j({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),S={state:B,subscribe(e){return P(B,()=>e(B))},setConfig(e){var t,s;ue.initialize(),y.setChains(e.chains),y.setIsAuth(!!e.enableAuthMode),y.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),y.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),u.setModalVersionInStorage(),Object.assign(B,e)}};var Ie=Object.defineProperty,oe=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,We=(e,t)=>{for(var s in t||(t={}))Le.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Oe.call(t,s)&&re(e,s,t[s]);return e};const Q="https://explorer-api.walletconnect.com",X="wcm",Y="js-2.6.2";async function K(e,t){const s=We({sdkType:X,sdkVersion:Y},t),r=new URL(e,Q);return r.searchParams.append("projectId",S.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const U={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${Q}/w3m/v1/getWalletImage/${e}?projectId=${S.state.projectId}&sdkType=${X}&sdkVersion=${Y}`},getAssetImageUrl(e){return`${Q}/w3m/v1/getAssetImage/${e}?projectId=${S.state.projectId}&sdkType=${X}&sdkVersion=${Y}`}};var Ee=Object.defineProperty,ie=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ae=(e,t,s)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,je=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&ae(e,s,t[s]);if(ie)for(var s of ie(t))Ae.call(t,s)&&ae(e,s,t[s]);return e};const le=u.isMobile(),O=j({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Me={state:O,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=S.state;if(e==="NONE"||t==="ALL"&&!e)return O.recomendedWallets;if(u.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await U.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),E=e.indexOf(m.id);return f-E}),O.recomendedWallets=l}else{const{chains:s,isAuth:r}=y.state,l=s==null?void 0:s.join(","),c=u.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:u.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=le?await U.getMobileListings(m):await U.getDesktopListings(m);O.recomendedWallets=Object.values(f)}return O.recomendedWallets},async getWallets(e){const t=je({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=S.state,{recomendedWallets:l}=O;if(r==="ALL")return O.wallets;l.length?t.excludedIds=l.map(I=>I.id).join(","):u.isArray(s)&&(t.excludedIds=s.join(",")),u.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),y.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:E}=le?await U.getMobileListings(t):await U.getDesktopListings(t),n=Object.values(f),g=m?"search":"wallets";return O[g]={listings:[...O[g].listings,...n],total:E,page:c??1},{listings:n,total:E}},getWalletImageUrl(e){return U.getWalletImageUrl(e)},getAssetImageUrl(e){return U.getAssetImageUrl(e)},resetSearch(){O.search={listings:[],total:0,page:1}}},_=j({open:!1}),z={state:_,subscribe(e){return P(_,()=>e(_))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=y.state;if(u.removeWalletConnectDeepLink(),y.setWalletConnectUri(e==null?void 0:e.uri),y.setChains(e==null?void 0:e.chains),ee.reset("ConnectWallet"),s&&r)_.open=!0,t();else{const l=setInterval(()=>{const c=y.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),_.open=!0,t())},200)}})},close(){_.open=!1}};var Ue=Object.defineProperty,ce=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,de=(e,t,s)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Pe=(e,t)=>{for(var s in t||(t={}))De.call(t,s)&&de(e,s,t[s]);if(ce)for(var s of ce(t))Se.call(t,s)&&de(e,s,t[s]);return e};function ke(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const T=j({themeMode:ke()?"dark":"light"}),Z={state:T,subscribe(e){return P(T,()=>e(T))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(T.themeMode=t),s&&(T.themeVariables=Pe({},s))}},D=j({open:!1,message:"",variant:"success"}),Ne={state:D,subscribe(e){return P(D,()=>e(D))},openToast(e,t){D.open=!0,D.message=e,D.variant=t},closeToast(){D.open=!1}};class _e{constructor(t){this.openModal=z.open,this.closeModal=z.close,this.subscribeModal=z.subscribe,this.setTheme=Z.setThemeConfig,Z.setThemeConfig(t),S.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>require("./index-9CzlFlmy.js"));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),y.setIsUiLoaded(!0)}}}const Re=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:_e},Symbol.toStringTag,{value:"Module"}));exports.R=ue;exports.T=ee;exports.a=u;exports.index=Re;exports.ne=Z;exports.oe=Ne;exports.p=y;exports.se=z;exports.te=Me;exports.y=S;
1
+ "use strict";const me=Symbol(),se=Object.getPrototypeOf,G=new WeakMap,he=e=>e&&(G.has(e)?G.get(e):se(e)===Object.prototype||se(e)===Array.prototype),ge=e=>he(e)&&e[me]||null,ne=(e,t=!0)=>{G.set(e,t)};var H={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const F=e=>typeof e=="object"&&e!==null,A=new WeakMap,x=new WeakSet,be=(e=Object.is,t=(n,g)=>new Proxy(n,g),s=n=>F(n)&&!x.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,g,I=r)=>{const v=l.get(n);if((v==null?void 0:v[0])===g)return v[1];const w=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return ne(w,!0),l.set(n,[g,w]),Reflect.ownKeys(n).forEach(k=>{if(Object.getOwnPropertyDescriptor(w,k))return;const W=Reflect.get(n,k),M={value:W,enumerable:!0,configurable:!0};if(x.has(W))ne(W,!1);else if(W instanceof Promise)delete M.value,M.get=()=>I(W);else if(A.has(W)){const[b,q]=A.get(W);M.value=c(b,q(),I)}Object.defineProperty(w,k,M)}),Object.preventExtensions(w)},m=new WeakMap,f=[1,1],E=n=>{if(!F(n))throw new Error("object required");const g=m.get(n);if(g)return g;let I=f[0];const v=new Set,w=(a,i=++f[0])=>{I!==i&&(I=i,v.forEach(o=>o(a,i)))};let k=f[1];const W=(a=++f[1])=>(k!==a&&!v.size&&(k=a,b.forEach(([i])=>{const o=i[1](a);o>I&&(I=o)})),I),M=a=>(i,o)=>{const h=[...i];h[1]=[a,...h[1]],w(h,o)},b=new Map,q=(a,i)=>{if((H?"production":void 0)!=="production"&&b.has(a))throw new Error("prop listener already exists");if(v.size){const o=i[3](M(a));b.set(a,[i,o])}else b.set(a,[i])},te=a=>{var i;const o=b.get(a);o&&(b.delete(a),(i=o[1])==null||i.call(o))},pe=a=>(v.add(a),v.size===1&&b.forEach(([o,h],N)=>{if((H?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const R=o[3](M(N));b.set(N,[o,R])}),()=>{v.delete(a),v.size===0&&b.forEach(([o,h],N)=>{h&&(h(),b.set(N,[o]))})}),J=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),$=t(J,{deleteProperty(a,i){const o=Reflect.get(a,i);te(i);const h=Reflect.deleteProperty(a,i);return h&&w(["delete",[i],o]),h},set(a,i,o,h){const N=Reflect.has(a,i),R=Reflect.get(a,i,h);if(N&&(e(R,o)||m.has(o)&&e(R,m.get(o))))return!0;te(i),F(o)&&(o=ge(o)||o);let V=o;if(o instanceof Promise)o.then(C=>{o.status="fulfilled",o.value=C,w(["resolve",[i],C])}).catch(C=>{o.status="rejected",o.reason=C,w(["reject",[i],C])});else{!A.has(o)&&s(o)&&(V=E(o));const C=!x.has(V)&&A.get(V);C&&q(i,C)}return Reflect.set(a,i,V,h),w(["set",[i],o,R]),!0}});m.set(n,$);const fe=[J,W,c,pe];return A.set($,fe),Reflect.ownKeys(n).forEach(a=>{const i=Object.getOwnPropertyDescriptor(n,a);"value"in i&&($[a]=n[a],delete i.value,delete i.writable),Object.defineProperty(J,a,i)}),$})=>[E,A,x,e,t,s,r,l,c,m,f],[ye]=be();function j(e={}){return ye(e)}function P(e,t,s){const r=A.get(e);(H?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let f=!1;const n=m(g=>{if(c.push(g),s){t(c.splice(0));return}l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,n()}}function ve(e,t){const s=A.get(e);(H?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=j({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),ee={state:d,subscribe(e){return P(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},u={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return u.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return u.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(u.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!u.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(u.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(u.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=ee.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),p=j({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ue={state:p,subscribe(e){return P(p.events,()=>e(ve(p.events[p.events.length-1])))},initialize(){p.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(p.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){p.connectedWalletId=e},click(e){if(p.enabled){const t={type:"CLICK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},track(e){if(p.enabled){const t={type:"TRACK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},view(e){if(p.enabled){const t={type:"VIEW",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}}},L=j({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),y={state:L,subscribe(e){return P(L,()=>e(L))},setChains(e){L.chains=e},setWalletConnectUri(e){L.walletConnectUri=e},setIsCustomDesktop(e){L.isCustomDesktop=e},setIsCustomMobile(e){L.isCustomMobile=e},setIsDataLoaded(e){L.isDataLoaded=e},setIsUiLoaded(e){L.isUiLoaded=e},setIsAuth(e){L.isAuth=e}},B=j({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),S={state:B,subscribe(e){return P(B,()=>e(B))},setConfig(e){var t,s;ue.initialize(),y.setChains(e.chains),y.setIsAuth(!!e.enableAuthMode),y.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),y.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),u.setModalVersionInStorage(),Object.assign(B,e)}};var Ie=Object.defineProperty,oe=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,We=(e,t)=>{for(var s in t||(t={}))Le.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Oe.call(t,s)&&re(e,s,t[s]);return e};const Q="https://explorer-api.walletconnect.com",X="wcm",Y="js-2.6.2";async function K(e,t){const s=We({sdkType:X,sdkVersion:Y},t),r=new URL(e,Q);return r.searchParams.append("projectId",S.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const U={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${Q}/w3m/v1/getWalletImage/${e}?projectId=${S.state.projectId}&sdkType=${X}&sdkVersion=${Y}`},getAssetImageUrl(e){return`${Q}/w3m/v1/getAssetImage/${e}?projectId=${S.state.projectId}&sdkType=${X}&sdkVersion=${Y}`}};var Ee=Object.defineProperty,ie=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ae=(e,t,s)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,je=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&ae(e,s,t[s]);if(ie)for(var s of ie(t))Ae.call(t,s)&&ae(e,s,t[s]);return e};const le=u.isMobile(),O=j({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Me={state:O,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=S.state;if(e==="NONE"||t==="ALL"&&!e)return O.recomendedWallets;if(u.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await U.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),E=e.indexOf(m.id);return f-E}),O.recomendedWallets=l}else{const{chains:s,isAuth:r}=y.state,l=s==null?void 0:s.join(","),c=u.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:u.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=le?await U.getMobileListings(m):await U.getDesktopListings(m);O.recomendedWallets=Object.values(f)}return O.recomendedWallets},async getWallets(e){const t=je({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=S.state,{recomendedWallets:l}=O;if(r==="ALL")return O.wallets;l.length?t.excludedIds=l.map(I=>I.id).join(","):u.isArray(s)&&(t.excludedIds=s.join(",")),u.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),y.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:E}=le?await U.getMobileListings(t):await U.getDesktopListings(t),n=Object.values(f),g=m?"search":"wallets";return O[g]={listings:[...O[g].listings,...n],total:E,page:c??1},{listings:n,total:E}},getWalletImageUrl(e){return U.getWalletImageUrl(e)},getAssetImageUrl(e){return U.getAssetImageUrl(e)},resetSearch(){O.search={listings:[],total:0,page:1}}},_=j({open:!1}),z={state:_,subscribe(e){return P(_,()=>e(_))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=y.state;if(u.removeWalletConnectDeepLink(),y.setWalletConnectUri(e==null?void 0:e.uri),y.setChains(e==null?void 0:e.chains),ee.reset("ConnectWallet"),s&&r)_.open=!0,t();else{const l=setInterval(()=>{const c=y.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),_.open=!0,t())},200)}})},close(){_.open=!1}};var Ue=Object.defineProperty,ce=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,de=(e,t,s)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Pe=(e,t)=>{for(var s in t||(t={}))De.call(t,s)&&de(e,s,t[s]);if(ce)for(var s of ce(t))Se.call(t,s)&&de(e,s,t[s]);return e};function ke(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const T=j({themeMode:ke()?"dark":"light"}),Z={state:T,subscribe(e){return P(T,()=>e(T))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(T.themeMode=t),s&&(T.themeVariables=Pe({},s))}},D=j({open:!1,message:"",variant:"success"}),Ne={state:D,subscribe(e){return P(D,()=>e(D))},openToast(e,t){D.open=!0,D.message=e,D.variant=t},closeToast(){D.open=!1}};class _e{constructor(t){this.openModal=z.open,this.closeModal=z.close,this.subscribeModal=z.subscribe,this.setTheme=Z.setThemeConfig,Z.setThemeConfig(t),S.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>require("./index-MvsxOCsW.js"));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),y.setIsUiLoaded(!0)}}}const Re=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:_e},Symbol.toStringTag,{value:"Module"}));exports.R=ue;exports.T=ee;exports.a=u;exports.index=Re;exports.ne=Z;exports.oe=Ne;exports.p=y;exports.se=z;exports.te=Me;exports.y=S;
@@ -280998,6 +280998,13 @@ const { chains: chains$3 } = CONFIG.MAINNET, MAINNET_CHAINS = {
280998
280998
  sendNative: 3e5,
280999
280999
  sendToken: 3e5,
281000
281000
  claim: 45e4
281001
+ },
281002
+ [Route.NttManual]: {
281003
+ sendToken: 1e7,
281004
+ claim: 1e7
281005
+ },
281006
+ [Route.NttRelay]: {
281007
+ sendToken: 1e7
281001
281008
  }
281002
281009
  },
281003
281010
  polygon: {
@@ -281073,6 +281080,13 @@ const { chains: chains$3 } = CONFIG.MAINNET, MAINNET_CHAINS = {
281073
281080
  [Route.Relay]: {
281074
281081
  sendNative: 25e4,
281075
281082
  sendToken: 3e5
281083
+ },
281084
+ [Route.NttManual]: {
281085
+ sendToken: 1e7,
281086
+ claim: 1e7
281087
+ },
281088
+ [Route.NttRelay]: {
281089
+ sendToken: 1e7
281076
281090
  }
281077
281091
  },
281078
281092
  celo: {
@@ -282703,6 +282717,21 @@ const {
282703
282717
  }
282704
282718
  }
282705
282719
  },
282720
+ USDCfantom: {
282721
+ key: "USDCfantom",
282722
+ symbol: "USDC.e",
282723
+ nativeChain: "fantom",
282724
+ icon: Icon.USDC,
282725
+ tokenId: {
282726
+ chain: "fantom",
282727
+ address: "0x2F733095B80A04b38b0D10cC884524a3d09b836a"
282728
+ },
282729
+ coinGeckoId: "usd-coin",
282730
+ color: "#2774CA",
282731
+ decimals: {
282732
+ default: 6
282733
+ }
282734
+ },
282706
282735
  CELO: {
282707
282736
  key: "CELO",
282708
282737
  symbol: "CELO",
@@ -284220,7 +284249,34 @@ const {
284220
284249
  default: 18
284221
284250
  }
284222
284251
  }
284223
- }, MAINNET_NTT_GROUPS = {}, MAINNET = {
284252
+ }, MAINNET_NTT_GROUPS = {
284253
+ FANTOM_USDC: {
284254
+ nttManagers: [
284255
+ {
284256
+ chainName: "ethereum",
284257
+ address: "0xeBdCe9a913d9400EE75ef31Ce8bd34462D01a1c1",
284258
+ tokenKey: "USDCeth",
284259
+ transceivers: [
284260
+ {
284261
+ address: "0x55f7820357FA17A1ECb48E959D5E637bFF956d6F",
284262
+ type: "wormhole"
284263
+ }
284264
+ ]
284265
+ },
284266
+ {
284267
+ chainName: "fantom",
284268
+ address: "0x68dB2f05Aa2d77DEf981fd2be32661340c9222FB",
284269
+ tokenKey: "USDCfantom",
284270
+ transceivers: [
284271
+ {
284272
+ address: "0x8b47f02e7e20174c76af910adc0ad8a4b0342f4c",
284273
+ type: "wormhole"
284274
+ }
284275
+ ]
284276
+ }
284277
+ ]
284278
+ }
284279
+ }, MAINNET = {
284224
284280
  chains: MAINNET_CHAINS,
284225
284281
  tokens: MAINNET_TOKENS,
284226
284282
  gasEstimates: MAINNET_GAS_ESTIMATES,
@@ -287600,7 +287656,7 @@ const walletConnection = {
287600
287656
  if (Fe.getNetworkInfo().chainId !== e) {
287601
287657
  if (Qe.context === Context.ETH)
287602
287658
  try {
287603
- const { switchChain: qe } = await import("./evm-2aMPlWl0.mjs").then((We) => We.f);
287659
+ const { switchChain: qe } = await import("./evm-wgq2htQK.mjs").then((We) => We.f);
287604
287660
  await qe(Fe, e);
287605
287661
  } catch (qe) {
287606
287662
  if (qe instanceof NotSupported)
@@ -287608,7 +287664,7 @@ const walletConnection = {
287608
287664
  throw qe;
287609
287665
  }
287610
287666
  if (Qe.context === Context.COSMOS) {
287611
- const { switchChain: qe } = await import("./cosmos-LZbcmh28.mjs");
287667
+ const { switchChain: qe } = await import("./cosmos-c0ODp2pR.mjs");
287612
287668
  await qe(Fe, e);
287613
287669
  }
287614
287670
  return Fe.getAddress();
@@ -287617,7 +287673,7 @@ const walletConnection = {
287617
287673
  const Re = walletConnection[e];
287618
287674
  Re && await Re.disconnect();
287619
287675
  }, watchAsset = async (e, Re) => {
287620
- const Fe = walletConnection[Re], { watchAsset: Qe } = await import("./evm-2aMPlWl0.mjs").then((Je) => Je.f);
287676
+ const Fe = walletConnection[Re], { watchAsset: Qe } = await import("./evm-wgq2htQK.mjs").then((Je) => Je.f);
287621
287677
  await Qe(e, Fe);
287622
287678
  }, signAndSendTransaction = async (e, Re, Fe, Qe = {}) => {
287623
287679
  const Je = config$1.chains[e], qe = walletConnection[Fe];
@@ -287627,23 +287683,23 @@ const walletConnection = {
287627
287683
  case Context.ETH:
287628
287684
  return Re.transactionHash;
287629
287685
  case Context.SOLANA: {
287630
- const { signAndSendTransaction: We } = await import("./solana-N7jROrW3.mjs");
287686
+ const { signAndSendTransaction: We } = await import("./solana-9cEEFpYk.mjs");
287631
287687
  return (await We(Re, qe, Qe)).id;
287632
287688
  }
287633
287689
  case Context.SUI: {
287634
- const { signAndSendTransaction: We } = await import("./sui-DtGG5GWD.mjs");
287690
+ const { signAndSendTransaction: We } = await import("./sui-MKTbT49-.mjs");
287635
287691
  return (await We(Re, qe)).id;
287636
287692
  }
287637
287693
  case Context.APTOS: {
287638
- const { signAndSendTransaction: We } = await import("./aptos-cjiLVgwc.mjs");
287694
+ const { signAndSendTransaction: We } = await import("./aptos-wWY9cYKb.mjs");
287639
287695
  return (await We(Re, qe)).id;
287640
287696
  }
287641
287697
  case Context.SEI: {
287642
- const { signAndSendTransaction: We } = await import("./sei-jqCqxgBA.mjs");
287698
+ const { signAndSendTransaction: We } = await import("./sei-kAT23rRb.mjs");
287643
287699
  return (await We(Re, qe)).id;
287644
287700
  }
287645
287701
  case Context.COSMOS: {
287646
- const { signAndSendTransaction: We } = await import("./cosmos-LZbcmh28.mjs");
287702
+ const { signAndSendTransaction: We } = await import("./cosmos-c0ODp2pR.mjs");
287647
287703
  return (await We(Re, qe)).id;
287648
287704
  }
287649
287705
  default:
@@ -287676,39 +287732,39 @@ const walletConnection = {
287676
287732
  if (e === void 0)
287677
287733
  return [];
287678
287734
  if (e.context === Context.ETH) {
287679
- const { wallets: Re } = await import("./evm-2aMPlWl0.mjs").then((Fe) => Fe.f);
287735
+ const { wallets: Re } = await import("./evm-wgq2htQK.mjs").then((Fe) => Fe.f);
287680
287736
  return Object.values(mapWallets(Re, Context.ETH));
287681
287737
  } else if (e.context === Context.SOLANA) {
287682
- const { fetchOptions: Re } = await import("./solana-N7jROrW3.mjs"), Fe = Re();
287738
+ const { fetchOptions: Re } = await import("./solana-9cEEFpYk.mjs"), Fe = Re();
287683
287739
  return Object.values(mapWallets(Fe, Context.SOLANA));
287684
287740
  } else if (e.context === Context.SUI) {
287685
- const Fe = await (await import("./sui-DtGG5GWD.mjs")).fetchOptions();
287741
+ const Fe = await (await import("./sui-MKTbT49-.mjs")).fetchOptions();
287686
287742
  return Object.values(mapWallets(Fe, Context.SUI));
287687
287743
  } else if (e.context === Context.APTOS) {
287688
- const Fe = (await import("./aptos-cjiLVgwc.mjs")).fetchOptions();
287744
+ const Fe = (await import("./aptos-wWY9cYKb.mjs")).fetchOptions();
287689
287745
  return Object.values(mapWallets(Fe, Context.APTOS));
287690
287746
  } else if (e.context === Context.SEI) {
287691
- const Fe = await (await import("./sei-jqCqxgBA.mjs")).fetchOptions();
287747
+ const Fe = await (await import("./sei-kAT23rRb.mjs")).fetchOptions();
287692
287748
  return Object.values(mapWallets(Fe, Context.SEI));
287693
287749
  } else if (e.context === Context.COSMOS)
287694
287750
  if (e.id === CHAIN_ID_EVMOS$1) {
287695
287751
  const {
287696
287752
  wallets: { cosmosEvm: Re }
287697
- } = await import("./cosmos-LZbcmh28.mjs");
287753
+ } = await import("./cosmos-c0ODp2pR.mjs");
287698
287754
  return Object.values(
287699
287755
  mapWallets(Re, Context.COSMOS, ["OKX Wallet"])
287700
287756
  );
287701
287757
  } else if (e.id === CHAIN_ID_INJECTIVE$1) {
287702
287758
  const {
287703
287759
  wallets: { cosmosEvm: Re }
287704
- } = await import("./cosmos-LZbcmh28.mjs");
287760
+ } = await import("./cosmos-c0ODp2pR.mjs");
287705
287761
  return Object.values(
287706
287762
  mapWallets(Re, Context.COSMOS, ["OKX Wallet"])
287707
287763
  );
287708
287764
  } else {
287709
287765
  const {
287710
287766
  wallets: { cosmos: Re }
287711
- } = await import("./cosmos-LZbcmh28.mjs");
287767
+ } = await import("./cosmos-c0ODp2pR.mjs");
287712
287768
  return Object.values(mapWallets(Re, Context.COSMOS));
287713
287769
  }
287714
287770
  return [];
@@ -287950,7 +288006,7 @@ const isUnsignedNttMessage = (e) => typeof e == "object" && "recipientNttManager
287950
288006
  }, formatGasFee = (e, Re) => {
287951
288007
  const Fe = config$1.wh.toChainName(e), Je = config$1.chains[Fe].nativeTokenDecimals;
287952
288008
  return toFixedDecimals(formatUnits(Re, Je), 6);
287953
- }, isIlliquidDestToken = ({ symbol: e, nativeChain: Re }, Fe) => !!(["WETH", "wstETH"].includes(e) && Re !== config$1.wh.toChainName(Fe) && config$1.wh.toChainId(Re) !== CHAIN_ID_ETH$1 || e === "USDC" && Re === "fuji" && Fe === "alfajores" || e === "USDC.e" && Re === "alfajores" || ["TEST_NTT", "USDCalfaljores"].includes(e)), isNttRoute = (e) => e === Route.NttManual || e === Route.NttRelay, joinClass = (e) => e.filter((Re) => !!Re).join(" "), NO_INPUT = "—", OPACITY = {
288009
+ }, isIlliquidDestToken = ({ symbol: e, nativeChain: Re }, Fe) => !!(["WETH", "wstETH"].includes(e) && Re !== config$1.wh.toChainName(Fe) && config$1.wh.toChainId(Re) !== CHAIN_ID_ETH$1 || e === "USDC" && Re === "ethereum" && Fe === "fantom" || e === "USDC" && Re === "fuji" && Fe === "alfajores" || e === "USDC.e" && (Re === "fantom" || Re === "alfajores")), isNttRoute = (e) => e === Route.NttManual || e === Route.NttRelay, joinClass = (e) => e.filter((Re) => !!Re).join(" "), NO_INPUT = "—", OPACITY = {
287954
288010
  0: "00",
287955
288011
  5: "0C",
287956
288012
  7: "0F",
@@ -309787,7 +309843,7 @@ class NttBase extends BaseRoute {
309787
309843
  }
309788
309844
  async estimateSendGas(Re, Fe, Qe, Je, qe, We, Ke) {
309789
309845
  if (isEvmChain(Qe)) {
309790
- const dt = this.TYPE === Route.NttManual ? 2e5 : 25e4;
309846
+ const dt = this.TYPE === Route.NttManual ? 25e4 : 3e5;
309791
309847
  return await estimateAverageGasFee(Qe, dt);
309792
309848
  } else if (toChainName(Qe) === "solana")
309793
309849
  return BigNumber$2.from(1e4);
@@ -333709,14 +333765,17 @@ function Bridge() {
333709
333765
  Fe(setReceiverNativeBalance$1(toDecimals(fr, Qn, 6)));
333710
333766
  });
333711
333767
  }, [qe, We, Hn.address, Fe]), useEffect(() => {
333712
- (async () => {
333713
- const fr = await RouteOperator.allSupportedSourceTokens(
333768
+ let Jn = !0;
333769
+ return (async () => {
333770
+ const sr = await RouteOperator.allSupportedSourceTokens(
333714
333771
  config$1.tokens[dt],
333715
333772
  qe,
333716
333773
  We
333717
333774
  );
333718
- Fe(setSupportedSourceTokens(fr)), isSupportedToken(Ke, fr) || Fe(setToken("")), fr.length === 1 && Ke === "" && Fe(setToken(fr[0].key));
333719
- })();
333775
+ Jn && (Fe(setSupportedSourceTokens(sr)), isSupportedToken(Ke, sr) || Fe(setToken("")), sr.length === 1 && Ke === "" && Fe(setToken(sr[0].key)));
333776
+ })(), () => {
333777
+ Jn = !1;
333778
+ };
333720
333779
  }, [Ze, qe, dt, Fe]), useEffect(() => {
333721
333780
  (async () => {
333722
333781
  var $n, nr;