@quiltt/react-native 3.2.0 → 3.2.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @quiltt/react-native
2
2
 
3
+ ## 3.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 31b7543: Drop react-native-url-polyfill
8
+ - Updated dependencies [31b7543]
9
+ - @quiltt/core@3.2.1
10
+ - @quiltt/react@3.2.1
11
+
3
12
  ## 3.2.0
4
13
 
5
14
  ### Minor Changes
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var to=Object.create;var Y=Object.defineProperty;var io=Object.getOwnPropertyDescriptor;var ao=Object.getOwnPropertyNames;var no=Object.getPrototypeOf,oo=Object.prototype.hasOwnProperty;var a=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),uo=(r,e)=>{for(var t in e)Y(r,t,{get:e[t],enumerable:!0})},Qe=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ao(e))!oo.call(r,n)&&n!==t&&Y(r,n,{get:()=>e[n],enumerable:!(i=io(e,n))||i.enumerable});return r};var co=(r,e,t)=>(t=r!=null?to(no(r)):{},Qe(e||!r||!r.__esModule?Y(t,"default",{value:r,enumerable:!0}):t,r)),so=r=>Qe(Y({},"__esModule",{value:!0}),r);var Ir=a((pl,Je)=>{"use strict";var Rr=typeof document=="object"&&document.all,vo=typeof Rr=="undefined"&&Rr!==void 0;Je.exports={all:Rr,IS_HTMLDDA:vo}});var l=a((yl,rt)=>{"use strict";var Ze=Ir(),lo=Ze.all;rt.exports=Ze.IS_HTMLDDA?function(r){return typeof r=="function"||r===lo}:function(r){return typeof r=="function"}});var y=a((dl,et)=>{"use strict";et.exports=function(r){try{return!!r()}catch(e){return!0}}});var d=a((ql,tt)=>{"use strict";var fo=y();tt.exports=!fo(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var v=a((it,at)=>{"use strict";var z=function(r){return r&&r.Math===Math&&r};at.exports=z(typeof globalThis=="object"&&globalThis)||z(typeof window=="object"&&window)||z(typeof self=="object"&&self)||z(typeof global=="object"&&global)||function(){return this}()||it||Function("return this")()});var w=a((gl,ut)=>{"use strict";var nt=l(),ot=Ir(),po=ot.all;ut.exports=ot.IS_HTMLDDA?function(r){return typeof r=="object"?r!==null:nt(r)||r===po}:function(r){return typeof r=="object"?r!==null:nt(r)}});var wr=a((Ol,st)=>{"use strict";var yo=v(),ct=w(),_r=yo.document,qo=ct(_r)&&ct(_r.createElement);st.exports=function(r){return qo?_r.createElement(r):{}}});var Cr=a((Sl,vt)=>{"use strict";var go=d(),Oo=y(),So=wr();vt.exports=!go&&!Oo(function(){return Object.defineProperty(So("div"),"a",{get:function(){return 7}}).a!==7})});var Pr=a((bl,lt)=>{"use strict";var bo=d(),Eo=y();lt.exports=bo&&Eo(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var T=a((El,ft)=>{"use strict";var ho=w(),mo=String,To=TypeError;ft.exports=function(r){if(ho(r))return r;throw new To(mo(r)+" is not an object")}});var Dr=a((hl,pt)=>{"use strict";var Ro=y();pt.exports=!Ro(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")})});var A=a((ml,yt)=>{"use strict";var Io=Dr(),X=Function.prototype.call;yt.exports=Io?X.bind(X):function(){return X.apply(X,arguments)}});var R=a((Tl,dt)=>{"use strict";var xr=v(),_o=l(),wo=function(r){return _o(r)?r:void 0};dt.exports=function(r,e){return arguments.length<2?wo(xr[r]):xr[r]&&xr[r][e]}});var f=a((Rl,Ot)=>{"use strict";var qt=Dr(),gt=Function.prototype,Ar=gt.call,Co=qt&&gt.bind.bind(Ar,Ar);Ot.exports=qt?Co:function(r){return function(){return Ar.apply(r,arguments)}}});var Nr=a((Il,St)=>{"use strict";var Po=f();St.exports=Po({}.isPrototypeOf)});var Et=a((_l,bt)=>{"use strict";bt.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""});var wt=a((wl,_t)=>{"use strict";var It=v(),Mr=Et(),ht=It.process,mt=It.Deno,Tt=ht&&ht.versions||mt&&mt.version,Rt=Tt&&Tt.v8,O,Q;Rt&&(O=Rt.split("."),Q=O[0]>0&&O[0]<4?1:+(O[0]+O[1]));!Q&&Mr&&(O=Mr.match(/Edge\/(\d+)/),(!O||O[1]>=74)&&(O=Mr.match(/Chrome\/(\d+)/),O&&(Q=+O[1])));_t.exports=Q});var jr=a((Cl,Pt)=>{"use strict";var Ct=wt(),Do=y(),xo=v(),Ao=xo.String;Pt.exports=!!Object.getOwnPropertySymbols&&!Do(function(){var r=Symbol("symbol detection");return!Ao(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&Ct&&Ct<41})});var Lr=a((Pl,Dt)=>{"use strict";var No=jr();Dt.exports=No&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Fr=a((Dl,xt)=>{"use strict";var Mo=R(),jo=l(),Lo=Nr(),Fo=Lr(),Go=Object;xt.exports=Fo?function(r){return typeof r=="symbol"}:function(r){var e=Mo("Symbol");return jo(e)&&Lo(e.prototype,Go(r))}});var Nt=a((xl,At)=>{"use strict";var Uo=String;At.exports=function(r){try{return Uo(r)}catch(e){return"Object"}}});var Gr=a((Al,Mt)=>{"use strict";var Bo=l(),ko=Nt(),Ko=TypeError;Mt.exports=function(r){if(Bo(r))return r;throw new Ko(ko(r)+" is not a function")}});var Ur=a((Nl,jt)=>{"use strict";jt.exports=function(r){return r==null}});var Ft=a((Ml,Lt)=>{"use strict";var $o=Gr(),Vo=Ur();Lt.exports=function(r,e){var t=r[e];return Vo(t)?void 0:$o(t)}});var Ut=a((jl,Gt)=>{"use strict";var Br=A(),kr=l(),Kr=w(),Wo=TypeError;Gt.exports=function(r,e){var t,i;if(e==="string"&&kr(t=r.toString)&&!Kr(i=Br(t,r))||kr(t=r.valueOf)&&!Kr(i=Br(t,r))||e!=="string"&&kr(t=r.toString)&&!Kr(i=Br(t,r)))return i;throw new Wo("Can't convert object to primitive value")}});var J=a((Ll,Bt)=>{"use strict";Bt.exports=!1});var Z=a((Fl,Kt)=>{"use strict";var kt=v(),Ho=Object.defineProperty;Kt.exports=function(r,e){try{Ho(kt,r,{value:e,configurable:!0,writable:!0})}catch(t){kt[r]=e}return e}});var rr=a((Gl,Vt)=>{"use strict";var Yo=v(),zo=Z(),$t="__core-js_shared__",Xo=Yo[$t]||zo($t,{});Vt.exports=Xo});var $r=a((Ul,Ht)=>{"use strict";var Qo=J(),Wt=rr();(Ht.exports=function(r,e){return Wt[r]||(Wt[r]=e!==void 0?e:{})})("versions",[]).push({version:"3.33.2",mode:Qo?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"})});var Vr=a((Bl,Yt)=>{"use strict";var Jo=Ur(),Zo=TypeError;Yt.exports=function(r){if(Jo(r))throw new Zo("Can't call method on "+r);return r}});var Xt=a((kl,zt)=>{"use strict";var ru=Vr(),eu=Object;zt.exports=function(r){return eu(ru(r))}});var q=a((Kl,Qt)=>{"use strict";var tu=f(),iu=Xt(),au=tu({}.hasOwnProperty);Qt.exports=Object.hasOwn||function(e,t){return au(iu(e),t)}});var Wr=a(($l,Jt)=>{"use strict";var nu=f(),ou=0,uu=Math.random(),cu=nu(1 .toString);Jt.exports=function(r){return"Symbol("+(r===void 0?"":r)+")_"+cu(++ou+uu,36)}});var N=a((Vl,ri)=>{"use strict";var su=v(),vu=$r(),Zt=q(),lu=Wr(),fu=jr(),pu=Lr(),P=su.Symbol,Hr=vu("wks"),yu=pu?P.for||P:P&&P.withoutSetter||lu;ri.exports=function(r){return Zt(Hr,r)||(Hr[r]=fu&&Zt(P,r)?P[r]:yu("Symbol."+r)),Hr[r]}});var ai=a((Wl,ii)=>{"use strict";var du=A(),ei=w(),ti=Fr(),qu=Ft(),gu=Ut(),Ou=N(),Su=TypeError,bu=Ou("toPrimitive");ii.exports=function(r,e){if(!ei(r)||ti(r))return r;var t=qu(r,bu),i;if(t){if(e===void 0&&(e="default"),i=du(t,r,e),!ei(i)||ti(i))return i;throw new Su("Can't convert object to primitive value")}return e===void 0&&(e="number"),gu(r,e)}});var Yr=a((Hl,ni)=>{"use strict";var Eu=ai(),hu=Fr();ni.exports=function(r){var e=Eu(r,"string");return hu(e)?e:e+""}});var h=a(ui=>{"use strict";var mu=d(),Tu=Cr(),Ru=Pr(),er=T(),oi=Yr(),Iu=TypeError,zr=Object.defineProperty,_u=Object.getOwnPropertyDescriptor,Xr="enumerable",Qr="configurable",Jr="writable";ui.f=mu?Ru?function(e,t,i){if(er(e),t=oi(t),er(i),typeof e=="function"&&t==="prototype"&&"value"in i&&Jr in i&&!i[Jr]){var n=_u(e,t);n&&n[Jr]&&(e[t]=i.value,i={configurable:Qr in i?i[Qr]:n[Qr],enumerable:Xr in i?i[Xr]:n[Xr],writable:!1})}return zr(e,t,i)}:zr:function(e,t,i){if(er(e),t=oi(t),er(i),Tu)try{return zr(e,t,i)}catch(n){}if("get"in i||"set"in i)throw new Iu("Accessors not supported");return"value"in i&&(e[t]=i.value),e}});var vi=a((zl,si)=>{"use strict";var Zr=d(),wu=q(),ci=Function.prototype,Cu=Zr&&Object.getOwnPropertyDescriptor,re=wu(ci,"name"),Pu=re&&function(){}.name==="something",Du=re&&(!Zr||Zr&&Cu(ci,"name").configurable);si.exports={EXISTS:re,PROPER:Pu,CONFIGURABLE:Du}});var fi=a((Xl,li)=>{"use strict";var xu=f(),Au=l(),ee=rr(),Nu=xu(Function.toString);Au(ee.inspectSource)||(ee.inspectSource=function(r){return Nu(r)});li.exports=ee.inspectSource});var di=a((Ql,yi)=>{"use strict";var Mu=v(),ju=l(),pi=Mu.WeakMap;yi.exports=ju(pi)&&/native code/.test(String(pi))});var M=a((Jl,qi)=>{"use strict";qi.exports=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}});var te=a((Zl,gi)=>{"use strict";var Lu=d(),Fu=h(),Gu=M();gi.exports=Lu?function(r,e,t){return Fu.f(r,e,Gu(1,t))}:function(r,e,t){return r[e]=t,r}});var ie=a((rf,Si)=>{"use strict";var Uu=$r(),Bu=Wr(),Oi=Uu("keys");Si.exports=function(r){return Oi[r]||(Oi[r]=Bu(r))}});var tr=a((ef,bi)=>{"use strict";bi.exports={}});var ue=a((tf,mi)=>{"use strict";var ku=di(),hi=v(),Ku=w(),$u=te(),ae=q(),ne=rr(),Vu=ie(),Wu=tr(),Ei="Object already initialized",oe=hi.TypeError,Hu=hi.WeakMap,ir,j,ar,Yu=function(r){return ar(r)?j(r):ir(r,{})},zu=function(r){return function(e){var t;if(!Ku(e)||(t=j(e)).type!==r)throw new oe("Incompatible receiver, "+r+" required");return t}};ku||ne.state?(S=ne.state||(ne.state=new Hu),S.get=S.get,S.has=S.has,S.set=S.set,ir=function(r,e){if(S.has(r))throw new oe(Ei);return e.facade=r,S.set(r,e),e},j=function(r){return S.get(r)||{}},ar=function(r){return S.has(r)}):(C=Vu("state"),Wu[C]=!0,ir=function(r,e){if(ae(r,C))throw new oe(Ei);return e.facade=r,$u(r,C,e),e},j=function(r){return ae(r,C)?r[C]:{}},ar=function(r){return ae(r,C)});var S,C;mi.exports={set:ir,get:j,has:ar,enforce:Yu,getterFor:zu}});var ve=a((af,Ii)=>{"use strict";var se=f(),Xu=y(),Qu=l(),nr=q(),ce=d(),Ju=vi().CONFIGURABLE,Zu=fi(),Ri=ue(),rc=Ri.enforce,ec=Ri.get,Ti=String,or=Object.defineProperty,tc=se("".slice),ic=se("".replace),ac=se([].join),nc=ce&&!Xu(function(){return or(function(){},"length",{value:8}).length!==8}),oc=String(String).split("String"),uc=Ii.exports=function(r,e,t){tc(Ti(e),0,7)==="Symbol("&&(e="["+ic(Ti(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!nr(r,"name")||Ju&&r.name!==e)&&(ce?or(r,"name",{value:e,configurable:!0}):r.name=e),nc&&t&&nr(t,"arity")&&r.length!==t.arity&&or(r,"length",{value:t.arity});try{t&&nr(t,"constructor")&&t.constructor?ce&&or(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(n){}var i=rc(r);return nr(i,"source")||(i.source=ac(oc,typeof e=="string"?e:"")),r};Function.prototype.toString=uc(function(){return Qu(this)&&ec(this).source||Zu(this)},"toString")});var L=a((nf,_i)=>{"use strict";var cc=l(),sc=h(),vc=ve(),lc=Z();_i.exports=function(r,e,t,i){i||(i={});var n=i.enumerable,o=i.name!==void 0?i.name:e;if(cc(t)&&vc(t,o,i),i.global)n?r[e]=t:lc(e,t);else{try{i.unsafe?r[e]&&(n=!0):delete r[e]}catch(u){}n?r[e]=t:sc.f(r,e,{value:t,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return r}});var ur=a((of,Ci)=>{"use strict";var fc=N(),pc=fc("toStringTag"),wi={};wi[pc]="z";Ci.exports=String(wi)==="[object z]"});var cr=a((uf,Di)=>{"use strict";var Pi=f(),yc=Pi({}.toString),dc=Pi("".slice);Di.exports=function(r){return dc(yc(r),8,-1)}});var le=a((cf,xi)=>{"use strict";var qc=ur(),gc=l(),sr=cr(),Oc=N(),Sc=Oc("toStringTag"),bc=Object,Ec=sr(function(){return arguments}())==="Arguments",hc=function(r,e){try{return r[e]}catch(t){}};xi.exports=qc?sr:function(r){var e,t,i;return r===void 0?"Undefined":r===null?"Null":typeof(t=hc(e=bc(r),Sc))=="string"?t:Ec?sr(e):(i=sr(e))==="Object"&&gc(e.callee)?"Arguments":i}});var fe=a((sf,Ai)=>{"use strict";var mc=le(),Tc=String;Ai.exports=function(r){if(mc(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Tc(r)}});var vr=a((vf,Ni)=>{"use strict";var Rc=fe();Ni.exports=function(r,e){return r===void 0?arguments.length<2?"":e:Rc(r)}});var pe=a((lf,ji)=>{"use strict";var Ic=d(),_c=y(),wc=T(),Mi=vr(),lr=Error.prototype.toString,Cc=_c(function(){if(Ic){var r=Object.create(Object.defineProperty({},"name",{get:function(){return this===r}}));if(lr.call(r)!=="true")return!0}return lr.call({message:1,name:2})!=="2: 1"||lr.call({})!=="Error"});ji.exports=Cc?function(){var e=wc(this),t=Mi(e.name,"Error"),i=Mi(e.message);return t?i?t+": "+i:t:i}:lr});var Gi=a(()=>{"use strict";var Pc=L(),Li=pe(),Fi=Error.prototype;Fi.toString!==Li&&Pc(Fi,"toString",Li)});var Bi=a((yf,Ui)=>{"use strict";var Dc=ur(),xc=le();Ui.exports=Dc?{}.toString:function(){return"[object "+xc(this)+"]"}});var ki=a(()=>{"use strict";var Ac=ur(),Nc=L(),Mc=Bi();Ac||Nc(Object.prototype,"toString",Mc,{unsafe:!0})});var Wi=a(Vi=>{"use strict";var Ki={}.propertyIsEnumerable,$i=Object.getOwnPropertyDescriptor,jc=$i&&!Ki.call({1:2},1);Vi.f=jc?function(e){var t=$i(this,e);return!!t&&t.enumerable}:Ki});var Yi=a((Of,Hi)=>{"use strict";var Lc=f(),Fc=y(),Gc=cr(),ye=Object,Uc=Lc("".split);Hi.exports=Fc(function(){return!ye("z").propertyIsEnumerable(0)})?function(r){return Gc(r)==="String"?Uc(r,""):ye(r)}:ye});var F=a((Sf,zi)=>{"use strict";var Bc=Yi(),kc=Vr();zi.exports=function(r){return Bc(kc(r))}});var de=a(Qi=>{"use strict";var Kc=d(),$c=A(),Vc=Wi(),Wc=M(),Hc=F(),Yc=Yr(),zc=q(),Xc=Cr(),Xi=Object.getOwnPropertyDescriptor;Qi.f=Kc?Xi:function(e,t){if(e=Hc(e),t=Yc(t),Xc)try{return Xi(e,t)}catch(i){}if(zc(e,t))return Wc(!$c(Vc.f,e,t),e[t])}});var Zi=a((Ef,Ji)=>{"use strict";var Qc=Math.ceil,Jc=Math.floor;Ji.exports=Math.trunc||function(e){var t=+e;return(t>0?Jc:Qc)(t)}});var qe=a((hf,ra)=>{"use strict";var Zc=Zi();ra.exports=function(r){var e=+r;return e!==e||e===0?0:Zc(e)}});var ta=a((mf,ea)=>{"use strict";var rs=qe(),es=Math.max,ts=Math.min;ea.exports=function(r,e){var t=rs(r);return t<0?es(t+e,0):ts(t,e)}});var aa=a((Tf,ia)=>{"use strict";var is=qe(),as=Math.min;ia.exports=function(r){return r>0?as(is(r),9007199254740991):0}});var oa=a((Rf,na)=>{"use strict";var ns=aa();na.exports=function(r){return ns(r.length)}});var sa=a((If,ca)=>{"use strict";var os=F(),us=ta(),cs=oa(),ua=function(r){return function(e,t,i){var n=os(e),o=cs(n),u=us(i,o),c;if(r&&t!==t){for(;o>u;)if(c=n[u++],c!==c)return!0}else for(;o>u;u++)if((r||u in n)&&n[u]===t)return r||u||0;return!r&&-1}};ca.exports={includes:ua(!0),indexOf:ua(!1)}});var Oe=a((_f,la)=>{"use strict";var ss=f(),ge=q(),vs=F(),ls=sa().indexOf,fs=tr(),va=ss([].push);la.exports=function(r,e){var t=vs(r),i=0,n=[],o;for(o in t)!ge(fs,o)&&ge(t,o)&&va(n,o);for(;e.length>i;)ge(t,o=e[i++])&&(~ls(n,o)||va(n,o));return n}});var fr=a((wf,fa)=>{"use strict";fa.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var ya=a(pa=>{"use strict";var ps=Oe(),ys=fr(),ds=ys.concat("length","prototype");pa.f=Object.getOwnPropertyNames||function(e){return ps(e,ds)}});var qa=a(da=>{"use strict";da.f=Object.getOwnPropertySymbols});var Oa=a((Df,ga)=>{"use strict";var qs=R(),gs=f(),Os=ya(),Ss=qa(),bs=T(),Es=gs([].concat);ga.exports=qs("Reflect","ownKeys")||function(e){var t=Os.f(bs(e)),i=Ss.f;return i?Es(t,i(e)):t}});var Ea=a((xf,ba)=>{"use strict";var Sa=q(),hs=Oa(),ms=de(),Ts=h();ba.exports=function(r,e,t){for(var i=hs(e),n=Ts.f,o=ms.f,u=0;u<i.length;u++){var c=i[u];!Sa(r,c)&&!(t&&Sa(t,c))&&n(r,c,o(e,c))}}});var ma=a((Af,ha)=>{"use strict";var Rs=y(),Is=l(),_s=/#|\.prototype\./,G=function(r,e){var t=Cs[ws(r)];return t===Ds?!0:t===Ps?!1:Is(e)?Rs(e):!!e},ws=G.normalize=function(r){return String(r).replace(_s,".").toLowerCase()},Cs=G.data={},Ps=G.NATIVE="N",Ds=G.POLYFILL="P";ha.exports=G});var pr=a((Nf,Ta)=>{"use strict";var Se=v(),xs=de().f,As=te(),Ns=L(),Ms=Z(),js=Ea(),Ls=ma();Ta.exports=function(r,e){var t=r.target,i=r.global,n=r.stat,o,u,c,g,E,b;if(i?u=Se:n?u=Se[t]||Ms(t,{}):u=(Se[t]||{}).prototype,u)for(c in e){if(E=e[c],r.dontCallGetSet?(b=xs(u,c),g=b&&b.value):g=u[c],o=Ls(i?c:t+(n?".":"#")+c,r.forced),!o&&g!==void 0){if(typeof E==typeof g)continue;js(E,g)}(r.sham||g&&g.sham)&&As(E,"sham",!0),Ns(u,c,E,r)}}});var Ia=a((Mf,Ra)=>{"use strict";var Fs=TypeError;Ra.exports=function(r,e){if(r<e)throw new Fs("Not enough arguments");return r}});var Pa=a((jf,Ca)=>{"use strict";var _a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",wa={};for(U=0;U<66;U++)wa[_a.charAt(U)]=U;var U;Ca.exports={itoc:_a,ctoi:wa}});var ja=a(()=>{"use strict";var Gs=pr(),Us=v(),Na=R(),Ee=f(),Bs=A(),he=y(),ks=fe(),Ks=q(),$s=Ia(),be=Pa().ctoi,Ma=/[^\d+/a-z]/i,Vs=/[\t\n\f\r ]+/g,Ws=/[=]{1,2}$/,B=Na("atob"),Hs=String.fromCharCode,Ys=Ee("".charAt),Da=Ee("".replace),zs=Ee(Ma.exec),me=he(function(){return B(" ")!==""}),Te=!he(function(){B("a")}),xa=!me&&!Te&&!he(function(){B()}),Aa=!me&&!Te&&B.length!==1;Gs({global:!0,bind:!0,enumerable:!0,forced:me||Te||xa||Aa},{atob:function(e){if($s(arguments.length,1),xa||Aa)return Bs(B,Us,e);var t=Da(ks(e),Vs,""),i="",n=0,o=0,u,c;if(t.length%4===0&&(t=Da(t,Ws,"")),t.length%4===1||zs(Ma,t))throw new(Na("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;u=Ys(t,n++);)Ks(be,u)&&(c=o%4?c*64+be[u]:be[u],o++%4&&(i+=Hs(255&c>>(-2*o&6))));return i}})});var Fa=a((Gf,La)=>{"use strict";var Xs=v(),Qs=cr();La.exports=Qs(Xs.process)==="process"});var Ua=a((Uf,Ga)=>{"use strict";var Js=Fa();Ga.exports=function(r){try{if(Js)return Function('return require("'+r+'")')()}catch(e){}}});var ka=a((Bf,Ba)=>{"use strict";var Zs=Oe(),rv=fr();Ba.exports=Object.keys||function(e){return Zs(e,rv)}});var $a=a(Ka=>{"use strict";var ev=d(),tv=Pr(),iv=h(),av=T(),nv=F(),ov=ka();Ka.f=ev&&!tv?Object.defineProperties:function(e,t){av(e);for(var i=nv(t),n=ov(t),o=n.length,u=0,c;o>u;)iv.f(e,c=n[u++],i[c]);return e}});var Wa=a((Kf,Va)=>{"use strict";var uv=R();Va.exports=uv("document","documentElement")});var rn=a(($f,Za)=>{"use strict";var cv=T(),sv=$a(),Ha=fr(),vv=tr(),lv=Wa(),fv=wr(),pv=ie(),Ya=">",za="<",Ie="prototype",_e="script",Qa=pv("IE_PROTO"),Re=function(){},Ja=function(r){return za+_e+Ya+r+za+"/"+_e+Ya},Xa=function(r){r.write(Ja("")),r.close();var e=r.parentWindow.Object;return r=null,e},yv=function(){var r=fv("iframe"),e="java"+_e+":",t;return r.style.display="none",lv.appendChild(r),r.src=String(e),t=r.contentWindow.document,t.open(),t.write(Ja("document.F=Object")),t.close(),t.F},yr,dr=function(){try{yr=new ActiveXObject("htmlfile")}catch(e){}dr=typeof document!="undefined"?document.domain&&yr?Xa(yr):yv():Xa(yr);for(var r=Ha.length;r--;)delete dr[Ie][Ha[r]];return dr()};vv[Qa]=!0;Za.exports=Object.create||function(e,t){var i;return e!==null?(Re[Ie]=cv(e),i=new Re,Re[Ie]=null,i[Qa]=e):i=dr(),t===void 0?i:sv.f(i,t)}});var an=a((Vf,tn)=>{"use strict";var en=ve(),dv=h();tn.exports=function(r,e,t){return t.get&&en(t.get,e,{getter:!0}),t.set&&en(t.set,e,{setter:!0}),dv.f(r,e,t)}});var we=a((Wf,nn)=>{"use strict";var qv=Nr(),gv=TypeError;nn.exports=function(r,e){if(qv(e,r))return r;throw new gv("Incorrect invocation")}});var Ce=a((Hf,on)=>{"use strict";on.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}});var Pe=a((Yf,sn)=>{"use strict";var Ov=f(),un=Error,Sv=Ov("".replace),bv=function(r){return String(new un(r).stack)}("zxcasd"),cn=/\n\s*at [^:]*:[^\n]*/,Ev=cn.test(bv);sn.exports=function(r,e){if(Ev&&typeof r=="string"&&!un.prepareStackTrace)for(;e--;)r=Sv(r,cn,"");return r}});var bn=a(()=>{"use strict";var hv=pr(),mv=Ua(),Or=R(),je=y(),Tv=rn(),Le=M(),Sr=h().f,Rv=L(),qr=an(),gr=q(),Iv=we(),_v=T(),fn=pe(),vn=vr(),D=Ce(),wv=Pe(),pn=ue(),Fe=d(),yn=J(),x="DOMException",Me="DATA_CLONE_ERR",Er=Or("Error"),m=Or(x)||function(){try{var r=Or("MessageChannel")||mv("worker_threads").MessageChannel;new r().port1.postMessage(new WeakMap)}catch(e){if(e.name===Me&&e.code===25)return e.constructor}}(),Cv=m&&m.prototype,dn=Er.prototype,Pv=pn.set,Dv=pn.getterFor(x),xv="stack"in new Er(x),qn=function(r){return gr(D,r)&&D[r].m?D[r].c:0},Ge=function(){Iv(this,K);var e=arguments.length,t=vn(e<1?void 0:arguments[0]),i=vn(e<2?void 0:arguments[1],"Error"),n=qn(i);if(Pv(this,{type:x,name:i,message:t,code:n}),Fe||(this.name=i,this.message=t,this.code=n),xv){var o=new Er(t);o.name=x,Sr(this,"stack",Le(1,wv(o.stack,1)))}},K=Ge.prototype=Tv(dn),gn=function(r){return{enumerable:!0,configurable:!0,get:r}},De=function(r){return gn(function(){return Dv(this)[r]})};Fe&&(qr(K,"code",De("code")),qr(K,"message",De("message")),qr(K,"name",De("name")));Sr(K,"constructor",Le(1,Ge));var hr=je(function(){return!(new m instanceof Er)}),On=hr||je(function(){return dn.toString!==fn||String(new m(1,2))!=="2: 1"}),Sn=hr||je(function(){return new m(1,"DataCloneError").code!==25}),Av=hr||m[Me]!==25||Cv[Me]!==25,ln=yn?On||Sn||Av:hr;hv({global:!0,constructor:!0,forced:ln},{DOMException:ln?Ge:m});var $=Or(x),br=$.prototype;On&&(yn||m===$)&&Rv(br,"toString",fn);Sn&&Fe&&m===$&&qr(br,"code",gn(function(){return qn(_v(this).name)}));for(xe in D)gr(D,xe)&&(Ae=D[xe],k=Ae.s,Ne=Le(6,Ae.c),gr($,k)||Sr($,k,Ne),gr(br,k)||Sr(br,k,Ne));var Ae,k,Ne,xe});var hn=a((Qf,En)=>{"use strict";var Nv=f(),Mv=Gr();En.exports=function(r,e,t){try{return Nv(Mv(Object.getOwnPropertyDescriptor(r,e)[t]))}catch(i){}}});var Tn=a((Jf,mn)=>{"use strict";var jv=l(),Lv=String,Fv=TypeError;mn.exports=function(r){if(typeof r=="object"||jv(r))return r;throw new Fv("Can't set "+Lv(r)+" as a prototype")}});var In=a((Zf,Rn)=>{"use strict";var Gv=hn(),Uv=T(),Bv=Tn();Rn.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,e={},t;try{t=Gv(Object.prototype,"__proto__","set"),t(e,[]),r=e instanceof Array}catch(i){}return function(n,o){return Uv(n),Bv(o),r?t(n,o):n.__proto__=o,n}}():void 0)});var Cn=a((rp,wn)=>{"use strict";var kv=l(),Kv=w(),_n=In();wn.exports=function(r,e,t){var i,n;return _n&&kv(i=e.constructor)&&i!==t&&Kv(n=i.prototype)&&n!==t.prototype&&_n(r,n),r}});var jn=a(()=>{"use strict";var $v=pr(),Vv=v(),He=R(),Ve=M(),We=h().f,Pn=q(),Wv=we(),Hv=Cn(),Dn=vr(),Ue=Ce(),Yv=Pe(),zv=d(),Nn=J(),W="DOMException",Mn=He("Error"),H=He(W),Ye=function(){Wv(this,Xv);var e=arguments.length,t=Dn(e<1?void 0:arguments[0]),i=Dn(e<2?void 0:arguments[1],"Error"),n=new H(t,i),o=new Mn(t);return o.name=W,We(n,"stack",Ve(1,Yv(o.stack,1))),Hv(n,this,Ye),n},Xv=Ye.prototype=H.prototype,Qv="stack"in new Mn(W),Jv="stack"in new H(1,2),Be=H&&zv&&Object.getOwnPropertyDescriptor(Vv,W),Zv=!!Be&&!(Be.writable&&Be.configurable),xn=Qv&&!Zv&&!Jv;$v({global:!0,constructor:!0,forced:Nn||xn},{DOMException:xn?Ye:H});var V=He(W),An=V.prototype;if(An.constructor!==V){Nn||We(An,"constructor",Ve(1,V));for(ke in Ue)Pn(Ue,ke)&&(Ke=Ue[ke],$e=Ke.s,Pn(V,$e)||We(V,$e,Ve(6,Ke.c)))}var Ke,$e,ke});var Gn=a((ip,Fn)=>{"use strict";var rl=h().f,el=q(),tl=N(),Ln=tl("toStringTag");Fn.exports=function(r,e,t){r&&!t&&(r=r.prototype),r&&!el(r,Ln)&&rl(r,Ln,{configurable:!0,value:e})}});var Bn=a(()=>{"use strict";var il=R(),al=Gn(),Un="DOMException";al(il(Un),Un)});var Kn=a((op,kn)=>{"use strict";var nl=v();kn.exports=nl});var Vn=a((up,$n)=>{"use strict";Gi();ki();ja();bn();jn();Bn();var ol=Kn();$n.exports=ol.atob});var vl={};uo(vl,{QuilttConnector:()=>Xe,default:()=>sl});module.exports=so(vl);var pp=co(Vn());var _=require("@quiltt/core"),mr=require("react"),Yn=require("react-native"),zn=require("react-native-webview");var I=require("react-native"),Hn=require("react/jsx-runtime"),Wn=({children:r})=>(0,Hn.jsx)(I.SafeAreaView,{style:ul.AndroidSafeArea,children:r}),ul=I.StyleSheet.create({AndroidSafeArea:{flex:1,backgroundColor:"white",paddingTop:I.Platform.OS==="android"?I.StatusBar.currentHeight:0}});var Xn=require("react-native-url-polyfill"),Qn=require("@quiltt/react"),ze=require("react/jsx-runtime"),cl=({connectorId:r,connectionId:e,oauthRedirectUrl:t,onEvent:i,onLoad:n,onExit:o,onExitSuccess:u,onExitAbort:c,onExitError:g})=>{let E=(0,mr.useRef)(null),{session:b}=(0,Qn.useQuilttSession)();t=encodeURIComponent(t);let Jn=`https://${r}.quiltt.app/?mode=webview&oauth_redirect_url=${t}&sdk=react-native`,Zn=(0,mr.useCallback)(()=>{var s;let p=` const options = { source: 'quiltt', type: 'Options', token: '${b==null?void 0:b.token}', connectorId: '${r}', connectionId: '${e}', }; const compactedOptions = Object.keys(options).reduce((acc, key) => { if (options[key] !== 'undefined') { acc[key] = options[key]; } return acc; }, {}); window.postMessage(compactedOptions); `;(s=E.current)==null||s.injectJavaScript(p)},[e,r,b==null?void 0:b.token]),ro=p=>{let s=new Xn.URL(p.url);return s.protocol==="quilttconnector:"?(eo(s),!1):!0},Tr=()=>{var s;let p="localStorage.clear();";(s=E.current)==null||s.injectJavaScript(p)},eo=p=>{p.searchParams.delete("source"),p.searchParams.append("connectorId",r);let s=Object.fromEntries(p.searchParams);switch(p.host){case"Loaded":Zn(),i==null||i(_.ConnectorSDKEventType.Load,s),n==null||n(s);break;case"ExitAbort":Tr(),i==null||i(_.ConnectorSDKEventType.ExitAbort,s),o==null||o(_.ConnectorSDKEventType.ExitAbort,s),c==null||c(s);break;case"ExitError":Tr(),i==null||i(_.ConnectorSDKEventType.ExitError,s),o==null||o(_.ConnectorSDKEventType.ExitError,s),g==null||g(s);break;case"ExitSuccess":Tr(),i==null||i(_.ConnectorSDKEventType.ExitSuccess,s),o==null||o(_.ConnectorSDKEventType.ExitSuccess,s),u==null||u(s);break;case"OauthRequested":Yn.Linking.openURL(p.searchParams.get("oauthUrl"));break;default:console.log("unhandled event",p);break}};return(0,ze.jsx)(Wn,{children:(0,ze.jsx)(zn.WebView,{ref:E,originWhitelist:["https://*","quilttconnector://*"],source:{uri:Jn},onShouldStartLoadWithRequest:ro,javaScriptEnabled:!0,domStorageEnabled:!0,webviewDebuggingEnabled:!0})})},Xe=cl;var sl=Xe;0&&(module.exports={QuilttConnector});
1
+ "use strict";var h=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var L=Object.prototype.hasOwnProperty;var Q=(r,a)=>{for(var s in a)h(r,s,{get:a[s],enumerable:!0})},T=(r,a,s,t)=>{if(a&&typeof a=="object"||typeof a=="function")for(let c of D(a))!L.call(r,c)&&c!==s&&h(r,c,{get:()=>a[c],enumerable:!(t=W(a,c))||t.enumerable});return r};var K=r=>T(h({},"__esModule",{value:!0}),r);var M={};Q(M,{QuilttConnector:()=>k,default:()=>j});module.exports=K(M);var F=require("core-js/stable/atob"),G=require("core-js/stable/url");var p=require("@quiltt/core"),n=require("react"),y=require("react-native"),A=require("react-native-webview");var l=require("react-native"),C=require("react/jsx-runtime"),g=({children:r})=>(0,C.jsx)(l.SafeAreaView,{style:U.AndroidSafeArea,children:r}),U=l.StyleSheet.create({AndroidSafeArea:{flex:1,backgroundColor:"white",paddingTop:l.Platform.OS==="android"?l.StatusBar.currentHeight:0}});var P=require("@quiltt/react"),w=require("react/jsx-runtime"),$=({connectorId:r,connectionId:a,oauthRedirectUrl:s,onEvent:t,onLoad:c,onExit:i,onExitSuccess:u,onExitAbort:m,onExitError:f})=>{let S=(0,n.useRef)(null),{session:d}=(0,P.useQuilttSession)();s=encodeURIComponent(s);let R=`https://${r}.quiltt.app/?mode=webview&oauth_redirect_url=${s}&sdk=react-native`,V=(0,n.useCallback)(()=>{var e;let o=` const options = { source: 'quiltt', type: 'Options', token: '${d==null?void 0:d.token}', connectorId: '${r}', connectionId: '${a}', }; const compactedOptions = Object.keys(options).reduce((acc, key) => { if (options[key] !== 'undefined') { acc[key] = options[key]; } return acc; }, {}); window.postMessage(compactedOptions); `;(e=S.current)==null||e.injectJavaScript(o)},[a,r,d==null?void 0:d.token]),q=o=>{let e=new URL(o.url);return e.protocol==="quilttconnector:"?(O(e),!1):!0},b=()=>{var e;let o="localStorage.clear();";(e=S.current)==null||e.injectJavaScript(o)},O=o=>{o.searchParams.delete("source"),o.searchParams.append("connectorId",r);let e=Object.fromEntries(o.searchParams);switch(o.host){case"Loaded":V(),t==null||t(p.ConnectorSDKEventType.Load,e),c==null||c(e);break;case"ExitAbort":b(),t==null||t(p.ConnectorSDKEventType.ExitAbort,e),i==null||i(p.ConnectorSDKEventType.ExitAbort,e),m==null||m(e);break;case"ExitError":b(),t==null||t(p.ConnectorSDKEventType.ExitError,e),i==null||i(p.ConnectorSDKEventType.ExitError,e),f==null||f(e);break;case"ExitSuccess":b(),t==null||t(p.ConnectorSDKEventType.ExitSuccess,e),i==null||i(p.ConnectorSDKEventType.ExitSuccess,e),u==null||u(e);break;case"OauthRequested":y.Linking.openURL(o.searchParams.get("oauthUrl"));break;default:console.log("unhandled event",o);break}};return(0,w.jsx)(g,{children:(0,w.jsx)(A.WebView,{ref:S,originWhitelist:["https://*","quilttconnector://*"],source:{uri:R},onShouldStartLoadWithRequest:q,javaScriptEnabled:!0,domStorageEnabled:!0,webviewDebuggingEnabled:!0})})},k=$;var j=k;0&&(module.exports={QuilttConnector});
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/document-all.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/is-callable.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/fails.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/descriptors.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/global.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/is-object.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/document-create-element.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/ie8-dom-define.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/v8-prototype-define-bug.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/an-object.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/function-bind-native.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/function-call.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/get-built-in.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/function-uncurry-this.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-is-prototype-of.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/engine-user-agent.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/engine-v8-version.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/symbol-constructor-detection.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/use-symbol-as-uid.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/is-symbol.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/try-to-string.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/a-callable.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/is-null-or-undefined.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/get-method.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/ordinary-to-primitive.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/is-pure.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/define-global-property.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/shared-store.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/shared.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/require-object-coercible.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-object.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/has-own-property.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/uid.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/well-known-symbol.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-primitive.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-property-key.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-define-property.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/function-name.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/inspect-source.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/weak-map-basic-detection.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/create-property-descriptor.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/create-non-enumerable-property.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/shared-key.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/hidden-keys.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/internal-state.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/make-built-in.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/define-built-in.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-string-tag-support.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/classof-raw.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/classof.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-string.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/normalize-string-argument.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/error-to-string.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/modules/es.error.to-string.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-to-string.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/modules/es.object.to-string.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-property-is-enumerable.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/indexed-object.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-indexed-object.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-get-own-property-descriptor.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/math-trunc.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-integer-or-infinity.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-absolute-index.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-length.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/length-of-array-like.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/array-includes.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-keys-internal.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/enum-bug-keys.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-get-own-property-names.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-get-own-property-symbols.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/own-keys.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/copy-constructor-properties.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/is-forced.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/export.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/validate-arguments-length.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/base64-map.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/modules/web.atob.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/engine-is-node.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/try-node-require.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-keys.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-define-properties.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/html.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-create.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/define-built-in-accessor.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/an-instance.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/dom-exception-constants.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/error-stack-clear.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/modules/web.dom-exception.constructor.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/function-uncurry-this-accessor.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/a-possible-prototype.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-set-prototype-of.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/inherit-if-required.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/modules/web.dom-exception.stack.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/set-to-string-tag.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/modules/web.dom-exception.to-string-tag.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/path.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/stable/atob.js","../src/index.ts","../src/components/QuilttConnector.tsx","../src/components/AndroidSafeAreaView.tsx"],"sourcesContent":["'use strict';\nvar documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","'use strict';\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","'use strict';\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;\n});\n","'use strict';\nvar check = function (it) {\n return it && it.Math === Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || this || Function('return this')();\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","'use strict';\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a !== 7;\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype !== 42;\n});\n","'use strict';\nvar isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw new $TypeError($String(argument) + ' is not an object');\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","'use strict';\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","'use strict';\nmodule.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","'use strict';\nvar global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\nvar global = require('../internals/global');\n\nvar $String = global.String;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol('symbol detection');\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,\n // of course, fail.\n return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","'use strict';\nvar $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw new $TypeError(tryToString(argument) + ' is not a function');\n};\n","'use strict';\n// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw new $TypeError(\"Can't convert object to primitive value\");\n};\n","'use strict';\nmodule.exports = false;\n","'use strict';\nvar global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","'use strict';\nvar global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","'use strict';\nvar IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.33.2',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","'use strict';\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw new $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","'use strict';\nvar global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw new $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","'use strict';\nvar toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","'use strict';\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","'use strict';\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","'use strict';\nvar shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","'use strict';\nmodule.exports = {};\n","'use strict';\nvar NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw new TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","'use strict';\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\nvar classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\nvar toString = require('../internals/to-string');\n\nmodule.exports = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar anObject = require('../internals/an-object');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\n\nvar nativeErrorToString = Error.prototype.toString;\n\nvar INCORRECT_TO_STRING = fails(function () {\n if (DESCRIPTORS) {\n // Chrome 32- incorrectly call accessor\n // eslint-disable-next-line es/no-object-create, es/no-object-defineproperty -- safe\n var object = Object.create(Object.defineProperty({}, 'name', { get: function () {\n return this === object;\n } }));\n if (nativeErrorToString.call(object) !== 'true') return true;\n }\n // FF10- does not properly handle non-strings\n return nativeErrorToString.call({ message: 1, name: 2 }) !== '2: 1'\n // IE8 does not properly handle defaults\n || nativeErrorToString.call({}) !== 'Error';\n});\n\nmodule.exports = INCORRECT_TO_STRING ? function toString() {\n var O = anObject(this);\n var name = normalizeStringArgument(O.name, 'Error');\n var message = normalizeStringArgument(O.message);\n return !name ? message : !message ? name : name + ': ' + message;\n} : nativeErrorToString;\n","'use strict';\nvar defineBuiltIn = require('../internals/define-built-in');\nvar errorToString = require('../internals/error-to-string');\n\nvar ErrorPrototype = Error.prototype;\n\n// `Error.prototype.toString` method fix\n// https://tc39.es/ecma262/#sec-error.prototype.tostring\nif (ErrorPrototype.toString !== errorToString) {\n defineBuiltIn(ErrorPrototype, 'toString', errorToString);\n}\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) === 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","'use strict';\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","'use strict';\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","'use strict';\nvar trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","'use strict';\nvar toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el !== el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value !== value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\n// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","'use strict';\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","'use strict';\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","'use strict';\nvar hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value === POLYFILL ? true\n : value === NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","'use strict';\nvar global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","'use strict';\nvar $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw new $TypeError('Not enough arguments');\n return passed;\n};\n","'use strict';\nvar itoc = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\nvar ctoi = {};\n\nfor (var index = 0; index < 66; index++) ctoi[itoc.charAt(index)] = index;\n\nmodule.exports = {\n itoc: itoc,\n ctoi: ctoi\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar call = require('../internals/function-call');\nvar fails = require('../internals/fails');\nvar toString = require('../internals/to-string');\nvar hasOwn = require('../internals/has-own-property');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar ctoi = require('../internals/base64-map').ctoi;\n\nvar disallowed = /[^\\d+/a-z]/i;\nvar whitespaces = /[\\t\\n\\f\\r ]+/g;\nvar finalEq = /[=]{1,2}$/;\n\nvar $atob = getBuiltIn('atob');\nvar fromCharCode = String.fromCharCode;\nvar charAt = uncurryThis(''.charAt);\nvar replace = uncurryThis(''.replace);\nvar exec = uncurryThis(disallowed.exec);\n\nvar NO_SPACES_IGNORE = fails(function () {\n return $atob(' ') !== '';\n});\n\nvar NO_ENCODING_CHECK = !fails(function () {\n $atob('a');\n});\n\nvar NO_ARG_RECEIVING_CHECK = !NO_SPACES_IGNORE && !NO_ENCODING_CHECK && !fails(function () {\n $atob();\n});\n\nvar WRONG_ARITY = !NO_SPACES_IGNORE && !NO_ENCODING_CHECK && $atob.length !== 1;\n\n// `atob` method\n// https://html.spec.whatwg.org/multipage/webappapis.html#dom-atob\n$({ global: true, bind: true, enumerable: true, forced: NO_SPACES_IGNORE || NO_ENCODING_CHECK || NO_ARG_RECEIVING_CHECK || WRONG_ARITY }, {\n atob: function atob(data) {\n validateArgumentsLength(arguments.length, 1);\n // `webpack` dev server bug on IE global methods - use call(fn, global, ...)\n if (NO_ARG_RECEIVING_CHECK || WRONG_ARITY) return call($atob, global, data);\n var string = replace(toString(data), whitespaces, '');\n var output = '';\n var position = 0;\n var bc = 0;\n var chr, bs;\n if (string.length % 4 === 0) {\n string = replace(string, finalEq, '');\n }\n if (string.length % 4 === 1 || exec(disallowed, string)) {\n throw new (getBuiltIn('DOMException'))('The string is not correctly encoded', 'InvalidCharacterError');\n }\n while (chr = charAt(string, position++)) {\n if (hasOwn(ctoi, chr)) {\n bs = bc % 4 ? bs * 64 + ctoi[chr] : ctoi[chr];\n if (bc++ % 4) output += fromCharCode(255 & bs >> (-2 * bc & 6));\n }\n } return output;\n }\n});\n","'use strict';\nvar global = require('../internals/global');\nvar classof = require('../internals/classof-raw');\n\nmodule.exports = classof(global.process) === 'process';\n","'use strict';\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = function (name) {\n try {\n // eslint-disable-next-line no-new-func -- safe\n if (IS_NODE) return Function('return require(\"' + name + '\")')();\n } catch (error) { /* empty */ }\n};\n","'use strict';\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","'use strict';\n/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","'use strict';\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw new $TypeError('Incorrect invocation');\n};\n","'use strict';\nmodule.exports = {\n IndexSizeError: { s: 'INDEX_SIZE_ERR', c: 1, m: 1 },\n DOMStringSizeError: { s: 'DOMSTRING_SIZE_ERR', c: 2, m: 0 },\n HierarchyRequestError: { s: 'HIERARCHY_REQUEST_ERR', c: 3, m: 1 },\n WrongDocumentError: { s: 'WRONG_DOCUMENT_ERR', c: 4, m: 1 },\n InvalidCharacterError: { s: 'INVALID_CHARACTER_ERR', c: 5, m: 1 },\n NoDataAllowedError: { s: 'NO_DATA_ALLOWED_ERR', c: 6, m: 0 },\n NoModificationAllowedError: { s: 'NO_MODIFICATION_ALLOWED_ERR', c: 7, m: 1 },\n NotFoundError: { s: 'NOT_FOUND_ERR', c: 8, m: 1 },\n NotSupportedError: { s: 'NOT_SUPPORTED_ERR', c: 9, m: 1 },\n InUseAttributeError: { s: 'INUSE_ATTRIBUTE_ERR', c: 10, m: 1 },\n InvalidStateError: { s: 'INVALID_STATE_ERR', c: 11, m: 1 },\n SyntaxError: { s: 'SYNTAX_ERR', c: 12, m: 1 },\n InvalidModificationError: { s: 'INVALID_MODIFICATION_ERR', c: 13, m: 1 },\n NamespaceError: { s: 'NAMESPACE_ERR', c: 14, m: 1 },\n InvalidAccessError: { s: 'INVALID_ACCESS_ERR', c: 15, m: 1 },\n ValidationError: { s: 'VALIDATION_ERR', c: 16, m: 0 },\n TypeMismatchError: { s: 'TYPE_MISMATCH_ERR', c: 17, m: 1 },\n SecurityError: { s: 'SECURITY_ERR', c: 18, m: 1 },\n NetworkError: { s: 'NETWORK_ERR', c: 19, m: 1 },\n AbortError: { s: 'ABORT_ERR', c: 20, m: 1 },\n URLMismatchError: { s: 'URL_MISMATCH_ERR', c: 21, m: 1 },\n QuotaExceededError: { s: 'QUOTA_EXCEEDED_ERR', c: 22, m: 1 },\n TimeoutError: { s: 'TIMEOUT_ERR', c: 23, m: 1 },\n InvalidNodeTypeError: { s: 'INVALID_NODE_TYPE_ERR', c: 24, m: 1 },\n DataCloneError: { s: 'DATA_CLONE_ERR', c: 25, m: 1 }\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar $Error = Error;\nvar replace = uncurryThis(''.replace);\n\nvar TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');\n// eslint-disable-next-line redos/no-vulnerable -- safe\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar tryNodeRequire = require('../internals/try-node-require');\nvar getBuiltIn = require('../internals/get-built-in');\nvar fails = require('../internals/fails');\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar hasOwn = require('../internals/has-own-property');\nvar anInstance = require('../internals/an-instance');\nvar anObject = require('../internals/an-object');\nvar errorToString = require('../internals/error-to-string');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar DOMExceptionConstants = require('../internals/dom-exception-constants');\nvar clearErrorStack = require('../internals/error-stack-clear');\nvar InternalStateModule = require('../internals/internal-state');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IS_PURE = require('../internals/is-pure');\n\nvar DOM_EXCEPTION = 'DOMException';\nvar DATA_CLONE_ERR = 'DATA_CLONE_ERR';\nvar Error = getBuiltIn('Error');\n// NodeJS < 17.0 does not expose `DOMException` to global\nvar NativeDOMException = getBuiltIn(DOM_EXCEPTION) || (function () {\n try {\n // NodeJS < 15.0 does not expose `MessageChannel` to global\n var MessageChannel = getBuiltIn('MessageChannel') || tryNodeRequire('worker_threads').MessageChannel;\n // eslint-disable-next-line es/no-weak-map, unicorn/require-post-message-target-origin -- safe\n new MessageChannel().port1.postMessage(new WeakMap());\n } catch (error) {\n if (error.name === DATA_CLONE_ERR && error.code === 25) return error.constructor;\n }\n})();\nvar NativeDOMExceptionPrototype = NativeDOMException && NativeDOMException.prototype;\nvar ErrorPrototype = Error.prototype;\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(DOM_EXCEPTION);\nvar HAS_STACK = 'stack' in new Error(DOM_EXCEPTION);\n\nvar codeFor = function (name) {\n return hasOwn(DOMExceptionConstants, name) && DOMExceptionConstants[name].m ? DOMExceptionConstants[name].c : 0;\n};\n\nvar $DOMException = function DOMException() {\n anInstance(this, DOMExceptionPrototype);\n var argumentsLength = arguments.length;\n var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]);\n var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error');\n var code = codeFor(name);\n setInternalState(this, {\n type: DOM_EXCEPTION,\n name: name,\n message: message,\n code: code\n });\n if (!DESCRIPTORS) {\n this.name = name;\n this.message = message;\n this.code = code;\n }\n if (HAS_STACK) {\n var error = new Error(message);\n error.name = DOM_EXCEPTION;\n defineProperty(this, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1)));\n }\n};\n\nvar DOMExceptionPrototype = $DOMException.prototype = create(ErrorPrototype);\n\nvar createGetterDescriptor = function (get) {\n return { enumerable: true, configurable: true, get: get };\n};\n\nvar getterFor = function (key) {\n return createGetterDescriptor(function () {\n return getInternalState(this)[key];\n });\n};\n\nif (DESCRIPTORS) {\n // `DOMException.prototype.code` getter\n defineBuiltInAccessor(DOMExceptionPrototype, 'code', getterFor('code'));\n // `DOMException.prototype.message` getter\n defineBuiltInAccessor(DOMExceptionPrototype, 'message', getterFor('message'));\n // `DOMException.prototype.name` getter\n defineBuiltInAccessor(DOMExceptionPrototype, 'name', getterFor('name'));\n}\n\ndefineProperty(DOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, $DOMException));\n\n// FF36- DOMException is a function, but can't be constructed\nvar INCORRECT_CONSTRUCTOR = fails(function () {\n return !(new NativeDOMException() instanceof Error);\n});\n\n// Safari 10.1 / Chrome 32- / IE8- DOMException.prototype.toString bugs\nvar INCORRECT_TO_STRING = INCORRECT_CONSTRUCTOR || fails(function () {\n return ErrorPrototype.toString !== errorToString || String(new NativeDOMException(1, 2)) !== '2: 1';\n});\n\n// Deno 1.6.3- DOMException.prototype.code just missed\nvar INCORRECT_CODE = INCORRECT_CONSTRUCTOR || fails(function () {\n return new NativeDOMException(1, 'DataCloneError').code !== 25;\n});\n\n// Deno 1.6.3- DOMException constants just missed\nvar MISSED_CONSTANTS = INCORRECT_CONSTRUCTOR\n || NativeDOMException[DATA_CLONE_ERR] !== 25\n || NativeDOMExceptionPrototype[DATA_CLONE_ERR] !== 25;\n\nvar FORCED_CONSTRUCTOR = IS_PURE ? INCORRECT_TO_STRING || INCORRECT_CODE || MISSED_CONSTANTS : INCORRECT_CONSTRUCTOR;\n\n// `DOMException` constructor\n// https://webidl.spec.whatwg.org/#idl-DOMException\n$({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR }, {\n DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException\n});\n\nvar PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION);\nvar PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;\n\nif (INCORRECT_TO_STRING && (IS_PURE || NativeDOMException === PolyfilledDOMException)) {\n defineBuiltIn(PolyfilledDOMExceptionPrototype, 'toString', errorToString);\n}\n\nif (INCORRECT_CODE && DESCRIPTORS && NativeDOMException === PolyfilledDOMException) {\n defineBuiltInAccessor(PolyfilledDOMExceptionPrototype, 'code', createGetterDescriptor(function () {\n return codeFor(anObject(this).name);\n }));\n}\n\n// `DOMException` constants\nfor (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) {\n var constant = DOMExceptionConstants[key];\n var constantName = constant.s;\n var descriptor = createPropertyDescriptor(6, constant.c);\n if (!hasOwn(PolyfilledDOMException, constantName)) {\n defineProperty(PolyfilledDOMException, constantName, descriptor);\n }\n if (!hasOwn(PolyfilledDOMExceptionPrototype, constantName)) {\n defineProperty(PolyfilledDOMExceptionPrototype, constantName, descriptor);\n }\n}\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw new $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","'use strict';\n/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar anInstance = require('../internals/an-instance');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar DOMExceptionConstants = require('../internals/dom-exception-constants');\nvar clearErrorStack = require('../internals/error-stack-clear');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IS_PURE = require('../internals/is-pure');\n\nvar DOM_EXCEPTION = 'DOMException';\nvar Error = getBuiltIn('Error');\nvar NativeDOMException = getBuiltIn(DOM_EXCEPTION);\n\nvar $DOMException = function DOMException() {\n anInstance(this, DOMExceptionPrototype);\n var argumentsLength = arguments.length;\n var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]);\n var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error');\n var that = new NativeDOMException(message, name);\n var error = new Error(message);\n error.name = DOM_EXCEPTION;\n defineProperty(that, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1)));\n inheritIfRequired(that, this, $DOMException);\n return that;\n};\n\nvar DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype;\n\nvar ERROR_HAS_STACK = 'stack' in new Error(DOM_EXCEPTION);\nvar DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2);\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(global, DOM_EXCEPTION);\n\n// Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it\n// https://github.com/Jarred-Sumner/bun/issues/399\nvar BUGGY_DESCRIPTOR = !!descriptor && !(descriptor.writable && descriptor.configurable);\n\nvar FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !BUGGY_DESCRIPTOR && !DOM_EXCEPTION_HAS_STACK;\n\n// `DOMException` constructor patch for `.stack` where it's required\n// https://webidl.spec.whatwg.org/#es-DOMException-specialness\n$({ global: true, constructor: true, forced: IS_PURE || FORCED_CONSTRUCTOR }, { // TODO: fix export logic\n DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException\n});\n\nvar PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION);\nvar PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;\n\nif (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) {\n if (!IS_PURE) {\n defineProperty(PolyfilledDOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, PolyfilledDOMException));\n }\n\n for (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) {\n var constant = DOMExceptionConstants[key];\n var constantName = constant.s;\n if (!hasOwn(PolyfilledDOMException, constantName)) {\n defineProperty(PolyfilledDOMException, constantName, createPropertyDescriptor(6, constant.c));\n }\n }\n}\n","'use strict';\nvar defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar setToStringTag = require('../internals/set-to-string-tag');\n\nvar DOM_EXCEPTION = 'DOMException';\n\n// `DOMException.prototype[@@toStringTag]` property\nsetToStringTag(getBuiltIn(DOM_EXCEPTION), DOM_EXCEPTION);\n","'use strict';\nvar global = require('../internals/global');\n\nmodule.exports = global;\n","'use strict';\nrequire('../modules/es.error.to-string');\nrequire('../modules/es.object.to-string');\nrequire('../modules/web.atob');\nrequire('../modules/web.dom-exception.constructor');\nrequire('../modules/web.dom-exception.stack');\nrequire('../modules/web.dom-exception.to-string-tag');\nvar path = require('../internals/path');\n\nmodule.exports = path.atob;\n","// Hermes doesn't have atob\n// https://github.com/facebook/hermes/issues/1178\nimport 'core-js/stable/atob'\nimport QuilttConnector from './components/QuilttConnector'\n\nexport { QuilttConnector }\nexport default QuilttConnector\n","import {\n ConnectorSDKCallbackMetadata,\n ConnectorSDKCallbacks,\n ConnectorSDKEventType,\n} from '@quiltt/core'\nimport { useCallback, useRef } from 'react'\nimport { Linking } from 'react-native'\nimport { WebView } from 'react-native-webview'\nimport { AndroidSafeAreaView } from './AndroidSafeAreaView'\nimport type { ShouldStartLoadRequest } from 'react-native-webview/lib/WebViewTypes'\nimport { URL } from 'react-native-url-polyfill'\nimport { useQuilttSession } from '@quiltt/react'\n\ntype QuilttConnectorProps = {\n connectorId: string\n connectionId?: string\n oauthRedirectUrl: string\n} & ConnectorSDKCallbacks\n\nexport const QuilttConnector = ({\n connectorId,\n connectionId,\n oauthRedirectUrl,\n onEvent,\n onLoad,\n onExit,\n onExitSuccess,\n onExitAbort,\n onExitError,\n}: QuilttConnectorProps) => {\n const webViewRef = useRef<WebView>(null)\n const { session } = useQuilttSession()\n oauthRedirectUrl = encodeURIComponent(oauthRedirectUrl)\n const connectorUrl = `https://${connectorId}.quiltt.app/?mode=webview&oauth_redirect_url=${oauthRedirectUrl}&sdk=react-native` // @todo append version from package.json\n\n const initInjectedJavaScript = useCallback(() => {\n const script = `\\\n const options = {\\\n source: 'quiltt',\\\n type: 'Options',\\\n token: '${session?.token}',\\\n connectorId: '${connectorId}',\\\n connectionId: '${connectionId}',\\\n };\\\n const compactedOptions = Object.keys(options).reduce((acc, key) => {\\\n if (options[key] !== 'undefined') {\\\n acc[key] = options[key];\\\n }\\\n return acc;\\\n }, {});\\\n window.postMessage(compactedOptions);\\\n `\n webViewRef.current?.injectJavaScript(script)\n }, [connectionId, connectorId, session?.token])\n\n const eventHandler = (request: ShouldStartLoadRequest) => {\n const url = new URL(request.url)\n if (url.protocol === 'quilttconnector:') {\n handleQuilttEvent(url)\n return false\n }\n return true\n }\n\n const clearLocalStorage = () => {\n const script = 'localStorage.clear();'\n webViewRef.current?.injectJavaScript(script)\n }\n\n const handleQuilttEvent = (url: URL) => {\n url.searchParams.delete('source')\n url.searchParams.append('connectorId', connectorId)\n const metadata = Object.fromEntries(url.searchParams) as ConnectorSDKCallbackMetadata\n\n const eventType = url.host\n switch (eventType) {\n case 'Loaded':\n initInjectedJavaScript()\n onEvent?.(ConnectorSDKEventType.Load, metadata)\n onLoad?.(metadata)\n break\n case 'ExitAbort':\n clearLocalStorage()\n onEvent?.(ConnectorSDKEventType.ExitAbort, metadata)\n onExit?.(ConnectorSDKEventType.ExitAbort, metadata)\n onExitAbort?.(metadata)\n break\n case 'ExitError':\n clearLocalStorage()\n onEvent?.(ConnectorSDKEventType.ExitError, metadata)\n onExit?.(ConnectorSDKEventType.ExitError, metadata)\n onExitError?.(metadata)\n break\n case 'ExitSuccess':\n clearLocalStorage()\n onEvent?.(ConnectorSDKEventType.ExitSuccess, metadata)\n onExit?.(ConnectorSDKEventType.ExitSuccess, metadata)\n onExitSuccess?.(metadata)\n break\n case 'OauthRequested':\n Linking.openURL(url.searchParams.get('oauthUrl') as string)\n break\n default:\n console.log('unhandled event', url)\n break\n }\n }\n\n return (\n <AndroidSafeAreaView>\n <WebView\n ref={webViewRef}\n originWhitelist={['https://*', 'quilttconnector://*']} // Maybe relax this to *?\n source={{ uri: connectorUrl }}\n onShouldStartLoadWithRequest={eventHandler}\n javaScriptEnabled\n domStorageEnabled // To enable localStorage in Android webview\n webviewDebuggingEnabled // Not sure if this works\n />\n </AndroidSafeAreaView>\n )\n}\n\nexport default QuilttConnector\n","import { SafeAreaView, StyleSheet, Platform, StatusBar } from 'react-native'\nimport { PropsWithChildren } from 'react'\n\nexport const AndroidSafeAreaView = ({ children }: PropsWithChildren) => (\n <SafeAreaView style={styles.AndroidSafeArea}>{children}</SafeAreaView>\n)\n\nconst styles = StyleSheet.create({\n AndroidSafeArea: {\n flex: 1,\n backgroundColor: 'white',\n paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight : 0,\n },\n})\n"],"mappings":"ooBAAA,IAAAA,GAAAC,EAAA,CAAAC,GAAAC,KAAA,cACA,IAAIC,GAAc,OAAO,UAAY,UAAY,SAAS,IAItDC,GAAa,OAAOD,IAAe,aAAeA,KAAgB,OAEtED,GAAO,QAAU,CACf,IAAKC,GACL,WAAYC,EACd,ICVA,IAAAC,EAAAC,EAAA,CAAAC,GAAAC,KAAA,cACA,IAAIC,GAAe,KAEfC,GAAcD,GAAa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ACF,EAEA,SACE,QAACI,GAAA,CACC,oBAAC,YACC,IAAKZ,EACL,gBAAiB,CAAC,YAAa,qBAAqB,EACpD,OAAQ,CAAE,IAAKE,EAAa,EAC5B,6BAA8BI,GAC9B,kBAAiB,GACjB,kBAAiB,GACjB,wBAAuB,GACzB,EACF,CAEJ,EAEOO,GAAQvB,GDrHf,IAAOwB,GAAQC","names":["require_document_all","__commonJSMin","exports","module","documentAll","IS_HTMLDDA","require_is_callable","__commonJSMin","exports","module","$documentAll","documentAll","argument","require_fails","__commonJSMin","exports","module","exec","error","require_descriptors","__commonJSMin","exports","module","fails","require_global","__commonJSMin","exports","module","check","it","require_is_object","__commonJSMin","exports","module","isCallable","$documentAll","documentAll","it","require_document_create_element","__commonJSMin","exports","module","global","isObject","document","EXISTS","it","require_ie8_dom_define","__commonJSMin","exports","module","DESCRIPTORS","fails","createElement","require_v8_prototype_define_bug","__commonJSMin","exports","module","DESCRIPTORS","fails","require_an_object","__commonJSMin","exports","module","isObject","$String","$TypeError","argument","require_function_bind_native","__commonJSMin","exports","module","fails","test","require_function_call","__commonJSMin","exports","module","NATIVE_BIND","call","require_get_built_in","__commonJSMin","exports","module","global","isCallable","aFunction","argument","namespace","method","require_function_uncurry_this","__commonJSMin","exports","module","NATIVE_BIND","FunctionPrototype","call","uncurryThisWithBind","fn","require_object_is_prototype_of","__commonJSMin","exports","module","uncurryThis","require_engine_user_agent","__commonJSMin","exports","module","require_engine_v8_version","__commonJSMin","exports","module","global","userAgent","process","Deno","versions","v8","match","version","require_symbol_constructor_detection","__commonJSMin","exports","module","V8_VERSION","fails","global","$String","symbol","require_use_symbol_as_uid","__commonJSMin","exports","module","NATIVE_SYMBOL","require_is_symbol","__commonJSMin","exports","module","getBuiltIn","isCallable","isPrototypeOf","USE_SYMBOL_AS_UID","$Object","it","$Symbol","require_try_to_string","__commonJSMin","exports","module","$String","argument","error","require_a_callable","__commonJSMin","exports","module","isCallable","tryToString","$TypeError","argument","require_is_null_or_undefined","__commonJSMin","exports","module","it","require_get_method","__commonJSMin","exports","module","aCallable","isNullOrUndefined","V","P","func","require_ordinary_to_primitive","__commonJSMin","exports","module","call","isCallable","isObject","$TypeError","input","pref","fn","val","require_is_pure","__commonJSMin","exports","module","require_define_global_property","__commonJSMin","exports","module","global","defineProperty","key","value","error","require_shared_store","__commonJSMin","exports","module","global","defineGlobalProperty","SHARED","store","require_shared","__commonJSMin","exports","module","IS_PURE","store","key","value","require_require_object_coercible","__commonJSMin","exports","module","isNullOrUndefined","$TypeError","it","require_to_object","__commonJSMin","exports","module","requireObjectCoercible","$Object","argument","require_has_own_property","__commonJSMin","exports","module","uncurryThis","toObject","hasOwnProperty","it","key","require_uid","__commonJSMin","exports","module","uncurryThis","id","postfix","toString","key","require_well_known_symbol","__commonJSMin","exports","module","global","shared","hasOwn","uid","NATIVE_SYMBOL","USE_SYMBOL_AS_UID","Symbol","WellKnownSymbolsStore","createWellKnownSymbol","name","require_to_primitive","__commonJSMin","exports","module","call","isObject","isSymbol","getMethod","ordinaryToPrimitive","wellKnownSymbol","$TypeError","TO_PRIMITIVE","input","pref","exoticToPrim","result","require_to_property_key","__commonJSMin","exports","module","toPrimitive","isSymbol","argument","key","require_object_define_property","__commonJSMin","exports","DESCRIPTORS","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","anObject","toPropertyKey","$TypeError","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","O","P","Attributes","current","error","require_function_name","__commonJSMin","exports","module","DESCRIPTORS","hasOwn","FunctionPrototype","getDescriptor","EXISTS","PROPER","CONFIGURABLE","require_inspect_source","__commonJSMin","exports","module","uncurryThis","isCallable","store","functionToString","it","require_weak_map_basic_detection","__commonJSMin","exports","module","global","isCallable","WeakMap","require_create_property_descriptor","__commonJSMin","exports","module","bitmap","value","require_create_non_enumerable_property","__commonJSMin","exports","module","DESCRIPTORS","definePropertyModule","createPropertyDescriptor","object","key","value","require_shared_key","__commonJSMin","exports","module","shared","uid","keys","key","require_hidden_keys","__commonJSMin","exports","module","require_internal_state","__commonJSMin","exports","module","NATIVE_WEAK_MAP","global","isObject","createNonEnumerableProperty","hasOwn","shared","sharedKey","hiddenKeys","OBJECT_ALREADY_INITIALIZED","TypeError","WeakMap","set","get","has","enforce","it","getterFor","TYPE","state","store","metadata","STATE","require_make_built_in","__commonJSMin","exports","module","uncurryThis","fails","isCallable","hasOwn","DESCRIPTORS","CONFIGURABLE_FUNCTION_NAME","inspectSource","InternalStateModule","enforceInternalState","getInternalState","$String","defineProperty","stringSlice","replace","join","CONFIGURABLE_LENGTH","TEMPLATE","makeBuiltIn","value","name","options","error","state","require_define_built_in","__commonJSMin","exports","module","isCallable","definePropertyModule","makeBuiltIn","defineGlobalProperty","O","key","value","options","simple","name","error","require_to_string_tag_support","__commonJSMin","exports","module","wellKnownSymbol","TO_STRING_TAG","test","require_classof_raw","__commonJSMin","exports","module","uncurryThis","toString","stringSlice","it","require_classof","__commonJSMin","exports","module","TO_STRING_TAG_SUPPORT","isCallable","classofRaw","wellKnownSymbol","TO_STRING_TAG","$Object","CORRECT_ARGUMENTS","tryGet","it","key","error","O","tag","result","require_to_string","__commonJSMin","exports","module","classof","$String","argument","require_normalize_string_argument","__commonJSMin","exports","module","toString","argument","$default","require_error_to_string","__commonJSMin","exports","module","DESCRIPTORS","fails","anObject","normalizeStringArgument","nativeErrorToString","INCORRECT_TO_STRING","object","O","name","message","require_es_error_to_string","__commonJSMin","defineBuiltIn","errorToString","ErrorPrototype","require_object_to_string","__commonJSMin","exports","module","TO_STRING_TAG_SUPPORT","classof","require_es_object_to_string","__commonJSMin","TO_STRING_TAG_SUPPORT","defineBuiltIn","toString","require_object_property_is_enumerable","__commonJSMin","exports","$propertyIsEnumerable","getOwnPropertyDescriptor","NASHORN_BUG","V","descriptor","require_indexed_object","__commonJSMin","exports","module","uncurryThis","fails","classof","$Object","split","it","require_to_indexed_object","__commonJSMin","exports","module","IndexedObject","requireObjectCoercible","it","require_object_get_own_property_descriptor","__commonJSMin","exports","DESCRIPTORS","call","propertyIsEnumerableModule","createPropertyDescriptor","toIndexedObject","toPropertyKey","hasOwn","IE8_DOM_DEFINE","$getOwnPropertyDescriptor","O","P","error","require_math_trunc","__commonJSMin","exports","module","ceil","floor","x","n","require_to_integer_or_infinity","__commonJSMin","exports","module","trunc","argument","number","require_to_absolute_index","__commonJSMin","exports","module","toIntegerOrInfinity","max","min","index","length","integer","require_to_length","__commonJSMin","exports","module","toIntegerOrInfinity","min","argument","require_length_of_array_like","__commonJSMin","exports","module","toLength","obj","require_array_includes","__commonJSMin","exports","module","toIndexedObject","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","$this","el","fromIndex","O","length","index","value","require_object_keys_internal","__commonJSMin","exports","module","uncurryThis","hasOwn","toIndexedObject","indexOf","hiddenKeys","push","object","names","O","result","key","require_enum_bug_keys","__commonJSMin","exports","module","require_object_get_own_property_names","__commonJSMin","exports","internalObjectKeys","enumBugKeys","hiddenKeys","O","require_object_get_own_property_symbols","__commonJSMin","exports","require_own_keys","__commonJSMin","exports","module","getBuiltIn","uncurryThis","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","anObject","concat","it","keys","getOwnPropertySymbols","require_copy_constructor_properties","__commonJSMin","exports","module","hasOwn","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","target","source","exceptions","keys","defineProperty","getOwnPropertyDescriptor","i","key","require_is_forced","__commonJSMin","exports","module","fails","isCallable","replacement","isForced","feature","detection","value","data","normalize","POLYFILL","NATIVE","string","require_export","__commonJSMin","exports","module","global","getOwnPropertyDescriptor","createNonEnumerableProperty","defineBuiltIn","defineGlobalProperty","copyConstructorProperties","isForced","options","source","TARGET","GLOBAL","STATIC","FORCED","target","key","targetProperty","sourceProperty","descriptor","require_validate_arguments_length","__commonJSMin","exports","module","$TypeError","passed","required","require_base64_map","__commonJSMin","exports","module","itoc","ctoi","index","require_web_atob","__commonJSMin","$","global","getBuiltIn","uncurryThis","call","fails","toString","hasOwn","validateArgumentsLength","ctoi","disallowed","whitespaces","finalEq","$atob","fromCharCode","charAt","replace","exec","NO_SPACES_IGNORE","NO_ENCODING_CHECK","NO_ARG_RECEIVING_CHECK","WRONG_ARITY","data","string","output","position","bc","chr","bs","require_engine_is_node","__commonJSMin","exports","module","global","classof","require_try_node_require","__commonJSMin","exports","module","IS_NODE","name","error","require_object_keys","__commonJSMin","exports","module","internalObjectKeys","enumBugKeys","O","require_object_define_properties","__commonJSMin","exports","DESCRIPTORS","V8_PROTOTYPE_DEFINE_BUG","definePropertyModule","anObject","toIndexedObject","objectKeys","O","Properties","props","keys","length","index","key","require_html","__commonJSMin","exports","module","getBuiltIn","require_object_create","__commonJSMin","exports","module","anObject","definePropertiesModule","enumBugKeys","hiddenKeys","html","documentCreateElement","sharedKey","GT","LT","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","NullProtoObjectViaActiveX","activeXDocument","temp","NullProtoObjectViaIFrame","iframe","JS","iframeDocument","NullProtoObject","error","length","O","Properties","result","require_define_built_in_accessor","__commonJSMin","exports","module","makeBuiltIn","defineProperty","target","name","descriptor","require_an_instance","__commonJSMin","exports","module","isPrototypeOf","$TypeError","it","Prototype","require_dom_exception_constants","__commonJSMin","exports","module","require_error_stack_clear","__commonJSMin","exports","module","uncurryThis","$Error","replace","TEST","arg","V8_OR_CHAKRA_STACK_ENTRY","IS_V8_OR_CHAKRA_STACK","stack","dropEntries","require_web_dom_exception_constructor","__commonJSMin","$","tryNodeRequire","getBuiltIn","fails","create","createPropertyDescriptor","defineProperty","defineBuiltIn","defineBuiltInAccessor","hasOwn","anInstance","anObject","errorToString","normalizeStringArgument","DOMExceptionConstants","clearErrorStack","InternalStateModule","DESCRIPTORS","IS_PURE","DOM_EXCEPTION","DATA_CLONE_ERR","Error","NativeDOMException","MessageChannel","error","NativeDOMExceptionPrototype","ErrorPrototype","setInternalState","getInternalState","HAS_STACK","codeFor","name","$DOMException","DOMExceptionPrototype","argumentsLength","message","code","createGetterDescriptor","get","getterFor","key","INCORRECT_CONSTRUCTOR","INCORRECT_TO_STRING","INCORRECT_CODE","MISSED_CONSTANTS","FORCED_CONSTRUCTOR","PolyfilledDOMException","PolyfilledDOMExceptionPrototype","constant","constantName","descriptor","require_function_uncurry_this_accessor","__commonJSMin","exports","module","uncurryThis","aCallable","object","key","method","error","require_a_possible_prototype","__commonJSMin","exports","module","isCallable","$String","$TypeError","argument","require_object_set_prototype_of","__commonJSMin","exports","module","uncurryThisAccessor","anObject","aPossiblePrototype","CORRECT_SETTER","test","setter","error","O","proto","require_inherit_if_required","__commonJSMin","exports","module","isCallable","isObject","setPrototypeOf","$this","dummy","Wrapper","NewTarget","NewTargetPrototype","require_web_dom_exception_stack","__commonJSMin","$","global","getBuiltIn","createPropertyDescriptor","defineProperty","hasOwn","anInstance","inheritIfRequired","normalizeStringArgument","DOMExceptionConstants","clearErrorStack","DESCRIPTORS","IS_PURE","DOM_EXCEPTION","Error","NativeDOMException","$DOMException","DOMExceptionPrototype","argumentsLength","message","name","that","error","ERROR_HAS_STACK","DOM_EXCEPTION_HAS_STACK","descriptor","BUGGY_DESCRIPTOR","FORCED_CONSTRUCTOR","PolyfilledDOMException","PolyfilledDOMExceptionPrototype","key","constant","constantName","require_set_to_string_tag","__commonJSMin","exports","module","defineProperty","hasOwn","wellKnownSymbol","TO_STRING_TAG","target","TAG","STATIC","require_web_dom_exception_to_string_tag","__commonJSMin","getBuiltIn","setToStringTag","DOM_EXCEPTION","require_path","__commonJSMin","exports","module","global","require_atob","__commonJSMin","exports","module","path","src_exports","__export","QuilttConnector_default","src_default","__toCommonJS","import_atob","import_core","import_react","import_react_native","import_react_native_webview","import_react_native","import_jsx_runtime","AndroidSafeAreaView","children","styles","import_react_native_url_polyfill","import_react","import_jsx_runtime","QuilttConnector","connectorId","connectionId","oauthRedirectUrl","onEvent","onLoad","onExit","onExitSuccess","onExitAbort","onExitError","webViewRef","session","connectorUrl","initInjectedJavaScript","_a","script","eventHandler","request","url","handleQuilttEvent","clearLocalStorage","metadata","AndroidSafeAreaView","QuilttConnector_default","src_default","QuilttConnector_default"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/components/QuilttConnector.tsx","../src/components/AndroidSafeAreaView.tsx"],"sourcesContent":["// Hermes doesn't have atob\n// https://github.com/facebook/hermes/issues/1178\nimport 'core-js/stable/atob'\n// React Native's URL implementation is incomplete\n// https://github.com/facebook/react-native/issues/16434\nimport 'core-js/stable/url'\nimport QuilttConnector from './components/QuilttConnector'\n\nexport { QuilttConnector }\nexport default QuilttConnector\n","import {\n ConnectorSDKCallbackMetadata,\n ConnectorSDKCallbacks,\n ConnectorSDKEventType,\n} from '@quiltt/core'\nimport { useCallback, useRef } from 'react'\nimport { Linking } from 'react-native'\nimport { WebView } from 'react-native-webview'\nimport { AndroidSafeAreaView } from './AndroidSafeAreaView'\nimport type { ShouldStartLoadRequest } from 'react-native-webview/lib/WebViewTypes'\nimport { useQuilttSession } from '@quiltt/react'\n\ntype QuilttConnectorProps = {\n connectorId: string\n connectionId?: string\n oauthRedirectUrl: string\n} & ConnectorSDKCallbacks\n\nexport const QuilttConnector = ({\n connectorId,\n connectionId,\n oauthRedirectUrl,\n onEvent,\n onLoad,\n onExit,\n onExitSuccess,\n onExitAbort,\n onExitError,\n}: QuilttConnectorProps) => {\n const webViewRef = useRef<WebView>(null)\n const { session } = useQuilttSession()\n oauthRedirectUrl = encodeURIComponent(oauthRedirectUrl)\n const connectorUrl = `https://${connectorId}.quiltt.app/?mode=webview&oauth_redirect_url=${oauthRedirectUrl}&sdk=react-native` // @todo append version from package.json\n\n const initInjectedJavaScript = useCallback(() => {\n const script = `\\\n const options = {\\\n source: 'quiltt',\\\n type: 'Options',\\\n token: '${session?.token}',\\\n connectorId: '${connectorId}',\\\n connectionId: '${connectionId}',\\\n };\\\n const compactedOptions = Object.keys(options).reduce((acc, key) => {\\\n if (options[key] !== 'undefined') {\\\n acc[key] = options[key];\\\n }\\\n return acc;\\\n }, {});\\\n window.postMessage(compactedOptions);\\\n `\n webViewRef.current?.injectJavaScript(script)\n }, [connectionId, connectorId, session?.token])\n\n const eventHandler = (request: ShouldStartLoadRequest) => {\n const url = new URL(request.url)\n if (url.protocol === 'quilttconnector:') {\n handleQuilttEvent(url)\n return false\n }\n return true\n }\n\n const clearLocalStorage = () => {\n const script = 'localStorage.clear();'\n webViewRef.current?.injectJavaScript(script)\n }\n\n const handleQuilttEvent = (url: URL) => {\n url.searchParams.delete('source')\n url.searchParams.append('connectorId', connectorId)\n const metadata = Object.fromEntries(url.searchParams) as ConnectorSDKCallbackMetadata\n\n const eventType = url.host\n switch (eventType) {\n case 'Loaded':\n initInjectedJavaScript()\n onEvent?.(ConnectorSDKEventType.Load, metadata)\n onLoad?.(metadata)\n break\n case 'ExitAbort':\n clearLocalStorage()\n onEvent?.(ConnectorSDKEventType.ExitAbort, metadata)\n onExit?.(ConnectorSDKEventType.ExitAbort, metadata)\n onExitAbort?.(metadata)\n break\n case 'ExitError':\n clearLocalStorage()\n onEvent?.(ConnectorSDKEventType.ExitError, metadata)\n onExit?.(ConnectorSDKEventType.ExitError, metadata)\n onExitError?.(metadata)\n break\n case 'ExitSuccess':\n clearLocalStorage()\n onEvent?.(ConnectorSDKEventType.ExitSuccess, metadata)\n onExit?.(ConnectorSDKEventType.ExitSuccess, metadata)\n onExitSuccess?.(metadata)\n break\n case 'OauthRequested':\n Linking.openURL(url.searchParams.get('oauthUrl') as string)\n break\n default:\n console.log('unhandled event', url)\n break\n }\n }\n\n return (\n <AndroidSafeAreaView>\n <WebView\n ref={webViewRef}\n originWhitelist={['https://*', 'quilttconnector://*']} // Maybe relax this to *?\n source={{ uri: connectorUrl }}\n onShouldStartLoadWithRequest={eventHandler}\n javaScriptEnabled\n domStorageEnabled // To enable localStorage in Android webview\n webviewDebuggingEnabled // Not sure if this works\n />\n </AndroidSafeAreaView>\n )\n}\n\nexport default QuilttConnector\n","import { SafeAreaView, StyleSheet, Platform, StatusBar } from 'react-native'\nimport { PropsWithChildren } from 'react'\n\nexport const AndroidSafeAreaView = ({ children }: PropsWithChildren) => (\n <SafeAreaView style={styles.AndroidSafeArea}>{children}</SafeAreaView>\n)\n\nconst styles = StyleSheet.create({\n AndroidSafeArea: {\n flex: 1,\n backgroundColor: 'white',\n paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight : 0,\n },\n})\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,EAAA,YAAAC,IAAA,eAAAC,EAAAJ,GAEA,IAAAK,EAAO,+BAGPC,EAAO,8BCLP,IAAAC,EAIO,wBACPC,EAAoC,iBACpCC,EAAwB,wBACxBC,EAAwB,gCCPxB,IAAAC,EAA8D,wBAI5DC,EAAA,6BADWC,EAAsB,CAAC,CAAE,SAAAC,CAAS,OAC7C,OAAC,gBAAa,MAAOC,EAAO,gBAAkB,SAAAD,EAAS,EAGnDC,EAAS,aAAW,OAAO,CAC/B,gBAAiB,CACf,KAAM,EACN,gBAAiB,QACjB,WAAY,WAAS,KAAO,UAAY,YAAU,cAAgB,CACpE,CACF,CAAC,EDHD,IAAAC,EAAiC,yBAmG3BC,EAAA,6BA3FOC,EAAkB,CAAC,CAC9B,YAAAC,EACA,aAAAC,EACA,iBAAAC,EACA,QAAAC,EACA,OAAAC,EACA,OAAAC,EACA,cAAAC,EACA,YAAAC,EACA,YAAAC,CACF,IAA4B,CAC1B,IAAMC,KAAa,UAAgB,IAAI,EACjC,CAAE,QAAAC,CAAQ,KAAI,oBAAiB,EACrCR,EAAmB,mBAAmBA,CAAgB,EACtD,IAAMS,EAAe,WAAWX,iDAA2DE,qBAErFU,KAAyB,eAAY,IAAM,CAlCnD,IAAAC,EAmCI,IAAMC,EAAS,2FAIDJ,GAAA,YAAAA,EAAS,gCACHV,6BACCC,8PAUrBY,EAAAJ,EAAW,UAAX,MAAAI,EAAoB,iBAAiBC,EACvC,EAAG,CAACb,EAAcD,EAAaU,GAAA,YAAAA,EAAS,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AiB,GACjB,kBAAiB,GACjB,wBAAuB,GACzB,EACF,CAEJ,EAEOO,EAAQvB,EDjHf,IAAOwB,EAAQC","names":["src_exports","__export","QuilttConnector_default","src_default","__toCommonJS","import_atob","import_url","import_core","import_react","import_react_native","import_react_native_webview","import_react_native","import_jsx_runtime","AndroidSafeAreaView","children","styles","import_react","import_jsx_runtime","QuilttConnector","connectorId","connectionId","oauthRedirectUrl","onEvent","onLoad","onExit","onExitSuccess","onExitAbort","onExitError","webViewRef","session","connectorUrl","initInjectedJavaScript","_a","script","eventHandler","request","url","handleQuilttEvent","clearLocalStorage","metadata","AndroidSafeAreaView","QuilttConnector_default","src_default","QuilttConnector_default"]}
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- var Yn=Object.create;var We=Object.defineProperty;var zn=Object.getOwnPropertyDescriptor;var Xn=Object.getOwnPropertyNames;var Qn=Object.getPrototypeOf,Jn=Object.prototype.hasOwnProperty;var a=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Zn=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Xn(e))!Jn.call(r,n)&&n!==t&&We(r,n,{get:()=>e[n],enumerable:!(i=zn(e,n))||i.enumerable});return r};var ro=(r,e,t)=>(t=r!=null?Yn(Qn(r)):{},Zn(e||!r||!r.__esModule?We(t,"default",{value:r,enumerable:!0}):t,r));var mr=a((pl,He)=>{"use strict";var hr=typeof document=="object"&&document.all,eo=typeof hr=="undefined"&&hr!==void 0;He.exports={all:hr,IS_HTMLDDA:eo}});var l=a((yl,ze)=>{"use strict";var Ye=mr(),to=Ye.all;ze.exports=Ye.IS_HTMLDDA?function(r){return typeof r=="function"||r===to}:function(r){return typeof r=="function"}});var y=a((dl,Xe)=>{"use strict";Xe.exports=function(r){try{return!!r()}catch(e){return!0}}});var d=a((ql,Qe)=>{"use strict";var io=y();Qe.exports=!io(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var v=a((Je,Ze)=>{"use strict";var H=function(r){return r&&r.Math===Math&&r};Ze.exports=H(typeof globalThis=="object"&&globalThis)||H(typeof window=="object"&&window)||H(typeof self=="object"&&self)||H(typeof global=="object"&&global)||function(){return this}()||Je||Function("return this")()});var I=a((gl,tt)=>{"use strict";var rt=l(),et=mr(),ao=et.all;tt.exports=et.IS_HTMLDDA?function(r){return typeof r=="object"?r!==null:rt(r)||r===ao}:function(r){return typeof r=="object"?r!==null:rt(r)}});var Rr=a((Ol,at)=>{"use strict";var no=v(),it=I(),Tr=no.document,oo=it(Tr)&&it(Tr.createElement);at.exports=function(r){return oo?Tr.createElement(r):{}}});var Ir=a((Sl,nt)=>{"use strict";var uo=d(),co=y(),so=Rr();nt.exports=!uo&&!co(function(){return Object.defineProperty(so("div"),"a",{get:function(){return 7}}).a!==7})});var _r=a((bl,ot)=>{"use strict";var vo=d(),lo=y();ot.exports=vo&&lo(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var T=a((El,ut)=>{"use strict";var fo=I(),po=String,yo=TypeError;ut.exports=function(r){if(fo(r))return r;throw new yo(po(r)+" is not an object")}});var wr=a((hl,ct)=>{"use strict";var qo=y();ct.exports=!qo(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")})});var x=a((ml,st)=>{"use strict";var go=wr(),Y=Function.prototype.call;st.exports=go?Y.bind(Y):function(){return Y.apply(Y,arguments)}});var R=a((Tl,vt)=>{"use strict";var Cr=v(),Oo=l(),So=function(r){return Oo(r)?r:void 0};vt.exports=function(r,e){return arguments.length<2?So(Cr[r]):Cr[r]&&Cr[r][e]}});var f=a((Rl,pt)=>{"use strict";var lt=wr(),ft=Function.prototype,Pr=ft.call,bo=lt&&ft.bind.bind(Pr,Pr);pt.exports=lt?bo:function(r){return function(){return Pr.apply(r,arguments)}}});var Dr=a((Il,yt)=>{"use strict";var Eo=f();yt.exports=Eo({}.isPrototypeOf)});var qt=a((_l,dt)=>{"use strict";dt.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""});var mt=a((wl,ht)=>{"use strict";var Et=v(),xr=qt(),gt=Et.process,Ot=Et.Deno,St=gt&&gt.versions||Ot&&Ot.version,bt=St&&St.v8,O,z;bt&&(O=bt.split("."),z=O[0]>0&&O[0]<4?1:+(O[0]+O[1]));!z&&xr&&(O=xr.match(/Edge\/(\d+)/),(!O||O[1]>=74)&&(O=xr.match(/Chrome\/(\d+)/),O&&(z=+O[1])));ht.exports=z});var Ar=a((Cl,Rt)=>{"use strict";var Tt=mt(),ho=y(),mo=v(),To=mo.String;Rt.exports=!!Object.getOwnPropertySymbols&&!ho(function(){var r=Symbol("symbol detection");return!To(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&Tt&&Tt<41})});var Nr=a((Pl,It)=>{"use strict";var Ro=Ar();It.exports=Ro&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Mr=a((Dl,_t)=>{"use strict";var Io=R(),_o=l(),wo=Dr(),Co=Nr(),Po=Object;_t.exports=Co?function(r){return typeof r=="symbol"}:function(r){var e=Io("Symbol");return _o(e)&&wo(e.prototype,Po(r))}});var Ct=a((xl,wt)=>{"use strict";var Do=String;wt.exports=function(r){try{return Do(r)}catch(e){return"Object"}}});var jr=a((Al,Pt)=>{"use strict";var xo=l(),Ao=Ct(),No=TypeError;Pt.exports=function(r){if(xo(r))return r;throw new No(Ao(r)+" is not a function")}});var Lr=a((Nl,Dt)=>{"use strict";Dt.exports=function(r){return r==null}});var At=a((Ml,xt)=>{"use strict";var Mo=jr(),jo=Lr();xt.exports=function(r,e){var t=r[e];return jo(t)?void 0:Mo(t)}});var Mt=a((jl,Nt)=>{"use strict";var Fr=x(),Gr=l(),Ur=I(),Lo=TypeError;Nt.exports=function(r,e){var t,i;if(e==="string"&&Gr(t=r.toString)&&!Ur(i=Fr(t,r))||Gr(t=r.valueOf)&&!Ur(i=Fr(t,r))||e!=="string"&&Gr(t=r.toString)&&!Ur(i=Fr(t,r)))return i;throw new Lo("Can't convert object to primitive value")}});var X=a((Ll,jt)=>{"use strict";jt.exports=!1});var Q=a((Fl,Ft)=>{"use strict";var Lt=v(),Fo=Object.defineProperty;Ft.exports=function(r,e){try{Fo(Lt,r,{value:e,configurable:!0,writable:!0})}catch(t){Lt[r]=e}return e}});var J=a((Gl,Ut)=>{"use strict";var Go=v(),Uo=Q(),Gt="__core-js_shared__",Bo=Go[Gt]||Uo(Gt,{});Ut.exports=Bo});var Br=a((Ul,kt)=>{"use strict";var ko=X(),Bt=J();(kt.exports=function(r,e){return Bt[r]||(Bt[r]=e!==void 0?e:{})})("versions",[]).push({version:"3.33.2",mode:ko?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"})});var kr=a((Bl,Kt)=>{"use strict";var Ko=Lr(),$o=TypeError;Kt.exports=function(r){if(Ko(r))throw new $o("Can't call method on "+r);return r}});var Vt=a((kl,$t)=>{"use strict";var Vo=kr(),Wo=Object;$t.exports=function(r){return Wo(Vo(r))}});var q=a((Kl,Wt)=>{"use strict";var Ho=f(),Yo=Vt(),zo=Ho({}.hasOwnProperty);Wt.exports=Object.hasOwn||function(e,t){return zo(Yo(e),t)}});var Kr=a(($l,Ht)=>{"use strict";var Xo=f(),Qo=0,Jo=Math.random(),Zo=Xo(1 .toString);Ht.exports=function(r){return"Symbol("+(r===void 0?"":r)+")_"+Zo(++Qo+Jo,36)}});var A=a((Vl,zt)=>{"use strict";var ru=v(),eu=Br(),Yt=q(),tu=Kr(),iu=Ar(),au=Nr(),C=ru.Symbol,$r=eu("wks"),nu=au?C.for||C:C&&C.withoutSetter||tu;zt.exports=function(r){return Yt($r,r)||($r[r]=iu&&Yt(C,r)?C[r]:nu("Symbol."+r)),$r[r]}});var Zt=a((Wl,Jt)=>{"use strict";var ou=x(),Xt=I(),Qt=Mr(),uu=At(),cu=Mt(),su=A(),vu=TypeError,lu=su("toPrimitive");Jt.exports=function(r,e){if(!Xt(r)||Qt(r))return r;var t=uu(r,lu),i;if(t){if(e===void 0&&(e="default"),i=ou(t,r,e),!Xt(i)||Qt(i))return i;throw new vu("Can't convert object to primitive value")}return e===void 0&&(e="number"),cu(r,e)}});var Vr=a((Hl,ri)=>{"use strict";var fu=Zt(),pu=Mr();ri.exports=function(r){var e=fu(r,"string");return pu(e)?e:e+""}});var h=a(ti=>{"use strict";var yu=d(),du=Ir(),qu=_r(),Z=T(),ei=Vr(),gu=TypeError,Wr=Object.defineProperty,Ou=Object.getOwnPropertyDescriptor,Hr="enumerable",Yr="configurable",zr="writable";ti.f=yu?qu?function(e,t,i){if(Z(e),t=ei(t),Z(i),typeof e=="function"&&t==="prototype"&&"value"in i&&zr in i&&!i[zr]){var n=Ou(e,t);n&&n[zr]&&(e[t]=i.value,i={configurable:Yr in i?i[Yr]:n[Yr],enumerable:Hr in i?i[Hr]:n[Hr],writable:!1})}return Wr(e,t,i)}:Wr:function(e,t,i){if(Z(e),t=ei(t),Z(i),du)try{return Wr(e,t,i)}catch(n){}if("get"in i||"set"in i)throw new gu("Accessors not supported");return"value"in i&&(e[t]=i.value),e}});var ni=a((zl,ai)=>{"use strict";var Xr=d(),Su=q(),ii=Function.prototype,bu=Xr&&Object.getOwnPropertyDescriptor,Qr=Su(ii,"name"),Eu=Qr&&function(){}.name==="something",hu=Qr&&(!Xr||Xr&&bu(ii,"name").configurable);ai.exports={EXISTS:Qr,PROPER:Eu,CONFIGURABLE:hu}});var ui=a((Xl,oi)=>{"use strict";var mu=f(),Tu=l(),Jr=J(),Ru=mu(Function.toString);Tu(Jr.inspectSource)||(Jr.inspectSource=function(r){return Ru(r)});oi.exports=Jr.inspectSource});var vi=a((Ql,si)=>{"use strict";var Iu=v(),_u=l(),ci=Iu.WeakMap;si.exports=_u(ci)&&/native code/.test(String(ci))});var N=a((Jl,li)=>{"use strict";li.exports=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}});var Zr=a((Zl,fi)=>{"use strict";var wu=d(),Cu=h(),Pu=N();fi.exports=wu?function(r,e,t){return Cu.f(r,e,Pu(1,t))}:function(r,e,t){return r[e]=t,r}});var re=a((rf,yi)=>{"use strict";var Du=Br(),xu=Kr(),pi=Du("keys");yi.exports=function(r){return pi[r]||(pi[r]=xu(r))}});var rr=a((ef,di)=>{"use strict";di.exports={}});var ae=a((tf,Oi)=>{"use strict";var Au=vi(),gi=v(),Nu=I(),Mu=Zr(),ee=q(),te=J(),ju=re(),Lu=rr(),qi="Object already initialized",ie=gi.TypeError,Fu=gi.WeakMap,er,M,tr,Gu=function(r){return tr(r)?M(r):er(r,{})},Uu=function(r){return function(e){var t;if(!Nu(e)||(t=M(e)).type!==r)throw new ie("Incompatible receiver, "+r+" required");return t}};Au||te.state?(S=te.state||(te.state=new Fu),S.get=S.get,S.has=S.has,S.set=S.set,er=function(r,e){if(S.has(r))throw new ie(qi);return e.facade=r,S.set(r,e),e},M=function(r){return S.get(r)||{}},tr=function(r){return S.has(r)}):(_=ju("state"),Lu[_]=!0,er=function(r,e){if(ee(r,_))throw new ie(qi);return e.facade=r,Mu(r,_,e),e},M=function(r){return ee(r,_)?r[_]:{}},tr=function(r){return ee(r,_)});var S,_;Oi.exports={set:er,get:M,has:tr,enforce:Gu,getterFor:Uu}});var ue=a((af,Ei)=>{"use strict";var oe=f(),Bu=y(),ku=l(),ir=q(),ne=d(),Ku=ni().CONFIGURABLE,$u=ui(),bi=ae(),Vu=bi.enforce,Wu=bi.get,Si=String,ar=Object.defineProperty,Hu=oe("".slice),Yu=oe("".replace),zu=oe([].join),Xu=ne&&!Bu(function(){return ar(function(){},"length",{value:8}).length!==8}),Qu=String(String).split("String"),Ju=Ei.exports=function(r,e,t){Hu(Si(e),0,7)==="Symbol("&&(e="["+Yu(Si(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!ir(r,"name")||Ku&&r.name!==e)&&(ne?ar(r,"name",{value:e,configurable:!0}):r.name=e),Xu&&t&&ir(t,"arity")&&r.length!==t.arity&&ar(r,"length",{value:t.arity});try{t&&ir(t,"constructor")&&t.constructor?ne&&ar(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(n){}var i=Vu(r);return ir(i,"source")||(i.source=zu(Qu,typeof e=="string"?e:"")),r};Function.prototype.toString=Ju(function(){return ku(this)&&Wu(this).source||$u(this)},"toString")});var j=a((nf,hi)=>{"use strict";var Zu=l(),rc=h(),ec=ue(),tc=Q();hi.exports=function(r,e,t,i){i||(i={});var n=i.enumerable,o=i.name!==void 0?i.name:e;if(Zu(t)&&ec(t,o,i),i.global)n?r[e]=t:tc(e,t);else{try{i.unsafe?r[e]&&(n=!0):delete r[e]}catch(u){}n?r[e]=t:rc.f(r,e,{value:t,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return r}});var nr=a((of,Ti)=>{"use strict";var ic=A(),ac=ic("toStringTag"),mi={};mi[ac]="z";Ti.exports=String(mi)==="[object z]"});var or=a((uf,Ii)=>{"use strict";var Ri=f(),nc=Ri({}.toString),oc=Ri("".slice);Ii.exports=function(r){return oc(nc(r),8,-1)}});var ce=a((cf,_i)=>{"use strict";var uc=nr(),cc=l(),ur=or(),sc=A(),vc=sc("toStringTag"),lc=Object,fc=ur(function(){return arguments}())==="Arguments",pc=function(r,e){try{return r[e]}catch(t){}};_i.exports=uc?ur:function(r){var e,t,i;return r===void 0?"Undefined":r===null?"Null":typeof(t=pc(e=lc(r),vc))=="string"?t:fc?ur(e):(i=ur(e))==="Object"&&cc(e.callee)?"Arguments":i}});var se=a((sf,wi)=>{"use strict";var yc=ce(),dc=String;wi.exports=function(r){if(yc(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return dc(r)}});var cr=a((vf,Ci)=>{"use strict";var qc=se();Ci.exports=function(r,e){return r===void 0?arguments.length<2?"":e:qc(r)}});var ve=a((lf,Di)=>{"use strict";var gc=d(),Oc=y(),Sc=T(),Pi=cr(),sr=Error.prototype.toString,bc=Oc(function(){if(gc){var r=Object.create(Object.defineProperty({},"name",{get:function(){return this===r}}));if(sr.call(r)!=="true")return!0}return sr.call({message:1,name:2})!=="2: 1"||sr.call({})!=="Error"});Di.exports=bc?function(){var e=Sc(this),t=Pi(e.name,"Error"),i=Pi(e.message);return t?i?t+": "+i:t:i}:sr});var Ni=a(()=>{"use strict";var Ec=j(),xi=ve(),Ai=Error.prototype;Ai.toString!==xi&&Ec(Ai,"toString",xi)});var ji=a((yf,Mi)=>{"use strict";var hc=nr(),mc=ce();Mi.exports=hc?{}.toString:function(){return"[object "+mc(this)+"]"}});var Li=a(()=>{"use strict";var Tc=nr(),Rc=j(),Ic=ji();Tc||Rc(Object.prototype,"toString",Ic,{unsafe:!0})});var Bi=a(Ui=>{"use strict";var Fi={}.propertyIsEnumerable,Gi=Object.getOwnPropertyDescriptor,_c=Gi&&!Fi.call({1:2},1);Ui.f=_c?function(e){var t=Gi(this,e);return!!t&&t.enumerable}:Fi});var Ki=a((Of,ki)=>{"use strict";var wc=f(),Cc=y(),Pc=or(),le=Object,Dc=wc("".split);ki.exports=Cc(function(){return!le("z").propertyIsEnumerable(0)})?function(r){return Pc(r)==="String"?Dc(r,""):le(r)}:le});var L=a((Sf,$i)=>{"use strict";var xc=Ki(),Ac=kr();$i.exports=function(r){return xc(Ac(r))}});var fe=a(Wi=>{"use strict";var Nc=d(),Mc=x(),jc=Bi(),Lc=N(),Fc=L(),Gc=Vr(),Uc=q(),Bc=Ir(),Vi=Object.getOwnPropertyDescriptor;Wi.f=Nc?Vi:function(e,t){if(e=Fc(e),t=Gc(t),Bc)try{return Vi(e,t)}catch(i){}if(Uc(e,t))return Lc(!Mc(jc.f,e,t),e[t])}});var Yi=a((Ef,Hi)=>{"use strict";var kc=Math.ceil,Kc=Math.floor;Hi.exports=Math.trunc||function(e){var t=+e;return(t>0?Kc:kc)(t)}});var pe=a((hf,zi)=>{"use strict";var $c=Yi();zi.exports=function(r){var e=+r;return e!==e||e===0?0:$c(e)}});var Qi=a((mf,Xi)=>{"use strict";var Vc=pe(),Wc=Math.max,Hc=Math.min;Xi.exports=function(r,e){var t=Vc(r);return t<0?Wc(t+e,0):Hc(t,e)}});var Zi=a((Tf,Ji)=>{"use strict";var Yc=pe(),zc=Math.min;Ji.exports=function(r){return r>0?zc(Yc(r),9007199254740991):0}});var ea=a((Rf,ra)=>{"use strict";var Xc=Zi();ra.exports=function(r){return Xc(r.length)}});var aa=a((If,ia)=>{"use strict";var Qc=L(),Jc=Qi(),Zc=ea(),ta=function(r){return function(e,t,i){var n=Qc(e),o=Zc(n),u=Jc(i,o),c;if(r&&t!==t){for(;o>u;)if(c=n[u++],c!==c)return!0}else for(;o>u;u++)if((r||u in n)&&n[u]===t)return r||u||0;return!r&&-1}};ia.exports={includes:ta(!0),indexOf:ta(!1)}});var de=a((_f,oa)=>{"use strict";var rs=f(),ye=q(),es=L(),ts=aa().indexOf,is=rr(),na=rs([].push);oa.exports=function(r,e){var t=es(r),i=0,n=[],o;for(o in t)!ye(is,o)&&ye(t,o)&&na(n,o);for(;e.length>i;)ye(t,o=e[i++])&&(~ts(n,o)||na(n,o));return n}});var vr=a((wf,ua)=>{"use strict";ua.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var sa=a(ca=>{"use strict";var as=de(),ns=vr(),os=ns.concat("length","prototype");ca.f=Object.getOwnPropertyNames||function(e){return as(e,os)}});var la=a(va=>{"use strict";va.f=Object.getOwnPropertySymbols});var pa=a((Df,fa)=>{"use strict";var us=R(),cs=f(),ss=sa(),vs=la(),ls=T(),fs=cs([].concat);fa.exports=us("Reflect","ownKeys")||function(e){var t=ss.f(ls(e)),i=vs.f;return i?fs(t,i(e)):t}});var qa=a((xf,da)=>{"use strict";var ya=q(),ps=pa(),ys=fe(),ds=h();da.exports=function(r,e,t){for(var i=ps(e),n=ds.f,o=ys.f,u=0;u<i.length;u++){var c=i[u];!ya(r,c)&&!(t&&ya(t,c))&&n(r,c,o(e,c))}}});var Oa=a((Af,ga)=>{"use strict";var qs=y(),gs=l(),Os=/#|\.prototype\./,F=function(r,e){var t=bs[Ss(r)];return t===hs?!0:t===Es?!1:gs(e)?qs(e):!!e},Ss=F.normalize=function(r){return String(r).replace(Os,".").toLowerCase()},bs=F.data={},Es=F.NATIVE="N",hs=F.POLYFILL="P";ga.exports=F});var lr=a((Nf,Sa)=>{"use strict";var qe=v(),ms=fe().f,Ts=Zr(),Rs=j(),Is=Q(),_s=qa(),ws=Oa();Sa.exports=function(r,e){var t=r.target,i=r.global,n=r.stat,o,u,c,g,E,b;if(i?u=qe:n?u=qe[t]||Is(t,{}):u=(qe[t]||{}).prototype,u)for(c in e){if(E=e[c],r.dontCallGetSet?(b=ms(u,c),g=b&&b.value):g=u[c],o=ws(i?c:t+(n?".":"#")+c,r.forced),!o&&g!==void 0){if(typeof E==typeof g)continue;_s(E,g)}(r.sham||g&&g.sham)&&Ts(E,"sham",!0),Rs(u,c,E,r)}}});var Ea=a((Mf,ba)=>{"use strict";var Cs=TypeError;ba.exports=function(r,e){if(r<e)throw new Cs("Not enough arguments");return r}});var Ra=a((jf,Ta)=>{"use strict";var ha="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ma={};for(G=0;G<66;G++)ma[ha.charAt(G)]=G;var G;Ta.exports={itoc:ha,ctoi:ma}});var Da=a(()=>{"use strict";var Ps=lr(),Ds=v(),Ca=R(),Oe=f(),xs=x(),Se=y(),As=se(),Ns=q(),Ms=Ea(),ge=Ra().ctoi,Pa=/[^\d+/a-z]/i,js=/[\t\n\f\r ]+/g,Ls=/[=]{1,2}$/,U=Ca("atob"),Fs=String.fromCharCode,Gs=Oe("".charAt),Ia=Oe("".replace),Us=Oe(Pa.exec),be=Se(function(){return U(" ")!==""}),Ee=!Se(function(){U("a")}),_a=!be&&!Ee&&!Se(function(){U()}),wa=!be&&!Ee&&U.length!==1;Ps({global:!0,bind:!0,enumerable:!0,forced:be||Ee||_a||wa},{atob:function(e){if(Ms(arguments.length,1),_a||wa)return xs(U,Ds,e);var t=Ia(As(e),js,""),i="",n=0,o=0,u,c;if(t.length%4===0&&(t=Ia(t,Ls,"")),t.length%4===1||Us(Pa,t))throw new(Ca("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;u=Gs(t,n++);)Ns(ge,u)&&(c=o%4?c*64+ge[u]:ge[u],o++%4&&(i+=Fs(255&c>>(-2*o&6))));return i}})});var Aa=a((Gf,xa)=>{"use strict";var Bs=v(),ks=or();xa.exports=ks(Bs.process)==="process"});var Ma=a((Uf,Na)=>{"use strict";var Ks=Aa();Na.exports=function(r){try{if(Ks)return Function('return require("'+r+'")')()}catch(e){}}});var La=a((Bf,ja)=>{"use strict";var $s=de(),Vs=vr();ja.exports=Object.keys||function(e){return $s(e,Vs)}});var Ga=a(Fa=>{"use strict";var Ws=d(),Hs=_r(),Ys=h(),zs=T(),Xs=L(),Qs=La();Fa.f=Ws&&!Hs?Object.defineProperties:function(e,t){zs(e);for(var i=Xs(t),n=Qs(t),o=n.length,u=0,c;o>u;)Ys.f(e,c=n[u++],i[c]);return e}});var Ba=a((Kf,Ua)=>{"use strict";var Js=R();Ua.exports=Js("document","documentElement")});var za=a(($f,Ya)=>{"use strict";var Zs=T(),rv=Ga(),ka=vr(),ev=rr(),tv=Ba(),iv=Rr(),av=re(),Ka=">",$a="<",me="prototype",Te="script",Wa=av("IE_PROTO"),he=function(){},Ha=function(r){return $a+Te+Ka+r+$a+"/"+Te+Ka},Va=function(r){r.write(Ha("")),r.close();var e=r.parentWindow.Object;return r=null,e},nv=function(){var r=iv("iframe"),e="java"+Te+":",t;return r.style.display="none",tv.appendChild(r),r.src=String(e),t=r.contentWindow.document,t.open(),t.write(Ha("document.F=Object")),t.close(),t.F},fr,pr=function(){try{fr=new ActiveXObject("htmlfile")}catch(e){}pr=typeof document!="undefined"?document.domain&&fr?Va(fr):nv():Va(fr);for(var r=ka.length;r--;)delete pr[me][ka[r]];return pr()};ev[Wa]=!0;Ya.exports=Object.create||function(e,t){var i;return e!==null?(he[me]=Zs(e),i=new he,he[me]=null,i[Wa]=e):i=pr(),t===void 0?i:rv.f(i,t)}});var Ja=a((Vf,Qa)=>{"use strict";var Xa=ue(),ov=h();Qa.exports=function(r,e,t){return t.get&&Xa(t.get,e,{getter:!0}),t.set&&Xa(t.set,e,{setter:!0}),ov.f(r,e,t)}});var Re=a((Wf,Za)=>{"use strict";var uv=Dr(),cv=TypeError;Za.exports=function(r,e){if(uv(e,r))return r;throw new cv("Incorrect invocation")}});var Ie=a((Hf,rn)=>{"use strict";rn.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}});var _e=a((Yf,an)=>{"use strict";var sv=f(),en=Error,vv=sv("".replace),lv=function(r){return String(new en(r).stack)}("zxcasd"),tn=/\n\s*at [^:]*:[^\n]*/,fv=tn.test(lv);an.exports=function(r,e){if(fv&&typeof r=="string"&&!en.prepareStackTrace)for(;e--;)r=vv(r,tn,"");return r}});var dn=a(()=>{"use strict";var pv=lr(),yv=Ma(),qr=R(),Ae=y(),dv=za(),Ne=N(),gr=h().f,qv=j(),yr=Ja(),dr=q(),gv=Re(),Ov=T(),un=ve(),nn=cr(),P=Ie(),Sv=_e(),cn=ae(),Me=d(),sn=X(),D="DOMException",xe="DATA_CLONE_ERR",Sr=qr("Error"),m=qr(D)||function(){try{var r=qr("MessageChannel")||yv("worker_threads").MessageChannel;new r().port1.postMessage(new WeakMap)}catch(e){if(e.name===xe&&e.code===25)return e.constructor}}(),bv=m&&m.prototype,vn=Sr.prototype,Ev=cn.set,hv=cn.getterFor(D),mv="stack"in new Sr(D),ln=function(r){return dr(P,r)&&P[r].m?P[r].c:0},je=function(){gv(this,k);var e=arguments.length,t=nn(e<1?void 0:arguments[0]),i=nn(e<2?void 0:arguments[1],"Error"),n=ln(i);if(Ev(this,{type:D,name:i,message:t,code:n}),Me||(this.name=i,this.message=t,this.code=n),mv){var o=new Sr(t);o.name=D,gr(this,"stack",Ne(1,Sv(o.stack,1)))}},k=je.prototype=dv(vn),fn=function(r){return{enumerable:!0,configurable:!0,get:r}},we=function(r){return fn(function(){return hv(this)[r]})};Me&&(yr(k,"code",we("code")),yr(k,"message",we("message")),yr(k,"name",we("name")));gr(k,"constructor",Ne(1,je));var br=Ae(function(){return!(new m instanceof Sr)}),pn=br||Ae(function(){return vn.toString!==un||String(new m(1,2))!=="2: 1"}),yn=br||Ae(function(){return new m(1,"DataCloneError").code!==25}),Tv=br||m[xe]!==25||bv[xe]!==25,on=sn?pn||yn||Tv:br;pv({global:!0,constructor:!0,forced:on},{DOMException:on?je:m});var K=qr(D),Or=K.prototype;pn&&(sn||m===K)&&qv(Or,"toString",un);yn&&Me&&m===K&&yr(Or,"code",fn(function(){return ln(Ov(this).name)}));for(Ce in P)dr(P,Ce)&&(Pe=P[Ce],B=Pe.s,De=Ne(6,Pe.c),dr(K,B)||gr(K,B,De),dr(Or,B)||gr(Or,B,De));var Pe,B,De,Ce});var gn=a((Qf,qn)=>{"use strict";var Rv=f(),Iv=jr();qn.exports=function(r,e,t){try{return Rv(Iv(Object.getOwnPropertyDescriptor(r,e)[t]))}catch(i){}}});var Sn=a((Jf,On)=>{"use strict";var _v=l(),wv=String,Cv=TypeError;On.exports=function(r){if(typeof r=="object"||_v(r))return r;throw new Cv("Can't set "+wv(r)+" as a prototype")}});var En=a((Zf,bn)=>{"use strict";var Pv=gn(),Dv=T(),xv=Sn();bn.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,e={},t;try{t=Pv(Object.prototype,"__proto__","set"),t(e,[]),r=e instanceof Array}catch(i){}return function(n,o){return Dv(n),xv(o),r?t(n,o):n.__proto__=o,n}}():void 0)});var Tn=a((rp,mn)=>{"use strict";var Av=l(),Nv=I(),hn=En();mn.exports=function(r,e,t){var i,n;return hn&&Av(i=e.constructor)&&i!==t&&Nv(n=i.prototype)&&n!==t.prototype&&hn(r,n),r}});var Dn=a(()=>{"use strict";var Mv=lr(),jv=v(),$e=R(),ke=N(),Ke=h().f,Rn=q(),Lv=Re(),Fv=Tn(),In=cr(),Le=Ie(),Gv=_e(),Uv=d(),Cn=X(),V="DOMException",Pn=$e("Error"),W=$e(V),Ve=function(){Lv(this,Bv);var e=arguments.length,t=In(e<1?void 0:arguments[0]),i=In(e<2?void 0:arguments[1],"Error"),n=new W(t,i),o=new Pn(t);return o.name=V,Ke(n,"stack",ke(1,Gv(o.stack,1))),Fv(n,this,Ve),n},Bv=Ve.prototype=W.prototype,kv="stack"in new Pn(V),Kv="stack"in new W(1,2),Fe=W&&Uv&&Object.getOwnPropertyDescriptor(jv,V),$v=!!Fe&&!(Fe.writable&&Fe.configurable),_n=kv&&!$v&&!Kv;Mv({global:!0,constructor:!0,forced:Cn||_n},{DOMException:_n?Ve:W});var $=$e(V),wn=$.prototype;if(wn.constructor!==$){Cn||Ke(wn,"constructor",ke(1,$));for(Ge in Le)Rn(Le,Ge)&&(Ue=Le[Ge],Be=Ue.s,Rn($,Be)||Ke($,Be,ke(6,Ue.c)))}var Ue,Be,Ge});var Nn=a((ip,An)=>{"use strict";var Vv=h().f,Wv=q(),Hv=A(),xn=Hv("toStringTag");An.exports=function(r,e,t){r&&!t&&(r=r.prototype),r&&!Wv(r,xn)&&Vv(r,xn,{configurable:!0,value:e})}});var jn=a(()=>{"use strict";var Yv=R(),zv=Nn(),Mn="DOMException";zv(Yv(Mn),Mn)});var Fn=a((op,Ln)=>{"use strict";var Xv=v();Ln.exports=Xv});var Un=a((up,Gn)=>{"use strict";Ni();Li();Da();dn();Dn();jn();var Qv=Fn();Gn.exports=Qv.atob});var hp=ro(Un());import{ConnectorSDKEventType as w}from"@quiltt/core";import{useCallback as al,useRef as nl}from"react";import{Linking as ol}from"react-native";import{WebView as ul}from"react-native-webview";import{SafeAreaView as Jv,StyleSheet as Zv,Platform as rl,StatusBar as el}from"react-native";import{jsx as il}from"react/jsx-runtime";var Bn=({children:r})=>il(Jv,{style:tl.AndroidSafeArea,children:r}),tl=Zv.create({AndroidSafeArea:{flex:1,backgroundColor:"white",paddingTop:rl.OS==="android"?el.currentHeight:0}});import{URL as cl}from"react-native-url-polyfill";import{useQuilttSession as sl}from"@quiltt/react";import{jsx as kn}from"react/jsx-runtime";var vl=({connectorId:r,connectionId:e,oauthRedirectUrl:t,onEvent:i,onLoad:n,onExit:o,onExitSuccess:u,onExitAbort:c,onExitError:g})=>{let E=nl(null),{session:b}=sl();t=encodeURIComponent(t);let $n=`https://${r}.quiltt.app/?mode=webview&oauth_redirect_url=${t}&sdk=react-native`,Vn=al(()=>{var s;let p=` const options = { source: 'quiltt', type: 'Options', token: '${b==null?void 0:b.token}', connectorId: '${r}', connectionId: '${e}', }; const compactedOptions = Object.keys(options).reduce((acc, key) => { if (options[key] !== 'undefined') { acc[key] = options[key]; } return acc; }, {}); window.postMessage(compactedOptions); `;(s=E.current)==null||s.injectJavaScript(p)},[e,r,b==null?void 0:b.token]),Wn=p=>{let s=new cl(p.url);return s.protocol==="quilttconnector:"?(Hn(s),!1):!0},Er=()=>{var s;let p="localStorage.clear();";(s=E.current)==null||s.injectJavaScript(p)},Hn=p=>{p.searchParams.delete("source"),p.searchParams.append("connectorId",r);let s=Object.fromEntries(p.searchParams);switch(p.host){case"Loaded":Vn(),i==null||i(w.Load,s),n==null||n(s);break;case"ExitAbort":Er(),i==null||i(w.ExitAbort,s),o==null||o(w.ExitAbort,s),c==null||c(s);break;case"ExitError":Er(),i==null||i(w.ExitError,s),o==null||o(w.ExitError,s),g==null||g(s);break;case"ExitSuccess":Er(),i==null||i(w.ExitSuccess,s),o==null||o(w.ExitSuccess,s),u==null||u(s);break;case"OauthRequested":ol.openURL(p.searchParams.get("oauthUrl"));break;default:console.log("unhandled event",p);break}};return kn(Bn,{children:kn(ul,{ref:E,originWhitelist:["https://*","quilttconnector://*"],source:{uri:$n},onShouldStartLoadWithRequest:Wn,javaScriptEnabled:!0,domStorageEnabled:!0,webviewDebuggingEnabled:!0})})},Kn=vl;var Tp=Kn;export{Kn as QuilttConnector,Tp as default};
1
+ import"core-js/stable/atob";import"core-js/stable/url";import{ConnectorSDKEventType as o}from"@quiltt/core";import{useCallback as O,useRef as W}from"react";import{Linking as D}from"react-native";import{WebView as L}from"react-native-webview";import{SafeAreaView as y,StyleSheet as A,Platform as P,StatusBar as R}from"react-native";import{jsx as q}from"react/jsx-runtime";var S=({children:c})=>q(y,{style:V.AndroidSafeArea,children:c}),V=A.create({AndroidSafeArea:{flex:1,backgroundColor:"white",paddingTop:P.OS==="android"?R.currentHeight:0}});import{useQuilttSession as Q}from"@quiltt/react";import{jsx as b}from"react/jsx-runtime";var T=({connectorId:c,connectionId:f,oauthRedirectUrl:s,onEvent:t,onLoad:l,onExit:a,onExitSuccess:p,onExitAbort:d,onExitError:n})=>{let u=W(null),{session:i}=Q();s=encodeURIComponent(s);let w=`https://${c}.quiltt.app/?mode=webview&oauth_redirect_url=${s}&sdk=react-native`,k=O(()=>{var e;let r=` const options = { source: 'quiltt', type: 'Options', token: '${i==null?void 0:i.token}', connectorId: '${c}', connectionId: '${f}', }; const compactedOptions = Object.keys(options).reduce((acc, key) => { if (options[key] !== 'undefined') { acc[key] = options[key]; } return acc; }, {}); window.postMessage(compactedOptions); `;(e=u.current)==null||e.injectJavaScript(r)},[f,c,i==null?void 0:i.token]),g=r=>{let e=new URL(r.url);return e.protocol==="quilttconnector:"?(C(e),!1):!0},m=()=>{var e;let r="localStorage.clear();";(e=u.current)==null||e.injectJavaScript(r)},C=r=>{r.searchParams.delete("source"),r.searchParams.append("connectorId",c);let e=Object.fromEntries(r.searchParams);switch(r.host){case"Loaded":k(),t==null||t(o.Load,e),l==null||l(e);break;case"ExitAbort":m(),t==null||t(o.ExitAbort,e),a==null||a(o.ExitAbort,e),d==null||d(e);break;case"ExitError":m(),t==null||t(o.ExitError,e),a==null||a(o.ExitError,e),n==null||n(e);break;case"ExitSuccess":m(),t==null||t(o.ExitSuccess,e),a==null||a(o.ExitSuccess,e),p==null||p(e);break;case"OauthRequested":D.openURL(r.searchParams.get("oauthUrl"));break;default:console.log("unhandled event",r);break}};return b(S,{children:b(L,{ref:u,originWhitelist:["https://*","quilttconnector://*"],source:{uri:w},onShouldStartLoadWithRequest:g,javaScriptEnabled:!0,domStorageEnabled:!0,webviewDebuggingEnabled:!0})})},h=T;var v=h;export{h as QuilttConnector,v as default};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/document-all.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/is-callable.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/fails.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/descriptors.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/global.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/is-object.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/document-create-element.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/ie8-dom-define.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/v8-prototype-define-bug.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/an-object.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/function-bind-native.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/function-call.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/get-built-in.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/function-uncurry-this.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-is-prototype-of.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/engine-user-agent.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/engine-v8-version.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/symbol-constructor-detection.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/use-symbol-as-uid.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/is-symbol.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/try-to-string.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/a-callable.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/is-null-or-undefined.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/get-method.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/ordinary-to-primitive.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/is-pure.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/define-global-property.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/shared-store.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/shared.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/require-object-coercible.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-object.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/has-own-property.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/uid.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/well-known-symbol.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-primitive.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-property-key.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-define-property.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/function-name.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/inspect-source.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/weak-map-basic-detection.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/create-property-descriptor.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/create-non-enumerable-property.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/shared-key.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/hidden-keys.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/internal-state.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/make-built-in.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/define-built-in.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-string-tag-support.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/classof-raw.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/classof.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-string.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/normalize-string-argument.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/error-to-string.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/modules/es.error.to-string.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-to-string.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/modules/es.object.to-string.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-property-is-enumerable.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/indexed-object.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-indexed-object.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-get-own-property-descriptor.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/math-trunc.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-integer-or-infinity.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-absolute-index.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/to-length.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/length-of-array-like.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/array-includes.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-keys-internal.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/enum-bug-keys.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-get-own-property-names.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-get-own-property-symbols.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/own-keys.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/copy-constructor-properties.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/is-forced.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/export.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/validate-arguments-length.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/base64-map.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/modules/web.atob.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/engine-is-node.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/try-node-require.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-keys.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-define-properties.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/html.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-create.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/define-built-in-accessor.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/an-instance.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/dom-exception-constants.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/error-stack-clear.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/modules/web.dom-exception.constructor.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/function-uncurry-this-accessor.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/a-possible-prototype.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/object-set-prototype-of.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/inherit-if-required.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/modules/web.dom-exception.stack.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/set-to-string-tag.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/modules/web.dom-exception.to-string-tag.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/internals/path.js","../../../node_modules/.pnpm/core-js@3.33.2/node_modules/core-js/stable/atob.js","../src/index.ts","../src/components/QuilttConnector.tsx","../src/components/AndroidSafeAreaView.tsx"],"sourcesContent":["'use strict';\nvar documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","'use strict';\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","'use strict';\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;\n});\n","'use strict';\nvar check = function (it) {\n return it && it.Math === Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || this || Function('return this')();\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","'use strict';\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a !== 7;\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype !== 42;\n});\n","'use strict';\nvar isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw new $TypeError($String(argument) + ' is not an object');\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","'use strict';\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","'use strict';\nmodule.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","'use strict';\nvar global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\nvar global = require('../internals/global');\n\nvar $String = global.String;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol('symbol detection');\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,\n // of course, fail.\n return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","'use strict';\nvar $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw new $TypeError(tryToString(argument) + ' is not a function');\n};\n","'use strict';\n// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw new $TypeError(\"Can't convert object to primitive value\");\n};\n","'use strict';\nmodule.exports = false;\n","'use strict';\nvar global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","'use strict';\nvar global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","'use strict';\nvar IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.33.2',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","'use strict';\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw new $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","'use strict';\nvar global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw new $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","'use strict';\nvar toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","'use strict';\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","'use strict';\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","'use strict';\nvar shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","'use strict';\nmodule.exports = {};\n","'use strict';\nvar NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw new TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","'use strict';\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\nvar classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\nvar toString = require('../internals/to-string');\n\nmodule.exports = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar anObject = require('../internals/an-object');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\n\nvar nativeErrorToString = Error.prototype.toString;\n\nvar INCORRECT_TO_STRING = fails(function () {\n if (DESCRIPTORS) {\n // Chrome 32- incorrectly call accessor\n // eslint-disable-next-line es/no-object-create, es/no-object-defineproperty -- safe\n var object = Object.create(Object.defineProperty({}, 'name', { get: function () {\n return this === object;\n } }));\n if (nativeErrorToString.call(object) !== 'true') return true;\n }\n // FF10- does not properly handle non-strings\n return nativeErrorToString.call({ message: 1, name: 2 }) !== '2: 1'\n // IE8 does not properly handle defaults\n || nativeErrorToString.call({}) !== 'Error';\n});\n\nmodule.exports = INCORRECT_TO_STRING ? function toString() {\n var O = anObject(this);\n var name = normalizeStringArgument(O.name, 'Error');\n var message = normalizeStringArgument(O.message);\n return !name ? message : !message ? name : name + ': ' + message;\n} : nativeErrorToString;\n","'use strict';\nvar defineBuiltIn = require('../internals/define-built-in');\nvar errorToString = require('../internals/error-to-string');\n\nvar ErrorPrototype = Error.prototype;\n\n// `Error.prototype.toString` method fix\n// https://tc39.es/ecma262/#sec-error.prototype.tostring\nif (ErrorPrototype.toString !== errorToString) {\n defineBuiltIn(ErrorPrototype, 'toString', errorToString);\n}\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) === 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","'use strict';\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","'use strict';\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","'use strict';\nvar trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","'use strict';\nvar toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el !== el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value !== value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\n// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","'use strict';\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","'use strict';\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","'use strict';\nvar hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value === POLYFILL ? true\n : value === NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","'use strict';\nvar global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","'use strict';\nvar $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw new $TypeError('Not enough arguments');\n return passed;\n};\n","'use strict';\nvar itoc = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\nvar ctoi = {};\n\nfor (var index = 0; index < 66; index++) ctoi[itoc.charAt(index)] = index;\n\nmodule.exports = {\n itoc: itoc,\n ctoi: ctoi\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar call = require('../internals/function-call');\nvar fails = require('../internals/fails');\nvar toString = require('../internals/to-string');\nvar hasOwn = require('../internals/has-own-property');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar ctoi = require('../internals/base64-map').ctoi;\n\nvar disallowed = /[^\\d+/a-z]/i;\nvar whitespaces = /[\\t\\n\\f\\r ]+/g;\nvar finalEq = /[=]{1,2}$/;\n\nvar $atob = getBuiltIn('atob');\nvar fromCharCode = String.fromCharCode;\nvar charAt = uncurryThis(''.charAt);\nvar replace = uncurryThis(''.replace);\nvar exec = uncurryThis(disallowed.exec);\n\nvar NO_SPACES_IGNORE = fails(function () {\n return $atob(' ') !== '';\n});\n\nvar NO_ENCODING_CHECK = !fails(function () {\n $atob('a');\n});\n\nvar NO_ARG_RECEIVING_CHECK = !NO_SPACES_IGNORE && !NO_ENCODING_CHECK && !fails(function () {\n $atob();\n});\n\nvar WRONG_ARITY = !NO_SPACES_IGNORE && !NO_ENCODING_CHECK && $atob.length !== 1;\n\n// `atob` method\n// https://html.spec.whatwg.org/multipage/webappapis.html#dom-atob\n$({ global: true, bind: true, enumerable: true, forced: NO_SPACES_IGNORE || NO_ENCODING_CHECK || NO_ARG_RECEIVING_CHECK || WRONG_ARITY }, {\n atob: function atob(data) {\n validateArgumentsLength(arguments.length, 1);\n // `webpack` dev server bug on IE global methods - use call(fn, global, ...)\n if (NO_ARG_RECEIVING_CHECK || WRONG_ARITY) return call($atob, global, data);\n var string = replace(toString(data), whitespaces, '');\n var output = '';\n var position = 0;\n var bc = 0;\n var chr, bs;\n if (string.length % 4 === 0) {\n string = replace(string, finalEq, '');\n }\n if (string.length % 4 === 1 || exec(disallowed, string)) {\n throw new (getBuiltIn('DOMException'))('The string is not correctly encoded', 'InvalidCharacterError');\n }\n while (chr = charAt(string, position++)) {\n if (hasOwn(ctoi, chr)) {\n bs = bc % 4 ? bs * 64 + ctoi[chr] : ctoi[chr];\n if (bc++ % 4) output += fromCharCode(255 & bs >> (-2 * bc & 6));\n }\n } return output;\n }\n});\n","'use strict';\nvar global = require('../internals/global');\nvar classof = require('../internals/classof-raw');\n\nmodule.exports = classof(global.process) === 'process';\n","'use strict';\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = function (name) {\n try {\n // eslint-disable-next-line no-new-func -- safe\n if (IS_NODE) return Function('return require(\"' + name + '\")')();\n } catch (error) { /* empty */ }\n};\n","'use strict';\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","'use strict';\n/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","'use strict';\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw new $TypeError('Incorrect invocation');\n};\n","'use strict';\nmodule.exports = {\n IndexSizeError: { s: 'INDEX_SIZE_ERR', c: 1, m: 1 },\n DOMStringSizeError: { s: 'DOMSTRING_SIZE_ERR', c: 2, m: 0 },\n HierarchyRequestError: { s: 'HIERARCHY_REQUEST_ERR', c: 3, m: 1 },\n WrongDocumentError: { s: 'WRONG_DOCUMENT_ERR', c: 4, m: 1 },\n InvalidCharacterError: { s: 'INVALID_CHARACTER_ERR', c: 5, m: 1 },\n NoDataAllowedError: { s: 'NO_DATA_ALLOWED_ERR', c: 6, m: 0 },\n NoModificationAllowedError: { s: 'NO_MODIFICATION_ALLOWED_ERR', c: 7, m: 1 },\n NotFoundError: { s: 'NOT_FOUND_ERR', c: 8, m: 1 },\n NotSupportedError: { s: 'NOT_SUPPORTED_ERR', c: 9, m: 1 },\n InUseAttributeError: { s: 'INUSE_ATTRIBUTE_ERR', c: 10, m: 1 },\n InvalidStateError: { s: 'INVALID_STATE_ERR', c: 11, m: 1 },\n SyntaxError: { s: 'SYNTAX_ERR', c: 12, m: 1 },\n InvalidModificationError: { s: 'INVALID_MODIFICATION_ERR', c: 13, m: 1 },\n NamespaceError: { s: 'NAMESPACE_ERR', c: 14, m: 1 },\n InvalidAccessError: { s: 'INVALID_ACCESS_ERR', c: 15, m: 1 },\n ValidationError: { s: 'VALIDATION_ERR', c: 16, m: 0 },\n TypeMismatchError: { s: 'TYPE_MISMATCH_ERR', c: 17, m: 1 },\n SecurityError: { s: 'SECURITY_ERR', c: 18, m: 1 },\n NetworkError: { s: 'NETWORK_ERR', c: 19, m: 1 },\n AbortError: { s: 'ABORT_ERR', c: 20, m: 1 },\n URLMismatchError: { s: 'URL_MISMATCH_ERR', c: 21, m: 1 },\n QuotaExceededError: { s: 'QUOTA_EXCEEDED_ERR', c: 22, m: 1 },\n TimeoutError: { s: 'TIMEOUT_ERR', c: 23, m: 1 },\n InvalidNodeTypeError: { s: 'INVALID_NODE_TYPE_ERR', c: 24, m: 1 },\n DataCloneError: { s: 'DATA_CLONE_ERR', c: 25, m: 1 }\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar $Error = Error;\nvar replace = uncurryThis(''.replace);\n\nvar TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');\n// eslint-disable-next-line redos/no-vulnerable -- safe\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar tryNodeRequire = require('../internals/try-node-require');\nvar getBuiltIn = require('../internals/get-built-in');\nvar fails = require('../internals/fails');\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar hasOwn = require('../internals/has-own-property');\nvar anInstance = require('../internals/an-instance');\nvar anObject = require('../internals/an-object');\nvar errorToString = require('../internals/error-to-string');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar DOMExceptionConstants = require('../internals/dom-exception-constants');\nvar clearErrorStack = require('../internals/error-stack-clear');\nvar InternalStateModule = require('../internals/internal-state');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IS_PURE = require('../internals/is-pure');\n\nvar DOM_EXCEPTION = 'DOMException';\nvar DATA_CLONE_ERR = 'DATA_CLONE_ERR';\nvar Error = getBuiltIn('Error');\n// NodeJS < 17.0 does not expose `DOMException` to global\nvar NativeDOMException = getBuiltIn(DOM_EXCEPTION) || (function () {\n try {\n // NodeJS < 15.0 does not expose `MessageChannel` to global\n var MessageChannel = getBuiltIn('MessageChannel') || tryNodeRequire('worker_threads').MessageChannel;\n // eslint-disable-next-line es/no-weak-map, unicorn/require-post-message-target-origin -- safe\n new MessageChannel().port1.postMessage(new WeakMap());\n } catch (error) {\n if (error.name === DATA_CLONE_ERR && error.code === 25) return error.constructor;\n }\n})();\nvar NativeDOMExceptionPrototype = NativeDOMException && NativeDOMException.prototype;\nvar ErrorPrototype = Error.prototype;\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(DOM_EXCEPTION);\nvar HAS_STACK = 'stack' in new Error(DOM_EXCEPTION);\n\nvar codeFor = function (name) {\n return hasOwn(DOMExceptionConstants, name) && DOMExceptionConstants[name].m ? DOMExceptionConstants[name].c : 0;\n};\n\nvar $DOMException = function DOMException() {\n anInstance(this, DOMExceptionPrototype);\n var argumentsLength = arguments.length;\n var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]);\n var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error');\n var code = codeFor(name);\n setInternalState(this, {\n type: DOM_EXCEPTION,\n name: name,\n message: message,\n code: code\n });\n if (!DESCRIPTORS) {\n this.name = name;\n this.message = message;\n this.code = code;\n }\n if (HAS_STACK) {\n var error = new Error(message);\n error.name = DOM_EXCEPTION;\n defineProperty(this, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1)));\n }\n};\n\nvar DOMExceptionPrototype = $DOMException.prototype = create(ErrorPrototype);\n\nvar createGetterDescriptor = function (get) {\n return { enumerable: true, configurable: true, get: get };\n};\n\nvar getterFor = function (key) {\n return createGetterDescriptor(function () {\n return getInternalState(this)[key];\n });\n};\n\nif (DESCRIPTORS) {\n // `DOMException.prototype.code` getter\n defineBuiltInAccessor(DOMExceptionPrototype, 'code', getterFor('code'));\n // `DOMException.prototype.message` getter\n defineBuiltInAccessor(DOMExceptionPrototype, 'message', getterFor('message'));\n // `DOMException.prototype.name` getter\n defineBuiltInAccessor(DOMExceptionPrototype, 'name', getterFor('name'));\n}\n\ndefineProperty(DOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, $DOMException));\n\n// FF36- DOMException is a function, but can't be constructed\nvar INCORRECT_CONSTRUCTOR = fails(function () {\n return !(new NativeDOMException() instanceof Error);\n});\n\n// Safari 10.1 / Chrome 32- / IE8- DOMException.prototype.toString bugs\nvar INCORRECT_TO_STRING = INCORRECT_CONSTRUCTOR || fails(function () {\n return ErrorPrototype.toString !== errorToString || String(new NativeDOMException(1, 2)) !== '2: 1';\n});\n\n// Deno 1.6.3- DOMException.prototype.code just missed\nvar INCORRECT_CODE = INCORRECT_CONSTRUCTOR || fails(function () {\n return new NativeDOMException(1, 'DataCloneError').code !== 25;\n});\n\n// Deno 1.6.3- DOMException constants just missed\nvar MISSED_CONSTANTS = INCORRECT_CONSTRUCTOR\n || NativeDOMException[DATA_CLONE_ERR] !== 25\n || NativeDOMExceptionPrototype[DATA_CLONE_ERR] !== 25;\n\nvar FORCED_CONSTRUCTOR = IS_PURE ? INCORRECT_TO_STRING || INCORRECT_CODE || MISSED_CONSTANTS : INCORRECT_CONSTRUCTOR;\n\n// `DOMException` constructor\n// https://webidl.spec.whatwg.org/#idl-DOMException\n$({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR }, {\n DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException\n});\n\nvar PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION);\nvar PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;\n\nif (INCORRECT_TO_STRING && (IS_PURE || NativeDOMException === PolyfilledDOMException)) {\n defineBuiltIn(PolyfilledDOMExceptionPrototype, 'toString', errorToString);\n}\n\nif (INCORRECT_CODE && DESCRIPTORS && NativeDOMException === PolyfilledDOMException) {\n defineBuiltInAccessor(PolyfilledDOMExceptionPrototype, 'code', createGetterDescriptor(function () {\n return codeFor(anObject(this).name);\n }));\n}\n\n// `DOMException` constants\nfor (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) {\n var constant = DOMExceptionConstants[key];\n var constantName = constant.s;\n var descriptor = createPropertyDescriptor(6, constant.c);\n if (!hasOwn(PolyfilledDOMException, constantName)) {\n defineProperty(PolyfilledDOMException, constantName, descriptor);\n }\n if (!hasOwn(PolyfilledDOMExceptionPrototype, constantName)) {\n defineProperty(PolyfilledDOMExceptionPrototype, constantName, descriptor);\n }\n}\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw new $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","'use strict';\n/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar anInstance = require('../internals/an-instance');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar DOMExceptionConstants = require('../internals/dom-exception-constants');\nvar clearErrorStack = require('../internals/error-stack-clear');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IS_PURE = require('../internals/is-pure');\n\nvar DOM_EXCEPTION = 'DOMException';\nvar Error = getBuiltIn('Error');\nvar NativeDOMException = getBuiltIn(DOM_EXCEPTION);\n\nvar $DOMException = function DOMException() {\n anInstance(this, DOMExceptionPrototype);\n var argumentsLength = arguments.length;\n var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]);\n var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error');\n var that = new NativeDOMException(message, name);\n var error = new Error(message);\n error.name = DOM_EXCEPTION;\n defineProperty(that, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1)));\n inheritIfRequired(that, this, $DOMException);\n return that;\n};\n\nvar DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype;\n\nvar ERROR_HAS_STACK = 'stack' in new Error(DOM_EXCEPTION);\nvar DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2);\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(global, DOM_EXCEPTION);\n\n// Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it\n// https://github.com/Jarred-Sumner/bun/issues/399\nvar BUGGY_DESCRIPTOR = !!descriptor && !(descriptor.writable && descriptor.configurable);\n\nvar FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !BUGGY_DESCRIPTOR && !DOM_EXCEPTION_HAS_STACK;\n\n// `DOMException` constructor patch for `.stack` where it's required\n// https://webidl.spec.whatwg.org/#es-DOMException-specialness\n$({ global: true, constructor: true, forced: IS_PURE || FORCED_CONSTRUCTOR }, { // TODO: fix export logic\n DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException\n});\n\nvar PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION);\nvar PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;\n\nif (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) {\n if (!IS_PURE) {\n defineProperty(PolyfilledDOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, PolyfilledDOMException));\n }\n\n for (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) {\n var constant = DOMExceptionConstants[key];\n var constantName = constant.s;\n if (!hasOwn(PolyfilledDOMException, constantName)) {\n defineProperty(PolyfilledDOMException, constantName, createPropertyDescriptor(6, constant.c));\n }\n }\n}\n","'use strict';\nvar defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar setToStringTag = require('../internals/set-to-string-tag');\n\nvar DOM_EXCEPTION = 'DOMException';\n\n// `DOMException.prototype[@@toStringTag]` property\nsetToStringTag(getBuiltIn(DOM_EXCEPTION), DOM_EXCEPTION);\n","'use strict';\nvar global = require('../internals/global');\n\nmodule.exports = global;\n","'use strict';\nrequire('../modules/es.error.to-string');\nrequire('../modules/es.object.to-string');\nrequire('../modules/web.atob');\nrequire('../modules/web.dom-exception.constructor');\nrequire('../modules/web.dom-exception.stack');\nrequire('../modules/web.dom-exception.to-string-tag');\nvar path = require('../internals/path');\n\nmodule.exports = path.atob;\n","// Hermes doesn't have atob\n// https://github.com/facebook/hermes/issues/1178\nimport 'core-js/stable/atob'\nimport QuilttConnector from './components/QuilttConnector'\n\nexport { QuilttConnector }\nexport default QuilttConnector\n","import {\n ConnectorSDKCallbackMetadata,\n ConnectorSDKCallbacks,\n ConnectorSDKEventType,\n} from '@quiltt/core'\nimport { useCallback, useRef } from 'react'\nimport { Linking } from 'react-native'\nimport { WebView } from 'react-native-webview'\nimport { AndroidSafeAreaView } from './AndroidSafeAreaView'\nimport type { ShouldStartLoadRequest } from 'react-native-webview/lib/WebViewTypes'\nimport { URL } from 'react-native-url-polyfill'\nimport { useQuilttSession } from '@quiltt/react'\n\ntype QuilttConnectorProps = {\n connectorId: string\n connectionId?: string\n oauthRedirectUrl: string\n} & ConnectorSDKCallbacks\n\nexport const QuilttConnector = ({\n connectorId,\n connectionId,\n oauthRedirectUrl,\n onEvent,\n onLoad,\n onExit,\n onExitSuccess,\n onExitAbort,\n onExitError,\n}: QuilttConnectorProps) => {\n const webViewRef = useRef<WebView>(null)\n const { session } = useQuilttSession()\n oauthRedirectUrl = encodeURIComponent(oauthRedirectUrl)\n const connectorUrl = `https://${connectorId}.quiltt.app/?mode=webview&oauth_redirect_url=${oauthRedirectUrl}&sdk=react-native` // @todo append version from package.json\n\n const initInjectedJavaScript = useCallback(() => {\n const script = `\\\n const options = {\\\n source: 'quiltt',\\\n type: 'Options',\\\n token: '${session?.token}',\\\n connectorId: '${connectorId}',\\\n connectionId: '${connectionId}',\\\n };\\\n const compactedOptions = Object.keys(options).reduce((acc, key) => {\\\n if (options[key] !== 'undefined') {\\\n acc[key] = options[key];\\\n }\\\n return acc;\\\n }, {});\\\n window.postMessage(compactedOptions);\\\n `\n webViewRef.current?.injectJavaScript(script)\n }, [connectionId, connectorId, session?.token])\n\n const eventHandler = (request: ShouldStartLoadRequest) => {\n const url = new URL(request.url)\n if (url.protocol === 'quilttconnector:') {\n handleQuilttEvent(url)\n return false\n }\n return true\n }\n\n const clearLocalStorage = () => {\n const script = 'localStorage.clear();'\n webViewRef.current?.injectJavaScript(script)\n }\n\n const handleQuilttEvent = (url: URL) => {\n url.searchParams.delete('source')\n url.searchParams.append('connectorId', connectorId)\n const metadata = Object.fromEntries(url.searchParams) as ConnectorSDKCallbackMetadata\n\n const eventType = url.host\n switch (eventType) {\n case 'Loaded':\n initInjectedJavaScript()\n onEvent?.(ConnectorSDKEventType.Load, metadata)\n onLoad?.(metadata)\n break\n case 'ExitAbort':\n clearLocalStorage()\n onEvent?.(ConnectorSDKEventType.ExitAbort, metadata)\n onExit?.(ConnectorSDKEventType.ExitAbort, metadata)\n onExitAbort?.(metadata)\n break\n case 'ExitError':\n clearLocalStorage()\n onEvent?.(ConnectorSDKEventType.ExitError, metadata)\n onExit?.(ConnectorSDKEventType.ExitError, metadata)\n onExitError?.(metadata)\n break\n case 'ExitSuccess':\n clearLocalStorage()\n onEvent?.(ConnectorSDKEventType.ExitSuccess, metadata)\n onExit?.(ConnectorSDKEventType.ExitSuccess, metadata)\n onExitSuccess?.(metadata)\n break\n case 'OauthRequested':\n Linking.openURL(url.searchParams.get('oauthUrl') as string)\n break\n default:\n console.log('unhandled event', url)\n break\n }\n }\n\n return (\n <AndroidSafeAreaView>\n <WebView\n ref={webViewRef}\n originWhitelist={['https://*', 'quilttconnector://*']} // Maybe relax this to *?\n source={{ uri: connectorUrl }}\n onShouldStartLoadWithRequest={eventHandler}\n javaScriptEnabled\n domStorageEnabled // To enable localStorage in Android webview\n webviewDebuggingEnabled // Not sure if this works\n />\n </AndroidSafeAreaView>\n )\n}\n\nexport default QuilttConnector\n","import { SafeAreaView, StyleSheet, Platform, StatusBar } from 'react-native'\nimport { PropsWithChildren } from 'react'\n\nexport const AndroidSafeAreaView = ({ children }: PropsWithChildren) => (\n <SafeAreaView style={styles.AndroidSafeArea}>{children}</SafeAreaView>\n)\n\nconst styles = StyleSheet.create({\n AndroidSafeArea: {\n flex: 1,\n backgroundColor: 'white',\n paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight : 0,\n },\n})\n"],"mappings":"yhBAAA,IAAAA,GAAAC,EAAA,CAAAC,GAAAC,KAAA,cACA,IAAIC,GAAc,OAAO,UAAY,UAAY,SAAS,IAItDC,GAAa,OAAOD,IAAe,aAAeA,KAAgB,OAEtED,GAAO,QAAU,CACf,IAAKC,GACL,WAAYC,EACd,ICVA,IAAAC,EAAAC,EAAA,CAAAC,GAAAC,KAAA,cACA,IAAIC,GAAe,KAEfC,GAAcD,GAAa,IAI/BD,GAAO,QAAUC,GAAa,WAAa,SAAUE,EAAU,CAC7D,OAAO,OAAOA,GAAY,YAAcA,IAAaD,EACvD,EAAI,SAAUC,EAAU,CACtB,OAAO,OAAOA,GAAY,UAC5B,ICXA,IAAAC,EAAAC,EAAA,CAAAC,GAAAC,KAAA,cACAA,GAAO,QAAU,SAAUC,EAAM,CAC/B,GAAI,CACF,MAAO,CAAC,CAACA,EAAK,CAChB,OAASC,EAAP,CACA,MAAO,EACT,CACF,ICPA,IAAAC,EAAAC,EAAA,CAAAC,GAAAC,KAAA,cACA,IAAIC,GAAQ,IAGZD,GAAO,QAAU,CAACC,GAAM,UAAY,CAElC,OAAO,OAAO,eAAe,CAAC,EAAG,EAAG,CAAE,IAAK,UAAY,CAAE,MAAO,EAAG,CAAE,CAAC,EAAE,CAAC,IAAM,CACjF,CAAC,ICPD,IAAAC,EAAAC,EAAA,CAAAC,GAAAC,KAAA,cACA,IAAIC,EAAQ,SAAUC,EAAI,CACxB,OAAOA,GAAMA,EAAG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jB,IAAK,SACHN,GAAuB,EACvBV,GAAA,MAAAA,EAAUoB,EAAsB,KAAMD,GACtClB,GAAA,MAAAA,EAASkB,GACT,MACF,IAAK,YACHD,GAAkB,EAClBlB,GAAA,MAAAA,EAAUoB,EAAsB,UAAWD,GAC3CjB,GAAA,MAAAA,EAASkB,EAAsB,UAAWD,GAC1Cf,GAAA,MAAAA,EAAce,GACd,MACF,IAAK,YACHD,GAAkB,EAClBlB,GAAA,MAAAA,EAAUoB,EAAsB,UAAWD,GAC3CjB,GAAA,MAAAA,EAASkB,EAAsB,UAAWD,GAC1Cd,GAAA,MAAAA,EAAcc,GACd,MACF,IAAK,cACHD,GAAkB,EAClBlB,GAAA,MAAAA,EAAUoB,EAAsB,YAAaD,GAC7CjB,GAAA,MAAAA,EAASkB,EAAsB,YAAaD,GAC5ChB,GAAA,MAAAA,EAAgBgB,GAChB,MACF,IAAK,iBACHE,GAAQ,QAAQL,EAAI,aAAa,IAAI,UAAU,CAAW,EAC1D,MACF,QACE,QAAQ,IAAI,kBAAmBA,CAAG,EAClC,KACJ,CACF,EAEA,OACErB,GAAC2B,GAAA,CACC,SAAA3B,GAAC4B,GAAA,CACC,IAAKjB,EACL,gBAAiB,CAAC,YAAa,qBAAqB,EACpD,OAAQ,CAAE,IAAKG,EAAa,EAC5B,6BAA8BK,GAC9B,kBAAiB,GACjB,kBAAiB,GACjB,wBAAuB,GACzB,EACF,CAEJ,EAEOU,GAAQ5B,GDrHf,IAAO6B,GAAQC","names":["require_document_all","__commonJSMin","exports","module","documentAll","IS_HTMLDDA","require_is_callable","__commonJSMin","exports","module","$documentAll","documentAll","argument","require_fails","__commonJSMin","exports","module","exec","error","require_descriptors","__commonJSMin","exports","module","fails","require_global","__commonJSMin","exports","module","check","it","require_is_object","__commonJSMin","exports","module","isCallable","$documentAll","documentAll","it","require_document_create_element","__commonJSMin","exports","module","global","isObject","document","EXISTS","it","require_ie8_dom_define","__commonJSMin","exports","module","DESCRIPTORS","fails","createElement","require_v8_prototype_define_bug","__commonJSMin","exports","module","DESCRIPTORS","fails","require_an_object","__commonJSMin","exports","module","isObject","$String","$TypeError","argument","require_function_bind_native","__commonJSMin","exports","module","fails","test","require_function_call","__commonJSMin","exports","module","NATIVE_BIND","call","require_get_built_in","__commonJSMin","exports","module","global","isCallable","aFunction","argument","namespace","method","require_function_uncurry_this","__commonJSMin","exports","module","NATIVE_BIND","FunctionPrototype","call","uncurryThisWithBind","fn","require_object_is_prototype_of","__commonJSMin","exports","module","uncurryThis","require_engine_user_agent","__commonJSMin","exports","module","require_engine_v8_version","__commonJSMin","exports","module","global","userAgent","process","Deno","versions","v8","match","version","require_symbol_constructor_detection","__commonJSMin","exports","module","V8_VERSION","fails","global","$String","symbol","require_use_symbol_as_uid","__commonJSMin","exports","module","NATIVE_SYMBOL","require_is_symbol","__commonJSMin","exports","module","getBuiltIn","isCallable","isPrototypeOf","USE_SYMBOL_AS_UID","$Object","it","$Symbol","require_try_to_string","__commonJSMin","exports","module","$String","argument","error","require_a_callable","__commonJSMin","exports","module","isCallable","tryToString","$TypeError","argument","require_is_null_or_undefined","__commonJSMin","exports","module","it","require_get_method","__commonJSMin","exports","module","aCallable","isNullOrUndefined","V","P","func","require_ordinary_to_primitive","__commonJSMin","exports","module","call","isCallable","isObject","$TypeError","input","pref","fn","val","require_is_pure","__commonJSMin","exports","module","require_define_global_property","__commonJSMin","exports","module","global","defineProperty","key","value","error","require_shared_store","__commonJSMin","exports","module","global","defineGlobalProperty","SHARED","store","require_shared","__commonJSMin","exports","module","IS_PURE","store","key","value","require_require_object_coercible","__commonJSMin","exports","module","isNullOrUndefined","$TypeError","it","require_to_object","__commonJSMin","exports","module","requireObjectCoercible","$Object","argument","require_has_own_property","__commonJSMin","exports","module","uncurryThis","toObject","hasOwnProperty","it","key","require_uid","__commonJSMin","exports","module","uncurryThis","id","postfix","toString","key","require_well_known_symbol","__commonJSMin","exports","module","global","shared","hasOwn","uid","NATIVE_SYMBOL","USE_SYMBOL_AS_UID","Symbol","WellKnownSymbolsStore","createWellKnownSymbol","name","require_to_primitive","__commonJSMin","exports","module","call","isObject","isSymbol","getMethod","ordinaryToPrimitive","wellKnownSymbol","$TypeError","TO_PRIMITIVE","input","pref","exoticToPrim","result","require_to_property_key","__commonJSMin","exports","module","toPrimitive","isSymbol","argument","key","require_object_define_property","__commonJSMin","exports","DESCRIPTORS","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","anObject","toPropertyKey","$TypeError","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","O","P","Attributes","current","error","require_function_name","__commonJSMin","exports","module","DESCRIPTORS","hasOwn","FunctionPrototype","getDescriptor","EXISTS","PROPER","CONFIGURABLE","require_inspect_source","__commonJSMin","exports","module","uncurryThis","isCallable","store","functionToString","it","require_weak_map_basic_detection","__commonJSMin","exports","module","global","isCallable","WeakMap","require_create_property_descriptor","__commonJSMin","exports","module","bitmap","value","require_create_non_enumerable_property","__commonJSMin","exports","module","DESCRIPTORS","definePropertyModule","createPropertyDescriptor","object","key","value","require_shared_key","__commonJSMin","exports","module","shared","uid","keys","key","require_hidden_keys","__commonJSMin","exports","module","require_internal_state","__commonJSMin","exports","module","NATIVE_WEAK_MAP","global","isObject","createNonEnumerableProperty","hasOwn","shared","sharedKey","hiddenKeys","OBJECT_ALREADY_INITIALIZED","TypeError","WeakMap","set","get","has","enforce","it","getterFor","TYPE","state","store","metadata","STATE","require_make_built_in","__commonJSMin","exports","module","uncurryThis","fails","isCallable","hasOwn","DESCRIPTORS","CONFIGURABLE_FUNCTION_NAME","inspectSource","InternalStateModule","enforceInternalState","getInternalState","$String","defineProperty","stringSlice","replace","join","CONFIGURABLE_LENGTH","TEMPLATE","makeBuiltIn","value","name","options","error","state","require_define_built_in","__commonJSMin","exports","module","isCallable","definePropertyModule","makeBuiltIn","defineGlobalProperty","O","key","value","options","simple","name","error","require_to_string_tag_support","__commonJSMin","exports","module","wellKnownSymbol","TO_STRING_TAG","test","require_classof_raw","__commonJSMin","exports","module","uncurryThis","toString","stringSlice","it","require_classof","__commonJSMin","exports","module","TO_STRING_TAG_SUPPORT","isCallable","classofRaw","wellKnownSymbol","TO_STRING_TAG","$Object","CORRECT_ARGUMENTS","tryGet","it","key","error","O","tag","result","require_to_string","__commonJSMin","exports","module","classof","$String","argument","require_normalize_string_argument","__commonJSMin","exports","module","toString","argument","$default","require_error_to_string","__commonJSMin","exports","module","DESCRIPTORS","fails","anObject","normalizeStringArgument","nativeErrorToString","INCORRECT_TO_STRING","object","O","name","message","require_es_error_to_string","__commonJSMin","defineBuiltIn","errorToString","ErrorPrototype","require_object_to_string","__commonJSMin","exports","module","TO_STRING_TAG_SUPPORT","classof","require_es_object_to_string","__commonJSMin","TO_STRING_TAG_SUPPORT","defineBuiltIn","toString","require_object_property_is_enumerable","__commonJSMin","exports","$propertyIsEnumerable","getOwnPropertyDescriptor","NASHORN_BUG","V","descriptor","require_indexed_object","__commonJSMin","exports","module","uncurryThis","fails","classof","$Object","split","it","require_to_indexed_object","__commonJSMin","exports","module","IndexedObject","requireObjectCoercible","it","require_object_get_own_property_descriptor","__commonJSMin","exports","DESCRIPTORS","call","propertyIsEnumerableModule","createPropertyDescriptor","toIndexedObject","toPropertyKey","hasOwn","IE8_DOM_DEFINE","$getOwnPropertyDescriptor","O","P","error","require_math_trunc","__commonJSMin","exports","module","ceil","floor","x","n","require_to_integer_or_infinity","__commonJSMin","exports","module","trunc","argument","number","require_to_absolute_index","__commonJSMin","exports","module","toIntegerOrInfinity","max","min","index","length","integer","require_to_length","__commonJSMin","exports","module","toIntegerOrInfinity","min","argument","require_length_of_array_like","__commonJSMin","exports","module","toLength","obj","require_array_includes","__commonJSMin","exports","module","toIndexedObject","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","$this","el","fromIndex","O","length","index","value","require_object_keys_internal","__commonJSMin","exports","module","uncurryThis","hasOwn","toIndexedObject","indexOf","hiddenKeys","push","object","names","O","result","key","require_enum_bug_keys","__commonJSMin","exports","module","require_object_get_own_property_names","__commonJSMin","exports","internalObjectKeys","enumBugKeys","hiddenKeys","O","require_object_get_own_property_symbols","__commonJSMin","exports","require_own_keys","__commonJSMin","exports","module","getBuiltIn","uncurryThis","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","anObject","concat","it","keys","getOwnPropertySymbols","require_copy_constructor_properties","__commonJSMin","exports","module","hasOwn","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","target","source","exceptions","keys","defineProperty","getOwnPropertyDescriptor","i","key","require_is_forced","__commonJSMin","exports","module","fails","isCallable","replacement","isForced","feature","detection","value","data","normalize","POLYFILL","NATIVE","string","require_export","__commonJSMin","exports","module","global","getOwnPropertyDescriptor","createNonEnumerableProperty","defineBuiltIn","defineGlobalProperty","copyConstructorProperties","isForced","options","source","TARGET","GLOBAL","STATIC","FORCED","target","key","targetProperty","sourceProperty","descriptor","require_validate_arguments_length","__commonJSMin","exports","module","$TypeError","passed","required","require_base64_map","__commonJSMin","exports","module","itoc","ctoi","index","require_web_atob","__commonJSMin","$","global","getBuiltIn","uncurryThis","call","fails","toString","hasOwn","validateArgumentsLength","ctoi","disallowed","whitespaces","finalEq","$atob","fromCharCode","charAt","replace","exec","NO_SPACES_IGNORE","NO_ENCODING_CHECK","NO_ARG_RECEIVING_CHECK","WRONG_ARITY","data","string","output","position","bc","chr","bs","require_engine_is_node","__commonJSMin","exports","module","global","classof","require_try_node_require","__commonJSMin","exports","module","IS_NODE","name","error","require_object_keys","__commonJSMin","exports","module","internalObjectKeys","enumBugKeys","O","require_object_define_properties","__commonJSMin","exports","DESCRIPTORS","V8_PROTOTYPE_DEFINE_BUG","definePropertyModule","anObject","toIndexedObject","objectKeys","O","Properties","props","keys","length","index","key","require_html","__commonJSMin","exports","module","getBuiltIn","require_object_create","__commonJSMin","exports","module","anObject","definePropertiesModule","enumBugKeys","hiddenKeys","html","documentCreateElement","sharedKey","GT","LT","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","NullProtoObjectViaActiveX","activeXDocument","temp","NullProtoObjectViaIFrame","iframe","JS","iframeDocument","NullProtoObject","error","length","O","Properties","result","require_define_built_in_accessor","__commonJSMin","exports","module","makeBuiltIn","defineProperty","target","name","descriptor","require_an_instance","__commonJSMin","exports","module","isPrototypeOf","$TypeError","it","Prototype","require_dom_exception_constants","__commonJSMin","exports","module","require_error_stack_clear","__commonJSMin","exports","module","uncurryThis","$Error","replace","TEST","arg","V8_OR_CHAKRA_STACK_ENTRY","IS_V8_OR_CHAKRA_STACK","stack","dropEntries","require_web_dom_exception_constructor","__commonJSMin","$","tryNodeRequire","getBuiltIn","fails","create","createPropertyDescriptor","defineProperty","defineBuiltIn","defineBuiltInAccessor","hasOwn","anInstance","anObject","errorToString","normalizeStringArgument","DOMExceptionConstants","clearErrorStack","InternalStateModule","DESCRIPTORS","IS_PURE","DOM_EXCEPTION","DATA_CLONE_ERR","Error","NativeDOMException","MessageChannel","error","NativeDOMExceptionPrototype","ErrorPrototype","setInternalState","getInternalState","HAS_STACK","codeFor","name","$DOMException","DOMExceptionPrototype","argumentsLength","message","code","createGetterDescriptor","get","getterFor","key","INCORRECT_CONSTRUCTOR","INCORRECT_TO_STRING","INCORRECT_CODE","MISSED_CONSTANTS","FORCED_CONSTRUCTOR","PolyfilledDOMException","PolyfilledDOMExceptionPrototype","constant","constantName","descriptor","require_function_uncurry_this_accessor","__commonJSMin","exports","module","uncurryThis","aCallable","object","key","method","error","require_a_possible_prototype","__commonJSMin","exports","module","isCallable","$String","$TypeError","argument","require_object_set_prototype_of","__commonJSMin","exports","module","uncurryThisAccessor","anObject","aPossiblePrototype","CORRECT_SETTER","test","setter","error","O","proto","require_inherit_if_required","__commonJSMin","exports","module","isCallable","isObject","setPrototypeOf","$this","dummy","Wrapper","NewTarget","NewTargetPrototype","require_web_dom_exception_stack","__commonJSMin","$","global","getBuiltIn","createPropertyDescriptor","defineProperty","hasOwn","anInstance","inheritIfRequired","normalizeStringArgument","DOMExceptionConstants","clearErrorStack","DESCRIPTORS","IS_PURE","DOM_EXCEPTION","Error","NativeDOMException","$DOMException","DOMExceptionPrototype","argumentsLength","message","name","that","error","ERROR_HAS_STACK","DOM_EXCEPTION_HAS_STACK","descriptor","BUGGY_DESCRIPTOR","FORCED_CONSTRUCTOR","PolyfilledDOMException","PolyfilledDOMExceptionPrototype","key","constant","constantName","require_set_to_string_tag","__commonJSMin","exports","module","defineProperty","hasOwn","wellKnownSymbol","TO_STRING_TAG","target","TAG","STATIC","require_web_dom_exception_to_string_tag","__commonJSMin","getBuiltIn","setToStringTag","DOM_EXCEPTION","require_path","__commonJSMin","exports","module","global","require_atob","__commonJSMin","exports","module","path","import_atob","ConnectorSDKEventType","useCallback","useRef","Linking","WebView","SafeAreaView","StyleSheet","Platform","StatusBar","jsx","AndroidSafeAreaView","children","styles","URL","useQuilttSession","jsx","QuilttConnector","connectorId","connectionId","oauthRedirectUrl","onEvent","onLoad","onExit","onExitSuccess","onExitAbort","onExitError","webViewRef","useRef","session","connectorUrl","initInjectedJavaScript","useCallback","_a","script","eventHandler","request","url","handleQuilttEvent","clearLocalStorage","metadata","ConnectorSDKEventType","Linking","AndroidSafeAreaView","WebView","QuilttConnector_default","src_default","QuilttConnector_default"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/components/QuilttConnector.tsx","../src/components/AndroidSafeAreaView.tsx"],"sourcesContent":["// Hermes doesn't have atob\n// https://github.com/facebook/hermes/issues/1178\nimport 'core-js/stable/atob'\n// React Native's URL implementation is incomplete\n// https://github.com/facebook/react-native/issues/16434\nimport 'core-js/stable/url'\nimport QuilttConnector from './components/QuilttConnector'\n\nexport { QuilttConnector }\nexport default QuilttConnector\n","import {\n ConnectorSDKCallbackMetadata,\n ConnectorSDKCallbacks,\n ConnectorSDKEventType,\n} from '@quiltt/core'\nimport { useCallback, useRef } from 'react'\nimport { Linking } from 'react-native'\nimport { WebView } from 'react-native-webview'\nimport { AndroidSafeAreaView } from './AndroidSafeAreaView'\nimport type { ShouldStartLoadRequest } from 'react-native-webview/lib/WebViewTypes'\nimport { useQuilttSession } from '@quiltt/react'\n\ntype QuilttConnectorProps = {\n connectorId: string\n connectionId?: string\n oauthRedirectUrl: string\n} & ConnectorSDKCallbacks\n\nexport const QuilttConnector = ({\n connectorId,\n connectionId,\n oauthRedirectUrl,\n onEvent,\n onLoad,\n onExit,\n onExitSuccess,\n onExitAbort,\n onExitError,\n}: QuilttConnectorProps) => {\n const webViewRef = useRef<WebView>(null)\n const { session } = useQuilttSession()\n oauthRedirectUrl = encodeURIComponent(oauthRedirectUrl)\n const connectorUrl = `https://${connectorId}.quiltt.app/?mode=webview&oauth_redirect_url=${oauthRedirectUrl}&sdk=react-native` // @todo append version from package.json\n\n const initInjectedJavaScript = useCallback(() => {\n const script = `\\\n const options = {\\\n source: 'quiltt',\\\n type: 'Options',\\\n token: '${session?.token}',\\\n connectorId: '${connectorId}',\\\n connectionId: '${connectionId}',\\\n };\\\n const compactedOptions = Object.keys(options).reduce((acc, key) => {\\\n if (options[key] !== 'undefined') {\\\n acc[key] = options[key];\\\n }\\\n return acc;\\\n }, {});\\\n window.postMessage(compactedOptions);\\\n `\n webViewRef.current?.injectJavaScript(script)\n }, [connectionId, connectorId, session?.token])\n\n const eventHandler = (request: ShouldStartLoadRequest) => {\n const url = new URL(request.url)\n if (url.protocol === 'quilttconnector:') {\n handleQuilttEvent(url)\n return false\n }\n return true\n }\n\n const clearLocalStorage = () => {\n const script = 'localStorage.clear();'\n webViewRef.current?.injectJavaScript(script)\n }\n\n const handleQuilttEvent = (url: URL) => {\n url.searchParams.delete('source')\n url.searchParams.append('connectorId', connectorId)\n const metadata = Object.fromEntries(url.searchParams) as ConnectorSDKCallbackMetadata\n\n const eventType = url.host\n switch (eventType) {\n case 'Loaded':\n initInjectedJavaScript()\n onEvent?.(ConnectorSDKEventType.Load, metadata)\n onLoad?.(metadata)\n break\n case 'ExitAbort':\n clearLocalStorage()\n onEvent?.(ConnectorSDKEventType.ExitAbort, metadata)\n onExit?.(ConnectorSDKEventType.ExitAbort, metadata)\n onExitAbort?.(metadata)\n break\n case 'ExitError':\n clearLocalStorage()\n onEvent?.(ConnectorSDKEventType.ExitError, metadata)\n onExit?.(ConnectorSDKEventType.ExitError, metadata)\n onExitError?.(metadata)\n break\n case 'ExitSuccess':\n clearLocalStorage()\n onEvent?.(ConnectorSDKEventType.ExitSuccess, metadata)\n onExit?.(ConnectorSDKEventType.ExitSuccess, metadata)\n onExitSuccess?.(metadata)\n break\n case 'OauthRequested':\n Linking.openURL(url.searchParams.get('oauthUrl') as string)\n break\n default:\n console.log('unhandled event', url)\n break\n }\n }\n\n return (\n <AndroidSafeAreaView>\n <WebView\n ref={webViewRef}\n originWhitelist={['https://*', 'quilttconnector://*']} // Maybe relax this to *?\n source={{ uri: connectorUrl }}\n onShouldStartLoadWithRequest={eventHandler}\n javaScriptEnabled\n domStorageEnabled // To enable localStorage in Android webview\n webviewDebuggingEnabled // Not sure if this works\n />\n </AndroidSafeAreaView>\n )\n}\n\nexport default QuilttConnector\n","import { SafeAreaView, StyleSheet, Platform, StatusBar } from 'react-native'\nimport { PropsWithChildren } from 'react'\n\nexport const AndroidSafeAreaView = ({ children }: PropsWithChildren) => (\n <SafeAreaView style={styles.AndroidSafeArea}>{children}</SafeAreaView>\n)\n\nconst styles = StyleSheet.create({\n AndroidSafeArea: {\n flex: 1,\n backgroundColor: 'white',\n paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight : 0,\n },\n})\n"],"mappings":"AAEA,MAAO,sBAGP,MAAO,qBCLP,OAGE,yBAAAA,MACK,eACP,OAAS,eAAAC,EAAa,UAAAC,MAAc,QACpC,OAAS,WAAAC,MAAe,eACxB,OAAS,WAAAC,MAAe,uBCPxB,OAAS,gBAAAC,EAAc,cAAAC,EAAY,YAAAC,EAAU,aAAAC,MAAiB,eAI5D,cAAAC,MAAA,oBADK,IAAMC,EAAsB,CAAC,CAAE,SAAAC,CAAS,IAC7CF,EAACJ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GAAA,MAAAA,EAASkB,GACT,MACF,IAAK,YACHD,EAAkB,EAClBlB,GAAA,MAAAA,EAAUoB,EAAsB,UAAWD,GAC3CjB,GAAA,MAAAA,EAASkB,EAAsB,UAAWD,GAC1Cf,GAAA,MAAAA,EAAce,GACd,MACF,IAAK,YACHD,EAAkB,EAClBlB,GAAA,MAAAA,EAAUoB,EAAsB,UAAWD,GAC3CjB,GAAA,MAAAA,EAASkB,EAAsB,UAAWD,GAC1Cd,GAAA,MAAAA,EAAcc,GACd,MACF,IAAK,cACHD,EAAkB,EAClBlB,GAAA,MAAAA,EAAUoB,EAAsB,YAAaD,GAC7CjB,GAAA,MAAAA,EAASkB,EAAsB,YAAaD,GAC5ChB,GAAA,MAAAA,EAAgBgB,GAChB,MACF,IAAK,iBACHE,EAAQ,QAAQL,EAAI,aAAa,IAAI,UAAU,CAAW,EAC1D,MACF,QACE,QAAQ,IAAI,kBAAmBA,CAAG,EAClC,KACJ,CACF,EAEA,OACErB,EAAC2B,EAAA,CACC,SAAA3B,EAAC4B,EAAA,CACC,IAAKjB,EACL,gBAAiB,CAAC,YAAa,qBAAqB,EACpD,OAAQ,CAAE,IAAKG,CAAa,EAC5B,6BAA8BK,EAC9B,kBAAiB,GACjB,kBAAiB,GACjB,wBAAuB,GACzB,EACF,CAEJ,EAEOU,EAAQ5B,EDjHf,IAAO6B,EAAQC","names":["ConnectorSDKEventType","useCallback","useRef","Linking","WebView","SafeAreaView","StyleSheet","Platform","StatusBar","jsx","AndroidSafeAreaView","children","styles","useQuilttSession","jsx","QuilttConnector","connectorId","connectionId","oauthRedirectUrl","onEvent","onLoad","onExit","onExitSuccess","onExitAbort","onExitError","webViewRef","useRef","session","connectorUrl","initInjectedJavaScript","useCallback","_a","script","eventHandler","request","url","handleQuilttEvent","clearLocalStorage","metadata","ConnectorSDKEventType","Linking","AndroidSafeAreaView","WebView","QuilttConnector_default","src_default","QuilttConnector_default"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quiltt/react-native",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "React Native components for Quiltt Connector",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -21,10 +21,10 @@
21
21
  "react-native": "^0.72.5"
22
22
  },
23
23
  "dependencies": {
24
+ "core-js": "3.33.2",
24
25
  "react-native-webview": "13.6.2",
25
- "react-native-url-polyfill": "2.0.0",
26
- "@quiltt/react": "3.2.0",
27
- "@quiltt/core": "3.2.0"
26
+ "@quiltt/core": "3.2.1",
27
+ "@quiltt/react": "3.2.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@apollo/client": "3.7.16",
@@ -43,8 +43,7 @@
43
43
  "prettier": "2.8.8",
44
44
  "react": "18.2.0",
45
45
  "tsup": "6.7.0",
46
- "typescript": "5.1.3",
47
- "core-js": "3.33.2"
46
+ "typescript": "5.1.3"
48
47
  },
49
48
  "license": "MIT",
50
49
  "publishConfig": {
@@ -8,7 +8,6 @@ import { Linking } from 'react-native'
8
8
  import { WebView } from 'react-native-webview'
9
9
  import { AndroidSafeAreaView } from './AndroidSafeAreaView'
10
10
  import type { ShouldStartLoadRequest } from 'react-native-webview/lib/WebViewTypes'
11
- import { URL } from 'react-native-url-polyfill'
12
11
  import { useQuilttSession } from '@quiltt/react'
13
12
 
14
13
  type QuilttConnectorProps = {
package/src/index.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  // Hermes doesn't have atob
2
2
  // https://github.com/facebook/hermes/issues/1178
3
3
  import 'core-js/stable/atob'
4
+ // React Native's URL implementation is incomplete
5
+ // https://github.com/facebook/react-native/issues/16434
6
+ import 'core-js/stable/url'
4
7
  import QuilttConnector from './components/QuilttConnector'
5
8
 
6
9
  export { QuilttConnector }