!function(t,r){"object"==typeofexports&&"undefined"!=typeofmodule?r(exports):"function"==typeofdefine&&define.amd?define(["exports"],r):r((t="undefined"!=typeofglobalThis?globalThis:t||self)._ethers_shims={})}(this,function(t){"use strict";varr="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:{};functione(t,r,e){returnt(e={path:r,exports:{},require:function(t,r){returnfunction(){thrownewError("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void0===r||null===r)&&e.path)}},e.exports),e.exports}varn=e(function(t){!function(r){for(vare=[null,0,{}],n=10,o=44032,i=4352,a=4449,s=4519,u=19,f=21,h=28,l=f*h,c=u*l,p=function(t,r){this.codepoint=t,this.feature=r},d={},g=[],y=0;y<=255;++y)g[y]=0;varw=[function(t,r,n){returnr<60||13311<r&&r<42607?newp(r,e):t(r,n)},function(t,r,e){varo=d[r];returno||(o=t(r,e)).feature&&++g[r>>8&255]>n&&(d[r]=o),o},function(t,r,e){returne?t(r,e):newp(r,null)},function(t,r,e){varn;if(r<i||i+u<=r&&r<o||o+c<r)returnt(r,e);if(i<=r&&r<i+u){vard={},g=(r-i)*f;for(n=0;n<f;++n)d[a+n]=o+h*(n+g);returnnewp(r,[,,d])}vary=r-o,w=y%h,C=[];if(0!==w)C[0]=[o+y-w,s+w];elsefor(C[0]=[i+Math.floor(y/l),a+Math.floor(y%l/h)],C[2]={},n=1;n<h;++n)C[2][s+n]=r+n;returnnewp(r,C)},function(t,r,n){varo=65280&r,i=(p.udata[o]||{})[r];returnnewp(r,i||e)}];p.fromCharCode=w.reduceRight(function(t,r){returnfunction(e,n){returnr(t,e,n)}},null),p.isHighSurrogate=function(t){returnt>=55296&&t<=56319},p.isLowSurrogate=function(t){returnt>=56320&&t<=57343},p.prototype.prepFeature=function(){this.feature||(this.feature=p.fromCharCode(this.codepoint,!0).feature)},p.prototype.toString=function(){if(this.codepoint<65536)returnString.fromCharCode(this.codepoint);vart=this.codepoint-65536;returnString.fromCharCode(Math.floor(t/1024)+55296,t%1024+56320)},p.prototype.getDecomp=function(){returnthis.prepFeature(),this.feature[0]||null},p.prototype.isCompatibility=function(){returnthis.prepFeature(),!!this.feature[1]&&256&this.feature[1]},p.prototype.isExclude=function(){returnthis.prepFeature(),!!this.feature[1]&&512&this.feature[1]},p.prototype.getCanonicalClass=function(){returnthis.prepFeature(),this.feature[1]?255&this.feature[1]:0},p.prototype.getComposite=function(t){if(this.prepFeature(),!this.feature[2])returnnull;varr=this.feature[2][t.codepoint];returnr?p.fromCharCode(r):null};varC=function(t){this.str=t,this.cursor=0};C.prototype.next=function(){if(this.str&&this.cursor<this.str.length){vart,r=this.str.charCodeAt(this.cursor++);returnp.isHighSurrogate(r)&&this.cursor<this.str.length&&p.isLowSurrogate(t=this.str.charCodeAt(this.cursor))&&(r=1024*(r-55296)+(t-56320)+65536,++this.cursor),p.fromCharCode(r)}returnthis.str=null,null};varm=function(t,r){this.it=t,this.canonical=r,this.resBuf=[]};m.prototype.next=function(){if(0===this.resBuf.length){vart=this.it.next();if(!t)returnnull;this.resBuf=functiont(r,e){varn=e.getDecomp();if(!n||r&&e.isCompatibility())return[e];for(varo=[],i=0;i<n.length;++i){vara=t(r,p.fromCharCode(n[i]));o=o.concat(a)}returno}(this.canonical,t)}returnthis.resBuf.shift()};varv=function(t){this.it=t,this.resBuf=[]};v.prototype.next=function(){vart;if(0===this.resBuf.length)do{varr=this.it.next();if(!r)break;t=r.getCanonicalClass();vare=this.resBuf.length;if(0!==t)for(;e>0;--e){if(this.resBuf[e-1].getCanonicalClass()<=t)break}this.resBuf.splice(e,0,r)}while(0!==t);returnthis.resBuf.shift()};varb=function(t){this.it=t,this.procBuf=[],this.resBuf=[],this.lastClass=null};b.prototype.next=function(){for(;0===this.resBuf.length;){vart=this.it.next();if(!t){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=t.getCanonicalClass(),this.procBuf.push(t);else{varr=this.procBuf[0].getComposite(t),e=t.getCanonicalClass();r&&(this.lastClass<e||0===this.lastClass)?this.procBuf[0]=r:(0===e&&(this.resBuf=this.procBuf,this.procBuf=[]),this.lastClass=e,this.procBuf.push(t))}}returnthis.resBuf.shift()};varA=function(t,r)