PNG %k25u25%fgd5n!
/home/mkuwqnjx/public_html/dist/assets/libs/uppy/uppy.legacy.min.js
"use strict";(function(){var roe=Object.create;var NS=Object.defineProperty;var noe=Object.getOwnPropertyDescriptor;var ioe=Object.getOwnPropertyNames;var ooe=Object.getPrototypeOf,aoe=Object.prototype.hasOwnProperty;var U=function(t,e){return function(){return e||t((e={exports:{}}).exports,e),e.exports}},zm=function(t,e){for(var r in e)NS(t,r,{get:e[r],enumerable:!0})},uoe=function(t,e,r,n){if(e&&typeof e=="object"||typeof e=="function")for(var i=ioe(e),a=0,l=i.length,c;a<l;a++)c=i[a],!aoe.call(t,c)&&c!==r&&NS(t,c,{get:function(f){return e[f]}.bind(null,c),enumerable:!(n=noe(e,c))||n.enumerable});return t};var Ce=function(t,e,r){return r=t!=null?roe(ooe(t)):{},uoe(e||!t||!t.__esModule?NS(r,"default",{value:t,enumerable:!0}):r,t)};var be=U(function(kpt,GF){function vc(t){"@babel/helpers - typeof";return vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vc(t)}var Hm=function(e){return e&&e.Math==Math&&e};GF.exports=Hm((typeof globalThis=="undefined"?"undefined":vc(globalThis))=="object"&&globalThis)||Hm((typeof window=="undefined"?"undefined":vc(window))=="object"&&window)||Hm((typeof self=="undefined"?"undefined":vc(self))=="object"&&self)||Hm((typeof global=="undefined"?"undefined":vc(global))=="object"&&global)||function(){return this}()||Function("return this")()});var le=U(function(jpt,$F){$F.exports=function(t){try{return!!t()}catch(e){return!0}}});var xe=U(function(qpt,zF){var soe=le();zF.exports=!soe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var yc=U(function(Fpt,HF){var loe=le();HF.exports=!loe(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")})});var fe=U(function(Lpt,WF){var coe=yc(),Wm=Function.prototype.call;WF.exports=coe?Wm.bind(Wm):function(){return Wm.apply(Wm,arguments)}});var Yp=U(function(YF){"use strict";var VF={}.propertyIsEnumerable,KF=Object.getOwnPropertyDescriptor,foe=KF&&!VF.call({1:2},1);YF.f=foe?function(e){var r=KF(this,e);return!!r&&r.enumerable}:VF});var In=U(function(Npt,XF){XF.exports=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}});var ce=U(function(Dpt,ZF){var QF=yc(),JF=Function.prototype,poe=JF.bind,DS=JF.call,hoe=QF&&poe.bind(DS,DS);ZF.exports=QF?function(t){return t&&hoe(t)}:function(t){return t&&function(){return DS.apply(t,arguments)}}});var hn=U(function(Mpt,tL){var eL=ce(),doe=eL({}.toString),voe=eL("".slice);tL.exports=function(t){return voe(doe(t),8,-1)}});var Mo=U(function(Upt,rL){var yoe=ce(),moe=le(),goe=hn(),MS=Object,boe=yoe("".split);rL.exports=moe(function(){return!MS("z").propertyIsEnumerable(0)})?function(t){return goe(t)=="String"?boe(t,""):MS(t)}:MS});var $t=U(function(Bpt,nL){var woe=TypeError;nL.exports=function(t){if(t==null)throw woe("Can't call method on "+t);return t}});var zt=U(function(Gpt,iL){var Ooe=Mo(),Soe=$t();iL.exports=function(t){return Ooe(Soe(t))}});var ke=U(function($pt,oL){oL.exports=function(t){return typeof t=="function"}});var Ne=U(function(zpt,aL){function US(t){"@babel/helpers - typeof";return US=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},US(t)}var _oe=ke();aL.exports=function(t){return US(t)=="object"?t!==null:_oe(t)}});var Oe=U(function(Hpt,uL){var BS=be(),Poe=ke(),Eoe=function(e){return Poe(e)?e:void 0};uL.exports=function(t,e){return arguments.length<2?Eoe(BS[t]):BS[t]&&BS[t][e]}});var Wr=U(function(Wpt,sL){var Toe=ce();sL.exports=Toe({}.isPrototypeOf)});var Uo=U(function(Vpt,lL){var Aoe=Oe();lL.exports=Aoe("navigator","userAgent")||""});var Ba=U(function(Kpt,vL){var dL=be(),GS=Uo(),cL=dL.process,fL=dL.Deno,pL=cL&&cL.versions||fL&&fL.version,hL=pL&&pL.v8,Ti,Vm;hL&&(Ti=hL.split("."),Vm=Ti[0]>0&&Ti[0]<4?1:+(Ti[0]+Ti[1]));!Vm&&GS&&(Ti=GS.match(/Edge\/(\d+)/),(!Ti||Ti[1]>=74)&&(Ti=GS.match(/Chrome\/(\d+)/),Ti&&(Vm=+Ti[1])));vL.exports=Vm});var ms=U(function(Ypt,mL){var yL=Ba(),xoe=le();mL.exports=!!Object.getOwnPropertySymbols&&!xoe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&yL&&yL<41})});var zS=U(function(Xpt,gL){function $S(t){"@babel/helpers - typeof";return $S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$S(t)}var Roe=ms();gL.exports=Roe&&!Symbol.sham&&$S(Symbol.iterator)=="symbol"});var Ga=U(function(Qpt,bL){function HS(t){"@babel/helpers - typeof";return HS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HS(t)}var Ioe=Oe(),koe=ke(),joe=Wr(),qoe=zS(),Foe=Object;bL.exports=qoe?function(t){return HS(t)=="symbol"}:function(t){var e=Ioe("Symbol");return koe(e)&&joe(e.prototype,Foe(t))}});var $a=U(function(Jpt,wL){var Loe=String;wL.exports=function(t){try{return Loe(t)}catch(e){return"Object"}}});var ge=U(function(Zpt,OL){var Coe=ke(),Noe=$a(),Doe=TypeError;OL.exports=function(t){if(Coe(t))return t;throw Doe(Noe(t)+" is not a function")}});var tr=U(function(eht,SL){var Moe=ge();SL.exports=function(t,e){var r=t[e];return r==null?void 0:Moe(r)}});var YS=U(function(tht,_L){var WS=fe(),VS=ke(),KS=Ne(),Uoe=TypeError;_L.exports=function(t,e){var r,n;if(e==="string"&&VS(r=t.toString)&&!KS(n=WS(r,t))||VS(r=t.valueOf)&&!KS(n=WS(r,t))||e!=="string"&&VS(r=t.toString)&&!KS(n=WS(r,t)))return n;throw Uoe("Can't convert object to primitive value")}});var gt=U(function(rht,PL){PL.exports=!1});var Km=U(function(nht,TL){var EL=be(),Boe=Object.defineProperty;TL.exports=function(t,e){try{Boe(EL,t,{value:e,configurable:!0,writable:!0})}catch(r){EL[t]=e}return e}});var Xp=U(function(iht,xL){var Goe=be(),$oe=Km(),AL="__core-js_shared__",zoe=Goe[AL]||$oe(AL,{});xL.exports=zoe});var za=U(function(oht,IL){var Hoe=gt(),RL=Xp();(IL.exports=function(t,e){return RL[t]||(RL[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.24.1",mode:Hoe?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})});var $e=U(function(aht,kL){var Woe=$t(),Voe=Object;kL.exports=function(t){return Voe(Woe(t))}});var Ue=U(function(uht,jL){var Koe=ce(),Yoe=$e(),Xoe=Koe({}.hasOwnProperty);jL.exports=Object.hasOwn||function(e,r){return Xoe(Yoe(e),r)}});var gs=U(function(sht,qL){var Qoe=ce(),Joe=0,Zoe=Math.random(),eae=Qoe(1 .toString);qL.exports=function(t){return"Symbol("+(t===void 0?"":t)+")_"+eae(++Joe+Zoe,36)}});var _e=U(function(lht,DL){var tae=be(),rae=za(),FL=Ue(),nae=gs(),LL=ms(),NL=zS(),mc=rae("wks"),bs=tae.Symbol,CL=bs&&bs.for,iae=NL?bs:bs&&bs.withoutSetter||nae;DL.exports=function(t){if(!FL(mc,t)||!(LL||typeof mc[t]=="string")){var e="Symbol."+t;LL&&FL(bs,t)?mc[t]=bs[t]:NL&&CL?mc[t]=CL(e):mc[t]=iae(e)}return mc[t]}});var Ym=U(function(cht,BL){var oae=fe(),ML=Ne(),UL=Ga(),aae=tr(),uae=YS(),sae=_e(),lae=TypeError,cae=sae("toPrimitive");BL.exports=function(t,e){if(!ML(t)||UL(t))return t;var r=aae(t,cae),n;if(r){if(e===void 0&&(e="default"),n=oae(r,t,e),!ML(n)||UL(n))return n;throw lae("Can't convert object to primitive value")}return e===void 0&&(e="number"),uae(t,e)}});var no=U(function(fht,GL){var fae=Ym(),pae=Ga();GL.exports=function(t){var e=fae(t,"string");return pae(e)?e:e+""}});var Qp=U(function(pht,zL){var hae=be(),$L=Ne(),XS=hae.document,dae=$L(XS)&&$L(XS.createElement);zL.exports=function(t){return dae?XS.createElement(t):{}}});var QS=U(function(hht,HL){var vae=xe(),yae=le(),mae=Qp();HL.exports=!vae&&!yae(function(){return Object.defineProperty(mae("div"),"a",{get:function(){return 7}}).a!=7})});var _r=U(function(VL){var gae=xe(),bae=fe(),wae=Yp(),Oae=In(),Sae=zt(),_ae=no(),Pae=Ue(),Eae=QS(),WL=Object.getOwnPropertyDescriptor;VL.f=gae?WL:function(e,r){if(e=Sae(e),r=_ae(r),Eae)try{return WL(e,r)}catch(n){}if(Pae(e,r))return Oae(!bae(wae.f,e,r),e[r])}});var JS=U(function(vht,KL){var Tae=xe(),Aae=le();KL.exports=Tae&&Aae(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var ie=U(function(yht,YL){var xae=Ne(),Rae=String,Iae=TypeError;YL.exports=function(t){if(xae(t))return t;throw Iae(Rae(t)+" is not an object")}});var it=U(function(QL){var kae=xe(),jae=QS(),qae=JS(),Xm=ie(),XL=no(),Fae=TypeError,ZS=Object.defineProperty,Lae=Object.getOwnPropertyDescriptor,e1="enumerable",t1="configurable",r1="writable";QL.f=kae?qae?function(e,r,n){if(Xm(e),r=XL(r),Xm(n),typeof e=="function"&&r==="prototype"&&"value"in n&&r1 in n&&!n[r1]){var i=Lae(e,r);i&&i[r1]&&(e[r]=n.value,n={configurable:t1 in n?n[t1]:i[t1],enumerable:e1 in n?n[e1]:i[e1],writable:!1})}return ZS(e,r,n)}:ZS:function(e,r,n){if(Xm(e),r=XL(r),Xm(n),jae)try{return ZS(e,r,n)}catch(i){}if("get"in n||"set"in n)throw Fae("Accessors not supported");return"value"in n&&(e[r]=n.value),e}});var rr=U(function(ght,JL){var Cae=xe(),Nae=it(),Dae=In();JL.exports=Cae?function(t,e,r){return Nae.f(t,e,Dae(1,r))}:function(t,e,r){return t[e]=r,t}});var ws=U(function(bht,eC){var n1=xe(),Mae=Ue(),ZL=Function.prototype,Uae=n1&&Object.getOwnPropertyDescriptor,i1=Mae(ZL,"name"),Bae=i1&&function(){}.name==="something",Gae=i1&&(!n1||n1&&Uae(ZL,"name").configurable);eC.exports={EXISTS:i1,PROPER:Bae,CONFIGURABLE:Gae}});var gc=U(function(wht,tC){var $ae=ce(),zae=ke(),o1=Xp(),Hae=$ae(Function.toString);zae(o1.inspectSource)||(o1.inspectSource=function(t){return Hae(t)});tC.exports=o1.inspectSource});var a1=U(function(Oht,nC){var Wae=be(),Vae=ke(),Kae=gc(),rC=Wae.WeakMap;nC.exports=Vae(rC)&&/native code/.test(Kae(rC))});var Jp=U(function(Sht,oC){var Yae=za(),Xae=gs(),iC=Yae("keys");oC.exports=function(t){return iC[t]||(iC[t]=Xae(t))}});var bc=U(function(_ht,aC){aC.exports={}});var at=U(function(Pht,fC){var Qae=a1(),cC=be(),u1=ce(),Jae=Ne(),Zae=rr(),s1=Ue(),l1=Xp(),eue=Jp(),tue=bc(),uC="Object already initialized",f1=cC.TypeError,rue=cC.WeakMap,Qm,Zp,Jm,nue=function(e){return Jm(e)?Zp(e):Qm(e,{})},iue=function(e){return function(r){var n;if(!Jae(r)||(n=Zp(r)).type!==e)throw f1("Incompatible receiver, "+e+" required");return n}};Qae||l1.state?(Ha=l1.state||(l1.state=new rue),sC=u1(Ha.get),c1=u1(Ha.has),lC=u1(Ha.set),Qm=function(e,r){if(c1(Ha,e))throw new f1(uC);return r.facade=e,lC(Ha,e,r),r},Zp=function(e){return sC(Ha,e)||{}},Jm=function(e){return c1(Ha,e)}):(Os=eue("state"),tue[Os]=!0,Qm=function(e,r){if(s1(e,Os))throw new f1(uC);return r.facade=e,Zae(e,Os,r),r},Zp=function(e){return s1(e,Os)?e[Os]:{}},Jm=function(e){return s1(e,Os)});var Ha,sC,c1,lC,Os;fC.exports={set:Qm,get:Zp,has:Jm,enforce:nue,getterFor:iue}});var tg=U(function(Eht,hC){var oue=le(),aue=ke(),Zm=Ue(),p1=xe(),uue=ws().CONFIGURABLE,sue=gc(),pC=at(),lue=pC.enforce,cue=pC.get,eg=Object.defineProperty,fue=p1&&!oue(function(){return eg(function(){},"length",{value:8}).length!==8}),pue=String(String).split("String"),hue=hC.exports=function(t,e,r){String(e).slice(0,7)==="Symbol("&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Zm(t,"name")||uue&&t.name!==e)&&(p1?eg(t,"name",{value:e,configurable:!0}):t.name=e),fue&&r&&Zm(r,"arity")&&t.length!==r.arity&&eg(t,"length",{value:r.arity});try{r&&Zm(r,"constructor")&&r.constructor?p1&&eg(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var n=lue(t);return Zm(n,"source")||(n.source=pue.join(typeof e=="string"?e:"")),t};Function.prototype.toString=hue(function(){return aue(this)&&cue(this).source||sue(this)},"toString")});var bt=U(function(Tht,dC){var due=ke(),vue=it(),yue=tg(),mue=Km();dC.exports=function(t,e,r,n){n||(n={});var i=n.enumerable,a=n.name!==void 0?n.name:e;if(due(r)&&yue(r,a,n),n.global)i?t[e]=r:mue(e,r);else{try{n.unsafe?t[e]&&(i=!0):delete t[e]}catch(l){}i?t[e]=r:vue.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t}});var h1=U(function(Aht,vC){var gue=Math.ceil,bue=Math.floor;vC.exports=Math.trunc||function(e){var r=+e;return(r>0?bue:gue)(r)}});var Pt=U(function(xht,yC){var wue=h1();yC.exports=function(t){var e=+t;return e!==e||e===0?0:wue(e)}});var Ai=U(function(Rht,mC){var Oue=Pt(),Sue=Math.max,_ue=Math.min;mC.exports=function(t,e){var r=Oue(t);return r<0?Sue(r+e,0):_ue(r,e)}});var kn=U(function(Iht,gC){var Pue=Pt(),Eue=Math.min;gC.exports=function(t){return t>0?Eue(Pue(t),9007199254740991):0}});var ze=U(function(kht,bC){var Tue=kn();bC.exports=function(t){return Tue(t.length)}});var eh=U(function(jht,OC){var Aue=zt(),xue=Ai(),Rue=ze(),wC=function(e){return function(r,n,i){var a=Aue(r),l=Rue(a),c=xue(i,l),f;if(e&&n!=n){for(;l>c;)if(f=a[c++],f!=f)return!0}else for(;l>c;c++)if((e||c in a)&&a[c]===n)return e||c||0;return!e&&-1}};OC.exports={includes:wC(!0),indexOf:wC(!1)}});var v1=U(function(qht,_C){var Iue=ce(),d1=Ue(),kue=zt(),jue=eh().indexOf,que=bc(),SC=Iue([].push);_C.exports=function(t,e){var r=kue(t),n=0,i=[],a;for(a in r)!d1(que,a)&&d1(r,a)&&SC(i,a);for(;e.length>n;)d1(r,a=e[n++])&&(~jue(i,a)||SC(i,a));return i}});var rg=U(function(Fht,PC){PC.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Bo=U(function(EC){var Fue=v1(),Lue=rg(),Cue=Lue.concat("length","prototype");EC.f=Object.getOwnPropertyNames||function(e){return Fue(e,Cue)}});var th=U(function(TC){TC.f=Object.getOwnPropertySymbols});var ng=U(function(Nht,AC){var Nue=Oe(),Due=ce(),Mue=Bo(),Uue=th(),Bue=ie(),Gue=Due([].concat);AC.exports=Nue("Reflect","ownKeys")||function(e){var r=Mue.f(Bue(e)),n=Uue.f;return n?Gue(r,n(e)):r}});var rh=U(function(Dht,RC){var xC=Ue(),$ue=ng(),zue=_r(),Hue=it();RC.exports=function(t,e,r){for(var n=$ue(e),i=Hue.f,a=zue.f,l=0;l<n.length;l++){var c=n[l];!xC(t,c)&&!(r&&xC(r,c))&&i(t,c,a(e,c))}}});var wc=U(function(Mht,IC){var Wue=le(),Vue=ke(),Kue=/#|\.prototype\./,nh=function(e,r){var n=Xue[Yue(e)];return n==Jue?!0:n==Que?!1:Vue(r)?Wue(r):!!r},Yue=nh.normalize=function(t){return String(t).replace(Kue,".").toLowerCase()},Xue=nh.data={},Que=nh.NATIVE="N",Jue=nh.POLYFILL="P";IC.exports=nh});var G=U(function(Uht,kC){function ig(t){"@babel/helpers - typeof";return ig=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ig(t)}var y1=be(),Zue=_r().f,ese=rr(),tse=bt(),rse=Km(),nse=rh(),ise=wc();kC.exports=function(t,e){var r=t.target,n=t.global,i=t.stat,a,l,c,f,d,y;if(n?l=y1:i?l=y1[r]||rse(r,{}):l=(y1[r]||{}).prototype,l)for(c in e){if(d=e[c],t.dontCallGetSet?(y=Zue(l,c),f=y&&y.value):f=l[c],a=ise(n?c:r+(i?".":"#")+c,t.forced),!a&&f!==void 0){if(ig(d)==ig(f))continue;nse(d,f)}(t.sham||f&&f.sham)&&ese(d,"sham",!0),tse(l,c,d,t)}}});var og=U(function(Bht,qC){var ose=_e(),ase=ose("toStringTag"),jC={};jC[ase]="z";qC.exports=String(jC)==="[object z]"});var xi=U(function(Ght,FC){var use=og(),sse=ke(),ag=hn(),lse=_e(),cse=lse("toStringTag"),fse=Object,pse=ag(function(){return arguments}())=="Arguments",hse=function(e,r){try{return e[r]}catch(n){}};FC.exports=use?ag:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=hse(e=fse(t),cse))=="string"?r:pse?ag(e):(n=ag(e))=="Object"&&sse(e.callee)?"Arguments":n}});var He=U(function($ht,LC){var dse=xi(),vse=String;LC.exports=function(t){if(dse(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return vse(t)}});var Ss=U(function(zht,CC){var yse=v1(),mse=rg();CC.exports=Object.keys||function(e){return yse(e,mse)}});var ug=U(function(NC){var gse=xe(),bse=JS(),wse=it(),Ose=ie(),Sse=zt(),_se=Ss();NC.f=gse&&!bse?Object.defineProperties:function(e,r){Ose(e);for(var n=Sse(r),i=_se(r),a=i.length,l=0,c;a>l;)wse.f(e,c=i[l++],n[c]);return e}});var m1=U(function(Wht,DC){var Pse=Oe();DC.exports=Pse("document","documentElement")});var Ht=U(function(Vht,HC){var Ese=ie(),Tse=ug(),MC=rg(),Ase=bc(),xse=m1(),Rse=Qp(),Ise=Jp(),UC=">",BC="<",b1="prototype",w1="script",$C=Ise("IE_PROTO"),g1=function(){},zC=function(e){return BC+w1+UC+e+BC+"/"+w1+UC},GC=function(e){e.write(zC("")),e.close();var r=e.parentWindow.Object;return e=null,r},kse=function(){var e=Rse("iframe"),r="java"+w1+":",n;return e.style.display="none",xse.appendChild(e),e.src=String(r),n=e.contentWindow.document,n.open(),n.write(zC("document.F=Object")),n.close(),n.F},sg,lg=function(){try{sg=new ActiveXObject("htmlfile")}catch(r){}lg=typeof document!="undefined"?document.domain&&sg?GC(sg):kse():GC(sg);for(var e=MC.length;e--;)delete lg[b1][MC[e]];return lg()};Ase[$C]=!0;HC.exports=Object.create||function(e,r){var n;return e!==null?(g1[b1]=Ese(e),n=new g1,g1[b1]=null,n[$C]=e):n=lg(),r===void 0?n:Tse.f(n,r)}});var io=U(function(Kht,WC){"use strict";var jse=no(),qse=it(),Fse=In();WC.exports=function(t,e,r){var n=jse(e);n in t?qse.f(t,n,Fse(0,r)):t[n]=r}});var Oc=U(function(Yht,KC){var VC=Ai(),Lse=ze(),Cse=io(),Nse=Array,Dse=Math.max;KC.exports=function(t,e,r){for(var n=Lse(t),i=VC(e,n),a=VC(r===void 0?n:r,n),l=Nse(Dse(a-i,0)),c=0;i<a;i++,c++)Cse(l,c,t[i]);return l.length=c,l}});var cg=U(function(Xht,QC){function O1(t){"@babel/helpers - typeof";return O1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O1(t)}var Mse=hn(),Use=zt(),YC=Bo().f,Bse=Oc(),XC=(typeof window=="undefined"?"undefined":O1(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Gse=function(e){try{return YC(e)}catch(r){return Bse(XC)}};QC.exports.f=function(e){return XC&&Mse(e)=="Window"?Gse(e):YC(Use(e))}});var S1=U(function(JC){var $se=_e();JC.f=$se});var eN=U(function(Jht,ZC){var zse=be();ZC.exports=zse});var Et=U(function(Zht,rN){var tN=eN(),Hse=Ue(),Wse=S1(),Vse=it().f;rN.exports=function(t){var e=tN.Symbol||(tN.Symbol={});Hse(e,t)||Vse(e,t,{value:Wse.f(t)})}});var _1=U(function(edt,nN){var Kse=fe(),Yse=Oe(),Xse=_e(),Qse=bt();nN.exports=function(){var t=Yse("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=Xse("toPrimitive");e&&!e[n]&&Qse(e,n,function(i){return Kse(r,this)},{arity:1})}});var dn=U(function(tdt,oN){var Jse=it().f,Zse=Ue(),ele=_e(),iN=ele("toStringTag");oN.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Zse(t,iN)&&Jse(t,iN,{configurable:!0,value:e})}});var ut=U(function(rdt,uN){var aN=ce(),tle=ge(),rle=yc(),nle=aN(aN.bind);uN.exports=function(t,e){return tle(t),e===void 0?t:rle?nle(t,e):function(){return t.apply(e,arguments)}}});var _s=U(function(ndt,sN){var ile=hn();sN.exports=Array.isArray||function(e){return ile(e)=="Array"}});var Ri=U(function(idt,hN){var ole=ce(),ale=le(),lN=ke(),ule=xi(),sle=Oe(),lle=gc(),cN=function(){},cle=[],fN=sle("Reflect","construct"),P1=/^\s*(?:class|function)\b/,fle=ole(P1.exec),ple=!P1.exec(cN),ih=function(e){if(!lN(e))return!1;try{return fN(cN,cle,e),!0}catch(r){return!1}},pN=function(e){if(!lN(e))return!1;switch(ule(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ple||!!fle(P1,lle(e))}catch(r){return!0}};pN.sham=!0;hN.exports=!fN||ale(function(){var t;return ih(ih.call)||!ih(Object)||!ih(function(){t=!0})||t})?pN:ih});var mN=U(function(odt,yN){var dN=_s(),hle=Ri(),dle=Ne(),vle=_e(),yle=vle("species"),vN=Array;yN.exports=function(t){var e;return dN(t)&&(e=t.constructor,hle(e)&&(e===vN||dN(e.prototype))?e=void 0:dle(e)&&(e=e[yle],e===null&&(e=void 0))),e===void 0?vN:e}});var Ps=U(function(adt,gN){var mle=mN();gN.exports=function(t,e){return new(mle(t))(e===0?0:e)}});var Wt=U(function(udt,wN){var gle=ut(),ble=ce(),wle=Mo(),Ole=$e(),Sle=ze(),_le=Ps(),bN=ble([].push),Wa=function(e){var r=e==1,n=e==2,i=e==3,a=e==4,l=e==6,c=e==7,f=e==5||l;return function(d,y,m,g){for(var w=Ole(d),P=wle(w),E=gle(y,m),O=Sle(P),R=0,x=g||_le,A=r?x(d,O):n||c?x(d,0):void 0,I,N;O>R;R++)if((f||R in P)&&(I=P[R],N=E(I,R,w),e))if(r)A[R]=N;else if(N)switch(e){case 3:return!0;case 5:return I;case 6:return R;case 2:bN(A,I)}else switch(e){case 4:return!1;case 7:bN(A,I)}return l?-1:i||a?a:A}};wN.exports={forEach:Wa(0),map:Wa(1),filter:Wa(2),some:Wa(3),every:Wa(4),find:Wa(5),findIndex:Wa(6),filterReject:Wa(7)}});var CN=U(function(){"use strict";var fg=G(),q1=be(),F1=fe(),Ple=ce(),Ele=gt(),Sc=xe(),_c=ms(),Tle=le(),yr=Ue(),Ale=Wr(),x1=ie(),pg=zt(),L1=no(),xle=He(),R1=In(),ah=Ht(),_N=Ss(),Rle=Bo(),PN=cg(),Ile=th(),EN=_r(),TN=it(),kle=ug(),AN=Yp(),E1=bt(),C1=za(),jle=Jp(),xN=bc(),ON=gs(),qle=_e(),Fle=S1(),Lle=Et(),Cle=_1(),Nle=dn(),RN=at(),hg=Wt().forEach,vn=jle("hidden"),dg="Symbol",uh="prototype",Dle=RN.set,SN=RN.getterFor(dg),ii=Object[uh],Es=q1.Symbol,oh=Es&&Es[uh],Mle=q1.TypeError,T1=q1.QObject,IN=EN.f,Va=TN.f,kN=PN.f,Ule=AN.f,jN=Ple([].push),Go=C1("symbols"),sh=C1("op-symbols"),Ble=C1("wks"),I1=!T1||!T1[uh]||!T1[uh].findChild,k1=Sc&&Tle(function(){return ah(Va({},"a",{get:function(){return Va(this,"a",{value:7}).a}})).a!=7})?function(t,e,r){var n=IN(ii,e);n&&delete ii[e],Va(t,e,r),n&&t!==ii&&Va(ii,e,n)}:Va,A1=function(e,r){var n=Go[e]=ah(oh);return Dle(n,{type:dg,tag:e,description:r}),Sc||(n.description=r),n},vg=function(e,r,n){e===ii&&vg(sh,r,n),x1(e);var i=L1(r);return x1(n),yr(Go,i)?(n.enumerable?(yr(e,vn)&&e[vn][i]&&(e[vn][i]=!1),n=ah(n,{enumerable:R1(0,!1)})):(yr(e,vn)||Va(e,vn,R1(1,{})),e[vn][i]=!0),k1(e,i,n)):Va(e,i,n)},N1=function(e,r){x1(e);var n=pg(r),i=_N(n).concat(LN(n));return hg(i,function(a){(!Sc||F1(j1,n,a))&&vg(e,a,n[a])}),e},Gle=function(e,r){return r===void 0?ah(e):N1(ah(e),r)},j1=function(e){var r=L1(e),n=F1(Ule,this,r);return this===ii&&yr(Go,r)&&!yr(sh,r)?!1:n||!yr(this,r)||!yr(Go,r)||yr(this,vn)&&this[vn][r]?n:!0},qN=function(e,r){var n=pg(e),i=L1(r);if(!(n===ii&&yr(Go,i)&&!yr(sh,i))){var a=IN(n,i);return a&&yr(Go,i)&&!(yr(n,vn)&&n[vn][i])&&(a.enumerable=!0),a}},FN=function(e){var r=kN(pg(e)),n=[];return hg(r,function(i){!yr(Go,i)&&!yr(xN,i)&&jN(n,i)}),n},LN=function(e){var r=e===ii,n=kN(r?sh:pg(e)),i=[];return hg(n,function(a){yr(Go,a)&&(!r||yr(ii,a))&&jN(i,Go[a])}),i};_c||(Es=function(){if(Ale(oh,this))throw Mle("Symbol is not a constructor");var e=!arguments.length||arguments[0]===void 0?void 0:xle(arguments[0]),r=ON(e),n=function i(a){this===ii&&F1(i,sh,a),yr(this,vn)&&yr(this[vn],r)&&(this[vn][r]=!1),k1(this,r,R1(1,a))};return Sc&&I1&&k1(ii,r,{configurable:!0,set:n}),A1(r,e)},oh=Es[uh],E1(oh,"toString",function(){return SN(this).tag}),E1(Es,"withoutSetter",function(t){return A1(ON(t),t)}),AN.f=j1,TN.f=vg,kle.f=N1,EN.f=qN,Rle.f=PN.f=FN,Ile.f=LN,Fle.f=function(t){return A1(qle(t),t)},Sc&&(Va(oh,"description",{configurable:!0,get:function(){return SN(this).description}}),Ele||E1(ii,"propertyIsEnumerable",j1,{unsafe:!0})));fg({global:!0,constructor:!0,wrap:!0,forced:!_c,sham:!_c},{Symbol:Es});hg(_N(Ble),function(t){Lle(t)});fg({target:dg,stat:!0,forced:!_c},{useSetter:function(){I1=!0},useSimple:function(){I1=!1}});fg({target:"Object",stat:!0,forced:!_c,sham:!Sc},{create:Gle,defineProperty:vg,defineProperties:N1,getOwnPropertyDescriptor:qN});fg({target:"Object",stat:!0,forced:!_c},{getOwnPropertyNames:FN});Cle();Nle(Es,dg);xN[vn]=!0});var D1=U(function(cdt,NN){var $le=ms();NN.exports=$le&&!!Symbol.for&&!!Symbol.keyFor});var MN=U(function(){var zle=G(),Hle=Oe(),Wle=Ue(),Vle=He(),DN=za(),Kle=D1(),M1=DN("string-to-symbol-registry"),Yle=DN("symbol-to-string-registry");zle({target:"Symbol",stat:!0,forced:!Kle},{for:function(e){var r=Vle(e);if(Wle(M1,r))return M1[r];var n=Hle("Symbol")(r);return M1[r]=n,Yle[n]=r,n}})});var BN=U(function(){var Xle=G(),Qle=Ue(),Jle=Ga(),Zle=$a(),ece=za(),tce=D1(),UN=ece("symbol-to-string-registry");Xle({target:"Symbol",stat:!0,forced:!tce},{keyFor:function(e){if(!Jle(e))throw TypeError(Zle(e)+" is not a symbol");if(Qle(UN,e))return UN[e]}})});var yn=U(function(vdt,HN){function U1(t){"@babel/helpers - typeof";return U1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U1(t)}var rce=yc(),zN=Function.prototype,GN=zN.apply,$N=zN.call;HN.exports=(typeof Reflect=="undefined"?"undefined":U1(Reflect))=="object"&&Reflect.apply||(rce?$N.bind(GN):function(){return $N.apply(GN,arguments)})});var Ka=U(function(ydt,WN){var nce=ce();WN.exports=nce([].slice)});var B1=U(function(){var ice=G(),ZN=Oe(),eD=yn(),oce=fe(),lh=ce(),tD=le(),ace=_s(),uce=ke(),sce=Ne(),VN=Ga(),rD=Ka(),lce=ms(),Ya=ZN("JSON","stringify"),yg=lh(/./.exec),KN=lh("".charAt),cce=lh("".charCodeAt),fce=lh("".replace),pce=lh(1 .toString),hce=/[\uD800-\uDFFF]/g,YN=/^[\uD800-\uDBFF]$/,XN=/^[\uDC00-\uDFFF]$/,QN=!lce||tD(function(){var t=ZN("Symbol")();return Ya([t])!="[null]"||Ya({a:t})!="{}"||Ya(Object(t))!="{}"}),JN=tD(function(){return Ya("\uDF06\uD834")!=='"\\udf06\\ud834"'||Ya("\uDEAD")!=='"\\udead"'}),dce=function(e,r){var n=rD(arguments),i=r;if(!(!sce(r)&&e===void 0||VN(e)))return ace(r)||(r=function(l,c){if(uce(i)&&(c=oce(i,this,l,c)),!VN(c))return c}),n[1]=r,eD(Ya,null,n)},vce=function(e,r,n){var i=KN(n,r-1),a=KN(n,r+1);return yg(YN,e)&&!yg(XN,a)||yg(XN,e)&&!yg(YN,i)?"\\u"+pce(cce(e,0),16):e};Ya&&ice({target:"JSON",stat:!0,arity:3,forced:QN||JN},{stringify:function(e,r,n){var i=rD(arguments),a=eD(QN?dce:Ya,null,i);return JN&&typeof a=="string"?fce(a,hce,vce):a}})});var iD=U(function(){var yce=G(),mce=ms(),gce=le(),nD=th(),bce=$e(),wce=!mce||gce(function(){nD.f(1)});yce({target:"Object",stat:!0,forced:wce},{getOwnPropertySymbols:function(e){var r=nD.f;return r?r(bce(e)):[]}})});var z1=U(function(Odt,fD){function $1(t){"@babel/helpers - typeof";return $1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$1(t)}var Wce=ke(),Vce=String,Kce=TypeError;fD.exports=function(t){if($1(t)=="object"||Wce(t))return t;throw Kce("Can't set "+Vce(t)+" as a prototype")}});var oo=U(function(Sdt,pD){var Yce=ce(),Xce=ie(),Qce=z1();pD.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},r;try{r=Yce(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),r(e,[]),t=e instanceof Array}catch(n){}return function(i,a){return Xce(i),Qce(a),t?r(i,a):i.__proto__=a,i}}():void 0)});var H1=U(function(_dt,hD){var Jce=it().f;hD.exports=function(t,e,r){r in t||Jce(t,r,{configurable:!0,get:function(){return e[r]},set:function(i){e[r]=i}})}});var As=U(function(Pdt,vD){var Zce=ke(),efe=Ne(),dD=oo();vD.exports=function(t,e,r){var n,i;return dD&&Zce(n=e.constructor)&&n!==r&&efe(i=n.prototype)&&i!==r.prototype&&dD(t,i),t}});var Pc=U(function(Edt,yD){var tfe=He();yD.exports=function(t,e){return t===void 0?arguments.length<2?"":e:tfe(t)}});var W1=U(function(Tdt,mD){var rfe=Ne(),nfe=rr();mD.exports=function(t,e){rfe(e)&&"cause"in e&&nfe(t,"cause",e.cause)}});var fh=U(function(Adt,wD){var ife=ce(),gD=Error,ofe=ife("".replace),afe=function(t){return String(gD(t).stack)}("zxcasd"),bD=/\n\s*at [^:]*:[^\n]*/,ufe=bD.test(afe);wD.exports=function(t,e){if(ufe&&typeof t=="string"&&!gD.prepareStackTrace)for(;e--;)t=ofe(t,bD,"");return t}});var gg=U(function(xdt,OD){var sfe=le(),lfe=In();OD.exports=!sfe(function(){var t=Error("a");return"stack"in t?(Object.defineProperty(t,"stack",lfe(1,7)),t.stack!==7):!0})});var K1=U(function(Rdt,AD){"use strict";var SD=Oe(),cfe=Ue(),V1=rr(),ffe=Wr(),_D=oo(),PD=rh(),ED=H1(),pfe=As(),hfe=Pc(),dfe=W1(),vfe=fh(),yfe=gg(),mfe=xe(),TD=gt();AD.exports=function(t,e,r,n){var i="stackTraceLimit",a=n?2:1,l=t.split("."),c=l[l.length-1],f=SD.apply(null,l);if(f){var d=f.prototype;if(!TD&&cfe(d,"cause")&&delete d.cause,!r)return f;var y=SD("Error"),m=e(function(g,w){var P=hfe(n?w:g,void 0),E=n?new f(g):new f;return P!==void 0&&V1(E,"message",P),yfe&&V1(E,"stack",vfe(E.stack,2)),this&&ffe(d,this)&&pfe(E,this,m),arguments.length>a&&dfe(E,arguments[a]),E});if(m.prototype=d,c!=="Error"?_D?_D(m,y):PD(m,y,{name:!0}):mfe&&i in f&&(ED(m,f,i),ED(m,f,"prepareStackTrace")),PD(m,f),!TD)try{d.name!==c&&V1(d,"name",c),d.constructor=m}catch(g){}return m}}});var wg=U(function(Idt,kD){var bfe=le();kD.exports=!bfe(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})});var Pr=U(function(kdt,qD){var wfe=Ue(),Ofe=ke(),Sfe=$e(),_fe=Jp(),Pfe=wg(),jD=_fe("IE_PROTO"),Q1=Object,Efe=Q1.prototype;qD.exports=Pfe?Q1.getPrototypeOf:function(t){var e=Sfe(t);if(wfe(e,jD))return e[jD];var r=e.constructor;return Ofe(r)&&e instanceof r?r.prototype:e instanceof Q1?Efe:null}});var Ec=U(function(jdt,FD){FD.exports={}});var Og=U(function(qdt,LD){var Tfe=_e(),Afe=Ec(),xfe=Tfe("iterator"),Rfe=Array.prototype;LD.exports=function(t){return t!==void 0&&(Afe.Array===t||Rfe[xfe]===t)}});var uo=U(function(Fdt,ND){var Ife=xi(),CD=tr(),kfe=Ec(),jfe=_e(),qfe=jfe("iterator");ND.exports=function(t){if(t!=null)return CD(t,qfe)||CD(t,"@@iterator")||kfe[Ife(t)]}});var oi=U(function(Ldt,DD){var Ffe=fe(),Lfe=ge(),Cfe=ie(),Nfe=$a(),Dfe=uo(),Mfe=TypeError;DD.exports=function(t,e){var r=arguments.length<2?Dfe(t):e;if(Lfe(r))return Cfe(Ffe(r,t));throw Mfe(Nfe(t)+" is not iterable")}});var Rs=U(function(Cdt,UD){var Ufe=fe(),MD=ie(),Bfe=tr();UD.exports=function(t,e,r){var n,i;MD(t);try{if(n=Bfe(t,"return"),!n){if(e==="throw")throw r;return r}n=Ufe(n,t)}catch(a){i=!0,n=a}if(e==="throw")throw r;if(i)throw n;return MD(n),r}});var Te=U(function(Ndt,zD){function J1(t){"@babel/helpers - typeof";return J1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J1(t)}var Gfe=ut(),$fe=fe(),zfe=ie(),Hfe=$a(),Wfe=Og(),Vfe=ze(),BD=Wr(),Kfe=oi(),Yfe=uo(),GD=Rs(),Xfe=TypeError,Sg=function(e,r){this.stopped=e,this.result=r},$D=Sg.prototype;zD.exports=function(t,e,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),a=!!(r&&r.IS_RECORD),l=!!(r&&r.IS_ITERATOR),c=!!(r&&r.INTERRUPTED),f=Gfe(e,n),d,y,m,g,w,P,E,O=function(A){return d&&GD(d,"normal",A),new Sg(!0,A)},R=function(A){return i?(zfe(A),c?f(A[0],A[1],O):f(A[0],A[1])):c?f(A,O):f(A)};if(a)d=t.iterator;else if(l)d=t;else{if(y=Yfe(t),!y)throw Xfe(Hfe(t)+" is not iterable");if(Wfe(y)){for(m=0,g=Vfe(t);g>m;m++)if(w=R(t[m]),w&&BD($D,w))return w;return new Sg(!1)}d=Kfe(t,y)}for(P=a?t.next:d.next;!(E=$fe(P,d)).done;){try{w=R(E.value)}catch(x){GD(d,"throw",x)}if(J1(w)=="object"&&w&&BD($D,w))return w}return new Sg(!1)}});var WD=U(function(){"use strict";var Qfe=G(),Jfe=Wr(),Zfe=Pr(),Pg=oo(),epe=rh(),HD=Ht(),_g=rr(),Z1=In(),tpe=fh(),rpe=W1(),npe=Te(),ipe=Pc(),ope=_e(),ape=gg(),upe=ope("toStringTag"),Eg=Error,spe=[].push,ph=function(e,r){var n=arguments.length>2?arguments[2]:void 0,i=Jfe(e_,this),a;Pg?a=Pg(new Eg,i?Zfe(this):e_):(a=i?this:HD(e_),_g(a,upe,"Error")),r!==void 0&&_g(a,"message",ipe(r)),ape&&_g(a,"stack",tpe(a.stack,1)),rpe(a,n);var l=[];return npe(e,spe,{that:l}),_g(a,"errors",l),a};Pg?Pg(ph,Eg):epe(ph,Eg,{name:!0});var e_=ph.prototype=HD(Eg.prototype,{constructor:Z1(1,ph),message:Z1(1,""),name:Z1(1,"AggregateError")});Qfe({global:!0,constructor:!0,arity:2},{AggregateError:ph})});var wt=U(function(Udt,XD){var hpe=_e(),dpe=Ht(),vpe=it().f,r_=hpe("unscopables"),n_=Array.prototype;n_[r_]==null&&vpe(n_,r_,{configurable:!0,value:dpe(null)});XD.exports=function(t){n_[r_][t]=!0}});var Is=U(function(Bdt,QD){var Ope=TypeError,Spe=9007199254740991;QD.exports=function(t){if(t>Spe)throw Ope("Maximum allowed index exceeded");return t}});var Tc=U(function(Gdt,JD){var _pe=le(),Ppe=_e(),Epe=Ba(),Tpe=Ppe("species");JD.exports=function(t){return Epe>=51||!_pe(function(){var e=[],r=e.constructor={};return r[Tpe]=function(){return{foo:1}},e[t](Boolean).foo!==1})}});var Tg=U(function($dt,nM){"use strict";var rM=$a(),Bpe=TypeError;nM.exports=function(t,e){if(!delete t[e])throw Bpe("Cannot delete property "+rM(e)+" of "+rM(t))}});var o_=U(function(zdt,iM){"use strict";var Gpe=$e(),i_=Ai(),$pe=ze(),zpe=Tg(),Hpe=Math.min;iM.exports=[].copyWithin||function(e,r){var n=Gpe(this),i=$pe(n),a=i_(e,i),l=i_(r,i),c=arguments.length>2?arguments[2]:void 0,f=Hpe((c===void 0?i:i_(c,i))-l,i-a),d=1;for(l<a&&a<l+f&&(d=-1,l+=f-1,a+=f-1);f-- >0;)l in n?n[a]=n[l]:zpe(n,a),a+=d,l+=d;return n}});var Ag=U(function(Hdt,aM){"use strict";var Ype=$e(),oM=Ai(),Xpe=ze();aM.exports=function(e){for(var r=Ype(this),n=Xpe(r),i=arguments.length,a=oM(i>1?arguments[1]:void 0,n),l=i>2?arguments[2]:void 0,c=l===void 0?n:oM(l,n);c>a;)r[a++]=e;return r}});var hh=U(function(Wdt,cM){var che=ut(),fhe=Mo(),phe=$e(),hhe=ze(),lM=function(e){var r=e==1;return function(n,i,a){for(var l=phe(n),c=fhe(l),f=che(i,a),d=hhe(c),y,m;d-- >0;)if(y=c[d],m=f(y,d,l),m)switch(e){case 0:return y;case 1:return d}return r?-1:void 0}};cM.exports={findLast:lM(0),findLastIndex:lM(1)}});var s_=U(function(Vdt,fM){"use strict";var whe=_s(),Ohe=ze(),She=Is(),_he=ut(),Phe=function t(e,r,n,i,a,l,c,f){for(var d=a,y=0,m=c?_he(c,f):!1,g,w;y<i;)y in n&&(g=m?m(n[y],y,r):n[y],l>0&&whe(g)?(w=Ohe(g),d=t(e,r,g,w,d,l-1)-1):(She(d+1),e[d]=g),d++),y++;return d};fM.exports=Phe});var xg=U(function(Kdt,pM){var Nhe=ie(),Dhe=Rs();pM.exports=function(t,e,r,n){try{return n?e(Nhe(r)[0],r[1]):e(r)}catch(i){Dhe(t,"throw",i)}}});var l_=U(function(Ydt,vM){"use strict";var Mhe=ut(),Uhe=fe(),Bhe=$e(),Ghe=xg(),$he=Og(),zhe=Ri(),Hhe=ze(),hM=io(),Whe=oi(),Vhe=uo(),dM=Array;vM.exports=function(e){var r=Bhe(e),n=zhe(this),i=arguments.length,a=i>1?arguments[1]:void 0,l=a!==void 0;l&&(a=Mhe(a,i>2?arguments[2]:void 0));var c=Vhe(r),f=0,d,y,m,g,w,P;if(c&&!(this===dM&&$he(c)))for(g=Whe(r,c),w=g.next,y=n?new this:[];!(m=Uhe(w,g)).done;f++)P=l?Ghe(g,a,[m.value,f],!0):m.value,hM(y,f,P);else for(d=Hhe(r),y=n?new this(d):dM(d);d>f;f++)P=l?a(r[f],f):r[f],hM(y,f,P);return y.length=f,y}});var dh=U(function(Xdt,bM){var Khe=_e(),mM=Khe("iterator"),gM=!1;try{yM=0,c_={next:function(){return{done:!!yM++}},return:function(){gM=!0}},c_[mM]=function(){return this},Array.from(c_,function(){throw 2})}catch(t){}var yM,c_;bM.exports=function(t,e){if(!e&&!gM)return!1;var r=!1;try{var n={};n[mM]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(i){}return r}});var Ac=U(function(Qdt,SM){"use strict";var ide=le(),ode=ke(),ade=Ht(),wM=Pr(),ude=bt(),sde=_e(),lde=gt(),h_=sde("iterator"),OM=!1,zo,f_,p_;[].keys&&(p_=[].keys(),"next"in p_?(f_=wM(wM(p_)),f_!==Object.prototype&&(zo=f_)):OM=!0);var cde=zo==null||ide(function(){var t={};return zo[h_].call(t)!==t});cde?zo={}:lde&&(zo=ade(zo));ode(zo[h_])||ude(zo,h_,function(){return this});SM.exports={IteratorPrototype:zo,BUGGY_SAFARI_ITERATORS:OM}});var Xa=U(function(Jdt,_M){"use strict";var fde=Ac().IteratorPrototype,pde=Ht(),hde=In(),dde=dn(),vde=Ec(),yde=function(){return this};_M.exports=function(t,e,r,n){var i=e+" Iterator";return t.prototype=pde(fde,{next:hde(+!n,r)}),dde(t,i,!1,!0),vde[i]=yde,t}});var kg=U(function(Zdt,qM){"use strict";var mde=G(),gde=fe(),Rg=gt(),kM=ws(),bde=ke(),wde=Xa(),PM=Pr(),EM=oo(),Ode=dn(),Sde=rr(),d_=bt(),_de=_e(),TM=Ec(),jM=Ac(),Pde=kM.PROPER,Ede=kM.CONFIGURABLE,AM=jM.IteratorPrototype,Ig=jM.BUGGY_SAFARI_ITERATORS,vh=_de("iterator"),xM="keys",yh="values",RM="entries",IM=function(){return this};qM.exports=function(t,e,r,n,i,a,l){wde(r,e,n);var c=function(x){if(x===i&&g)return g;if(!Ig&&x in y)return y[x];switch(x){case xM:return function(){return new r(this,x)};case yh:return function(){return new r(this,x)};case RM:return function(){return new r(this,x)}}return function(){return new r(this)}},f=e+" Iterator",d=!1,y=t.prototype,m=y[vh]||y["@@iterator"]||i&&y[i],g=!Ig&&m||c(i),w=e=="Array"&&y.entries||m,P,E,O;if(w&&(P=PM(w.call(new t)),P!==Object.prototype&&P.next&&(!Rg&&PM(P)!==AM&&(EM?EM(P,AM):bde(P[vh])||d_(P,vh,IM)),Ode(P,f,!0,!0),Rg&&(TM[f]=IM))),Pde&&i==yh&&m&&m.name!==yh&&(!Rg&&Ede?Sde(y,"name",yh):(d=!0,g=function(){return gde(m,this)})),i)if(E={values:c(yh),keys:a?g:c(xM),entries:c(RM)},l)for(O in E)(Ig||d||!(O in y))&&d_(y,O,E[O]);else mde({target:e,proto:!0,forced:Ig||d},E);return(!Rg||l)&&y[vh]!==g&&d_(y,vh,g,{name:i}),TM[e]=g,E}});var mh=U(function(evt,DM){"use strict";var Tde=zt(),v_=wt(),FM=Ec(),CM=at(),Ade=it().f,xde=kg(),Rde=gt(),Ide=xe(),NM="Array Iterator",kde=CM.set,jde=CM.getterFor(NM);DM.exports=xde(Array,"Array",function(t,e){kde(this,{type:NM,target:Tde(t),index:0,kind:e})},function(){var t=jde(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");var LM=FM.Arguments=FM.Array;v_("keys");v_("values");v_("entries");if(!Rde&&Ide&&LM.name!=="values")try{Ade(LM,"name",{value:"values"})}catch(t){}});var ks=U(function(tvt,MM){"use strict";var qde=le();MM.exports=function(t,e){var r=[][t];return!!r&&qde(function(){r.call(null,e||function(){return 1},1)})}});var jg=U(function(rvt,zM){var $M=Oc(),yve=Math.floor,mve=function t(e,r){var n=e.length,i=yve(n/2);return n<8?gve(e,r):bve(e,t($M(e,0,i),r),t($M(e,i),r),r)},gve=function(e,r){for(var n=e.length,i=1,a,l;i<n;){for(l=i,a=e[i];l&&r(e[l-1],a)>0;)e[l]=e[--l];l!==i++&&(e[l]=a)}return e},bve=function(e,r,n,i){for(var a=r.length,l=n.length,c=0,f=0;c<a||f<l;)e[c+f]=c<a&&f<l?i(r[c],n[f])<=0?r[c++]:n[f++]:c<a?r[c++]:n[f++];return e};zM.exports=mve});var m_=U(function(nvt,WM){var wve=Uo(),HM=wve.match(/firefox\/(\d+)/i);WM.exports=!!HM&&+HM[1]});var g_=U(function(ivt,VM){var Ove=Uo();VM.exports=/MSIE|Trident/.test(Ove)});var qg=U(function(ovt,YM){var Sve=Uo(),KM=Sve.match(/AppleWebKit\/(\d+)\./);YM.exports=!!KM&&+KM[1]});var Ja=U(function(avt,i5){"use strict";var Nve=Oe(),Dve=it(),Mve=_e(),Uve=xe(),n5=Mve("species");i5.exports=function(t){var e=Nve(t),r=Dve.f;Uve&&e&&!e[n5]&&r(e,n5,{configurable:!0,get:function(){return this}})}});var O_=U(function(uvt,o5){o5.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"});var so=U(function(svt,a5){var rye=bt();a5.exports=function(t,e,r){for(var n in e)rye(t,n,e[n],r);return t}});var mn=U(function(lvt,u5){var nye=Wr(),iye=TypeError;u5.exports=function(t,e){if(nye(e,t))return t;throw iye("Incorrect invocation")}});var S_=U(function(cvt,s5){var oye=Pt(),aye=kn(),uye=RangeError;s5.exports=function(t){if(t===void 0)return 0;var e=oye(t),r=aye(e);if(e!==r)throw uye("Wrong length or index");return r}});var c5=U(function(fvt,l5){var sye=Array,lye=Math.abs,Ho=Math.pow,cye=Math.floor,fye=Math.log,pye=Math.LN2,hye=function(e,r,n){var i=sye(n),a=n*8-r-1,l=(1<<a)-1,c=l>>1,f=r===23?Ho(2,-24)-Ho(2,-77):0,d=e<0||e===0&&1/e<0?1:0,y=0,m,g,w;for(e=lye(e),e!=e||e===1/0?(g=e!=e?1:0,m=l):(m=cye(fye(e)/pye),w=Ho(2,-m),e*w<1&&(m--,w*=2),m+c>=1?e+=f/w:e+=f*Ho(2,1-c),e*w>=2&&(m++,w/=2),m+c>=l?(g=0,m=l):m+c>=1?(g=(e*w-1)*Ho(2,r),m=m+c):(g=e*Ho(2,c-1)*Ho(2,r),m=0));r>=8;)i[y++]=g&255,g/=256,r-=8;for(m=m<<r|g,a+=r;a>0;)i[y++]=m&255,m/=256,a-=8;return i[--y]|=d*128,i},dye=function(e,r){var n=e.length,i=n*8-r-1,a=(1<<i)-1,l=a>>1,c=i-7,f=n-1,d=e[f--],y=d&127,m;for(d>>=7;c>0;)y=y*256+e[f--],c-=8;for(m=y&(1<<-c)-1,y>>=-c,c+=r;c>0;)m=m*256+e[f--],c-=8;if(y===0)y=1-l;else{if(y===a)return m?NaN:d?-1/0:1/0;m=m+Ho(2,r),y=y-l}return(d?-1:1)*m*Ho(2,y-r)};l5.exports={pack:hye,unpack:dye}});var I_=U(function(pvt,R5){"use strict";var Ug=be(),R_=ce(),__=xe(),vye=O_(),S5=ws(),f5=rr(),p5=so(),P_=le(),Fg=mn(),yye=Pt(),mye=kn(),Ng=S_(),_5=c5(),gye=Pr(),h5=oo(),bye=Bo().f,wye=it().f,Oye=Ag(),Sye=Oc(),P5=dn(),E5=at(),_ye=S5.PROPER,d5=S5.CONFIGURABLE,Ic=E5.get,v5=E5.set,Dg="ArrayBuffer",T5="DataView",Rc="prototype",Pye="Wrong length",A5="Wrong index",Ii=Ug[Dg],jn=Ii,xc=jn&&jn[Rc],lo=Ug[T5],js=lo&&lo[Rc],y5=Object.prototype,Eye=Ug.Array,Mg=Ug.RangeError,Tye=R_(Oye),Aye=R_([].reverse),x5=_5.pack,m5=_5.unpack,g5=function(e){return[e&255]},b5=function(e){return[e&255,e>>8&255]},w5=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},O5=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},xye=function(e){return x5(e,23,4)},Rye=function(e){return x5(e,52,8)},Lg=function(e,r){wye(e[Rc],r,{get:function(){return Ic(this)[r]}})},Za=function(e,r,n,i){var a=Ng(n),l=Ic(e);if(a+r>l.byteLength)throw Mg(A5);var c=Ic(l.buffer).bytes,f=a+l.byteOffset,d=Sye(c,f,f+r);return i?d:Aye(d)},eu=function(e,r,n,i,a,l){var c=Ng(n),f=Ic(e);if(c+r>f.byteLength)throw Mg(A5);for(var d=Ic(f.buffer).bytes,y=c+f.byteOffset,m=i(+a),g=0;g<r;g++)d[y+g]=m[l?g:r-g-1]};if(!vye)jn=function(e){Fg(this,xc);var r=Ng(e);v5(this,{bytes:Tye(Eye(r),0),byteLength:r}),__||(this.byteLength=r)},xc=jn[Rc],lo=function(e,r,n){Fg(this,js),Fg(e,xc);var i=Ic(e).byteLength,a=yye(r);if(a<0||a>i)throw Mg("Wrong offset");if(n=n===void 0?i-a:mye(n),a+n>i)throw Mg(Pye);v5(this,{buffer:e,byteLength:n,byteOffset:a}),__||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},js=lo[Rc],__&&(Lg(jn,"byteLength"),Lg(lo,"buffer"),Lg(lo,"byteLength"),Lg(lo,"byteOffset")),p5(js,{getInt8:function(e){return Za(this,1,e)[0]<<24>>24},getUint8:function(e){return Za(this,1,e)[0]},getInt16:function(e){var r=Za(this,2,e,arguments.length>1?arguments[1]:void 0);return(r[1]<<8|r[0])<<16>>16},getUint16:function(e){var r=Za(this,2,e,arguments.length>1?arguments[1]:void 0);return r[1]<<8|r[0]},getInt32:function(e){return O5(Za(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return O5(Za(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return m5(Za(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return m5(Za(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,r){eu(this,1,e,g5,r)},setUint8:function(e,r){eu(this,1,e,g5,r)},setInt16:function(e,r){eu(this,2,e,b5,r,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,r){eu(this,2,e,b5,r,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,r){eu(this,4,e,w5,r,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,r){eu(this,4,e,w5,r,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,r){eu(this,4,e,xye,r,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,r){eu(this,8,e,Rye,r,arguments.length>2?arguments[2]:void 0)}});else{if(E_=_ye&&Ii.name!==Dg,!P_(function(){Ii(1)})||!P_(function(){new Ii(-1)})||P_(function(){return new Ii,new Ii(1.5),new Ii(NaN),E_&&!d5})){for(jn=function(e){return Fg(this,xc),new Ii(Ng(e))},jn[Rc]=xc,T_=bye(Ii),A_=0;T_.length>A_;)(Cg=T_[A_++])in jn||f5(jn,Cg,Ii[Cg]);xc.constructor=jn}else E_&&d5&&f5(Ii,"name",Dg);h5&&gye(js)!==y5&&h5(js,y5),gh=new lo(new jn(2)),x_=R_(js.setInt8),gh.setInt8(0,2147483648),gh.setInt8(1,2147483649),(gh.getInt8(0)||!gh.getInt8(1))&&p5(js,{setInt8:function(e,r){x_(this,e,r<<24>>24)},setUint8:function(e,r){x_(this,e,r<<24>>24)}},{unsafe:!0})}var E_,T_,A_,Cg,gh,x_;P5(jn,Dg);P5(lo,T5);R5.exports={ArrayBuffer:jn,DataView:lo}});var j5=U(function(hvt,k5){"use strict";var Lye=ie(),Cye=YS(),Nye=TypeError;k5.exports=function(t){if(Lye(this),t==="string"||t==="default")t="string";else if(t!=="number")throw Nye("Incorrect hint");return Cye(this,t)}});var Bg=U(function(dvt,U5){var nme=le();U5.exports=nme(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})});var bh=U(function(vvt,G5){var ime=le(),ome=Ne(),ame=hn(),B5=Bg(),Gg=Object.isExtensible,ume=ime(function(){Gg(1)});G5.exports=ume||B5?function(e){return!ome(e)||B5&&ame(e)=="ArrayBuffer"?!1:Gg?Gg(e):!0}:Gg});var kc=U(function(yvt,$5){var sme=le();$5.exports=!sme(function(){return Object.isExtensible(Object.preventExtensions({}))})});var tu=U(function(mvt,W5){function q_(t){"@babel/helpers - typeof";return q_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q_(t)}var lme=G(),cme=ce(),fme=bc(),pme=Ne(),F_=Ue(),hme=it().f,z5=Bo(),dme=cg(),L_=bh(),vme=gs(),yme=kc(),H5=!1,Wo=vme("meta"),mme=0,C_=function(e){hme(e,Wo,{value:{objectID:"O"+mme++,weakData:{}}})},gme=function(e,r){if(!pme(e))return q_(e)=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!F_(e,Wo)){if(!L_(e))return"F";if(!r)return"E";C_(e)}return e[Wo].objectID},bme=function(e,r){if(!F_(e,Wo)){if(!L_(e))return!0;if(!r)return!1;C_(e)}return e[Wo].weakData},wme=function(e){return yme&&H5&&L_(e)&&!F_(e,Wo)&&C_(e),e},Ome=function(){Sme.enable=function(){},H5=!0;var e=z5.f,r=cme([].splice),n={};n[Wo]=1,e(n).length&&(z5.f=function(i){for(var a=e(i),l=0,c=a.length;l<c;l++)if(a[l]===Wo){r(a,l,1);break}return a},lme({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:dme.f}))},Sme=W5.exports={enable:Ome,fastKey:gme,getWeakData:bme,onFreeze:wme};fme[Wo]=!0});var wh=U(function(gvt,K5){"use strict";var _me=G(),Pme=be(),Eme=ce(),V5=wc(),Tme=bt(),Ame=tu(),xme=Te(),Rme=mn(),Ime=ke(),N_=Ne(),D_=le(),kme=dh(),jme=dn(),qme=As();K5.exports=function(t,e,r){var n=t.indexOf("Map")!==-1,i=t.indexOf("Weak")!==-1,a=n?"set":"add",l=Pme[t],c=l&&l.prototype,f=l,d={},y=function(x){var A=Eme(c[x]);Tme(c,x,x=="add"?function(N){return A(this,N===0?0:N),this}:x=="delete"?function(I){return i&&!N_(I)?!1:A(this,I===0?0:I)}:x=="get"?function(N){return i&&!N_(N)?void 0:A(this,N===0?0:N)}:x=="has"?function(N){return i&&!N_(N)?!1:A(this,N===0?0:N)}:function(N,j){return A(this,N===0?0:N,j),this})},m=V5(t,!Ime(l)||!(i||c.forEach&&!D_(function(){new l().entries().next()})));if(m)f=r.getConstructor(e,t,n,a),Ame.enable();else if(V5(t,!0)){var g=new f,w=g[a](i?{}:-0,1)!=g,P=D_(function(){g.has(1)}),E=kme(function(R){new l(R)}),O=!i&&D_(function(){for(var R=new l,x=5;x--;)R[a](x,x);return!R.has(-0)});E||(f=e(function(R,x){Rme(R,c);var A=qme(new l,R,f);return x!=null&&xme(x,A[a],{that:A,AS_ENTRIES:n}),A}),f.prototype=c,c.constructor=f),(P||O)&&(y("delete"),y("has"),n&&y("get")),(O||w)&&y(a),i&&c.clear&&delete c.clear}return d[t]=f,_me({global:!0,constructor:!0,forced:f!=l},d),jme(f,t),i||r.setStrong(f,t,n),f}});var U_=U(function(bvt,Z5){"use strict";var Fme=it().f,Lme=Ht(),Y5=so(),Cme=ut(),Nme=mn(),Dme=Te(),Mme=kg(),Ume=Ja(),Oh=xe(),X5=tu().fastKey,J5=at(),Q5=J5.set,M_=J5.getterFor;Z5.exports={getConstructor:function(e,r,n,i){var a=e(function(y,m){Nme(y,l),Q5(y,{type:r,index:Lme(null),first:void 0,last:void 0,size:0}),Oh||(y.size=0),m!=null&&Dme(m,y[i],{that:y,AS_ENTRIES:n})}),l=a.prototype,c=M_(r),f=function(m,g,w){var P=c(m),E=d(m,g),O,R;return E?E.value=w:(P.last=E={index:R=X5(g,!0),key:g,value:w,previous:O=P.last,next:void 0,removed:!1},P.first||(P.first=E),O&&(O.next=E),Oh?P.size++:m.size++,R!=="F"&&(P.index[R]=E)),m},d=function(m,g){var w=c(m),P=X5(g),E;if(P!=="F")return w.index[P];for(E=w.first;E;E=E.next)if(E.key==g)return E};return Y5(l,{clear:function(){for(var m=this,g=c(m),w=g.index,P=g.first;P;)P.removed=!0,P.previous&&(P.previous=P.previous.next=void 0),delete w[P.index],P=P.next;g.first=g.last=void 0,Oh?g.size=0:m.size=0},delete:function(m){var g=this,w=c(g),P=d(g,m);if(P){var E=P.next,O=P.previous;delete w.index[P.index],P.removed=!0,O&&(O.next=E),E&&(E.previous=O),w.first==P&&(w.first=E),w.last==P&&(w.last=O),Oh?w.size--:g.size--}return!!P},forEach:function(m){for(var g=c(this),w=Cme(m,arguments.length>1?arguments[1]:void 0),P;P=P?P.next:g.first;)for(w(P.value,P.key,this);P&&P.removed;)P=P.previous},has:function(m){return!!d(this,m)}}),Y5(l,n?{get:function(m){var g=d(this,m);return g&&g.value},set:function(m,g){return f(this,m===0?0:m,g)}}:{add:function(m){return f(this,m=m===0?0:m,m)}}),Oh&&Fme(l,"size",{get:function(){return c(this).size}}),a},setStrong:function(e,r,n){var i=r+" Iterator",a=M_(r),l=M_(i);Mme(e,r,function(c,f){Q5(this,{type:i,target:c,state:a(c),kind:f,last:void 0})},function(){for(var c=l(this),f=c.kind,d=c.last;d&&d.removed;)d=d.previous;return!c.target||!(c.last=d=d?d.next:c.state.first)?(c.target=void 0,{value:void 0,done:!0}):f=="keys"?{value:d.key,done:!1}:f=="values"?{value:d.value,done:!1}:{value:[d.key,d.value],done:!1}},n?"entries":"values",!n,!0),Ume(r)}}});var e3=U(function(){"use strict";var Bme=wh(),Gme=U_();Bme("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Gme)});var $g=U(function(){e3()});var B_=U(function(Pvt,t3){var $me=Math.log;t3.exports=Math.log1p||function(e){var r=+e;return r>-1e-8&&r<1e-8?r-r*r/2:$me(1+r)}});var zg=U(function(Evt,a3){a3.exports=Math.sign||function(e){var r=+e;return r==0||r!=r?r:r<0?-1:1}});var _h=U(function(Tvt,u3){var Sh=Math.expm1,sge=Math.exp;u3.exports=!Sh||Sh(10)>22025.465794806718||Sh(10)<22025.465794806718||Sh(-2e-17)!=-2e-17?function(e){var r=+e;return r==0?r:r>-1e-6&&r<1e-6?r+r*r/2:sge(r)-1}:Sh});var W_=U(function(Avt,c3){var hge=zg(),dge=Math.abs,Wg=Math.pow,H_=Wg(2,-52),Hg=Wg(2,-23),vge=Wg(2,127)*(2-Hg),z_=Wg(2,-126),yge=function(e){return e+1/H_-1/H_};c3.exports=Math.fround||function(e){var r=+e,n=dge(r),i=hge(r),a,l;return n<z_?i*yge(n/z_/Hg)*z_*Hg:(a=(1+Hg/H_)*n,l=a-(a-n),l>vge||l!=l?i*(1/0):i*l)}});var V_=U(function(xvt,h3){var Tge=Math.log,Age=Math.LOG10E;h3.exports=Math.log10||function(e){return Tge(e)*Age}});var Vg=U(function(Rvt,g3){var Wge=ce();g3.exports=Wge(1 .valueOf)});var Ph=U(function(Ivt,b3){b3.exports="	\n\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF"});var qs=U(function(kvt,O3){var Vge=ce(),Kge=$t(),Yge=He(),Xge=Ph(),w3=Vge("".replace),Kg="["+Xge+"]",Qge=RegExp("^"+Kg+Kg+"*"),Jge=RegExp(Kg+Kg+"*$"),K_=function(e){return function(r){var n=Yge(Kge(r));return e&1&&(n=w3(n,Qge,"")),e&2&&(n=w3(n,Jge,"")),n}};O3.exports={start:K_(1),end:K_(2),trim:K_(3)}});var Z_=U(function(jvt,E3){var ybe=be(),mbe=ybe.isFinite;E3.exports=Number.isFinite||function(e){return typeof e=="number"&&mbe(e)}});var Qg=U(function(qvt,T3){var wbe=Ne(),Obe=Math.floor;T3.exports=Number.isInteger||function(e){return!wbe(e)&&isFinite(e)&&Obe(e)===e}});var k3=U(function(Fvt,I3){var R3=be(),Ibe=le(),kbe=ce(),jbe=He(),qbe=qs().trim,Fbe=Ph(),Lbe=kbe("".charAt),Jg=R3.parseFloat,A3=R3.Symbol,x3=A3&&A3.iterator,Cbe=1/Jg(Fbe+"-0")!==-1/0||x3&&!Ibe(function(){Jg(Object(x3))});I3.exports=Cbe?function(e){var r=qbe(jbe(e)),n=Jg(r);return n===0&&Lbe(r,0)=="-"?-0:n}:Jg});var eP=U(function(Lvt,D3){var C3=be(),Dbe=le(),Mbe=ce(),Ube=He(),Bbe=qs().trim,q3=Ph(),Th=C3.parseInt,F3=C3.Symbol,L3=F3&&F3.iterator,N3=/^[+-]?0x/i,Gbe=Mbe(N3.exec),$be=Th(q3+"08")!==8||Th(q3+"0x16")!==22||L3&&!Dbe(function(){Th(Object(L3))});D3.exports=$be?function(e,r){var n=Bbe(Ube(e));return Th(n,r>>>0||(Gbe(N3,n)?16:10))}:Th});var Ah=U(function(Cvt,U3){"use strict";var Hbe=Pt(),Wbe=He(),Vbe=$t(),Kbe=RangeError;U3.exports=function(e){var r=Wbe(Vbe(this)),n="",i=Hbe(e);if(i<0||i==1/0)throw Kbe("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(r+=r))i&1&&(n+=r);return n}});var aP=U(function(Nvt,J3){"use strict";var X3=xe(),ywe=ce(),mwe=fe(),gwe=le(),oP=Ss(),bwe=th(),wwe=Yp(),Owe=$e(),Swe=Mo(),qc=Object.assign,Q3=Object.defineProperty,_we=ywe([].concat);J3.exports=!qc||gwe(function(){if(X3&&qc({b:1},qc(Q3({},"a",{enumerable:!0,get:function(){Q3(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(i){e[i]=i}),qc({},t)[r]!=7||oP(qc({},e)).join("")!=n})?function(e,r){for(var n=Owe(e),i=arguments.length,a=1,l=bwe.f,c=wwe.f;i>a;)for(var f=Swe(arguments[a++]),d=l?_we(oP(f),l(f)):oP(f),y=d.length,m=0,g;y>m;)g=d[m++],(!X3||mwe(c,f,g))&&(n[g]=f[g]);return n}:qc});var Rh=U(function(Dvt,tU){"use strict";var Ewe=gt(),Twe=be(),Awe=le(),eU=qg();tU.exports=Ewe||!Awe(function(){if(!(eU&&eU<535)){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete Twe[t]}})});var uP=U(function(Mvt,iU){var Uwe=xe(),nU=ce(),Bwe=Ss(),Gwe=zt(),$we=Yp().f,zwe=nU($we),Hwe=nU([].push),rU=function(e){return function(r){for(var n=Gwe(r),i=Bwe(n),a=i.length,l=0,c=[],f;a>l;)f=i[l++],(!Uwe||zwe(n,f))&&Hwe(c,e?[f,n[f]]:n[f]);return c}};iU.exports={entries:rU(!0),values:rU(!1)}});var lP=U(function(Uvt,sU){sU.exports=Object.is||function(e,r){return e===r?e!==0||1/e===1/r:e!=e&&r!=r}});var dU=U(function(Bvt,hU){"use strict";var dOe=og(),vOe=xi();hU.exports=dOe?{}.toString:function(){return"[object "+vOe(this)+"]"}});var nu=U(function(Gvt,vU){var OOe=hn(),SOe=be();vU.exports=OOe(SOe.process)=="process"});var Fc=U(function($vt,yU){var _Oe=Ri(),POe=$a(),EOe=TypeError;yU.exports=function(t){if(_Oe(t))return t;throw EOe(POe(t)+" is not a constructor")}});var Vr=U(function(zvt,gU){var mU=ie(),TOe=Fc(),AOe=_e(),xOe=AOe("species");gU.exports=function(t,e){var r=mU(t).constructor,n;return r===void 0||(n=mU(r)[xOe])==null?e:TOe(n)}});var iu=U(function(Hvt,bU){var ROe=TypeError;bU.exports=function(t,e){if(t<e)throw ROe("Not enough arguments");return t}});var dP=U(function(Wvt,wU){var IOe=Uo();wU.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(IOe)});var _P=U(function(Vvt,xU){var qn=be(),kOe=yn(),jOe=ut(),OU=ke(),qOe=Ue(),FOe=le(),SU=m1(),LOe=Ka(),_U=Qp(),COe=iu(),NOe=dP(),DOe=nu(),wP=qn.setImmediate,OP=qn.clearImmediate,MOe=qn.process,vP=qn.Dispatch,UOe=qn.Function,PU=qn.MessageChannel,BOe=qn.String,yP=0,Ih={},EU="onreadystatechange",kh,Ls,mP,gP;try{kh=qn.location}catch(t){}var SP=function(e){if(qOe(Ih,e)){var r=Ih[e];delete Ih[e],r()}},bP=function(e){return function(){SP(e)}},TU=function(e){SP(e.data)},AU=function(e){qn.postMessage(BOe(e),kh.protocol+"//"+kh.host)};(!wP||!OP)&&(wP=function(e){COe(arguments.length,1);var r=OU(e)?e:UOe(e),n=LOe(arguments,1);return Ih[++yP]=function(){kOe(r,void 0,n)},Ls(yP),yP},OP=function(e){delete Ih[e]},DOe?Ls=function(e){MOe.nextTick(bP(e))}:vP&&vP.now?Ls=function(e){vP.now(bP(e))}:PU&&!NOe?(mP=new PU,gP=mP.port2,mP.port1.onmessage=TU,Ls=jOe(gP.postMessage,gP)):qn.addEventListener&&OU(qn.postMessage)&&!qn.importScripts&&kh&&kh.protocol!=="file:"&&!FOe(AU)?(Ls=AU,qn.addEventListener("message",TU,!1)):EU in _U("script")?Ls=function(e){SU.appendChild(_U("script"))[EU]=function(){SU.removeChild(this),SP(e)}}:Ls=function(e){setTimeout(bP(e),0)});xU.exports={set:wP,clear:OP}});var IU=U(function(Kvt,RU){var GOe=Uo(),$Oe=be();RU.exports=/ipad|iphone|ipod/i.test(GOe)&&$Oe.Pebble!==void 0});var jU=U(function(Yvt,kU){var zOe=Uo();kU.exports=/web0s(?!.*chrome)/i.test(zOe)});var xP=U(function(Xvt,UU){var Ns=be(),qU=ut(),HOe=_r().f,PP=_P().set,WOe=dP(),VOe=IU(),KOe=jU(),EP=nu(),FU=Ns.MutationObserver||Ns.WebKitMutationObserver,LU=Ns.document,CU=Ns.process,tb=Ns.Promise,NU=HOe(Ns,"queueMicrotask"),MU=NU&&NU.value,jh,Cs,qh,Lc,TP,AP,rb,DU;MU||(jh=function(){var e,r;for(EP&&(e=CU.domain)&&e.exit();Cs;){r=Cs.fn,Cs=Cs.next;try{r()}catch(n){throw Cs?Lc():qh=void 0,n}}qh=void 0,e&&e.enter()},!WOe&&!EP&&!KOe&&FU&&LU?(TP=!0,AP=LU.createTextNode(""),new FU(jh).observe(AP,{characterData:!0}),Lc=function(){AP.data=TP=!TP}):!VOe&&tb&&tb.resolve?(rb=tb.resolve(void 0),rb.constructor=tb,DU=qU(rb.then,rb),Lc=function(){DU(jh)}):EP?Lc=function(){CU.nextTick(jh)}:(PP=qU(PP,Ns),Lc=function(){PP(jh)}));UU.exports=MU||function(t){var e={fn:t,next:void 0};qh&&(qh.next=e),Cs||(Cs=e,Lc()),qh=e}});var RP=U(function(Qvt,BU){var YOe=be();BU.exports=function(t,e){var r=YOe.console;r&&r.error&&(arguments.length==1?r.error(t):r.error(t,e))}});var ou=U(function(Jvt,GU){GU.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}});var HU=U(function(Zvt,zU){var $U=function(){this.head=null,this.tail=null};$U.prototype={add:function(e){var r={item:e,next:null};this.head?this.tail.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};zU.exports=$U});var Ds=U(function(eyt,WU){var XOe=be();WU.exports=XOe.Promise});var ib=U(function(tyt,VU){function nb(t){"@babel/helpers - typeof";return nb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nb(t)}VU.exports=(typeof Deno=="undefined"?"undefined":nb(Deno))=="object"&&Deno&&nb(Deno.version)=="object"});var IP=U(function(ryt,KU){function ob(t){"@babel/helpers - typeof";return ob=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ob(t)}var QOe=ib(),JOe=nu();KU.exports=!QOe&&!JOe&&(typeof window=="undefined"?"undefined":ob(window))=="object"&&(typeof document=="undefined"?"undefined":ob(document))=="object"});var Cc=U(function(nyt,QU){var ZOe=be(),Fh=Ds(),eSe=ke(),tSe=wc(),rSe=gc(),nSe=_e(),iSe=IP(),oSe=ib(),aSe=gt(),kP=Ba(),YU=Fh&&Fh.prototype,uSe=nSe("species"),jP=!1,XU=eSe(ZOe.PromiseRejectionEvent),sSe=tSe("Promise",function(){var t=rSe(Fh),e=t!==String(Fh);if(!e&&kP===66||aSe&&!(YU.catch&&YU.finally))return!0;if(!kP||kP<51||!/native code/.test(t)){var r=new Fh(function(a){a(1)}),n=function(l){l(function(){},function(){})},i=r.constructor={};if(i[uSe]=n,jP=r.then(function(){})instanceof n,!jP)return!0}return!e&&(iSe||oSe)&&!XU});QU.exports={CONSTRUCTOR:sSe,REJECTION_EVENT:XU,SUBCLASSING:jP}});var Vo=U(function(iyt,ZU){"use strict";var JU=ge(),lSe=function(e){var r,n;this.promise=new e(function(i,a){if(r!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");r=i,n=a}),this.resolve=JU(r),this.reject=JU(n)};ZU.exports.f=function(t){return new lSe(t)}});var b8=U(function(){"use strict";var cSe=G(),fSe=gt(),lb=nu(),au=be(),Uc=fe(),e8=bt(),t8=oo(),pSe=dn(),hSe=Ja(),dSe=ge(),sb=ke(),vSe=Ne(),ySe=mn(),mSe=Vr(),u8=_P().set,CP=xP(),gSe=RP(),bSe=ou(),wSe=HU(),s8=at(),cb=Ds(),NP=Cc(),l8=Vo(),fb="Promise",c8=NP.CONSTRUCTOR,OSe=NP.REJECTION_EVENT,SSe=NP.SUBCLASSING,qP=s8.getterFor(fb),_Se=s8.set,Nc=cb&&cb.prototype,Ms=cb,ab=Nc,f8=au.TypeError,FP=au.document,DP=au.process,LP=l8.f,PSe=LP,ESe=!!(FP&&FP.createEvent&&au.dispatchEvent),p8="unhandledrejection",TSe="rejectionhandled",r8=0,h8=1,ASe=2,MP=1,d8=2,ub,n8,xSe,i8,v8=function(e){var r;return vSe(e)&&sb(r=e.then)?r:!1},y8=function(e,r){var n=r.value,i=r.state==h8,a=i?e.ok:e.fail,l=e.resolve,c=e.reject,f=e.domain,d,y,m;try{a?(i||(r.rejection===d8&&ISe(r),r.rejection=MP),a===!0?d=n:(f&&f.enter(),d=a(n),f&&(f.exit(),m=!0)),d===e.promise?c(f8("Promise-chain cycle")):(y=v8(d))?Uc(y,d,l,c):l(d)):c(n)}catch(g){f&&!m&&f.exit(),c(g)}},m8=function(e,r){e.notified||(e.notified=!0,CP(function(){for(var n=e.reactions,i;i=n.get();)y8(i,e);e.notified=!1,r&&!e.rejection&&RSe(e)}))},g8=function(e,r,n){var i,a;ESe?(i=FP.createEvent("Event"),i.promise=r,i.reason=n,i.initEvent(e,!1,!0),au.dispatchEvent(i)):i={promise:r,reason:n},!OSe&&(a=au["on"+e])?a(i):e===p8&&gSe("Unhandled promise rejection",n)},RSe=function(e){Uc(u8,au,function(){var r=e.facade,n=e.value,i=o8(e),a;if(i&&(a=bSe(function(){lb?DP.emit("unhandledRejection",n,r):g8(p8,r,n)}),e.rejection=lb||o8(e)?d8:MP,a.error))throw a.value})},o8=function(e){return e.rejection!==MP&&!e.parent},ISe=function(e){Uc(u8,au,function(){var r=e.facade;lb?DP.emit("rejectionHandled",r):g8(TSe,r,e.value)})},Dc=function(e,r,n){return function(i){e(r,i,n)}},Mc=function(e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=ASe,m8(e,!0))},a8=function t(e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===r)throw f8("Promise can't be resolved itself");var i=v8(r);i?CP(function(){var a={done:!1};try{Uc(i,r,Dc(t,a,e),Dc(Mc,a,e))}catch(l){Mc(a,l,e)}}):(e.value=r,e.state=h8,m8(e,!1))}catch(a){Mc({done:!1},a,e)}}};if(c8&&(Ms=function(e){ySe(this,ab),dSe(e),Uc(ub,this);var r=qP(this);try{e(Dc(a8,r),Dc(Mc,r))}catch(n){Mc(r,n)}},ab=Ms.prototype,ub=function(e){_Se(this,{type:fb,done:!1,notified:!1,parent:!1,reactions:new wSe,rejection:!1,state:r8,value:void 0})},ub.prototype=e8(ab,"then",function(e,r){var n=qP(this),i=LP(mSe(this,Ms));return n.parent=!0,i.ok=sb(e)?e:!0,i.fail=sb(r)&&r,i.domain=lb?DP.domain:void 0,n.state==r8?n.reactions.add(i):CP(function(){y8(i,n)}),i.promise}),n8=function(){var e=new ub,r=qP(e);this.promise=e,this.resolve=Dc(a8,r),this.reject=Dc(Mc,r)},l8.f=LP=function(e){return e===Ms||e===xSe?new n8(e):PSe(e)},!fSe&&sb(cb)&&Nc!==Object.prototype)){i8=Nc.then,SSe||e8(Nc,"then",function(e,r){var n=this;return new Ms(function(i,a){Uc(i8,n,i,a)}).then(e,r)},{unsafe:!0});try{delete Nc.constructor}catch(t){}t8&&t8(Nc,ab)}cSe({global:!0,constructor:!0,wrap:!0,forced:c8},{Promise:Ms});pSe(Ms,fb,!1,!0);hSe(fb)});var UP=U(function(uyt,w8){var kSe=Ds(),jSe=dh(),qSe=Cc().CONSTRUCTOR;w8.exports=qSe||!jSe(function(t){kSe.all(t).then(void 0,function(){})})});var O8=U(function(){"use strict";var FSe=G(),LSe=fe(),CSe=ge(),NSe=Vo(),DSe=ou(),MSe=Te(),USe=UP();FSe({target:"Promise",stat:!0,forced:USe},{all:function(e){var r=this,n=NSe.f(r),i=n.resolve,a=n.reject,l=DSe(function(){var c=CSe(r.resolve),f=[],d=0,y=1;MSe(e,function(m){var g=d++,w=!1;y++,LSe(c,r,m).then(function(P){w||(w=!0,f[g]=P,--y||i(f))},a)}),--y||i(f)});return l.error&&a(l.value),n.promise}})});var _8=U(function(){"use strict";var BSe=G(),GSe=gt(),$Se=Cc().CONSTRUCTOR,GP=Ds(),zSe=Oe(),HSe=ke(),WSe=bt(),S8=GP&&GP.prototype;BSe({target:"Promise",proto:!0,forced:$Se,real:!0},{catch:function(e){return this.then(void 0,e)}});!GSe&&HSe(GP)&&(BP=zSe("Promise").prototype.catch,S8.catch!==BP&&WSe(S8,"catch",BP,{unsafe:!0}));var BP});var P8=U(function(){"use strict";var VSe=G(),KSe=fe(),YSe=ge(),XSe=Vo(),QSe=ou(),JSe=Te(),ZSe=UP();VSe({target:"Promise",stat:!0,forced:ZSe},{race:function(e){var r=this,n=XSe.f(r),i=n.reject,a=QSe(function(){var l=YSe(r.resolve);JSe(e,function(c){KSe(l,r,c).then(n.resolve,i)})});return a.error&&i(a.value),n.promise}})});var E8=U(function(){"use strict";var e1e=G(),t1e=fe(),r1e=Vo(),n1e=Cc().CONSTRUCTOR;e1e({target:"Promise",stat:!0,forced:n1e},{reject:function(e){var r=r1e.f(this);return t1e(r.reject,void 0,e),r.promise}})});var $P=U(function(yyt,T8){var i1e=ie(),o1e=Ne(),a1e=Vo();T8.exports=function(t,e){if(i1e(t),o1e(e)&&e.constructor===t)return e;var r=a1e.f(t),n=r.resolve;return n(e),r.promise}});var R8=U(function(){"use strict";var u1e=G(),s1e=Oe(),A8=gt(),l1e=Ds(),x8=Cc().CONSTRUCTOR,c1e=$P(),f1e=s1e("Promise"),p1e=A8&&!x8;u1e({target:"Promise",stat:!0,forced:A8||x8},{resolve:function(e){return c1e(p1e&&this===f1e?l1e:this,e)}})});var D8=U(function(byt,N8){"use strict";var L8=ce(),D1e=ge(),M1e=Ne(),U1e=Ue(),F8=Ka(),B1e=yc(),C8=Function,G1e=L8([].concat),$1e=L8([].join),WP={},z1e=function(e,r,n){if(!U1e(WP,r)){for(var i=[],a=0;a<r;a++)i[a]="a["+a+"]";WP[r]=C8("C,a","return new C("+$1e(i,",")+")")}return WP[r](e,n)};N8.exports=B1e?C8.bind:function(e){var r=D1e(this),n=r.prototype,i=F8(arguments,1),a=function(){var c=G1e(i,F8(arguments));return this instanceof a?z1e(r,c.length,c):r.apply(e,c)};return M1e(n)&&(a.prototype=n),a}});var YP=U(function(wyt,K8){var V8=Ue();K8.exports=function(t){return t!==void 0&&(V8(t,"value")||V8(t,"writable"))}});var Bc=U(function(Oyt,t4){var z_e=Ne(),H_e=hn(),W_e=_e(),V_e=W_e("match");t4.exports=function(t){var e;return z_e(t)&&((e=t[V_e])!==void 0?!!e:H_e(t)=="RegExp")}});var hb=U(function(Syt,r4){"use strict";var K_e=ie();r4.exports=function(){var t=K_e(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}});var Gc=U(function(_yt,i4){var Y_e=fe(),X_e=Ue(),Q_e=Wr(),J_e=hb(),n4=RegExp.prototype;i4.exports=function(t){var e=t.flags;return e===void 0&&!("flags"in n4)&&!X_e(t,"flags")&&Q_e(n4,t)?Y_e(J_e,t):e}});var Lh=U(function(Pyt,o4){var QP=le(),Z_e=be(),JP=Z_e.RegExp,ZP=QP(function(){var t=JP("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),ePe=ZP||QP(function(){return!JP("a","y").sticky}),tPe=ZP||QP(function(){var t=JP("^r","gy");return t.lastIndex=2,t.exec("str")!=null});o4.exports={BROKEN_CARET:tPe,MISSED_STICKY:ePe,UNSUPPORTED_Y:ZP}});var db=U(function(Eyt,a4){var rPe=le(),nPe=be(),iPe=nPe.RegExp;a4.exports=rPe(function(){var t=iPe(".","s");return!(t.dotAll&&t.exec("\n")&&t.flags==="s")})});var eE=U(function(Tyt,u4){var oPe=le(),aPe=be(),uPe=aPe.RegExp;u4.exports=oPe(function(){var t=uPe("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"})});var Ko=U(function(Ayt,m4){var y4=tg(),jPe=it();m4.exports=function(t,e,r){return r.get&&y4(r.get,e,{getter:!0}),r.set&&y4(r.set,e,{setter:!0}),jPe.f(t,e,r)}});var Nh=U(function(xyt,w4){"use strict";var zc=fe(),mb=ce(),MPe=He(),UPe=hb(),BPe=Lh(),GPe=za(),$Pe=Ht(),zPe=at().get,HPe=db(),WPe=eE(),VPe=GPe("native-string-replace",String.prototype.replace),yb=RegExp.prototype.exec,aE=yb,KPe=mb("".charAt),YPe=mb("".indexOf),XPe=mb("".replace),oE=mb("".slice),uE=function(){var t=/a/,e=/b*/g;return zc(yb,t,"a"),zc(yb,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),b4=BPe.BROKEN_CARET,sE=/()??/.exec("")[1]!==void 0,QPe=uE||sE||b4||HPe||WPe;QPe&&(aE=function(e){var r=this,n=zPe(r),i=MPe(e),a=n.raw,l,c,f,d,y,m,g;if(a)return a.lastIndex=r.lastIndex,l=zc(aE,a,i),r.lastIndex=a.lastIndex,l;var w=n.groups,P=b4&&r.sticky,E=zc(UPe,r),O=r.source,R=0,x=i;if(P&&(E=XPe(E,"y",""),YPe(E,"g")===-1&&(E+="g"),x=oE(i,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&KPe(i,r.lastIndex-1)!=="\n")&&(O="(?: "+O+")",x=" "+x,R++),c=new RegExp("^(?:"+O+")",E)),sE&&(c=new RegExp("^"+O+"$(?!\\s)",E)),uE&&(f=r.lastIndex),d=zc(yb,P?c:r,x),P?d?(d.input=oE(d.input,R),d[0]=oE(d[0],R),d.index=r.lastIndex,r.lastIndex+=d[0].length):r.lastIndex=0:uE&&d&&(r.lastIndex=r.global?d.index+d[0].length:f),sE&&d&&d.length>1&&zc(VPe,d[0],c,function(){for(y=1;y<arguments.length-2;y++)arguments[y]===void 0&&(d[y]=void 0)}),d&&w)for(d.groups=m=$Pe(null),y=0;y<w.length;y++)g=w[y],m[g[0]]=d[g[1]];return d});w4.exports=aE});var gb=U(function(){"use strict";var JPe=G(),O4=Nh();JPe({target:"RegExp",proto:!0,forced:/./.exec!==O4},{exec:O4})});var A4=U(function(){"use strict";var AEe=wh(),xEe=U_();AEe("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},xEe)});var Bs=U(function(qyt,I4){var cE=ce(),NEe=Pt(),DEe=He(),MEe=$t(),UEe=cE("".charAt),x4=cE("".charCodeAt),BEe=cE("".slice),R4=function(e){return function(r,n){var i=DEe(MEe(r)),a=NEe(n),l=i.length,c,f;return a<0||a>=l?e?"":void 0:(c=x4(i,a),c<55296||c>56319||a+1===l||(f=x4(i,a+1))<56320||f>57343?e?UEe(i,a):c:e?BEe(i,a,a+2):(c-55296<<10)+(f-56320)+65536)}};I4.exports={codeAt:R4(!1),charAt:R4(!0)}});var bb=U(function(Fyt,k4){var zEe=Bc(),HEe=TypeError;k4.exports=function(t){if(zEe(t))throw HEe("The method doesn't accept regular expressions");return t}});var wb=U(function(Lyt,j4){var WEe=_e(),VEe=WEe("match");j4.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[VEe]=!1,"/./"[t](e)}catch(n){}}return!1}});var fE=U(function(){"use strict";var yTe=Bs().charAt,mTe=He(),U4=at(),gTe=kg(),B4="String Iterator",bTe=U4.set,wTe=U4.getterFor(B4);gTe(String,"String",function(t){bTe(this,{type:B4,string:mTe(t),index:0})},function(){var e=wTe(this),r=e.string,n=e.index,i;return n>=r.length?{value:void 0,done:!0}:(i=yTe(r,n),e.index+=i.length,{value:i,done:!1})})});var Dh=U(function(Dyt,W4){"use strict";gb();var G4=ce(),$4=bt(),OTe=Nh(),z4=le(),H4=_e(),STe=rr(),_Te=H4("species"),pE=RegExp.prototype;W4.exports=function(t,e,r,n){var i=H4(t),a=!z4(function(){var d={};return d[i]=function(){return 7},""[t](d)!=7}),l=a&&!z4(function(){var d=!1,y=/a/;return t==="split"&&(y={},y.constructor={},y.constructor[_Te]=function(){return y},y.flags="",y[i]=/./[i]),y.exec=function(){return d=!0,null},y[i](""),!d});if(!a||!l||r){var c=G4(/./[i]),f=e(i,""[t],function(d,y,m,g,w){var P=G4(d),E=y.exec;return E===OTe||E===pE.exec?a&&!w?{done:!0,value:c(y,m,g)}:{done:!0,value:P(m,y,g)}:{done:!1}});$4(String.prototype,t,f[0]),$4(pE,i,f[1])}n&&STe(pE[i],"sham",!0)}});var Mh=U(function(Myt,V4){"use strict";var PTe=Bs().charAt;V4.exports=function(t,e,r){return e+(r?PTe(t,e).length:1)}});var Hc=U(function(Uyt,Y4){var K4=fe(),ETe=ie(),TTe=ke(),ATe=hn(),xTe=Nh(),RTe=TypeError;Y4.exports=function(t,e){var r=t.exec;if(TTe(r)){var n=K4(r,t,e);return n!==null&&ETe(n),n}if(ATe(t)==="RegExp")return K4(xTe,t,e);throw RTe("RegExp#exec called on incompatible receiver")}});var gE=U(function(Byt,lB){var sB=ce(),ZTe=kn(),aB=He(),eAe=Ah(),tAe=$t(),rAe=sB(eAe),nAe=sB("".slice),iAe=Math.ceil,uB=function(e){return function(r,n,i){var a=aB(tAe(r)),l=ZTe(n),c=a.length,f=i===void 0?" ":aB(i),d,y;return l<=c||f==""?a:(d=l-c,y=rAe(f,iAe(d/f.length)),y.length>d&&(y=nAe(y,0,d)),e?a+y:y+a)}};lB.exports={start:uB(!1),end:uB(!0)}});var bE=U(function(Gyt,cB){var oAe=Uo();cB.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(oAe)});var _E=U(function($yt,dB){var SE=ce(),bAe=$e(),wAe=Math.floor,wE=SE("".charAt),OAe=SE("".replace),OE=SE("".slice),SAe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_Ae=/\$([$&'`]|\d{1,2})/g;dB.exports=function(t,e,r,n,i,a){var l=r+t.length,c=n.length,f=_Ae;return i!==void 0&&(i=bAe(i),f=SAe),OAe(a,f,function(d,y){var m;switch(wE(y,0)){case"$":return"$";case"&":return t;case"`":return OE(e,0,r);case"'":return OE(e,l);case"<":m=i[OE(y,1,-1)];break;default:var g=+y;if(g===0)return d;if(g>c){var w=wAe(g/10);return w===0?d:w<=c?n[w-1]===void 0?wE(y,1):n[w-1]+wE(y,1):d}m=n[g-1]}return m===void 0?"":m})}});var Pb=U(function(zyt,CB){var jxe=ws().PROPER,qxe=le(),FB=Ph(),LB="\u200B\x85\u180E";CB.exports=function(t){return qxe(function(){return!!FB[t]()||LB[t]()!==LB||jxe&&FB[t].name!==t})}});var RE=U(function(Hyt,NB){"use strict";var Nxe=qs().end,Dxe=Pb();NB.exports=Dxe("trimEnd")?function(){return Nxe(this)}:"".trimEnd});var MB=U(function(){var Mxe=G(),DB=RE();Mxe({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==DB},{trimRight:DB})});var IE=U(function(Kyt,BB){"use strict";var Bxe=qs().start,Gxe=Pb();BB.exports=Gxe("trimStart")?function(){return Bxe(this)}:"".trimStart});var $B=U(function(){var $xe=G(),GB=IE();$xe({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==GB},{trimLeft:GB})});var gn=U(function(Qyt,WB){var Hxe=ce(),Wxe=$t(),HB=He(),Vxe=/"/g,Kxe=Hxe("".replace);WB.exports=function(t,e,r,n){var i=HB(Wxe(t)),a="<"+e;return r!==""&&(a+=" "+r+'="'+Kxe(HB(n),Vxe,"&quot;")+'"'),a+">"+i+"</"+e+">"}});var bn=U(function(Jyt,VB){var Yxe=le();VB.exports=function(t){return Yxe(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})}});var Ie=U(function(Zyt,r6){"use strict";var LRe=O_(),FE=xe(),Kr=be(),QB=ke(),Ab=Ne(),cu=Ue(),LE=xi(),CRe=$a(),NRe=rr(),kE=bt(),DRe=it().f,MRe=Wr(),xb=Pr(),Qc=oo(),URe=_e(),BRe=gs(),JB=at(),ZB=JB.enforce,GRe=JB.get,Eb=Kr.Int8Array,jE=Eb&&Eb.prototype,KB=Kr.Uint8ClampedArray,YB=KB&&KB.prototype,fo=Eb&&xb(Eb),ki=jE&&xb(jE),$Re=Object.prototype,CE=Kr.TypeError,XB=URe("toStringTag"),qE=BRe("TYPED_ARRAY_TAG"),Tb="TypedArrayConstructor",Yo=LRe&&!!Qc&&LE(Kr.opera)!=="Opera",e6=!1,wn,lu,Xc,Xo={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},NE={BigInt64Array:8,BigUint64Array:8},zRe=function(e){if(!Ab(e))return!1;var r=LE(e);return r==="DataView"||cu(Xo,r)||cu(NE,r)},HRe=function t(e){var r=xb(e);if(Ab(r)){var n=GRe(r);return n&&cu(n,Tb)?n[Tb]:t(r)}},t6=function(e){if(!Ab(e))return!1;var r=LE(e);return cu(Xo,r)||cu(NE,r)},WRe=function(e){if(t6(e))return e;throw CE("Target is not a typed array")},VRe=function(e){if(QB(e)&&(!Qc||MRe(fo,e)))return e;throw CE(CRe(e)+" is not a typed array constructor")},KRe=function(e,r,n,i){if(FE){if(n)for(var a in Xo){var l=Kr[a];if(l&&cu(l.prototype,e))try{delete l.prototype[e]}catch(c){try{l.prototype[e]=r}catch(f){}}}(!ki[e]||n)&&kE(ki,e,n?r:Yo&&jE[e]||r,i)}},YRe=function(e,r,n){var i,a;if(FE){if(Qc){if(n){for(i in Xo)if(a=Kr[i],a&&cu(a,e))try{delete a[e]}catch(l){}}if(!fo[e]||n)try{return kE(fo,e,n?r:Yo&&fo[e]||r)}catch(l){}else return}for(i in Xo)a=Kr[i],a&&(!a[e]||n)&&kE(a,e,r)}};for(wn in Xo)lu=Kr[wn],Xc=lu&&lu.prototype,Xc?ZB(Xc)[Tb]=lu:Yo=!1;for(wn in NE)lu=Kr[wn],Xc=lu&&lu.prototype,Xc&&(ZB(Xc)[Tb]=lu);if((!Yo||!QB(fo)||fo===Function.prototype)&&(fo=function(){throw CE("Incorrect invocation")},Yo))for(wn in Xo)Kr[wn]&&Qc(Kr[wn],fo);if((!Yo||!ki||ki===$Re)&&(ki=fo.prototype,Yo))for(wn in Xo)Kr[wn]&&Qc(Kr[wn].prototype,ki);Yo&&xb(YB)!==ki&&Qc(YB,ki);if(FE&&!cu(ki,XB)){e6=!0,DRe(ki,XB,{get:function(){return Ab(this)?this[qE]:void 0}});for(wn in Xo)Kr[wn]&&NRe(Kr[wn],qE,wn)}r6.exports={NATIVE_ARRAY_BUFFER_VIEWS:Yo,TYPED_ARRAY_TAG:e6&&qE,aTypedArray:WRe,aTypedArrayConstructor:VRe,exportTypedArrayMethod:KRe,exportTypedArrayStaticMethod:YRe,getTypedArrayConstructor:HRe,isView:zRe,isTypedArray:t6,TypedArray:fo,TypedArrayPrototype:ki}});var Rb=U(function(emt,i6){var n6=be(),DE=le(),XRe=dh(),QRe=Ie().NATIVE_ARRAY_BUFFER_VIEWS,JRe=n6.ArrayBuffer,Gs=n6.Int8Array;i6.exports=!QRe||!DE(function(){Gs(1)})||!DE(function(){new Gs(-1)})||!XRe(function(t){new Gs,new Gs(null),new Gs(1.5),new Gs(t)},!0)||DE(function(){return new Gs(new JRe(2),1,void 0).length!==1})});var Jc=U(function(tmt,o6){var ZRe=Pt(),eIe=RangeError;o6.exports=function(t){var e=ZRe(t);if(e<0)throw eIe("The argument can't be less than 0");return e}});var ME=U(function(rmt,a6){var tIe=Jc(),rIe=RangeError;a6.exports=function(t,e){var r=tIe(t);if(r%e)throw rIe("Wrong offset");return r}});var UE=U(function(nmt,u6){var nIe=ut(),iIe=fe(),oIe=Fc(),aIe=$e(),uIe=ze(),sIe=oi(),lIe=uo(),cIe=Og(),fIe=Ie().aTypedArrayConstructor;u6.exports=function(e){var r=oIe(this),n=aIe(e),i=arguments.length,a=i>1?arguments[1]:void 0,l=a!==void 0,c=lIe(n),f,d,y,m,g,w;if(c&&!cIe(c))for(g=sIe(n,c),w=g.next,n=[];!(m=iIe(w,g)).done;)n.push(m.value);for(l&&i>2&&(a=nIe(a,arguments[2])),d=uIe(n),y=new(fIe(r))(d),f=0;d>f;f++)y[f]=l?a(n[f],f):n[f];return y}});var po=U(function(imt,VE){"use strict";var s6=G(),b6=be(),l6=fe(),pIe=xe(),hIe=Rb(),Zc=Ie(),w6=I_(),c6=mn(),dIe=In(),$h=rr(),vIe=Qg(),yIe=kn(),f6=S_(),BE=ME(),O6=no(),zh=Ue(),mIe=xi(),zE=Ne(),gIe=Ga(),bIe=Ht(),wIe=Wr(),Ib=oo(),OIe=Bo().f,p6=UE(),SIe=Wt().forEach,_Ie=Ja(),S6=it(),_6=_r(),KE=at(),PIe=As(),HE=KE.get,EIe=KE.set,TIe=KE.enforce,YE=S6.f,AIe=_6.f,xIe=Math.round,GE=b6.RangeError,P6=w6.ArrayBuffer,RIe=P6.prototype,IIe=w6.DataView,kb=Zc.NATIVE_ARRAY_BUFFER_VIEWS,h6=Zc.TYPED_ARRAY_TAG,d6=Zc.TypedArray,Hh=Zc.TypedArrayPrototype,kIe=Zc.aTypedArrayConstructor,WE=Zc.isTypedArray,jb="BYTES_PER_ELEMENT",$E="Wrong length",v6=function(e,r){kIe(e);for(var n=0,i=r.length,a=new e(i);i>n;)a[n]=r[n++];return a},qb=function(e,r){YE(e,r,{get:function(){return HE(this)[r]}})},y6=function(e){var r;return wIe(RIe,e)||(r=mIe(e))=="ArrayBuffer"||r=="SharedArrayBuffer"},E6=function(e,r){return WE(e)&&!gIe(r)&&r in e&&vIe(+r)&&r>=0},m6=function(e,r){return r=O6(r),E6(e,r)?dIe(2,e[r]):AIe(e,r)},g6=function(e,r,n){return r=O6(r),E6(e,r)&&zE(n)&&zh(n,"value")&&!zh(n,"get")&&!zh(n,"set")&&!n.configurable&&(!zh(n,"writable")||n.writable)&&(!zh(n,"enumerable")||n.enumerable)?(e[r]=n.value,e):YE(e,r,n)};pIe?(kb||(_6.f=m6,S6.f=g6,qb(Hh,"buffer"),qb(Hh,"byteOffset"),qb(Hh,"byteLength"),qb(Hh,"length")),s6({target:"Object",stat:!0,forced:!kb},{getOwnPropertyDescriptor:m6,defineProperty:g6}),VE.exports=function(t,e,r){var n=t.match(/\d+$/)[0]/8,i=t+(r?"Clamped":"")+"Array",a="get"+t,l="set"+t,c=b6[i],f=c,d=f&&f.prototype,y={},m=function(O,R){var x=HE(O);return x.view[a](R*n+x.byteOffset,!0)},g=function(O,R,x){var A=HE(O);r&&(x=(x=xIe(x))<0?0:x>255?255:x&255),A.view[l](R*n+A.byteOffset,x,!0)},w=function(O,R){YE(O,R,{get:function(){return m(this,R)},set:function(A){return g(this,R,A)},enumerable:!0})};kb?hIe&&(f=e(function(E,O,R,x){return c6(E,d),PIe(function(){return zE(O)?y6(O)?x!==void 0?new c(O,BE(R,n),x):R!==void 0?new c(O,BE(R,n)):new c(O):WE(O)?v6(f,O):l6(p6,f,O):new c(f6(O))}(),E,f)}),Ib&&Ib(f,d6),SIe(OIe(c),function(E){E in f||$h(f,E,c[E])}),f.prototype=d):(f=e(function(E,O,R,x){c6(E,d);var A=0,I=0,N,j,k;if(!zE(O))k=f6(O),j=k*n,N=new P6(j);else if(y6(O)){N=O,I=BE(R,n);var z=O.byteLength;if(x===void 0){if(z%n||(j=z-I,j<0))throw GE($E)}else if(j=yIe(x)*n,j+I>z)throw GE($E);k=j/n}else return WE(O)?v6(f,O):l6(p6,f,O);for(EIe(E,{buffer:N,byteOffset:I,byteLength:j,length:k,view:new IIe(N)});A<k;)w(E,A++)}),Ib&&Ib(f,d6),d=f.prototype=bIe(Hh)),d.constructor!==f&&$h(d,"constructor",f),TIe(d).TypedArrayConstructor=f,h6&&$h(d,h6,i);var P=f!=c;y[i]=f,s6({global:!0,constructor:!0,forced:P,sham:!kb},y),jb in f||$h(f,jb,n),jb in d||$h(d,jb,n),_Ie(i)}):VE.exports=function(){}});var XE=U(function(omt,R6){var ZIe=Ym(),eke=TypeError;R6.exports=function(t){var e=ZIe(t,"number");if(typeof e=="number")throw eke("Can't convert number to bigint");return BigInt(e)}});var ef=U(function(amt,k6){var fke=ze();k6.exports=function(t,e){for(var r=0,n=fke(e),i=new t(n);n>r;)i[r]=e[r++];return i}});var tf=U(function(umt,q6){var j6=Ie(),pke=Vr(),hke=j6.aTypedArrayConstructor,dke=j6.getTypedArrayConstructor;q6.exports=function(t){return hke(pke(t,dke(t)))}});var Wh=U(function(smt,F6){var vke=ef(),yke=tf();F6.exports=function(t,e){return vke(yke(t),e)}});var X6=U(function(lmt,Y6){"use strict";var tje=yn(),rje=zt(),nje=Pt(),ije=ze(),oje=ks(),aje=Math.min,tT=[].lastIndexOf,K6=!!tT&&1/[1].lastIndexOf(1,-0)<0,uje=oje("lastIndexOf"),sje=K6||!uje;Y6.exports=sje?function(e){if(K6)return tje(tT,this,arguments)||0;var r=rje(this),n=ije(r),i=n-1;for(arguments.length>1&&(i=aje(i,nje(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in r&&r[i]===e)return i||0;return-1}:tT});var rT=U(function(cmt,t7){var wje=ge(),Oje=$e(),Sje=Mo(),_je=ze(),Pje=TypeError,e7=function(e){return function(r,n,i,a){wje(n);var l=Oje(r),c=Sje(l),f=_je(l),d=e?f-1:0,y=e?-1:1;if(i<2)for(;;){if(d in c){a=c[d],d+=y;break}if(d+=y,e?d<0:f<=d)throw Pje("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=y)d in c&&(a=n(a,c[d],d,l));return a}};t7.exports={left:e7(!1),right:e7(!0)}});var cT=U(function(fmt,R7){"use strict";var Oqe=ce(),P7=so(),Db=tu().getWeakData,Sqe=ie(),sT=Ne(),_qe=mn(),Pqe=Te(),T7=Wt(),E7=Ue(),A7=at(),Eqe=A7.set,Tqe=A7.getterFor,Aqe=T7.find,xqe=T7.findIndex,Rqe=Oqe([].splice),Iqe=0,Mb=function(e){return e.frozen||(e.frozen=new x7)},x7=function(){this.entries=[]},lT=function(e,r){return Aqe(e.entries,function(n){return n[0]===r})};x7.prototype={get:function(e){var r=lT(this,e);if(r)return r[1]},has:function(e){return!!lT(this,e)},set:function(e,r){var n=lT(this,e);n?n[1]=r:this.entries.push([e,r])},delete:function(e){var r=xqe(this.entries,function(n){return n[0]===e});return~r&&Rqe(this.entries,r,1),!!~r}};R7.exports={getConstructor:function(e,r,n,i){var a=e(function(d,y){_qe(d,l),Eqe(d,{type:r,id:Iqe++,frozen:void 0}),y!=null&&Pqe(y,d[i],{that:d,AS_ENTRIES:n})}),l=a.prototype,c=Tqe(r),f=function(y,m,g){var w=c(y),P=Db(Sqe(m),!0);return P===!0?Mb(w).set(m,g):P[w.id]=g,y};return P7(l,{delete:function(y){var m=c(this);if(!sT(y))return!1;var g=Db(y);return g===!0?Mb(m).delete(y):g&&E7(g,m.id)&&delete g[m.id]},has:function(y){var m=c(this);if(!sT(y))return!1;var g=Db(y);return g===!0?Mb(m).has(y):g&&E7(g,m.id)}}),P7(l,n?{get:function(y){var m=c(this);if(sT(y)){var g=Db(y);return g===!0?Mb(m).get(y):g?g[m.id]:void 0}},set:function(y,m){return f(this,y,m)}}:{add:function(y){return f(this,y,!0)}}),a}}});var q7=U(function(){"use strict";var I7=be(),Ub=ce(),kqe=so(),jqe=tu(),qqe=wh(),k7=cT(),Bb=Ne(),Gb=bh(),$b=at().enforce,Fqe=a1(),Lqe=!I7.ActiveXObject&&"ActiveXObject"in I7,Kh,j7=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Cqe=qqe("WeakMap",j7,k7);Fqe&&Lqe&&(Kh=k7.getConstructor(j7,"WeakMap",!0),jqe.enable(),of=Cqe.prototype,fT=Ub(of.delete),Yh=Ub(of.has),pT=Ub(of.get),hT=Ub(of.set),kqe(of,{delete:function(e){if(Bb(e)&&!Gb(e)){var r=$b(this);return r.frozen||(r.frozen=new Kh),fT(this,e)||r.frozen.delete(e)}return fT(this,e)},has:function(e){if(Bb(e)&&!Gb(e)){var r=$b(this);return r.frozen||(r.frozen=new Kh),Yh(this,e)||r.frozen.has(e)}return Yh(this,e)},get:function(e){if(Bb(e)&&!Gb(e)){var r=$b(this);return r.frozen||(r.frozen=new Kh),Yh(this,e)?pT(this,e):r.frozen.get(e)}return pT(this,e)},set:function(e,r){if(Bb(e)&&!Gb(e)){var n=$b(this);n.frozen||(n.frozen=new Kh),Yh(this,e)?hT(this,e,r):n.frozen.set(e,r)}else hT(this,e,r);return this}}));var of,fT,Yh,pT,hT});var zb=U(function(){q7()});var F7=U(function(){"use strict";var Nqe=wh(),Dqe=cT();Nqe("WeakSet",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Dqe)});var Xh=U(function(gmt,G7){var M7=be(),U7=Xp(),B7=ke(),Mqe=Ht(),Hb=Pr(),Uqe=bt(),Bqe=_e(),Gqe=gt(),L7="USE_FUNCTION_CONSTRUCTOR",C7=Bqe("asyncIterator"),N7=M7.AsyncIterator,D7=U7.AsyncIteratorPrototype,ho,dT;if(D7)ho=D7;else if(B7(N7))ho=N7.prototype;else if(U7[L7]||M7[L7])try{dT=Hb(Hb(Hb(Function("return async function*(){}()")()))),Hb(dT)===Object.prototype&&(ho=dT)}catch(t){}ho?Gqe&&(ho=Mqe(ho)):ho={};B7(ho[C7])||Uqe(ho,C7,function(){return this});G7.exports=ho});var Qh=U(function(bmt,Y7){"use strict";var $7=fe(),vT=ie(),$qe=Ht(),zqe=tr(),Hqe=so(),W7=at(),Wqe=Oe(),Vqe=Xh(),yT=Wqe("Promise"),V7="AsyncFromSyncIterator",Kqe=W7.set,z7=W7.getterFor(V7),H7=function(e,r,n){var i=e.done;yT.resolve(e.value).then(function(a){r({done:i,value:a})},n)},K7=function(e){Kqe(this,{type:V7,iterator:vT(e),next:e.next})};K7.prototype=Hqe($qe(Vqe),{next:function(){var e=z7(this);return new yT(function(r,n){var i=vT($7(e.next,e.iterator));H7(i,r,n)})},return:function(){var e=z7(this).iterator;return new yT(function(r,n){var i=zqe(e,"return");if(i===void 0)return r({done:!0,value:void 0});var a=vT($7(i,e));H7(a,r,n)})}});Y7.exports=K7});var Wb=U(function(wmt,X7){var Yqe=fe(),Xqe=Qh(),Qqe=ie(),Jqe=oi(),Zqe=tr(),e2e=_e(),t2e=e2e("asyncIterator");X7.exports=function(t,e){var r=arguments.length<2?Zqe(t,t2e):e;return r?Qqe(Yqe(r,t)):new Xqe(Jqe(t))}});var mT=U(function(Omt,Q7){var r2e=be();Q7.exports=function(t){return r2e[t].prototype}});var Ot=U(function(Smt,J7){var n2e=ge(),i2e=ie();J7.exports=function(t){return{iterator:t,next:n2e(i2e(t).next)}}});var af=U(function(_mt,Z7){var o2e=fe(),a2e=Oe(),u2e=tr();Z7.exports=function(t,e,r,n){try{var i=u2e(t,"return");if(i)return a2e("Promise").resolve(o2e(i,t)).then(function(){e(r)},function(a){n(a)})}catch(a){return n(a)}e(r)}});var $s=U(function(Pmt,t9){"use strict";var s2e=fe(),l2e=ge(),e9=ie(),c2e=Is(),f2e=Oe(),p2e=Ot(),gT=af(),Jh=function(e){var r=e==0,n=e==1,i=e==2,a=e==3;return function(l,c,f){var d=p2e(l),y=f2e("Promise"),m=d.iterator,g=d.next,w=0,P=c!==void 0;return(P||!r)&&l2e(c),new y(function(E,O){var R=function(I){gT(m,O,I,O)},x=function A(){try{if(r&&P)try{c2e(w)}catch(I){R(I)}y.resolve(e9(s2e(g,m))).then(function(I){try{if(e9(I).done)r?(f.length=w,E(f)):E(a?!1:i||void 0);else{var N=I.value;try{P?y.resolve(r?c(N,w):c(N)).then(function(j){if(n)A();else if(i)j?A():gT(m,E,!1,O);else if(r)try{f[w++]=j,A()}catch(k){R(k)}else j?gT(m,E,a||N,O):A()},R):(f[w++]=N,A())}catch(j){R(j)}}}catch(j){O(j)}},O)}catch(I){O(I)}};x()})}};t9.exports={toArray:Jh(0),forEach:Jh(1),every:Jh(2),some:Jh(3),find:Jh(4)}});var bT=U(function(Emt,r9){"use strict";var h2e=ut(),d2e=$e(),v2e=Ri(),y2e=Wb(),m2e=oi(),g2e=uo(),b2e=tr(),w2e=mT(),O2e=Oe(),S2e=_e(),_2e=Qh(),P2e=$s().toArray,E2e=S2e("asyncIterator"),T2e=w2e("Array").values;r9.exports=function(e){var r=this,n=arguments.length,i=n>1?arguments[1]:void 0,a=n>2?arguments[2]:void 0;return new(O2e("Promise"))(function(l){var c=d2e(e);i!==void 0&&(i=h2e(i,a));var f=b2e(c,E2e),d=f?void 0:g2e(c)||T2e,y=v2e(r)?new r:[],m=f?y2e(c,f):new _2e(m2e(c,d));l(P2e(m,i,y))})}});var Vb=U(function(Tmt,n9){var L2e=ut(),C2e=ce(),N2e=Mo(),D2e=$e(),M2e=no(),U2e=ze(),B2e=Ht(),G2e=ef(),$2e=Array,z2e=C2e([].push);n9.exports=function(t,e,r,n){for(var i=D2e(t),a=N2e(i),l=L2e(e,r),c=B2e(null),f=U2e(a),d=0,y,m,g;f>d;d++)g=a[d],m=M2e(l(g,d,i)),m in c?z2e(c[m],g):c[m]=[g];if(n&&(y=n(i),y!==$2e))for(m in c)c[m]=G2e(y,c[m]);return c}});var OT=U(function(Amt,o9){"use strict";var J2e=Oe(),Z2e=ut(),Kb=ce(),eFe=Mo(),tFe=$e(),rFe=ze(),i9=J2e("Map"),wT=i9.prototype,nFe=Kb(wT.get),iFe=Kb(wT.has),oFe=Kb(wT.set),aFe=Kb([].push);o9.exports=function(e){for(var r=tFe(this),n=eFe(r),i=Z2e(e,arguments.length>1?arguments[1]:void 0),a=new i9,l=rFe(n),c=0,f,d;l>c;c++)d=n[c],f=i(d,c,r),iFe(a,f)?aFe(nFe(a,f),d):oFe(a,f,[d]);return a}});var ST=U(function(xmt,c9){var PFe=ze();c9.exports=function(t,e){for(var r=PFe(t),n=new e(r),i=0;i<r;i++)n[i]=t[r-i-1];return n}});var Xb=U(function(Rmt,p9){"use strict";var YFe=Oe(),Yb=ce(),XFe=ge(),QFe=ze(),JFe=$e(),ZFe=Ps(),f9=YFe("Map"),_T=f9.prototype,eLe=Yb(_T.forEach),tLe=Yb(_T.has),rLe=Yb(_T.set),nLe=Yb([].push);p9.exports=function(e){var r=JFe(this),n=QFe(r),i=ZFe(r,0),a=new f9,l=e!=null?XFe(e):function(y){return y},c,f,d;for(c=0;c<n;c++)f=r[c],d=l(f),tLe(a,d)||rLe(a,d,f);return eLe(a,function(y){nLe(i,y)}),i}});var PT=U(function(Imt,h9){var uLe=ze(),sLe=Pt(),lLe=RangeError;h9.exports=function(t,e,r,n){var i=uLe(t),a=sLe(r),l=a<0?i+a:a;if(l>=i||l<0)throw lLe("Incorrect index");for(var c=new e(i),f=0;f<i;f++)c[f]=f===l?n:t[f];return c}});var fu=U(function(kmt,E9){"use strict";var mLe=fe(),g9=ou(),b9=ie(),gLe=Ht(),bLe=rr(),wLe=so(),OLe=_e(),O9=at(),SLe=Oe(),_Le=tr(),PLe=Xh(),w9=Rs(),Hs=SLe("Promise"),S9="AsyncIteratorHelper",_9="WrapForValidAsyncIterator",ELe=O9.set,TLe=OLe("toStringTag"),P9=function(e){var r=!e,n=e?_9:S9,i=O9.getterFor(n),a=function(d){var y=g9(function(){return i(d)}),m=y.error,g=y.value;return m||r&&g.done?{exit:!0,value:m?Hs.reject(g):Hs.resolve({done:!0,value:void 0})}:{exit:!1,value:g}},l=function(d,y){var m=function(){var w=y();if(r){d.awaiting=w;var P=function(){d.awaiting===w&&(d.awaiting=null)};w.then(P,P)}return w};return d.awaiting?d.awaiting=d.awaiting.then(m,m):m()},c=wLe(gLe(PLe),{next:function(){var d=a(this),y=d.exit,m=d.value;return y?m:l(m,function(){var g=g9(function(){return b9(m.nextHandler(Hs))}),w=g.error,P=g.value;return w&&(m.done=!0),w?Hs.reject(P):Hs.resolve(P)})},return:function(){var d=a(this),y=d.exit,m=d.value;return y?m:l(m,function(){return new Hs(function(g,w){var P=m.iterator,E=m.innerIterator;if(m.done=!0,E)try{w9(E,"return")}catch(R){return w9(P,"throw",R)}var O=_Le(P,"return");if(O===void 0)return g({done:!0,value:void 0});Hs.resolve(mLe(O,P)).then(function(R){b9(R),g({done:!0,value:void 0})},w)})})}});return r&&bLe(c,TLe,"Async Iterator Helper"),c},ALe=P9(!1),xLe=P9(!0);E9.exports=function(t,e){var r=e?_9:S9,n=function(a,l){l?(l.iterator=a.iterator,l.next=a.next):l=a,l.type=r,l.nextHandler=t,l.done=!1,l.awaiting=null,ELe(this,l)};return n.prototype=e?xLe:ALe,n}});var TT=U(function(jmt,A9){"use strict";var RLe=fe(),T9=ie(),ILe=Ot(),kLe=fu(),jLe=kLe(function(t){var e=this,r=e.iterator;return t.resolve(T9(RLe(e.next,r))).then(function(n){return T9(n).done?(e.done=!0,{done:!0,value:void 0}):{done:!1,value:[e.index++,n.value]}}).then(null,function(n){throw e.done=!0,n})});A9.exports=function(){return new jLe(ILe(this),{index:0})}});var Zh=U(function(qmt,x9){var LLe=RangeError;x9.exports=function(t){if(t===t)return t;throw LLe("NaN is not allowed")}});var AT=U(function(Fmt,q9){var sCe=fe(),lCe=fu();q9.exports=lCe(function(){return sCe(this.next,this.iterator)},!0)});var kT=U(function(Lmt,B9){"use strict";function uf(t){"@babel/helpers - typeof";return uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uf(t)}var D9=at(),XCe=Xa(),QCe=Ne(),JCe=ug().f,M9=xe(),ed="Incorrect Number.range arguments",IT="NumericRangeIterator",ZCe=D9.set,td=D9.getterFor(IT),N9=RangeError,RT=TypeError,U9=XCe(function(e,r,n,i,a,l){if(uf(e)!=i||r!==1/0&&r!==-1/0&&uf(r)!=i)throw new RT(ed);if(e===1/0||e===-1/0)throw new N9(ed);var c=r>e,f=!1,d;if(n===void 0)d=void 0;else if(QCe(n))d=n.step,f=!!n.inclusive;else if(uf(n)==i)d=n;else throw new RT(ed);if(d==null&&(d=c?l:-l),uf(d)!=i)throw new RT(ed);if(d===1/0||d===-1/0||d===a&&e!==r)throw new N9(ed);var y=e!=e||r!=r||d!=d||r>e!=d>a;ZCe(this,{type:IT,start:e,end:r,step:d,inclusiveEnd:f,hitsEnd:y,currentCount:a,zero:a}),M9||(this.start=e,this.end=r,this.step=d,this.inclusive=f)},IT,function(){var e=td(this);if(e.hitsEnd)return{value:void 0,done:!0};var r=e.start,n=e.end,i=e.step,a=r+i*e.currentCount++;a===n&&(e.hitsEnd=!0);var l=e.inclusiveEnd,c;return n>r?c=l?a>n:a>=n:c=l?n>a:n>=a,c?{value:void 0,done:e.hitsEnd=!0}:{value:a,done:!1}}),Jb=function(e){return{get:e,set:function(){},configurable:!0,enumerable:!1}};M9&&JCe(U9.prototype,{start:Jb(function(){return td(this).start}),end:Jb(function(){return td(this).end}),inclusive:Jb(function(){return td(this).inclusiveEnd}),step:Jb(function(){return td(this).step})});B9.exports=U9});var jT=U(function(Cmt,H9){$g();zb();var z9=Oe(),rNe=Ht(),G9=Ne(),nNe=Object,iNe=TypeError,oNe=z9("Map"),aNe=z9("WeakMap"),Zb=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=rNe(null)};Zb.prototype.get=function(t,e){return this[t]||(this[t]=e())};Zb.prototype.next=function(t,e,r){var n=r?this.objectsByIndex[t]||(this.objectsByIndex[t]=new aNe):this.primitives||(this.primitives=new oNe),i=n.get(e);return i||n.set(e,i=new Zb),i};var $9=new Zb;H9.exports=function(){var t=$9,e=arguments.length,r,n;for(r=0;r<e;r++)G9(n=arguments[r])&&(t=t.next(r,n,!0));if(this===nNe&&t===$9)throw iNe("Composite keys must contain a non-primitive component");for(r=0;r<e;r++)G9(n=arguments[r])||(t=t.next(r,n,!1));return t}});var hu=U(function(Nmt,iG){"use strict";var NNe=fe(),DNe=ie(),MNe=Ht(),UNe=rr(),BNe=so(),GNe=_e(),eG=at(),$Ne=tr(),zNe=Ac().IteratorPrototype,Z9=Rs(),tG="IteratorHelper",rG="WrapForValidIterator",HNe=eG.set,WNe=GNe("toStringTag"),nG=function(e){var r=e?rG:tG,n=eG.getterFor(r),i=BNe(MNe(zNe),{next:function(){var l=n(this);if(e)return l.nextHandler();try{var c=l.done?void 0:l.nextHandler();return{done:l.done,value:c}}catch(f){throw l.done=!0,f}},return:function(){var l=n(this),c=l.iterator,f=l.innerIterator;if(l.done=!0,f)try{Z9(f,"return")}catch(y){return Z9(c,"throw",y)}var d=$Ne(c,"return");return{done:!0,value:d?DNe(NNe(d,c)).value:void 0}}});return e||UNe(i,WNe,"Iterator Helper"),i},VNe=nG(!1),KNe=nG(!0);iG.exports=function(t,e){var r=e?rG:tG,n=function(a,l){l?(l.iterator=a.iterator,l.next=a.next):l=a,l.type=r,l.nextHandler=t,l.done=!1,HNe(this,l)};return n.prototype=e?KNe:VNe,n}});var LT=U(function(Dmt,oG){"use strict";var YNe=fe(),XNe=ie(),QNe=Ot(),JNe=hu(),ZNe=JNe(function(){var t=XNe(YNe(this.next,this.iterator)),e=this.done=!!t.done;if(!e)return[this.index++,t.value]});oG.exports=function(){return new ZNe(QNe(this),{index:0})}});var rd=U(function(Mmt,cG){"use strict";var EMe=fe(),TMe=ge(),AMe=ie();cG.exports=function(){for(var e=AMe(this),r=TMe(e.delete),n=!0,i,a=0,l=arguments.length;a<l;a++)i=EMe(r,e,arguments[a]),n=n&&i;return!!n}});var MT=U(function(Umt,fG){"use strict";var ew=fe(),DT=ge(),IMe=ie();fG.exports=function(e,r){var n=IMe(this),i=DT(n.get),a=DT(n.has),l=DT(n.set),c,f;return ew(a,n,e)?(c=ew(i,n,e),"update"in r&&(c=r.update(c,e,n),ew(l,n,e,c)),c):(f=r.insert(e,n),ew(l,n,e,f),f)}});var ji=U(function(Bmt,pG){var qMe=fe();pG.exports=function(t){return qMe(Map.prototype.entries,t)}});var nd=U(function(Gmt,vG){"use strict";var i5e=ut(),o5e=fe(),a5e=ge(),u5e=Fc(),hG=Te(),dG=[].push;vG.exports=function(e){var r=arguments.length,n=r>1?arguments[1]:void 0,i,a,l,c;return u5e(this),i=n!==void 0,i&&a5e(n),e==null?new this:(a=[],i?(l=0,c=i5e(n,r>2?arguments[2]:void 0),hG(e,function(f){o5e(dG,a,c(f,l++))})):hG(e,dG,{that:a}),new this(a))}});var mG=U(function($mt,yG){yG.exports=function(t,e){return t===e||t!=t&&e!=e}});var id=U(function(zmt,bG){"use strict";var Y5e=Ka();bG.exports=function(){return new this(Y5e(arguments))}});var iw=U(function(Hmt,wG){"use strict";var rw=fe(),GT=ge(),nw=ke(),p3e=ie(),h3e=TypeError;wG.exports=function(e,r){var n=p3e(this),i=GT(n.get),a=GT(n.has),l=GT(n.set),c=arguments.length>2?arguments[2]:void 0,f;if(!nw(r)&&!nw(c))throw h3e("At least one callback required");return rw(a,n,e)?(f=rw(i,n,e),nw(r)&&(f=r(f),rw(l,n,e,f))):nw(c)&&(f=c(),rw(l,n,e,f)),f}});var $T=U(function(Wmt,OG){OG.exports=Math.scale||function(e,r,n,i,a){var l=+e,c=+r,f=+n,d=+i,y=+a;return l!=l||c!=c||f!=f||d!=d||y!=y?NaN:l===1/0||l===-1/0?l:(l-c)*(y-d)/(f-c)+d}});var uw=U(function(Vmt,xG){"use strict";var TG=at(),iUe=Xa(),oUe=Ue(),aUe=Ss(),uUe=$e(),AG="Object Iterator",sUe=TG.set,lUe=TG.getterFor(AG);xG.exports=iUe(function(e,r){var n=uUe(e);sUe(this,{type:AG,mode:r,object:n,keys:aUe(n),index:0})},"Object",function(){for(var e=lUe(this),r=e.keys;;){if(r===null||e.index>=r.length)return e.object=e.keys=null,{value:void 0,done:!0};var n=r[e.index++],i=e.object;if(oUe(i,n)){switch(e.mode){case"keys":return{value:n,done:!1};case"values":return{value:i[n],done:!1}}return{value:[n,i[n]],done:!1}}}})});var sw=U(function(Kmt,IG){var yUe=be(),ad=ke(),mUe=_e(),gUe=mUe("observable"),ud=yUe.Observable,RG=ud&&ud.prototype;IG.exports=!ad(ud)||!ad(ud.from)||!ad(ud.of)||!ad(RG.subscribe)||!ad(RG[gUe])});var UG=U(function(){"use strict";var bUe=G(),lw=fe(),sd=xe(),wUe=Ja(),kG=ge(),jG=ke(),OUe=ie(),SUe=Ne(),_Ue=mn(),cw=tr(),PUe=bt(),HT=so(),qG=Ko(),sf=RP(),EUe=_e(),FG=at(),TUe=sw(),AUe=EUe("observable"),WT="Observable",LG="Subscription",CG="SubscriptionObserver",VT=FG.getterFor,KT=FG.set,xUe=VT(WT),NG=VT(LG),fw=VT(CG),DG=function(e){this.observer=OUe(e),this.cleanup=void 0,this.subscriptionObserver=void 0};DG.prototype={type:LG,clean:function(){var e=this.cleanup;if(e){this.cleanup=void 0;try{e()}catch(r){sf(r)}}},close:function(){if(!sd){var e=this.facade,r=this.subscriptionObserver;e.closed=!0,r&&(r.closed=!0)}this.observer=void 0},isClosed:function(){return this.observer===void 0}};var YT=function(e,r){var n=KT(this,new DG(e)),i;sd||(this.closed=!1);try{(i=cw(e,"start"))&&lw(i,e,this)}catch(f){sf(f)}if(!n.isClosed()){var a=n.subscriptionObserver=new XT(n);try{var l=r(a),c=l;l!=null&&(n.cleanup=jG(l.unsubscribe)?function(){c.unsubscribe()}:kG(l))}catch(f){a.error(f);return}n.isClosed()&&n.clean()}};YT.prototype=HT({},{unsubscribe:function(){var e=NG(this);e.isClosed()||(e.close(),e.clean())}});sd&&qG(YT.prototype,"closed",{configurable:!0,get:function(){return NG(this).isClosed()}});var XT=function(e){KT(this,{type:CG,subscriptionState:e}),sd||(this.closed=!1)};XT.prototype=HT({},{next:function(e){var r=fw(this).subscriptionState;if(!r.isClosed()){var n=r.observer;try{var i=cw(n,"next");i&&lw(i,n,e)}catch(a){sf(a)}}},error:function(e){var r=fw(this).subscriptionState;if(!r.isClosed()){var n=r.observer;r.close();try{var i=cw(n,"error");i?lw(i,n,e):sf(e)}catch(a){sf(a)}r.clean()}},complete:function(){var e=fw(this).subscriptionState;if(!e.isClosed()){var r=e.observer;e.close();try{var n=cw(r,"complete");n&&lw(n,r)}catch(i){sf(i)}e.clean()}}});sd&&qG(XT.prototype,"closed",{configurable:!0,get:function(){return fw(this).subscriptionState.isClosed()}});var MG=function(e){_Ue(this,QT),KT(this,{type:WT,subscriber:kG(e)})},QT=MG.prototype;HT(QT,{subscribe:function(e){var r=arguments.length;return new YT(jG(e)?{next:e,error:r>1?arguments[1]:void 0,complete:r>2?arguments[2]:void 0}:SUe(e)?e:{},xUe(this).subscriber)}});PUe(QT,AUe,function(){return this});bUe({global:!0,constructor:!0,forced:TUe},{Observable:MG});wUe(WT)});var GG=U(function(){"use strict";var RUe=G(),IUe=Oe(),kUe=fe(),BG=ie(),jUe=Ri(),qUe=oi(),FUe=tr(),LUe=Te(),CUe=_e(),NUe=sw(),DUe=CUe("observable");RUe({target:"Observable",stat:!0,forced:NUe},{from:function(e){var r=jUe(this)?this:IUe("Observable"),n=FUe(BG(e),DUe);if(n){var i=BG(kUe(n,e));return i.constructor===r?i:new r(function(l){return i.subscribe(l)})}var a=qUe(e);return new r(function(l){LUe(a,function(c,f){if(l.next(c),l.closed)return f()},{IS_ITERATOR:!0,INTERRUPTED:!0}),l.complete()})}})});var zG=U(function(){"use strict";var MUe=G(),$G=Oe(),UUe=Ri(),BUe=sw(),GUe=$G("Array");MUe({target:"Observable",stat:!0,forced:BUe},{of:function(){for(var e=UUe(this)?this:$G("Observable"),r=arguments.length,n=GUe(r),i=0;i<r;)n[i]=arguments[i++];return new e(function(a){for(var l=0;l<r;l++)if(a.next(n[l]),a.closed)return;a.complete()})}})});var vo=U(function(tgt,KG){function JT(t){"@babel/helpers - typeof";return JT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JT(t)}$g();zb();var VG=Oe(),WUe=ce(),VUe=za(),HG=VG("Map"),KUe=VG("WeakMap"),YUe=WUe([].push),WG=VUe("metadata"),ZT=WG.store||(WG.store=new KUe),ld=function(e,r,n){var i=ZT.get(e);if(!i){if(!n)return;ZT.set(e,i=new HG)}var a=i.get(r);if(!a){if(!n)return;i.set(r,a=new HG)}return a},XUe=function(e,r,n){var i=ld(r,n,!1);return i===void 0?!1:i.has(e)},QUe=function(e,r,n){var i=ld(r,n,!1);return i===void 0?void 0:i.get(e)},JUe=function(e,r,n,i){ld(n,i,!0).set(e,r)},ZUe=function(e,r){var n=ld(e,r,!1),i=[];return n&&n.forEach(function(a,l){YUe(i,l)}),i},e8e=function(e){return e===void 0||JT(e)=="symbol"?e:String(e)};KG.exports={store:ZT,getMap:ld,has:XUe,get:QUe,set:JUe,keys:ZUe,toKey:e8e}});var rA=U(function(rgt,i$){"use strict";var V8e=fe(),K8e=ge(),Y8e=ie();i$.exports=function(){for(var e=Y8e(this),r=K8e(e.add),n=0,i=arguments.length;n<i;n++)V8e(r,e,arguments[n]);return e}});var du=U(function(ngt,o$){var u4e=fe();o$.exports=function(t){return u4e(Set.prototype.values,t)}});var _$=U(function(igt,S$){var n7e=xi(),i7e=ce(),o7e=i7e("".slice);S$.exports=function(t){return o7e(n7e(t),0,3)==="Big"}});var aA=U(function(ogt,T$){var P$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",E$={};for(cd=0;cd<66;cd++)E$[P$.charAt(cd)]=cd;var cd;T$.exports={itoc:P$,ctoi:E$}});var pA=U(function(agt,U$){U$.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var dA=U(function(ugt,G$){var H7e=Qp(),hA=H7e("span").classList,B$=hA&&hA.constructor&&hA.constructor.prototype;G$.exports=B$===Object.prototype?void 0:B$});var z$=U(function(sgt,$$){"use strict";var W7e=Wt().forEach,V7e=ks(),K7e=V7e("forEach");$$.exports=K7e?[].forEach:function(e){return W7e(this,e,arguments.length>1?arguments[1]:void 0)}});var ez=U(function(lgt,Z$){var J7e=nu();Z$.exports=function(t){try{if(J7e)return Function('return require("'+t+'")')()}catch(e){}}});var nz=U(function(cgt,rz){"use strict";var Z7e=xe(),e9e=le(),t9e=ie(),r9e=Ht(),tz=Pc(),vw=Error.prototype.toString,n9e=e9e(function(){if(Z7e){var t=r9e(Object.defineProperty({},"name",{get:function(){return this===t}}));if(vw.call(t)!=="true")return!0}return vw.call({message:1,name:2})!=="2: 1"||vw.call({})!=="Error"});rz.exports=n9e?function(){var e=t9e(this),r=tz(e.name,"Error"),n=tz(e.message);return r?n?r+": "+n:r:n}:vw});var bA=U(function(fgt,iz){iz.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 KA=U(function(pgt,jz){var yGe=le(),mGe=_e(),gGe=gt(),bGe=mGe("iterator");jz.exports=!yGe(function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach(function(n,i){e.delete("b"),r+=i+n}),gGe&&!t.toJSON||!e.sort||t.href!=="http://a/c%20d?a=1&c=3"||e.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!e[bGe]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||r!=="a1c3"||new URL("http://x",void 0).host!=="x"})});var Bz=U(function(hgt,Uz){"use strict";var Ks=ce(),YA=2147483647,_d=36,Nz=1,JA=26,wGe=38,OGe=700,SGe=72,_Ge=128,PGe="-",EGe=/[^\0-\u007E]/,Dz=/[.\u3002\uFF0E\uFF61]/g,qz="Overflow: input needs wider integers to process",XA=_d-Nz,Fz=RangeError,TGe=Ks(Dz.exec),pf=Math.floor,QA=String.fromCharCode,Lz=Ks("".charCodeAt),Mz=Ks([].join),mu=Ks([].push),AGe=Ks("".replace),xGe=Ks("".split),RGe=Ks("".toLowerCase),IGe=function(e){for(var r=[],n=0,i=e.length;n<i;){var a=Lz(e,n++);if(a>=55296&&a<=56319&&n<i){var l=Lz(e,n++);(l&64512)==56320?mu(r,((a&1023)<<10)+(l&1023)+65536):(mu(r,a),n--)}else mu(r,a)}return r},Cz=function(e){return e+22+75*(e<26)},kGe=function(e,r,n){var i=0;for(e=n?pf(e/OGe):e>>1,e+=pf(e/r);e>XA*JA>>1;)e=pf(e/XA),i+=_d;return pf(i+(XA+1)*e/(e+wGe))},jGe=function(e){var r=[];e=IGe(e);var n=e.length,i=_Ge,a=0,l=SGe,c,f;for(c=0;c<e.length;c++)f=e[c],f<128&&mu(r,QA(f));var d=r.length,y=d;for(d&&mu(r,PGe);y<n;){var m=YA;for(c=0;c<e.length;c++)f=e[c],f>=i&&f<m&&(m=f);var g=y+1;if(m-i>pf((YA-a)/g))throw Fz(qz);for(a+=(m-i)*g,i=m,c=0;c<e.length;c++){if(f=e[c],f<i&&++a>YA)throw Fz(qz);if(f==i){for(var w=a,P=_d;;){var E=P<=l?Nz:P>=l+JA?JA:P-l;if(w<E)break;var O=w-E,R=_d-E;mu(r,QA(Cz(E+O%R))),w=pf(O/R),P+=_d}mu(r,QA(Cz(w))),l=kGe(a,g,y==d),a=0,y++}}a++,i++}return Mz(r,"")};Uz.exports=function(t){var e=[],r=xGe(AGe(RGe(t),Dz,"."),"."),n,i;for(n=0;n<r.length;n++)i=r[n],mu(e,TGe(EGe,i)?"xn--"+jGe(i):i);return Mz(e,".")}});var sx=U(function(dgt,uH){"use strict";mh();var nx=G(),df=be(),Tw=fe(),yo=ce(),qGe=xe(),Zz=KA(),eH=bt(),FGe=so(),LGe=dn(),CGe=Xa(),ax=at(),tH=mn(),ZA=ke(),NGe=Ue(),DGe=ut(),MGe=xi(),UGe=ie(),rH=Ne(),Fn=He(),BGe=Ht(),Gz=In(),ix=oi(),GGe=uo(),hf=iu(),$Ge=_e(),zGe=jg(),HGe=$Ge("iterator"),Td="URLSearchParams",nH=Td+"Iterator",iH=ax.set,qi=ax.getterFor(Td),WGe=ax.getterFor(nH),VGe=Object.getOwnPropertyDescriptor,ux=function(e){if(!qGe)return df[e];var r=VGe(df,e);return r&&r.value},$z=ux("fetch"),xw=ux("Request"),Pd=ux("Headers"),ex=xw&&xw.prototype,zz=Pd&&Pd.prototype,KGe=df.RegExp,YGe=df.TypeError,oH=df.decodeURIComponent,XGe=df.encodeURIComponent,QGe=yo("".charAt),Hz=yo([].join),Ys=yo([].push),ox=yo("".replace),JGe=yo([].shift),Wz=yo([].splice),Vz=yo("".split),ZGe=yo("".slice),e$e=/\+/g,Kz=Array(4),t$e=function(e){return Kz[e-1]||(Kz[e-1]=KGe("((?:%[\\da-f]{2}){"+e+"})","gi"))},r$e=function(e){try{return oH(e)}catch(r){return e}},Yz=function(e){var r=ox(e,e$e," "),n=4;try{return oH(r)}catch(i){for(;n;)r=ox(r,t$e(n--),r$e);return r}},n$e=/[!'()~]|%20/g,i$e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},o$e=function(e){return i$e[e]},Xz=function(e){return ox(XGe(e),n$e,o$e)},tx=CGe(function(e,r){iH(this,{type:nH,iterator:ix(qi(e).entries),kind:r})},"Iterator",function(){var e=WGe(this),r=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value=r==="keys"?i.key:r==="values"?i.value:[i.key,i.value]),n},!0),aH=function(e){this.entries=[],this.url=null,e!==void 0&&(rH(e)?this.parseObject(e):this.parseQuery(typeof e=="string"?QGe(e,0)==="?"?ZGe(e,1):e:Fn(e)))};aH.prototype={type:Td,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var r=GGe(e),n,i,a,l,c,f,d;if(r)for(n=ix(e,r),i=n.next;!(a=Tw(i,n)).done;){if(l=ix(UGe(a.value)),c=l.next,(f=Tw(c,l)).done||(d=Tw(c,l)).done||!Tw(c,l).done)throw YGe("Expected sequence with length 2");Ys(this.entries,{key:Fn(f.value),value:Fn(d.value)})}else for(var y in e)NGe(e,y)&&Ys(this.entries,{key:y,value:Fn(e[y])})},parseQuery:function(e){if(e)for(var r=Vz(e,"&"),n=0,i,a;n<r.length;)i=r[n++],i.length&&(a=Vz(i,"="),Ys(this.entries,{key:Yz(JGe(a)),value:Yz(Hz(a,"="))}))},serialize:function(){for(var e=this.entries,r=[],n=0,i;n<e.length;)i=e[n++],Ys(r,Xz(i.key)+"="+Xz(i.value));return Hz(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Rw=function(){tH(this,Ed);var e=arguments.length>0?arguments[0]:void 0;iH(this,new aH(e))},Ed=Rw.prototype;FGe(Ed,{append:function(e,r){hf(arguments.length,2);var n=qi(this);Ys(n.entries,{key:Fn(e),value:Fn(r)}),n.updateURL()},delete:function(e){hf(arguments.length,1);for(var r=qi(this),n=r.entries,i=Fn(e),a=0;a<n.length;)n[a].key===i?Wz(n,a,1):a++;r.updateURL()},get:function(e){hf(arguments.length,1);for(var r=qi(this).entries,n=Fn(e),i=0;i<r.length;i++)if(r[i].key===n)return r[i].value;return null},getAll:function(e){hf(arguments.length,1);for(var r=qi(this).entries,n=Fn(e),i=[],a=0;a<r.length;a++)r[a].key===n&&Ys(i,r[a].value);return i},has:function(e){hf(arguments.length,1);for(var r=qi(this).entries,n=Fn(e),i=0;i<r.length;)if(r[i++].key===n)return!0;return!1},set:function(e,r){hf(arguments.length,1);for(var n=qi(this),i=n.entries,a=!1,l=Fn(e),c=Fn(r),f=0,d;f<i.length;f++)d=i[f],d.key===l&&(a?Wz(i,f--,1):(a=!0,d.value=c));a||Ys(i,{key:l,value:c}),n.updateURL()},sort:function(){var e=qi(this);zGe(e.entries,function(r,n){return r.key>n.key?1:-1}),e.updateURL()},forEach:function(e){for(var r=qi(this).entries,n=DGe(e,arguments.length>1?arguments[1]:void 0),i=0,a;i<r.length;)a=r[i++],n(a.value,a.key,this)},keys:function(){return new tx(this,"keys")},values:function(){return new tx(this,"values")},entries:function(){return new tx(this,"entries")}},{enumerable:!0});eH(Ed,HGe,Ed.entries,{name:"entries"});eH(Ed,"toString",function(){return qi(this).serialize()},{enumerable:!0});LGe(Rw,Td);nx({global:!0,constructor:!0,forced:!Zz},{URLSearchParams:Rw});!Zz&&ZA(Pd)&&(Qz=yo(zz.has),Jz=yo(zz.set),rx=function(e){if(rH(e)){var r=e.body,n;if(MGe(r)===Td)return n=e.headers?new Pd(e.headers):new Pd,Qz(n,"content-type")||Jz(n,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),BGe(e,{body:Gz(0,Fn(r)),headers:Gz(0,n)})}return e},ZA($z)&&nx({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return $z(e,arguments.length>1?rx(arguments[1]):{})}}),ZA(xw)&&(Aw=function(e){return tH(this,ex),new xw(e,arguments.length>1?rx(arguments[1]):{})},ex.constructor=Aw,Aw.prototype=ex,nx({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Aw})));var Qz,Jz,rx,Aw;uH.exports={URLSearchParams:Rw,getState:qi}});var AH=U(function(){"use strict";function Ox(t){"@babel/helpers - typeof";return Ox=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ox(t)}fE();var a$e=G(),Ex=xe(),u$e=KA(),Tx=be(),sH=ut(),ci=ce(),Fw=bt(),ai=Ko(),s$e=mn(),Sx=Ue(),Ax=aP(),vf=l_(),Fi=Oc(),l$e=Bs().codeAt,c$e=Bz(),ea=He(),f$e=dn(),p$e=iu(),wH=sx(),OH=at(),h$e=OH.set,Lw=OH.getterFor("URL"),d$e=wH.URLSearchParams,v$e=wH.getState,Ad=Tx.URL,_x=Tx.TypeError,Cw=Tx.parseInt,y$e=Math.floor,lH=Math.pow,li=ci("".charAt),Li=ci(/./.exec),Rd=ci([].join),m$e=ci(1 .toString),g$e=ci([].pop),mf=ci([].push),cH=ci("".replace),b$e=ci([].shift),w$e=ci("".split),kd=ci("".slice),Nw=ci("".toLowerCase),O$e=ci([].unshift),S$e="Invalid authority",lx="Invalid scheme",Xs="Invalid host",fH="Invalid port",SH=/[a-z]/i,_$e=/[\d+-.a-z]/i,Px=/\d/,P$e=/^0x/i,E$e=/^[0-7]+$/,T$e=/^\d+$/,_H=/^[\da-f]+$/i,A$e=/[\0\t\n\r #%/:<>?@[\\\]^|]/,x$e=/[\0\t\n\r #/:<>?@[\\\]^|]/,R$e=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,I$e=/[\t\n\r]/g,ui,k$e=function(e){var r=w$e(e,"."),n,i,a,l,c,f,d;if(r.length&&r[r.length-1]==""&&r.length--,n=r.length,n>4)return e;for(i=[],a=0;a<n;a++){if(l=r[a],l=="")return e;if(c=10,l.length>1&&li(l,0)=="0"&&(c=Li(P$e,l)?16:8,l=kd(l,c==8?1:2)),l==="")f=0;else{if(!Li(c==10?T$e:c==8?E$e:_H,l))return e;f=Cw(l,c)}mf(i,f)}for(a=0;a<n;a++)if(f=i[a],a==n-1){if(f>=lH(256,5-n))return null}else if(f>255)return null;for(d=g$e(i),a=0;a<i.length;a++)d+=i[a]*lH(256,3-a);return d},j$e=function(e){var r=[0,0,0,0,0,0,0,0],n=0,i=null,a=0,l,c,f,d,y,m,g,w=function(){return li(e,a)};if(w()==":"){if(li(e,1)!=":")return;a+=2,n++,i=n}for(;w();){if(n==8)return;if(w()==":"){if(i!==null)return;a++,n++,i=n;continue}for(l=c=0;c<4&&Li(_H,w());)l=l*16+Cw(w(),16),a++,c++;if(w()=="."){if(c==0||(a-=c,n>6))return;for(f=0;w();){if(d=null,f>0)if(w()=="."&&f<4)a++;else return;if(!Li(Px,w()))return;for(;Li(Px,w());){if(y=Cw(w(),10),d===null)d=y;else{if(d==0)return;d=d*10+y}if(d>255)return;a++}r[n]=r[n]*256+d,f++,(f==2||f==4)&&n++}if(f!=4)return;break}else if(w()==":"){if(a++,!w())return}else if(w())return;r[n++]=l}if(i!==null)for(m=n-i,n=7;n!=0&&m>0;)g=r[n],r[n--]=r[i+m-1],r[i+--m]=g;else if(n!=8)return;return r},q$e=function(e){for(var r=null,n=1,i=null,a=0,l=0;l<8;l++)e[l]!==0?(a>n&&(r=i,n=a),i=null,a=0):(i===null&&(i=l),++a);return a>n&&(r=i,n=a),r},xd=function(e){var r,n,i,a;if(typeof e=="number"){for(r=[],n=0;n<4;n++)O$e(r,e%256),e=y$e(e/256);return Rd(r,".")}else if(Ox(e)=="object"){for(r="",i=q$e(e),n=0;n<8;n++)a&&e[n]===0||(a&&(a=!1),i===n?(r+=n?":":"::",a=!0):(r+=m$e(e[n],16),n<7&&(r+=":")));return"["+r+"]"}return e},qw={},PH=Ax({},qw,{" ":1,'"':1,"<":1,">":1,"`":1}),EH=Ax({},PH,{"#":1,"?":1,"{":1,"}":1}),cx=Ax({},EH,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),gu=function(e,r){var n=l$e(e,0);return n>32&&n<127&&!Sx(r,e)?e:encodeURIComponent(e)},Iw={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Id=function(e,r){var n;return e.length==2&&Li(SH,li(e,0))&&((n=li(e,1))==":"||!r&&n=="|")},pH=function(e){var r;return e.length>1&&Id(kd(e,0,2))&&(e.length==2||(r=li(e,2))==="/"||r==="\\"||r==="?"||r==="#")},F$e=function(e){return e==="."||Nw(e)==="%2e"},L$e=function(e){return e=Nw(e),e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"},fx={},hH={},px={},dH={},vH={},hx={},yH={},mH={},kw={},jw={},dx={},vx={},yx={},mx={},gH={},gx={},yf={},mo={},bH={},Qs={},Zo={},TH=function t(e,r,n){var i=ea(e),a,l,c;if(r){if(l=this.parse(i),l)throw _x(l);this.searchParams=null}else{if(n!==void 0&&(a=new t(n,!0)),l=this.parse(i,null,a),l)throw _x(l);c=v$e(new d$e),c.bindURL(this),this.searchParams=c}};TH.prototype={type:"URL",parse:function(e,r,n){var i=this,a=r||fx,l=0,c="",f=!1,d=!1,y=!1,m,g,w,P;for(e=ea(e),r||(i.scheme="",i.username="",i.password="",i.host=null,i.port=null,i.path=[],i.query=null,i.fragment=null,i.cannotBeABaseURL=!1,e=cH(e,R$e,"")),e=cH(e,I$e,""),m=vf(e);l<=m.length;){switch(g=m[l],a){case fx:if(g&&Li(SH,g))c+=Nw(g),a=hH;else{if(r)return lx;a=px;continue}break;case hH:if(g&&(Li(_$e,g)||g=="+"||g=="-"||g=="."))c+=Nw(g);else if(g==":"){if(r&&(i.isSpecial()!=Sx(Iw,c)||c=="file"&&(i.includesCredentials()||i.port!==null)||i.scheme=="file"&&!i.host))return;if(i.scheme=c,r){i.isSpecial()&&Iw[i.scheme]==i.port&&(i.port=null);return}c="",i.scheme=="file"?a=mx:i.isSpecial()&&n&&n.scheme==i.scheme?a=dH:i.isSpecial()?a=mH:m[l+1]=="/"?(a=vH,l++):(i.cannotBeABaseURL=!0,mf(i.path,""),a=bH)}else{if(r)return lx;c="",a=px,l=0;continue}break;case px:if(!n||n.cannotBeABaseURL&&g!="#")return lx;if(n.cannotBeABaseURL&&g=="#"){i.scheme=n.scheme,i.path=Fi(n.path),i.query=n.query,i.fragment="",i.cannotBeABaseURL=!0,a=Zo;break}a=n.scheme=="file"?mx:hx;continue;case dH:if(g=="/"&&m[l+1]=="/")a=kw,l++;else{a=hx;continue}break;case vH:if(g=="/"){a=jw;break}else{a=mo;continue}case hx:if(i.scheme=n.scheme,g==ui)i.username=n.username,i.password=n.password,i.host=n.host,i.port=n.port,i.path=Fi(n.path),i.query=n.query;else if(g=="/"||g=="\\"&&i.isSpecial())a=yH;else if(g=="?")i.username=n.username,i.password=n.password,i.host=n.host,i.port=n.port,i.path=Fi(n.path),i.query="",a=Qs;else if(g=="#")i.username=n.username,i.password=n.password,i.host=n.host,i.port=n.port,i.path=Fi(n.path),i.query=n.query,i.fragment="",a=Zo;else{i.username=n.username,i.password=n.password,i.host=n.host,i.port=n.port,i.path=Fi(n.path),i.path.length--,a=mo;continue}break;case yH:if(i.isSpecial()&&(g=="/"||g=="\\"))a=kw;else if(g=="/")a=jw;else{i.username=n.username,i.password=n.password,i.host=n.host,i.port=n.port,a=mo;continue}break;case mH:if(a=kw,g!="/"||li(c,l+1)!="/")continue;l++;break;case kw:if(g!="/"&&g!="\\"){a=jw;continue}break;case jw:if(g=="@"){f&&(c="%40"+c),f=!0,w=vf(c);for(var E=0;E<w.length;E++){var O=w[E];if(O==":"&&!y){y=!0;continue}var R=gu(O,cx);y?i.password+=R:i.username+=R}c=""}else if(g==ui||g=="/"||g=="?"||g=="#"||g=="\\"&&i.isSpecial()){if(f&&c=="")return S$e;l-=vf(c).length+1,c="",a=dx}else c+=g;break;case dx:case vx:if(r&&i.scheme=="file"){a=gx;continue}else if(g==":"&&!d){if(c=="")return Xs;if(P=i.parseHost(c),P)return P;if(c="",a=yx,r==vx)return}else if(g==ui||g=="/"||g=="?"||g=="#"||g=="\\"&&i.isSpecial()){if(i.isSpecial()&&c=="")return Xs;if(r&&c==""&&(i.includesCredentials()||i.port!==null))return;if(P=i.parseHost(c),P)return P;if(c="",a=yf,r)return;continue}else g=="["?d=!0:g=="]"&&(d=!1),c+=g;break;case yx:if(Li(Px,g))c+=g;else if(g==ui||g=="/"||g=="?"||g=="#"||g=="\\"&&i.isSpecial()||r){if(c!=""){var x=Cw(c,10);if(x>65535)return fH;i.port=i.isSpecial()&&x===Iw[i.scheme]?null:x,c=""}if(r)return;a=yf;continue}else return fH;break;case mx:if(i.scheme="file",g=="/"||g=="\\")a=gH;else if(n&&n.scheme=="file")if(g==ui)i.host=n.host,i.path=Fi(n.path),i.query=n.query;else if(g=="?")i.host=n.host,i.path=Fi(n.path),i.query="",a=Qs;else if(g=="#")i.host=n.host,i.path=Fi(n.path),i.query=n.query,i.fragment="",a=Zo;else{pH(Rd(Fi(m,l),""))||(i.host=n.host,i.path=Fi(n.path),i.shortenPath()),a=mo;continue}else{a=mo;continue}break;case gH:if(g=="/"||g=="\\"){a=gx;break}n&&n.scheme=="file"&&!pH(Rd(Fi(m,l),""))&&(Id(n.path[0],!0)?mf(i.path,n.path[0]):i.host=n.host),a=mo;continue;case gx:if(g==ui||g=="/"||g=="\\"||g=="?"||g=="#"){if(!r&&Id(c))a=mo;else if(c==""){if(i.host="",r)return;a=yf}else{if(P=i.parseHost(c),P)return P;if(i.host=="localhost"&&(i.host=""),r)return;c="",a=yf}continue}else c+=g;break;case yf:if(i.isSpecial()){if(a=mo,g!="/"&&g!="\\")continue}else if(!r&&g=="?")i.query="",a=Qs;else if(!r&&g=="#")i.fragment="",a=Zo;else if(g!=ui&&(a=mo,g!="/"))continue;break;case mo:if(g==ui||g=="/"||g=="\\"&&i.isSpecial()||!r&&(g=="?"||g=="#")){if(L$e(c)?(i.shortenPath(),g!="/"&&!(g=="\\"&&i.isSpecial())&&mf(i.path,"")):F$e(c)?g!="/"&&!(g=="\\"&&i.isSpecial())&&mf(i.path,""):(i.scheme=="file"&&!i.path.length&&Id(c)&&(i.host&&(i.host=""),c=li(c,0)+":"),mf(i.path,c)),c="",i.scheme=="file"&&(g==ui||g=="?"||g=="#"))for(;i.path.length>1&&i.path[0]==="";)b$e(i.path);g=="?"?(i.query="",a=Qs):g=="#"&&(i.fragment="",a=Zo)}else c+=gu(g,EH);break;case bH:g=="?"?(i.query="",a=Qs):g=="#"?(i.fragment="",a=Zo):g!=ui&&(i.path[0]+=gu(g,qw));break;case Qs:!r&&g=="#"?(i.fragment="",a=Zo):g!=ui&&(g=="'"&&i.isSpecial()?i.query+="%27":g=="#"?i.query+="%23":i.query+=gu(g,qw));break;case Zo:g!=ui&&(i.fragment+=gu(g,PH));break}l++}},parseHost:function(e){var r,n,i;if(li(e,0)=="["){if(li(e,e.length-1)!="]"||(r=j$e(kd(e,1,-1)),!r))return Xs;this.host=r}else if(this.isSpecial()){if(e=c$e(e),Li(A$e,e)||(r=k$e(e),r===null))return Xs;this.host=r}else{if(Li(x$e,e))return Xs;for(r="",n=vf(e),i=0;i<n.length;i++)r+=gu(n[i],qw);this.host=r}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme=="file"},includesCredentials:function(){return this.username!=""||this.password!=""},isSpecial:function(){return Sx(Iw,this.scheme)},shortenPath:function(){var e=this.path,r=e.length;r&&(this.scheme!="file"||r!=1||!Id(e[0],!0))&&e.length--},serialize:function(){var e=this,r=e.scheme,n=e.username,i=e.password,a=e.host,l=e.port,c=e.path,f=e.query,d=e.fragment,y=r+":";return a!==null?(y+="//",e.includesCredentials()&&(y+=n+(i?":"+i:"")+"@"),y+=xd(a),l!==null&&(y+=":"+l)):r=="file"&&(y+="//"),y+=e.cannotBeABaseURL?c[0]:c.length?"/"+Rd(c,"/"):"",f!==null&&(y+="?"+f),d!==null&&(y+="#"+d),y},setHref:function(e){var r=this.parse(e);if(r)throw _x(r);this.searchParams.update()},getOrigin:function(){var e=this.scheme,r=this.port;if(e=="blob")try{return new gf(e.path[0]).origin}catch(n){return"null"}return e=="file"||!this.isSpecial()?"null":e+"://"+xd(this.host)+(r!==null?":"+r:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(ea(e)+":",fx)},getUsername:function(){return this.username},setUsername:function(e){var r=vf(ea(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<r.length;n++)this.username+=gu(r[n],cx)}},getPassword:function(){return this.password},setPassword:function(e){var r=vf(ea(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<r.length;n++)this.password+=gu(r[n],cx)}},getHost:function(){var e=this.host,r=this.port;return e===null?"":r===null?xd(e):xd(e)+":"+r},setHost:function(e){this.cannotBeABaseURL||this.parse(e,dx)},getHostname:function(){var e=this.host;return e===null?"":xd(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,vx)},getPort:function(){var e=this.port;return e===null?"":ea(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=ea(e),e==""?this.port=null:this.parse(e,yx))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Rd(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,yf))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=ea(e),e==""?this.query=null:(li(e,0)=="?"&&(e=kd(e,1)),this.query="",this.parse(e,Qs)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){if(e=ea(e),e==""){this.fragment=null;return}li(e,0)=="#"&&(e=kd(e,1)),this.fragment="",this.parse(e,Zo)},update:function(){this.query=this.searchParams.serialize()||null}};var gf=function(e){var r=s$e(this,Xr),n=p$e(arguments.length,1)>1?arguments[1]:void 0,i=h$e(r,new TH(e,!1,n));Ex||(r.href=i.serialize(),r.origin=i.getOrigin(),r.protocol=i.getProtocol(),r.username=i.getUsername(),r.password=i.getPassword(),r.host=i.getHost(),r.hostname=i.getHostname(),r.port=i.getPort(),r.pathname=i.getPathname(),r.search=i.getSearch(),r.searchParams=i.getSearchParams(),r.hash=i.getHash())},Xr=gf.prototype,si=function(e,r){return{get:function(){return Lw(this)[e]()},set:r&&function(n){return Lw(this)[r](n)},configurable:!0,enumerable:!0}};Ex&&(ai(Xr,"href",si("serialize","setHref")),ai(Xr,"origin",si("getOrigin")),ai(Xr,"protocol",si("getProtocol","setProtocol")),ai(Xr,"username",si("getUsername","setUsername")),ai(Xr,"password",si("getPassword","setPassword")),ai(Xr,"host",si("getHost","setHost")),ai(Xr,"hostname",si("getHostname","setHostname")),ai(Xr,"port",si("getPort","setPort")),ai(Xr,"pathname",si("getPathname","setPathname")),ai(Xr,"search",si("getSearch","setSearch")),ai(Xr,"searchParams",si("getSearchParams")),ai(Xr,"hash",si("getHash","setHash")));Fw(Xr,"toJSON",function(){return Lw(this).serialize()},{enumerable:!0});Fw(Xr,"toString",function(){return Lw(this).serialize()},{enumerable:!0});Ad&&(bx=Ad.createObjectURL,wx=Ad.revokeObjectURL,bx&&Fw(gf,"createObjectURL",sH(bx,Ad)),wx&&Fw(gf,"revokeObjectURL",sH(wx,Ad)));var bx,wx;f$e(gf,"URL");a$e({global:!0,constructor:!0,forced:!u$e,sham:!Ex},{URL:gf})});var BH=U(function(bgt,Bw){function qd(t){"@babel/helpers - typeof";return qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qd(t)}var Fx=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n,i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{f({},"")}catch(s){f=function(u,p,v){return u[p]=v}}function d(s,o,u,p){var v=o&&o.prototype instanceof O?o:O,h=Object.create(v.prototype),b=new $(p||[]);return h._invoke=B(s,u,b),h}t.wrap=d;function y(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}var m="suspendedStart",g="suspendedYield",w="executing",P="completed",E={};function O(){}function R(){}function x(){}var A={};f(A,a,function(){return this});var I=Object.getPrototypeOf,N=I&&I(I(H([])));N&&N!==e&&r.call(N,a)&&(A=N);var j=x.prototype=O.prototype=Object.create(A);R.prototype=x,f(j,"constructor",x),f(x,"constructor",R),R.displayName=f(x,c,"GeneratorFunction");function k(s){["next","throw","return"].forEach(function(o){f(s,o,function(u){return this._invoke(o,u)})})}t.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return o?o===R||(o.displayName||o.name)==="GeneratorFunction":!1},t.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,x):(s.__proto__=x,f(s,c,"GeneratorFunction")),s.prototype=Object.create(j),s},t.awrap=function(s){return{__await:s}};function z(s,o){function u(h,b,S,_){var q=y(s[h],s,b);if(q.type==="throw")_(q.arg);else{var F=q.arg,C=F.value;return C&&qd(C)==="object"&&r.call(C,"__await")?o.resolve(C.__await).then(function(Me){u("next",Me,S,_)},function(Me){u("throw",Me,S,_)}):o.resolve(C).then(function(Me){F.value=Me,S(F)},function(Me){return u("throw",Me,S,_)})}}var p;function v(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}this._invoke=v}k(z.prototype),f(z.prototype,l,function(){return this}),t.AsyncIterator=z,t.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new z(d(s,o,u,p),v);return t.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})};function B(s,o,u){var p=m;return function(h,b){if(p===w)throw new Error("Generator is already running");if(p===P){if(h==="throw")throw b;return K()}for(u.method=h,u.arg=b;;){var S=u.delegate;if(S){var _=Y(S,u);if(_){if(_===E)continue;return _}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===m)throw p=P,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=w;var q=y(s,o,u);if(q.type==="normal"){if(p=u.done?P:g,q.arg===E)continue;return{value:q.arg,done:u.done}}else q.type==="throw"&&(p=P,u.method="throw",u.arg=q.arg)}}}function Y(s,o){var u=s.iterator[o.method];if(u===n){if(o.delegate=null,o.method==="throw"){if(s.iterator.return&&(o.method="return",o.arg=n,Y(s,o),o.method==="throw"))return E;o.method="throw",o.arg=new TypeError("The iterator does not provide a 'throw' method")}return E}var p=y(u,s.iterator,o.arg);if(p.type==="throw")return o.method="throw",o.arg=p.arg,o.delegate=null,E;var v=p.arg;if(!v)return o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,E;if(v.done)o[s.resultName]=v.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=n);else return v;return o.delegate=null,E}k(j),f(j,c,"Generator"),f(j,a,function(){return this}),f(j,"toString",function(){return"[object Generator]"});function Q(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function X(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function $(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(Q,this),this.reset(!0)}t.keys=function(s){var o=[];for(var u in s)o.push(u);return o.reverse(),function p(){for(;o.length;){var v=o.pop();if(v in s)return p.value=v,p.done=!1,p}return p.done=!0,p}};function H(s){if(s){var o=s[a];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(r.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=n,v.done=!0,v};return p.next=p}}return{next:K}}t.values=H;function K(){return{value:n,done:!0}}return $.prototype={constructor:$,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(X),!o)for(var u in this)u.charAt(0)==="t"&&r.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=n)},stop:function(){this.done=!0;var o=this.tryEntries[0],u=o.completion;if(u.type==="throw")throw u.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=n),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=r.call(h,"catchLoc"),_=r.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else if(_){if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&r.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,E):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),E},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),X(p),E}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;X(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:H(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=n),E}},t}((typeof Bw=="undefined"?"undefined":qd(Bw))==="object"?Bw.exports:{});try{regeneratorRuntime=Fx}catch(t){(typeof globalThis=="undefined"?"undefined":qd(globalThis))==="object"?globalThis.regeneratorRuntime=Fx:Function("r","regeneratorRuntime = r")(Fx)}});var Lx=U(function(Ogt,KH){KH.exports=function(){var e={},r=e._fns={};e.emit=function(l,c,f,d,y,m,g){var w=n(l);w.length&&i(l,w,[c,f,d,y,m,g])},e.on=function(l,c){r[l]||(r[l]=[]),r[l].push(c)},e.once=function(l,c){function f(){c.apply(this,arguments),e.off(l,f)}this.on(l,f)},e.off=function(l,c){var f=[];if(l&&c){var d=this._fns[l],y=0,m=d?d.length:0;for(y;y<m;y++)d[y]!==c&&f.push(d[y])}f.length?this._fns[l]=f:delete this._fns[l]};function n(a){var l=r[a]?r[a]:[],c=a.indexOf(":"),f=c===-1?[a]:[a.substring(0,c),a.substring(c+1)],d=Object.keys(r),y=0,m=d.length;for(y;y<m;y++){var g=d[y];if(g==="*"&&(l=l.concat(r[g])),f.length===2&&f[0]===g){l=l.concat(r[g]);break}}return l}function i(a,l,c){var f=0,d=l.length;for(f;f<d&&l[f];f++)l[f].event=a,l[f].apply(l[f],c)}return e}});var zw=U(function(_gt,YH){function Cx(t){"@babel/helpers - typeof";return Cx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cx(t)}function wze(t){var e=Cx(t);return t!=null&&(e=="object"||e=="function")}YH.exports=wze});var QH=U(function(Pgt,XH){function Nx(t){"@babel/helpers - typeof";return Nx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nx(t)}var Oze=(typeof global=="undefined"?"undefined":Nx(global))=="object"&&global&&global.Object===Object&&global;XH.exports=Oze});var Mx=U(function(Egt,JH){function Dx(t){"@babel/helpers - typeof";return Dx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dx(t)}var Sze=QH(),_ze=(typeof self=="undefined"?"undefined":Dx(self))=="object"&&self&&self.Object===Object&&self,Pze=Sze||_ze||Function("return this")();JH.exports=Pze});var eW=U(function(Tgt,ZH){var Eze=Mx(),Tze=function(){return Eze.Date.now()};ZH.exports=Tze});var rW=U(function(Agt,tW){var Aze=/\s/;function xze(t){for(var e=t.length;e--&&Aze.test(t.charAt(e)););return e}tW.exports=xze});var iW=U(function(xgt,nW){var Rze=rW(),Ize=/^\s+/;function kze(t){return t&&t.slice(0,Rze(t)+1).replace(Ize,"")}nW.exports=kze});var Ux=U(function(Rgt,oW){var jze=Mx(),qze=jze.Symbol;oW.exports=qze});var lW=U(function(Igt,sW){var aW=Ux(),uW=Object.prototype,Fze=uW.hasOwnProperty,Lze=uW.toString,Cd=aW?aW.toStringTag:void 0;function Cze(t){var e=Fze.call(t,Cd),r=t[Cd];try{t[Cd]=void 0;var n=!0}catch(a){}var i=Lze.call(t);return n&&(e?t[Cd]=r:delete t[Cd]),i}sW.exports=Cze});var fW=U(function(kgt,cW){var Nze=Object.prototype,Dze=Nze.toString;function Mze(t){return Dze.call(t)}cW.exports=Mze});var vW=U(function(jgt,dW){var pW=Ux(),Uze=lW(),Bze=fW(),Gze="[object Null]",$ze="[object Undefined]",hW=pW?pW.toStringTag:void 0;function zze(t){return t==null?t===void 0?$ze:Gze:hW&&hW in Object(t)?Uze(t):Bze(t)}dW.exports=zze});var mW=U(function(qgt,yW){function Bx(t){"@babel/helpers - typeof";return Bx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bx(t)}function Hze(t){return t!=null&&Bx(t)=="object"}yW.exports=Hze});var bW=U(function(Fgt,gW){function Gx(t){"@babel/helpers - typeof";return Gx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gx(t)}var Wze=vW(),Vze=mW(),Kze="[object Symbol]";function Yze(t){return Gx(t)=="symbol"||Vze(t)&&Wze(t)==Kze}gW.exports=Yze});var _W=U(function(Lgt,SW){var Xze=iW(),wW=zw(),Qze=bW(),OW=NaN,Jze=/^[-+]0x[0-9a-f]+$/i,Zze=/^0b[01]+$/i,eHe=/^0o[0-7]+$/i,tHe=parseInt;function rHe(t){if(typeof t=="number")return t;if(Qze(t))return OW;if(wW(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=wW(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Xze(t);var r=Zze.test(t);return r||eHe.test(t)?tHe(t.slice(2),r?2:8):Jze.test(t)?OW:+t}SW.exports=rHe});var zx=U(function(Cgt,EW){var nHe=zw(),$x=eW(),PW=_W(),iHe="Expected a function",oHe=Math.max,aHe=Math.min;function uHe(t,e,r){var n,i,a,l,c,f,d=0,y=!1,m=!1,g=!0;if(typeof t!="function")throw new TypeError(iHe);e=PW(e)||0,nHe(r)&&(y=!!r.leading,m="maxWait"in r,a=m?oHe(PW(r.maxWait)||0,e):a,g="trailing"in r?!!r.trailing:g);function w(j){var k=n,z=i;return n=i=void 0,d=j,l=t.apply(z,k),l}function P(j){return d=j,c=setTimeout(R,e),y?w(j):l}function E(j){var k=j-f,z=j-d,B=e-k;return m?aHe(B,a-z):B}function O(j){var k=j-f,z=j-d;return f===void 0||k>=e||k<0||m&&z>=a}function R(){var j=$x();if(O(j))return x(j);c=setTimeout(R,E(j))}function x(j){return c=void 0,g&&n?w(j):(n=i=void 0,l)}function A(){c!==void 0&&clearTimeout(c),d=0,n=f=i=c=void 0}function I(){return c===void 0?l:x($x())}function N(){var j=$x(),k=O(j);if(n=arguments,i=this,f=j,k){if(c===void 0)return P(f);if(m)return clearTimeout(c),c=setTimeout(R,e),w(f)}return c===void 0&&(c=setTimeout(R,e)),l}return N.cancel=A,N.flush=I,N}EW.exports=uHe});var Hw=U(function(Ngt,TW){var sHe=zx(),lHe=zw(),cHe="Expected a function";function fHe(t,e,r){var n=!0,i=!0;if(typeof t!="function")throw new TypeError(cHe);return lHe(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),sHe(t,e,{leading:n,maxWait:e,trailing:i})}TW.exports=fHe});var Bd=U(function(Qgt,NW){"use strict";function Xx(t){"@babel/helpers - typeof";return Xx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xx(t)}NW.exports=function(e){if(typeof e!="number"||Number.isNaN(e))throw new TypeError("Expected a number, got ".concat(Xx(e)));var r=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(r&&(e=-e),e<1)return"".concat((r?"-":"")+e," B");var i=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,i));var a=n[i];return e>=10||e%1===0?"".concat((r?"-":"")+e.toFixed(0)," ").concat(a):"".concat((r?"-":"")+e.toFixed(1)," ").concat(a)}});var UW=U(function(Jgt,MW){"use strict";function Qx(t){"@babel/helpers - typeof";return Qx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qx(t)}function DW(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}DW.prototype.match=function(t){var e=!0,r=this.parts,n,i=r.length,a;if(typeof t=="string"||t instanceof String)if(!this.hasWild&&this.text!=t)e=!1;else{for(a=(t||"").split(this.separator),n=0;e&&n<i;n++)r[n]!=="*"&&(n<a.length?e=r[n]===a[n]:e=!1);e=e&&a}else if(typeof t.splice=="function")for(e=[],n=t.length;n--;)this.match(t[n])&&(e[e.length]=t[n]);else if(Qx(t)=="object"){e={};for(var l in t)this.match(l)&&(e[l]=t[l])}return e};MW.exports=function(t,e,r){var n=new DW(t,r||/[\/\.]/);return typeof e!="undefined"?n.match(e):n}});var GW=U(function(Zgt,BW){var PHe=UW(),EHe=/[\/\+\.]/;BW.exports=function(t,e){function r(n){var i=PHe(n,t,EHe);return i&&i.length>=2}return e?r(e.split(";")[0]):r}});var CV=U(function(jbt,LV){function di(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}LV.exports=di;di.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};di.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};di.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};di.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};di.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};di.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};di.prototype.start=di.prototype.try;di.prototype.errors=function(){return this._errors};di.prototype.attempts=function(){return this._attempts};di.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],a=i.message,l=(t[a]||0)+1;t[a]=l,l>=r&&(e=i,r=l)}return e}});var NV=U(function(ol){var $We=CV();ol.operation=function(t){var e=ol.timeouts(t);return new $We(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};ol.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(a,l){return a-l}),n};ol.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};ol.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var a=r[i],l=t[a];t[a]=function(f){var d=ol.operation(e),y=Array.prototype.slice.call(arguments,1),m=y.pop();y.push(function(g){d.retry(g)||(g&&(arguments[0]=d.mainError()),m.apply(this,arguments))}),d.attempt(function(){f.apply(t,y)})}.bind(t,l),t[a].options=e}}});var MV=U(function(Fbt,DV){DV.exports=NV()});var _K=U(function(pwt,MR){"use strict";var LKe=Object.prototype.hasOwnProperty,Qr="~";function wv(){}Object.create&&(wv.prototype=Object.create(null),new wv().__proto__||(Qr=!1));function CKe(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function SK(t,e,r,n,i){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new CKe(r,n||t,i),l=Qr?Qr+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],a]:t._events[l].push(a):(t._events[l]=a,t._eventsCount++),t}function p0(t,e){--t._eventsCount===0?t._events=new wv:delete t._events[e]}function Br(){this._events=new wv,this._eventsCount=0}Br.prototype.eventNames=function(){var e=[],r,n;if(this._eventsCount===0)return e;for(n in r=this._events)LKe.call(r,n)&&e.push(Qr?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e};Br.prototype.listeners=function(e){var r=Qr?Qr+e:e,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,l=new Array(a);i<a;i++)l[i]=n[i].fn;return l};Br.prototype.listenerCount=function(e){var r=Qr?Qr+e:e,n=this._events[r];return n?n.fn?1:n.length:0};Br.prototype.emit=function(e,r,n,i,a,l){var c=Qr?Qr+e:e;if(!this._events[c])return!1;var f=this._events[c],d=arguments.length,y,m;if(f.fn){switch(f.once&&this.removeListener(e,f.fn,void 0,!0),d){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,r),!0;case 3:return f.fn.call(f.context,r,n),!0;case 4:return f.fn.call(f.context,r,n,i),!0;case 5:return f.fn.call(f.context,r,n,i,a),!0;case 6:return f.fn.call(f.context,r,n,i,a,l),!0}for(m=1,y=new Array(d-1);m<d;m++)y[m-1]=arguments[m];f.fn.apply(f.context,y)}else{var g=f.length,w;for(m=0;m<g;m++)switch(f[m].once&&this.removeListener(e,f[m].fn,void 0,!0),d){case 1:f[m].fn.call(f[m].context);break;case 2:f[m].fn.call(f[m].context,r);break;case 3:f[m].fn.call(f[m].context,r,n);break;case 4:f[m].fn.call(f[m].context,r,n,i);break;default:if(!y)for(w=1,y=new Array(d-1);w<d;w++)y[w-1]=arguments[w];f[m].fn.apply(f[m].context,y)}}return!0};Br.prototype.on=function(e,r,n){return SK(this,e,r,n,!1)};Br.prototype.once=function(e,r,n){return SK(this,e,r,n,!0)};Br.prototype.removeListener=function(e,r,n,i){var a=Qr?Qr+e:e;if(!this._events[a])return this;if(!r)return p0(this,a),this;var l=this._events[a];if(l.fn)l.fn===r&&(!i||l.once)&&(!n||l.context===n)&&p0(this,a);else{for(var c=0,f=[],d=l.length;c<d;c++)(l[c].fn!==r||i&&!l[c].once||n&&l[c].context!==n)&&f.push(l[c]);f.length?this._events[a]=f.length===1?f[0]:f:p0(this,a)}return this};Br.prototype.removeAllListeners=function(e){var r;return e?(r=Qr?Qr+e:e,this._events[r]&&p0(this,r)):(this._events=new wv,this._eventsCount=0),this};Br.prototype.off=Br.prototype.removeListener;Br.prototype.addListener=Br.prototype.on;Br.prefixed=Qr;Br.EventEmitter=Br;typeof MR!="undefined"&&(MR.exports=Br)});var Gn=U(function(Lwt,P0){function E0(t){"@babel/helpers - typeof";return E0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E0(t)}(function(){"use strict";var t={}.hasOwnProperty;function e(){for(var r=[],n=0;n<arguments.length;n++){var i=arguments[n];if(i){var a=E0(i);if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var l=e.apply(null,i);l&&r.push(l)}}else if(a==="object")if(i.toString===Object.prototype.toString)for(var c in i)t.call(i,c)&&i[c]&&r.push(c);else r.push(i.toString())}}return r.join(" ")}typeof P0!="undefined"&&P0.exports?(e.default=e,P0.exports=e):typeof define=="function"&&E0(define.amd)==="object"&&define.amd?define("classnames",[],function(){return e}):window.classNames=e})()});var bQ=U(function(iSt,gQ){gQ.exports=function(e,r){if(e===r)return!0;for(var n in e)if(!(n in r))return!1;for(var n in r)if(e[n]!==r[n])return!1;return!0}});var TJ=U(function(SO,Xk){function Yk(t){"@babel/helpers - typeof";return Yk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yk(t)}(function(t,e){(typeof SO=="undefined"?"undefined":Yk(SO))==="object"&&typeof Xk!="undefined"?Xk.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self,t.Cropper=e())})(SO,function(){"use strict";function t(W){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(M){return typeof M}:t=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},t(W)}function e(W,L){if(!(W instanceof L))throw new TypeError("Cannot call a class as a function")}function r(W,L){for(var M=0;M<L.length;M++){var D=L[M];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(W,D.key,D)}}function n(W,L,M){return L&&r(W.prototype,L),M&&r(W,M),W}function i(W,L,M){return L in W?Object.defineProperty(W,L,{value:M,enumerable:!0,configurable:!0,writable:!0}):W[L]=M,W}function a(W,L){var M=Object.keys(W);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(W);L&&(D=D.filter(function(J){return Object.getOwnPropertyDescriptor(W,J).enumerable})),M.push.apply(M,D)}return M}function l(W){for(var L=1;L<arguments.length;L++){var M=arguments[L]!=null?arguments[L]:{};L%2?a(Object(M),!0).forEach(function(D){i(W,D,M[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(M)):a(Object(M)).forEach(function(D){Object.defineProperty(W,D,Object.getOwnPropertyDescriptor(M,D))})}return W}function c(W){return f(W)||d(W)||y(W)||g()}function f(W){if(Array.isArray(W))return m(W)}function d(W){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(W))return Array.from(W)}function y(W,L){if(W){if(typeof W=="string")return m(W,L);var M=Object.prototype.toString.call(W).slice(8,-1);if(M==="Object"&&W.constructor&&(M=W.constructor.name),M==="Map"||M==="Set")return Array.from(W);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return m(W,L)}}function m(W,L){(L==null||L>W.length)&&(L=W.length);for(var M=0,D=new Array(L);M<L;M++)D[M]=W[M];return D}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var w=typeof window!="undefined"&&typeof window.document!="undefined",P=w?window:{},E=w&&P.document.documentElement?"ontouchstart"in P.document.documentElement:!1,O=w?"PointerEvent"in P:!1,R="cropper",x="all",A="crop",I="move",N="zoom",j="e",k="w",z="s",B="n",Y="ne",Q="nw",X="se",$="sw",H="".concat(R,"-crop"),K="".concat(R,"-disabled"),s="".concat(R,"-hidden"),o="".concat(R,"-hide"),u="".concat(R,"-invisible"),p="".concat(R,"-modal"),v="".concat(R,"-move"),h="".concat(R,"Action"),b="".concat(R,"Preview"),S="crop",_="move",q="none",F="crop",C="cropend",Me="cropmove",Fe="cropstart",Ee="dblclick",Re=E?"touchstart":"mousedown",Qe=E?"touchmove":"mousemove",st=E?"touchend touchcancel":"mouseup",Xt=O?"pointerdown":Re,pt=O?"pointermove":Qe,we=O?"pointerup pointercancel":st,Qt="ready",kt="resize",Pi="wheel",ls="zoom",Na="image/jpeg",cs=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,fs=/^data:/,ps=/^data:image\/jpeg;base64,/,Da=/^img|canvas$/i,Jt={viewMode:0,dragMode:S,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},hr='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',Cm=Number.isNaN||P.isNaN;function Le(W){return typeof W=="number"&&!Cm(W)}var zp=function(L){return L>0&&L<1/0};function fc(W){return typeof W=="undefined"}function eo(W){return t(W)==="object"&&W!==null}var Nm=Object.prototype.hasOwnProperty;function Lo(W){if(!eo(W))return!1;try{var L=W.constructor,M=L.prototype;return L&&M&&Nm.call(M,"isPrototypeOf")}catch(D){return!1}}function Sr(W){return typeof W=="function"}var Dm=Array.prototype.slice;function Mm(W){return Array.from?Array.from(W):Dm.call(W)}function jt(W,L){return W&&Sr(L)&&(Array.isArray(W)||Le(W.length)?Mm(W).forEach(function(M,D){L.call(W,M,D,W)}):eo(W)&&Object.keys(W).forEach(function(M){L.call(W,W[M],M,W)})),W}var lt=Object.assign||function(L){for(var M=arguments.length,D=new Array(M>1?M-1:0),J=1;J<M;J++)D[J-1]=arguments[J];return eo(L)&&D.length>0&&D.forEach(function(V){eo(V)&&Object.keys(V).forEach(function(Z){L[Z]=V[Z]})}),L},qS=/\.\d*(?:0|9){12}\d*$/;function to(W){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return qS.test(W)?Math.round(W*L)/L:W}var Um=/^width|height|left|top|marginLeft|marginTop$/;function Ei(W,L){var M=W.style;jt(L,function(D,J){Um.test(J)&&Le(D)&&(D="".concat(D,"px")),M[J]=D})}function Hp(W,L){return W.classList?W.classList.contains(L):W.className.indexOf(L)>-1}function qt(W,L){if(L){if(Le(W.length)){jt(W,function(D){qt(D,L)});return}if(W.classList){W.classList.add(L);return}var M=W.className.trim();M?M.indexOf(L)<0&&(W.className="".concat(M," ").concat(L)):W.className=L}}function xn(W,L){if(L){if(Le(W.length)){jt(W,function(M){xn(M,L)});return}if(W.classList){W.classList.remove(L);return}W.className.indexOf(L)>=0&&(W.className=W.className.replace(L,""))}}function Co(W,L,M){if(L){if(Le(W.length)){jt(W,function(D){Co(D,L,M)});return}M?qt(W,L):xn(W,L)}}var Bm=/([a-z\d])([A-Z])/g;function pc(W){return W.replace(Bm,"$1-$2").toLowerCase()}function hc(W,L){return eo(W[L])?W[L]:W.dataset?W.dataset[L]:W.getAttribute("data-".concat(pc(L)))}function dc(W,L,M){eo(M)?W[L]=M:W.dataset?W.dataset[L]=M:W.setAttribute("data-".concat(pc(L)),M)}function hs(W,L){if(eo(W[L]))try{delete W[L]}catch(M){W[L]=void 0}else if(W.dataset)try{delete W.dataset[L]}catch(M){W.dataset[L]=void 0}else W.removeAttribute("data-".concat(pc(L)))}var Wp=/\s\s*/,Vp=function(){var W=!1;if(w){var L=!1,M=function(){},D=Object.defineProperty({},"once",{get:function(){return W=!0,L},set:function(V){L=V}});P.addEventListener("test",M,D),P.removeEventListener("test",M,D)}return W}();function dr(W,L,M){var D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},J=M;L.trim().split(Wp).forEach(function(V){if(!Vp){var Z=W.listeners;Z&&Z[V]&&Z[V][M]&&(J=Z[V][M],delete Z[V][M],Object.keys(Z[V]).length===0&&delete Z[V],Object.keys(Z).length===0&&delete W.listeners)}W.removeEventListener(V,J,D)})}function Nr(W,L,M){var D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},J=M;L.trim().split(Wp).forEach(function(V){if(D.once&&!Vp){var Z=W.listeners,ee=Z===void 0?{}:Z;J=function(){delete ee[V][M],W.removeEventListener(V,J,D);for(var ne=arguments.length,re=new Array(ne),te=0;te<ne;te++)re[te]=arguments[te];M.apply(W,re)},ee[V]||(ee[V]={}),ee[V][M]&&W.removeEventListener(V,ee[V][M],D),ee[V][M]=J,W.listeners=ee}W.addEventListener(V,J,D)})}function ri(W,L,M){var D;return Sr(Event)&&Sr(CustomEvent)?D=new CustomEvent(L,{detail:M,bubbles:!0,cancelable:!0}):(D=document.createEvent("CustomEvent"),D.initCustomEvent(L,!0,!0,M)),W.dispatchEvent(D)}function qF(W){var L=W.getBoundingClientRect();return{left:L.left+(window.pageXOffset-document.documentElement.clientLeft),top:L.top+(window.pageYOffset-document.documentElement.clientTop)}}var FS=P.location,Cie=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function FF(W){var L=W.match(Cie);return L!==null&&(L[1]!==FS.protocol||L[2]!==FS.hostname||L[3]!==FS.port)}function LF(W){var L="timestamp=".concat(new Date().getTime());return W+(W.indexOf("?")===-1?"?":"&")+L}function Kp(W){var L=W.rotate,M=W.scaleX,D=W.scaleY,J=W.translateX,V=W.translateY,Z=[];Le(J)&&J!==0&&Z.push("translateX(".concat(J,"px)")),Le(V)&&V!==0&&Z.push("translateY(".concat(V,"px)")),Le(L)&&L!==0&&Z.push("rotate(".concat(L,"deg)")),Le(M)&&M!==1&&Z.push("scaleX(".concat(M,")")),Le(D)&&D!==1&&Z.push("scaleY(".concat(D,")"));var ee=Z.length?Z.join(" "):"none";return{WebkitTransform:ee,msTransform:ee,transform:ee}}function Nie(W){var L=l({},W),M=[];return jt(W,function(D,J){delete L[J],jt(L,function(V){var Z=Math.abs(D.startX-V.startX),ee=Math.abs(D.startY-V.startY),ae=Math.abs(D.endX-V.endX),ne=Math.abs(D.endY-V.endY),re=Math.sqrt(Z*Z+ee*ee),te=Math.sqrt(ae*ae+ne*ne),oe=(te-re)/re;M.push(oe)})}),M.sort(function(D,J){return Math.abs(D)<Math.abs(J)}),M[0]}function Gm(W,L){var M=W.pageX,D=W.pageY,J={endX:M,endY:D};return L?J:l({startX:M,startY:D},J)}function Die(W){var L=0,M=0,D=0;return jt(W,function(J){var V=J.startX,Z=J.startY;L+=V,M+=Z,D+=1}),L/=D,M/=D,{pageX:L,pageY:M}}function Ma(W){var L=W.aspectRatio,M=W.height,D=W.width,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",V=zp(D),Z=zp(M);if(V&&Z){var ee=M*L;J==="contain"&&ee>D||J==="cover"&&ee<D?M=D/L:D=M*L}else V?M=D/L:Z&&(D=M*L);return{width:D,height:M}}function Mie(W){var L=W.width,M=W.height,D=W.degree;if(D=Math.abs(D)%180,D===90)return{width:M,height:L};var J=D%90*Math.PI/180,V=Math.sin(J),Z=Math.cos(J),ee=L*Z+M*V,ae=L*V+M*Z;return D>90?{width:ae,height:ee}:{width:ee,height:ae}}function Uie(W,L,M,D){var J=L.aspectRatio,V=L.naturalWidth,Z=L.naturalHeight,ee=L.rotate,ae=ee===void 0?0:ee,ne=L.scaleX,re=ne===void 0?1:ne,te=L.scaleY,oe=te===void 0?1:te,Ye=M.aspectRatio,Ve=M.naturalWidth,mt=M.naturalHeight,et=D.fillColor,Zt=et===void 0?"transparent":et,vr=D.imageSmoothingEnabled,Gt=vr===void 0?!0:vr,No=D.imageSmoothingQuality,Rn=No===void 0?"low":No,se=D.maxWidth,tt=se===void 0?1/0:se,er=D.maxHeight,ni=er===void 0?1/0:er,Do=D.minWidth,ds=Do===void 0?0:Do,vs=D.minHeight,Ua=vs===void 0?0:vs,ro=document.createElement("canvas"),pn=ro.getContext("2d"),ys=Ma({aspectRatio:Ye,width:tt,height:ni}),$m=Ma({aspectRatio:Ye,width:ds,height:Ua},"cover"),LS=Math.min(ys.width,Math.max($m.width,Ve)),CS=Math.min(ys.height,Math.max($m.height,mt)),DF=Ma({aspectRatio:J,width:tt,height:ni}),MF=Ma({aspectRatio:J,width:ds,height:Ua},"cover"),UF=Math.min(DF.width,Math.max(MF.width,V)),BF=Math.min(DF.height,Math.max(MF.height,Z)),eoe=[-UF/2,-BF/2,UF,BF];return ro.width=to(LS),ro.height=to(CS),pn.fillStyle=Zt,pn.fillRect(0,0,LS,CS),pn.save(),pn.translate(LS/2,CS/2),pn.rotate(ae*Math.PI/180),pn.scale(re,oe),pn.imageSmoothingEnabled=Gt,pn.imageSmoothingQuality=Rn,pn.drawImage.apply(pn,[W].concat(c(eoe.map(function(toe){return Math.floor(to(toe))})))),pn.restore(),ro}var CF=String.fromCharCode;function Bie(W,L,M){var D="";M+=L;for(var J=L;J<M;J+=1)D+=CF(W.getUint8(J));return D}var Gie=/^data:.*,/;function $ie(W){var L=W.replace(Gie,""),M=atob(L),D=new ArrayBuffer(M.length),J=new Uint8Array(D);return jt(J,function(V,Z){J[Z]=M.charCodeAt(Z)}),D}function zie(W,L){for(var M=[],D=8192,J=new Uint8Array(W);J.length>0;)M.push(CF.apply(null,Mm(J.subarray(0,D)))),J=J.subarray(D);return"data:".concat(L,";base64,").concat(btoa(M.join("")))}function Hie(W){var L=new DataView(W),M;try{var D,J,V;if(L.getUint8(0)===255&&L.getUint8(1)===216)for(var Z=L.byteLength,ee=2;ee+1<Z;){if(L.getUint8(ee)===255&&L.getUint8(ee+1)===225){J=ee;break}ee+=1}if(J){var ae=J+4,ne=J+10;if(Bie(L,ae,4)==="Exif"){var re=L.getUint16(ne);if(D=re===18761,(D||re===19789)&&L.getUint16(ne+2,D)===42){var te=L.getUint32(ne+4,D);te>=8&&(V=ne+te)}}}if(V){var oe=L.getUint16(V,D),Ye,Ve;for(Ve=0;Ve<oe;Ve+=1)if(Ye=V+Ve*12+2,L.getUint16(Ye,D)===274){Ye+=8,M=L.getUint16(Ye,D),L.setUint16(Ye,1,D);break}}}catch(mt){M=1}return M}function Wie(W){var L=0,M=1,D=1;switch(W){case 2:M=-1;break;case 3:L=-180;break;case 4:D=-1;break;case 5:L=90,D=-1;break;case 6:L=90;break;case 7:L=90,M=-1;break;case 8:L=-90;break}return{rotate:L,scaleX:M,scaleY:D}}var Vie={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var L=this.element,M=this.options,D=this.container,J=this.cropper;qt(J,s),xn(L,s);var V={width:Math.max(D.offsetWidth,Number(M.minContainerWidth)||200),height:Math.max(D.offsetHeight,Number(M.minContainerHeight)||100)};this.containerData=V,Ei(J,{width:V.width,height:V.height}),qt(L,s),xn(J,s)},initCanvas:function(){var L=this.containerData,M=this.imageData,D=this.options.viewMode,J=Math.abs(M.rotate)%180===90,V=J?M.naturalHeight:M.naturalWidth,Z=J?M.naturalWidth:M.naturalHeight,ee=V/Z,ae=L.width,ne=L.height;L.height*ee>L.width?D===3?ae=L.height*ee:ne=L.width/ee:D===3?ne=L.width/ee:ae=L.height*ee;var re={aspectRatio:ee,naturalWidth:V,naturalHeight:Z,width:ae,height:ne};re.left=(L.width-ae)/2,re.top=(L.height-ne)/2,re.oldLeft=re.left,re.oldTop=re.top,this.canvasData=re,this.limited=D===1||D===2,this.limitCanvas(!0,!0),this.initialImageData=lt({},M),this.initialCanvasData=lt({},re)},limitCanvas:function(L,M){var D=this.options,J=this.containerData,V=this.canvasData,Z=this.cropBoxData,ee=D.viewMode,ae=V.aspectRatio,ne=this.cropped&&Z;if(L){var re=Number(D.minCanvasWidth)||0,te=Number(D.minCanvasHeight)||0;ee>1?(re=Math.max(re,J.width),te=Math.max(te,J.height),ee===3&&(te*ae>re?re=te*ae:te=re/ae)):ee>0&&(re?re=Math.max(re,ne?Z.width:0):te?te=Math.max(te,ne?Z.height:0):ne&&(re=Z.width,te=Z.height,te*ae>re?re=te*ae:te=re/ae));var oe=Ma({aspectRatio:ae,width:re,height:te});re=oe.width,te=oe.height,V.minWidth=re,V.minHeight=te,V.maxWidth=1/0,V.maxHeight=1/0}if(M)if(ee>(ne?0:1)){var Ye=J.width-V.width,Ve=J.height-V.height;V.minLeft=Math.min(0,Ye),V.minTop=Math.min(0,Ve),V.maxLeft=Math.max(0,Ye),V.maxTop=Math.max(0,Ve),ne&&this.limited&&(V.minLeft=Math.min(Z.left,Z.left+(Z.width-V.width)),V.minTop=Math.min(Z.top,Z.top+(Z.height-V.height)),V.maxLeft=Z.left,V.maxTop=Z.top,ee===2&&(V.width>=J.width&&(V.minLeft=Math.min(0,Ye),V.maxLeft=Math.max(0,Ye)),V.height>=J.height&&(V.minTop=Math.min(0,Ve),V.maxTop=Math.max(0,Ve))))}else V.minLeft=-V.width,V.minTop=-V.height,V.maxLeft=J.width,V.maxTop=J.height},renderCanvas:function(L,M){var D=this.canvasData,J=this.imageData;if(M){var V=Mie({width:J.naturalWidth*Math.abs(J.scaleX||1),height:J.naturalHeight*Math.abs(J.scaleY||1),degree:J.rotate||0}),Z=V.width,ee=V.height,ae=D.width*(Z/D.naturalWidth),ne=D.height*(ee/D.naturalHeight);D.left-=(ae-D.width)/2,D.top-=(ne-D.height)/2,D.width=ae,D.height=ne,D.aspectRatio=Z/ee,D.naturalWidth=Z,D.naturalHeight=ee,this.limitCanvas(!0,!1)}(D.width>D.maxWidth||D.width<D.minWidth)&&(D.left=D.oldLeft),(D.height>D.maxHeight||D.height<D.minHeight)&&(D.top=D.oldTop),D.width=Math.min(Math.max(D.width,D.minWidth),D.maxWidth),D.height=Math.min(Math.max(D.height,D.minHeight),D.maxHeight),this.limitCanvas(!1,!0),D.left=Math.min(Math.max(D.left,D.minLeft),D.maxLeft),D.top=Math.min(Math.max(D.top,D.minTop),D.maxTop),D.oldLeft=D.left,D.oldTop=D.top,Ei(this.canvas,lt({width:D.width,height:D.height},Kp({translateX:D.left,translateY:D.top}))),this.renderImage(L),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(L){var M=this.canvasData,D=this.imageData,J=D.naturalWidth*(M.width/M.naturalWidth),V=D.naturalHeight*(M.height/M.naturalHeight);lt(D,{width:J,height:V,left:(M.width-J)/2,top:(M.height-V)/2}),Ei(this.image,lt({width:D.width,height:D.height},Kp(lt({translateX:D.left,translateY:D.top},D)))),L&&this.output()},initCropBox:function(){var L=this.options,M=this.canvasData,D=L.aspectRatio||L.initialAspectRatio,J=Number(L.autoCropArea)||.8,V={width:M.width,height:M.height};D&&(M.height*D>M.width?V.height=V.width/D:V.width=V.height*D),this.cropBoxData=V,this.limitCropBox(!0,!0),V.width=Math.min(Math.max(V.width,V.minWidth),V.maxWidth),V.height=Math.min(Math.max(V.height,V.minHeight),V.maxHeight),V.width=Math.max(V.minWidth,V.width*J),V.height=Math.max(V.minHeight,V.height*J),V.left=M.left+(M.width-V.width)/2,V.top=M.top+(M.height-V.height)/2,V.oldLeft=V.left,V.oldTop=V.top,this.initialCropBoxData=lt({},V)},limitCropBox:function(L,M){var D=this.options,J=this.containerData,V=this.canvasData,Z=this.cropBoxData,ee=this.limited,ae=D.aspectRatio;if(L){var ne=Number(D.minCropBoxWidth)||0,re=Number(D.minCropBoxHeight)||0,te=ee?Math.min(J.width,V.width,V.width+V.left,J.width-V.left):J.width,oe=ee?Math.min(J.height,V.height,V.height+V.top,J.height-V.top):J.height;ne=Math.min(ne,J.width),re=Math.min(re,J.height),ae&&(ne&&re?re*ae>ne?re=ne/ae:ne=re*ae:ne?re=ne/ae:re&&(ne=re*ae),oe*ae>te?oe=te/ae:te=oe*ae),Z.minWidth=Math.min(ne,te),Z.minHeight=Math.min(re,oe),Z.maxWidth=te,Z.maxHeight=oe}M&&(ee?(Z.minLeft=Math.max(0,V.left),Z.minTop=Math.max(0,V.top),Z.maxLeft=Math.min(J.width,V.left+V.width)-Z.width,Z.maxTop=Math.min(J.height,V.top+V.height)-Z.height):(Z.minLeft=0,Z.minTop=0,Z.maxLeft=J.width-Z.width,Z.maxTop=J.height-Z.height))},renderCropBox:function(){var L=this.options,M=this.containerData,D=this.cropBoxData;(D.width>D.maxWidth||D.width<D.minWidth)&&(D.left=D.oldLeft),(D.height>D.maxHeight||D.height<D.minHeight)&&(D.top=D.oldTop),D.width=Math.min(Math.max(D.width,D.minWidth),D.maxWidth),D.height=Math.min(Math.max(D.height,D.minHeight),D.maxHeight),this.limitCropBox(!1,!0),D.left=Math.min(Math.max(D.left,D.minLeft),D.maxLeft),D.top=Math.min(Math.max(D.top,D.minTop),D.maxTop),D.oldLeft=D.left,D.oldTop=D.top,L.movable&&L.cropBoxMovable&&dc(this.face,h,D.width>=M.width&&D.height>=M.height?I:x),Ei(this.cropBox,lt({width:D.width,height:D.height},Kp({translateX:D.left,translateY:D.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),ri(this.element,F,this.getData())}},Kie={initPreview:function(){var L=this.element,M=this.crossOrigin,D=this.options.preview,J=M?this.crossOriginUrl:this.url,V=L.alt||"The image to preview",Z=document.createElement("img");if(M&&(Z.crossOrigin=M),Z.src=J,Z.alt=V,this.viewBox.appendChild(Z),this.viewBoxImage=Z,!!D){var ee=D;typeof D=="string"?ee=L.ownerDocument.querySelectorAll(D):D.querySelector&&(ee=[D]),this.previews=ee,jt(ee,function(ae){var ne=document.createElement("img");dc(ae,b,{width:ae.offsetWidth,height:ae.offsetHeight,html:ae.innerHTML}),M&&(ne.crossOrigin=M),ne.src=J,ne.alt=V,ne.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',ae.innerHTML="",ae.appendChild(ne)})}},resetPreview:function(){jt(this.previews,function(L){var M=hc(L,b);Ei(L,{width:M.width,height:M.height}),L.innerHTML=M.html,hs(L,b)})},preview:function(){var L=this.imageData,M=this.canvasData,D=this.cropBoxData,J=D.width,V=D.height,Z=L.width,ee=L.height,ae=D.left-M.left-L.left,ne=D.top-M.top-L.top;!this.cropped||this.disabled||(Ei(this.viewBoxImage,lt({width:Z,height:ee},Kp(lt({translateX:-ae,translateY:-ne},L)))),jt(this.previews,function(re){var te=hc(re,b),oe=te.width,Ye=te.height,Ve=oe,mt=Ye,et=1;J&&(et=oe/J,mt=V*et),V&&mt>Ye&&(et=Ye/V,Ve=J*et,mt=Ye),Ei(re,{width:Ve,height:mt}),Ei(re.getElementsByTagName("img")[0],lt({width:Z*et,height:ee*et},Kp(lt({translateX:-ae*et,translateY:-ne*et},L))))}))}},Yie={bind:function(){var L=this.element,M=this.options,D=this.cropper;Sr(M.cropstart)&&Nr(L,Fe,M.cropstart),Sr(M.cropmove)&&Nr(L,Me,M.cropmove),Sr(M.cropend)&&Nr(L,C,M.cropend),Sr(M.crop)&&Nr(L,F,M.crop),Sr(M.zoom)&&Nr(L,ls,M.zoom),Nr(D,Xt,this.onCropStart=this.cropStart.bind(this)),M.zoomable&&M.zoomOnWheel&&Nr(D,Pi,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),M.toggleDragModeOnDblclick&&Nr(D,Ee,this.onDblclick=this.dblclick.bind(this)),Nr(L.ownerDocument,pt,this.onCropMove=this.cropMove.bind(this)),Nr(L.ownerDocument,we,this.onCropEnd=this.cropEnd.bind(this)),M.responsive&&Nr(window,kt,this.onResize=this.resize.bind(this))},unbind:function(){var L=this.element,M=this.options,D=this.cropper;Sr(M.cropstart)&&dr(L,Fe,M.cropstart),Sr(M.cropmove)&&dr(L,Me,M.cropmove),Sr(M.cropend)&&dr(L,C,M.cropend),Sr(M.crop)&&dr(L,F,M.crop),Sr(M.zoom)&&dr(L,ls,M.zoom),dr(D,Xt,this.onCropStart),M.zoomable&&M.zoomOnWheel&&dr(D,Pi,this.onWheel,{passive:!1,capture:!0}),M.toggleDragModeOnDblclick&&dr(D,Ee,this.onDblclick),dr(L.ownerDocument,pt,this.onCropMove),dr(L.ownerDocument,we,this.onCropEnd),M.responsive&&dr(window,kt,this.onResize)}},Xie={resize:function(){if(!this.disabled){var L=this.options,M=this.container,D=this.containerData,J=M.offsetWidth/D.width;if(J!==1||M.offsetHeight!==D.height){var V,Z;L.restore&&(V=this.getCanvasData(),Z=this.getCropBoxData()),this.render(),L.restore&&(this.setCanvasData(jt(V,function(ee,ae){V[ae]=ee*J})),this.setCropBoxData(jt(Z,function(ee,ae){Z[ae]=ee*J})))}}},dblclick:function(){this.disabled||this.options.dragMode===q||this.setDragMode(Hp(this.dragBox,H)?_:S)},wheel:function(L){var M=this,D=Number(this.options.wheelZoomRatio)||.1,J=1;this.disabled||(L.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){M.wheeling=!1},50),L.deltaY?J=L.deltaY>0?1:-1:L.wheelDelta?J=-L.wheelDelta/120:L.detail&&(J=L.detail>0?1:-1),this.zoom(-J*D,L)))},cropStart:function(L){var M=L.buttons,D=L.button;if(!(this.disabled||(L.type==="mousedown"||L.type==="pointerdown"&&L.pointerType==="mouse")&&(Le(M)&&M!==1||Le(D)&&D!==0||L.ctrlKey))){var J=this.options,V=this.pointers,Z;L.changedTouches?jt(L.changedTouches,function(ee){V[ee.identifier]=Gm(ee)}):V[L.pointerId||0]=Gm(L),Object.keys(V).length>1&&J.zoomable&&J.zoomOnTouch?Z=N:Z=hc(L.target,h),cs.test(Z)&&ri(this.element,Fe,{originalEvent:L,action:Z})!==!1&&(L.preventDefault(),this.action=Z,this.cropping=!1,Z===A&&(this.cropping=!0,qt(this.dragBox,p)))}},cropMove:function(L){var M=this.action;if(!(this.disabled||!M)){var D=this.pointers;L.preventDefault(),ri(this.element,Me,{originalEvent:L,action:M})!==!1&&(L.changedTouches?jt(L.changedTouches,function(J){lt(D[J.identifier]||{},Gm(J,!0))}):lt(D[L.pointerId||0]||{},Gm(L,!0)),this.change(L))}},cropEnd:function(L){if(!this.disabled){var M=this.action,D=this.pointers;L.changedTouches?jt(L.changedTouches,function(J){delete D[J.identifier]}):delete D[L.pointerId||0],M&&(L.preventDefault(),Object.keys(D).length||(this.action=""),this.cropping&&(this.cropping=!1,Co(this.dragBox,p,this.cropped&&this.options.modal)),ri(this.element,C,{originalEvent:L,action:M}))}}},Qie={change:function(L){var M=this.options,D=this.canvasData,J=this.containerData,V=this.cropBoxData,Z=this.pointers,ee=this.action,ae=M.aspectRatio,ne=V.left,re=V.top,te=V.width,oe=V.height,Ye=ne+te,Ve=re+oe,mt=0,et=0,Zt=J.width,vr=J.height,Gt=!0,No;!ae&&L.shiftKey&&(ae=te&&oe?te/oe:1),this.limited&&(mt=V.minLeft,et=V.minTop,Zt=mt+Math.min(J.width,D.width,D.left+D.width),vr=et+Math.min(J.height,D.height,D.top+D.height));var Rn=Z[Object.keys(Z)[0]],se={x:Rn.endX-Rn.startX,y:Rn.endY-Rn.startY},tt=function(ni){switch(ni){case j:Ye+se.x>Zt&&(se.x=Zt-Ye);break;case k:ne+se.x<mt&&(se.x=mt-ne);break;case B:re+se.y<et&&(se.y=et-re);break;case z:Ve+se.y>vr&&(se.y=vr-Ve);break}};switch(ee){case x:ne+=se.x,re+=se.y;break;case j:if(se.x>=0&&(Ye>=Zt||ae&&(re<=et||Ve>=vr))){Gt=!1;break}tt(j),te+=se.x,te<0&&(ee=k,te=-te,ne-=te),ae&&(oe=te/ae,re+=(V.height-oe)/2);break;case B:if(se.y<=0&&(re<=et||ae&&(ne<=mt||Ye>=Zt))){Gt=!1;break}tt(B),oe-=se.y,re+=se.y,oe<0&&(ee=z,oe=-oe,re-=oe),ae&&(te=oe*ae,ne+=(V.width-te)/2);break;case k:if(se.x<=0&&(ne<=mt||ae&&(re<=et||Ve>=vr))){Gt=!1;break}tt(k),te-=se.x,ne+=se.x,te<0&&(ee=j,te=-te,ne-=te),ae&&(oe=te/ae,re+=(V.height-oe)/2);break;case z:if(se.y>=0&&(Ve>=vr||ae&&(ne<=mt||Ye>=Zt))){Gt=!1;break}tt(z),oe+=se.y,oe<0&&(ee=B,oe=-oe,re-=oe),ae&&(te=oe*ae,ne+=(V.width-te)/2);break;case Y:if(ae){if(se.y<=0&&(re<=et||Ye>=Zt)){Gt=!1;break}tt(B),oe-=se.y,re+=se.y,te=oe*ae}else tt(B),tt(j),se.x>=0?Ye<Zt?te+=se.x:se.y<=0&&re<=et&&(Gt=!1):te+=se.x,se.y<=0?re>et&&(oe-=se.y,re+=se.y):(oe-=se.y,re+=se.y);te<0&&oe<0?(ee=$,oe=-oe,te=-te,re-=oe,ne-=te):te<0?(ee=Q,te=-te,ne-=te):oe<0&&(ee=X,oe=-oe,re-=oe);break;case Q:if(ae){if(se.y<=0&&(re<=et||ne<=mt)){Gt=!1;break}tt(B),oe-=se.y,re+=se.y,te=oe*ae,ne+=V.width-te}else tt(B),tt(k),se.x<=0?ne>mt?(te-=se.x,ne+=se.x):se.y<=0&&re<=et&&(Gt=!1):(te-=se.x,ne+=se.x),se.y<=0?re>et&&(oe-=se.y,re+=se.y):(oe-=se.y,re+=se.y);te<0&&oe<0?(ee=X,oe=-oe,te=-te,re-=oe,ne-=te):te<0?(ee=Y,te=-te,ne-=te):oe<0&&(ee=$,oe=-oe,re-=oe);break;case $:if(ae){if(se.x<=0&&(ne<=mt||Ve>=vr)){Gt=!1;break}tt(k),te-=se.x,ne+=se.x,oe=te/ae}else tt(z),tt(k),se.x<=0?ne>mt?(te-=se.x,ne+=se.x):se.y>=0&&Ve>=vr&&(Gt=!1):(te-=se.x,ne+=se.x),se.y>=0?Ve<vr&&(oe+=se.y):oe+=se.y;te<0&&oe<0?(ee=Y,oe=-oe,te=-te,re-=oe,ne-=te):te<0?(ee=X,te=-te,ne-=te):oe<0&&(ee=Q,oe=-oe,re-=oe);break;case X:if(ae){if(se.x>=0&&(Ye>=Zt||Ve>=vr)){Gt=!1;break}tt(j),te+=se.x,oe=te/ae}else tt(z),tt(j),se.x>=0?Ye<Zt?te+=se.x:se.y>=0&&Ve>=vr&&(Gt=!1):te+=se.x,se.y>=0?Ve<vr&&(oe+=se.y):oe+=se.y;te<0&&oe<0?(ee=Q,oe=-oe,te=-te,re-=oe,ne-=te):te<0?(ee=$,te=-te,ne-=te):oe<0&&(ee=Y,oe=-oe,re-=oe);break;case I:this.move(se.x,se.y),Gt=!1;break;case N:this.zoom(Nie(Z),L),Gt=!1;break;case A:if(!se.x||!se.y){Gt=!1;break}No=qF(this.cropper),ne=Rn.startX-No.left,re=Rn.startY-No.top,te=V.minWidth,oe=V.minHeight,se.x>0?ee=se.y>0?X:Y:se.x<0&&(ne-=te,ee=se.y>0?$:Q),se.y<0&&(re-=oe),this.cropped||(xn(this.cropBox,s),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}Gt&&(V.width=te,V.height=oe,V.left=ne,V.top=re,this.action=ee,this.renderCropBox()),jt(Z,function(er){er.startX=er.endX,er.startY=er.endY})}},Jie={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&qt(this.dragBox,p),xn(this.cropBox,s),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=lt({},this.initialImageData),this.canvasData=lt({},this.initialCanvasData),this.cropBoxData=lt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(lt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),xn(this.dragBox,p),qt(this.cropBox,s)),this},replace:function(L){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&L&&(this.isImg&&(this.element.src=L),M?(this.url=L,this.image.src=L,this.ready&&(this.viewBoxImage.src=L,jt(this.previews,function(D){D.getElementsByTagName("img")[0].src=L}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(L))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,xn(this.cropper,K)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,qt(this.cropper,K)),this},destroy:function(){var L=this.element;return L[R]?(L[R]=void 0,this.isImg&&this.replaced&&(L.src=this.originalUrl),this.uncreate(),this):this},move:function(L){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L,D=this.canvasData,J=D.left,V=D.top;return this.moveTo(fc(L)?L:J+Number(L),fc(M)?M:V+Number(M))},moveTo:function(L){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L,D=this.canvasData,J=!1;return L=Number(L),M=Number(M),this.ready&&!this.disabled&&this.options.movable&&(Le(L)&&(D.left=L,J=!0),Le(M)&&(D.top=M,J=!0),J&&this.renderCanvas(!0)),this},zoom:function(L,M){var D=this.canvasData;return L=Number(L),L<0?L=1/(1-L):L=1+L,this.zoomTo(D.width*L/D.naturalWidth,null,M)},zoomTo:function(L,M,D){var J=this.options,V=this.canvasData,Z=V.width,ee=V.height,ae=V.naturalWidth,ne=V.naturalHeight;if(L=Number(L),L>=0&&this.ready&&!this.disabled&&J.zoomable){var re=ae*L,te=ne*L;if(ri(this.element,ls,{ratio:L,oldRatio:Z/ae,originalEvent:D})===!1)return this;if(D){var oe=this.pointers,Ye=qF(this.cropper),Ve=oe&&Object.keys(oe).length?Die(oe):{pageX:D.pageX,pageY:D.pageY};V.left-=(re-Z)*((Ve.pageX-Ye.left-V.left)/Z),V.top-=(te-ee)*((Ve.pageY-Ye.top-V.top)/ee)}else Lo(M)&&Le(M.x)&&Le(M.y)?(V.left-=(re-Z)*((M.x-V.left)/Z),V.top-=(te-ee)*((M.y-V.top)/ee)):(V.left-=(re-Z)/2,V.top-=(te-ee)/2);V.width=re,V.height=te,this.renderCanvas(!0)}return this},rotate:function(L){return this.rotateTo((this.imageData.rotate||0)+Number(L))},rotateTo:function(L){return L=Number(L),Le(L)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=L%360,this.renderCanvas(!0,!0)),this},scaleX:function(L){var M=this.imageData.scaleY;return this.scale(L,Le(M)?M:1)},scaleY:function(L){var M=this.imageData.scaleX;return this.scale(Le(M)?M:1,L)},scale:function(L){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L,D=this.imageData,J=!1;return L=Number(L),M=Number(M),this.ready&&!this.disabled&&this.options.scalable&&(Le(L)&&(D.scaleX=L,J=!0),Le(M)&&(D.scaleY=M,J=!0),J&&this.renderCanvas(!0,!0)),this},getData:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,M=this.options,D=this.imageData,J=this.canvasData,V=this.cropBoxData,Z;if(this.ready&&this.cropped){Z={x:V.left-J.left,y:V.top-J.top,width:V.width,height:V.height};var ee=D.width/D.naturalWidth;if(jt(Z,function(re,te){Z[te]=re/ee}),L){var ae=Math.round(Z.y+Z.height),ne=Math.round(Z.x+Z.width);Z.x=Math.round(Z.x),Z.y=Math.round(Z.y),Z.width=ne-Z.x,Z.height=ae-Z.y}}else Z={x:0,y:0,width:0,height:0};return M.rotatable&&(Z.rotate=D.rotate||0),M.scalable&&(Z.scaleX=D.scaleX||1,Z.scaleY=D.scaleY||1),Z},setData:function(L){var M=this.options,D=this.imageData,J=this.canvasData,V={};if(this.ready&&!this.disabled&&Lo(L)){var Z=!1;M.rotatable&&Le(L.rotate)&&L.rotate!==D.rotate&&(D.rotate=L.rotate,Z=!0),M.scalable&&(Le(L.scaleX)&&L.scaleX!==D.scaleX&&(D.scaleX=L.scaleX,Z=!0),Le(L.scaleY)&&L.scaleY!==D.scaleY&&(D.scaleY=L.scaleY,Z=!0)),Z&&this.renderCanvas(!0,!0);var ee=D.width/D.naturalWidth;Le(L.x)&&(V.left=L.x*ee+J.left),Le(L.y)&&(V.top=L.y*ee+J.top),Le(L.width)&&(V.width=L.width*ee),Le(L.height)&&(V.height=L.height*ee),this.setCropBoxData(V)}return this},getContainerData:function(){return this.ready?lt({},this.containerData):{}},getImageData:function(){return this.sized?lt({},this.imageData):{}},getCanvasData:function(){var L=this.canvasData,M={};return this.ready&&jt(["left","top","width","height","naturalWidth","naturalHeight"],function(D){M[D]=L[D]}),M},setCanvasData:function(L){var M=this.canvasData,D=M.aspectRatio;return this.ready&&!this.disabled&&Lo(L)&&(Le(L.left)&&(M.left=L.left),Le(L.top)&&(M.top=L.top),Le(L.width)?(M.width=L.width,M.height=L.width/D):Le(L.height)&&(M.height=L.height,M.width=L.height*D),this.renderCanvas(!0)),this},getCropBoxData:function(){var L=this.cropBoxData,M;return this.ready&&this.cropped&&(M={left:L.left,top:L.top,width:L.width,height:L.height}),M||{}},setCropBoxData:function(L){var M=this.cropBoxData,D=this.options.aspectRatio,J,V;return this.ready&&this.cropped&&!this.disabled&&Lo(L)&&(Le(L.left)&&(M.left=L.left),Le(L.top)&&(M.top=L.top),Le(L.width)&&L.width!==M.width&&(J=!0,M.width=L.width),Le(L.height)&&L.height!==M.height&&(V=!0,M.height=L.height),D&&(J?M.height=M.width/D:V&&(M.width=M.height*D)),this.renderCropBox()),this},getCroppedCanvas:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var M=this.canvasData,D=Uie(this.image,this.imageData,M,L);if(!this.cropped)return D;var J=this.getData(),V=J.x,Z=J.y,ee=J.width,ae=J.height,ne=D.width/Math.floor(M.naturalWidth);ne!==1&&(V*=ne,Z*=ne,ee*=ne,ae*=ne);var re=ee/ae,te=Ma({aspectRatio:re,width:L.maxWidth||1/0,height:L.maxHeight||1/0}),oe=Ma({aspectRatio:re,width:L.minWidth||0,height:L.minHeight||0},"cover"),Ye=Ma({aspectRatio:re,width:L.width||(ne!==1?D.width:ee),height:L.height||(ne!==1?D.height:ae)}),Ve=Ye.width,mt=Ye.height;Ve=Math.min(te.width,Math.max(oe.width,Ve)),mt=Math.min(te.height,Math.max(oe.height,mt));var et=document.createElement("canvas"),Zt=et.getContext("2d");et.width=to(Ve),et.height=to(mt),Zt.fillStyle=L.fillColor||"transparent",Zt.fillRect(0,0,Ve,mt);var vr=L.imageSmoothingEnabled,Gt=vr===void 0?!0:vr,No=L.imageSmoothingQuality;Zt.imageSmoothingEnabled=Gt,No&&(Zt.imageSmoothingQuality=No);var Rn=D.width,se=D.height,tt=V,er=Z,ni,Do,ds,vs,Ua,ro;tt<=-ee||tt>Rn?(tt=0,ni=0,ds=0,Ua=0):tt<=0?(ds=-tt,tt=0,ni=Math.min(Rn,ee+tt),Ua=ni):tt<=Rn&&(ds=0,ni=Math.min(ee,Rn-tt),Ua=ni),ni<=0||er<=-ae||er>se?(er=0,Do=0,vs=0,ro=0):er<=0?(vs=-er,er=0,Do=Math.min(se,ae+er),ro=Do):er<=se&&(vs=0,Do=Math.min(ae,se-er),ro=Do);var pn=[tt,er,ni,Do];if(Ua>0&&ro>0){var ys=Ve/ee;pn.push(ds*ys,vs*ys,Ua*ys,ro*ys)}return Zt.drawImage.apply(Zt,[D].concat(c(pn.map(function($m){return Math.floor(to($m))})))),et},setAspectRatio:function(L){var M=this.options;return!this.disabled&&!fc(L)&&(M.aspectRatio=Math.max(0,L)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(L){var M=this.options,D=this.dragBox,J=this.face;if(this.ready&&!this.disabled){var V=L===S,Z=M.movable&&L===_;L=V||Z?L:q,M.dragMode=L,dc(D,h,L),Co(D,H,V),Co(D,v,Z),M.cropBoxMovable||(dc(J,h,L),Co(J,H,V),Co(J,v,Z))}return this}},Zie=P.Cropper,NF=function(){function W(L){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e(this,W),!L||!Da.test(L.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=L,this.options=lt({},Jt,Lo(M)&&M),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return n(W,[{key:"init",value:function(){var M=this.element,D=M.tagName.toLowerCase(),J;if(!M[R]){if(M[R]=this,D==="img"){if(this.isImg=!0,J=M.getAttribute("src")||"",this.originalUrl=J,!J)return;J=M.src}else D==="canvas"&&window.HTMLCanvasElement&&(J=M.toDataURL());this.load(J)}}},{key:"load",value:function(M){var D=this;if(M){this.url=M,this.imageData={};var J=this.element,V=this.options;if(!V.rotatable&&!V.scalable&&(V.checkOrientation=!1),!V.checkOrientation||!window.ArrayBuffer){this.clone();return}if(fs.test(M)){ps.test(M)?this.read($ie(M)):this.clone();return}var Z=new XMLHttpRequest,ee=this.clone.bind(this);this.reloading=!0,this.xhr=Z,Z.onabort=ee,Z.onerror=ee,Z.ontimeout=ee,Z.onprogress=function(){Z.getResponseHeader("content-type")!==Na&&Z.abort()},Z.onload=function(){D.read(Z.response)},Z.onloadend=function(){D.reloading=!1,D.xhr=null},V.checkCrossOrigin&&FF(M)&&J.crossOrigin&&(M=LF(M)),Z.open("GET",M),Z.responseType="arraybuffer",Z.withCredentials=J.crossOrigin==="use-credentials",Z.send()}}},{key:"read",value:function(M){var D=this.options,J=this.imageData,V=Hie(M),Z=0,ee=1,ae=1;if(V>1){this.url=zie(M,Na);var ne=Wie(V);Z=ne.rotate,ee=ne.scaleX,ae=ne.scaleY}D.rotatable&&(J.rotate=Z),D.scalable&&(J.scaleX=ee,J.scaleY=ae),this.clone()}},{key:"clone",value:function(){var M=this.element,D=this.url,J=M.crossOrigin,V=D;this.options.checkCrossOrigin&&FF(D)&&(J||(J="anonymous"),V=LF(D)),this.crossOrigin=J,this.crossOriginUrl=V;var Z=document.createElement("img");J&&(Z.crossOrigin=J),Z.src=V||D,Z.alt=M.alt||"The image to crop",this.image=Z,Z.onload=this.start.bind(this),Z.onerror=this.stop.bind(this),qt(Z,o),M.parentNode.insertBefore(Z,M.nextSibling)}},{key:"start",value:function(){var M=this,D=this.image;D.onload=null,D.onerror=null,this.sizing=!0;var J=P.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(P.navigator.userAgent),V=function(ne,re){lt(M.imageData,{naturalWidth:ne,naturalHeight:re,aspectRatio:ne/re}),M.sizing=!1,M.sized=!0,M.build()};if(D.naturalWidth&&!J){V(D.naturalWidth,D.naturalHeight);return}var Z=document.createElement("img"),ee=document.body||document.documentElement;this.sizingImage=Z,Z.onload=function(){V(Z.width,Z.height),J||ee.removeChild(Z)},Z.src=D.src,J||(Z.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",ee.appendChild(Z))}},{key:"stop",value:function(){var M=this.image;M.onload=null,M.onerror=null,M.parentNode.removeChild(M),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var M=this.element,D=this.options,J=this.image,V=M.parentNode,Z=document.createElement("div");Z.innerHTML=hr;var ee=Z.querySelector(".".concat(R,"-container")),ae=ee.querySelector(".".concat(R,"-canvas")),ne=ee.querySelector(".".concat(R,"-drag-box")),re=ee.querySelector(".".concat(R,"-crop-box")),te=re.querySelector(".".concat(R,"-face"));this.container=V,this.cropper=ee,this.canvas=ae,this.dragBox=ne,this.cropBox=re,this.viewBox=ee.querySelector(".".concat(R,"-view-box")),this.face=te,ae.appendChild(J),qt(M,s),V.insertBefore(ee,M.nextSibling),this.isImg||xn(J,o),this.initPreview(),this.bind(),D.initialAspectRatio=Math.max(0,D.initialAspectRatio)||NaN,D.aspectRatio=Math.max(0,D.aspectRatio)||NaN,D.viewMode=Math.max(0,Math.min(3,Math.round(D.viewMode)))||0,qt(re,s),D.guides||qt(re.getElementsByClassName("".concat(R,"-dashed")),s),D.center||qt(re.getElementsByClassName("".concat(R,"-center")),s),D.background&&qt(ee,"".concat(R,"-bg")),D.highlight||qt(te,u),D.cropBoxMovable&&(qt(te,v),dc(te,h,x)),D.cropBoxResizable||(qt(re.getElementsByClassName("".concat(R,"-line")),s),qt(re.getElementsByClassName("".concat(R,"-point")),s)),this.render(),this.ready=!0,this.setDragMode(D.dragMode),D.autoCrop&&this.crop(),this.setData(D.data),Sr(D.ready)&&Nr(M,Qt,D.ready,{once:!0}),ri(M,Qt)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),xn(this.element,s))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=Zie,W}},{key:"setDefaults",value:function(M){lt(Jt,Lo(M)&&M)}}]),W}();return lt(NF.prototype,Vie,Kie,Yie,Xie,Qie,Jie),NF})});var mee=U(function(ITt,KO){"use strict";KO.exports=nq;KO.exports.isMobile=nq;KO.exports.default=nq;var Bit=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Git=/CrOS/,$it=/android|ipad|playbook|silk/i;function nq(t){t||(t={});var e=t.ua;if(!e&&typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),typeof e!="string")return!1;var r=Bit.test(e)&&!Git.test(e)||!!t.tablet&&$it.test(e);return!r&&t.tablet&&t.featureDetect&&navigator&&navigator.maxTouchPoints>1&&e.indexOf("Macintosh")!==-1&&e.indexOf("Safari")!==-1&&(r=!0),r}});var Kte=U(function(dxt,Vte){"use strict";Vte.exports=function(e,r){if(r=r.split(":")[0],e=+e,!e)return!1;switch(r){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}});var Qte=U(function(Zq){"use strict";var kut=Object.prototype.hasOwnProperty,jut;function Yte(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return null}}function Xte(t){try{return encodeURIComponent(t)}catch(e){return null}}function qut(t){for(var e=/([^=?#&]+)=?([^&]*)/g,r={},n;n=e.exec(t);){var i=Yte(n[1]),a=Yte(n[2]);i===null||a===null||i in r||(r[i]=a)}return r}function Fut(t,e){e=e||"";var r=[],n,i;typeof e!="string"&&(e="?");for(i in t)if(kut.call(t,i)){if(n=t[i],!n&&(n===null||n===jut||isNaN(n))&&(n=""),i=Xte(i),n=Xte(n),i===null||n===null)continue;r.push(i+"="+n)}return r.length?e+r.join("&"):""}Zq.stringify=Fut;Zq.parse=qut});var ore=U(function(yxt,ire){"use strict";function em(t){"@babel/helpers - typeof";return em=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},em(t)}var Zte=Kte(),lS=Qte(),Lut=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,ere=/[\n\r\t]/g,Cut=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,tre=/:\d+$/,Nut=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,Dut=/^[a-zA-Z]:/;function t2(t){return(t||"").toString().replace(Lut,"")}var e2=[["#","hash"],["?","query"],function(e,r){return ko(r.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],Jte={hash:1,query:1};function rre(t){var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e={};var r=e.location||{};t=t||r;var n={},i=em(t),a;if(t.protocol==="blob:")n=new jo(unescape(t.pathname),{});else if(i==="string"){n=new jo(t,{});for(a in Jte)delete n[a]}else if(i==="object"){for(a in t)a in Jte||(n[a]=t[a]);n.slashes===void 0&&(n.slashes=Cut.test(t.href))}return n}function ko(t){return t==="file:"||t==="ftp:"||t==="http:"||t==="https:"||t==="ws:"||t==="wss:"}function nre(t,e){t=t2(t),t=t.replace(ere,""),e=e||{};var r=Nut.exec(t),n=r[1]?r[1].toLowerCase():"",i=!!r[2],a=!!r[3],l=0,c;return i?a?(c=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(c=r[2]+r[4],l=r[2].length):a?(c=r[3]+r[4],l=r[3].length):c=r[4],n==="file:"?l>=2&&(c=c.slice(2)):ko(n)?c=r[4]:n?i&&(c=c.slice(2)):l>=2&&ko(e.protocol)&&(c=r[4]),{protocol:n,slashes:i||ko(n),slashesCount:l,rest:c}}function Mut(t,e){if(t==="")return e;for(var r=(e||"/").split("/").slice(0,-1).concat(t.split("/")),n=r.length,i=r[n-1],a=!1,l=0;n--;)r[n]==="."?r.splice(n,1):r[n]===".."?(r.splice(n,1),l++):l&&(n===0&&(a=!0),r.splice(n,1),l--);return a&&r.unshift(""),(i==="."||i==="..")&&r.push(""),r.join("/")}function jo(t,e,r){if(t=t2(t),t=t.replace(ere,""),!(this instanceof jo))return new jo(t,e,r);var n,i,a,l,c,f,d=e2.slice(),y=em(e),m=this,g=0;for(y!=="object"&&y!=="string"&&(r=e,e=null),r&&typeof r!="function"&&(r=lS.parse),e=rre(e),i=nre(t||"",e),n=!i.protocol&&!i.slashes,m.slashes=i.slashes||n&&e.slashes,m.protocol=i.protocol||e.protocol||"",t=i.rest,(i.protocol==="file:"&&(i.slashesCount!==2||Dut.test(t))||!i.slashes&&(i.protocol||i.slashesCount<2||!ko(m.protocol)))&&(d[3]=[/(.*)/,"pathname"]);g<d.length;g++){if(l=d[g],typeof l=="function"){t=l(t,m);continue}a=l[0],f=l[1],a!==a?m[f]=t:typeof a=="string"?(c=a==="@"?t.lastIndexOf(a):t.indexOf(a),~c&&(typeof l[2]=="number"?(m[f]=t.slice(0,c),t=t.slice(c+l[2])):(m[f]=t.slice(c),t=t.slice(0,c)))):(c=a.exec(t))&&(m[f]=c[1],t=t.slice(0,c.index)),m[f]=m[f]||n&&l[3]&&e[f]||"",l[4]&&(m[f]=m[f].toLowerCase())}r&&(m.query=r(m.query)),n&&e.slashes&&m.pathname.charAt(0)!=="/"&&(m.pathname!==""||e.pathname!=="")&&(m.pathname=Mut(m.pathname,e.pathname)),m.pathname.charAt(0)!=="/"&&ko(m.protocol)&&(m.pathname="/"+m.pathname),Zte(m.port,m.protocol)||(m.host=m.hostname,m.port=""),m.username=m.password="",m.auth&&(c=m.auth.indexOf(":"),~c?(m.username=m.auth.slice(0,c),m.username=encodeURIComponent(decodeURIComponent(m.username)),m.password=m.auth.slice(c+1),m.password=encodeURIComponent(decodeURIComponent(m.password))):m.username=encodeURIComponent(decodeURIComponent(m.auth)),m.auth=m.password?m.username+":"+m.password:m.username),m.origin=m.protocol!=="file:"&&ko(m.protocol)&&m.host?m.protocol+"//"+m.host:"null",m.href=m.toString()}function Uut(t,e,r){var n=this;switch(t){case"query":typeof e=="string"&&e.length&&(e=(r||lS.parse)(e)),n[t]=e;break;case"port":n[t]=e,Zte(e,n.protocol)?e&&(n.host=n.hostname+":"+e):(n.host=n.hostname,n[t]="");break;case"hostname":n[t]=e,n.port&&(e+=":"+n.port),n.host=e;break;case"host":n[t]=e,tre.test(e)?(e=e.split(":"),n.port=e.pop(),n.hostname=e.join(":")):(n.hostname=e,n.port="");break;case"protocol":n.protocol=e.toLowerCase(),n.slashes=!r;break;case"pathname":case"hash":if(e){var i=t==="pathname"?"/":"#";n[t]=e.charAt(0)!==i?i+e:e}else n[t]=e;break;case"username":case"password":n[t]=encodeURIComponent(e);break;case"auth":var a=e.indexOf(":");~a?(n.username=e.slice(0,a),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=e.slice(a+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(e))}for(var l=0;l<e2.length;l++){var c=e2[l];c[4]&&(n[c[1]]=n[c[1]].toLowerCase())}return n.auth=n.password?n.username+":"+n.password:n.username,n.origin=n.protocol!=="file:"&&ko(n.protocol)&&n.host?n.protocol+"//"+n.host:"null",n.href=n.toString(),n}function But(t){(!t||typeof t!="function")&&(t=lS.stringify);var e,r=this,n=r.host,i=r.protocol;i&&i.charAt(i.length-1)!==":"&&(i+=":");var a=i+(r.protocol&&r.slashes||ko(r.protocol)?"//":"");return r.username?(a+=r.username,r.password&&(a+=":"+r.password),a+="@"):r.password?(a+=":"+r.password,a+="@"):r.protocol!=="file:"&&ko(r.protocol)&&!n&&r.pathname!=="/"&&(a+="@"),(n[n.length-1]===":"||tre.test(r.hostname)&&!r.port)&&(n+=":"),a+=n+r.pathname,e=em(r.query)==="object"?t(r.query):r.query,e&&(a+=e.charAt(0)!=="?"?"?"+e:e),r.hash&&(a+=r.hash),a}jo.prototype={set:Uut,toString:But};jo.extractProtocol=nre;jo.location=rre;jo.trimLeft=t2;jo.qs=lS;ire.exports=jo});var P2=U(function(lRt,_2){typeof _2!="undefined"&&(_2.exports=Jn);function Jn(t){if(t)return vlt(t)}function vlt(t){for(var e in Jn.prototype)t[e]=Jn.prototype[e];return t}Jn.prototype.on=Jn.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};Jn.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};Jn.prototype.off=Jn.prototype.removeListener=Jn.prototype.removeAllListeners=Jn.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,i=0;i<r.length;i++)if(n=r[i],n===e||n.fn===e){r.splice(i,1);break}return r.length===0&&delete this._callbacks["$"+t],this};Jn.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,e)}return this};Jn.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};Jn.prototype.hasListeners=function(t){return!!this.listeners(t).length}});var Nne=U(function(ES,bF){function Mp(t){"@babel/helpers - typeof";return Mp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mp(t)}(function(t,e){(typeof ES=="undefined"?"undefined":Mp(ES))==="object"&&typeof bF!="undefined"?bF.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis!="undefined"?globalThis:t||self,t.Compressor=e())})(ES,function(){"use strict";function t(b,S){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(b);S&&(q=q.filter(function(F){return Object.getOwnPropertyDescriptor(b,F).enumerable})),_.push.apply(_,q)}return _}function e(b){for(var S=1;S<arguments.length;S++){var _=arguments[S]!=null?arguments[S]:{};S%2?t(Object(_),!0).forEach(function(q){a(b,q,_[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(_)):t(Object(_)).forEach(function(q){Object.defineProperty(b,q,Object.getOwnPropertyDescriptor(_,q))})}return b}function r(b,S){if(!(b instanceof S))throw new TypeError("Cannot call a class as a function")}function n(b,S){for(var _=0;_<S.length;_++){var q=S[_];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(b,f(q.key),q)}}function i(b,S,_){return S&&n(b.prototype,S),_&&n(b,_),Object.defineProperty(b,"prototype",{writable:!1}),b}function a(b,S,_){return S=f(S),S in b?Object.defineProperty(b,S,{value:_,enumerable:!0,configurable:!0,writable:!0}):b[S]=_,b}function l(){return l=Object.assign?Object.assign.bind():function(b){for(var S=1;S<arguments.length;S++){var _=arguments[S];for(var q in _)Object.prototype.hasOwnProperty.call(_,q)&&(b[q]=_[q])}return b},l.apply(this,arguments)}function c(b,S){if(Mp(b)!=="object"||b===null)return b;var _=b[Symbol.toPrimitive];if(_!==void 0){var q=_.call(b,S||"default");if(Mp(q)!=="object")return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(b)}function f(b){var S=c(b,"string");return Mp(S)==="symbol"?S:String(S)}var d={exports:{}};(function(b){typeof window!="undefined"&&function(S){var _=S.HTMLCanvasElement&&S.HTMLCanvasElement.prototype,q=S.Blob&&function(){try{return!!new Blob}catch(Ee){return!1}}(),F=q&&S.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch(Ee){return!1}}(),C=S.BlobBuilder||S.WebKitBlobBuilder||S.MozBlobBuilder||S.MSBlobBuilder,Me=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,Fe=(q||C)&&S.atob&&S.ArrayBuffer&&S.Uint8Array&&function(Ee){var Re,Qe,st,Xt,pt,we,Qt,kt,Pi;if(Re=Ee.match(Me),!Re)throw new Error("invalid data URI");for(Qe=Re[2]?Re[1]:"text/plain"+(Re[3]||";charset=US-ASCII"),st=!!Re[4],Xt=Ee.slice(Re[0].length),st?pt=atob(Xt):pt=decodeURIComponent(Xt),we=new ArrayBuffer(pt.length),Qt=new Uint8Array(we),kt=0;kt<pt.length;kt+=1)Qt[kt]=pt.charCodeAt(kt);return q?new Blob([F?Qt:we],{type:Qe}):(Pi=new C,Pi.append(we),Pi.getBlob(Qe))};S.HTMLCanvasElement&&!_.toBlob&&(_.mozGetAsFile?_.toBlob=function(Ee,Re,Qe){var st=this;setTimeout(function(){Qe&&_.toDataURL&&Fe?Ee(Fe(st.toDataURL(Re,Qe))):Ee(st.mozGetAsFile("blob",Re))})}:_.toDataURL&&Fe&&(_.msToBlob?_.toBlob=function(Ee,Re,Qe){var st=this;setTimeout(function(){(Re&&Re!=="image/png"||Qe)&&_.toDataURL&&Fe?Ee(Fe(st.toDataURL(Re,Qe))):Ee(st.msToBlob(Re))})}:_.toBlob=function(Ee,Re,Qe){var st=this;setTimeout(function(){Ee(Fe(st.toDataURL(Re,Qe)))})})),b.exports?b.exports=Fe:S.dataURLtoBlob=Fe}(window)})(d);var y=d.exports,m=function(S){return typeof Blob=="undefined"?!1:S instanceof Blob||Object.prototype.toString.call(S)==="[object Blob]"},g={strict:!0,checkOrientation:!0,retainExif:!1,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},w=typeof window!="undefined"&&typeof window.document!="undefined",P=w?window:{},E=function(S){return S>0&&S<1/0},O=Array.prototype.slice;function R(b){return Array.from?Array.from(b):O.call(b)}var x=/^image\/.+$/;function A(b){return x.test(b)}function I(b){var S=A(b)?b.substr(6):"";return S==="jpeg"&&(S="jpg"),".".concat(S)}var N=String.fromCharCode;function j(b,S,_){var q="",F;for(_+=S,F=S;F<_;F+=1)q+=N(b.getUint8(F));return q}var k=P.btoa;function z(b,S){for(var _=[],q=8192,F=new Uint8Array(b);F.length>0;)_.push(N.apply(null,R(F.subarray(0,q)))),F=F.subarray(q);return"data:".concat(S,";base64,").concat(k(_.join("")))}function B(b){var S=new DataView(b),_;try{var q,F,C;if(S.getUint8(0)===255&&S.getUint8(1)===216)for(var Me=S.byteLength,Fe=2;Fe+1<Me;){if(S.getUint8(Fe)===255&&S.getUint8(Fe+1)===225){F=Fe;break}Fe+=1}if(F){var Ee=F+4,Re=F+10;if(j(S,Ee,4)==="Exif"){var Qe=S.getUint16(Re);if(q=Qe===18761,(q||Qe===19789)&&S.getUint16(Re+2,q)===42){var st=S.getUint32(Re+4,q);st>=8&&(C=Re+st)}}}if(C){var Xt=S.getUint16(C,q),pt,we;for(we=0;we<Xt;we+=1)if(pt=C+we*12+2,S.getUint16(pt,q)===274){pt+=8,_=S.getUint16(pt,q),S.setUint16(pt,1,q);break}}}catch(Qt){_=1}return _}function Y(b){var S=0,_=1,q=1;switch(b){case 2:_=-1;break;case 3:S=-180;break;case 4:q=-1;break;case 5:S=90,q=-1;break;case 6:S=90;break;case 7:S=90,_=-1;break;case 8:S=-90;break}return{rotate:S,scaleX:_,scaleY:q}}var Q=/\.\d*(?:0|9){12}\d*$/;function X(b){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Q.test(b)?Math.round(b*S)/S:b}function $(b){var S=b.aspectRatio,_=b.height,q=b.width,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none",C=E(q),Me=E(_);if(C&&Me){var Fe=_*S;(F==="contain"||F==="none")&&Fe>q||F==="cover"&&Fe<q?_=q/S:q=_*S}else C?_=q/S:Me&&(q=_*S);return{width:q,height:_}}function H(b){for(var S=R(new Uint8Array(b)),_=S.length,q=[],F=0;F+3<_;){var C=S[F],Me=S[F+1];if(C===255&&Me===218)break;if(C===255&&Me===216)F+=2;else{var Fe=S[F+2]*256+S[F+3],Ee=F+Fe+2,Re=S.slice(F,Ee);q.push(Re),F=Ee}}return q.reduce(function(Qe,st){return st[0]===255&&st[1]===225?Qe.concat(st):Qe},[])}function K(b,S){var _=R(new Uint8Array(b));if(_[2]!==255||_[3]!==224)return b;var q=_[4]*256+_[5],F=[255,216].concat(S,_.slice(4+q));return new Uint8Array(F)}var s=P.ArrayBuffer,o=P.FileReader,u=P.URL||P.webkitURL,p=/\.\w+$/,v=P.Compressor,h=function(){function b(S,_){r(this,b),this.file=S,this.exif=[],this.image=new Image,this.options=e(e({},g),_),this.aborted=!1,this.result=null,this.init()}return i(b,[{key:"init",value:function(){var _=this,q=this.file,F=this.options;if(!m(q)){this.fail(new Error("The first argument must be a File or Blob object."));return}var C=q.type;if(!A(C)){this.fail(new Error("The first argument must be an image File or Blob object."));return}if(!u||!o){this.fail(new Error("The current browser does not support image compression."));return}s||(F.checkOrientation=!1,F.retainExif=!1);var Me=C==="image/jpeg",Fe=Me&&F.checkOrientation,Ee=Me&&F.retainExif;if(u&&!Fe&&!Ee)this.load({url:u.createObjectURL(q)});else{var Re=new o;this.reader=Re,Re.onload=function(Qe){var st=Qe.target,Xt=st.result,pt={},we=1;Fe&&(we=B(Xt),we>1&&l(pt,Y(we))),Ee&&(_.exif=H(Xt)),Fe||Ee?!u||we>1?pt.url=z(Xt,C):pt.url=u.createObjectURL(q):pt.url=Xt,_.load(pt)},Re.onabort=function(){_.fail(new Error("Aborted to read the image with FileReader."))},Re.onerror=function(){_.fail(new Error("Failed to read the image with FileReader."))},Re.onloadend=function(){_.reader=null},Fe||Ee?Re.readAsArrayBuffer(q):Re.readAsDataURL(q)}}},{key:"load",value:function(_){var q=this,F=this.file,C=this.image;C.onload=function(){q.draw(e(e({},_),{},{naturalWidth:C.naturalWidth,naturalHeight:C.naturalHeight}))},C.onabort=function(){q.fail(new Error("Aborted to load the image."))},C.onerror=function(){q.fail(new Error("Failed to load the image."))},P.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(P.navigator.userAgent)&&(C.crossOrigin="anonymous"),C.alt=F.name,C.src=_.url}},{key:"draw",value:function(_){var q=this,F=_.naturalWidth,C=_.naturalHeight,Me=_.rotate,Fe=Me===void 0?0:Me,Ee=_.scaleX,Re=Ee===void 0?1:Ee,Qe=_.scaleY,st=Qe===void 0?1:Qe,Xt=this.file,pt=this.image,we=this.options,Qt=document.createElement("canvas"),kt=Qt.getContext("2d"),Pi=Math.abs(Fe)%180===90,ls=(we.resize==="contain"||we.resize==="cover")&&E(we.width)&&E(we.height),Na=Math.max(we.maxWidth,0)||1/0,cs=Math.max(we.maxHeight,0)||1/0,fs=Math.max(we.minWidth,0)||0,ps=Math.max(we.minHeight,0)||0,Da=F/C,Jt=we.width,hr=we.height;if(Pi){var Cm=[cs,Na];Na=Cm[0],cs=Cm[1];var Le=[ps,fs];fs=Le[0],ps=Le[1];var zp=[hr,Jt];Jt=zp[0],hr=zp[1]}ls&&(Da=Jt/hr);var fc=$({aspectRatio:Da,width:Na,height:cs},"contain");Na=fc.width,cs=fc.height;var eo=$({aspectRatio:Da,width:fs,height:ps},"cover");if(fs=eo.width,ps=eo.height,ls){var Nm=$({aspectRatio:Da,width:Jt,height:hr},we.resize);Jt=Nm.width,hr=Nm.height}else{var Lo=$({aspectRatio:Da,width:Jt,height:hr}),Sr=Lo.width;Jt=Sr===void 0?F:Sr;var Dm=Lo.height;hr=Dm===void 0?C:Dm}Jt=Math.floor(X(Math.min(Math.max(Jt,fs),Na))),hr=Math.floor(X(Math.min(Math.max(hr,ps),cs)));var Mm=-Jt/2,jt=-hr/2,lt=Jt,qS=hr,to=[];if(ls){var Um=0,Ei=0,Hp=F,qt=C,xn=$({aspectRatio:Da,width:F,height:C},{contain:"cover",cover:"contain"}[we.resize]);Hp=xn.width,qt=xn.height,Um=(F-Hp)/2,Ei=(C-qt)/2,to.push(Um,Ei,Hp,qt)}if(to.push(Mm,jt,lt,qS),Pi){var Co=[hr,Jt];Jt=Co[0],hr=Co[1]}Qt.width=Jt,Qt.height=hr,A(we.mimeType)||(we.mimeType=Xt.type);var Bm="transparent";Xt.size>we.convertSize&&we.convertTypes.indexOf(we.mimeType)>=0&&(we.mimeType="image/jpeg");var pc=we.mimeType==="image/jpeg";if(pc&&(Bm="#fff"),kt.fillStyle=Bm,kt.fillRect(0,0,Jt,hr),we.beforeDraw&&we.beforeDraw.call(this,kt,Qt),!this.aborted&&(kt.save(),kt.translate(Jt/2,hr/2),kt.rotate(Fe*Math.PI/180),kt.scale(Re,st),kt.drawImage.apply(kt,[pt].concat(to)),kt.restore(),we.drew&&we.drew.call(this,kt,Qt),!this.aborted)){var hc=function(hs){if(!q.aborted){var Wp=function(ri){return q.done({naturalWidth:F,naturalHeight:C,result:ri})};if(hs&&pc&&we.retainExif&&q.exif&&q.exif.length>0){var Vp=function(ri){return Wp(y(z(K(ri,q.exif),we.mimeType)))};if(hs.arrayBuffer)hs.arrayBuffer().then(Vp).catch(function(){q.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var dr=new o;q.reader=dr,dr.onload=function(Nr){var ri=Nr.target;Vp(ri.result)},dr.onabort=function(){q.fail(new Error("Aborted to read the compressed image with FileReader."))},dr.onerror=function(){q.fail(new Error("Failed to read the compressed image with FileReader."))},dr.onloadend=function(){q.reader=null},dr.readAsArrayBuffer(hs)}}else Wp(hs)}};Qt.toBlob?Qt.toBlob(hc,we.mimeType,we.quality):hc(y(Qt.toDataURL(we.mimeType,we.quality)))}}},{key:"done",value:function(_){var q=_.naturalWidth,F=_.naturalHeight,C=_.result,Me=this.file,Fe=this.image,Ee=this.options;if(u&&Fe.src.indexOf("blob:")===0&&u.revokeObjectURL(Fe.src),C)if(Ee.strict&&!Ee.retainExif&&C.size>Me.size&&Ee.mimeType===Me.type&&!(Ee.width>q||Ee.height>F||Ee.minWidth>q||Ee.minHeight>F||Ee.maxWidth<q||Ee.maxHeight<F))C=Me;else{var Re=new Date;C.lastModified=Re.getTime(),C.lastModifiedDate=Re,C.name=Me.name,C.name&&C.type!==Me.type&&(C.name=C.name.replace(p,I(C.type)))}else C=Me;this.result=C,Ee.success&&Ee.success.call(this,C)}},{key:"fail",value:function(_){var q=this.options;if(q.error)q.error.call(this,_);else throw _}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=v,b}},{key:"setDefaults",value:function(_){l(g,_)}}]),b}();return h})});CN();MN();BN();B1();iD();var Oce=G(),Sce=xe(),_ce=be(),mg=ce(),Pce=Ue(),Ece=ke(),Tce=Wr(),Ace=He(),xce=it().f,Rce=rh(),$o=_ce.Symbol,Ts=$o&&$o.prototype;Sce&&Ece($o)&&(!("description"in Ts)||$o().description!==void 0)&&(G1={},ch=function(){var e=arguments.length<1||arguments[0]===void 0?void 0:Ace(arguments[0]),r=Tce(Ts,this)?new $o(e):e===void 0?$o():$o(e);return e===""&&(G1[r]=!0),r},Rce(ch,$o),ch.prototype=Ts,Ts.constructor=ch,oD=String($o("test"))=="Symbol(test)",aD=mg(Ts.toString),uD=mg(Ts.valueOf),sD=/^Symbol\((.*)\)[^)]+$/,lD=mg("".replace),cD=mg("".slice),xce(Ts,"description",{configurable:!0,get:function(){var e=uD(this),r=aD(e);if(Pce(G1,e))return"";var n=oD?cD(r,7,-1):lD(r,sD,"$1");return n===""?void 0:n}}),Oce({global:!0,constructor:!0,forced:!0},{Symbol:ch}));var G1,ch,oD,aD,uD,sD,lD,cD;var Ice=Et();Ice("asyncIterator");var kce=Et();kce("hasInstance");var jce=Et();jce("isConcatSpreadable");var qce=Et();qce("iterator");var Fce=Et();Fce("match");var Lce=Et();Lce("matchAll");var Cce=Et();Cce("replace");var Nce=Et();Nce("search");var Dce=Et();Dce("species");var Mce=Et();Mce("split");var Uce=Et(),Bce=_1();Uce("toPrimitive");Bce();var Gce=Oe(),$ce=Et(),zce=dn();$ce("toStringTag");zce(Gce("Symbol"),"Symbol");var Hce=Et();Hce("unscopables");var RD=G(),gfe=be(),ao=yn(),ID=K1(),Y1="WebAssembly",xD=gfe[Y1],bg=Error("e",{cause:7}).cause!==7,xs=function(e,r){var n={};n[e]=ID(e,r,bg),RD({global:!0,constructor:!0,arity:1,forced:bg},n)},X1=function(e,r){if(xD&&xD[e]){var n={};n[e]=ID(Y1+"."+e,r,bg),RD({target:Y1,stat:!0,constructor:!0,arity:1,forced:bg},n)}};xs("Error",function(t){return function(r){return ao(t,this,arguments)}});xs("EvalError",function(t){return function(r){return ao(t,this,arguments)}});xs("RangeError",function(t){return function(r){return ao(t,this,arguments)}});xs("ReferenceError",function(t){return function(r){return ao(t,this,arguments)}});xs("SyntaxError",function(t){return function(r){return ao(t,this,arguments)}});xs("TypeError",function(t){return function(r){return ao(t,this,arguments)}});xs("URIError",function(t){return function(r){return ao(t,this,arguments)}});X1("CompileError",function(t){return function(r){return ao(t,this,arguments)}});X1("LinkError",function(t){return function(r){return ao(t,this,arguments)}});X1("RuntimeError",function(t){return function(r){return ao(t,this,arguments)}});WD();var lpe=G(),cpe=Oe(),fpe=yn(),VD=le(),ppe=K1(),t_="AggregateError",KD=cpe(t_),YD=!VD(function(){return KD([1]).errors[0]!==1})&&VD(function(){return KD([1],t_,{cause:7}).cause!==7});lpe({global:!0,constructor:!0,arity:2,forced:YD},{AggregateError:ppe(t_,function(t){return function(r,n){return fpe(t,this,arguments)}},YD,!0)});var ype=G(),mpe=$e(),gpe=ze(),bpe=Pt(),wpe=wt();ype({target:"Array",proto:!0},{at:function(e){var r=mpe(this),n=gpe(r),i=bpe(e),a=i>=0?i:n+i;return a<0||a>=n?void 0:r[a]}});wpe("at");var Ape=G(),xpe=le(),Rpe=_s(),Ipe=Ne(),kpe=$e(),jpe=ze(),ZD=Is(),eM=io(),qpe=Ps(),Fpe=Tc(),Lpe=_e(),Cpe=Ba(),tM=Lpe("isConcatSpreadable"),Npe=Cpe>=51||!xpe(function(){var t=[];return t[tM]=!1,t.concat()[0]!==t}),Dpe=Fpe("concat"),Mpe=function(e){if(!Ipe(e))return!1;var r=e[tM];return r!==void 0?!!r:Rpe(e)},Upe=!Npe||!Dpe;Ape({target:"Array",proto:!0,arity:1,forced:Upe},{concat:function(e){var r=kpe(this),n=qpe(r,0),i=0,a,l,c,f,d;for(a=-1,c=arguments.length;a<c;a++)if(d=a===-1?r:arguments[a],Mpe(d))for(f=jpe(d),ZD(i+f),l=0;l<f;l++,i++)l in d&&eM(n,i,d[l]);else ZD(i+1),eM(n,i++,d);return n.length=i,n}});var Wpe=G(),Vpe=o_(),Kpe=wt();Wpe({target:"Array",proto:!0},{copyWithin:Vpe});Kpe("copyWithin");var Qpe=G(),Jpe=Ag(),Zpe=wt();Qpe({target:"Array",proto:!0},{fill:Jpe});Zpe("fill");var ehe=G(),the=Wt().filter,rhe=Tc(),nhe=rhe("filter");ehe({target:"Array",proto:!0,forced:!nhe},{filter:function(e){return the(this,e,arguments.length>1?arguments[1]:void 0)}});var ihe=G(),ohe=Wt().find,ahe=wt(),a_="find",uM=!0;a_ in[]&&Array(1)[a_](function(){uM=!1});ihe({target:"Array",proto:!0,forced:uM},{find:function(e){return ohe(this,e,arguments.length>1?arguments[1]:void 0)}});ahe(a_);var uhe=G(),she=Wt().findIndex,lhe=wt(),u_="findIndex",sM=!0;u_ in[]&&Array(1)[u_](function(){sM=!1});uhe({target:"Array",proto:!0,forced:sM},{findIndex:function(e){return she(this,e,arguments.length>1?arguments[1]:void 0)}});lhe(u_);var dhe=G(),vhe=hh().findLast,yhe=wt();dhe({target:"Array",proto:!0},{findLast:function(e){return vhe(this,e,arguments.length>1?arguments[1]:void 0)}});yhe("findLast");var mhe=G(),ghe=hh().findLastIndex,bhe=wt();mhe({target:"Array",proto:!0},{findLastIndex:function(e){return ghe(this,e,arguments.length>1?arguments[1]:void 0)}});bhe("findLastIndex");var Ehe=G(),The=s_(),Ahe=$e(),xhe=ze(),Rhe=Pt(),Ihe=Ps();Ehe({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,r=Ahe(this),n=xhe(r),i=Ihe(r,0);return i.length=The(i,r,r,n,0,e===void 0?1:Rhe(e)),i}});var khe=G(),jhe=s_(),qhe=ge(),Fhe=$e(),Lhe=ze(),Che=Ps();khe({target:"Array",proto:!0},{flatMap:function(e){var r=Fhe(this),n=Lhe(r),i;return qhe(e),i=Che(r,0),i.length=jhe(i,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),i}});var Yhe=G(),Xhe=l_(),Qhe=dh(),Jhe=!Qhe(function(t){Array.from(t)});Yhe({target:"Array",stat:!0,forced:Jhe},{from:Xhe});var Zhe=G(),ede=eh().includes,tde=le(),rde=wt(),nde=tde(function(){return!Array(1).includes()});Zhe({target:"Array",proto:!0,forced:nde},{includes:function(e){return ede(this,e,arguments.length>1?arguments[1]:void 0)}});rde("includes");var Tkt=Ce(mh(),1);var Fde=G(),Lde=ce(),Cde=Mo(),Nde=zt(),Dde=ks(),Mde=Lde([].join),Ude=Cde!=Object,Bde=Dde("join",",");Fde({target:"Array",proto:!0,forced:Ude||!Bde},{join:function(e){return Mde(Nde(this),e===void 0?",":e)}});var Gde=G(),$de=Wt().map,zde=Tc(),Hde=zde("map");Gde({target:"Array",proto:!0,forced:!Hde},{map:function(e){return $de(this,e,arguments.length>1?arguments[1]:void 0)}});var Wde=G(),Vde=le(),Kde=Ri(),Yde=io(),UM=Array,Xde=Vde(function(){function t(){}return!(UM.of.call(t)instanceof t)});Wde({target:"Array",stat:!0,forced:Xde},{of:function(){for(var e=0,r=arguments.length,n=new(Kde(this)?this:UM)(r);r>e;)Yde(n,e,arguments[e++]);return n.length=r,n}});var Qde=G(),Jde=$e(),Zde=ze(),eve=Is(),tve=le(),rve=tve(function(){return[].push.call({length:4294967296},1)!==4294967297}),nve=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();Qde({target:"Array",proto:!0,arity:1,forced:rve||nve},{push:function(e){var r=Jde(this),n=Zde(r),i=arguments.length;eve(n+i);for(var a=0;a<i;a++)r[n]=arguments[a],n++;return r.length=n,n}});var ive=G(),BM=_s(),ove=Ri(),ave=Ne(),GM=Ai(),uve=ze(),sve=zt(),lve=io(),cve=_e(),fve=Tc(),pve=Ka(),hve=fve("slice"),dve=cve("species"),y_=Array,vve=Math.max;ive({target:"Array",proto:!0,forced:!hve},{slice:function(e,r){var n=sve(this),i=uve(n),a=GM(e,i),l=GM(r===void 0?i:r,i),c,f,d;if(BM(n)&&(c=n.constructor,ove(c)&&(c===y_||BM(c.prototype))?c=void 0:ave(c)&&(c=c[dve],c===null&&(c=void 0)),c===y_||c===void 0))return pve(n,a,l);for(f=new(c===void 0?y_:c)(vve(l-a,0)),d=0;a<l;a++,d++)a in n&&lve(f,d,n[a]);return f.length=d,f}});var _ve=G(),t5=ce(),Pve=ge(),Eve=$e(),Tve=ze(),Ave=Tg(),XM=He(),b_=le(),xve=jg(),Rve=ks(),QM=m_(),Ive=g_(),JM=Ba(),ZM=qg(),Qa=[],e5=t5(Qa.sort),kve=t5(Qa.push),jve=b_(function(){Qa.sort(void 0)}),qve=b_(function(){Qa.sort(null)}),Fve=Rve("sort"),r5=!b_(function(){if(JM)return JM<70;if(!(QM&&QM>3)){if(Ive)return!0;if(ZM)return ZM<603;var t="",e,r,n,i;for(e=65;e<76;e++){switch(r=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)Qa.push({k:r+i,v:n})}for(Qa.sort(function(a,l){return l.v-a.v}),i=0;i<Qa.length;i++)r=Qa[i].k.charAt(0),t.charAt(t.length-1)!==r&&(t+=r);return t!=="DGBEFHACIJK"}}),Lve=jve||!qve||!Fve||!r5,Cve=function(e){return function(r,n){return n===void 0?-1:r===void 0?1:e!==void 0?+e(r,n)||0:XM(r)>XM(n)?1:-1}};_ve({target:"Array",proto:!0,forced:Lve},{sort:function(e){e!==void 0&&Pve(e);var r=Eve(this);if(r5)return e===void 0?e5(r):e5(r,e);var n=[],i=Tve(r),a,l;for(l=0;l<i;l++)l in r&&kve(n,r[l]);for(xve(n,Cve(e)),a=n.length,l=0;l<a;)r[l]=n[l++];for(;l<i;)Ave(r,l++);return r}});var Bve=Ja();Bve("Array");var Gve=G(),$ve=$e(),zve=Ai(),Hve=Pt(),Wve=ze(),Vve=Is(),Kve=Ps(),Yve=io(),w_=Tg(),Xve=Tc(),Qve=Xve("splice"),Jve=Math.max,Zve=Math.min;Gve({target:"Array",proto:!0,forced:!Qve},{splice:function(e,r){var n=$ve(this),i=Wve(n),a=zve(e,i),l=arguments.length,c,f,d,y,m,g;for(l===0?c=f=0:l===1?(c=0,f=i-a):(c=l-2,f=Zve(Jve(Hve(r),0),i-a)),Vve(i+c-f),d=Kve(n,f),y=0;y<f;y++)m=a+y,m in n&&Yve(d,y,n[m]);if(d.length=f,c<f){for(y=a;y<i-f;y++)m=y+f,g=y+c,m in n?n[g]=n[m]:w_(n,g);for(y=i;y>i-f+c;y--)w_(n,y-1)}else if(c>f)for(y=i-f;y>a;y--)m=y+f-1,g=y+c-1,m in n?n[g]=n[m]:w_(n,g);for(y=0;y<c;y++)n[y+a]=arguments[y+2];return n.length=i-f+c,d}});var eye=wt();eye("flat");var tye=wt();tye("flatMap");var Iye=G(),kye=be(),jye=I_(),qye=Ja(),k_="ArrayBuffer",I5=jye[k_],Fye=kye[k_];Iye({global:!0,constructor:!0,forced:Fye!==I5},{ArrayBuffer:I5});qye(k_);var Dye=Ue(),Mye=bt(),Uye=j5(),Bye=_e(),q5=Bye("toPrimitive"),F5=Date.prototype;Dye(F5,q5)||Mye(F5,q5,Uye);var Gye=ke(),L5=Ne(),$ye=it(),zye=Pr(),Hye=_e(),Wye=tg(),j_=Hye("hasInstance"),C5=Function.prototype;j_ in C5||$ye.f(C5,j_,{value:Wye(function(t){if(!Gye(this)||!L5(t))return!1;var e=this.prototype;if(!L5(e))return t instanceof this;for(;t=zye(t);)if(e===t)return!0;return!1},j_)});var Vye=xe(),Kye=ws().EXISTS,N5=ce(),Yye=it().f,D5=Function.prototype,Xye=N5(D5.toString),M5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Qye=N5(M5.exec),Jye="name";Vye&&!Kye&&Yye(D5,Jye,{configurable:!0,get:function(){try{return Qye(M5,Xye(this))[1]}catch(e){return""}}});var Zye=G(),eme=be();Zye({global:!0},{globalThis:eme});var Gkt=Ce(B1(),1);var tme=be(),rme=dn();rme(tme.JSON,"JSON",!0);var zkt=Ce($g(),1);var zme=G(),Hme=B_(),G_=Math.acosh,Wme=Math.log,r3=Math.sqrt,Vme=Math.LN2,Kme=!G_||Math.floor(G_(Number.MAX_VALUE))!=710||G_(1/0)!=1/0;zme({target:"Math",stat:!0,forced:Kme},{acosh:function(e){var r=+e;return r<1?NaN:r>9490626562425156e-8?Wme(r)+Vme:Hme(r-1+r3(r-1)*r3(r+1))}});var Yme=G(),n3=Math.asinh,Xme=Math.log,Qme=Math.sqrt;function i3(t){var e=+t;return!isFinite(e)||e==0?e:e<0?-i3(-e):Xme(e+Qme(e*e+1))}Yme({target:"Math",stat:!0,forced:!(n3&&1/n3(0)>0)},{asinh:i3});var Jme=G(),o3=Math.atanh,Zme=Math.log;Jme({target:"Math",stat:!0,forced:!(o3&&1/o3(-0)<0)},{atanh:function(e){var r=+e;return r==0?r:Zme((1+r)/(1-r))/2}});var ege=G(),tge=zg(),rge=Math.abs,nge=Math.pow;ege({target:"Math",stat:!0},{cbrt:function(e){var r=+e;return tge(r)*nge(rge(r),1/3)}});var ige=G(),oge=Math.floor,age=Math.log,uge=Math.LOG2E;ige({target:"Math",stat:!0},{clz32:function(e){var r=e>>>0;return r?31-oge(age(r+.5)*uge):32}});var lge=G(),cge=_h(),s3=Math.cosh,fge=Math.abs,$_=Math.E;lge({target:"Math",stat:!0,forced:!s3||s3(710)===1/0},{cosh:function(e){var r=cge(fge(e)-1)+1;return(r+1/(r*$_*$_))*($_/2)}});var pge=G(),l3=_h();pge({target:"Math",stat:!0,forced:l3!=Math.expm1},{expm1:l3});var mge=G(),gge=W_();mge({target:"Math",stat:!0},{fround:gge});var bge=G(),f3=Math.hypot,wge=Math.abs,Oge=Math.sqrt,Sge=!!f3&&f3(1/0,NaN)!==1/0;bge({target:"Math",stat:!0,arity:2,forced:Sge},{hypot:function(e,r){for(var n=0,i=0,a=arguments.length,l=0,c,f;i<a;)c=wge(arguments[i++]),l<c?(f=l/c,n=n*f*f+1,l=c):c>0?(f=c/l,n+=f*f):n+=c;return l===1/0?1/0:l*Oge(n)}});var _ge=G(),Pge=le(),p3=Math.imul,Ege=Pge(function(){return p3(4294967295,5)!=-5||p3.length!=2});_ge({target:"Math",stat:!0,forced:Ege},{imul:function(e,r){var n=65535,i=+e,a=+r,l=n&i,c=n&a;return 0|l*c+((n&i>>>16)*c+l*(n&a>>>16)<<16>>>0)}});var xge=G(),Rge=V_();xge({target:"Math",stat:!0},{log10:Rge});var Ige=G(),kge=B_();Ige({target:"Math",stat:!0},{log1p:kge});var jge=G(),qge=Math.log,Fge=Math.LN2;jge({target:"Math",stat:!0},{log2:function(e){return qge(e)/Fge}});var Lge=G(),Cge=zg();Lge({target:"Math",stat:!0},{sign:Cge});var Nge=G(),Dge=le(),d3=_h(),Mge=Math.abs,v3=Math.exp,Uge=Math.E,Bge=Dge(function(){return Math.sinh(-2e-17)!=-2e-17});Nge({target:"Math",stat:!0,forced:Bge},{sinh:function(e){var r=+e;return Mge(r)<1?(d3(r)-d3(-r))/2:(v3(r-1)-v3(-r-1))*(Uge/2)}});var Gge=G(),y3=_h(),m3=Math.exp;Gge({target:"Math",stat:!0},{tanh:function(e){var r=+e,n=y3(r),i=y3(-r);return n==1/0?1:i==1/0?-1:(n-i)/(m3(r)+m3(-r))}});var $ge=dn();$ge(Math,"Math",!0);var zge=G(),Hge=h1();zge({target:"Math",stat:!0},{trunc:Hge});var Zge=xe(),J_=be(),_3=ce(),ebe=wc(),tbe=bt(),S3=Ue(),rbe=As(),nbe=Wr(),ibe=Ga(),P3=Ym(),obe=le(),abe=Bo().f,ube=_r().f,sbe=it().f,lbe=Vg(),cbe=qs().trim,Q_="Number",ru=J_[Q_],Y_=ru.prototype,fbe=J_.TypeError,pbe=_3("".slice),Yg=_3("".charCodeAt),hbe=function(e){var r=P3(e,"number");return typeof r=="bigint"?r:dbe(r)},dbe=function(e){var r=P3(e,"number"),n,i,a,l,c,f,d,y;if(ibe(r))throw fbe("Cannot convert a Symbol value to a number");if(typeof r=="string"&&r.length>2){if(r=cbe(r),n=Yg(r,0),n===43||n===45){if(i=Yg(r,2),i===88||i===120)return NaN}else if(n===48){switch(Yg(r,1)){case 66:case 98:a=2,l=49;break;case 79:case 111:a=8,l=55;break;default:return+r}for(c=pbe(r,2),f=c.length,d=0;d<f;d++)if(y=Yg(c,d),y<48||y>l)return NaN;return parseInt(c,a)}}return+r};if(ebe(Q_,!ru(" 0o1")||!ru("0b1")||ru("+0x1"))){for(Fs=function(e){var r=arguments.length<1?0:ru(hbe(e)),n=this;return nbe(Y_,n)&&obe(function(){lbe(n)})?rbe(Object(r),n,Fs):r},X_=Zge?abe(ru):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Xg=0;X_.length>Xg;Xg++)S3(ru,Eh=X_[Xg])&&!S3(Fs,Eh)&&sbe(Fs,Eh,ube(ru,Eh));Fs.prototype=Y_,Y_.constructor=Fs,tbe(J_,Q_,Fs,{constructor:!0})}var Fs,X_,Xg,Eh;var vbe=G();vbe({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var gbe=G(),bbe=Z_();gbe({target:"Number",stat:!0},{isFinite:bbe});var Sbe=G(),_be=Qg();Sbe({target:"Number",stat:!0},{isInteger:_be});var Pbe=G();Pbe({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var Ebe=G(),Tbe=Qg(),Abe=Math.abs;Ebe({target:"Number",stat:!0},{isSafeInteger:function(e){return Tbe(e)&&Abe(e)<=9007199254740991}});var xbe=G();xbe({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991});var Rbe=G();Rbe({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var Nbe=G(),j3=k3();Nbe({target:"Number",stat:!0,forced:Number.parseFloat!=j3},{parseFloat:j3});var zbe=G(),M3=eP();zbe({target:"Number",stat:!0,forced:Number.parseInt!=M3},{parseInt:M3});var Ybe=G(),tP=ce(),Xbe=Pt(),Qbe=Vg(),Jbe=Ah(),Zbe=V_(),Zg=le(),ewe=RangeError,B3=String,twe=isFinite,rwe=Math.abs,nwe=Math.floor,G3=Math.pow,iwe=Math.round,co=tP(1 .toExponential),owe=tP(Jbe),$3=tP("".slice),z3=co(-69e-12,4)==="-6.9000e-11"&&co(1.255,2)==="1.25e+0"&&co(12345,3)==="1.235e+4"&&co(25,0)==="3e+1",awe=Zg(function(){co(1,1/0)})&&Zg(function(){co(1,-1/0)}),uwe=!Zg(function(){co(1/0,1/0)})&&!Zg(function(){co(NaN,1/0)}),swe=!z3||!awe||!uwe;Ybe({target:"Number",proto:!0,forced:swe},{toExponential:function(e){var r=Qbe(this);if(e===void 0)return co(r);var n=Xbe(e);if(!twe(r))return String(r);if(n<0||n>20)throw ewe("Incorrect fraction digits");if(z3)return co(r,n);var i="",a="",l=0,c="",f="";if(r<0&&(i="-",r=-r),r===0)l=0,a=owe("0",n+1);else{var d=Zbe(r);l=nwe(d);var y=0,m=G3(10,l-n);y=iwe(r/m),2*r>=(2*y+1)*m&&(y+=1),y>=G3(10,n+1)&&(y/=10,l+=1),a=B3(y)}return n!==0&&(a=$3(a,0,1)+"."+$3(a,1)),l===0?(c="+",f="0"):(c=l>0?"+":"-",f=B3(rwe(l))),a+="e"+c+f,i+a}});var lwe=G(),iP=ce(),cwe=Pt(),fwe=Vg(),pwe=Ah(),H3=le(),hwe=RangeError,K3=String,Y3=Math.floor,nP=iP(pwe),W3=iP("".slice),xh=iP(1 .toFixed),eb=function t(e,r,n){return r===0?n:r%2===1?t(e,r-1,n*e):t(e*e,r/2,n)},dwe=function(e){for(var r=0,n=e;n>=4096;)r+=12,n/=4096;for(;n>=2;)r+=1,n/=2;return r},jc=function(e,r,n){for(var i=-1,a=n;++i<6;)a+=r*e[i],e[i]=a%1e7,a=Y3(a/1e7)},rP=function(e,r){for(var n=6,i=0;--n>=0;)i+=e[n],e[n]=Y3(i/r),i=i%r*1e7},V3=function(e){for(var r=6,n="";--r>=0;)if(n!==""||r===0||e[r]!==0){var i=K3(e[r]);n=n===""?i:n+nP("0",7-i.length)+i}return n},vwe=H3(function(){return xh(8e-5,3)!=="0.000"||xh(.9,0)!=="1"||xh(1.255,2)!=="1.25"||xh(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!H3(function(){xh({})});lwe({target:"Number",proto:!0,forced:vwe},{toFixed:function(e){var r=fwe(this),n=cwe(e),i=[0,0,0,0,0,0],a="",l="0",c,f,d,y;if(n<0||n>20)throw hwe("Incorrect fraction digits");if(r!=r)return"NaN";if(r<=-1e21||r>=1e21)return K3(r);if(r<0&&(a="-",r=-r),r>1e-21)if(c=dwe(r*eb(2,69,1))-69,f=c<0?r*eb(2,-c,1):r/eb(2,c,1),f*=4503599627370496,c=52-c,c>0){for(jc(i,0,f),d=n;d>=7;)jc(i,1e7,0),d-=7;for(jc(i,eb(10,d,1),0),d=c-1;d>=23;)rP(i,1<<23),d-=23;rP(i,1<<d),jc(i,1,1),rP(i,2),l=V3(i)}else jc(i,0,f),jc(i,1<<-c,0),l=V3(i)+nP("0",n);return n>0?(y=l.length,l=a+(y<=n?"0."+nP("0",n-y)+l:W3(l,0,y-n)+"."+W3(l,y-n))):l=a+l,l}});var Pwe=G(),Z3=aP();Pwe({target:"Object",stat:!0,arity:2,forced:Object.assign!==Z3},{assign:Z3});var xwe=G(),Rwe=xe(),Iwe=Rh(),kwe=ge(),jwe=$e(),qwe=it();Rwe&&xwe({target:"Object",proto:!0,forced:Iwe},{__defineGetter__:function(e,r){qwe.f(jwe(this),e,{get:kwe(r),enumerable:!0,configurable:!0})}});var Fwe=G(),Lwe=xe(),Cwe=Rh(),Nwe=ge(),Dwe=$e(),Mwe=it();Lwe&&Fwe({target:"Object",proto:!0,forced:Cwe},{__defineSetter__:function(e,r){Mwe.f(Dwe(this),e,{set:Nwe(r),enumerable:!0,configurable:!0})}});var Wwe=G(),Vwe=uP().entries;Wwe({target:"Object",stat:!0},{entries:function(e){return Vwe(e)}});var Kwe=G(),Ywe=kc(),Xwe=le(),Qwe=Ne(),Jwe=tu().onFreeze,sP=Object.freeze,Zwe=Xwe(function(){sP(1)});Kwe({target:"Object",stat:!0,forced:Zwe,sham:!Ywe},{freeze:function(e){return sP&&Qwe(e)?sP(Jwe(e)):e}});var e0e=G(),t0e=Te(),r0e=io();e0e({target:"Object",stat:!0},{fromEntries:function(e){var r={};return t0e(e,function(n,i){r0e(r,n,i)},{AS_ENTRIES:!0}),r}});var n0e=G(),i0e=le(),o0e=zt(),oU=_r().f,aU=xe(),a0e=i0e(function(){oU(1)}),u0e=!aU||a0e;n0e({target:"Object",stat:!0,forced:u0e,sham:!aU},{getOwnPropertyDescriptor:function(e,r){return oU(o0e(e),r)}});var s0e=G(),l0e=xe(),c0e=ng(),f0e=zt(),p0e=_r(),h0e=io();s0e({target:"Object",stat:!0,sham:!l0e},{getOwnPropertyDescriptors:function(e){for(var r=f0e(e),n=p0e.f,i=c0e(r),a={},l=0,c,f;i.length>l;)f=n(r,c=i[l++]),f!==void 0&&h0e(a,c,f);return a}});var d0e=G(),v0e=le(),y0e=cg().f,m0e=v0e(function(){return!Object.getOwnPropertyNames(1)});d0e({target:"Object",stat:!0,forced:m0e},{getOwnPropertyNames:y0e});var g0e=G(),b0e=le(),w0e=$e(),uU=Pr(),O0e=wg(),S0e=b0e(function(){uU(1)});g0e({target:"Object",stat:!0,forced:S0e,sham:!O0e},{getPrototypeOf:function(e){return uU(w0e(e))}});var _0e=G(),P0e=Ue();_0e({target:"Object",stat:!0},{hasOwn:P0e});var E0e=G(),T0e=lP();E0e({target:"Object",stat:!0},{is:T0e});var A0e=G(),lU=bh();A0e({target:"Object",stat:!0,forced:Object.isExtensible!==lU},{isExtensible:lU});var x0e=G(),R0e=le(),I0e=Ne(),k0e=hn(),cU=Bg(),cP=Object.isFrozen,j0e=R0e(function(){cP(1)});x0e({target:"Object",stat:!0,forced:j0e||cU},{isFrozen:function(e){return!I0e(e)||cU&&k0e(e)=="ArrayBuffer"?!0:cP?cP(e):!1}});var q0e=G(),F0e=le(),L0e=Ne(),C0e=hn(),fU=Bg(),fP=Object.isSealed,N0e=F0e(function(){fP(1)});q0e({target:"Object",stat:!0,forced:N0e||fU},{isSealed:function(e){return!L0e(e)||fU&&C0e(e)=="ArrayBuffer"?!0:fP?fP(e):!1}});var D0e=G(),M0e=$e(),pU=Ss(),U0e=le(),B0e=U0e(function(){pU(1)});D0e({target:"Object",stat:!0,forced:B0e},{keys:function(e){return pU(M0e(e))}});var G0e=G(),$0e=xe(),z0e=Rh(),H0e=$e(),W0e=no(),V0e=Pr(),K0e=_r().f;$0e&&G0e({target:"Object",proto:!0,forced:z0e},{__lookupGetter__:function(e){var r=H0e(this),n=W0e(e),i;do if(i=K0e(r,n))return i.get;while(r=V0e(r))}});var Y0e=G(),X0e=xe(),Q0e=Rh(),J0e=$e(),Z0e=no(),eOe=Pr(),tOe=_r().f;X0e&&Y0e({target:"Object",proto:!0,forced:Q0e},{__lookupSetter__:function(e){var r=J0e(this),n=Z0e(e),i;do if(i=tOe(r,n))return i.set;while(r=eOe(r))}});var rOe=G(),nOe=Ne(),iOe=tu().onFreeze,oOe=kc(),aOe=le(),pP=Object.preventExtensions,uOe=aOe(function(){pP(1)});rOe({target:"Object",stat:!0,forced:uOe,sham:!oOe},{preventExtensions:function(e){return pP&&nOe(e)?pP(iOe(e)):e}});var sOe=G(),lOe=Ne(),cOe=tu().onFreeze,fOe=kc(),pOe=le(),hP=Object.seal,hOe=pOe(function(){hP(1)});sOe({target:"Object",stat:!0,forced:hOe,sham:!fOe},{seal:function(e){return hP&&lOe(e)?hP(cOe(e)):e}});var yOe=og(),mOe=bt(),gOe=dU();yOe||mOe(Object.prototype,"toString",gOe,{unsafe:!0});var bOe=G(),wOe=uP().values;bOe({target:"Object",stat:!0},{values:function(e){return wOe(e)}});b8();O8();_8();P8();E8();R8();var h1e=G(),d1e=fe(),v1e=ge(),y1e=Vo(),m1e=ou(),g1e=Te();h1e({target:"Promise",stat:!0},{allSettled:function(e){var r=this,n=y1e.f(r),i=n.resolve,a=n.reject,l=m1e(function(){var c=v1e(r.resolve),f=[],d=0,y=1;g1e(e,function(m){var g=d++,w=!1;y++,d1e(c,r,m).then(function(P){w||(w=!0,f[g]={status:"fulfilled",value:P},--y||i(f))},function(P){w||(w=!0,f[g]={status:"rejected",reason:P},--y||i(f))})}),--y||i(f)});return l.error&&a(l.value),n.promise}});var b1e=G(),w1e=fe(),O1e=ge(),S1e=Oe(),_1e=Vo(),P1e=ou(),E1e=Te(),I8="No one promise resolved";b1e({target:"Promise",stat:!0},{any:function(e){var r=this,n=S1e("AggregateError"),i=_1e.f(r),a=i.resolve,l=i.reject,c=P1e(function(){var f=O1e(r.resolve),d=[],y=0,m=1,g=!1;E1e(e,function(w){var P=y++,E=!1;m++,w1e(f,r,w).then(function(O){E||g||(g=!0,a(O))},function(O){E||g||(E=!0,d[P]=O,--m||l(new n(d,I8)))})}),--m||l(new n(d,I8))});return c.error&&l(c.value),i.promise}});var T1e=G(),A1e=gt(),pb=Ds(),x1e=le(),j8=Oe(),q8=ke(),R1e=Vr(),k8=$P(),I1e=bt(),HP=pb&&pb.prototype,k1e=!!pb&&x1e(function(){HP.finally.call({then:function(){}},function(){})});T1e({target:"Promise",proto:!0,real:!0,forced:k1e},{finally:function(e){var r=R1e(this,j8("Promise")),n=q8(e);return this.then(n?function(i){return k8(r,e()).then(function(){return i})}:e,n?function(i){return k8(r,e()).then(function(){throw i})}:e)}});!A1e&&q8(pb)&&(zP=j8("Promise").prototype.finally,HP.finally!==zP&&I1e(HP,"finally",zP,{unsafe:!0}));var zP;var j1e=G(),q1e=yn(),F1e=ge(),L1e=ie(),C1e=le(),N1e=!C1e(function(){Reflect.apply(function(){})});j1e({target:"Reflect",stat:!0,forced:N1e},{apply:function(e,r,n){return q1e(F1e(e),r,L1e(n))}});var H1e=G(),W1e=Oe(),VP=yn(),V1e=D8(),M8=Fc(),K1e=ie(),U8=Ne(),Y1e=Ht(),G8=le(),KP=W1e("Reflect","construct"),X1e=Object.prototype,Q1e=[].push,$8=G8(function(){function t(){}return!(KP(function(){},[],t)instanceof t)}),z8=!G8(function(){KP(function(){})}),B8=$8||z8;H1e({target:"Reflect",stat:!0,forced:B8,sham:B8},{construct:function(e,r){M8(e),K1e(r);var n=arguments.length<3?e:M8(arguments[2]);if(z8&&!$8)return KP(e,r,n);if(e==n){switch(r.length){case 0:return new e;case 1:return new e(r[0]);case 2:return new e(r[0],r[1]);case 3:return new e(r[0],r[1],r[2]);case 4:return new e(r[0],r[1],r[2],r[3])}var i=[null];return VP(Q1e,i,r),new(VP(V1e,e,i))}var a=n.prototype,l=Y1e(U8(a)?a:X1e),c=VP(e,l,r);return U8(c)?c:l}});var J1e=G(),Z1e=xe(),H8=ie(),e_e=no(),W8=it(),t_e=le(),r_e=t_e(function(){Reflect.defineProperty(W8.f({},1,{value:1}),1,{value:2})});J1e({target:"Reflect",stat:!0,forced:r_e,sham:!Z1e},{defineProperty:function(e,r,n){H8(e);var i=e_e(r);H8(n);try{return W8.f(e,i,n),!0}catch(a){return!1}}});var n_e=G(),i_e=ie(),o_e=_r().f;n_e({target:"Reflect",stat:!0},{deleteProperty:function(e,r){var n=o_e(i_e(e),r);return n&&!n.configurable?!1:delete e[r]}});var a_e=G(),u_e=fe(),s_e=Ne(),l_e=ie(),c_e=YP(),f_e=_r(),p_e=Pr();function Y8(t,e){var r=arguments.length<3?t:arguments[2],n,i;if(l_e(t)===r)return t[e];if(n=f_e.f(t,e),n)return c_e(n)?n.value:n.get===void 0?void 0:u_e(n.get,r);if(s_e(i=p_e(t)))return Y8(i,e,r)}a_e({target:"Reflect",stat:!0},{get:Y8});var h_e=G(),d_e=xe(),v_e=ie(),y_e=_r();h_e({target:"Reflect",stat:!0,sham:!d_e},{getOwnPropertyDescriptor:function(e,r){return y_e.f(v_e(e),r)}});var m_e=G(),g_e=ie(),b_e=Pr(),w_e=wg();m_e({target:"Reflect",stat:!0,sham:!w_e},{getPrototypeOf:function(e){return b_e(g_e(e))}});var O_e=G();O_e({target:"Reflect",stat:!0},{has:function(e,r){return r in e}});var S_e=G(),__e=ie(),P_e=bh();S_e({target:"Reflect",stat:!0},{isExtensible:function(e){return __e(e),P_e(e)}});var E_e=G(),T_e=ng();E_e({target:"Reflect",stat:!0},{ownKeys:T_e});var A_e=G(),x_e=Oe(),R_e=ie(),I_e=kc();A_e({target:"Reflect",stat:!0,sham:!I_e},{preventExtensions:function(e){R_e(e);try{var r=x_e("Object","preventExtensions");return r&&r(e),!0}catch(n){return!1}}});var k_e=G(),j_e=fe(),q_e=ie(),X8=Ne(),F_e=YP(),L_e=le(),XP=it(),Q8=_r(),C_e=Pr(),J8=In();function Z8(t,e,r){var n=arguments.length<4?t:arguments[3],i=Q8.f(q_e(t),e),a,l,c;if(!i){if(X8(l=C_e(t)))return Z8(l,e,r,n);i=J8(0)}if(F_e(i)){if(i.writable===!1||!X8(n))return!1;if(a=Q8.f(n,e)){if(a.get||a.set||a.writable===!1)return!1;a.value=r,XP.f(n,e,a)}else XP.f(n,e,J8(0,r))}else{if(c=i.set,c===void 0)return!1;j_e(c,n,r)}return!0}var N_e=L_e(function(){var t=function(){},e=XP.f(new t,"a",{configurable:!0});return Reflect.set(t.prototype,"a",1,e)!==!1});k_e({target:"Reflect",stat:!0,forced:N_e},{set:Z8});var D_e=G(),M_e=ie(),U_e=z1(),e4=oo();e4&&D_e({target:"Reflect",stat:!0},{setPrototypeOf:function(e,r){M_e(e),U_e(r);try{return e4(e,r),!0}catch(n){return!1}}});var B_e=G(),G_e=be(),$_e=dn();B_e({global:!0},{Reflect:{}});$_e(G_e.Reflect,"Reflect",!0);var sPe=xe(),iE=be(),Ch=ce(),lPe=wc(),cPe=As(),fPe=rr(),pPe=Bo().f,s4=Wr(),hPe=Bc(),l4=He(),dPe=Gc(),p4=Lh(),vPe=H1(),yPe=bt(),mPe=le(),gPe=Ue(),bPe=at().enforce,wPe=Ja(),OPe=_e(),h4=db(),d4=eE(),SPe=OPe("match"),su=iE.RegExp,$c=su.prototype,_Pe=iE.SyntaxError,PPe=Ch($c.exec),vb=Ch("".charAt),c4=Ch("".replace),f4=Ch("".indexOf),EPe=Ch("".slice),TPe=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Us=/a/g,tE=/a/g,APe=new su(Us)!==Us,v4=p4.MISSED_STICKY,xPe=p4.UNSUPPORTED_Y,RPe=sPe&&(!APe||v4||h4||d4||mPe(function(){return tE[SPe]=!1,su(Us)!=Us||su(tE)==tE||su(Us,"i")!="/a/i"})),IPe=function(e){for(var r=e.length,n=0,i="",a=!1,l;n<=r;n++){if(l=vb(e,n),l==="\\"){i+=l+vb(e,++n);continue}!a&&l==="."?i+="[\\s\\S]":(l==="["?a=!0:l==="]"&&(a=!1),i+=l)}return i},kPe=function(e){for(var r=e.length,n=0,i="",a=[],l={},c=!1,f=!1,d=0,y="",m;n<=r;n++){if(m=vb(e,n),m==="\\")m=m+vb(e,++n);else if(m==="]")c=!1;else if(!c)switch(!0){case m==="[":c=!0;break;case m==="(":PPe(TPe,EPe(e,n+1))&&(n+=2,f=!0),i+=m,d++;continue;case(m===">"&&f):if(y===""||gPe(l,y))throw new _Pe("Invalid capture group name");l[y]=!0,a[a.length]=[y,d],f=!1,y="";continue}f?y+=m:i+=m}return[i,a]};if(lPe("RegExp",RPe)){for(uu=function(e,r){var n=s4($c,this),i=hPe(e),a=r===void 0,l=[],c=e,f,d,y,m,g,w;if(!n&&i&&a&&e.constructor===uu)return e;if((i||s4($c,e))&&(e=e.source,a&&(r=dPe(c))),e=e===void 0?"":l4(e),r=r===void 0?"":l4(r),c=e,h4&&"dotAll"in Us&&(d=!!r&&f4(r,"s")>-1,d&&(r=c4(r,/s/g,""))),f=r,v4&&"sticky"in Us&&(y=!!r&&f4(r,"y")>-1,y&&xPe&&(r=c4(r,/y/g,""))),d4&&(m=kPe(e),e=m[0],l=m[1]),g=cPe(su(e,r),n?this:$c,uu),(d||y||l.length)&&(w=bPe(g),d&&(w.dotAll=!0,w.raw=uu(IPe(e),f)),y&&(w.sticky=!0),l.length&&(w.groups=l)),e!==c)try{fPe(g,"source",c===""?"(?:)":c)}catch(P){}return g},rE=pPe(su),nE=0;rE.length>nE;)vPe(uu,su,rE[nE++]);$c.constructor=uu,uu.prototype=$c,yPe(iE,"RegExp",uu,{constructor:!0})}var uu,rE,nE;wPe("RegExp");var qPe=xe(),FPe=db(),LPe=hn(),CPe=Ko(),NPe=at().get,g4=RegExp.prototype,DPe=TypeError;qPe&&FPe&&CPe(g4,"dotAll",{configurable:!0,get:function(){if(this!==g4){if(LPe(this)==="RegExp")return!!NPe(this).dotAll;throw DPe("Incompatible receiver, RegExp required")}}});var lqt=Ce(gb(),1);var ZPe=be(),eEe=xe(),tEe=Ko(),rEe=hb(),nEe=le(),S4=ZPe.RegExp,_4=S4.prototype,iEe=eEe&&nEe(function(){var t=!0;try{S4(".","d")}catch(f){t=!1}var e={},r="",n=t?"dgimsy":"gimsy",i=function(d,y){Object.defineProperty(e,d,{get:function(){return r+=y,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(a.hasIndices="d");for(var l in a)i(l,a[l]);var c=Object.getOwnPropertyDescriptor(_4,"flags").get.call(e);return c!==n||r!==n});iEe&&tEe(_4,"flags",{configurable:!0,get:rEe});var oEe=xe(),aEe=Lh().MISSED_STICKY,uEe=hn(),sEe=Ko(),lEe=at().get,P4=RegExp.prototype,cEe=TypeError;oEe&&aEe&&sEe(P4,"sticky",{configurable:!0,get:function(){if(this!==P4){if(uEe(this)==="RegExp")return!!lEe(this).sticky;throw cEe("Incompatible receiver, RegExp required")}}});gb();var fEe=G(),pEe=fe(),hEe=ce(),dEe=ke(),vEe=Ne(),yEe=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},e.test("abc")===!0&&t}(),mEe=TypeError,gEe=hEe(/./.test);fEe({target:"RegExp",proto:!0,forced:!yEe},{test:function(e){var r=this.exec;if(!dEe(r))return gEe(this,e);var n=pEe(r,this,e);if(n!==null&&!vEe(n))throw new mEe("RegExp exec method returned something other than an Object or null");return!!n}});var bEe=ws().PROPER,wEe=bt(),OEe=ie(),E4=He(),SEe=le(),_Ee=Gc(),lE="toString",PEe=RegExp.prototype,T4=PEe[lE],EEe=SEe(function(){return T4.call({source:"a",flags:"b"})!="/a/b"}),TEe=bEe&&T4.name!=lE;(EEe||TEe)&&wEe(RegExp.prototype,lE,function(){var e=OEe(this),r=E4(e.source),n=E4(_Ee(e));return"/"+r+"/"+n},{unsafe:!0});A4();var REe=G(),IEe=ce(),kEe=$t(),jEe=Pt(),qEe=He(),FEe=le(),LEe=IEe("".charAt),CEe=FEe(function(){return"\uD842\uDFB7".at(-2)!=="\uD842"});REe({target:"String",proto:!0,forced:CEe},{at:function(e){var r=qEe(kEe(this)),n=r.length,i=jEe(e),a=i>=0?i:n+i;return a<0||a>=n?void 0:LEe(r,a)}});var GEe=G(),$Ee=Bs().codeAt;GEe({target:"String",proto:!0},{codePointAt:function(e){return $Ee(this,e)}});var KEe=G(),L4=ce(),YEe=_r().f,XEe=kn(),q4=He(),QEe=bb(),JEe=$t(),ZEe=wb(),eTe=gt(),F4=L4("".endsWith),tTe=L4("".slice),rTe=Math.min,C4=ZEe("endsWith"),nTe=!eTe&&!C4&&!!function(){var t=YEe(String.prototype,"endsWith");return t&&!t.writable}();KEe({target:"String",proto:!0,forced:!nTe&&!C4},{endsWith:function(e){var r=q4(JEe(this));QEe(e);var n=arguments.length>1?arguments[1]:void 0,i=r.length,a=n===void 0?i:rTe(XEe(n),i),l=q4(e);return F4?F4(r,l,a):tTe(r,a-l.length,a)===l}});var iTe=G(),oTe=ce(),aTe=Ai(),uTe=RangeError,N4=String.fromCharCode,D4=String.fromCodePoint,sTe=oTe([].join),lTe=!!D4&&D4.length!=1;iTe({target:"String",stat:!0,arity:1,forced:lTe},{fromCodePoint:function(e){for(var r=[],n=arguments.length,i=0,a;n>i;){if(a=+arguments[i++],aTe(a,1114111)!==a)throw uTe(a+" is not a valid code point");r[i]=a<65536?N4(a):N4(((a-=65536)>>10)+55296,a%1024+56320)}return sTe(r,"")}});var cTe=G(),fTe=ce(),pTe=bb(),hTe=$t(),M4=He(),dTe=wb(),vTe=fTe("".indexOf);cTe({target:"String",proto:!0,forced:!dTe("includes")},{includes:function(e){return!!~vTe(M4(hTe(this)),M4(pTe(e)),arguments.length>1?arguments[1]:void 0)}});var wqt=Ce(fE(),1);var ITe=fe(),kTe=Dh(),jTe=ie(),qTe=kn(),hE=He(),FTe=$t(),LTe=tr(),CTe=Mh(),X4=Hc();kTe("match",function(t,e,r){return[function(i){var a=FTe(this),l=i==null?void 0:LTe(i,t);return l?ITe(l,i,a):new RegExp(i)[t](hE(a))},function(n){var i=jTe(this),a=hE(n),l=r(e,i,a);if(l.done)return l.value;if(!i.global)return X4(i,a);var c=i.unicode;i.lastIndex=0;for(var f=[],d=0,y;(y=X4(i,a))!==null;){var m=hE(y[0]);f[d]=m,m===""&&(i.lastIndex=CTe(a,qTe(i.lastIndex),c)),d++}return d===0?null:f}]});var NTe=G(),Q4=fe(),eB=ce(),DTe=Xa(),J4=$t(),tB=kn(),Uh=He(),MTe=ie(),UTe=hn(),BTe=Bc(),rB=Gc(),GTe=tr(),$Te=bt(),zTe=le(),HTe=_e(),WTe=Vr(),VTe=Mh(),KTe=Hc(),nB=at(),vE=gt(),Ob=HTe("matchAll"),iB="RegExp String",oB=iB+" Iterator",YTe=nB.set,XTe=nB.getterFor(oB),Z4=RegExp.prototype,QTe=TypeError,yE=eB("".indexOf),Sb=eB("".matchAll),dE=!!Sb&&!zTe(function(){Sb("a",/./)}),JTe=DTe(function(e,r,n,i){YTe(this,{type:oB,regexp:e,string:r,global:n,unicode:i,done:!1})},iB,function(){var e=XTe(this);if(e.done)return{value:void 0,done:!0};var r=e.regexp,n=e.string,i=KTe(r,n);return i===null?{value:void 0,done:e.done=!0}:e.global?(Uh(i[0])===""&&(r.lastIndex=VTe(n,tB(r.lastIndex),e.unicode)),{value:i,done:!1}):(e.done=!0,{value:i,done:!1})}),mE=function(e){var r=MTe(this),n=Uh(e),i=WTe(r,RegExp),a=Uh(rB(r)),l,c,f;return l=new i(i===RegExp?r.source:r,a),c=!!~yE(a,"g"),f=!!~yE(a,"u"),l.lastIndex=tB(r.lastIndex),new JTe(l,n,c,f)};NTe({target:"String",proto:!0,forced:dE},{matchAll:function(e){var r=J4(this),n,i,a,l;if(e!=null){if(BTe(e)&&(n=Uh(J4(rB(e))),!~yE(n,"g")))throw QTe("`.matchAll` does not allow non-global regexes");if(dE)return Sb(r,e);if(a=GTe(e,Ob),a===void 0&&vE&&UTe(e)=="RegExp"&&(a=mE),a)return Q4(a,e,r)}else if(dE)return Sb(r,e);return i=Uh(r),l=new RegExp(e,"g"),vE?Q4(mE,l,i):l[Ob](i)}});vE||Ob in Z4||$Te(Z4,Ob,mE);var aAe=G(),uAe=gE().end,sAe=bE();aAe({target:"String",proto:!0,forced:sAe},{padEnd:function(e){return uAe(this,e,arguments.length>1?arguments[1]:void 0)}});var lAe=G(),cAe=gE().start,fAe=bE();lAe({target:"String",proto:!0,forced:fAe},{padStart:function(e){return cAe(this,e,arguments.length>1?arguments[1]:void 0)}});var pAe=G(),hB=ce(),hAe=zt(),dAe=$e(),fB=He(),vAe=ze(),pB=hB([].push),yAe=hB([].join);pAe({target:"String",stat:!0},{raw:function(e){for(var r=hAe(dAe(e).raw),n=vAe(r),i=arguments.length,a=[],l=0;n>l;){if(pB(a,fB(r[l++])),l===n)return yAe(a,"");l<i&&pB(a,fB(arguments[l]))}}});var mAe=G(),gAe=Ah();mAe({target:"String",proto:!0},{repeat:gAe});var PAe=yn(),vB=fe(),_b=ce(),EAe=Dh(),TAe=le(),AAe=ie(),xAe=ke(),RAe=Pt(),IAe=kn(),Wc=He(),kAe=$t(),jAe=Mh(),qAe=tr(),FAe=_E(),LAe=Hc(),CAe=_e(),EE=CAe("replace"),NAe=Math.max,DAe=Math.min,MAe=_b([].concat),PE=_b([].push),yB=_b("".indexOf),mB=_b("".slice),UAe=function(e){return e===void 0?e:String(e)},BAe=function(){return"a".replace(/./,"$0")==="$0"}(),gB=function(){return/./[EE]?/./[EE]("a","$0")==="":!1}(),GAe=!TAe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"});EAe("replace",function(t,e,r){var n=gB?"$":"$0";return[function(a,l){var c=kAe(this),f=a==null?void 0:qAe(a,EE);return f?vB(f,a,c,l):vB(e,Wc(c),a,l)},function(i,a){var l=AAe(this),c=Wc(i);if(typeof a=="string"&&yB(a,n)===-1&&yB(a,"$<")===-1){var f=r(e,l,c,a);if(f.done)return f.value}var d=xAe(a);d||(a=Wc(a));var y=l.global;if(y){var m=l.unicode;l.lastIndex=0}for(var g=[];;){var w=LAe(l,c);if(w===null||(PE(g,w),!y))break;var P=Wc(w[0]);P===""&&(l.lastIndex=jAe(c,IAe(l.lastIndex),m))}for(var E="",O=0,R=0;R<g.length;R++){w=g[R];for(var x=Wc(w[0]),A=NAe(DAe(RAe(w.index),c.length),0),I=[],N=1;N<w.length;N++)PE(I,UAe(w[N]));var j=w.groups;if(d){var k=MAe([x],I,A,c);j!==void 0&&PE(k,j);var z=Wc(PAe(a,void 0,k))}else z=FAe(x,c,A,I,j,a);A>=O&&(E+=mB(c,O,A)+z,O=A+x.length)}return E+mB(c,O)}]},!GAe||!BAe||gB);var $Ae=G(),zAe=fe(),TE=ce(),bB=$t(),HAe=ke(),WAe=Bc(),Vc=He(),VAe=tr(),KAe=Gc(),YAe=_E(),XAe=_e(),QAe=gt(),JAe=XAe("replace"),ZAe=TypeError,SB=TE("".indexOf),exe=TE("".replace),wB=TE("".slice),txe=Math.max,OB=function(e,r,n){return n>e.length?-1:r===""?n:SB(e,r,n)};$Ae({target:"String",proto:!0},{replaceAll:function(e,r){var n=bB(this),i,a,l,c,f,d,y,m,g,w=0,P=0,E="";if(e!=null){if(i=WAe(e),i&&(a=Vc(bB(KAe(e))),!~SB(a,"g")))throw ZAe("`.replaceAll` does not allow non-global regexes");if(l=VAe(e,JAe),l)return zAe(l,e,n,r);if(QAe&&i)return exe(Vc(n),e,r)}for(c=Vc(n),f=Vc(e),d=HAe(r),d||(r=Vc(r)),y=f.length,m=txe(1,y),w=OB(c,f,0);w!==-1;)g=d?Vc(r(f,w,c)):YAe(f,c,w,[],void 0,r),E+=wB(c,P,w)+g,P=w+y,w=OB(c,f,w+m);return P<c.length&&(E+=wB(c,P)),E}});var rxe=fe(),nxe=Dh(),ixe=ie(),oxe=$t(),_B=lP(),PB=He(),axe=tr(),uxe=Hc();nxe("search",function(t,e,r){return[function(i){var a=oxe(this),l=i==null?void 0:axe(i,t);return l?rxe(l,i,a):new RegExp(i)[t](PB(a))},function(n){var i=ixe(this),a=PB(n),l=r(e,i,a);if(l.done)return l.value;var c=i.lastIndex;_B(c,0)||(i.lastIndex=0);var f=uxe(i,a);return _B(i.lastIndex,c)||(i.lastIndex=c),f===null?-1:f.index}]});var sxe=yn(),Bh=fe(),xE=ce(),lxe=Dh(),cxe=Bc(),fxe=ie(),EB=$t(),pxe=Vr(),hxe=Mh(),dxe=kn(),AE=He(),vxe=tr(),TB=Oc(),AB=Hc(),yxe=Nh(),mxe=Lh(),gxe=le(),Kc=mxe.UNSUPPORTED_Y,xB=4294967295,bxe=Math.min,RB=[].push,wxe=xE(/./.exec),Yc=xE(RB),Gh=xE("".slice),Oxe=!gxe(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"});lxe("split",function(t,e,r){var n;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?n=function(a,l){var c=AE(EB(this)),f=l===void 0?xB:l>>>0;if(f===0)return[];if(a===void 0)return[c];if(!cxe(a))return Bh(e,c,a,f);for(var d=[],y=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),m=0,g=new RegExp(a.source,y+"g"),w,P,E;(w=Bh(yxe,g,c))&&(P=g.lastIndex,!(P>m&&(Yc(d,Gh(c,m,w.index)),w.length>1&&w.index<c.length&&sxe(RB,d,TB(w,1)),E=w[0].length,m=P,d.length>=f)));)g.lastIndex===w.index&&g.lastIndex++;return m===c.length?(E||!wxe(g,""))&&Yc(d,""):Yc(d,Gh(c,m)),d.length>f?TB(d,0,f):d}:"0".split(void 0,0).length?n=function(a,l){return a===void 0&&l===0?[]:Bh(e,this,a,l)}:n=e,[function(a,l){var c=EB(this),f=a==null?void 0:vxe(a,t);return f?Bh(f,a,c,l):Bh(n,AE(c),a,l)},function(i,a){var l=fxe(this),c=AE(i),f=r(n,l,c,a,n!==e);if(f.done)return f.value;var d=pxe(l,RegExp),y=l.unicode,m=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(Kc?"g":"y"),g=new d(Kc?"^(?:"+l.source+")":l,m),w=a===void 0?xB:a>>>0;if(w===0)return[];if(c.length===0)return AB(g,c)===null?[c]:[];for(var P=0,E=0,O=[];E<c.length;){g.lastIndex=Kc?0:E;var R=AB(g,Kc?Gh(c,E):c),x;if(R===null||(x=bxe(dxe(g.lastIndex+(Kc?E:0)),c.length))===P)E=hxe(c,E,y);else{if(Yc(O,Gh(c,P,E)),O.length===w)return O;for(var A=1;A<=R.length-1;A++)if(Yc(O,R[A]),O.length===w)return O;E=P=x}}return Yc(O,Gh(c,P)),O}]},!Oxe,Kc);var Sxe=G(),jB=ce(),_xe=_r().f,Pxe=kn(),IB=He(),Exe=bb(),Txe=$t(),Axe=wb(),xxe=gt(),kB=jB("".startsWith),Rxe=jB("".slice),Ixe=Math.min,qB=Axe("startsWith"),kxe=!xxe&&!qB&&!!function(){var t=_xe(String.prototype,"startsWith");return t&&!t.writable}();Sxe({target:"String",proto:!0,forced:!kxe&&!qB},{startsWith:function(e){var r=IB(Txe(this));Exe(e);var n=Pxe(Ixe(arguments.length>1?arguments[1]:void 0,r.length)),i=IB(e);return kB?kB(r,i,n):Rxe(r,n,n+i.length)===i}});var Fxe=G(),Lxe=qs().trim,Cxe=Pb();Fxe({target:"String",proto:!0,forced:Cxe("trim")},{trim:function(){return Lxe(this)}});MB();var Uxe=G(),UB=RE();Uxe({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==UB},{trimEnd:UB});$B();var zxe=G(),zB=IE();zxe({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==zB},{trimStart:zB});var Xxe=G(),Qxe=gn(),Jxe=bn();Xxe({target:"String",proto:!0,forced:Jxe("anchor")},{anchor:function(e){return Qxe(this,"a","name",e)}});var Zxe=G(),eRe=gn(),tRe=bn();Zxe({target:"String",proto:!0,forced:tRe("big")},{big:function(){return eRe(this,"big","","")}});var rRe=G(),nRe=gn(),iRe=bn();rRe({target:"String",proto:!0,forced:iRe("blink")},{blink:function(){return nRe(this,"blink","","")}});var oRe=G(),aRe=gn(),uRe=bn();oRe({target:"String",proto:!0,forced:uRe("bold")},{bold:function(){return aRe(this,"b","","")}});var sRe=G(),lRe=gn(),cRe=bn();sRe({target:"String",proto:!0,forced:cRe("fixed")},{fixed:function(){return lRe(this,"tt","","")}});var fRe=G(),pRe=gn(),hRe=bn();fRe({target:"String",proto:!0,forced:hRe("fontcolor")},{fontcolor:function(e){return pRe(this,"font","color",e)}});var dRe=G(),vRe=gn(),yRe=bn();dRe({target:"String",proto:!0,forced:yRe("fontsize")},{fontsize:function(e){return vRe(this,"font","size",e)}});var mRe=G(),gRe=gn(),bRe=bn();mRe({target:"String",proto:!0,forced:bRe("italics")},{italics:function(){return gRe(this,"i","","")}});var wRe=G(),ORe=gn(),SRe=bn();wRe({target:"String",proto:!0,forced:SRe("link")},{link:function(e){return ORe(this,"a","href",e)}});var _Re=G(),PRe=gn(),ERe=bn();_Re({target:"String",proto:!0,forced:ERe("small")},{small:function(){return PRe(this,"small","","")}});var TRe=G(),ARe=gn(),xRe=bn();TRe({target:"String",proto:!0,forced:xRe("strike")},{strike:function(){return ARe(this,"strike","","")}});var RRe=G(),IRe=gn(),kRe=bn();RRe({target:"String",proto:!0,forced:kRe("sub")},{sub:function(){return IRe(this,"sub","","")}});var jRe=G(),qRe=gn(),FRe=bn();jRe({target:"String",proto:!0,forced:FRe("sup")},{sup:function(){return qRe(this,"sup","","")}});var jIe=po();jIe("Float32",function(t){return function(r,n,i){return t(this,r,n,i)}});var qIe=po();qIe("Float64",function(t){return function(r,n,i){return t(this,r,n,i)}});var FIe=po();FIe("Int8",function(t){return function(r,n,i){return t(this,r,n,i)}});var LIe=po();LIe("Int16",function(t){return function(r,n,i){return t(this,r,n,i)}});var CIe=po();CIe("Int32",function(t){return function(r,n,i){return t(this,r,n,i)}});var NIe=po();NIe("Uint8",function(t){return function(r,n,i){return t(this,r,n,i)}});var DIe=po();DIe("Uint8",function(t){return function(r,n,i){return t(this,r,n,i)}},!0);var MIe=po();MIe("Uint16",function(t){return function(r,n,i){return t(this,r,n,i)}});var UIe=po();UIe("Uint32",function(t){return function(r,n,i){return t(this,r,n,i)}});var T6=Ie(),BIe=ze(),GIe=Pt(),$Ie=T6.aTypedArray,zIe=T6.exportTypedArrayMethod;zIe("at",function(e){var r=$Ie(this),n=BIe(r),i=GIe(e),a=i>=0?i:n+i;return a<0||a>=n?void 0:r[a]});var HIe=ce(),A6=Ie(),WIe=o_(),VIe=HIe(WIe),KIe=A6.aTypedArray,YIe=A6.exportTypedArrayMethod;YIe("copyWithin",function(e,r){return VIe(KIe(this),e,r,arguments.length>2?arguments[2]:void 0)});var x6=Ie(),XIe=Wt().every,QIe=x6.aTypedArray,JIe=x6.exportTypedArrayMethod;JIe("every",function(e){return XIe(QIe(this),e,arguments.length>1?arguments[1]:void 0)});var I6=Ie(),tke=Ag(),rke=XE(),nke=xi(),ike=fe(),oke=ce(),ake=le(),uke=I6.aTypedArray,ske=I6.exportTypedArrayMethod,lke=oke("".slice),cke=ake(function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),t!==1});ske("fill",function(e){var r=arguments.length;uke(this);var n=lke(nke(this),0,3)==="Big"?rke(e):+e;return ike(tke,this,n,r>1?arguments[1]:void 0,r>2?arguments[2]:void 0)},cke);var L6=Ie(),mke=Wt().filter,gke=Wh(),bke=L6.aTypedArray,wke=L6.exportTypedArrayMethod;wke("filter",function(e){var r=mke(bke(this),e,arguments.length>1?arguments[1]:void 0);return gke(this,r)});var C6=Ie(),Oke=Wt().find,Ske=C6.aTypedArray,_ke=C6.exportTypedArrayMethod;_ke("find",function(e){return Oke(Ske(this),e,arguments.length>1?arguments[1]:void 0)});var N6=Ie(),Pke=Wt().findIndex,Eke=N6.aTypedArray,Tke=N6.exportTypedArrayMethod;Tke("findIndex",function(e){return Pke(Eke(this),e,arguments.length>1?arguments[1]:void 0)});var D6=Ie(),Ake=hh().findLast,xke=D6.aTypedArray,Rke=D6.exportTypedArrayMethod;Rke("findLast",function(e){return Ake(xke(this),e,arguments.length>1?arguments[1]:void 0)});var M6=Ie(),Ike=hh().findLastIndex,kke=M6.aTypedArray,jke=M6.exportTypedArrayMethod;jke("findLastIndex",function(e){return Ike(kke(this),e,arguments.length>1?arguments[1]:void 0)});var U6=Ie(),qke=Wt().forEach,Fke=U6.aTypedArray,Lke=U6.exportTypedArrayMethod;Lke("forEach",function(e){qke(Fke(this),e,arguments.length>1?arguments[1]:void 0)});var Cke=Rb(),Nke=Ie().exportTypedArrayStaticMethod,Dke=UE();Nke("from",Dke,Cke);var B6=Ie(),Mke=eh().includes,Uke=B6.aTypedArray,Bke=B6.exportTypedArrayMethod;Bke("includes",function(e){return Mke(Uke(this),e,arguments.length>1?arguments[1]:void 0)});var G6=Ie(),Gke=eh().indexOf,$ke=G6.aTypedArray,zke=G6.exportTypedArrayMethod;zke("indexOf",function(e){return Gke($ke(this),e,arguments.length>1?arguments[1]:void 0)});var Hke=be(),Wke=le(),QE=ce(),z6=Ie(),JE=mh(),Vke=_e(),ZE=Vke("iterator"),$6=Hke.Uint8Array,Kke=QE(JE.values),Yke=QE(JE.keys),Xke=QE(JE.entries),eT=z6.aTypedArray,Fb=z6.exportTypedArrayMethod,rf=$6&&$6.prototype,Lb=!Wke(function(){rf[ZE].call([1])}),H6=!!rf&&rf.values&&rf[ZE]===rf.values&&rf.values.name==="values",W6=function(){return Kke(eT(this))};Fb("entries",function(){return Xke(eT(this))},Lb);Fb("keys",function(){return Yke(eT(this))},Lb);Fb("values",W6,Lb||!H6,{name:"values"});Fb(ZE,W6,Lb||!H6,{name:"values"});var V6=Ie(),Qke=ce(),Jke=V6.aTypedArray,Zke=V6.exportTypedArrayMethod,eje=Qke([].join);Zke("join",function(e){return eje(Jke(this),e)});var Q6=Ie(),lje=yn(),cje=X6(),fje=Q6.aTypedArray,pje=Q6.exportTypedArrayMethod;pje("lastIndexOf",function(e){var r=arguments.length;return lje(cje,fje(this),r>1?[e,arguments[1]]:[e])});var J6=Ie(),hje=Wt().map,dje=tf(),vje=J6.aTypedArray,yje=J6.exportTypedArrayMethod;yje("map",function(e){return hje(vje(this),e,arguments.length>1?arguments[1]:void 0,function(r,n){return new(dje(r))(n)})});var Z6=Ie(),mje=Rb(),gje=Z6.aTypedArrayConstructor,bje=Z6.exportTypedArrayStaticMethod;bje("of",function(){for(var e=0,r=arguments.length,n=new(gje(this))(r);r>e;)n[e]=arguments[e++];return n},mje);var r7=Ie(),Eje=rT().left,Tje=r7.aTypedArray,Aje=r7.exportTypedArrayMethod;Aje("reduce",function(e){var r=arguments.length;return Eje(Tje(this),e,r,r>1?arguments[1]:void 0)});var n7=Ie(),xje=rT().right,Rje=n7.aTypedArray,Ije=n7.exportTypedArrayMethod;Ije("reduceRight",function(e){var r=arguments.length;return xje(Rje(this),e,r,r>1?arguments[1]:void 0)});var i7=Ie(),kje=i7.aTypedArray,jje=i7.exportTypedArrayMethod,qje=Math.floor;jje("reverse",function(){for(var e=this,r=kje(e).length,n=qje(r/2),i=0,a;i<n;)a=e[i],e[i++]=e[--r],e[r]=a;return e});var a7=be(),u7=fe(),oT=Ie(),Fje=ze(),Lje=ME(),Cje=$e(),s7=le(),Nje=a7.RangeError,nT=a7.Int8Array,o7=nT&&nT.prototype,l7=o7&&o7.set,Dje=oT.aTypedArray,Mje=oT.exportTypedArrayMethod,iT=!s7(function(){var t=new Uint8ClampedArray(2);return u7(l7,t,{length:1,0:3},1),t[1]!==3}),Uje=iT&&oT.NATIVE_ARRAY_BUFFER_VIEWS&&s7(function(){var t=new nT(2);return t.set(1),t.set("2",1),t[0]!==0||t[1]!==2});Mje("set",function(e){Dje(this);var r=Lje(arguments.length>1?arguments[1]:void 0,1),n=Cje(e);if(iT)return u7(l7,this,n,r);var i=this.length,a=Fje(n),l=0;if(a+r>i)throw Nje("Wrong length");for(;l<a;)this[r+l]=n[l++]},!iT||Uje);var c7=Ie(),Bje=tf(),Gje=le(),$je=Ka(),zje=c7.aTypedArray,Hje=c7.exportTypedArrayMethod,Wje=Gje(function(){new Int8Array(1).slice()});Hje("slice",function(e,r){for(var n=$je(zje(this),e,r),i=Bje(this),a=0,l=n.length,c=new i(l);l>a;)c[a]=n[a++];return c},Wje);var f7=Ie(),Vje=Wt().some,Kje=f7.aTypedArray,Yje=f7.exportTypedArrayMethod;Yje("some",function(e){return Vje(Kje(this),e,arguments.length>1?arguments[1]:void 0)});var Xje=be(),Qje=ce(),aT=le(),Jje=ge(),Zje=jg(),y7=Ie(),p7=m_(),eqe=g_(),h7=Ba(),d7=qg(),tqe=y7.aTypedArray,rqe=y7.exportTypedArrayMethod,Vh=Xje.Uint16Array,nf=Vh&&Qje(Vh.prototype.sort),nqe=!!nf&&!(aT(function(){nf(new Vh(2),null)})&&aT(function(){nf(new Vh(2),{})})),v7=!!nf&&!aT(function(){if(h7)return h7<74;if(p7)return p7<67;if(eqe)return!0;if(d7)return d7<602;var t=new Vh(516),e=Array(516),r,n;for(r=0;r<516;r++)n=r%4,t[r]=515-r,e[r]=r-2*n+3;for(nf(t,function(i,a){return(i/4|0)-(a/4|0)}),r=0;r<516;r++)if(t[r]!==e[r])return!0}),iqe=function(e){return function(r,n){return e!==void 0?+e(r,n)||0:n!==n?-1:r!==r?1:r===0&&n===0?1/r>0&&1/n<0?1:-1:r>n}};rqe("sort",function(e){return e!==void 0&&Jje(e),v7?nf(this,e):Zje(tqe(this),iqe(e))},!v7||nqe);var g7=Ie(),oqe=kn(),m7=Ai(),aqe=tf(),uqe=g7.aTypedArray,sqe=g7.exportTypedArrayMethod;sqe("subarray",function(e,r){var n=uqe(this),i=n.length,a=m7(e,i),l=aqe(n);return new l(n.buffer,n.byteOffset+a*n.BYTES_PER_ELEMENT,oqe((r===void 0?i:m7(r,i))-a))});var lqe=be(),cqe=yn(),O7=Ie(),uT=le(),b7=Ka(),Cb=lqe.Int8Array,w7=O7.aTypedArray,fqe=O7.exportTypedArrayMethod,S7=[].toLocaleString,pqe=!!Cb&&uT(function(){S7.call(new Cb(1))}),hqe=uT(function(){return[1,2].toLocaleString()!=new Cb([1,2]).toLocaleString()})||!uT(function(){Cb.prototype.toLocaleString.call([1,2])});fqe("toLocaleString",function(){return cqe(S7,pqe?b7(w7(this)):w7(this),b7(arguments))},hqe);var dqe=Ie().exportTypedArrayMethod,vqe=le(),yqe=be(),mqe=ce(),_7=yqe.Uint8Array,gqe=_7&&_7.prototype||{},Nb=[].toString,bqe=mqe([].join);vqe(function(){Nb.call({})})&&(Nb=function(){return bqe(this)});var wqe=gqe.toString!=Nb;dqe("toString",Nb,wqe);var k2t=Ce(zb(),1);F7();var A2e=G(),x2e=bT();A2e({target:"Array",stat:!0,forced:!0},{fromAsync:x2e});var R2e=G(),I2e=Wt().filterReject,k2e=wt();R2e({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return I2e(this,e,arguments.length>1?arguments[1]:void 0)}});k2e("filterOut");var j2e=G(),q2e=Wt().filterReject,F2e=wt();j2e({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return q2e(this,e,arguments.length>1?arguments[1]:void 0)}});F2e("filterReject");var H2e=G(),W2e=Vb(),V2e=wt();H2e({target:"Array",proto:!0},{group:function(e){var r=arguments.length>1?arguments[1]:void 0;return W2e(this,e,r)}});V2e("group");var K2e=G(),Y2e=Vb(),X2e=ks(),Q2e=wt();K2e({target:"Array",proto:!0,forced:!X2e("groupBy")},{groupBy:function(e){var r=arguments.length>1?arguments[1]:void 0;return Y2e(this,e,r)}});Q2e("groupBy");var uFe=G(),sFe=ks(),lFe=wt(),cFe=OT();uFe({target:"Array",proto:!0,name:"groupToMap",forced:!sFe("groupByToMap")},{groupByToMap:cFe});lFe("groupByToMap");var fFe=G(),pFe=wt(),hFe=OT();fFe({target:"Array",proto:!0},{groupToMap:hFe});pFe("groupToMap");var dFe=G(),vFe=_s(),a9=Object.isFrozen,u9=function(e,r){if(!a9||!vFe(e)||!a9(e))return!1;for(var n=0,i=e.length,a;n<i;)if(a=e[n++],!(typeof a=="string"||r&&typeof a=="undefined"))return!1;return i!==0};dFe({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!u9(e,!0))return!1;var r=e.raw;return r.length===e.length&&u9(r,!1)}});var yFe=xe(),mFe=wt(),gFe=$e(),bFe=ze(),wFe=Ko();yFe&&(wFe(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=gFe(this),r=bFe(e);return r==0?0:r-1}}),mFe("lastIndex"));var OFe=xe(),SFe=wt(),s9=$e(),l9=ze(),_Fe=Ko();OFe&&(_Fe(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=s9(this),r=l9(e);return r==0?void 0:e[r-1]},set:function(e){var r=s9(this),n=l9(r);return r[n==0?0:n-1]=e}}),SFe("lastItem"));var EFe=G(),TFe=ST(),AFe=zt(),xFe=wt(),RFe=Array;EFe({target:"Array",proto:!0},{toReversed:function(){return TFe(AFe(this),RFe)}});xFe("toReversed");var IFe=G(),kFe=ce(),jFe=ge(),qFe=zt(),FFe=ef(),LFe=mT(),CFe=wt(),NFe=Array,DFe=kFe(LFe("Array").sort);IFe({target:"Array",proto:!0},{toSorted:function(e){e!==void 0&&jFe(e);var r=qFe(this),n=FFe(NFe,r);return DFe(n,e)}});CFe("toSorted");var MFe=G(),UFe=wt(),BFe=Is(),GFe=ze(),$Fe=Ai(),zFe=zt(),HFe=Pt(),WFe=Array,VFe=Math.max,KFe=Math.min;MFe({target:"Array",proto:!0},{toSpliced:function(e,r){var n=zFe(this),i=GFe(n),a=$Fe(e,i),l=arguments.length,c=0,f,d,y,m;for(l===0?f=d=0:l===1?(f=0,d=i-a):(f=l-2,d=KFe(VFe(HFe(r),0),i-a)),y=BFe(i+f-d),m=WFe(y);c<a;c++)m[c]=n[c];for(;c<a+f;c++)m[c]=arguments[c-a+2];for(;c<y;c++)m[c]=n[c+d-f];return m}});UFe("toSpliced");var iLe=G(),oLe=wt(),aLe=Xb();iLe({target:"Array",proto:!0,forced:!0},{uniqueBy:aLe});oLe("uniqueBy");var cLe=G(),fLe=PT(),pLe=zt(),hLe=Array;cLe({target:"Array",proto:!0},{with:function(e,r){return fLe(pLe(this),hLe,e,r)}});var dLe=G(),vLe=mn(),v9=rr(),y9=Ue(),yLe=_e(),zs=Xh(),m9=gt(),d9=yLe("toStringTag"),ET=function(){vLe(this,zs)};ET.prototype=zs;y9(zs,d9)||v9(zs,d9,"AsyncIterator");(m9||!y9(zs,"constructor")||zs.constructor===Object)&&v9(zs,"constructor",ET);dLe({global:!0,constructor:!0,forced:m9},{AsyncIterator:ET});var qLe=G(),FLe=TT();qLe({target:"AsyncIterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:FLe});var CLe=G(),NLe=fe(),R9=ie(),DLe=Ot(),MLe=Zh(),ULe=Jc(),BLe=fu(),GLe=BLe(function(t){var e=this;return new t(function(r,n){var i=function(c){e.done=!0,n(c)},a=function l(){try{t.resolve(R9(NLe(e.next,e.iterator))).then(function(c){try{R9(c).done?(e.done=!0,r({done:!0,value:void 0})):e.remaining?(e.remaining--,l()):r({done:!1,value:c.value})}catch(f){i(f)}},i)}catch(c){i(c)}};a()})});CLe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{drop:function(e){return new GLe(DLe(this),{remaining:ULe(MLe(+e))})}});var $Le=G(),zLe=$s().every;$Le({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{every:function(e){return zLe(this,e)}});var HLe=G(),WLe=fe(),VLe=ge(),I9=ie(),KLe=Ot(),YLe=fu(),XLe=af(),QLe=YLe(function(t){var e=this,r=e.iterator,n=e.filterer;return new t(function(i,a){var l=function(y){e.done=!0,a(y)},c=function(y){XLe(r,l,y,l)},f=function d(){try{t.resolve(I9(WLe(e.next,r))).then(function(y){try{if(I9(y).done)e.done=!0,i({done:!0,value:void 0});else{var m=y.value;try{t.resolve(n(m)).then(function(g){g?i({done:!1,value:m}):d()},c)}catch(g){c(g)}}}catch(g){l(g)}},l)}catch(y){l(y)}};f()})});HLe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{filter:function(e){return new QLe(KLe(this),{filterer:VLe(e)})}});var JLe=G(),ZLe=$s().find;JLe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{find:function(e){return ZLe(this,e)}});var eCe=G(),k9=fe(),j9=ge(),Qb=ie(),tCe=Ot(),rCe=fu(),nCe=Wb(),iCe=af(),oCe=rCe(function(t){var e=this,r=e.iterator,n=e.mapper,i;return new t(function(a,l){var c=function(g){e.done=!0,l(g)},f=function(g){iCe(r,c,g,c)},d=function(){try{t.resolve(Qb(k9(e.next,r))).then(function(g){try{if(Qb(g).done)e.done=!0,a({done:!0,value:void 0});else{var w=g.value;try{t.resolve(n(w)).then(function(P){try{e.innerIterator=i=nCe(P),e.innerNext=j9(i.next),y()}catch(E){f(E)}},f)}catch(P){f(P)}}}catch(P){c(P)}},c)}catch(g){c(g)}},y=function(){if(i=e.innerIterator)try{t.resolve(Qb(k9(e.innerNext,i))).then(function(g){try{Qb(g).done?(e.innerIterator=e.innerNext=null,d()):a({done:!1,value:g.value})}catch(w){f(w)}},f)}catch(g){f(g)}else d()};y()})});eCe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{flatMap:function(e){return new oCe(tCe(this),{mapper:j9(e),innerIterator:null,innerNext:null})}});var aCe=G(),uCe=$s().forEach;aCe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{forEach:function(e){return uCe(this,e)}});var cCe=G(),fCe=$e(),pCe=Wr(),hCe=Xh(),dCe=Wb(),vCe=oi(),yCe=Ot(),mCe=uo(),gCe=tr(),bCe=_e(),wCe=Qh(),OCe=AT(),SCe=bCe("asyncIterator");cCe({target:"AsyncIterator",stat:!0,forced:!0},{from:function(e){var r=fCe(e),n=gCe(r,SCe),i;return n&&(i=dCe(r,n),pCe(hCe,i))?i:(i===void 0&&(n=mCe(r),n&&(i=new wCe(vCe(r,n)))),new OCe(yCe(i!==void 0?i:r)))}});var _Ce=G(),PCe=TT();_Ce({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{indexed:PCe});var ECe=G(),TCe=fe(),ACe=ge(),F9=ie(),xCe=Ot(),RCe=fu(),ICe=af(),kCe=RCe(function(t){var e=this,r=e.iterator,n=e.mapper;return new t(function(i,a){var l=function(d){e.done=!0,a(d)},c=function(d){ICe(r,l,d,l)};t.resolve(F9(TCe(e.next,r))).then(function(f){try{if(F9(f).done)e.done=!0,i({done:!0,value:void 0});else{var d=f.value;try{t.resolve(n(d)).then(function(y){i({done:!1,value:y})},c)}catch(y){c(y)}}}catch(y){l(y)}},l)})});ECe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{map:function(e){return new kCe(xCe(this),{mapper:ACe(e)})}});var jCe=G(),qCe=fe(),FCe=ge(),L9=ie(),LCe=Oe(),CCe=Ot(),NCe=af(),xT=LCe("Promise"),DCe=TypeError;jCe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{reduce:function(e){var r=CCe(this),n=r.iterator,i=r.next,a=arguments.length<2,l=a?void 0:arguments[1];return FCe(e),new xT(function(c,f){var d=function(g){NCe(n,f,g,f)},y=function m(){try{xT.resolve(L9(qCe(i,n))).then(function(g){try{if(L9(g).done)a?f(DCe("Reduce of empty iterator with no initial value")):c(l);else{var w=g.value;if(a)a=!1,l=w,m();else try{xT.resolve(e(l,w)).then(function(P){l=P,m()},d)}catch(P){d(P)}}}catch(P){f(P)}},f)}catch(g){f(g)}};y()})}});var MCe=G(),UCe=$s().some;MCe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{some:function(e){return UCe(this,e)}});var BCe=G(),C9=fe(),GCe=ie(),$Ce=Ot(),zCe=Zh(),HCe=Jc(),WCe=fu(),VCe=WCe(function(t){var e=this,r=e.iterator,n;if(!e.remaining--){var i={done:!0,value:void 0};return e.done=!0,n=r.return,n!==void 0?t.resolve(C9(n,r,void 0)).then(function(){return i}):i}return t.resolve(C9(e.next,r)).then(function(a){return GCe(a).done?(e.done=!0,{done:!0,value:void 0}):{done:!1,value:a.value}}).then(null,function(a){throw e.done=!0,a})});BCe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{take:function(e){return new VCe($Ce(this),{remaining:HCe(zCe(+e))})}});var KCe=G(),YCe=$s().toArray;KCe({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{toArray:function(){return YCe(this,void 0,[])}});var eNe=G(),tNe=kT();typeof BigInt=="function"&&eNe({target:"BigInt",stat:!0,forced:!0},{range:function(e,r,n){return new tNe(e,r,n,"bigint",BigInt(0),BigInt(1))}});var uNe=G(),sNe=yn(),lNe=jT(),cNe=Oe(),W9=Ht(),fNe=Object,pNe=function(){var e=cNe("Object","freeze");return e?e(W9(null)):W9(null)};uNe({global:!0,forced:!0},{compositeKey:function(){return sNe(lNe,fNe,arguments).get("object",pNe)}});var hNe=G(),dNe=jT(),V9=Oe(),vNe=yn();hNe({global:!0,forced:!0},{compositeSymbol:function(){return arguments.length==1&&typeof arguments[0]=="string"?V9("Symbol").for(arguments[0]):vNe(dNe,null,arguments).get("symbol",V9("Symbol"))}});var yNe=G(),mNe=ce(),gNe=ke(),bNe=gc(),wNe=Ue(),ONe=xe(),SNe=Object.getOwnPropertyDescriptor,K9=/^\s*class\b/,_Ne=mNe(K9.exec),PNe=function(e){try{if(!ONe||!_Ne(K9,bNe(e)))return!1}catch(n){}var r=SNe(e,"prototype");return!!r&&wNe(r,"writable")&&!r.writable};yNe({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(e){return gNe(e)&&!PNe(e)}});var ENe=G(),TNe=Ri();ENe({target:"Function",stat:!0,forced:!0},{isConstructor:TNe});var ANe=G(),xNe=ce(),RNe=ge();ANe({target:"Function",proto:!0,forced:!0},{unThis:function(){return xNe(RNe(this))}});var INe=G(),kNe=be(),jNe=mn(),qNe=ke(),X9=rr(),FNe=le(),Q9=Ue(),LNe=_e(),pu=Ac().IteratorPrototype,CNe=gt(),Y9=LNe("toStringTag"),qT=kNe.Iterator,J9=CNe||!qNe(qT)||qT.prototype!==pu||!FNe(function(){qT({})}),FT=function(){jNe(this,pu)};Q9(pu,Y9)||X9(pu,Y9,"Iterator");(J9||!Q9(pu,"constructor")||pu.constructor===Object)&&X9(pu,"constructor",FT);FT.prototype=pu;INe({global:!0,constructor:!0,forced:J9},{Iterator:FT});var eDe=G(),tDe=LT();eDe({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:tDe});var rDe=G(),aG=fe(),uG=ie(),nDe=Ot(),iDe=Zh(),oDe=Jc(),aDe=hu(),uDe=aDe(function(){for(var t=this.iterator,e=this.next,r,n;this.remaining;)if(this.remaining--,r=uG(aG(e,t)),n=this.done=!!r.done,n)return;if(r=uG(aG(e,t)),n=this.done=!!r.done,!n)return r.value});rDe({target:"Iterator",proto:!0,real:!0,forced:!0},{drop:function(e){return new uDe(nDe(this),{remaining:oDe(iDe(+e))})}});var sDe=G(),lDe=Te(),cDe=ge(),fDe=Ot();sDe({target:"Iterator",proto:!0,real:!0,forced:!0},{every:function(e){var r=fDe(this);return cDe(e),!lDe(r,function(n,i){if(!e(n))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var pDe=G(),hDe=fe(),dDe=ge(),vDe=ie(),yDe=Ot(),mDe=hu(),gDe=xg(),bDe=mDe(function(){for(var t=this.iterator,e=this.filterer,r=this.next,n,i,a;;){if(n=vDe(hDe(r,t)),i=this.done=!!n.done,i)return;if(a=n.value,gDe(t,e,a))return a}});pDe({target:"Iterator",proto:!0,real:!0,forced:!0},{filter:function(e){return new bDe(yDe(this),{filterer:dDe(e)})}});var wDe=G(),ODe=Te(),SDe=ge(),_De=Ot();wDe({target:"Iterator",proto:!0,real:!0,forced:!0},{find:function(e){var r=_De(this);return SDe(e),ODe(r,function(n,i){if(e(n))return i(n)},{IS_RECORD:!0,INTERRUPTED:!0}).result}});var PDe=G(),CT=fe(),lG=ge(),NT=ie(),EDe=Ot(),TDe=uo(),ADe=hu(),sG=Rs(),xDe=TypeError,RDe=ADe(function(){for(var t=this.iterator,e=this.mapper,r,n,i,a;;){if(a=this.innerIterator)try{if(r=NT(CT(this.innerNext,a)),!r.done)return r.value;this.innerIterator=this.innerNext=null}catch(l){sG(t,"throw",l)}if(r=NT(CT(this.next,t)),this.done=!!r.done)return;try{if(n=e(r.value),i=TDe(n),!i)throw xDe(".flatMap callback should return an iterable object");this.innerIterator=a=NT(CT(i,n)),this.innerNext=lG(a.next)}catch(l){sG(t,"throw",l)}}});PDe({target:"Iterator",proto:!0,real:!0,forced:!0},{flatMap:function(e){return new RDe(EDe(this),{mapper:lG(e),innerIterator:null,innerNext:null})}});var IDe=G(),kDe=Te(),jDe=Ot();IDe({target:"Iterator",proto:!0,real:!0,forced:!0},{forEach:function(e){kDe(jDe(this),e,{IS_RECORD:!0})}});var qDe=G(),FDe=fe(),LDe=$e(),CDe=Wr(),NDe=Ac().IteratorPrototype,DDe=hu(),MDe=oi(),UDe=Ot(),BDe=uo(),GDe=DDe(function(){return FDe(this.next,this.iterator)},!0);qDe({target:"Iterator",stat:!0,forced:!0},{from:function(e){var r=LDe(e),n=BDe(r),i;if(n){if(i=MDe(r,n),CDe(NDe,i))return i}else i=r;return new GDe(UDe(i))}});var $De=G(),zDe=LT();$De({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:zDe});var HDe=G(),WDe=fe(),VDe=ge(),KDe=ie(),YDe=Ot(),XDe=hu(),QDe=xg(),JDe=XDe(function(){var t=this.iterator,e=KDe(WDe(this.next,t)),r=this.done=!!e.done;if(!r)return QDe(t,this.mapper,e.value)});HDe({target:"Iterator",proto:!0,real:!0,forced:!0},{map:function(e){return new JDe(YDe(this),{mapper:VDe(e)})}});var ZDe=G(),eMe=Te(),tMe=ge(),rMe=Ot(),nMe=TypeError;ZDe({target:"Iterator",proto:!0,real:!0,forced:!0},{reduce:function(e){var r=rMe(this);tMe(e);var n=arguments.length<2,i=n?void 0:arguments[1];if(eMe(r,function(a){n?(n=!1,i=a):i=e(i,a)},{IS_RECORD:!0}),n)throw nMe("Reduce of empty iterator with no initial value");return i}});var iMe=G(),oMe=Te(),aMe=ge(),uMe=Ot();iMe({target:"Iterator",proto:!0,real:!0,forced:!0},{some:function(e){var r=uMe(this);return aMe(e),oMe(r,function(n,i){if(e(n))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var sMe=G(),lMe=fe(),cMe=ie(),fMe=Ot(),pMe=Zh(),hMe=Jc(),dMe=hu(),vMe=Rs(),yMe=dMe(function(){var t=this.iterator;if(!this.remaining--)return this.done=!0,vMe(t,"normal",void 0);var e=cMe(lMe(this.next,t)),r=this.done=!!e.done;if(!r)return e.value});sMe({target:"Iterator",proto:!0,real:!0,forced:!0},{take:function(e){return new yMe(fMe(this),{remaining:hMe(pMe(+e))})}});var mMe=G(),gMe=Te(),bMe=Ot(),wMe=[].push;mMe({target:"Iterator",proto:!0,real:!0,forced:!0},{toArray:function(){var e=[];return gMe(bMe(this),wMe,{that:e,IS_RECORD:!0}),e}});var OMe=G(),SMe=Qh(),_Me=AT(),PMe=Ot();OMe({target:"Iterator",proto:!0,real:!0,forced:!0},{toAsync:function(){return new _Me(PMe(new SMe(this)))}});var xMe=G(),RMe=rd();xMe({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:RMe});var kMe=G(),jMe=MT();kMe({target:"Map",proto:!0,real:!0,forced:!0},{emplace:jMe});var FMe=G(),LMe=ie(),CMe=ut(),NMe=ji(),DMe=Te();FMe({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var r=LMe(this),n=NMe(r),i=CMe(e,arguments.length>1?arguments[1]:void 0);return!DMe(n,function(a,l,c){if(!i(l,a,r))return c()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var MMe=G(),UMe=Oe(),BMe=ut(),GMe=fe(),$Me=ge(),zMe=ie(),HMe=Vr(),WMe=ji(),VMe=Te();MMe({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var r=zMe(this),n=WMe(r),i=BMe(e,arguments.length>1?arguments[1]:void 0),a=new(HMe(r,UMe("Map"))),l=$Me(a.set);return VMe(n,function(c,f){i(f,c,r)&&GMe(l,a,c,f)},{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}});var KMe=G(),YMe=ie(),XMe=ut(),QMe=ji(),JMe=Te();KMe({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var r=YMe(this),n=QMe(r),i=XMe(e,arguments.length>1?arguments[1]:void 0);return JMe(n,function(a,l,c){if(i(l,a,r))return c(l)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var ZMe=G(),e5e=ie(),t5e=ut(),r5e=ji(),n5e=Te();ZMe({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var r=e5e(this),n=r5e(r),i=t5e(e,arguments.length>1?arguments[1]:void 0);return n5e(n,function(a,l,c){if(i(l,a,r))return c(a)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var s5e=G(),l5e=nd();s5e({target:"Map",stat:!0,forced:!0},{from:l5e});var c5e=G(),UT=fe(),f5e=ce(),tw=ge(),p5e=oi(),h5e=Te(),d5e=f5e([].push);c5e({target:"Map",stat:!0,forced:!0},{groupBy:function(e,r){tw(r);var n=p5e(e),i=new this,a=tw(i.has),l=tw(i.get),c=tw(i.set);return h5e(n,function(f){var d=r(f);UT(a,i,d)?d5e(UT(l,i,d),f):UT(c,i,d,[f])},{IS_ITERATOR:!0}),i}});var v5e=G(),y5e=ie(),m5e=ji(),g5e=mG(),b5e=Te();v5e({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return b5e(m5e(y5e(this)),function(r,n,i){if(g5e(n,e))return i()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var w5e=G(),O5e=fe(),S5e=Te(),gG=ge();w5e({target:"Map",stat:!0,forced:!0},{keyBy:function(e,r){var n=new this;gG(r);var i=gG(n.set);return S5e(e,function(a){O5e(i,n,r(a),a)}),n}});var _5e=G(),P5e=ie(),E5e=ji(),T5e=Te();_5e({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){return T5e(E5e(P5e(this)),function(r,n,i){if(n===e)return i(r)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var A5e=G(),x5e=Oe(),R5e=ut(),I5e=fe(),k5e=ge(),j5e=ie(),q5e=Vr(),F5e=ji(),L5e=Te();A5e({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var r=j5e(this),n=F5e(r),i=R5e(e,arguments.length>1?arguments[1]:void 0),a=new(q5e(r,x5e("Map"))),l=k5e(a.set);return L5e(n,function(c,f){I5e(l,a,i(f,c,r),f)},{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}});var C5e=G(),N5e=Oe(),D5e=ut(),M5e=fe(),U5e=ge(),B5e=ie(),G5e=Vr(),$5e=ji(),z5e=Te();C5e({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var r=B5e(this),n=$5e(r),i=D5e(e,arguments.length>1?arguments[1]:void 0),a=new(G5e(r,N5e("Map"))),l=U5e(a.set);return z5e(n,function(c,f){M5e(l,a,c,i(f,c,r))},{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}});var H5e=G(),W5e=ge(),V5e=ie(),K5e=Te();H5e({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var r=V5e(this),n=W5e(r.set),i=arguments.length,a=0;a<i;)K5e(arguments[a++],n,{that:r,AS_ENTRIES:!0});return r}});var X5e=G(),Q5e=id();X5e({target:"Map",stat:!0,forced:!0},{of:Q5e});var J5e=G(),Z5e=ie(),e3e=ge(),t3e=ji(),r3e=Te(),n3e=TypeError;J5e({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var r=Z5e(this),n=t3e(r),i=arguments.length<2,a=i?void 0:arguments[1];if(e3e(e),r3e(n,function(l,c){i?(i=!1,a=c):a=e(a,c,l,r)},{AS_ENTRIES:!0,IS_ITERATOR:!0}),i)throw n3e("Reduce of empty map with no initial value");return a}});var i3e=G(),o3e=ie(),a3e=ut(),u3e=ji(),s3e=Te();i3e({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var r=o3e(this),n=u3e(r),i=a3e(e,arguments.length>1?arguments[1]:void 0);return s3e(n,function(a,l,c){if(i(l,a,r))return c()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var l3e=G(),BT=fe(),c3e=ie(),od=ge(),f3e=TypeError;l3e({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,r){var n=c3e(this),i=od(n.get),a=od(n.has),l=od(n.set),c=arguments.length;od(r);var f=BT(a,n,e);if(!f&&c<3)throw f3e("Updating absent value");var d=f?BT(i,n,e):od(c>2?arguments[2]:void 0)(e,n);return BT(l,n,e,r(d,e,n)),n}});var d3e=G(),v3e=iw();d3e({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:v3e});var y3e=G(),m3e=iw();y3e({target:"Map",proto:!0,real:!0,forced:!0},{upsert:m3e});var g3e=G(),b3e=Math.min,w3e=Math.max;g3e({target:"Math",stat:!0,forced:!0},{clamp:function(e,r,n){return b3e(n,w3e(r,e))}});var O3e=G();O3e({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180});var S3e=G(),_3e=180/Math.PI;S3e({target:"Math",stat:!0,forced:!0},{degrees:function(e){return e*_3e}});var P3e=G(),E3e=$T(),T3e=W_();P3e({target:"Math",stat:!0,forced:!0},{fscale:function(e,r,n,i,a){return T3e(E3e(e,r,n,i,a))}});var A3e=G();A3e({target:"Math",stat:!0,forced:!0},{iaddh:function(e,r,n,i){var a=e>>>0,l=r>>>0,c=n>>>0;return l+(i>>>0)+((a&c|(a|c)&~(a+c>>>0))>>>31)|0}});var x3e=G();x3e({target:"Math",stat:!0,forced:!0},{imulh:function(e,r){var n=65535,i=+e,a=+r,l=i&n,c=a&n,f=i>>16,d=a>>16,y=(f*c>>>0)+(l*c>>>16);return f*d+(y>>16)+((l*d>>>0)+(y&n)>>16)}});var R3e=G();R3e({target:"Math",stat:!0,forced:!0},{isubh:function(e,r,n,i){var a=e>>>0,l=r>>>0,c=n>>>0;return l-(i>>>0)-((~a&c|~(a^c)&a-c>>>0)>>>31)|0}});var I3e=G();I3e({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI});var k3e=G(),j3e=Math.PI/180;k3e({target:"Math",stat:!0,forced:!0},{radians:function(e){return e*j3e}});var q3e=G(),F3e=$T();q3e({target:"Math",stat:!0,forced:!0},{scale:F3e});var L3e=G(),C3e=ie(),N3e=Z_(),D3e=Xa(),SG=at(),_G="Seeded Random",PG=_G+" Generator",M3e='Math.seededPRNG() argument should have a "seed" field with a finite value.',U3e=SG.set,B3e=SG.getterFor(PG),G3e=TypeError,$3e=D3e(function(e){U3e(this,{type:PG,seed:e%2147483647})},_G,function(){var e=B3e(this),r=e.seed=(e.seed*1103515245+12345)%2147483647;return{value:(r&1073741823)/1073741823,done:!1}});L3e({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var r=C3e(e).seed;if(!N3e(r))throw G3e(M3e);return new $3e(r)}});var z3e=G();z3e({target:"Math",stat:!0,forced:!0},{signbit:function(e){var r=+e;return r==r&&r==0?1/r==-1/0:r<0}});var H3e=G();H3e({target:"Math",stat:!0,forced:!0},{umulh:function(e,r){var n=65535,i=+e,a=+r,l=i&n,c=a&n,f=i>>>16,d=a>>>16,y=(f*c>>>0)+(l*c>>>16);return f*d+(y>>>16)+((l*d>>>0)+(y&n)>>>16)}});var W3e=G(),aw=ce(),V3e=Pt(),K3e=eP(),ow="Invalid number representation",Y3e="Invalid radix",X3e=RangeError,zT=SyntaxError,Q3e=TypeError,EG=/^[\da-z]+$/,J3e=aw("".charAt),Z3e=aw(EG.exec),eUe=aw(1 .toString),tUe=aw("".slice);W3e({target:"Number",stat:!0,forced:!0},{fromString:function(e,r){var n=1,i,a;if(typeof e!="string")throw Q3e(ow);if(!e.length||J3e(e,0)=="-"&&(n=-1,e=tUe(e,1),!e.length))throw zT(ow);if(i=r===void 0?10:V3e(r),i<2||i>36)throw X3e(Y3e);if(!Z3e(EG,e)||eUe(a=K3e(e,i),i)!==e)throw zT(ow);return n*a}});var rUe=G(),nUe=kT();rUe({target:"Number",stat:!0,forced:!0},{range:function(e,r,n){return new nUe(e,r,n,"number",0,1)}});var cUe=G(),fUe=uw();cUe({target:"Object",stat:!0,forced:!0},{iterateEntries:function(e){return new fUe(e,"entries")}});var pUe=G(),hUe=uw();pUe({target:"Object",stat:!0,forced:!0},{iterateKeys:function(e){return new hUe(e,"keys")}});var dUe=G(),vUe=uw();dUe({target:"Object",stat:!0,forced:!0},{iterateValues:function(e){return new vUe(e,"values")}});UG();GG();zG();var $Ue=G(),zUe=Vo(),HUe=ou();$Ue({target:"Promise",stat:!0,forced:!0},{try:function(e){var r=zUe.f(this),n=HUe(e);return(n.error?r.reject:r.resolve)(n.value),r.promise}});var t8e=G(),YG=vo(),r8e=ie(),n8e=YG.toKey,i8e=YG.set;t8e({target:"Reflect",stat:!0},{defineMetadata:function(e,r,n){var i=arguments.length<4?void 0:n8e(arguments[3]);i8e(e,r,r8e(n),i)}});var o8e=G(),eA=vo(),a8e=ie(),u8e=eA.toKey,s8e=eA.getMap,XG=eA.store;o8e({target:"Reflect",stat:!0},{deleteMetadata:function(e,r){var n=arguments.length<3?void 0:u8e(arguments[2]),i=s8e(a8e(r),n,!1);if(i===void 0||!i.delete(e))return!1;if(i.size)return!0;var a=XG.get(r);return a.delete(n),!!a.size||XG.delete(r)}});var l8e=G(),tA=vo(),c8e=ie(),f8e=Pr(),p8e=tA.has,h8e=tA.get,d8e=tA.toKey,v8e=function t(e,r,n){var i=p8e(e,r,n);if(i)return h8e(e,r,n);var a=f8e(r);return a!==null?t(e,a,n):void 0};l8e({target:"Reflect",stat:!0},{getMetadata:function(e,r){var n=arguments.length<3?void 0:d8e(arguments[2]);return v8e(e,c8e(r),n)}});var y8e=G(),QG=ce(),JG=vo(),m8e=ie(),g8e=Pr(),b8e=Xb(),w8e=QG(b8e),O8e=QG([].concat),S8e=JG.keys,_8e=JG.toKey,P8e=function t(e,r){var n=S8e(e,r),i=g8e(e);if(i===null)return n;var a=t(i,r);return a.length?n.length?w8e(O8e(n,a)):a:n};y8e({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var r=arguments.length<2?void 0:_8e(arguments[1]);return P8e(m8e(e),r)}});var E8e=G(),ZG=vo(),T8e=ie(),A8e=ZG.get,x8e=ZG.toKey;E8e({target:"Reflect",stat:!0},{getOwnMetadata:function(e,r){var n=arguments.length<3?void 0:x8e(arguments[2]);return A8e(e,T8e(r),n)}});var R8e=G(),e$=vo(),I8e=ie(),k8e=e$.keys,j8e=e$.toKey;R8e({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(e){var r=arguments.length<2?void 0:j8e(arguments[1]);return k8e(I8e(e),r)}});var q8e=G(),t$=vo(),F8e=ie(),L8e=Pr(),C8e=t$.has,N8e=t$.toKey,D8e=function t(e,r,n){var i=C8e(e,r,n);if(i)return!0;var a=L8e(r);return a!==null?t(e,a,n):!1};q8e({target:"Reflect",stat:!0},{hasMetadata:function(e,r){var n=arguments.length<3?void 0:N8e(arguments[2]);return D8e(e,F8e(r),n)}});var M8e=G(),r$=vo(),U8e=ie(),B8e=r$.has,G8e=r$.toKey;M8e({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,r){var n=arguments.length<3?void 0:G8e(arguments[2]);return B8e(e,U8e(r),n)}});var $8e=G(),n$=vo(),z8e=ie(),H8e=n$.toKey,W8e=n$.set;$8e({target:"Reflect",stat:!0},{metadata:function(e,r){return function(i,a){W8e(e,r,z8e(i),H8e(a))}}});var X8e=G(),Q8e=rA();X8e({target:"Set",proto:!0,real:!0,forced:!0},{addAll:Q8e});var J8e=G(),Z8e=rd();J8e({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:Z8e});var e4e=G(),t4e=Oe(),r4e=fe(),n4e=ge(),i4e=ie(),o4e=Vr(),a4e=Te();e4e({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){var r=i4e(this),n=new(o4e(r,t4e("Set")))(r),i=n4e(n.delete);return a4e(e,function(a){r4e(i,n,a)}),n}});var s4e=G(),l4e=ie(),c4e=ut(),f4e=du(),p4e=Te();s4e({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var r=l4e(this),n=f4e(r),i=c4e(e,arguments.length>1?arguments[1]:void 0);return!p4e(n,function(a,l){if(!i(a,a,r))return l()},{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var h4e=G(),d4e=Oe(),v4e=fe(),y4e=ge(),m4e=ie(),g4e=ut(),b4e=Vr(),w4e=du(),O4e=Te();h4e({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var r=m4e(this),n=w4e(r),i=g4e(e,arguments.length>1?arguments[1]:void 0),a=new(b4e(r,d4e("Set"))),l=y4e(a.add);return O4e(n,function(c){i(c,c,r)&&v4e(l,a,c)},{IS_ITERATOR:!0}),a}});var S4e=G(),_4e=ie(),P4e=ut(),E4e=du(),T4e=Te();S4e({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var r=_4e(this),n=E4e(r),i=P4e(e,arguments.length>1?arguments[1]:void 0);return T4e(n,function(a,l){if(i(a,a,r))return l(a)},{IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var A4e=G(),x4e=nd();A4e({target:"Set",stat:!0,forced:!0},{from:x4e});var R4e=G(),I4e=Oe(),a$=fe(),u$=ge(),k4e=ie(),j4e=Vr(),q4e=Te();R4e({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){var r=k4e(this),n=new(j4e(r,I4e("Set"))),i=u$(r.has),a=u$(n.add);return q4e(e,function(l){a$(i,r,l)&&a$(a,n,l)}),n}});var F4e=G(),L4e=fe(),C4e=ge(),N4e=ie(),D4e=Te();F4e({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){var r=N4e(this),n=C4e(r.has);return!D4e(e,function(i,a){if(L4e(n,r,i)===!0)return a()},{INTERRUPTED:!0}).stopped}});var M4e=G(),U4e=Oe(),B4e=fe(),G4e=ge(),$4e=ke(),z4e=ie(),H4e=oi(),W4e=Te();M4e({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){var r=H4e(this),n=z4e(e),i=n.has;return $4e(i)||(n=new(U4e("Set"))(e),i=G4e(n.has)),!W4e(r,function(a,l){if(B4e(i,n,a)===!1)return l()},{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var V4e=G(),K4e=fe(),Y4e=ge(),X4e=ie(),Q4e=Te();V4e({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){var r=X4e(this),n=Y4e(r.has);return!Q4e(e,function(i,a){if(K4e(n,r,i)===!1)return a()},{INTERRUPTED:!0}).stopped}});var J4e=G(),Z4e=ce(),eBe=ie(),tBe=He(),rBe=du(),nBe=Te(),iBe=Z4e([].join),oBe=[].push;J4e({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var r=eBe(this),n=rBe(r),i=e===void 0?",":tBe(e),a=[];return nBe(n,oBe,{that:a,IS_ITERATOR:!0}),iBe(a,i)}});var aBe=G(),uBe=Oe(),sBe=ut(),lBe=fe(),cBe=ge(),fBe=ie(),pBe=Vr(),hBe=du(),dBe=Te();aBe({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var r=fBe(this),n=hBe(r),i=sBe(e,arguments.length>1?arguments[1]:void 0),a=new(pBe(r,uBe("Set"))),l=cBe(a.add);return dBe(n,function(c){lBe(l,a,i(c,c,r))},{IS_ITERATOR:!0}),a}});var vBe=G(),yBe=id();vBe({target:"Set",stat:!0,forced:!0},{of:yBe});var mBe=G(),gBe=ge(),bBe=ie(),wBe=du(),OBe=Te(),SBe=TypeError;mBe({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var r=bBe(this),n=wBe(r),i=arguments.length<2,a=i?void 0:arguments[1];if(gBe(e),OBe(n,function(l){i?(i=!1,a=l):a=e(a,l,l,r)},{IS_ITERATOR:!0}),i)throw SBe("Reduce of empty set with no initial value");return a}});var _Be=G(),PBe=ie(),EBe=ut(),TBe=du(),ABe=Te();_Be({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var r=PBe(this),n=TBe(r),i=EBe(e,arguments.length>1?arguments[1]:void 0);return ABe(n,function(a,l){if(i(a,a,r))return l()},{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var xBe=G(),RBe=Oe(),s$=fe(),l$=ge(),IBe=ie(),kBe=Vr(),jBe=Te();xBe({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){var r=IBe(this),n=new(kBe(r,RBe("Set")))(r),i=l$(n.delete),a=l$(n.add);return jBe(e,function(l){s$(i,n,l)||s$(a,n,l)}),n}});var qBe=G(),FBe=Oe(),LBe=ge(),CBe=ie(),NBe=Vr(),DBe=Te();qBe({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){var r=CBe(this),n=new(NBe(r,FBe("Set")))(r);return DBe(e,LBe(n.add),{that:n}),n}});var MBe=G(),UBe=Bs().charAt,BBe=$t(),GBe=Pt(),$Be=He();MBe({target:"String",proto:!0,forced:!0},{at:function(e){var r=$Be(BBe(this)),n=r.length,i=GBe(e),a=i>=0?i:n+i;return a<0||a>=n?void 0:UBe(r,a)}});var zBe=G(),p$=ce(),HBe=zt(),c$=He(),WBe=ze(),VBe=TypeError,h$=Array.prototype,f$=p$(h$.push),KBe=p$(h$.join);zBe({target:"String",stat:!0,forced:!0},{cooked:function(e){for(var r=HBe(e),n=WBe(r),i=arguments.length,a=[],l=0;n>l;){var c=r[l++];if(c===void 0)throw VBe("Incorrect template");if(f$(a,c$(c)),l===n)return KBe(a,"");l<i&&f$(a,c$(arguments[l]))}}});var YBe=G(),XBe=Xa(),QBe=$t(),JBe=He(),d$=at(),v$=Bs(),ZBe=v$.codeAt,e6e=v$.charAt,y$="String Iterator",t6e=d$.set,r6e=d$.getterFor(y$),n6e=XBe(function(e){t6e(this,{type:y$,string:e,index:0})},"String",function(){var e=r6e(this),r=e.string,n=e.index,i;return n>=r.length?{value:void 0,done:!0}:(i=e6e(r,n),e.index+=i.length,{value:{codePoint:ZBe(i,0),position:n},done:!1})});YBe({target:"String",proto:!0,forced:!0},{codePoints:function(){return new n6e(JBe(QBe(this)))}});var i6e=Et();i6e("asyncDispose");var o6e=Et();o6e("dispose");var a6e=Et();a6e("matcher");var u6e=Et();u6e("metadata");var s6e=Et();s6e("metadataKey");var l6e=Et();l6e("observable");var c6e=Et();c6e("patternMatch");var f6e=Et();f6e("replaceAll");var p6e=Oe(),h6e=Fc(),d6e=bT(),m$=Ie(),v6e=ef(),y6e=m$.aTypedArrayConstructor,m6e=m$.exportTypedArrayStaticMethod;m6e("fromAsync",function(e){var r=this,n=arguments.length,i=n>1?arguments[1]:void 0,a=n>2?arguments[2]:void 0;return new(p6e("Promise"))(function(l){h6e(r),l(d6e(e,i,a))}).then(function(l){return v6e(y6e(r),l)})},!0);var g$=Ie(),g6e=Wt().filterReject,b6e=Wh(),w6e=g$.aTypedArray,O6e=g$.exportTypedArrayMethod;O6e("filterOut",function(e){var r=g6e(w6e(this),e,arguments.length>1?arguments[1]:void 0);return b6e(this,r)},!0);var b$=Ie(),S6e=Wt().filterReject,_6e=Wh(),P6e=b$.aTypedArray,E6e=b$.exportTypedArrayMethod;E6e("filterReject",function(e){var r=S6e(P6e(this),e,arguments.length>1?arguments[1]:void 0);return _6e(this,r)},!0);var w$=Ie(),T6e=Vb(),A6e=tf(),x6e=w$.aTypedArray,R6e=w$.exportTypedArrayMethod;R6e("groupBy",function(e){var r=arguments.length>1?arguments[1]:void 0;return T6e(x6e(this),e,r,A6e)},!0);var I6e=ST(),nA=Ie(),k6e=nA.aTypedArray,j6e=nA.exportTypedArrayMethod,q6e=nA.getTypedArrayConstructor;j6e("toReversed",function(){return I6e(k6e(this),q6e(this))});var pw=Ie(),F6e=ce(),L6e=ge(),C6e=ef(),N6e=pw.aTypedArray,D6e=pw.getTypedArrayConstructor,M6e=pw.exportTypedArrayMethod,U6e=F6e(pw.TypedArrayPrototype.sort);M6e("toSorted",function(e){e!==void 0&&L6e(e);var r=N6e(this),n=C6e(D6e(r),r);return U6e(n,e)});var iA=Ie(),B6e=ze(),G6e=Ai(),$6e=Pt(),z6e=le(),H6e=iA.aTypedArray,W6e=iA.getTypedArrayConstructor,V6e=iA.exportTypedArrayMethod,K6e=Math.max,Y6e=Math.min,X6e=!z6e(function(){var t=new Int8Array([1]),e=t.toSpliced(1,0,{valueOf:function(){return t[0]=2,3}});return e[0]!==2||e[1]!==3});V6e("toSpliced",function(e,r){var n=H6e(this),i=W6e(n),a=B6e(n),l=G6e(e,a),c=arguments.length,f=0,d,y,m,g,w;if(c===0)d=y=0;else if(c===1)d=0,y=a-l;else if(y=Y6e(K6e($6e(r),0),a-l),d=c-2,d){m=new i(d);for(var P=2;P<c;P++)m[P-2]=arguments[P]}for(g=a+d-y,w=new i(g);f<l;f++)w[f]=n[f];for(;f<l+d;f++)w[f]=m[f-l];for(;f<g;f++)w[f]=n[f+y-d];return w},!X6e);var Q6e=ce(),O$=Ie(),J6e=Xb(),Z6e=Wh(),e7e=O$.aTypedArray,t7e=O$.exportTypedArrayMethod,r7e=Q6e(J6e);t7e("uniqueBy",function(e){return Z6e(this,r7e(e7e(this),e))},!0);var a7e=PT(),oA=Ie(),u7e=_$(),s7e=Pt(),l7e=XE(),c7e=oA.aTypedArray,f7e=oA.getTypedArrayConstructor,p7e=oA.exportTypedArrayMethod,h7e=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return t===8}}();p7e("with",function(e,r){var n=c7e(this),i=s7e(e),a=u7e(n)?l7e(r):+r;return a7e(n,f7e(n),i,a)},!h7e);var d7e=G(),v7e=rd();d7e({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:v7e});var y7e=G(),m7e=nd();y7e({target:"WeakMap",stat:!0,forced:!0},{from:m7e});var g7e=G(),b7e=id();g7e({target:"WeakMap",stat:!0,forced:!0},{of:b7e});var w7e=G(),O7e=MT();w7e({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:O7e});var S7e=G(),_7e=iw();S7e({target:"WeakMap",proto:!0,real:!0,forced:!0},{upsert:_7e});var P7e=G(),E7e=rA();P7e({target:"WeakSet",proto:!0,real:!0,forced:!0},{addAll:E7e});var T7e=G(),A7e=rd();T7e({target:"WeakSet",proto:!0,real:!0,forced:!0},{deleteAll:A7e});var x7e=G(),R7e=nd();x7e({target:"WeakSet",stat:!0,forced:!0},{from:R7e});var I7e=G(),k7e=id();I7e({target:"WeakSet",stat:!0,forced:!0},{of:k7e});var j7e=G(),I$=Oe(),sA=ce(),lA=le(),q7e=He(),F7e=Ue(),L7e=iu(),uA=aA().ctoi,k$=/[^\d+/a-z]/i,C7e=/[\t\n\f\r ]+/g,N7e=/[=]+$/,fd=I$("atob"),D7e=String.fromCharCode,M7e=sA("".charAt),A$=sA("".replace),U7e=sA(k$.exec),cA=lA(function(){return fd(" ")!==""}),fA=!lA(function(){fd("a")}),x$=!cA&&!fA&&!lA(function(){fd()}),R$=!cA&&!fA&&fd.length!==1;j7e({global:!0,enumerable:!0,forced:cA||fA||x$||R$},{atob:function(e){if(L7e(arguments.length,1),x$||R$)return fd(e);var r=A$(q7e(e),C7e,""),n="",i=0,a=0,l,c;if(r.length%4==0&&(r=A$(r,N7e,"")),r.length%4==1||U7e(k$,r))throw new(I$("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;l=M7e(r,i++);)F7e(uA,l)&&(c=a%4?c*64+uA[l]:uA[l],a++%4&&(n+=D7e(255&c>>(-2*a&6))));return n}});var B7e=G(),N$=Oe(),D$=ce(),M$=le(),j$=He(),G7e=iu(),$7e=aA().itoc,Ws=N$("btoa"),q$=D$("".charAt),z7e=D$("".charCodeAt),F$=!!Ws&&!M$(function(){Ws()}),L$=!!Ws&&M$(function(){return Ws(null)!=="bnVsbA=="}),C$=!!Ws&&Ws.length!==1;B7e({global:!0,enumerable:!0,forced:F$||L$||C$},{btoa:function(e){if(G7e(arguments.length,1),F$||L$||C$)return Ws(j$(e));for(var r=j$(e),n="",i=0,a=$7e,l,c;q$(r,i)||(a="=",i%1);){if(c=z7e(r,i+=3/4),c>255)throw new(N$("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");l=l<<8|c,n+=q$(a,63&l>>8-i%1*8)}return n}});var H$=be(),W$=pA(),Y7e=dA(),vA=z$(),X7e=rr(),V$=function(e){if(e&&e.forEach!==vA)try{X7e(e,"forEach",vA)}catch(r){e.forEach=vA}};for(hw in W$)W$[hw]&&V$(H$[hw]&&H$[hw].prototype);var hw;V$(Y7e);var K$=be(),X$=pA(),Q7e=dA(),pd=mh(),yA=rr(),Q$=_e(),mA=Q$("iterator"),Y$=Q$("toStringTag"),gA=pd.values,J$=function(e,r){if(e){if(e[mA]!==gA)try{yA(e,mA,gA)}catch(i){e[mA]=gA}if(e[Y$]||yA(e,Y$,r),X$[r]){for(var n in pd)if(e[n]!==pd[n])try{yA(e,n,pd[n])}catch(i){e[n]=pd[n]}}}};for(dw in X$)J$(K$[dw]&&K$[dw].prototype,dw);var dw;J$(Q7e,"DOMTokenList");var i9e=G(),o9e=ez(),gw=Oe(),EA=le(),a9e=Ht(),TA=In(),bw=it().f,u9e=bt(),yw=Ko(),mw=Ue(),s9e=mn(),l9e=ie(),uz=nz(),oz=Pc(),lf=bA(),c9e=fh(),sz=at(),AA=xe(),lz=gt(),cf="DOMException",PA="DATA_CLONE_ERR",Ow=gw("Error"),Qo=gw(cf)||function(){try{var t=gw("MessageChannel")||o9e("worker_threads").MessageChannel;new t().port1.postMessage(new WeakMap)}catch(e){if(e.name==PA&&e.code==25)return e.constructor}}(),f9e=Qo&&Qo.prototype,cz=Ow.prototype,p9e=sz.set,h9e=sz.getterFor(cf),d9e="stack"in Ow(cf),fz=function(e){return mw(lf,e)&&lf[e].m?lf[e].c:0},xA=function(){s9e(this,dd);var e=arguments.length,r=oz(e<1?void 0:arguments[0]),n=oz(e<2?void 0:arguments[1],"Error"),i=fz(n);if(p9e(this,{type:cf,name:n,message:r,code:i}),AA||(this.name=n,this.message=r,this.code=i),d9e){var a=Ow(r);a.name=cf,bw(this,"stack",TA(1,c9e(a.stack,1)))}},dd=xA.prototype=a9e(cz),pz=function(e){return{enumerable:!0,configurable:!0,get:e}},wA=function(e){return pz(function(){return h9e(this)[e]})};AA&&(yw(dd,"code",wA("code")),yw(dd,"message",wA("message")),yw(dd,"name",wA("name")));bw(dd,"constructor",TA(1,xA));var Sw=EA(function(){return!(new Qo instanceof Ow)}),hz=Sw||EA(function(){return cz.toString!==uz||String(new Qo(1,2))!=="2: 1"}),dz=Sw||EA(function(){return new Qo(1,"DataCloneError").code!==25}),v9e=Sw||Qo[PA]!==25||f9e[PA]!==25,az=lz?hz||dz||v9e:Sw;i9e({global:!0,constructor:!0,forced:az},{DOMException:az?xA:Qo});var vd=gw(cf),ww=vd.prototype;hz&&(lz||Qo===vd)&&u9e(ww,"toString",uz);dz&&AA&&Qo===vd&&yw(ww,"code",pz(function(){return fz(l9e(this).name)}));for(OA in lf)mw(lf,OA)&&(SA=lf[OA],hd=SA.s,_A=TA(6,SA.c),mw(vd,hd)||bw(vd,hd,_A),mw(ww,hd)||bw(ww,hd,_A));var SA,hd,_A,OA;var y9e=G(),m9e=be(),CA=Oe(),FA=In(),LA=it().f,vz=Ue(),g9e=mn(),b9e=As(),yz=Pc(),RA=bA(),w9e=fh(),O9e=xe(),bz=gt(),md="DOMException",wz=CA("Error"),gd=CA(md),NA=function(){g9e(this,S9e);var e=arguments.length,r=yz(e<1?void 0:arguments[0]),n=yz(e<2?void 0:arguments[1],"Error"),i=new gd(r,n),a=wz(r);return a.name=md,LA(i,"stack",FA(1,w9e(a.stack,1))),b9e(i,this,NA),i},S9e=NA.prototype=gd.prototype,_9e="stack"in wz(md),P9e="stack"in new gd(1,2),IA=gd&&O9e&&Object.getOwnPropertyDescriptor(m9e,md),E9e=!!IA&&!(IA.writable&&IA.configurable),mz=_9e&&!E9e&&!P9e;y9e({global:!0,constructor:!0,forced:bz||mz},{DOMException:mz?NA:gd});var yd=CA(md),gz=yd.prototype;if(gz.constructor!==yd){bz||LA(gz,"constructor",FA(1,yd));for(kA in RA)vz(RA,kA)&&(jA=RA[kA],qA=jA.s,vz(yd,qA)||LA(yd,qA,FA(6,jA.c)))}var jA,qA,kA;var T9e=Oe(),A9e=dn(),Oz="DOMException";A9e(T9e(Oz),Oz);var x9e=G(),R9e=be(),I9e=xP(),k9e=ge(),j9e=iu(),q9e=nu(),F9e=R9e.process;x9e({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(e){j9e(arguments.length,1),k9e(e);var r=q9e&&F9e.domain;I9e(r?r.bind(e):e)}});function GA(t){"@babel/helpers - typeof";return GA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GA(t)}var L9e=gt(),C9e=G(),Ct=be(),Od=Oe(),Jo=ce(),Ew=le(),N9e=gs(),$A=ke(),_z=Ri(),zA=Ne(),D9e=Ga(),M9e=Te(),Pz=ie(),Ez=xi(),U9e=Ue(),B9e=io(),DA=rr(),HA=ze(),G9e=iu(),$9e=Gc(),z9e=gg(),MA=Ba(),H9e=IP(),W9e=ib(),V9e=nu(),bd=Ct.Object,Tz=Ct.Date,Sd=Ct.Error,K9e=Ct.EvalError,Y9e=Ct.RangeError,X9e=Ct.ReferenceError,Q9e=Ct.SyntaxError,Az=Ct.TypeError,J9e=Ct.URIError,Z9e=Ct.PerformanceMark,ff=Ct.WebAssembly,eGe=ff&&ff.CompileError||Sd,tGe=ff&&ff.LinkError||Sd,rGe=ff&&ff.RuntimeError||Sd,Vs=Od("DOMException"),xz=Od("Set"),_w=Od("Map"),VA=_w.prototype,Rz=Jo(VA.has),nGe=Jo(VA.get),Pw=Jo(VA.set),iGe=Jo(xz.prototype.add),oGe=Od("Object","keys"),aGe=Jo([].push),uGe=Jo((!0).valueOf),sGe=Jo(1 .valueOf),lGe=Jo("".valueOf),cGe=Jo(Tz.prototype.getTime),WA=N9e("structuredClone"),wd="DataCloneError",UA="Transferring",Iz=function(e){return!Ew(function(){var r=new Ct.Set([7]),n=e(r),i=e(bd(7));return n==r||!n.has(7)||GA(i)!="object"||i!=7})&&e},Sz=function(e,r){return!Ew(function(){var n=new r,i=e({a:n,b:n});return!(i&&i.a===i.b&&i.a instanceof r&&i.a.stack===n.stack)})},fGe=function(e){return!Ew(function(){var r=e(new Ct.AggregateError([1],WA,{cause:3}));return r.name!="AggregateError"||r.errors[0]!=1||r.message!=WA||r.cause!=3})},yu=Ct.structuredClone,pGe=L9e||!Sz(yu,Sd)||!Sz(yu,Vs)||!fGe(yu),hGe=!yu&&Iz(function(t){return new Z9e(WA,{detail:t}).detail}),vu=Iz(yu)||hGe,BA=function(e){throw new Vs("Uncloneable type: "+e,wd)},Yr=function(e,r){throw new Vs((r||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",wd)},dGe=function t(e,r){if(D9e(e)&&BA("Symbol"),!zA(e))return e;if(r){if(Rz(r,e))return nGe(r,e)}else r=new _w;var n=Ez(e),i=!1,a,l,c,f,d,y,m,g,w,P;switch(n){case"Array":c=[],i=!0;break;case"Object":c={},i=!0;break;case"Map":c=new _w,i=!0;break;case"Set":c=new xz,i=!0;break;case"RegExp":c=new RegExp(e.source,$9e(e));break;case"Error":switch(l=e.name,l){case"AggregateError":c=Od("AggregateError")([]);break;case"EvalError":c=K9e();break;case"RangeError":c=Y9e();break;case"ReferenceError":c=X9e();break;case"SyntaxError":c=Q9e();break;case"TypeError":c=Az();break;case"URIError":c=J9e();break;case"CompileError":c=eGe();break;case"LinkError":c=tGe();break;case"RuntimeError":c=rGe();break;default:c=Sd()}i=!0;break;case"DOMException":c=new Vs(e.message,e.name),i=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":a=Ct[n],zA(a)||Yr(n),c=new a(t(e.buffer,r),e.byteOffset,n==="DataView"?e.byteLength:e.length);break;case"DOMQuad":try{c=new DOMQuad(t(e.p1,r),t(e.p2,r),t(e.p3,r),t(e.p4,r))}catch(E){vu?c=vu(e):Yr(n)}break;case"FileList":if(a=Ct.DataTransfer,_z(a)){for(f=new a,d=0,y=HA(e);d<y;d++)f.items.add(t(e[d],r));c=f.files}else vu?c=vu(e):Yr(n);break;case"ImageData":try{c=new ImageData(t(e.data,r),e.width,e.height,{colorSpace:e.colorSpace})}catch(E){vu?c=vu(e):Yr(n)}break;default:if(vu)c=vu(e);else switch(n){case"BigInt":c=bd(e.valueOf());break;case"Boolean":c=bd(uGe(e));break;case"Number":c=bd(sGe(e));break;case"String":c=bd(lGe(e));break;case"Date":c=new Tz(cGe(e));break;case"ArrayBuffer":a=Ct.DataView,!a&&typeof e.slice!="function"&&Yr(n);try{if(typeof e.slice=="function")c=e.slice(0);else for(y=e.byteLength,c=new ArrayBuffer(y),w=new a(e),P=new a(c),d=0;d<y;d++)P.setUint8(d,w.getUint8(d))}catch(E){throw new Vs("ArrayBuffer is detached",wd)}break;case"SharedArrayBuffer":c=e;break;case"Blob":try{c=e.slice(0,e.size,e.type)}catch(E){Yr(n)}break;case"DOMPoint":case"DOMPointReadOnly":a=Ct[n];try{c=a.fromPoint?a.fromPoint(e):new a(e.x,e.y,e.z,e.w)}catch(E){Yr(n)}break;case"DOMRect":case"DOMRectReadOnly":a=Ct[n];try{c=a.fromRect?a.fromRect(e):new a(e.x,e.y,e.width,e.height)}catch(E){Yr(n)}break;case"DOMMatrix":case"DOMMatrixReadOnly":a=Ct[n];try{c=a.fromMatrix?a.fromMatrix(e):new a(e)}catch(E){Yr(n)}break;case"AudioData":case"VideoFrame":$A(e.clone)||Yr(n);try{c=e.clone()}catch(E){BA(n)}break;case"File":try{c=new File([e],e.name,e)}catch(E){Yr(n)}break;case"CryptoKey":case"GPUCompilationMessage":case"GPUCompilationInfo":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":Yr(n);default:BA(n)}}if(Pw(r,e,c),i)switch(n){case"Array":case"Object":for(m=oGe(e),d=0,y=HA(m);d<y;d++)g=m[d],B9e(c,g,t(e[g],r));break;case"Map":e.forEach(function(E,O){Pw(c,t(O,r),t(E,r))});break;case"Set":e.forEach(function(E){iGe(c,t(E,r))});break;case"Error":DA(c,"message",t(e.message,r)),U9e(e,"cause")&&DA(c,"cause",t(e.cause,r)),l=="AggregateError"&&(c.errors=t(e.errors,r));case"DOMException":z9e&&DA(c,"stack",t(e.stack,r))}return c},kz=yu&&!Ew(function(){if(W9e&&MA>92||V9e&&MA>94||H9e&&MA>97)return!1;var t=new ArrayBuffer(8),e=yu(t,{transfer:[t]});return t.byteLength!=0||e.byteLength!=8}),vGe=function(e,r){if(!zA(e))throw Az("Transfer option cannot be converted to a sequence");var n=[];M9e(e,function(w){aGe(n,Pz(w))});var i=0,a=HA(n),l,c,f,d,y,m,g;if(kz)for(d=yu(n,{transfer:n});i<a;)Pw(r,n[i],d[i++]);else for(;i<a;){if(l=n[i++],Rz(r,l))throw new Vs("Duplicate transferable",wd);switch(c=Ez(l),c){case"ImageBitmap":f=Ct.OffscreenCanvas,_z(f)||Yr(c,UA);try{m=new f(l.width,l.height),g=m.getContext("bitmaprenderer"),g.transferFromImageBitmap(l),y=m.transferToImageBitmap()}catch(w){}break;case"AudioData":case"VideoFrame":(!$A(l.clone)||!$A(l.close))&&Yr(c,UA);try{y=l.clone(),l.close()}catch(w){}break;case"ArrayBuffer":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":Yr(c,UA)}if(y===void 0)throw new Vs("This object cannot be transferred: "+c,wd);Pw(r,l,y)}};C9e({global:!0,enumerable:!0,sham:!kz,forced:pGe},{structuredClone:function(e){var r=G9e(arguments.length,1)>1&&arguments[1]!=null?Pz(arguments[1]):void 0,n=r?r.transfer:void 0,i;return n!==void 0&&(i=new _w,vGe(n,i)),dGe(e,i)}});AH();var C$e=G(),N$e=fe();C$e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return N$e(URL.prototype.toString,this)}});sx();function Rx(t){"@babel/helpers - typeof";return Rx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rx(t)}var Dr=typeof globalThis!="undefined"&&globalThis||typeof self!="undefined"&&self||typeof Dr!="undefined"&&Dr,On={searchParams:"URLSearchParams"in Dr,iterable:"Symbol"in Dr&&"iterator"in Symbol,blob:"FileReader"in Dr&&"Blob"in Dr&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in Dr,arrayBuffer:"ArrayBuffer"in Dr};function D$e(t){return t&&DataView.prototype.isPrototypeOf(t)}On.arrayBuffer&&(xH=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],IH=ArrayBuffer.isView||function(t){return t&&xH.indexOf(Object.prototype.toString.call(t))>-1});var xH,IH;function jd(t){if(typeof t!="string"&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||t==="")throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function Ix(t){return typeof t!="string"&&(t=String(t)),t}function kx(t){var e={next:function(){var n=t.shift();return{done:n===void 0,value:n}}};return On.iterable&&(e[Symbol.iterator]=function(){return e}),e}function nr(t){this.map={},t instanceof nr?t.forEach(function(e,r){this.append(r,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}nr.prototype.append=function(t,e){t=jd(t),e=Ix(e);var r=this.map[t];this.map[t]=r?r+", "+e:e};nr.prototype.delete=function(t){delete this.map[jd(t)]};nr.prototype.get=function(t){return t=jd(t),this.has(t)?this.map[t]:null};nr.prototype.has=function(t){return this.map.hasOwnProperty(jd(t))};nr.prototype.set=function(t,e){this.map[jd(t)]=Ix(e)};nr.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)};nr.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),kx(t)};nr.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),kx(t)};nr.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),kx(t)};On.iterable&&(nr.prototype[Symbol.iterator]=nr.prototype.entries);function xx(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function kH(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function M$e(t){var e=new FileReader,r=kH(e);return e.readAsArrayBuffer(t),r}function U$e(t){var e=new FileReader,r=kH(e);return e.readAsText(t),r}function B$e(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}function RH(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function jH(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?typeof t=="string"?this._bodyText=t:On.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:On.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:On.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():On.arrayBuffer&&On.blob&&D$e(t)?(this._bodyArrayBuffer=RH(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):On.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||IH(t))?this._bodyArrayBuffer=RH(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||(typeof t=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):On.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},On.blob&&(this.blob=function(){var t=xx(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=xx(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(M$e)}),this.text=function(){var t=xx(this);if(t)return t;if(this._bodyBlob)return U$e(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(B$e(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},On.formData&&(this.formData=function(){return this.text().then(z$e)}),this.json=function(){return this.text().then(JSON.parse)},this}var G$e=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function $$e(t){var e=t.toUpperCase();return G$e.indexOf(e)>-1?e:t}function Zs(t,e){if(!(this instanceof Zs))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var r=e.body;if(t instanceof Zs){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new nr(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!r&&t._bodyInit!=null&&(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new nr(e.headers)),this.method=$$e(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+new Date().getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Zs.prototype.clone=function(){return new Zs(this,{body:this._bodyInit})};function z$e(t){var e=new FormData;return t.trim().split("&").forEach(function(r){if(r){var n=r.split("="),i=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(a))}}),e}function H$e(t){var e=new nr,r=t.replace(/\r?\n[\t ]+/g," ");return r.split("\r").map(function(n){return n.indexOf("\n")===0?n.substr(1,n.length):n}).forEach(function(n){var i=n.split(":"),a=i.shift().trim();if(a){var l=i.join(":").trim();e.append(a,l)}}),e}jH.call(Zs.prototype);function go(t,e){if(!(this instanceof go))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=e.status===void 0?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText===void 0?"":""+e.statusText,this.headers=new nr(e.headers),this.url=e.url||"",this._initBody(t)}jH.call(go.prototype);go.prototype.clone=function(){return new go(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new nr(this.headers),url:this.url})};go.error=function(){var t=new go(null,{status:0,statusText:""});return t.type="error",t};var W$e=[301,302,303,307,308];go.redirect=function(t,e){if(W$e.indexOf(e)===-1)throw new RangeError("Invalid status code");return new go(null,{status:e,headers:{location:t}})};var Js=Dr.DOMException;try{new Js}catch(t){Js=function(r,n){this.message=r,this.name=n;var i=Error(r);this.stack=i.stack},Js.prototype=Object.create(Error.prototype),Js.prototype.constructor=Js}function qH(t,e){return new Promise(function(r,n){var i=new Zs(t,e);if(i.signal&&i.signal.aborted)return n(new Js("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}a.onload=function(){var f={status:a.status,statusText:a.statusText,headers:H$e(a.getAllResponseHeaders()||"")};f.url="responseURL"in a?a.responseURL:f.headers.get("X-Request-URL");var d="response"in a?a.response:a.responseText;setTimeout(function(){r(new go(d,f))},0)},a.onerror=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},a.onabort=function(){setTimeout(function(){n(new Js("Aborted","AbortError"))},0)};function c(f){try{return f===""&&Dr.location.href?Dr.location.href:f}catch(d){return f}}a.open(i.method,c(i.url),!0),i.credentials==="include"?a.withCredentials=!0:i.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&(On.blob?a.responseType="blob":On.arrayBuffer&&i.headers.get("Content-Type")&&i.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(a.responseType="arraybuffer")),e&&Rx(e.headers)==="object"&&!(e.headers instanceof nr)?Object.getOwnPropertyNames(e.headers).forEach(function(f){a.setRequestHeader(f,Ix(e.headers[f]))}):i.headers.forEach(function(f,d){a.setRequestHeader(d,f)}),i.signal&&(i.signal.addEventListener("abort",l),a.onreadystatechange=function(){a.readyState===4&&i.signal.removeEventListener("abort",l)}),a.send(typeof i._bodyInit=="undefined"?null:i._bodyInit)})}qH.polyfill=!0;Dr.fetch||(Dr.fetch=qH,Dr.Headers=nr,Dr.Request=Zs,Dr.Response=go);function jx(t){"@babel/helpers - typeof";return jx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jx(t)}(function(t){typeof define=="function"&&define.amd?define(t):t()})(function(){"use strict";function t(R,x){if(!(R instanceof x))throw new TypeError("Cannot call a class as a function")}function e(R,x){for(var A=0;A<x.length;A++){var I=x[A];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(R,I.key,I)}}function r(R,x,A){return x&&e(R.prototype,x),A&&e(R,A),R}function n(R,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(x&&x.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),x&&a(R,x)}function i(R){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},i(R)}function a(R,x){return a=Object.setPrototypeOf||function(I,N){return I.__proto__=N,I},a(R,x)}function l(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}function c(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function f(R,x){return x&&(jx(x)==="object"||typeof x=="function")?x:c(R)}function d(R){var x=l();return function(){var I=i(R),N;if(x){var j=i(this).constructor;N=Reflect.construct(I,arguments,j)}else N=I.apply(this,arguments);return f(this,N)}}function y(R,x){for(;!Object.prototype.hasOwnProperty.call(R,x)&&(R=i(R),R!==null););return R}function m(R,x,A){return typeof Reflect!="undefined"&&Reflect.get?m=Reflect.get:m=function(N,j,k){var z=y(N,j);if(z){var B=Object.getOwnPropertyDescriptor(z,j);return B.get?B.get.call(k):B.value}},m(R,x,A||R)}var g=function(){function R(){t(this,R),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return r(R,[{key:"addEventListener",value:function(A,I,N){A in this.listeners||(this.listeners[A]=[]),this.listeners[A].push({callback:I,options:N})}},{key:"removeEventListener",value:function(A,I){if(A in this.listeners){for(var N=this.listeners[A],j=0,k=N.length;j<k;j++)if(N[j].callback===I){N.splice(j,1);return}}}},{key:"dispatchEvent",value:function(A){var I=this;if(A.type in this.listeners){for(var N=this.listeners[A.type],j=N.slice(),k=function(){z=j[B];try{z.callback.call(I,A)}catch(X){Promise.resolve().then(function(){throw X})}z.options&&z.options.once&&I.removeEventListener(A.type,z.callback)},z,B=0,Y=j.length;B<Y;B++)k();return!A.defaultPrevented}}}]),R}(),w=function(R){n(A,R);var x=d(A);function A(){var I;return t(this,A),I=x.call(this),I.listeners||g.call(c(I)),Object.defineProperty(c(I),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(c(I),"onabort",{value:null,writable:!0,configurable:!0}),I}return r(A,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(N){N.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,N)),m(i(A.prototype),"dispatchEvent",this).call(this,N)}}]),A}(g),P=function(){function R(){t(this,R),Object.defineProperty(this,"signal",{value:new w,writable:!0,configurable:!0})}return r(R,[{key:"abort",value:function(){var A;try{A=new Event("abort")}catch(I){typeof document!="undefined"?document.createEvent?(A=document.createEvent("Event"),A.initEvent("abort",!1,!1)):(A=document.createEventObject(),A.type="abort"):A={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(A)}},{key:"toString",value:function(){return"[object AbortController]"}}]),R}();typeof Symbol!="undefined"&&Symbol.toStringTag&&(P.prototype[Symbol.toStringTag]="AbortController",w.prototype[Symbol.toStringTag]="AbortSignal");function E(R){return R.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof R.Request=="function"&&!R.Request.prototype.hasOwnProperty("signal")||!R.AbortController}function O(R){typeof R=="function"&&(R={fetch:R});var x=R,A=x.fetch,I=x.Request,N=I===void 0?A.Request:I,j=x.AbortController,k=x.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,z=k===void 0?!1:k;if(!E({fetch:A,Request:N,AbortController:j,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:z}))return{fetch:A,Request:B};var B=N;(B&&!B.prototype.hasOwnProperty("signal")||z)&&(B=function($,H){var K;H&&H.signal&&(K=H.signal,delete H.signal);var s=new N($,H);return K&&Object.defineProperty(s,"signal",{writable:!1,enumerable:!1,configurable:!0,value:K}),s},B.prototype=N.prototype);var Y=A,Q=function($,H){var K=B&&B.prototype.isPrototypeOf($)?$.signal:H?H.signal:void 0;if(K){var s;try{s=new DOMException("Aborted","AbortError")}catch(u){s=new Error("Aborted"),s.name="AbortError"}if(K.aborted)return Promise.reject(s);var o=new Promise(function(u,p){K.addEventListener("abort",function(){return p(s)},{once:!0})});return H&&H.signal&&delete H.signal,Promise.race([o,Y($,H)])}return Y($,H)};return{fetch:Q,Request:B}}(function(R){if(E(R)){if(!R.fetch){console.warn("fetch() is not available, cannot install abortcontroller-polyfill");return}var x=O(R),A=x.fetch,I=x.Request;R.fetch=A,R.Request=I,Object.defineProperty(R,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:P}),Object.defineProperty(R,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:w})}})(typeof self!="undefined"?self:global)});(function(){var t=function(r,n,i){var a=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return a?new Promise(function(l,c){a.call(navigator,r,l,c)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))};navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=t)})();var LH=function(){if(typeof Map!="undefined")return Map;function t(e,r){var n=-1;return e.some(function(i,a){return i[0]===r?(n=a,!0):!1}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(r){var n=t(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(r,n){var i=t(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},e.prototype.delete=function(r){var n=this.__entries__,i=t(n,r);~i&&n.splice(i,1)},e.prototype.has=function(r){return!!~t(this.__entries__,r)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,a=this.__entries__;i<a.length;i++){var l=a[i];r.call(n,l[1],l[0])}},e}()}(),qx=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,Dw=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),V$e=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Dw):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),K$e=2;function Y$e(t,e){var r=!1,n=!1,i=0;function a(){r&&(r=!1,t()),n&&c()}function l(){V$e(a)}function c(){var f=Date.now();if(r){if(f-i<K$e)return;n=!0}else r=!0,n=!1,setTimeout(l,e);i=f}return c}var X$e=20,Q$e=["top","right","bottom","left","width","height","size","weight"],J$e=typeof MutationObserver!="undefined",Z$e=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Y$e(this.refresh.bind(this),X$e)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var r=this.observers_,n=r.indexOf(e);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return e.forEach(function(r){return r.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!qx||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),J$e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!qx||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var r=e.propertyName,n=r===void 0?"":r,i=Q$e.some(function(a){return!!~n.indexOf(a)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),CH=function(e,r){for(var n=0,i=Object.keys(r);n<i.length;n++){var a=i[n];Object.defineProperty(e,a,{value:r[a],enumerable:!1,writable:!1,configurable:!0})}return e},bf=function(e){var r=e&&e.ownerDocument&&e.ownerDocument.defaultView;return r||Dw},NH=Uw(0,0,0,0);function Mw(t){return parseFloat(t)||0}function FH(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce(function(n,i){var a=t["border-"+i+"-width"];return n+Mw(a)},0)}function eze(t){for(var e=["top","right","bottom","left"],r={},n=0,i=e;n<i.length;n++){var a=i[n],l=t["padding-"+a];r[a]=Mw(l)}return r}function tze(t){var e=t.getBBox();return Uw(0,0,e.width,e.height)}function rze(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return NH;var n=bf(t).getComputedStyle(t),i=eze(n),a=i.left+i.right,l=i.top+i.bottom,c=Mw(n.width),f=Mw(n.height);if(n.boxSizing==="border-box"&&(Math.round(c+a)!==e&&(c-=FH(n,"left","right")+a),Math.round(f+l)!==r&&(f-=FH(n,"top","bottom")+l)),!ize(t)){var d=Math.round(c+a)-e,y=Math.round(f+l)-r;Math.abs(d)!==1&&(c-=d),Math.abs(y)!==1&&(f-=y)}return Uw(i.left,i.top,c,f)}var nze=function(){return typeof SVGGraphicsElement!="undefined"?function(t){return t instanceof bf(t).SVGGraphicsElement}:function(t){return t instanceof bf(t).SVGElement&&typeof t.getBBox=="function"}}();function ize(t){return t===bf(t).document.documentElement}function oze(t){return qx?nze(t)?tze(t):rze(t):NH}function aze(t){var e=t.x,r=t.y,n=t.width,i=t.height,a=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return CH(l,{x:e,y:r,width:n,height:i,top:r,right:e+n,bottom:i+r,left:e}),l}function Uw(t,e,r,n){return{x:t,y:e,width:r,height:n}}var uze=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Uw(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=oze(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),sze=function(){function t(e,r){var n=aze(r);CH(this,{target:e,contentRect:n})}return t}(),lze=function(){function t(e,r,n){if(this.activeObservations_=[],this.observations_=new LH,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=r,this.callbackCtx_=n}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(e instanceof bf(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(e)||(r.set(e,new uze(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(e instanceof bf(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(e)&&(r.delete(e),r.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&e.activeObservations_.push(r)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new sze(n.target,n.broadcastRect())});this.callback_.call(e,r,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),DH=typeof WeakMap!="undefined"?new WeakMap:new LH,MH=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Z$e.getInstance(),n=new lze(e,r,this);DH.set(this,n)}return t}();["observe","unobserve","disconnect"].forEach(function(t){MH.prototype[t]=function(){var e;return(e=DH.get(this))[t].apply(e,arguments)}});var cze=function(){return typeof Dw.ResizeObserver!="undefined"?Dw.ResizeObserver:MH}(),UH=cze;var LCt=Ce(BH(),1);var jF={};zm(jF,{Audio:function(){return RO},AwsS3:function(){return Kq},AwsS3Multipart:function(){return $y},BasePlugin:function(){return ht},Box:function(){return ap},Compressor:function(){return Kne},Core:function(){return Apt},Dashboard:function(){return vO},DefaultStore:function(){return Vw},DragDrop:function(){return mO},DropTarget:function(){return Vk},Dropbox:function(){return up},Facebook:function(){return sp},FileInput:function(){return OO},Form:function(){return PF},GoldenRetriever:function(){return xF},GoogleDrive:function(){return fp},ImageEditor:function(){return EO},Informer:function(){return Hf},Instagram:function(){return pp},OneDrive:function(){return hp},ProgressBar:function(){return AO},ReduxDevTools:function(){return kF},ReduxStore:function(){return zY},RemoteSources:function(){return Wj},ScreenCapture:function(){return VO},StatusBar:function(){return Bf},ThumbnailGenerator:function(){return iy},Transloadit:function(){return os},Tus:function(){return Cp},UIPlugin:function(){return Ae},Unsplash:function(){return dp},Uppy:function(){return sR},Url:function(){return Sa},Webcam:function(){return JO},XHRUpload:function(){return gF},Zoom:function(){return yp},debugLogger:function(){return Ud},locales:function(){return Rpt},server:function(){return DR},views:function(){return xpt}});function GH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $H(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?GH(Object(r),!0).forEach(function(n){fze(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):GH(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function fze(t,e,r){return e=WH(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wf(t){"@babel/helpers - typeof";return wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wf(t)}function pze(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zH(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,WH(n.key),n)}}function hze(t,e,r){return e&&zH(t.prototype,e),r&&zH(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function WH(t){var e=dze(t,"string");return wf(e)=="symbol"?e:String(e)}function dze(t,e){if(wf(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(wf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Gw(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var vze=0;function VH(t){return"__private_"+vze+++"_"+t}function yze(t,e,r){var n=[];return t.forEach(function(i){return typeof i!="string"?n.push(i):e[Symbol.split](i).forEach(function(a,l,c){a!==""&&n.push(a),l<c.length-1&&n.push(r)})}),n}function HH(t,e){var r=/\$/g,n="$$$$",i=[t];if(e==null)return i;for(var a=0,l=Object.keys(e);a<l.length;a++){var c=l[a];if(c!=="_"){var f=e[c];typeof f=="string"&&(f=r[Symbol.replace](f,n)),i=yze(i,new RegExp("%\\{".concat(c,"\\}"),"g"),f)}}return i}var mze=function(e){throw new Error("missing string: ".concat(e))},Fd=VH("onMissingKey"),Ld=VH("apply"),$w=function(){function t(e,r){pze(this,t);var n=r===void 0?{}:r,i=n.onMissingKey,a=i===void 0?mze:i;Object.defineProperty(this,Ld,{value:gze}),Object.defineProperty(this,Fd,{writable:!0,value:void 0}),this.locale={strings:{},pluralize:function(c){return c===1?0:1}},Array.isArray(e)?e.forEach(Gw(this,Ld)[Ld],this):Gw(this,Ld)[Ld](e),Gw(this,Fd)[Fd]=a}return hze(t,[{key:"translate",value:function(r,n){return this.translateArray(r,n).join("")}},{key:"translateArray",value:function(r,n){var i=this.locale.strings[r];i==null&&(Gw(this,Fd)[Fd](r),i=r);var a=wf(i)==="object";if(a){if(n&&typeof n.smart_count!="undefined"){var l=this.locale.pluralize(n.smart_count);return HH(i[l],n)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if(typeof i!="string")throw new Error("string was not a string");return HH(i,n)}}]),t}();function gze(t){if(t!=null&&t.strings){var e=this.locale;Object.assign(this.locale,{strings:$H($H({},e.strings),t.strings),pluralize:t.pluralize||e.pluralize})}}var aV=Ce(Lx(),1);var bze="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var Sn=function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:21,r="",n=e;n--;)r+=bze[Math.random()*64|0];return r};var uV=Ce(Hw(),1);function Nd(t){"@babel/helpers - typeof";return Nd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nd(t)}function AW(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Hx(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?AW(Object(r),!0).forEach(function(n){pHe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):AW(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function pHe(t,e,r){return e=RW(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hHe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xW(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,RW(n.key),n)}}function dHe(t,e,r){return e&&xW(t.prototype,e),r&&xW(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function RW(t){var e=vHe(t,"string");return Nd(e)=="symbol"?e:String(e)}function vHe(t,e){if(Nd(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Nd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ww(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var yHe=0;function IW(t){return"__private_"+yHe+++"_"+t}var mHe={version:"3.2.2"},el=IW("callbacks"),Wx=IW("publish"),kW=function(){function t(){hHe(this,t),Object.defineProperty(this,Wx,{value:gHe}),this.state={},Object.defineProperty(this,el,{writable:!0,value:new Set})}return dHe(t,[{key:"getState",value:function(){return this.state}},{key:"setState",value:function(r){var n=Hx({},this.state),i=Hx(Hx({},this.state),r);this.state=i,Ww(this,Wx)[Wx](n,i,r)}},{key:"subscribe",value:function(r){var n=this;return Ww(this,el)[el].add(r),function(){Ww(n,el)[el].delete(r)}}}]),t}();function gHe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];Ww(this,el)[el].forEach(function(n){n.apply(void 0,e)})}kW.VERSION=mHe.version;var Vw=kW;function bo(t){var e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}}var Dd={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function tl(t){var e;if(t.type)return t.type;var r=t.name?(e=bo(t.name).extension)==null?void 0:e.toLowerCase():null;return r&&r in Dd?Dd[r]:"application/octet-stream"}function Md(t){"@babel/helpers - typeof";return Md=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Md(t)}function jW(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function qW(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jW(Object(r),!0).forEach(function(n){bHe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jW(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function bHe(t,e,r){return e=wHe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wHe(t){var e=OHe(t,"string");return Md(e)=="symbol"?e:String(e)}function OHe(t,e){if(Md(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Md(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function SHe(t){return t.charCodeAt(0).toString(32)}function FW(t){var e="";return t.replace(/[^A-Z0-9]/gi,function(r){return e+="-".concat(SHe(r)),"/"})+e}function LW(t,e){var r=e||"uppy";return typeof t.name=="string"&&(r+="-".concat(FW(t.name.toLowerCase()))),t.type!==void 0&&(r+="-".concat(t.type)),t.meta&&typeof t.meta.relativePath=="string"&&(r+="-".concat(FW(t.meta.relativePath.toLowerCase()))),t.data.size!==void 0&&(r+="-".concat(t.data.size)),t.data.lastModified!==void 0&&(r+="-".concat(t.data.lastModified)),r}function _He(t){if(!t.isRemote||!t.remote)return!1;var e=new Set(["box","dropbox","drive","facebook","unsplash"]);return e.has(t.remote.provider)}function Kw(t,e){if(_He(t))return t.id;var r=tl(t);return LW(qW(qW({},t),{},{type:r}),e)}function Vx(t){if(t==null&&typeof navigator!="undefined"&&(t=navigator.userAgent),!t)return!0;var e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;var r=e[1],n=r.split(".",2),i=parseInt(n[0],10),a=parseInt(n[1],10);return i<15||i===15&&a<15063||i>18||i===18&&a>=18218}function Kx(t,e){return e.name?e.name:t.split("/")[0]==="image"?"".concat(t.split("/")[0],".").concat(t.split("/")[1]):"noname"}function Yx(t){return t<10?"0".concat(t):t.toString()}function Of(){var t=new Date,e=Yx(t.getHours()),r=Yx(t.getMinutes()),n=Yx(t.getSeconds());return"".concat(e,":").concat(r,":").concat(n)}var CW={debug:function(){},warn:function(){},error:function(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=console).error.apply(e,["[Uppy] [".concat(Of(),"]")].concat(n))}},Ud={debug:function(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=console).debug.apply(e,["[Uppy] [".concat(Of(),"]")].concat(n))},warn:function(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=console).warn.apply(e,["[Uppy] [".concat(Of(),"]")].concat(n))},error:function(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=console).error.apply(e,["[Uppy] [".concat(Of(),"]")].concat(n))}};var Yw=Ce(Bd(),1),KW=Ce(GW(),1);function Sf(t){"@babel/helpers - typeof";return Sf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sf(t)}function $W(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=THe(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(d){throw d},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,l=!1,c;return{s:function(){r=r.call(t)},n:function(){var d=r.next();return a=d.done,d},e:function(d){l=!0,c=d},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function THe(t,e){if(t){if(typeof t=="string")return zW(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zW(t,e)}}function zW(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function HW(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,AHe(n.key),n)}}function WW(t,e,r){return e&&HW(t.prototype,e),r&&HW(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function AHe(t){var e=xHe(t,"string");return Sf(e)=="symbol"?e:String(e)}function xHe(t,e){if(Sf(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Sf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function VW(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RHe(t,e,r){return e=$d(e),IHe(t,Zx()?Reflect.construct(e,r||[],$d(t).constructor):e.apply(t,r))}function IHe(t,e){if(e&&(Sf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kHe(t)}function kHe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jHe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gd(t,e)}function Jx(t){var e=typeof Map=="function"?new Map:void 0;return Jx=function(n){if(n===null||!FHe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return qHe(n,arguments,$d(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Gd(i,n)},Jx(t)}function qHe(t,e,r){if(Zx())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&Gd(i,r.prototype),i}function Zx(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zx=function(){return!!t})()}function FHe(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch(e){return typeof t=="function"}}function Gd(t,e){return Gd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gd(t,e)}function $d(t){return $d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$d(t)}var YW={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},fi=function(t){jHe(e,t);function e(r,n){var i;VW(this,e);var a;return i=RHe(this,e,[r]),i.isRestriction=!0,i.isUserFacing=(a=n==null?void 0:n.isUserFacing)!=null?a:!0,n!=null&&n.file&&(i.file=n.file),i}return WW(e)}(Jx(Error)),XW=function(){function t(e,r){VW(this,t),this.getI18n=r,this.getOpts=function(){var n,i=e();if(((n=i.restrictions)==null?void 0:n.allowedFileTypes)!=null&&!Array.isArray(i.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return i}}return WW(t,[{key:"validateAggregateRestrictions",value:function(r,n){var i=this.getOpts().restrictions,a=i.maxTotalFileSize,l=i.maxNumberOfFiles;if(l){var c=r.filter(function(g){return!g.isGhost});if(c.length+n.length>l)throw new fi("".concat(this.getI18n()("youCanOnlyUploadX",{smart_count:l})))}if(a){var f=r.reduce(function(g,w){var P;return g+((P=w.size)!=null?P:0)},0),d=$W(n),y;try{for(d.s();!(y=d.n()).done;){var m=y.value;if(m.size!=null&&(f+=m.size,f>a))throw new fi(this.getI18n()("exceedsSize",{size:(0,Yw.default)(a),file:m.name}))}}catch(g){d.e(g)}finally{d.f()}}}},{key:"validateSingleFile",value:function(r){var n=this.getOpts().restrictions,i=n.maxFileSize,a=n.minFileSize,l=n.allowedFileTypes;if(l){var c=l.some(function(d){return d.includes("/")?r.type?(0,KW.default)(r.type.replace(/;.*?$/,""),d):!1:d[0]==="."&&r.extension?r.extension.toLowerCase()===d.slice(1).toLowerCase():!1});if(!c){var f=l.join(", ");throw new fi(this.getI18n()("youCanOnlyUploadFileTypes",{types:f}),{file:r})}}if(i&&r.size!=null&&r.size>i)throw new fi(this.getI18n()("exceedsSize",{size:(0,Yw.default)(i),file:r.name}),{file:r});if(a&&r.size!=null&&r.size<a)throw new fi(this.getI18n()("inferiorSize",{size:(0,Yw.default)(a)}),{file:r})}},{key:"validate",value:function(r,n){var i=this;n.forEach(function(a){i.validateSingleFile(a)}),this.validateAggregateRestrictions(r,n)}},{key:"validateMinNumberOfFiles",value:function(r){var n=this.getOpts().restrictions.minNumberOfFiles;if(n&&Object.keys(r).length<n)throw new fi(this.getI18n()("youHaveToAtLeastSelectX",{smart_count:n}))}},{key:"getMissingRequiredMetaFields",value:function(r){var n=new fi(this.getI18n()("missingRequiredMetaFieldOnFile",{fileName:r.name})),i=this.getOpts().restrictions.requiredMetaFields,a=[],l=$W(i),c;try{for(l.s();!(c=l.n()).done;){var f=c.value;(!Object.hasOwn(r.meta,f)||r.meta[f]==="")&&a.push(f)}}catch(d){l.e(d)}finally{l.f()}return{missingFields:a,error:n}}}]),t}();var QW={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",noSearchResults:"Unfortunately, there are no results for this search",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",loadedXFiles:"Loaded %{numFiles} files",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",resetSearch:"Reset search",emptyFolderAdded:"No files were added from empty folder",addedNumFiles:"Added %{numFiles} file(s)",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled"}};function nR(){"use strict";nR=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&pi(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(pi(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function JW(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function LHe(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){JW(a,n,i,l,c,"next",f)}function c(f){JW(a,n,i,l,c,"throw",f)}l(void 0)})}}function rV(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=uR(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(d){throw d},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,l=!1,c;return{s:function(){r=r.call(t)},n:function(){var d=r.next();return a=d.done,d},e:function(d){l=!0,c=d},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function Qw(t){return DHe(t)||NHe(t)||uR(t)||CHe()}function CHe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function NHe(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function DHe(t){if(Array.isArray(t))return iR(t)}function pi(t){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pi(t)}function ZW(t,e){return BHe(t)||UHe(t,e)||uR(t,e)||MHe()}function MHe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function uR(t,e){if(t){if(typeof t=="string")return iR(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iR(t,e)}}function iR(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function UHe(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function BHe(t){if(Array.isArray(t))return t}function eV(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ue(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?eV(Object(r),!0).forEach(function(n){_f(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eV(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _f(t,e,r){return e=nV(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function GHe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tV(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nV(n.key),n)}}function $He(t,e,r){return e&&tV(t.prototype,e),r&&tV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function nV(t){var e=zHe(t,"string");return pi(e)=="symbol"?e:String(e)}function zHe(t,e){if(pi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var iV,oV;function pe(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var HHe=0;function Nt(t){return"__private_"+HHe+++"_"+t}var WHe={version:"3.11.1"},Xw={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null},Er=Nt("plugins"),Ln=Nt("restricter"),zd=Nt("storeUnsubscribe"),ta=Nt("emitter"),rl=Nt("preProcessors"),nl=Nt("uploaders"),ia=Nt("postProcessors"),Cn=Nt("informAndEmit"),Yd=Nt("checkRequiredMetaFieldsOnFile"),eR=Nt("checkRequiredMetaFields"),Hd=Nt("assertNewUploadAllowed"),oR=Nt("transformFile"),Wd=Nt("startIfAutoProceed"),Vd=Nt("checkAndUpdateFileState"),tR=Nt("addListeners"),Ci=Nt("updateOnlineStatus"),Kd=Nt("requestClientById"),ra=Nt("createUpload"),rR=Nt("getUpload"),il=Nt("removeUpload"),na=Nt("runUpload");iV=Symbol.for("uppy test: getPlugins");oV=Symbol.for("uppy test: createUpload");var sV=function(t,e){function r(n){var i=this;GHe(this,r),Object.defineProperty(this,na,{value:iWe}),Object.defineProperty(this,il,{value:nWe}),Object.defineProperty(this,rR,{value:rWe}),Object.defineProperty(this,ra,{value:tWe}),Object.defineProperty(this,tR,{value:eWe}),Object.defineProperty(this,Vd,{value:ZHe}),Object.defineProperty(this,Wd,{value:JHe}),Object.defineProperty(this,oR,{value:QHe}),Object.defineProperty(this,Hd,{value:XHe}),Object.defineProperty(this,eR,{value:YHe}),Object.defineProperty(this,Yd,{value:KHe}),Object.defineProperty(this,Cn,{value:VHe}),Object.defineProperty(this,Er,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Ln,{writable:!0,value:void 0}),Object.defineProperty(this,zd,{writable:!0,value:void 0}),Object.defineProperty(this,ta,{writable:!0,value:(0,aV.default)()}),Object.defineProperty(this,rl,{writable:!0,value:new Set}),Object.defineProperty(this,nl,{writable:!0,value:new Set}),Object.defineProperty(this,ia,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=(0,uV.default)(function(c,f){var d=i.getFile(c==null?void 0:c.id);if(c==null||!d){i.log("Not setting progress for a file that has been removed: ".concat(c==null?void 0:c.id));return}if(d.progress.percentage===100){i.log("Not setting progress for a file that has been already uploaded: ".concat(c.id));return}var y=Number.isFinite(f.bytesTotal)&&f.bytesTotal>0;i.setFileState(c.id,{progress:ue(ue({},d.progress),{},{bytesUploaded:f.bytesUploaded,bytesTotal:f.bytesTotal,percentage:y?Math.round(f.bytesUploaded/f.bytesTotal*100):0})}),i.calculateTotalProgress()},500,{leading:!0,trailing:!0}),Object.defineProperty(this,Ci,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,Kd,{writable:!0,value:new Map}),this.defaultLocale=QW;var a={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:YW,meta:{},onBeforeFileAdded:function(f,d){return!Object.hasOwn(d,f.id)},onBeforeUpload:function(f){return f},store:new Vw,logger:CW,infoTimeout:5e3},l=ue(ue({},a),n);this.opts=ue(ue({},l),{},{restrictions:ue(ue({},a.restrictions),n&&n.restrictions)}),n&&n.logger&&n.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):n&&n.debug&&(this.opts.logger=Ud),this.log("Using Core v".concat(r.VERSION)),this.i18nInit(),this.store=this.opts.store,this.setState(ue(ue({},Xw),{},{plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:Vx(),individualCancellation:!0,resumableUploads:!1},meta:ue({},this.opts.meta),info:[]})),pe(this,Ln)[Ln]=new XW(function(){return i.opts},function(){return i.i18n}),pe(this,zd)[zd]=this.store.subscribe(function(c,f,d){i.emit("state-update",c,f,d),i.updateAll(f)}),this.opts.debug&&typeof window!="undefined"&&(window[this.opts.id]=this),pe(this,tR)[tR]()}return $He(r,[{key:"emit",value:function(i){for(var a,l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];(a=pe(this,ta)[ta]).emit.apply(a,[i].concat(c))}},{key:"on",value:function(i,a){return pe(this,ta)[ta].on(i,a),this}},{key:"once",value:function(i,a){return pe(this,ta)[ta].once(i,a),this}},{key:"off",value:function(i,a){return pe(this,ta)[ta].off(i,a),this}},{key:"updateAll",value:function(i){this.iteratePlugins(function(a){a.update(i)})}},{key:"setState",value:function(i){this.store.setState(i)}},{key:"getState",value:function(){return this.store.getState()}},{key:"patchFilesState",value:function(i){var a=this.getState().files;this.setState({files:ue(ue({},a),Object.fromEntries(Object.entries(i).map(function(l){var c=ZW(l,2),f=c[0],d=c[1];return[f,ue(ue({},a[f]),d)]})))})}},{key:"setFileState",value:function(i,a){if(!this.getState().files[i])throw new Error("Can\u2019t set state for ".concat(i," (the file could have been removed)"));this.patchFilesState(_f({},i,a))}},{key:"i18nInit",value:function(){var i=this,a=function(f){return i.log("Missing i18n string: ".concat(f),"error")},l=new $w([this.defaultLocale,this.opts.locale],{onMissingKey:a});this.i18n=l.translate.bind(l),this.i18nArray=l.translateArray.bind(l),this.locale=l.locale}},{key:"setOptions",value:function(i){this.opts=ue(ue(ue({},this.opts),i),{},{restrictions:ue(ue({},this.opts.restrictions),i==null?void 0:i.restrictions)}),i.meta&&this.setMeta(i.meta),this.i18nInit(),i.locale&&this.iteratePlugins(function(a){a.setOptions(i)}),this.setState(void 0)}},{key:"resetProgress",value:function(){var i={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},a=ue({},this.getState().files),l={};Object.keys(a).forEach(function(c){l[c]=ue(ue({},a[c]),{},{progress:ue(ue({},a[c].progress),i)})}),this.setState(ue({files:l},Xw)),this.emit("reset-progress")}},{key:"clearUploadedFiles",value:function(){this.setState(ue(ue({},Xw),{},{files:{}}))}},{key:"addPreProcessor",value:function(i){pe(this,rl)[rl].add(i)}},{key:"removePreProcessor",value:function(i){return pe(this,rl)[rl].delete(i)}},{key:"addPostProcessor",value:function(i){pe(this,ia)[ia].add(i)}},{key:"removePostProcessor",value:function(i){return pe(this,ia)[ia].delete(i)}},{key:"addUploader",value:function(i){pe(this,nl)[nl].add(i)}},{key:"removeUploader",value:function(i){return pe(this,nl)[nl].delete(i)}},{key:"setMeta",value:function(i){var a=ue(ue({},this.getState().meta),i),l=ue({},this.getState().files);Object.keys(l).forEach(function(c){l[c]=ue(ue({},l[c]),{},{meta:ue(ue({},l[c].meta),i)})}),this.log("Adding metadata:"),this.log(i),this.setState({meta:a,files:l})}},{key:"setFileMeta",value:function(i,a){var l=ue({},this.getState().files);if(!l[i]){this.log("Was trying to set metadata for a file that has been removed: ",i);return}var c=ue(ue({},l[i].meta),a);l[i]=ue(ue({},l[i]),{},{meta:c}),this.setState({files:l})}},{key:"getFile",value:function(i){return this.getState().files[i]}},{key:"getFiles",value:function(){var i=this.getState(),a=i.files;return Object.values(a)}},{key:"getFilesByIds",value:function(i){var a=this;return i.map(function(l){return a.getFile(l)})}},{key:"getObjectOfFilesPerState",value:function(){var i=this.getState(),a=i.files,l=i.totalProgress,c=i.error,f=Object.values(a),d=f.filter(function(x){var A=x.progress;return!A.uploadComplete&&A.uploadStarted}),y=f.filter(function(x){return!x.progress.uploadStarted}),m=f.filter(function(x){return x.progress.uploadStarted||x.progress.preprocess||x.progress.postprocess}),g=f.filter(function(x){return x.progress.uploadStarted}),w=f.filter(function(x){return x.isPaused}),P=f.filter(function(x){return x.progress.uploadComplete}),E=f.filter(function(x){return x.error}),O=d.filter(function(x){return!x.isPaused}),R=f.filter(function(x){return x.progress.preprocess||x.progress.postprocess});return{newFiles:y,startedFiles:m,uploadStartedFiles:g,pausedFiles:w,completeFiles:P,erroredFiles:E,inProgressFiles:d,inProgressNotPausedFiles:O,processingFiles:R,isUploadStarted:g.length>0,isAllComplete:l===100&&P.length===f.length&&R.length===0,isAllErrored:!!c&&E.length===f.length,isAllPaused:d.length!==0&&w.length===d.length,isUploadInProgress:d.length>0,isSomeGhost:f.some(function(x){return x.isGhost})}}},{key:"validateRestrictions",value:function(i,a){a===void 0&&(a=this.getFiles());try{pe(this,Ln)[Ln].validate(a,[i])}catch(l){return l}return null}},{key:"checkIfFileAlreadyExists",value:function(i){var a=this.getState(),l=a.files;return!!(l[i]&&!l[i].isGhost)}},{key:"addFile",value:function(i){pe(this,Hd)[Hd](i);var a=pe(this,Vd)[Vd]([i]),l=a.nextFilesState,c=a.validFilesToAdd,f=a.errors,d=f.filter(function(g){return g.isRestriction});if(pe(this,Cn)[Cn](d),f.length>0)throw f[0];this.setState({files:l});var y=ZW(c,1),m=y[0];return this.emit("file-added",m),this.emit("files-added",c),this.log("Added file: ".concat(m.name,", ").concat(m.id,", mime type: ").concat(m.type)),pe(this,Wd)[Wd](),m.id}},{key:"addFiles",value:function(i){var a=this;pe(this,Hd)[Hd]();var l=pe(this,Vd)[Vd](i),c=l.nextFilesState,f=l.validFilesToAdd,d=l.errors,y=d.filter(function(P){return P.isRestriction});pe(this,Cn)[Cn](y);var m=d.filter(function(P){return!P.isRestriction});if(m.length>0){var g="Multiple errors occurred while adding files:\n";if(m.forEach(function(P){g+="\n * ".concat(P.message)}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:m.length}),details:g},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(m,g);var w=new Error(g);throw w.errors=m,w}this.setState({files:c}),f.forEach(function(P){a.emit("file-added",P)}),this.emit("files-added",f),f.length>5?this.log("Added batch of ".concat(f.length," files")):Object.values(f).forEach(function(P){a.log("Added file: ".concat(P.name,"\n id: ").concat(P.id,"\n type: ").concat(P.type))}),f.length>0&&pe(this,Wd)[Wd]()}},{key:"removeFiles",value:function(i,a){var l=this,c=this.getState(),f=c.files,d=c.currentUploads,y=ue({},f),m=ue({},d),g=Object.create(null);i.forEach(function(O){f[O]&&(g[O]=f[O],delete y[O])});function w(O){return g[O]===void 0}Object.keys(m).forEach(function(O){var R=d[O].fileIDs.filter(w);if(R.length===0){delete m[O];return}var x=l.getState(),A=x.capabilities;if(R.length!==d[O].fileIDs.length&&!A.individualCancellation)throw new Error("individualCancellation is disabled");m[O]=ue(ue({},d[O]),{},{fileIDs:R})});var P={currentUploads:m,files:y};Object.keys(y).length===0&&(P.allowNewUpload=!0,P.error=null,P.recoveredState=null),this.setState(P),this.calculateTotalProgress();var E=Object.keys(g);E.forEach(function(O){l.emit("file-removed",g[O],a)}),E.length>5?this.log("Removed ".concat(E.length," files")):this.log("Removed files: ".concat(E.join(", ")))}},{key:"removeFile",value:function(i,a){this.removeFiles([i],a)}},{key:"pauseResume",value:function(i){if(!(!this.getState().capabilities.resumableUploads||this.getFile(i).progress.uploadComplete)){var a=this.getFile(i).isPaused||!1,l=!a;return this.setFileState(i,{isPaused:l}),this.emit("upload-pause",i,l),l}}},{key:"pauseAll",value:function(){var i=ue({},this.getState().files),a=Object.keys(i).filter(function(l){return!i[l].progress.uploadComplete&&i[l].progress.uploadStarted});a.forEach(function(l){var c=ue(ue({},i[l]),{},{isPaused:!0});i[l]=c}),this.setState({files:i}),this.emit("pause-all")}},{key:"resumeAll",value:function(){var i=ue({},this.getState().files),a=Object.keys(i).filter(function(l){return!i[l].progress.uploadComplete&&i[l].progress.uploadStarted});a.forEach(function(l){var c=ue(ue({},i[l]),{},{isPaused:!1,error:null});i[l]=c}),this.setState({files:i}),this.emit("resume-all")}},{key:"retryAll",value:function(){var i=ue({},this.getState().files),a=Object.keys(i).filter(function(c){return i[c].error});if(a.forEach(function(c){var f=ue(ue({},i[c]),{},{isPaused:!1,error:null});i[c]=f}),this.setState({files:i,error:null}),this.emit("retry-all",a),a.length===0)return Promise.resolve({successful:[],failed:[]});var l=pe(this,ra)[ra](a,{forceAllowNewUpload:!0});return pe(this,na)[na](l)}},{key:"cancelAll",value:function(i){var a=i===void 0?{}:i,l=a.reason,c=l===void 0?"user":l;if(this.emit("cancel-all",{reason:c}),c==="user"){var f=this.getState(),d=f.files,y=Object.keys(d);y.length&&this.removeFiles(y,"cancel-all"),this.setState(Xw)}}},{key:"retryUpload",value:function(i){this.setFileState(i,{error:null,isPaused:!1}),this.emit("upload-retry",i);var a=pe(this,ra)[ra]([i],{forceAllowNewUpload:!0});return pe(this,na)[na](a)}},{key:"logout",value:function(){this.iteratePlugins(function(i){var a;(a=i.provider)==null||a.logout==null||a.logout()})}},{key:"calculateTotalProgress",value:function(){var i=this.getFiles(),a=i.filter(function(E){return E.progress.uploadStarted||E.progress.preprocess||E.progress.postprocess});if(a.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}var l=a.filter(function(E){return E.progress.bytesTotal!=null}),c=a.filter(function(E){return E.progress.bytesTotal==null});if(l.length===0){var f=a.length*100,d=c.reduce(function(E,O){return E+O.progress.percentage},0),y=Math.round(d/f*100);this.setState({totalProgress:y});return}var m=l.reduce(function(E,O){var R;return E+((R=O.progress.bytesTotal)!=null?R:0)},0),g=m/l.length;m+=g*c.length;var w=0;l.forEach(function(E){w+=E.progress.bytesUploaded}),c.forEach(function(E){w+=g*(E.progress.percentage||0)/100});var P=m===0?0:Math.round(w/m*100);P>100&&(P=100),this.setState({totalProgress:P}),this.emit("progress",P)}},{key:"updateOnlineStatus",value:function(){var i,a=(i=window.navigator.onLine)!=null?i:!0;a?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}},{key:"getID",value:function(){return this.opts.id}},{key:"use",value:function(i,a){if(typeof i!="function"){var l="Expected a plugin class, but got ".concat(i===null?"null":pi(i),".")+" Please verify that the plugin was imported and spelled correctly.";throw new TypeError(l)}var c=new i(this,a),f=c.id;if(!f)throw new Error("Your plugin must have an id");if(!c.type)throw new Error("Your plugin must have a type");var d=this.getPlugin(f);if(d){var y="Already found a plugin named '".concat(d.id,"'. ")+"Tried to use: '".concat(f,"'.\n")+"Uppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.";throw new Error(y)}return i.VERSION&&this.log("Using ".concat(f," v").concat(i.VERSION)),c.type in pe(this,Er)[Er]?pe(this,Er)[Er][c.type].push(c):pe(this,Er)[Er][c.type]=[c],c.install(),this.emit("plugin-added",c),this}},{key:"getPlugin",value:function(i){for(var a=0,l=Object.values(pe(this,Er)[Er]);a<l.length;a++){var c=l[a],f=c.find(function(d){return d.id===i});if(f!=null)return f}}},{key:t,value:function(i){return pe(this,Er)[Er][i]}},{key:"iteratePlugins",value:function(i){Object.values(pe(this,Er)[Er]).flat(1).forEach(i)}},{key:"removePlugin",value:function(i){this.log("Removing plugin ".concat(i.id)),this.emit("plugin-remove",i),i.uninstall&&i.uninstall();var a=pe(this,Er)[Er][i.type],l=a.findIndex(function(d){return d.id===i.id});l!==-1&&a.splice(l,1);var c=this.getState(),f={plugins:ue(ue({},c.plugins),{},_f({},i.id,void 0))};this.setState(f)}},{key:"close",value:function(i){var a=this,l=i===void 0?{}:i,c=l.reason;this.log("Closing Uppy instance ".concat(this.opts.id,": removing all files and uninstalling plugins")),this.cancelAll({reason:c}),pe(this,zd)[zd](),this.iteratePlugins(function(f){a.removePlugin(f)}),typeof window!="undefined"&&window.removeEventListener&&(window.removeEventListener("online",pe(this,Ci)[Ci]),window.removeEventListener("offline",pe(this,Ci)[Ci]))}},{key:"hideInfo",value:function(){var i=this.getState(),a=i.info;this.setState({info:a.slice(1)}),this.emit("info-hidden")}},{key:"info",value:function(i,a,l){var c=this;a===void 0&&(a="info"),l===void 0&&(l=3e3);var f=pi(i)==="object";this.setState({info:[].concat(Qw(this.getState().info),[{type:a,message:f?i.message:i,details:f?i.details:null}])}),setTimeout(function(){return c.hideInfo()},l),this.emit("info-visible")}},{key:"log",value:function(i,a){var l=this.opts.logger;switch(a){case"error":l.error(i);break;case"warning":l.warn(i);break;default:l.debug(i);break}}},{key:"registerRequestClient",value:function(i,a){pe(this,Kd)[Kd].set(i,a)}},{key:"getRequestClientForFile",value:function(i){if(!i.remote)throw new Error("Tried to get RequestClient for a non-remote file ".concat(i.id));var a=pe(this,Kd)[Kd].get(i.remote.requestClientId);if(a==null)throw new Error('requestClientId "'.concat(i.remote.requestClientId,'" not registered for file "').concat(i.id,'"'));return a}},{key:"restore",value:function(i){return this.log('Core: attempting to restore upload "'.concat(i,'"')),this.getState().currentUploads[i]?pe(this,na)[na](i):(pe(this,il)[il](i),Promise.reject(new Error("Nonexistent upload")))}},{key:e,value:function(){var i;return(i=pe(this,ra))[ra].apply(i,arguments)}},{key:"addResultData",value:function(i,a){if(!pe(this,rR)[rR](i)){this.log("Not setting result for an upload that has been removed: ".concat(i));return}var l=this.getState(),c=l.currentUploads,f=ue(ue({},c[i]),{},{result:ue(ue({},c[i].result),a)});this.setState({currentUploads:ue(ue({},c),{},_f({},i,f))})}},{key:"upload",value:function(){var i=this,a;(a=pe(this,Er)[Er].uploader)!=null&&a.length||this.log("No uploader type plugins are used","warning");var l=this.getState(),c=l.files,f=this.opts.onBeforeUpload(c);return f===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(f&&pi(f)==="object"&&(c=f,this.setState({files:c})),Promise.resolve().then(function(){return pe(i,Ln)[Ln].validateMinNumberOfFiles(c)}).catch(function(d){throw pe(i,Cn)[Cn]([d]),d}).then(function(){if(!pe(i,eR)[eR](c))throw new fi(i.i18n("missingRequiredMetaField"))}).catch(function(d){throw d}).then(function(){var d=i.getState(),y=d.currentUploads,m=Object.values(y).flatMap(function(P){return P.fileIDs}),g=[];Object.keys(c).forEach(function(P){var E=i.getFile(P);!E.progress.uploadStarted&&m.indexOf(P)===-1&&g.push(E.id)});var w=pe(i,ra)[ra](g);return pe(i,na)[na](w)}).catch(function(d){throw i.emit("error",d),i.log(d,"error"),d}))}}]),r}(iV,oV);function VHe(t){var e=this,r=rV(t),n;try{for(r.s();!(n=r.n()).done;){var i=n.value;i.isRestriction?this.emit("restriction-failed",i.file,i):this.emit("error",i,i.file),this.log(i,"warning")}}catch(d){r.e(d)}finally{r.f()}var a=t.filter(function(d){return d.isUserFacing}),l=4,c=a.slice(0,l),f=a.slice(l);c.forEach(function(d){var y=d.message,m=d.details,g=m===void 0?"":m;e.info({message:y,details:g},"error",e.opts.infoTimeout)}),f.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:f.length})})}function KHe(t){var e=pe(this,Ln)[Ln].getMissingRequiredMetaFields(t),r=e.missingFields,n=e.error;return r.length>0?(this.setFileState(t.id,{missingRequiredMetaFields:r}),this.log(n.message),this.emit("restriction-failed",t,n),!1):!0}function YHe(t){for(var e=!0,r=0,n=Object.values(t);r<n.length;r++){var i=n[r];pe(this,Yd)[Yd](i)||(e=!1)}return e}function XHe(t){var e=this.getState(),r=e.allowNewUpload;if(r===!1){var n=new fi(this.i18n("noMoreFilesAllowed"),{file:t});throw pe(this,Cn)[Cn]([n]),n}}function QHe(t){var e=t instanceof File?{name:t.name,type:t.type,size:t.size,data:t}:t,r=tl(e),n=Kx(r,e),i=bo(n).extension,a=Kw(e,this.getID()),l=e.meta||{};l.name=n,l.type=r;var c=Number.isFinite(e.data.size)?e.data.size:null;return{source:e.source||"",id:a,name:n,extension:i||"",meta:ue(ue({},this.getState().meta),l),type:r,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:c,uploadComplete:!1,uploadStarted:null},size:c,isGhost:!1,isRemote:e.isRemote||!1,remote:e.remote||"",preview:e.preview}}function JHe(){var t=this;this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(function(){t.scheduledAutoProceed=null,t.upload().catch(function(e){e.isRestriction||t.log(e.stack||e.message||e)})},4))}function ZHe(t){var e=this.getState(),r=e.files,n=ue({},r),i=[],a=[],l=rV(t),c;try{for(l.s();!(c=l.n()).done;){var f=c.value;try{var d,y=pe(this,oR)[oR](f),m=(d=r[y.id])==null?void 0:d.isGhost;if(m){var g=r[y.id];y=ue(ue({},g),{},{isGhost:!1,data:f.data}),this.log("Replaced the blob in the restored ghost file: ".concat(y.name,", ").concat(y.id))}var w=this.opts.onBeforeFileAdded(y,n);if(!w&&this.checkIfFileAlreadyExists(y.id))throw new fi(this.i18n("noDuplicates",{fileName:y.name}),{file:f});if(w===!1&&!m)throw new fi("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:f});pi(w)==="object"&&w!==null&&(y=w),pe(this,Ln)[Ln].validateSingleFile(y),n[y.id]=y,i.push(y)}catch(P){a.push(P)}}}catch(P){l.e(P)}finally{l.f()}try{pe(this,Ln)[Ln].validateAggregateRestrictions(Object.values(r),i)}catch(P){return a.push(P),{nextFilesState:r,validFilesToAdd:[],errors:a}}return{nextFilesState:n,validFilesToAdd:i,errors:a}}function eWe(){var t=this,e=function(a,l,c){var f=a.message||"Unknown error";a.details&&(f+=" ".concat(a.details)),t.setState({error:f}),l!=null&&l.id in t.getState().files&&t.setFileState(l.id,{error:f,response:c})};this.on("error",e),this.on("upload-error",function(i,a,l){if(e(a,i,l),pi(a)==="object"&&a.message){var c;t.log(a.message,"error");var f=new Error(t.i18n("failedToUpload",{file:(c=i==null?void 0:i.name)!=null?c:""}));f.isUserFacing=!0,f.details=a.message,a.details&&(f.details+=" ".concat(a.details)),pe(t,Cn)[Cn]([f])}else pe(t,Cn)[Cn]([a])});var r=null;this.on("upload-stalled",function(i,a){var l=i.message,c=a.map(function(f){return f.meta.name}).join(", ");r||(t.info({message:l,details:c},"warning",t.opts.infoTimeout),r=setTimeout(function(){r=null},t.opts.infoTimeout)),t.log("".concat(l," ").concat(c).trim(),"warning")}),this.on("upload",function(){t.setState({error:null})});var n=function(a){var l=a.filter(function(f){var d=f!=null&&t.getFile(f.id);return d||t.log("Not setting progress for a file that has been removed: ".concat(f==null?void 0:f.id)),d}),c=Object.fromEntries(l.map(function(f){return[f.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:f.size}}]}));t.patchFilesState(c)};this.on("upload-start",function(i){i.forEach(function(a){t.emit("upload-started",a)}),n(i)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",function(i,a){if(i==null||!t.getFile(i.id)){t.log("Not setting progress for a file that has been removed: ".concat(i==null?void 0:i.id));return}var l=t.getFile(i.id).progress;t.setFileState(i.id,{progress:ue(ue({},l),{},{postprocess:pe(t,ia)[ia].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:l.bytesTotal}),response:a,uploadURL:a.uploadURL,isPaused:!1}),i.size==null&&t.setFileState(i.id,{size:a.bytesUploaded||l.bytesTotal}),t.calculateTotalProgress()}),this.on("preprocess-progress",function(i,a){if(i==null||!t.getFile(i.id)){t.log("Not setting progress for a file that has been removed: ".concat(i==null?void 0:i.id));return}t.setFileState(i.id,{progress:ue(ue({},t.getFile(i.id).progress),{},{preprocess:a})})}),this.on("preprocess-complete",function(i){if(i==null||!t.getFile(i.id)){t.log("Not setting progress for a file that has been removed: ".concat(i==null?void 0:i.id));return}var a=ue({},t.getState().files);a[i.id]=ue(ue({},a[i.id]),{},{progress:ue({},a[i.id].progress)}),delete a[i.id].progress.preprocess,t.setState({files:a})}),this.on("postprocess-progress",function(i,a){if(i==null||!t.getFile(i.id)){t.log("Not setting progress for a file that has been removed: ".concat(i==null?void 0:i.id));return}t.setFileState(i.id,{progress:ue(ue({},t.getState().files[i.id].progress),{},{postprocess:a})})}),this.on("postprocess-complete",function(i){if(i==null||!t.getFile(i.id)){t.log("Not setting progress for a file that has been removed: ".concat(i==null?void 0:i.id));return}var a=ue({},t.getState().files);a[i.id]=ue(ue({},a[i.id]),{},{progress:ue({},a[i.id].progress)}),delete a[i.id].progress.postprocess,t.setState({files:a})}),this.on("restored",function(){t.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",function(i){i&&pe(t,Yd)[Yd](i)}),typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("online",pe(this,Ci)[Ci]),window.addEventListener("offline",pe(this,Ci)[Ci]),setTimeout(pe(this,Ci)[Ci],3e3))}function tWe(t,e){e===void 0&&(e={});var r=e,n=r.forceAllowNewUpload,i=n===void 0?!1:n,a=this.getState(),l=a.allowNewUpload,c=a.currentUploads;if(!l&&!i)throw new Error("Cannot create a new upload: already uploading.");var f=Sn();return this.emit("upload",{id:f,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:ue(ue({},c),{},_f({},f,{fileIDs:t,step:0,result:{}}))}),f}function rWe(t){var e=this.getState(),r=e.currentUploads;return r[t]}function nWe(t){var e=ue({},this.getState().currentUploads);delete e[t],this.setState({currentUploads:e})}function iWe(t){return aR.apply(this,arguments)}function aR(){return aR=LHe(nR().mark(function t(e){var r=this,n,i,a,l,c,f,d,y,m,g,w;return nR().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:n=function(){var R=r.getState(),x=R.currentUploads;return x[e]},i=n(),a=[].concat(Qw(pe(this,rl)[rl]),Qw(pe(this,nl)[nl]),Qw(pe(this,ia)[ia])),E.prev=3,l=i.step||0;case 5:if(!(l<a.length)){E.next=17;break}if(i){E.next=8;break}return E.abrupt("break",17);case 8:return c=a[l],this.setState({currentUploads:ue(ue({},this.getState().currentUploads),{},_f({},e,ue(ue({},i),{},{step:l})))}),f=i,d=f.fileIDs,E.next=13,c(d,e);case 13:i=n();case 14:l++,E.next=5;break;case 17:E.next=23;break;case 19:throw E.prev=19,E.t0=E.catch(3),pe(this,il)[il](e),E.t0;case 23:return i&&(i.fileIDs.forEach(function(O){var R=r.getFile(O);R&&R.progress.postprocess&&r.emit("postprocess-complete",R)}),y=i.fileIDs.map(function(O){return r.getFile(O)}),m=y.filter(function(O){return!O.error}),g=y.filter(function(O){return O.error}),this.addResultData(e,{successful:m,failed:g,uploadID:e}),i=n()),i&&(w=i.result,this.emit("complete",w),pe(this,il)[il](e)),w==null&&this.log("Not setting result for an upload that has been removed: ".concat(e)),E.abrupt("return",w);case 27:case"end":return E.stop()}},t,this,[[3,19]])})),aR.apply(this,arguments)}sV.VERSION=WHe.version;var sR=sV;var Jd,je,dV,oWe,Xd,lV,aWe,Jw={},vV=[],uWe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function oa(t,e){for(var r in e)t[r]=e[r];return t}function yV(t){var e=t.parentNode;e&&e.removeChild(t)}function T(t,e,r){var n,i,a,l={};for(a in e)a=="key"?n=e[a]:a=="ref"?i=e[a]:l[a]=e[a];if(arguments.length>2&&(l.children=arguments.length>3?Jd.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(a in t.defaultProps)l[a]===void 0&&(l[a]=t.defaultProps[a]);return Qd(t,l,n,i,null)}function Qd(t,e,r,n,i){var a={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++dV:i};return i==null&&je.vnode!=null&&je.vnode(a),a}function mV(){return{current:null}}function mr(t){return t.children}function ct(t,e){this.props=t,this.context=e}function Pf(t,e){if(e==null)return t.__?Pf(t.__,t.__.__k.indexOf(t)+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?Pf(t):null}function gV(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return gV(t)}}function cV(t){(!t.__d&&(t.__d=!0)&&Xd.push(t)&&!Zw.__r++||lV!==je.debounceRendering)&&((lV=je.debounceRendering)||setTimeout)(Zw)}function Zw(){for(var t;Zw.__r=Xd.length;)t=Xd.sort(function(e,r){return e.__v.__b-r.__v.__b}),Xd=[],t.some(function(e){var r,n,i,a,l,c;e.__d&&(l=(a=(r=e).__v).__e,(c=r.__P)&&(n=[],(i=oa({},a)).__v=a.__v+1,lR(c,a,i,r.__n,c.ownerSVGElement!==void 0,a.__h!=null?[l]:null,n,l==null?Pf(a):l,a.__h),SV(n,a),a.__e!=l&&gV(a)))})}function bV(t,e,r,n,i,a,l,c,f,d){var y,m,g,w,P,E,O,R=n&&n.__k||vV,x=R.length;for(r.__k=[],y=0;y<e.length;y++)if((w=r.__k[y]=(w=e[y])==null||typeof w=="boolean"?null:typeof w=="string"||typeof w=="number"||typeof w=="bigint"?Qd(null,w,null,null,w):Array.isArray(w)?Qd(mr,{children:w},null,null,null):w.__b>0?Qd(w.type,w.props,w.key,null,w.__v):w)!=null){if(w.__=r,w.__b=r.__b+1,(g=R[y])===null||g&&w.key==g.key&&w.type===g.type)R[y]=void 0;else for(m=0;m<x;m++){if((g=R[m])&&w.key==g.key&&w.type===g.type){R[m]=void 0;break}g=null}lR(t,w,g=g||Jw,i,a,l,c,f,d),P=w.__e,(m=w.ref)&&g.ref!=m&&(O||(O=[]),g.ref&&O.push(g.ref,null,w),O.push(m,w.__c||P,w)),P!=null?(E==null&&(E=P),typeof w.type=="function"&&w.__k===g.__k?w.__d=f=wV(w,f,t):f=OV(t,w,g,R,P,f),typeof r.type=="function"&&(r.__d=f)):f&&g.__e==f&&f.parentNode!=t&&(f=Pf(g))}for(r.__e=E,y=x;y--;)R[y]!=null&&(typeof r.type=="function"&&R[y].__e!=null&&R[y].__e==r.__d&&(r.__d=Pf(n,y+1)),PV(R[y],R[y]));if(O)for(y=0;y<O.length;y++)_V(O[y],O[++y],O[++y])}function wV(t,e,r){for(var n,i=t.__k,a=0;i&&a<i.length;a++)(n=i[a])&&(n.__=t,e=typeof n.type=="function"?wV(n,e,r):OV(r,n,n,i,n.__e,e));return e}function hi(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(r){hi(r,e)}):e.push(t)),e}function OV(t,e,r,n,i,a){var l,c,f;if(e.__d!==void 0)l=e.__d,e.__d=void 0;else if(r==null||i!=a||i.parentNode==null)e:if(a==null||a.parentNode!==t)t.appendChild(i),l=null;else{for(c=a,f=0;(c=c.nextSibling)&&f<n.length;f+=2)if(c==i)break e;t.insertBefore(i,a),l=a}return l!==void 0?l:i.nextSibling}function sWe(t,e,r,n,i){var a;for(a in r)a==="children"||a==="key"||a in e||e0(t,a,null,r[a],n);for(a in e)i&&typeof e[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||r[a]===e[a]||e0(t,a,e[a],r[a],n)}function fV(t,e,r){e[0]==="-"?t.setProperty(e,r):t[e]=r==null?"":typeof r!="number"||uWe.test(e)?r:r+"px"}function e0(t,e,r,n,i){var a;e:if(e==="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof n=="string"&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||fV(t.style,e,"");if(r)for(e in r)n&&r[e]===n[e]||fV(t.style,e,r[e])}else if(e[0]==="o"&&e[1]==="n")a=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+a]=r,r?n||t.addEventListener(e,a?hV:pV,a):t.removeEventListener(e,a?hV:pV,a);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=r==null?"":r;break e}catch(l){}typeof r=="function"||(r!=null&&(r!==!1||e[0]==="a"&&e[1]==="r")?t.setAttribute(e,r):t.removeAttribute(e))}}function pV(t){this.l[t.type+!1](je.event?je.event(t):t)}function hV(t){this.l[t.type+!0](je.event?je.event(t):t)}function lR(t,e,r,n,i,a,l,c,f){var d,y,m,g,w,P,E,O,R,x,A,I,N,j=e.type;if(e.constructor!==void 0)return null;r.__h!=null&&(f=r.__h,c=e.__e=r.__e,e.__h=null,a=[c]),(d=je.__b)&&d(e);try{e:if(typeof j=="function"){if(O=e.props,R=(d=j.contextType)&&n[d.__c],x=d?R?R.props.value:d.__:n,r.__c?E=(y=e.__c=r.__c).__=y.__E:("prototype"in j&&j.prototype.render?e.__c=y=new j(O,x):(e.__c=y=new ct(O,x),y.constructor=j,y.render=cWe),R&&R.sub(y),y.props=O,y.state||(y.state={}),y.context=x,y.__n=n,m=y.__d=!0,y.__h=[]),y.__s==null&&(y.__s=y.state),j.getDerivedStateFromProps!=null&&(y.__s==y.state&&(y.__s=oa({},y.__s)),oa(y.__s,j.getDerivedStateFromProps(O,y.__s))),g=y.props,w=y.state,m)j.getDerivedStateFromProps==null&&y.componentWillMount!=null&&y.componentWillMount(),y.componentDidMount!=null&&y.__h.push(y.componentDidMount);else{if(j.getDerivedStateFromProps==null&&O!==g&&y.componentWillReceiveProps!=null&&y.componentWillReceiveProps(O,x),!y.__e&&y.shouldComponentUpdate!=null&&y.shouldComponentUpdate(O,y.__s,x)===!1||e.__v===r.__v){y.props=O,y.state=y.__s,e.__v!==r.__v&&(y.__d=!1),y.__v=e,e.__e=r.__e,e.__k=r.__k,e.__k.forEach(function(k){k&&(k.__=e)}),y.__h.length&&l.push(y);break e}y.componentWillUpdate!=null&&y.componentWillUpdate(O,y.__s,x),y.componentDidUpdate!=null&&y.__h.push(function(){y.componentDidUpdate(g,w,P)})}if(y.context=x,y.props=O,y.__v=e,y.__P=t,A=je.__r,I=0,"prototype"in j&&j.prototype.render)y.state=y.__s,y.__d=!1,A&&A(e),d=y.render(y.props,y.state,y.context);else do y.__d=!1,A&&A(e),d=y.render(y.props,y.state,y.context),y.state=y.__s;while(y.__d&&++I<25);y.state=y.__s,y.getChildContext!=null&&(n=oa(oa({},n),y.getChildContext())),m||y.getSnapshotBeforeUpdate==null||(P=y.getSnapshotBeforeUpdate(g,w)),N=d!=null&&d.type===mr&&d.key==null?d.props.children:d,bV(t,Array.isArray(N)?N:[N],e,r,n,i,a,l,c,f),y.base=e.__e,e.__h=null,y.__h.length&&l.push(y),E&&(y.__E=y.__=null),y.__e=!1}else a==null&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=lWe(r.__e,e,r,n,i,a,l,f);(d=je.diffed)&&d(e)}catch(k){e.__v=null,(f||a!=null)&&(e.__e=c,e.__h=!!f,a[a.indexOf(c)]=null),je.__e(k,e,r)}}function SV(t,e){je.__c&&je.__c(e,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(n){n.call(r)})}catch(n){je.__e(n,r.__v)}})}function lWe(t,e,r,n,i,a,l,c){var f,d,y,m=r.props,g=e.props,w=e.type,P=0;if(w==="svg"&&(i=!0),a!=null){for(;P<a.length;P++)if((f=a[P])&&"setAttribute"in f==!!w&&(w?f.localName===w:f.nodeType===3)){t=f,a[P]=null;break}}if(t==null){if(w===null)return document.createTextNode(g);t=i?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,g.is&&g),a=null,c=!1}if(w===null)m===g||c&&t.data===g||(t.data=g);else{if(a=a&&Jd.call(t.childNodes),d=(m=r.props||Jw).dangerouslySetInnerHTML,y=g.dangerouslySetInnerHTML,!c){if(a!=null)for(m={},P=0;P<t.attributes.length;P++)m[t.attributes[P].name]=t.attributes[P].value;(y||d)&&(y&&(d&&y.__html==d.__html||y.__html===t.innerHTML)||(t.innerHTML=y&&y.__html||""))}if(sWe(t,g,m,i,c),y)e.__k=[];else if(P=e.props.children,bV(t,Array.isArray(P)?P:[P],e,r,n,i&&w!=="foreignObject",a,l,a?a[0]:r.__k&&Pf(r,0),c),a!=null)for(P=a.length;P--;)a[P]!=null&&yV(a[P]);c||("value"in g&&(P=g.value)!==void 0&&(P!==t.value||w==="progress"&&!P||w==="option"&&P!==m.value)&&e0(t,"value",P,m.value,!1),"checked"in g&&(P=g.checked)!==void 0&&P!==t.checked&&e0(t,"checked",P,m.checked,!1))}return t}function _V(t,e,r){try{typeof t=="function"?t(e):t.current=e}catch(n){je.__e(n,r)}}function PV(t,e,r){var n,i;if(je.unmount&&je.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||_V(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){je.__e(a,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&PV(n[i],e,typeof t.type!="function");r||t.__e==null||yV(t.__e),t.__e=t.__d=void 0}function cWe(t,e,r){return this.constructor(t,r)}function cR(t,e,r){var n,i,a;je.__&&je.__(t,e),i=(n=typeof r=="function")?null:r&&r.__k||e.__k,a=[],lR(e,t=(!n&&r||e).__k=T(mr,null,[t]),i||Jw,Jw,e.ownerSVGElement!==void 0,!n&&r?[r]:i?null:e.firstChild?Jd.call(e.childNodes):null,a,!n&&r?r:i?i.__e:e.firstChild,n),SV(a,t)}function t0(t,e,r){var n,i,a,l=oa({},t.props);for(a in e)a=="key"?n=e[a]:a=="ref"?i=e[a]:l[a]=e[a];return arguments.length>2&&(l.children=arguments.length>3?Jd.call(arguments,2):r),Qd(t.type,l,n||t.key,i||t.ref,null)}Jd=vV.slice,je={__e:function(e,r,n,i){for(var a,l,c;r=r.__;)if((a=r.__c)&&!a.__)try{if((l=a.constructor)&&l.getDerivedStateFromError!=null&&(a.setState(l.getDerivedStateFromError(e)),c=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(e,i||{}),c=a.__d),c)return a.__E=a}catch(f){e=f}throw e}},dV=0,oWe=function(e){return e!=null&&e.constructor===void 0},ct.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=oa({},this.state),typeof t=="function"&&(t=t(oa({},r),this.props)),t&&oa(r,t),t!=null&&this.__v&&(e&&this.__h.push(e),cV(this))},ct.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),cV(this))},ct.prototype.render=mr,Xd=[],Zw.__r=0,aWe=0;function fR(t){"@babel/helpers - typeof";return fR=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fR(t)}function Zd(t){return fR(t)!=="object"||t===null||!("nodeType"in t)?!1:t.nodeType===Node.ELEMENT_NODE}function fWe(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):Zd(t)?t:null}var r0=fWe;function pWe(t){for(var e;t&&!t.dir;)t=t.parentNode;return(e=t)==null?void 0:e.dir}var n0=pWe;function ev(t){"@babel/helpers - typeof";return ev=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ev(t)}function EV(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ef(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?EV(Object(r),!0).forEach(function(n){AV(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):EV(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function AV(t,e,r){return e=xV(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hWe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TV(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xV(n.key),n)}}function dWe(t,e,r){return e&&TV(t.prototype,e),r&&TV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function xV(t){var e=vWe(t,"string");return ev(e)=="symbol"?e:String(e)}function vWe(t,e){if(ev(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ev(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ht=function(){function t(e,r){hWe(this,t),this.uppy=e,this.opts=r!=null?r:{}}return dWe(t,[{key:"getPluginState",value:function(){var r=this.uppy.getState(),n=r.plugins;return(n==null?void 0:n[this.id])||{}}},{key:"setPluginState",value:function(r){var n=this.uppy.getState(),i=n.plugins;this.uppy.setState({plugins:Ef(Ef({},i),{},AV({},this.id,Ef(Ef({},i[this.id]),r)))})}},{key:"setOptions",value:function(r){this.opts=Ef(Ef({},this.opts),r),this.setPluginState(void 0),this.i18nInit()}},{key:"i18nInit",value:function(){var r=new $w([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=r.translate.bind(r),this.i18nArray=r.translateArray.bind(r),this.setPluginState(void 0)}},{key:"addTarget",value:function(r){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}},{key:"update",value:function(r){}},{key:"afterUpdate",value:function(){}}]),t}();function Tf(t){"@babel/helpers - typeof";return Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tf(t)}function yWe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RV(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,gWe(n.key),n)}}function mWe(t,e,r){return e&&RV(t.prototype,e),r&&RV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function gWe(t){var e=bWe(t,"string");return Tf(e)=="symbol"?e:String(e)}function bWe(t,e){if(Tf(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wWe(t,e,r){return e=i0(e),OWe(t,kV()?Reflect.construct(e,r||[],i0(t).constructor):e.apply(t,r))}function OWe(t,e){if(e&&(Tf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jV(t)}function kV(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(kV=function(){return!!t})()}function i0(t){return i0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},i0(t)}function jV(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function SWe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pR(t,e)}function pR(t,e){return pR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pR(t,e)}function _We(t){return AWe(t)||TWe(t)||EWe(t)||PWe()}function PWe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function EWe(t,e){if(t){if(typeof t=="string")return hR(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hR(t,e)}}function TWe(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function AWe(t){if(Array.isArray(t))return hR(t)}function hR(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function IV(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var xWe=0;function RWe(t){return"__private_"+xWe+++"_"+t}function IWe(t){var e=null,r;return function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=i,e||(e=Promise.resolve().then(function(){return e=null,t.apply(void 0,_We(r))})),e}}var tv=RWe("updateUI"),kWe=function(t){SWe(e,t);function e(){var r;return yWe(this,e),r=wWe(this,e,arguments),Object.defineProperty(jV(r),tv,{writable:!0,value:void 0}),r}return mWe(e,[{key:"getTargetPlugin",value:function(n){var i;if(typeof(n==null?void 0:n.addTarget)=="function")i=n,i instanceof e||console.warn(new Error("The provided plugin is not an instance of UIPlugin. This is an indication of a bug with the way Uppy is bundled.",{cause:{targetPlugin:i,UIPlugin:e}}));else if(typeof n=="function"){var a=n;this.uppy.iteratePlugins(function(l){l instanceof a&&(i=l)})}return i}},{key:"mount",value:function(n,i){var a=this,l=i.id,c=r0(n);if(c){this.isTargetDOMEl=!0;var f=document.createElement("div");return f.classList.add("uppy-Root"),IV(this,tv)[tv]=IWe(function(m){a.uppy.getPlugin(a.id)&&(cR(a.render(m),f),a.afterUpdate())}),this.uppy.log("Installing ".concat(l," to a DOM element '").concat(n,"'")),this.opts.replaceTargetContent&&(c.innerHTML=""),cR(this.render(this.uppy.getState()),f),this.el=f,c.appendChild(f),f.dir=this.opts.direction||n0(f)||"ltr",this.onMount(),this.el}var d=this.getTargetPlugin(n);if(d)return this.uppy.log("Installing ".concat(l," to ").concat(d.id)),this.parent=d,this.el=d.addTarget(i),this.onMount(),this.el;this.uppy.log("Not installing ".concat(l));var y="Invalid target option given to ".concat(l,".");throw typeof n=="function"?y+=" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":y+="If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(y)}},{key:"render",value:function(n){throw new Error("Extend the render method to add your plugin to a DOM element")}},{key:"update",value:function(n){if(this.el!=null){var i,a;(i=(a=IV(this,tv))[tv])==null||i.call(a,n)}}},{key:"unmount",value:function(){if(this.isTargetDOMEl){var n;(n=this.el)==null||n.remove()}this.onUnmount()}},{key:"onMount",value:function(){}},{key:"onUnmount",value:function(){}}]),e}(ht),Ae=kWe;var DR={};zm(DR,{Provider:function(){return Ur},RequestClient:function(){return Mn},SearchProvider:function(){return f0},Socket:function(){return OK},getAllowedHosts:function(){return ir},tokenStorage:function(){return or}});function Af(t){"@babel/helpers - typeof";return Af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Af(t)}function qV(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,qWe(n.key),n)}}function jWe(t,e,r){return e&&qV(t.prototype,e),r&&qV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function qWe(t){var e=FWe(t,"string");return Af(e)=="symbol"?e:String(e)}function FWe(t,e){if(Af(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Af(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function LWe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CWe(t,e,r){return e=nv(e),NWe(t,vR()?Reflect.construct(e,r||[],nv(t).constructor):e.apply(t,r))}function NWe(t,e){if(e&&(Af(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DWe(t)}function DWe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function MWe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rv(t,e)}function dR(t){var e=typeof Map=="function"?new Map:void 0;return dR=function(n){if(n===null||!BWe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return UWe(n,arguments,nv(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),rv(i,n)},dR(t)}function UWe(t,e,r){if(vR())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&rv(i,r.prototype),i}function vR(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(vR=function(){return!!t})()}function BWe(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch(e){return typeof t=="function"}}function rv(t,e){return rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rv(t,e)}function nv(t){return nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nv(t)}var GWe=function(t){MWe(e,t);function e(){var r;return LWe(this,e),r=CWe(this,e,arguments),r.name="UserFacingApiError",r}return jWe(e)}(dR(Error)),FV=GWe;var WV=Ce(MV(),1);var zWe=Object.prototype.toString,HWe=function(e){return zWe.call(e)==="[object Error]"},WWe=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed"]);function yR(t){var e=t&&HWe(t)&&t.name==="TypeError"&&typeof t.message=="string";return e?t.message==="Load failed"?t.stack===void 0:WWe.has(t.message):!1}function bu(t){"@babel/helpers - typeof";return bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bu(t)}function iv(){"use strict";iv=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&bu(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(bu(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function UV(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function VWe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?UV(Object(r),!0).forEach(function(n){KWe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):UV(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function KWe(t,e,r){return e=HV(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function BV(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function GV(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){BV(a,n,i,l,c,"next",f)}function c(f){BV(a,n,i,l,c,"throw",f)}l(void 0)})}}function $V(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,HV(n.key),n)}}function YWe(t,e,r){return e&&$V(t.prototype,e),r&&$V(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function HV(t){var e=XWe(t,"string");return bu(e)=="symbol"?e:String(e)}function XWe(t,e){if(bu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(bu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function QWe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JWe(t,e,r){return e=av(e),ZWe(t,bR()?Reflect.construct(e,r||[],av(t).constructor):e.apply(t,r))}function ZWe(t,e){if(e&&(bu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eVe(t)}function eVe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tVe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ov(t,e)}function mR(t){var e=typeof Map=="function"?new Map:void 0;return mR=function(n){if(n===null||!nVe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return rVe(n,arguments,av(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ov(i,n)},mR(t)}function rVe(t,e,r){if(bR())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&ov(i,r.prototype),i}function bR(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bR=function(){return!!t})()}function nVe(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch(e){return typeof t=="function"}}function ov(t,e){return ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ov(t,e)}function av(t){return av=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},av(t)}var o0=function(t){tVe(e,t);function e(r){var n;if(QWe(this,e),n=JWe(this,e),r instanceof Error){n.originalError=r;var i=r;r=i.message}else n.originalError=new Error(r),n.originalError.stack=n.stack;return n.name="AbortError",n.message=r,n}return YWe(e)}(mR(Error)),zV=function(e,r,n){var i=n.retries-(r-1);return e.attemptNumber=r,e.retriesLeft=i,e};function a0(t,e){return gR.apply(this,arguments)}function gR(){return gR=GV(iv().mark(function t(e,r){return iv().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",new Promise(function(a,l){r=VWe({onFailedAttempt:function(){},retries:10},r);var c=WV.default.operation(r),f=function(){var m;c.stop(),l((m=r.signal)===null||m===void 0?void 0:m.reason)};r.signal&&!r.signal.aborted&&r.signal.addEventListener("abort",f,{once:!0});var d=function(){var m;(m=r.signal)===null||m===void 0||m.removeEventListener("abort",f),c.stop()};c.attempt(function(){var y=GV(iv().mark(function m(g){var w;return iv().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.prev=0,E.next=3,e(g);case 3:w=E.sent,d(),a(w),E.next=28;break;case 8:if(E.prev=8,E.t0=E.catch(0),E.prev=10,E.t0 instanceof Error){E.next=13;break}throw new TypeError('Non-error was thrown: "'.concat(E.t0,'". You should only throw errors.'));case 13:if(!(E.t0 instanceof o0)){E.next=15;break}throw E.t0.originalError;case 15:if(!(E.t0 instanceof TypeError&&!yR(E.t0))){E.next=17;break}throw E.t0;case 17:return E.next=19,r.onFailedAttempt(zV(E.t0,g,r));case 19:if(c.retry(E.t0)){E.next=21;break}throw c.mainError();case 21:E.next=28;break;case 23:E.prev=23,E.t1=E.catch(10),zV(E.t1,g,r),d(),l(E.t1);case 28:case"end":return E.stop()}},m,null,[[0,8],[10,23]])}));return function(m){return y.apply(this,arguments)}}())}));case 1:case"end":return i.stop()}},t)})),gR.apply(this,arguments)}function xf(t){"@babel/helpers - typeof";return xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xf(t)}function VV(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,oVe(n.key),n)}}function iVe(t,e,r){return e&&VV(t.prototype,e),r&&VV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function oVe(t){var e=aVe(t,"string");return xf(e)=="symbol"?e:String(e)}function aVe(t,e){if(xf(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(xf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function uVe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sVe(t,e,r){return e=sv(e),lVe(t,OR()?Reflect.construct(e,r||[],sv(t).constructor):e.apply(t,r))}function lVe(t,e){if(e&&(xf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cVe(t)}function cVe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fVe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uv(t,e)}function wR(t){var e=typeof Map=="function"?new Map:void 0;return wR=function(n){if(n===null||!hVe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return pVe(n,arguments,sv(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),uv(i,n)},wR(t)}function pVe(t,e,r){if(OR())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&uv(i,r.prototype),i}function OR(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(OR=function(){return!!t})()}function hVe(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch(e){return typeof t=="function"}}function uv(t,e){return uv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uv(t,e)}function sv(t){return sv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sv(t)}var dVe=function(t){fVe(e,t);function e(r,n){var i;return uVe(this,e),n===void 0&&(n=null),i=sVe(this,e,["This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."]),i.cause=r,i.isNetworkError=!0,i.request=n,i}return iVe(e)}(wR(Error)),Mr=dVe;function al(){return fetch.apply(void 0,arguments).catch(function(t){throw t.name==="AbortError"?t:new Mr(t)})}function Nn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Rf(t){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rf(t)}function KV(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yVe(n.key),n)}}function vVe(t,e,r){return e&&KV(t.prototype,e),r&&KV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function yVe(t){var e=mVe(t,"string");return Rf(e)=="symbol"?e:String(e)}function mVe(t,e){if(Rf(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Rf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function gVe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bVe(t,e,r){return e=cv(e),wVe(t,_R()?Reflect.construct(e,r||[],cv(t).constructor):e.apply(t,r))}function wVe(t,e){if(e&&(Rf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OVe(t)}function OVe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function SVe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lv(t,e)}function SR(t){var e=typeof Map=="function"?new Map:void 0;return SR=function(n){if(n===null||!PVe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return _Ve(n,arguments,cv(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),lv(i,n)},SR(t)}function _Ve(t,e,r){if(_R())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&lv(i,r.prototype),i}function _R(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_R=function(){return!!t})()}function PVe(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch(e){return typeof t=="function"}}function lv(t,e){return lv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lv(t,e)}function cv(t){return cv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cv(t)}var EVe=function(t){SVe(e,t);function e(r,n){var i;return gVe(this,e),i=bVe(this,e,[r]),i.cause=n==null?void 0:n.cause,i.cause&&Nn(i.cause,"isNetworkError")?i.isNetworkError=i.cause.isNetworkError:i.isNetworkError=!1,i}return vVe(e)}(SR(Error)),aa=EVe;var YV=Ce(Hw(),1);function TVe(t,e,r){var n=e.progress,i=e.bytesUploaded,a=e.bytesTotal;n&&(t.uppy.log("Upload progress: ".concat(n)),t.uppy.emit("upload-progress",r,{uploader:t,bytesUploaded:i,bytesTotal:a}))}var XV=(0,YV.default)(TVe,300,{leading:!0,trailing:!0});function PR(t){var e,r=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i,n=(e=r.exec(t))==null?void 0:e[1],i=/^http:\/\//i.test(t)?"ws":"wss";return"".concat(i,"://").concat(n)}function If(t){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},If(t)}function QV(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xVe(n.key),n)}}function AVe(t,e,r){return e&&QV(t.prototype,e),r&&QV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function xVe(t){var e=RVe(t,"string");return If(e)=="symbol"?e:String(e)}function RVe(t,e){if(If(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(If(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function IVe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kVe(t,e,r){return e=pv(e),jVe(t,TR()?Reflect.construct(e,r||[],pv(t).constructor):e.apply(t,r))}function jVe(t,e){if(e&&(If(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qVe(t)}function qVe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function FVe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fv(t,e)}function ER(t){var e=typeof Map=="function"?new Map:void 0;return ER=function(n){if(n===null||!CVe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return LVe(n,arguments,pv(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),fv(i,n)},ER(t)}function LVe(t,e,r){if(TR())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&fv(i,r.prototype),i}function TR(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(TR=function(){return!!t})()}function CVe(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch(e){return typeof t=="function"}}function fv(t,e){return fv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fv(t,e)}function pv(t){return pv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pv(t)}var NVe=function(t){FVe(e,t);function e(){var r;return IVe(this,e),r=kVe(this,e,["Authorization required"]),r.name="AuthError",r.isAuthError=!0,r}return AVe(e)}(ER(Error)),JV=NVe;function wu(t){"@babel/helpers - typeof";return wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wu(t)}function ot(){"use strict";ot=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&wu(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(wu(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function ZV(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Dn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ZV(Object(r),!0).forEach(function(n){rK(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ZV(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function rK(t,e,r){return e=iK(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eK(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function _n(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){eK(a,n,i,l,c,"next",f)}function c(f){eK(a,n,i,l,c,"throw",f)}l(void 0)})}}function tK(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,iK(n.key),n)}}function nK(t,e,r){return e&&tK(t.prototype,e),r&&tK(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function iK(t){var e=DVe(t,"string");return wu(e)=="symbol"?e:String(e)}function DVe(t,e){if(wu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(wu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function oK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function MVe(t,e,r){return e=yv(e),UVe(t,kR()?Reflect.construct(e,r||[],yv(t).constructor):e.apply(t,r))}function UVe(t,e){if(e&&(wu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BVe(t)}function BVe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function GVe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vv(t,e)}function xR(t){var e=typeof Map=="function"?new Map:void 0;return xR=function(n){if(n===null||!zVe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return $Ve(n,arguments,yv(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),vv(i,n)},xR(t)}function $Ve(t,e,r){if(kR())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&vv(i,r.prototype),i}function kR(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(kR=function(){return!!t})()}function zVe(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch(e){return typeof t=="function"}}function vv(t,e){return vv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vv(t,e)}function yv(t){return yv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yv(t)}var aK;function ua(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var HVe=0;function u0(t){return"__private_"+HVe+++"_"+t}var WVe={version:"3.8.1"};function VVe(t){return t.replace(/\/$/,"")}var uK=10,KVe=5*60*1e3,jR=401,YVe=function(t){GVe(e,t);function e(r){var n;oK(this,e);var i=r.statusCode,a=r.message;return n=MVe(this,e,[a]),n.name="HttpError",n.statusCode=i,n}return nK(e)}(xR(Error));function XVe(t){return RR.apply(this,arguments)}function RR(){return RR=_n(ot().mark(function t(e){var r,n;return ot().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(e.status!==jR){a.next=2;break}throw new JV;case 2:if(!e.ok){a.next=4;break}return a.abrupt("return",e.json());case 4:return r="Failed request with status: ".concat(e.status,". ").concat(e.statusText),a.prev=5,a.next=8,e.json();case 8:n=a.sent,n.message&&(r="".concat(r," message: ").concat(n.message)),n.requestId&&(r="".concat(r," request-Id: ").concat(n.requestId)),a.next=16;break;case 13:throw a.prev=13,a.t0=a.catch(5),new Error(r,{cause:a.t0});case 16:if(!(e.status>=400&&e.status<=499&&n.message)){a.next=18;break}throw new FV(n.message);case 18:throw new YVe({statusCode:e.status,message:r});case 19:case"end":return a.stop()}},t,null,[[5,13]])})),RR.apply(this,arguments)}var sa=u0("companionHeaders"),hv=u0("getUrl"),AR=u0("requestSocketToken"),dv=u0("awaitRemoteFileUpload");aK=Symbol.for("uppy test: getCompanionHeaders");var Mn=function(t){function e(r,n){var i=this;oK(this,e),Object.defineProperty(this,dv,{value:JVe}),Object.defineProperty(this,hv,{value:QVe}),Object.defineProperty(this,sa,{writable:!0,value:void 0}),Object.defineProperty(this,AR,{writable:!0,value:function(){var a=_n(ot().mark(function c(f){var d,y,m,g,w;return ot().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(y=f.file,m=f.postBody,g=f.signal,((d=y.remote)==null?void 0:d.url)!=null){E.next=3;break}throw new Error("Cannot connect to an undefined URL");case 3:return E.next=5,i.post(y.remote.url,Dn(Dn({},y.remote.body),m),{signal:g});case 5:return w=E.sent,E.abrupt("return",w.token);case 7:case"end":return E.stop()}},c)}));function l(c){return a.apply(this,arguments)}return l}()}),this.uppy=r,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),ua(this,sa)[sa]=n==null?void 0:n.companionHeaders}return nK(e,[{key:"setCompanionHeaders",value:function(n){ua(this,sa)[sa]=n}},{key:t,value:function(){return ua(this,sa)[sa]}},{key:"hostname",get:function(){var n=this.uppy.getState(),i=n.companion,a=this.opts.companionUrl;return VVe(i&&i[a]?i[a]:a)}},{key:"headers",value:function(){var r=_n(ot().mark(function i(a){var l;return ot().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return a===void 0&&(a=!1),l=Dn({Accept:"application/json"},a?void 0:{"Content-Type":"application/json"}),f.abrupt("return",Dn(Dn({},l),ua(this,sa)[sa]));case 3:case"end":return f.stop()}},i,this)}));function n(i){return r.apply(this,arguments)}return n}()},{key:"onReceiveResponse",value:function(n){var i=n.headers,a=this.uppy.getState(),l=a.companion||{},c=this.opts.companionUrl;i.has("i-am")&&i.get("i-am")!==l[c]&&this.uppy.setState({companion:Dn(Dn({},l),{},rK({},c,i.get("i-am")))})}},{key:"request",value:function(){var r=_n(ot().mark(function i(a){var l,c,f,d,y,m,g,w;return ot().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return l=a.path,c=a.method,f=c===void 0?"GET":c,d=a.data,y=a.skipPostResponse,m=a.signal,E.prev=1,E.next=4,this.headers(!d);case 4:return g=E.sent,E.next=7,al(ua(this,hv)[hv](l),{method:f,signal:m,headers:g,credentials:this.opts.companionCookiesRule||"same-origin",body:d?JSON.stringify(d):null});case 7:return w=E.sent,y||this.onReceiveResponse(w),E.next=11,XVe(w);case 11:return E.abrupt("return",E.sent);case 14:if(E.prev=14,E.t0=E.catch(1),!(E.t0.isAuthError||E.t0.name==="UserFacingApiError"||E.t0.name==="AbortError")){E.next=18;break}throw E.t0;case 18:throw new aa("Could not ".concat(f," ").concat(ua(this,hv)[hv](l)),{cause:E.t0});case 19:case"end":return E.stop()}},i,this,[[1,14]])}));function n(i){return r.apply(this,arguments)}return n}()},{key:"get",value:function(){var r=_n(ot().mark(function i(a,l){return ot().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return typeof l=="boolean"&&(l={skipPostResponse:l}),f.abrupt("return",this.request(Dn(Dn({},l),{},{path:a})));case 2:case"end":return f.stop()}},i,this)}));function n(i,a){return r.apply(this,arguments)}return n}()},{key:"post",value:function(){var r=_n(ot().mark(function i(a,l,c){return ot().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return typeof c=="boolean"&&(c={skipPostResponse:c}),d.abrupt("return",this.request(Dn(Dn({},c),{},{path:a,method:"POST",data:l})));case 2:case"end":return d.stop()}},i,this)}));function n(i,a,l){return r.apply(this,arguments)}return n}()},{key:"delete",value:function(){var r=_n(ot().mark(function i(a,l,c){return ot().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return typeof c=="boolean"&&(c={skipPostResponse:c}),d.abrupt("return",this.request(Dn(Dn({},c),{},{path:a,method:"DELETE",data:l})));case 2:case"end":return d.stop()}},i,this)}));function n(i,a,l){return r.apply(this,arguments)}return n}()},{key:"uploadRemoteFile",value:function(){var r=_n(ot().mark(function i(a,l,c){var f=this,d,y,m,g;return ot().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return d=this,P.prev=1,y=c||{},m=y.signal,g=y.getQueue,P.next=5,a0(_n(ot().mark(function E(){var O,R,x,A;return ot().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(R=(O=f.uppy.getFile(a.id))==null?void 0:O.serverToken,R==null){N.next=4;break}return f.uppy.log("Connecting to exiting websocket ".concat(R)),N.abrupt("return",ua(f,dv)[dv]({file:a,queue:g(),signal:m}));case 4:return x=g().wrapPromiseFunction(_n(ot().mark(function j(){var k,z,B,Y=arguments;return ot().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.prev=0,X.next=3,(k=ua(d,AR))[AR].apply(k,Y);case 3:return X.abrupt("return",X.sent);case 6:if(X.prev=6,X.t0=X.catch(0),!X.t0.isAuthError){X.next=10;break}throw new o0(X.t0);case 10:if(X.t0.cause!=null){X.next=12;break}throw X.t0;case 12:if(z=X.t0.cause,B=function(){return[408,409,429,418,423].includes(z.statusCode)||z.statusCode>=500&&z.statusCode<=599&&![501,505].includes(z.statusCode)},!(z.name==="HttpError"&&!B())){X.next=16;break}throw new o0(z);case 16:throw z;case 17:case"end":return X.stop()}},j,null,[[0,6]])})),{priority:-1}),N.next=7,x({file:a,postBody:l,signal:m}).abortOn(m);case 7:if(A=N.sent,f.uppy.getFile(a.id)){N.next=10;break}return N.abrupt("return",void 0);case 10:return f.uppy.setFileState(a.id,{serverToken:A}),N.abrupt("return",ua(f,dv)[dv]({file:f.uppy.getFile(a.id),queue:g(),signal:m}));case 12:case"end":return N.stop()}},E)})),{retries:uK,signal:m,onFailedAttempt:function(O){return f.uppy.log("Retrying upload due to: ".concat(O.message),"warning")}});case 5:return P.abrupt("return",P.sent);case 8:if(P.prev=8,P.t0=P.catch(1),P.t0.name!=="AbortError"){P.next=12;break}return P.abrupt("return",void 0);case 12:throw this.uppy.emit("upload-error",a,P.t0),P.t0;case 14:case"end":return P.stop()}},i,this,[[1,8]])}));function n(i,a,l){return r.apply(this,arguments)}return n}()}]),e}(aK);function QVe(t){return/^(https?:|)\/\//.test(t)?t:"".concat(this.hostname,"/").concat(t)}function JVe(t){return IR.apply(this,arguments)}function IR(){return IR=_n(ot().mark(function t(e){var r=this,n,i,a,l,c,f;return ot().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return n=e.file,i=e.queue,a=e.signal,c=this.uppy.getState(),f=c.capabilities,y.prev=2,y.next=5,new Promise(function(m,g){var w=n.serverToken,P=PR(n.remote.companionUrl),E,O,R,x=n.isPaused,A=function($,H){if(E==null||E.readyState!==E.OPEN){var K;r.uppy.log('Cannot send "'.concat($,'" to socket ').concat(n.id," because the socket state was ").concat(String((K=E)==null?void 0:K.readyState)),"warning");return}E.send(JSON.stringify({action:$,payload:H!=null?H:{}}))};function I(){f.resumableUploads&&A(x?"pause":"resume")}var N=function(){var X=_n(ot().mark(function $(){var H,K;return ot().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return K=function(){clearTimeout(R),!x&&(R=setTimeout(function(){return H(new Error("Timeout waiting for message from Companion socket"))},KVe))},O&&O.abort(),O=new AbortController,H=function(p){var v;r.uppy.setFileState(n.id,{serverToken:null}),(v=O)==null||v.abort==null||v.abort(),g(p)},o.prev=4,o.next=7,i.wrapPromiseFunction(_n(ot().mark(function u(){var p;return ot().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return p=function(){var b=_n(ot().mark(function S(){return ot().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",new Promise(function(F,C){E=new WebSocket("".concat(P,"/api/").concat(w)),K(),E.addEventListener("close",function(){E=void 0,C(new Error("Socket closed unexpectedly"))}),E.addEventListener("error",function(Fe){var Ee;r.uppy.log("Companion socket error ".concat(JSON.stringify(Fe),", closing socket"),"warning"),(Ee=E)==null||Ee.close()}),E.addEventListener("open",function(){I()}),E.addEventListener("message",function(Fe){K();try{var Ee=JSON.parse(Fe.data),Re=Ee.action,Qe=Ee.payload;switch(Re){case"progress":{XV(r,Qe,r.uppy.getFile(n.id));break}case"success":{var st,Xt,pt,we,Qt=(st=Qe.response)==null?void 0:st.responseText;r.uppy.emit("upload-success",r.uppy.getFile(n.id),{uploadURL:Qe.url,status:(Xt=(pt=Qe.response)==null?void 0:pt.status)!=null?Xt:200,body:Qt?JSON.parse(Qt):void 0}),(we=O)==null||we.abort==null||we.abort(),m();break}case"error":{var kt=Qe.error.message;throw Object.assign(new Error(kt),{cause:Qe.error})}default:r.uppy.log("Companion socket unknown action ".concat(Re),"warning")}}catch(Pi){H(Pi)}});var Me=function(){r.uppy.log("Closing socket ".concat(n.id),"info"),clearTimeout(R),E&&E.close(),E=void 0};O.signal.addEventListener("abort",function(){Me()})}));case 1:case"end":return q.stop()}},S)}));return function(){return b.apply(this,arguments)}}(),h.next=3,a0(p,{retries:uK,signal:O.signal,onFailedAttempt:function(){O.signal.aborted||r.uppy.log("Retrying websocket ".concat(n.id),"info")}});case 3:case"end":return h.stop()}},u)})))().abortOn(O.signal);case 7:o.next=14;break;case 9:if(o.prev=9,o.t0=o.catch(4),!O.signal.aborted){o.next=13;break}return o.abrupt("return");case 13:H(o.t0);case 14:case"end":return o.stop()}},$,null,[[4,9]])}));return function(){return X.apply(this,arguments)}}(),j=function($){if(f.resumableUploads)if(x=$,E&&I(),$){var H;(H=O)==null||H.abort==null||H.abort()}else N()},k=function($){var H;f.individualCancellation&&$.id===n.id&&(A("cancel"),(H=O)==null||H.abort==null||H.abort(),r.uppy.log("upload ".concat(n.id," was removed"),"info"),m())},z=function($){var H,K=$.reason;K==="user"&&A("cancel"),(H=O)==null||H.abort==null||H.abort(),r.uppy.log("upload ".concat(n.id," was canceled"),"info"),m()},B=function($,H){$===n.id&&j(H)},Y=function(){return j(!0)},Q=function(){return j(!1)};r.uppy.on("file-removed",k),r.uppy.on("cancel-all",z),r.uppy.on("upload-pause",B),r.uppy.on("pause-all",Y),r.uppy.on("resume-all",Q),l=function(){r.uppy.off("file-removed",k),r.uppy.off("cancel-all",z),r.uppy.off("upload-pause",B),r.uppy.off("pause-all",Y),r.uppy.off("resume-all",Q)},a.addEventListener("abort",function(){var X;(X=O)==null||X.abort()}),N()});case 5:return y.abrupt("return",y.sent);case 6:return y.prev=6,l==null||l(),y.finish(6);case 9:case"end":return y.stop()}},t,this,[[2,,6,9]])})),IR.apply(this,arguments)}Mn.VERSION=WVe.version;function Su(t){"@babel/helpers - typeof";return Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Su(t)}function dt(){"use strict";dt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Su(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Su(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function sK(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function s0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?sK(Object(r),!0).forEach(function(n){ZVe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sK(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ZVe(t,e,r){return e=hK(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eKe(t,e){return iKe(t)||nKe(t,e)||rKe(t,e)||tKe()}function tKe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rKe(t,e){if(t){if(typeof t=="string")return lK(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lK(t,e)}}function lK(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function nKe(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function iKe(t){if(Array.isArray(t))return t}function cK(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function vi(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){cK(a,n,i,l,c,"next",f)}function c(f){cK(a,n,i,l,c,"throw",f)}l(void 0)})}}function oKe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fK(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,hK(n.key),n)}}function aKe(t,e,r){return e&&fK(t.prototype,e),r&&fK(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function hK(t){var e=uKe(t,"string");return Su(e)=="symbol"?e:String(e)}function uKe(t,e){if(Su(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Su(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function sKe(t,e,r){return e=wo(e),lKe(t,dK()?Reflect.construct(e,r||[],wo(t).constructor):e.apply(t,r))}function lKe(t,e){if(e&&(Su(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l0(t)}function dK(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dK=function(){return!!t})()}function l0(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ou(){return typeof Reflect!="undefined"&&Reflect.get?Ou=Reflect.get.bind():Ou=function(e,r,n){var i=cKe(e,r);if(i){var a=Object.getOwnPropertyDescriptor(i,r);return a.get?a.get.call(arguments.length<3?e:n):a.value}},Ou.apply(this,arguments)}function cKe(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=wo(t),t!==null););return t}function wo(t){return wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wo(t)}function fKe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qR(t,e)}function qR(t,e){return qR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qR(t,e)}function yi(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var pKe=0;function LR(t){return"__private_"+pKe+++"_"+t}var hKe=function(e){return e.split("-").map(function(r){return r.charAt(0).toUpperCase()+r.slice(1)}).join(" ")};function dKe(){return location.origin}function pK(t){if(typeof t=="string")return new RegExp("^".concat(t,"$"));if(t instanceof RegExp)return t}function vKe(t,e){var r=Array.isArray(e)?e.map(pK):[pK(e)];return r.some(function(n){return(n==null?void 0:n.test(t))||(n==null?void 0:n.test("".concat(t,"/")))})}var Ni=LR("refreshingTokenPromise"),mv=LR("getAuthToken"),Di=LR("getPlugin"),Ur=function(t){fKe(e,t);function e(r,n){var i;oKe(this,e);var a;return i=sKe(this,e,[r,n]),Object.defineProperty(l0(i),Di,{value:mKe}),Object.defineProperty(l0(i),mv,{value:yKe}),Object.defineProperty(l0(i),Ni,{writable:!0,value:void 0}),i.provider=n.provider,i.id=i.provider,i.name=i.opts.name||hKe(i.id),i.pluginId=i.opts.pluginId,i.tokenKey="companion-".concat(i.pluginId,"-auth-token"),i.companionKeysParams=i.opts.companionKeysParams,i.preAuthToken=null,i.supportsRefreshToken=(a=n.supportsRefreshToken)!=null?a:!0,i}return aKe(e,[{key:"headers",value:function(){var r=vi(dt().mark(function i(){var a,l,c,f,d;return dt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Promise.all([Ou(wo(e.prototype),"headers",this).call(this),yi(this,mv)[mv]()]);case 2:return a=m.sent,l=eKe(a,2),c=l[0],f=l[1],d={},f&&(d["uppy-auth-token"]=f),this.companionKeysParams&&(d["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),m.abrupt("return",s0(s0({},c),d));case 10:case"end":return m.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"onReceiveResponse",value:function(n){Ou(wo(e.prototype),"onReceiveResponse",this).call(this,n);var i=yi(this,Di)[Di](),a=i.getPluginState().authenticated,l=a?n.status!==jR:n.status<400;return i.setPluginState({authenticated:l}),n}},{key:"setAuthToken",value:function(){var r=vi(dt().mark(function i(a){return dt().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",yi(this,Di)[Di]().storage.setItem(this.tokenKey,a));case 1:case"end":return c.stop()}},i,this)}));function n(i){return r.apply(this,arguments)}return n}()},{key:"removeAuthToken",value:function(){var r=vi(dt().mark(function i(){return dt().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",yi(this,Di)[Di]().storage.removeItem(this.tokenKey));case 1:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"ensurePreAuth",value:function(){var r=vi(dt().mark(function i(){return dt().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!(this.companionKeysParams&&!this.preAuthToken)){l.next=5;break}return l.next=3,this.fetchPreAuthToken();case 3:if(this.preAuthToken){l.next=5;break}throw new Error("Could not load authentication data required for third-party login. Please try again later.");case 5:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"authQuery",value:function(n){return{}}},{key:"authUrl",value:function(n){var i=n.authFormData,a=n.query,l=new URLSearchParams(s0(s0({},a),{},{state:btoa(JSON.stringify({origin:dKe()}))},this.authQuery({authFormData:i})));return this.preAuthToken&&l.set("uppyPreAuthToken",this.preAuthToken),"".concat(this.hostname,"/").concat(this.id,"/connect?").concat(l)}},{key:"loginSimpleAuth",value:function(){var r=vi(dt().mark(function i(a){var l,c,f,d;return dt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return l=a.uppyVersions,c=a.authFormData,f=a.signal,m.next=3,this.post("".concat(this.id,"/simple-auth"),{form:c},{qs:{uppyVersions:l},signal:f});case 3:d=m.sent,this.setAuthToken(d.uppyAuthToken);case 5:case"end":return m.stop()}},i,this)}));function n(i){return r.apply(this,arguments)}return n}()},{key:"loginOAuth",value:function(){var r=vi(dt().mark(function i(a){var l=this,c,f,d;return dt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return c=a.uppyVersions,f=a.authFormData,d=a.signal,m.next=3,this.ensurePreAuth();case 3:return d.throwIfAborted(),m.abrupt("return",new Promise(function(g,w){var P=l.authUrl({query:{uppyVersions:c},authFormData:f}),E=window.open(P,"_blank"),O,R=function(A){if(A.source!==E){var I="";try{I=JSON.stringify(A.data)}catch(B){}l.uppy.log("ignoring event from unknown source ".concat(I),"warning");return}var N=yi(l,Di)[Di]().opts.companionAllowedHosts;if(!vKe(A.origin,N)){w(new Error("rejecting event from ".concat(A.origin," vs allowed pattern ").concat(N)));return}var j=typeof A.data=="string"?JSON.parse(A.data):A.data;if(j.error){var k=l.uppy,z=k.i18n("authAborted");k.info({message:z},"warning",5e3),w(new Error("auth aborted"));return}if(!j.token){w(new Error("did not receive token from auth window"));return}O(),g(l.setAuthToken(j.token))};O=function(){E==null||E.close(),window.removeEventListener("message",R),d.removeEventListener("abort",O)},d.addEventListener("abort",O),window.addEventListener("message",R)}));case 5:case"end":return m.stop()}},i,this)}));function n(i){return r.apply(this,arguments)}return n}()},{key:"login",value:function(){var r=vi(dt().mark(function i(a){var l,c,f;return dt().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return l=a.uppyVersions,c=a.authFormData,f=a.signal,y.abrupt("return",this.loginOAuth({uppyVersions:l,authFormData:c,signal:f}));case 2:case"end":return y.stop()}},i,this)}));function n(i){return r.apply(this,arguments)}return n}()},{key:"refreshTokenUrl",value:function(){return"".concat(this.hostname,"/").concat(this.id,"/refresh-token")}},{key:"fileUrl",value:function(n){return"".concat(this.hostname,"/").concat(this.id,"/get/").concat(n)}},{key:"request",value:function(){var r=vi(dt().mark(function i(){var a=this,l,c=arguments;return dt().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,yi(this,Ni)[Ni];case 2:return d.prev=2,d.next=5,Ou(wo(e.prototype),"request",this).apply(this,c);case 5:return d.abrupt("return",d.sent);case 8:if(d.prev=8,d.t0=d.catch(2),this.supportsRefreshToken){d.next=12;break}throw d.t0;case 12:return d.next=14,yi(this,mv)[mv]();case 14:if(l=d.sent,!(!d.t0.isAuthError||!l)){d.next=17;break}throw d.t0;case 17:return yi(this,Ni)[Ni]==null&&(yi(this,Ni)[Ni]=vi(dt().mark(function y(){var m;return dt().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.prev=0,a.uppy.log("[CompanionClient] Refreshing expired auth token","info"),w.next=4,Ou(wo(e.prototype),"request",a).call(a,{path:a.refreshTokenUrl(),method:"POST"});case 4:return m=w.sent,w.next=7,a.setAuthToken(m.uppyAuthToken);case 7:w.next=15;break;case 9:if(w.prev=9,w.t0=w.catch(0),!w.t0.isAuthError){w.next=14;break}return w.next=14,a.removeAuthToken();case 14:throw d.t0;case 15:return w.prev=15,yi(a,Ni)[Ni]=void 0,w.finish(15);case 18:case"end":return w.stop()}},y,null,[[0,9,15,18]])}))()),d.next=20,yi(this,Ni)[Ni];case 20:return d.abrupt("return",Ou(wo(e.prototype),"request",this).apply(this,c));case 21:case"end":return d.stop()}},i,this,[[2,8]])}));function n(){return r.apply(this,arguments)}return n}()},{key:"fetchPreAuthToken",value:function(){var r=vi(dt().mark(function i(){var a;return dt().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.companionKeysParams){c.next=2;break}return c.abrupt("return");case 2:return c.prev=2,c.next=5,this.post("".concat(this.id,"/preauth/"),{params:this.companionKeysParams});case 5:a=c.sent,this.preAuthToken=a.token,c.next=12;break;case 9:c.prev=9,c.t0=c.catch(2),this.uppy.log("[CompanionClient] unable to fetch preAuthToken ".concat(c.t0),"warning");case 12:case"end":return c.stop()}},i,this,[[2,9]])}));function n(){return r.apply(this,arguments)}return n}()},{key:"list",value:function(n,i){return this.get("".concat(this.id,"/list/").concat(n||""),i)}},{key:"logout",value:function(){var r=vi(dt().mark(function i(a){var l;return dt().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.get("".concat(this.id,"/logout"),a);case 2:return l=f.sent,f.next=5,this.removeAuthToken();case 5:return f.abrupt("return",l);case 6:case"end":return f.stop()}},i,this)}));function n(i){return r.apply(this,arguments)}return n}()}]),e}(Mn);function yKe(){return FR.apply(this,arguments)}function FR(){return FR=vi(dt().mark(function t(){return dt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",yi(this,Di)[Di]().storage.getItem(this.tokenKey));case 1:case"end":return r.stop()}},t,this)})),FR.apply(this,arguments)}function mKe(){var t=this.uppy.getPlugin(this.pluginId);if(t==null)throw new Error("Plugin was nullish");return t}function kf(t){"@babel/helpers - typeof";return kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kf(t)}function gKe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vK(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wKe(n.key),n)}}function bKe(t,e,r){return e&&vK(t.prototype,e),r&&vK(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function wKe(t){var e=OKe(t,"string");return kf(e)=="symbol"?e:String(e)}function OKe(t,e){if(kf(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(kf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function SKe(t,e,r){return e=c0(e),_Ke(t,yK()?Reflect.construct(e,r||[],c0(t).constructor):e.apply(t,r))}function _Ke(t,e){if(e&&(kf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PKe(t)}function PKe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yK(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(yK=function(){return!!t})()}function c0(t){return c0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},c0(t)}function EKe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&CR(t,e)}function CR(t,e){return CR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},CR(t,e)}var TKe=function(e){return e.split("-").map(function(r){return r.charAt(0).toUpperCase()+r.slice(1)}).join(" ")},f0=function(t){EKe(e,t);function e(r,n){var i;return gKe(this,e),i=SKe(this,e,[r,n]),i.provider=n.provider,i.id=i.provider,i.name=i.opts.name||TKe(i.id),i.pluginId=i.opts.pluginId,i}return bKe(e,[{key:"fileUrl",value:function(n){return"".concat(this.hostname,"/search/").concat(this.id,"/get/").concat(n)}},{key:"search",value:function(n,i){return this.get("search/".concat(this.id,"/list?q=").concat(encodeURIComponent(n)).concat(i?"&".concat(i):""))}}]),e}(Mn);function ir(t,e){if(t){if(typeof t!="string"&&!Array.isArray(t)&&!(t instanceof RegExp))throw new TypeError('The option "companionAllowedHosts" must be one of string, Array, RegExp');return t}return/^(?!https?:\/\/).*$/i.test(e)?"https://".concat(e.replace(/^\/\//,"")):new URL(e).origin}var or={};zm(or,{getItem:function(){return xKe},removeItem:function(){return RKe},setItem:function(){return AKe}});function AKe(t,e){return new Promise(function(r){localStorage.setItem(t,e),r()})}function xKe(t){return Promise.resolve(localStorage.getItem(t))}function RKe(t){return new Promise(function(e){localStorage.removeItem(t),e()})}var wK=Ce(Lx(),1);function gv(t){"@babel/helpers - typeof";return gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gv(t)}function IKe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mK(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jKe(n.key),n)}}function kKe(t,e,r){return e&&mK(t.prototype,e),r&&mK(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function jKe(t){var e=qKe(t,"string");return gv(e)=="symbol"?e:String(e)}function qKe(t,e){if(gv(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(gv(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var gK,bK;function Ft(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var FKe=0;function bv(t){return"__private_"+FKe+++"_"+t}var la=bv("queued"),ul=bv("emitter"),Mi=bv("isOpen"),ar=bv("socket"),NR=bv("handleMessage");gK=Symbol.for("uppy test: getSocket");bK=Symbol.for("uppy test: getQueued");var OK=function(t,e){function r(n){var i=this;IKe(this,r),Object.defineProperty(this,la,{writable:!0,value:[]}),Object.defineProperty(this,ul,{writable:!0,value:(0,wK.default)()}),Object.defineProperty(this,Mi,{writable:!0,value:!1}),Object.defineProperty(this,ar,{writable:!0,value:void 0}),Object.defineProperty(this,NR,{writable:!0,value:function(l){try{var c=JSON.parse(l.data);i.emit(c.action,c.payload)}catch(f){console.log(f)}}}),this.opts=n,(!n||n.autoOpen!==!1)&&this.open()}return kKe(r,[{key:"isOpen",get:function(){return Ft(this,Mi)[Mi]}},{key:t,value:function(){return Ft(this,ar)[ar]}},{key:e,value:function(){return Ft(this,la)[la]}},{key:"open",value:function(){var i=this;Ft(this,ar)[ar]==null&&(Ft(this,ar)[ar]=new WebSocket(this.opts.target),Ft(this,ar)[ar].onopen=function(){for(Ft(i,Mi)[Mi]=!0;Ft(i,la)[la].length>0&&Ft(i,Mi)[Mi];){var a=Ft(i,la)[la].shift();i.send(a.action,a.payload)}},Ft(this,ar)[ar].onclose=function(){Ft(i,Mi)[Mi]=!1,Ft(i,ar)[ar]=null},Ft(this,ar)[ar].onmessage=Ft(this,NR)[NR])}},{key:"close",value:function(){var i;(i=Ft(this,ar)[ar])==null||i.close()}},{key:"send",value:function(i,a){if(!Ft(this,Mi)[Mi]){Ft(this,la)[la].push({action:i,payload:a});return}Ft(this,ar)[ar].send(JSON.stringify({action:i,payload:a}))}},{key:"on",value:function(i,a){Ft(this,ul)[ul].on(i,a)}},{key:"emit",value:function(i,a){Ft(this,ul)[ul].emit(i,a)}},{key:"once",value:function(i,a){Ft(this,ul)[ul].once(i,a)}}]),r}(gK,bK);var SI={};zm(SI,{ProviderViews:function(){return gr},SearchProviderViews:function(){return Df},defaultPickerIcon:function(){return Nf}});var UR=Ce(_K(),1);function _u(t){"@babel/helpers - typeof";return _u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_u(t)}function BR(){"use strict";BR=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&_u(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(_u(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function PK(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function NKe(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){PK(a,n,i,l,c,"next",f)}function c(f){PK(a,n,i,l,c,"throw",f)}l(void 0)})}}function EK(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function DKe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?EK(Object(r),!0).forEach(function(n){MKe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):EK(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function MKe(t,e,r){return e=IK(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function TK(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,IK(n.key),n)}}function RK(t,e,r){return e&&TK(t.prototype,e),r&&TK(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function IK(t){var e=UKe(t,"string");return _u(e)=="symbol"?e:String(e)}function UKe(t,e){if(_u(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(_u(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function kK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jK(t,e,r){return e=Sv(e),BKe(t,GR()?Reflect.construct(e,r||[],Sv(t).constructor):e.apply(t,r))}function BKe(t,e){if(e&&(_u(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GKe(t)}function GKe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qK(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ov(t,e)}function h0(t){var e=typeof Map=="function"?new Map:void 0;return h0=function(n){if(n===null||!zKe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return $Ke(n,arguments,Sv(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ov(i,n)},h0(t)}function $Ke(t,e,r){if(GR())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&Ov(i,r.prototype),i}function GR(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(GR=function(){return!!t})()}function zKe(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch(e){return typeof t=="function"}}function Ov(t,e){return Ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ov(t,e)}function Sv(t){return Sv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sv(t)}var $R=function(t){qK(e,t);function e(r){var n;return kK(this,e),n=jK(this,e,[r]),n.name="TimeoutError",n}return RK(e)}(h0(Error)),HKe=function(t){qK(e,t);function e(r){var n;return kK(this,e),n=jK(this,e),n.name="AbortError",n.message=r,n}return RK(e)}(h0(Error)),AK=function(e){return globalThis.DOMException===void 0?new HKe(e):new DOMException(e)},xK=function(e){var r=e.reason===void 0?AK("This operation was aborted."):e.reason;return r instanceof Error?r:AK(r)};function zR(t,e,r,n){var i,a=new Promise(function(l,c){if(typeof e!="number"||Math.sign(e)!==1)throw new TypeError("Expected `milliseconds` to be a positive number, got `".concat(e,"`"));if(e===Number.POSITIVE_INFINITY){l(t);return}if(n=DKe({customTimers:{setTimeout:setTimeout,clearTimeout:clearTimeout}},n),n.signal){var f=n,d=f.signal;d.aborted&&c(xK(d)),d.addEventListener("abort",function(){c(xK(d))})}i=n.customTimers.setTimeout.call(void 0,function(){if(typeof r=="function"){try{l(r())}catch(g){c(g)}return}var y=typeof r=="string"?r:"Promise timed out after ".concat(e," milliseconds"),m=r instanceof Error?r:new $R(y);typeof t.cancel=="function"&&t.cancel(),c(m)},e),NKe(BR().mark(function y(){return BR().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.prev=0,g.t0=l,g.next=4,t;case 4:g.t1=g.sent,(0,g.t0)(g.t1),g.next=11;break;case 8:g.prev=8,g.t2=g.catch(0),c(g.t2);case 11:return g.prev=11,n.customTimers.clearTimeout.call(void 0,i),g.finish(11);case 14:case"end":return g.stop()}},y,null,[[0,8,11,14]])}))()});return a.clear=function(){clearTimeout(i),i=void 0},a}function HR(t,e,r){for(var n=0,i=t.length;i>0;){var a=Math.trunc(i/2),l=n+a;r(t[l],e)<=0?(n=++l,i-=a+1):i=a}return n}function _v(t){"@babel/helpers - typeof";return _v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_v(t)}function FK(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function WKe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?FK(Object(r),!0).forEach(function(n){VKe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):FK(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function VKe(t,e,r){return e=CK(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function KKe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function LK(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,CK(n.key),n)}}function YKe(t,e,r){return e&&LK(t.prototype,e),r&&LK(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function CK(t){var e=XKe(t,"string");return _v(e)=="symbol"?e:String(e)}function XKe(t,e){if(_v(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(_v(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var sl=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},ca,QKe=function(){function t(){KKe(this,t),ca.set(this,[])}return YKe(t,[{key:"enqueue",value:function(r,n){n=WKe({priority:0},n);var i={priority:n.priority,run:r};if(this.size&&sl(this,ca,"f")[this.size-1].priority>=n.priority){sl(this,ca,"f").push(i);return}var a=HR(sl(this,ca,"f"),i,function(l,c){return c.priority-l.priority});sl(this,ca,"f").splice(a,0,i)}},{key:"dequeue",value:function(){var r=sl(this,ca,"f").shift();return r==null?void 0:r.run}},{key:"filter",value:function(r){return sl(this,ca,"f").filter(function(n){return n.priority===r.priority}).map(function(n){return n.run})}},{key:"size",get:function(){return sl(this,ca,"f").length}}]),t}();ca=new WeakMap;var NK=QKe;function ur(){"use strict";ur=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Bi(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Bi(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function DK(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function fa(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){DK(a,n,i,l,c,"next",f)}function c(f){DK(a,n,i,l,c,"throw",f)}l(void 0)})}}function Bi(t){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bi(t)}function MK(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function UK(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?MK(Object(r),!0).forEach(function(n){JKe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):MK(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function JKe(t,e,r){return e=VK(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function BK(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,VK(n.key),n)}}function WK(t,e,r){return e&&BK(t.prototype,e),r&&BK(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function VK(t){var e=ZKe(t,"string");return Bi(e)=="symbol"?e:String(e)}function ZKe(t,e){if(Bi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function KK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function YK(t,e,r){return e=Iv(e),eYe(t,YR()?Reflect.construct(e,r||[],Iv(t).constructor):e.apply(t,r))}function eYe(t,e){if(e&&(Bi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vt(t)}function vt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function XK(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rv(t,e)}function KR(t){var e=typeof Map=="function"?new Map:void 0;return KR=function(n){if(n===null||!rYe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return tYe(n,arguments,Iv(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Rv(i,n)},KR(t)}function tYe(t,e,r){if(YR())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&Rv(i,r.prototype),i}function YR(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(YR=function(){return!!t})()}function rYe(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch(e){return typeof t=="function"}}function Rv(t,e){return Rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rv(t,e)}function Iv(t){return Iv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Iv(t)}var Tt=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ve=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Dt,Ev,Tv,Eu,b0,Av,d0,Ui,Pv,Un,v0,Bn,xv,Pu,y0,GK,$K,QK,zK,HK,m0,WR,VR,w0,JK,g0,ZK=function(t){XK(e,t);function e(){return KK(this,e),YK(this,e,arguments)}return WK(e)}(KR(Error)),nYe=function(t){XK(e,t);function e(r){var n;KK(this,e);var i,a,l,c;if(n=YK(this,e),Dt.add(vt(n)),Ev.set(vt(n),void 0),Tv.set(vt(n),void 0),Eu.set(vt(n),0),b0.set(vt(n),void 0),Av.set(vt(n),void 0),d0.set(vt(n),0),Ui.set(vt(n),void 0),Pv.set(vt(n),void 0),Un.set(vt(n),void 0),v0.set(vt(n),void 0),Bn.set(vt(n),0),xv.set(vt(n),void 0),Pu.set(vt(n),void 0),y0.set(vt(n),void 0),Object.defineProperty(vt(n),"timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r=UK({carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:NK},r),!(typeof r.intervalCap=="number"&&r.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat((a=(i=r.intervalCap)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:"","` (").concat(Bi(r.intervalCap),")"));if(r.interval===void 0||!(Number.isFinite(r.interval)&&r.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat((c=(l=r.interval)===null||l===void 0?void 0:l.toString())!==null&&c!==void 0?c:"","` (").concat(Bi(r.interval),")"));return Tt(vt(n),Ev,r.carryoverConcurrencyCount,"f"),Tt(vt(n),Tv,r.intervalCap===Number.POSITIVE_INFINITY||r.interval===0,"f"),Tt(vt(n),b0,r.intervalCap,"f"),Tt(vt(n),Av,r.interval,"f"),Tt(vt(n),Un,new r.queueClass,"f"),Tt(vt(n),v0,r.queueClass,"f"),n.concurrency=r.concurrency,n.timeout=r.timeout,Tt(vt(n),y0,r.throwOnTimeout===!0,"f"),Tt(vt(n),Pu,r.autoStart===!1,"f"),n}return WK(e,[{key:"concurrency",get:function(){return ve(this,xv,"f")},set:function(n){if(!(typeof n=="number"&&n>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(n,"` (").concat(Bi(n),")"));Tt(this,xv,n,"f"),ve(this,Dt,"m",w0).call(this)}},{key:"add",value:function(){var r=fa(ur().mark(function i(a){var l=this,c,f=arguments;return ur().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return c=f.length>1&&f[1]!==void 0?f[1]:{},c=UK({timeout:this.timeout,throwOnTimeout:ve(this,y0,"f")},c),y.abrupt("return",new Promise(function(m,g){ve(l,Un,"f").enqueue(fa(ur().mark(function w(){var P,E,O,R,x;return ur().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(Tt(l,Bn,(E=ve(l,Bn,"f"),E++,E),"f"),Tt(l,Eu,(O=ve(l,Eu,"f"),O++,O),"f"),I.prev=2,!(!((P=c.signal)===null||P===void 0)&&P.aborted)){I.next=5;break}throw new ZK("The task was aborted.");case 5:return R=a({signal:c.signal}),c.timeout&&(R=zR(Promise.resolve(R),c.timeout)),c.signal&&(R=Promise.race([R,ve(l,Dt,"m",JK).call(l,c.signal)])),I.next=10,R;case 10:x=I.sent,m(x),l.emit("completed",x),I.next=22;break;case 15:if(I.prev=15,I.t0=I.catch(2),!(I.t0 instanceof $R&&!c.throwOnTimeout)){I.next=20;break}return m(),I.abrupt("return");case 20:g(I.t0),l.emit("error",I.t0);case 22:return I.prev=22,ve(l,Dt,"m",QK).call(l),I.finish(22);case 25:case"end":return I.stop()}},w,null,[[2,15,22,25]])})),c),l.emit("add"),ve(l,Dt,"m",m0).call(l)}));case 3:case"end":return y.stop()}},i,this)}));function n(i){return r.apply(this,arguments)}return n}()},{key:"addAll",value:function(){var r=fa(ur().mark(function i(a,l){var c=this;return ur().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",Promise.all(a.map(function(){var y=fa(ur().mark(function m(g){return ur().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",c.add(g,l));case 1:case"end":return P.stop()}},m)}));return function(m){return y.apply(this,arguments)}}())));case 1:case"end":return d.stop()}},i)}));function n(i,a){return r.apply(this,arguments)}return n}()},{key:"start",value:function(){return ve(this,Pu,"f")?(Tt(this,Pu,!1,"f"),ve(this,Dt,"m",w0).call(this),this):this}},{key:"pause",value:function(){Tt(this,Pu,!0,"f")}},{key:"clear",value:function(){Tt(this,Un,new(ve(this,v0,"f")),"f")}},{key:"onEmpty",value:function(){var r=fa(ur().mark(function i(){return ur().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(ve(this,Un,"f").size!==0){l.next=2;break}return l.abrupt("return");case 2:return l.next=4,ve(this,Dt,"m",g0).call(this,"empty");case 4:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"onSizeLessThan",value:function(){var r=fa(ur().mark(function i(a){var l=this;return ur().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!(ve(this,Un,"f").size<a)){f.next=2;break}return f.abrupt("return");case 2:return f.next=4,ve(this,Dt,"m",g0).call(this,"next",function(){return ve(l,Un,"f").size<a});case 4:case"end":return f.stop()}},i,this)}));function n(i){return r.apply(this,arguments)}return n}()},{key:"onIdle",value:function(){var r=fa(ur().mark(function i(){return ur().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!(ve(this,Bn,"f")===0&&ve(this,Un,"f").size===0)){l.next=2;break}return l.abrupt("return");case 2:return l.next=4,ve(this,Dt,"m",g0).call(this,"idle");case 4:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"size",get:function(){return ve(this,Un,"f").size}},{key:"sizeBy",value:function(n){return ve(this,Un,"f").filter(n).length}},{key:"pending",get:function(){return ve(this,Bn,"f")}},{key:"isPaused",get:function(){return ve(this,Pu,"f")}}]),e}(UR.default);Ev=new WeakMap,Tv=new WeakMap,Eu=new WeakMap,b0=new WeakMap,Av=new WeakMap,d0=new WeakMap,Ui=new WeakMap,Pv=new WeakMap,Un=new WeakMap,v0=new WeakMap,Bn=new WeakMap,xv=new WeakMap,Pu=new WeakMap,y0=new WeakMap,Dt=new WeakSet,GK=function(){return ve(this,Tv,"f")||ve(this,Eu,"f")<ve(this,b0,"f")},$K=function(){return ve(this,Bn,"f")<ve(this,xv,"f")},QK=function(){var e;Tt(this,Bn,(e=ve(this,Bn,"f"),e--,e),"f"),ve(this,Dt,"m",m0).call(this),this.emit("next")},zK=function(){ve(this,Dt,"m",VR).call(this),ve(this,Dt,"m",WR).call(this),Tt(this,Pv,void 0,"f")},HK=function(){var e=this,r=Date.now();if(ve(this,Ui,"f")===void 0){var n=ve(this,d0,"f")-r;if(n<0)Tt(this,Eu,ve(this,Ev,"f")?ve(this,Bn,"f"):0,"f");else return ve(this,Pv,"f")===void 0&&Tt(this,Pv,setTimeout(function(){ve(e,Dt,"m",zK).call(e)},n),"f"),!0}return!1},m0=function(){if(ve(this,Un,"f").size===0)return ve(this,Ui,"f")&&clearInterval(ve(this,Ui,"f")),Tt(this,Ui,void 0,"f"),this.emit("empty"),ve(this,Bn,"f")===0&&this.emit("idle"),!1;if(!ve(this,Pu,"f")){var e=!ve(this,Dt,"a",HK);if(ve(this,Dt,"a",GK)&&ve(this,Dt,"a",$K)){var r=ve(this,Un,"f").dequeue();return r?(this.emit("active"),r(),e&&ve(this,Dt,"m",WR).call(this),!0):!1}}return!1},WR=function(){var e=this;ve(this,Tv,"f")||ve(this,Ui,"f")!==void 0||(Tt(this,Ui,setInterval(function(){ve(e,Dt,"m",VR).call(e)},ve(this,Av,"f")),"f"),Tt(this,d0,Date.now()+ve(this,Av,"f"),"f"))},VR=function(){ve(this,Eu,"f")===0&&ve(this,Bn,"f")===0&&ve(this,Ui,"f")&&(clearInterval(ve(this,Ui,"f")),Tt(this,Ui,void 0,"f")),Tt(this,Eu,ve(this,Ev,"f")?ve(this,Bn,"f"):0,"f"),ve(this,Dt,"m",w0).call(this)},w0=function(){for(;ve(this,Dt,"m",m0).call(this););},JK=function(){var t=fa(ur().mark(function r(n){return ur().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise(function(l,c){n.addEventListener("abort",function(){c(new ZK("The task was aborted."))},{once:!0})}));case 1:case"end":return a.stop()}},r)}));function e(r){return t.apply(this,arguments)}return e}(),g0=function(){var t=fa(ur().mark(function r(n,i){var a=this;return ur().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",new Promise(function(f){var d=function y(){i&&!i()||(a.off(n,y),f())};a.on(n,d)}));case 1:case"end":return c.stop()}},r)}));function e(r,n){return t.apply(this,arguments)}return e}();var eY=nYe;var _0,Jr,XR,tY,kv=0,sY=[],O0=[],rY=je.__b,nY=je.__r,iY=je.diffed,oY=je.__c,aY=je.unmount;function JR(t,e){je.__h&&je.__h(Jr,t,kv||e),kv=0;var r=Jr.__H||(Jr.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({__V:O0}),r.__[t]}function pa(t){return kv=1,iYe(cY,t)}function iYe(t,e,r){var n=JR(_0++,2);return n.t=t,n.__c||(n.__=[r?r(e):cY(void 0,e),function(i){var a=n.t(n.__[0],i);n.__[0]!==a&&(n.__=[a,n.__[1]],n.__c.setState({}))}],n.__c=Jr),n.__}function Oo(t,e){var r=JR(_0++,3);!je.__s&&lY(r.__H,e)&&(r.__=t,r.u=e,Jr.__H.__h.push(r))}function ll(t){return kv=5,jf(function(){return{current:t}},[])}function jf(t,e){var r=JR(_0++,7);return lY(r.__H,e)?(r.__V=t(),r.u=e,r.__h=t,r.__V):r.__}function cl(t,e){return kv=8,jf(function(){return t},e)}function oYe(){for(var t;t=sY.shift();)if(t.__P)try{t.__H.__h.forEach(S0),t.__H.__h.forEach(QR),t.__H.__h=[]}catch(e){t.__H.__h=[],je.__e(e,t.__v)}}je.__b=function(t){Jr=null,rY&&rY(t)},je.__r=function(t){nY&&nY(t),_0=0;var e=(Jr=t.__c).__H;e&&(XR===Jr?(e.__h=[],Jr.__h=[],e.__.forEach(function(r){r.__V=O0,r.u=void 0})):(e.__h.forEach(S0),e.__h.forEach(QR),e.__h=[])),XR=Jr},je.diffed=function(t){iY&&iY(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(sY.push(e)!==1&&tY===je.requestAnimationFrame||((tY=je.requestAnimationFrame)||function(r){var n,i=function(){clearTimeout(a),uY&&cancelAnimationFrame(n),setTimeout(r)},a=setTimeout(i,100);uY&&(n=requestAnimationFrame(i))})(oYe)),e.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.__V!==O0&&(r.__=r.__V),r.u=void 0,r.__V=O0})),XR=Jr=null},je.__c=function(t,e){e.some(function(r){try{r.__h.forEach(S0),r.__h=r.__h.filter(function(n){return!n.__||QR(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],je.__e(n,r.__v)}}),oY&&oY(t,e)},je.unmount=function(t){aY&&aY(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{S0(n)}catch(i){e=i}}),e&&je.__e(e,r.__v))};var uY=typeof requestAnimationFrame=="function";function S0(t){var e=Jr,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),Jr=e}function QR(t){var e=Jr;t.__c=t.__(),Jr=e}function lY(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function cY(t,e){return typeof e=="function"?e(t):e}function aYe(){return T("svg",{width:"26",height:"26",viewBox:"0 0 26 26",xmlns:"http://www.w3.org/2000/svg"},T("g",{fill:"none","fill-rule":"evenodd"},T("circle",{fill:"#FFF",cx:"13",cy:"13",r:"13"}),T("path",{d:"M21.64 13.205c0-.639-.057-1.252-.164-1.841H13v3.481h4.844a4.14 4.14 0 01-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z",fill:"#4285F4","fill-rule":"nonzero"}),T("path",{d:"M13 22c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H4.957v2.332A8.997 8.997 0 0013 22z",fill:"#34A853","fill-rule":"nonzero"}),T("path",{d:"M7.964 14.71A5.41 5.41 0 017.682 13c0-.593.102-1.17.282-1.71V8.958H4.957A8.996 8.996 0 004 13c0 1.452.348 2.827.957 4.042l3.007-2.332z",fill:"#FBBC05","fill-rule":"nonzero"}),T("path",{d:"M13 7.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C17.463 4.891 15.426 4 13 4a8.997 8.997 0 00-8.043 4.958l3.007 2.332C8.672 9.163 10.656 7.58 13 7.58z",fill:"#EA4335","fill-rule":"nonzero"}),T("path",{d:"M4 4h18v18H4z"})))}function uYe(t){var e=t.pluginName,r=t.i18n,n=t.onAuth,i=e==="Google Drive",a=cl(function(l){l.preventDefault(),n()},[n]);return T("form",{onSubmit:a},i?T("button",{type:"submit",className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn uppy-Provider-btn-google","data-uppy-super-focusable":!0},T(aYe,null),r("signInWithGoogle")):T("button",{type:"submit",className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn","data-uppy-super-focusable":!0},r("authenticateWith",{pluginName:e})))}var sYe=function(e){var r=e.pluginName,n=e.i18n,i=e.onAuth;return T(uYe,{pluginName:r,i18n:n,onAuth:i})};function ZR(t){var e=t.loading,r=t.pluginName,n=t.pluginIcon,i=t.i18n,a=t.handleAuth,l=t.renderForm,c=l===void 0?sYe:l;return T("div",{className:"uppy-Provider-auth"},T("div",{className:"uppy-Provider-authIcon"},n()),T("div",{className:"uppy-Provider-authTitle"},i("authenticateWithTitle",{pluginName:r})),T("div",{className:"uppy-Provider-authForm"},c({pluginName:r,i18n:i,loading:e,onAuth:a})))}function eI(t){var e=t.i18n,r=t.logout,n=t.username;return T(mr,null,T("span",{className:"uppy-ProviderBrowser-user",key:"username"},n),T("button",{type:"button",onClick:r,className:"uppy-u-reset uppy-c-btn uppy-ProviderBrowser-userLogout",key:"logout"},e("logOut")))}var lYe=function(e){var r=e.getFolder,n=e.title,i=e.isLast;return T(mr,null,T("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:r},n),i?"":" / ")};function tI(t){var e=t.getFolder,r=t.title,n=t.breadcrumbsIcon,i=t.breadcrumbs;return T("div",{className:"uppy-Provider-breadcrumbs"},T("div",{className:"uppy-Provider-breadcrumbsIcon"},n),i.map(function(a,l){return T(lYe,{key:a.id,getFolder:function(){return e(a.requestPath,a.name)},title:l===0?r:a.name,isLast:l+1===i.length})}))}function rI(t){return T(mr,null,t.showBreadcrumbs&&T(tI,{getFolder:t.getFolder,breadcrumbs:t.breadcrumbs,breadcrumbsIcon:t.pluginIcon&&t.pluginIcon(),title:t.title}),T(eI,{logout:t.logout,username:t.username,i18n:t.i18n}))}var cI=Ce(Gn(),1);function jv(t){"@babel/helpers - typeof";return jv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jv(t)}function fY(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function pY(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fY(Object(r),!0).forEach(function(n){cYe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fY(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function cYe(t,e,r){return e=fYe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fYe(t){var e=pYe(t,"string");return jv(e)=="symbol"?e:String(e)}function pYe(t,e){if(jv(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(jv(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qv(t){return pY(pY({},t),{},{type:t.mimeType,extension:t.name?bo(t.name).extension:null})}function qf(t){"@babel/helpers - typeof";return qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qf(t)}var hYe=["data","rowHeight","renderRow","overscanCount"];function hY(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function T0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hY(Object(r),!0).forEach(function(n){dYe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hY(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function dYe(t,e,r){return e=vY(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vYe(t,e){if(t==null)return{};var r=yYe(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function yYe(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function mYe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dY(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,vY(n.key),n)}}function gYe(t,e,r){return e&&dY(t.prototype,e),r&&dY(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function vY(t){var e=bYe(t,"string");return qf(e)=="symbol"?e:String(e)}function bYe(t,e){if(qf(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(qf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wYe(t,e,r){return e=A0(e),OYe(t,yY()?Reflect.construct(e,r||[],A0(t).constructor):e.apply(t,r))}function OYe(t,e){if(e&&(qf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SYe(t)}function SYe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yY(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(yY=function(){return!!t})()}function A0(t){return A0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},A0(t)}function _Ye(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nI(t,e)}function nI(t,e){return nI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nI(t,e)}function iI(){return iI=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},iI.apply(this,arguments)}var PYe={position:"relative",width:"100%",minHeight:"100%"},EYe={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"},TYe=function(t){_Ye(e,t);function e(r){var n;return mYe(this,e),n=wYe(this,e,[r]),n.handleScroll=function(){n.setState({offset:n.base.scrollTop})},n.handleResize=function(){n.resize()},n.focusElement=null,n.state={offset:0,height:0},n}return gYe(e,[{key:"componentDidMount",value:function(){this.resize(),window.addEventListener("resize",this.handleResize)}},{key:"componentWillUpdate",value:function(){this.base.contains(document.activeElement)&&(this.focusElement=document.activeElement)}},{key:"componentDidUpdate",value:function(){this.focusElement&&this.focusElement.parentNode&&document.activeElement!==this.focusElement&&this.focusElement.focus(),this.focusElement=null,this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize)}},{key:"resize",value:function(){var n=this.state.height;n!==this.base.offsetHeight&&this.setState({height:this.base.offsetHeight})}},{key:"render",value:function(n){var i=n.data,a=n.rowHeight,l=n.renderRow,c=n.overscanCount,f=c===void 0?10:c,d=vYe(n,hYe),y=this.state,m=y.offset,g=y.height,w=Math.floor(m/a),P=Math.floor(g/a);f&&(w=Math.max(0,w-w%f),P+=f);var E=w+P+4,O=i.slice(w,E),R=T0(T0({},PYe),{},{height:i.length*a}),x=T0(T0({},EYe),{},{top:w*a});return T("div",iI({onScroll:this.handleScroll},d),T("div",{role:"presentation",style:R},T("div",{role:"presentation",style:x},O.map(l))))}}]),e}(ct),x0=TYe;function mY(t,e){return IYe(t)||RYe(t,e)||xYe(t,e)||AYe()}function AYe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xYe(t,e){if(t){if(typeof t=="string")return gY(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gY(t,e)}}function gY(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function RYe(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function IYe(t){if(Array.isArray(t))return t}function Fv(t){var e=t.search,r=t.searchOnInput,n=t.searchTerm,i=t.showButton,a=t.inputLabel,l=t.clearSearchLabel,c=t.buttonLabel,f=t.clearSearch,d=t.inputClassName,y=t.buttonCSSClassName,m=pa(n!=null?n:""),g=mY(m,2),w=g[0],P=g[1],E=cl(function(N){N.preventDefault(),e(w)},[e,w]),O=cl(function(N){var j=N.target.value;P(j),r&&e(j)},[P,r,e]),R=function(){P(""),f&&f()},x=pa(function(){var N=document.createElement("form");return N.setAttribute("tabindex","-1"),N.id=Sn(),N}),A=mY(x,1),I=A[0];return Oo(function(){return document.body.appendChild(I),I.addEventListener("submit",E),function(){I.removeEventListener("submit",E),document.body.removeChild(I)}},[I,E]),T(mr,null,T("input",{className:"uppy-u-reset ".concat(d),type:"search","aria-label":a,placeholder:a,value:w,onInput:O,form:I.id,"data-uppy-super-focusable":!0}),!i&&T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-ProviderBrowser-searchFilterIcon",width:"12",height:"12",viewBox:"0 0 12 12"},T("path",{d:"M8.638 7.99l3.172 3.172a.492.492 0 1 1-.697.697L7.91 8.656a4.977 4.977 0 0 1-2.983.983C2.206 9.639 0 7.481 0 4.819 0 2.158 2.206 0 4.927 0c2.721 0 4.927 2.158 4.927 4.82a4.74 4.74 0 0 1-1.216 3.17zm-3.71.685c2.176 0 3.94-1.726 3.94-3.856 0-2.129-1.764-3.855-3.94-3.855C2.75.964.984 2.69.984 4.819c0 2.13 1.765 3.856 3.942 3.856z"})),!i&&w&&T("button",{className:"uppy-u-reset uppy-ProviderBrowser-searchFilterReset",type:"button","aria-label":l,title:l,onClick:R},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",viewBox:"0 0 19 19"},T("path",{d:"M17.318 17.232L9.94 9.854 9.586 9.5l-.354.354-7.378 7.378h.707l-.62-.62v.706L9.318 9.94l.354-.354-.354-.354L1.94 1.854v.707l.62-.62h-.706l7.378 7.378.354.354.354-.354 7.378-7.378h-.707l.622.62v-.706L9.854 9.232l-.354.354.354.354 7.378 7.378.708-.707-7.38-7.378v.708l7.38-7.38.353-.353-.353-.353-.622-.622-.353-.353-.354.352-7.378 7.38h.708L2.56 1.23 2.208.88l-.353.353-.622.62-.353.355.352.353 7.38 7.38v-.708l-7.38 7.38-.353.353.352.353.622.622.353.353.354-.353 7.38-7.38h-.708l7.38 7.38z"}))),i&&T("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary ".concat(y),type:"submit",form:I.id},c))}function oI(t){var e=t.cancel,r=t.done,n=t.i18n,i=t.selected;return T("div",{className:"uppy-ProviderBrowser-footer"},T("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary",onClick:r,type:"button"},n("selectX",{smart_count:i})),T("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link",onClick:e,type:"button"},n("cancel")))}var wY=Ce(Gn(),1);function kYe(){return T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:11,height:14.5,viewBox:"0 0 44 58"},T("path",{d:"M27.437.517a1 1 0 0 0-.094.03H4.25C2.037.548.217 2.368.217 4.58v48.405c0 2.212 1.82 4.03 4.03 4.03H39.03c2.21 0 4.03-1.818 4.03-4.03V15.61a1 1 0 0 0-.03-.28 1 1 0 0 0 0-.093 1 1 0 0 0-.03-.032 1 1 0 0 0 0-.03 1 1 0 0 0-.032-.063 1 1 0 0 0-.03-.063 1 1 0 0 0-.032 0 1 1 0 0 0-.03-.063 1 1 0 0 0-.032-.03 1 1 0 0 0-.03-.063 1 1 0 0 0-.063-.062l-14.593-14a1 1 0 0 0-.062-.062A1 1 0 0 0 28 .708a1 1 0 0 0-.374-.157 1 1 0 0 0-.156 0 1 1 0 0 0-.03-.03l-.003-.003zM4.25 2.547h22.218v9.97c0 2.21 1.82 4.03 4.03 4.03h10.564v36.438a2.02 2.02 0 0 1-2.032 2.032H4.25c-1.13 0-2.032-.9-2.032-2.032V4.58c0-1.13.902-2.032 2.03-2.032zm24.218 1.345l10.375 9.937.75.718H30.5c-1.13 0-2.032-.9-2.032-2.03V3.89z"}))}function jYe(){return T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",style:{minWidth:16,marginRight:3},viewBox:"0 0 276.157 276.157"},T("path",{d:"M273.08 101.378c-3.3-4.65-8.86-7.32-15.254-7.32h-24.34V67.59c0-10.2-8.3-18.5-18.5-18.5h-85.322c-3.63 0-9.295-2.875-11.436-5.805l-6.386-8.735c-4.982-6.814-15.104-11.954-23.546-11.954H58.73c-9.292 0-18.638 6.608-21.737 15.372l-2.033 5.752c-.958 2.71-4.72 5.37-7.596 5.37H18.5C8.3 49.09 0 57.39 0 67.59v167.07c0 .886.16 1.73.443 2.52.152 3.306 1.18 6.424 3.053 9.064 3.3 4.652 8.86 7.32 15.255 7.32h188.487c11.395 0 23.27-8.425 27.035-19.18l40.677-116.188c2.11-6.035 1.43-12.164-1.87-16.816zM18.5 64.088h8.864c9.295 0 18.64-6.607 21.738-15.37l2.032-5.75c.96-2.712 4.722-5.373 7.597-5.373h29.565c3.63 0 9.295 2.876 11.437 5.806l6.386 8.735c4.982 6.815 15.104 11.954 23.546 11.954h85.322c1.898 0 3.5 1.602 3.5 3.5v26.47H69.34c-11.395 0-23.27 8.423-27.035 19.178L15 191.23V67.59c0-1.898 1.603-3.5 3.5-3.5zm242.29 49.15l-40.676 116.188c-1.674 4.78-7.812 9.135-12.877 9.135H18.75c-1.447 0-2.576-.372-3.02-.997-.442-.625-.422-1.814.057-3.18l40.677-116.19c1.674-4.78 7.812-9.134 12.877-9.134h188.487c1.448 0 2.577.372 3.02.997.443.625.423 1.814-.056 3.18z"}))}function qYe(){return T("svg",{"aria-hidden":"true",focusable:"false",style:{width:16,marginRight:4},viewBox:"0 0 58 58"},T("path",{d:"M36.537 28.156l-11-7a1.005 1.005 0 0 0-1.02-.033C24.2 21.3 24 21.635 24 22v14a1 1 0 0 0 1.537.844l11-7a1.002 1.002 0 0 0 0-1.688zM26 34.18V23.82L34.137 29 26 34.18z"}),T("path",{d:"M57 6H1a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h56a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zM10 28H2v-9h8v9zm-8 2h8v9H2v-9zm10 10V8h34v42H12V40zm44-12h-8v-9h8v9zm-8 2h8v9h-8v-9zm8-22v9h-8V8h8zM2 8h8v9H2V8zm0 42v-9h8v9H2zm54 0h-8v-9h8v9z"}))}function aI(t){var e=t.itemIconString;if(e===null)return null;switch(e){case"file":return T(kYe,null);case"folder":return T(jYe,null);case"video":return T(qYe,null);default:{var r=t.alt;return T("img",{src:e,alt:r,referrerPolicy:"no-referrer",loading:"lazy",width:16,height:16})}}}var bY=Ce(Gn(),1);function FYe(t){var e=t.className,r=t.isDisabled,n=t.restrictionError,i=t.isChecked,a=t.title,l=t.itemIconEl,c=t.showTitles,f=t.toggleCheckbox,d=t.recordShiftKeyPress,y=t.id,m=t.children,g=(0,bY.default)("uppy-u-reset","uppy-ProviderBrowserItem-checkbox","uppy-ProviderBrowserItem-checkbox--grid",{"uppy-ProviderBrowserItem-checkbox--is-checked":i});return T("li",{className:e,title:r?n==null?void 0:n.message:void 0},T("input",{type:"checkbox",className:g,onChange:f,onKeyDown:d,onMouseDown:d,name:"listitem",id:y,checked:i,disabled:r,"data-uppy-super-focusable":!0}),T("label",{htmlFor:y,"aria-label":a,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},l,c&&a,m))}var uI=FYe;function sI(t){var e=t.className,r=t.isDisabled,n=t.restrictionError,i=t.isCheckboxDisabled,a=t.isChecked,l=t.toggleCheckbox,c=t.recordShiftKeyPress,f=t.type,d=t.id,y=t.itemIconEl,m=t.title,g=t.handleFolderClick,w=t.showTitles,P=t.i18n;return T("li",{className:e,title:r?n==null?void 0:n.message:void 0},i?null:T("input",{type:"checkbox",className:"uppy-u-reset uppy-ProviderBrowserItem-checkbox ".concat(a?"uppy-ProviderBrowserItem-checkbox--is-checked":""),onChange:l,onKeyDown:c,onMouseDown:c,name:"listitem",id:d,checked:a,"aria-label":f==="file"?null:P("allFilesFromFolderNamed",{name:m}),disabled:r,"data-uppy-super-focusable":!0}),f==="file"?T("label",{htmlFor:d,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},T("div",{className:"uppy-ProviderBrowserItem-iconWrap"},y),w&&m):T("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-ProviderBrowserItem-inner",onClick:g,"aria-label":P("openFolderNamed",{name:m})},T("div",{className:"uppy-ProviderBrowserItem-iconWrap"},y),w&&T("span",null,m)))}function Lv(){return Lv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Lv.apply(this,arguments)}function R0(t){var e=t.author,r=t.getItemIcon,n=t.isChecked,i=t.isDisabled,a=t.viewType,l=r(),c=(0,wY.default)("uppy-ProviderBrowserItem",{"uppy-ProviderBrowserItem--selected":n},{"uppy-ProviderBrowserItem--disabled":i},{"uppy-ProviderBrowserItem--noPreview":l==="video"}),f=T(aI,{itemIconString:l});switch(a){case"grid":return T(uI,Lv({},t,{className:c,itemIconEl:f}));case"list":return T(sI,Lv({},t,{className:c,itemIconEl:f}));case"unsplash":return T(uI,Lv({},t,{className:c,itemIconEl:f}),T("a",{href:"".concat(e.url,"?utm_source=Companion&utm_medium=referral"),target:"_blank",rel:"noopener noreferrer",className:"uppy-ProviderBrowserItem-author",tabIndex:-1},e.name));default:throw new Error("There is no such type ".concat(a))}}function I0(t){return DYe(t)||NYe(t)||CYe(t)||LYe()}function LYe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function CYe(t,e){if(t){if(typeof t=="string")return lI(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lI(t,e)}}function NYe(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function DYe(t){if(Array.isArray(t))return lI(t)}function lI(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var MYe="shared-with-me";function OY(t){var e=t.currentSelection,r=t.uppyFiles,n=t.viewType,i=t.isChecked,a=t.toggleCheckbox,l=t.recordShiftKeyPress,c=t.showTitles,f=t.i18n,d=t.validateRestrictions,y=t.getNextFolder,m=t.f;if(m.isFolder)return R0({showTitles:c,viewType:n,i18n:f,id:m.id,title:m.name,getItemIcon:function(){return m.icon},isChecked:i(m),toggleCheckbox:function(P){return a(P,m)},recordShiftKeyPress:l,type:"folder",isDisabled:!1,isCheckboxDisabled:m.id===MYe,handleFolderClick:function(){return y(m)}});var g=d(qv(m),[].concat(I0(r),I0(e)));return R0({id:m.id,title:m.name,author:m.author,getItemIcon:function(){return m.icon},isChecked:i(m),toggleCheckbox:function(P){return a(P,m)},isCheckboxDisabled:!1,recordShiftKeyPress:l,showTitles:c,viewType:n,i18n:f,type:"file",isDisabled:!!g&&!i(m),restrictionError:g})}function UYe(t){var e=t.currentSelection,r=t.folders,n=t.files,i=t.uppyFiles,a=t.viewType,l=t.headerComponent,c=t.showBreadcrumbs,f=t.isChecked,d=t.toggleCheckbox,y=t.recordShiftKeyPress,m=t.handleScroll,g=t.showTitles,w=t.i18n,P=t.validateRestrictions,E=t.isLoading,O=t.showSearchFilter,R=t.search,x=t.searchTerm,A=t.clearSearch,I=t.searchOnInput,N=t.searchInputLabel,j=t.clearSearchLabel,k=t.getNextFolder,z=t.cancel,B=t.done,Y=t.noResultsLabel,Q=t.loadAllFiles,X=e.length,$=jf(function(){return[].concat(I0(r),I0(n))},[r,n]);return T("div",{className:(0,cI.default)("uppy-ProviderBrowser","uppy-ProviderBrowser-viewType--".concat(a))},l&&T("div",{className:"uppy-ProviderBrowser-header"},T("div",{className:(0,cI.default)("uppy-ProviderBrowser-headerBar",!c&&"uppy-ProviderBrowser-headerBar--simple")},l)),O&&T("div",{class:"uppy-ProviderBrowser-searchFilter"},T(Fv,{search:R,searchTerm:x,clearSearch:A,inputLabel:N,clearSearchLabel:j,inputClassName:"uppy-ProviderBrowser-searchFilterInput",searchOnInput:I})),function(){return E?T("div",{className:"uppy-Provider-loading"},T("span",null,typeof E=="string"?E:w("loading"))):!r.length&&!n.length?T("div",{className:"uppy-Provider-empty"},Y):Q?T("div",{className:"uppy-ProviderBrowser-body"},T("ul",{className:"uppy-ProviderBrowser-list"},T(x0,{data:$,renderRow:function(K){return T(OY,{currentSelection:e,uppyFiles:i,viewType:a,isChecked:f,toggleCheckbox:d,recordShiftKeyPress:y,showTitles:g,i18n:w,validateRestrictions:P,getNextFolder:k,f:K})},rowHeight:31}))):T("div",{className:"uppy-ProviderBrowser-body"},T("ul",{className:"uppy-ProviderBrowser-list",onScroll:m,role:"listbox",tabIndex:-1},$.map(function(H){return T(OY,{currentSelection:e,uppyFiles:i,viewType:a,isChecked:f,toggleCheckbox:d,recordShiftKeyPress:y,showTitles:g,i18n:w,validateRestrictions:P,getNextFolder:k,f:H})})))}(),X>0&&T(oI,{selected:X,done:B,cancel:z,i18n:w}))}var k0=UYe;function Ff(t){"@babel/helpers - typeof";return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ff(t)}function BYe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function SY(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$Ye(n.key),n)}}function GYe(t,e,r){return e&&SY(t.prototype,e),r&&SY(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function $Ye(t){var e=zYe(t,"string");return Ff(e)=="symbol"?e:String(e)}function zYe(t,e){if(Ff(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Ff(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function HYe(t,e,r){return e=j0(e),WYe(t,_Y()?Reflect.construct(e,r||[],j0(t).constructor):e.apply(t,r))}function WYe(t,e){if(e&&(Ff(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VYe(t)}function VYe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _Y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_Y=function(){return!!t})()}function j0(t){return j0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},j0(t)}function KYe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fI(t,e)}function fI(t,e){return fI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fI(t,e)}var Lf=function(t){KYe(e,t);function e(){return BYe(this,e),HYe(this,e,arguments)}return GYe(e,[{key:"componentWillUnmount",value:function(){var n=this.props.onUnmount;n()}},{key:"render",value:function(){var n=this.props.children;return hi(n)[0]}}]),e}(ct);function Cf(t){return t?/^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(t):!1}function Cv(t){"@babel/helpers - typeof";return Cv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cv(t)}function pI(t){return QYe(t)||XYe(t)||EY(t)||YYe()}function YYe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function XYe(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function QYe(t){if(Array.isArray(t))return hI(t)}function JYe(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=EY(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(d){throw d},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,l=!1,c;return{s:function(){r=r.call(t)},n:function(){var d=r.next();return a=d.done,d},e:function(d){l=!0,c=d},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function EY(t,e){if(t){if(typeof t=="string")return hI(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hI(t,e)}}function hI(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ZYe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PY(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tXe(n.key),n)}}function eXe(t,e,r){return e&&PY(t.prototype,e),r&&PY(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function tXe(t){var e=rXe(t,"string");return Cv(e)=="symbol"?e:String(e)}function rXe(t,e){if(Cv(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Cv(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var q0=function(){function t(e,r){var n=this;ZYe(this,t),this.filterItems=function(i){var a=n.plugin.getPluginState();return!a.filterInput||a.filterInput===""?i:i.filter(function(l){return l.name.toLowerCase().indexOf(a.filterInput.toLowerCase())!==-1})},this.recordShiftKeyPress=function(i){n.isShiftKeyPressed=i.shiftKey},this.isChecked=function(i){var a=n.plugin.getPluginState(),l=a.currentSelection;return l.some(function(c){return c.id===i.id})},this.plugin=e,this.provider=r.provider,this.opts=r,this.isHandlingScroll=!1,this.preFirstRender=this.preFirstRender.bind(this),this.handleError=this.handleError.bind(this),this.clearSelection=this.clearSelection.bind(this),this.cancelPicking=this.cancelPicking.bind(this)}return eXe(t,[{key:"preFirstRender",value:function(){this.plugin.setPluginState({didFirstRender:!0}),this.plugin.onFirstRender()}},{key:"shouldHandleScroll",value:function(r){var n=r.target,i=n.scrollHeight,a=n.scrollTop,l=n.offsetHeight,c=i-(a+l);return c<50&&!this.isHandlingScroll}},{key:"clearSelection",value:function(){this.plugin.setPluginState({currentSelection:[],filterInput:""})}},{key:"cancelPicking",value:function(){this.clearSelection();var r=this.plugin.uppy.getPlugin("Dashboard");r&&r.hideAllPanels()}},{key:"handleError",value:function(r){var n,i=this.plugin.uppy,a=i.i18n("companionError");i.log(r.toString()),!(r.isAuthError||((n=r.cause)==null?void 0:n.name)==="AbortError")&&i.info({message:a,details:r.toString()},"error",5e3)}},{key:"registerRequestClient",value:function(){this.requestClientId=this.provider.provider,this.plugin.uppy.registerRequestClient(this.requestClientId,this.provider)}},{key:"getTagFile",value:function(r){var n={id:r.id,source:this.plugin.id,name:r.name||r.id,type:r.mimeType,isRemote:!0,data:r,meta:{},body:{fileId:r.id},remote:{companionUrl:this.plugin.opts.companionUrl,url:"".concat(this.provider.fileUrl(r.requestPath)),body:{fileId:r.id},providerName:this.provider.name,provider:this.provider.provider,requestClientId:this.requestClientId}},i=tl(n);return i&&Cf(i)&&(n.preview=r.thumbnail),r.author&&(r.author.name!=null&&(n.meta.authorName=String(r.author.name)),r.author.url&&(n.meta.authorUrl=r.author.url)),r.relDirPath!=null&&(n.meta.relativePath=r.relDirPath?"".concat(r.relDirPath,"/").concat(n.name):null),r.absDirPath!=null&&(n.meta.absolutePath=r.absDirPath?"/".concat(r.absDirPath,"/").concat(n.name):"/".concat(n.name)),n}},{key:"toggleCheckbox",value:function(r,n){r.stopPropagation(),r.preventDefault(),r.currentTarget.focus();var i=this.plugin.getPluginState(),a=i.folders,l=i.files,c=this.filterItems(a.concat(l));if(this.lastCheckbox&&this.isShiftKeyPressed){var f=this.plugin.getPluginState(),d=f.currentSelection,y=c.indexOf(this.lastCheckbox),m=c.indexOf(n),g=y<m?c.slice(y,m+1):c.slice(m,y+1),w=[],P=JYe(g),E;try{for(P.s();!(E=P.n()).done;){var O=E.value,R=this.plugin.uppy,x=R.validateRestrictions(qv(O),[].concat(pI(R.getFiles()),w));x?R.info({message:x.message},"error",R.opts.infoTimeout):w.push(O)}}catch(N){P.e(N)}finally{P.f()}this.plugin.setPluginState({currentSelection:pI(new Set([].concat(pI(d),w)))});return}this.lastCheckbox=n;var A=this.plugin.getPluginState(),I=A.currentSelection;this.isChecked(n)?this.plugin.setPluginState({currentSelection:I.filter(function(N){return N.id!==n.id})}):this.plugin.setPluginState({currentSelection:I.concat([n])})}},{key:"setLoading",value:function(r){this.plugin.setPluginState({loading:r})}}]),t}();function Au(t){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Au(t)}function TY(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=IY(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(d){throw d},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,l=!1,c;return{s:function(){r=r.call(t)},n:function(){var d=r.next();return a=d.done,d},e:function(d){l=!0,c=d},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function Ke(){"use strict";Ke=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Au(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Au(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function nXe(t){return aXe(t)||oXe(t)||IY(t)||iXe()}function iXe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function IY(t,e){if(t){if(typeof t=="string")return dI(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dI(t,e)}}function oXe(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function aXe(t){if(Array.isArray(t))return dI(t)}function dI(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function AY(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Gr(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){AY(a,n,i,l,c,"next",f)}function c(f){AY(a,n,i,l,c,"throw",f)}l(void 0)})}}function xY(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Tu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xY(Object(r),!0).forEach(function(n){uXe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xY(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function uXe(t,e,r){return e=kY(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sXe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RY(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,kY(n.key),n)}}function lXe(t,e,r){return e&&RY(t.prototype,e),r&&RY(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function kY(t){var e=cXe(t,"string");return Au(e)=="symbol"?e:String(e)}function cXe(t,e){if(Au(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function fXe(t,e,r){return e=F0(e),pXe(t,jY()?Reflect.construct(e,r||[],F0(t).constructor):e.apply(t,r))}function pXe(t,e){if(e&&(Au(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zr(t)}function jY(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jY=function(){return!!t})()}function F0(t){return F0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},F0(t)}function Zr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hXe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vI(t,e)}function vI(t,e){return vI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vI(t,e)}function Pn(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var dXe=0;function Uv(t){return"__private_"+dXe+++"_"+t}var vXe={version:"3.12.0"};function yXe(t){return t.slice(1).map(function(e){return e.name}).join("/")}function yI(t,e){return t?"".concat(t,"/").concat(e):e}function Nf(){return T("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},T("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}var mXe={viewType:"list",showTitles:!0,showFilter:!0,showBreadcrumbs:!0,loadAllFiles:!1},fl=Uv("abortController"),Gi=Uv("withAbort"),Mv=Uv("list"),Nv=Uv("listFilesAndFolders"),Dv=Uv("recursivelyListAllFiles"),gr=function(t){hXe(e,t);function e(r,n){var i;return sXe(this,e),i=fXe(this,e,[r,Tu(Tu({},mXe),n)]),Object.defineProperty(Zr(i),Dv,{value:OXe}),Object.defineProperty(Zr(i),Nv,{value:wXe}),Object.defineProperty(Zr(i),Mv,{value:bXe}),Object.defineProperty(Zr(i),Gi,{value:gXe}),Object.defineProperty(Zr(i),fl,{writable:!0,value:void 0}),i.filterQuery=i.filterQuery.bind(Zr(i)),i.clearFilter=i.clearFilter.bind(Zr(i)),i.getFolder=i.getFolder.bind(Zr(i)),i.getNextFolder=i.getNextFolder.bind(Zr(i)),i.logout=i.logout.bind(Zr(i)),i.handleAuth=i.handleAuth.bind(Zr(i)),i.handleScroll=i.handleScroll.bind(Zr(i)),i.donePicking=i.donePicking.bind(Zr(i)),i.render=i.render.bind(Zr(i)),i.plugin.setPluginState({authenticated:void 0,files:[],folders:[],breadcrumbs:[],filterInput:"",isSearchVisible:!1,currentSelection:[]}),i.registerRequestClient(),i}return lXe(e,[{key:"tearDown",value:function(){}},{key:"getFolder",value:function(){var r=Gr(Ke().mark(function i(a,l){var c=this;return Ke().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return this.setLoading(!0),d.prev=1,d.next=4,Pn(this,Gi)[Gi](function(){var y=Gr(Ke().mark(function m(g){var w,P,E,O,R,x,A,I;return Ke().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:c.lastCheckbox=void 0,w=c.plugin.getPluginState(),P=w.breadcrumbs,E=P.findIndex(function(k){return a===k.requestPath}),E!==-1?P=P.slice(0,E+1):P=[].concat(nXe(P),[{requestPath:a,name:l}]),c.nextPagePath=a,O=[],R=[];case 7:return j.next=9,Pn(c,Nv)[Nv]({breadcrumbs:P,signal:g});case 9:x=j.sent,A=x.files,I=x.folders,O=O.concat(A),R=R.concat(I),c.setLoading(c.plugin.uppy.i18n("loadedXFiles",{numFiles:O.length+R.length}));case 15:if(c.opts.loadAllFiles&&c.nextPagePath){j.next=7;break}case 16:c.plugin.setPluginState({folders:R,files:O,breadcrumbs:P,filterInput:""});case 17:case"end":return j.stop()}},m)}));return function(m){return y.apply(this,arguments)}}());case 4:d.next=12;break;case 6:if(d.prev=6,d.t0=d.catch(1),(d.t0==null?void 0:d.t0.name)!=="UserFacingApiError"){d.next=11;break}return this.plugin.uppy.info({message:this.plugin.uppy.i18n(d.t0.message)},"warning",5e3),d.abrupt("return");case 11:this.handleError(d.t0);case 12:return d.prev=12,this.setLoading(!1),d.finish(12);case 15:case"end":return d.stop()}},i,this,[[1,6,12,15]])}));function n(i,a){return r.apply(this,arguments)}return n}()},{key:"getNextFolder",value:function(n){this.getFolder(n.requestPath,n.name),this.lastCheckbox=void 0}},{key:"logout",value:function(){var r=Gr(Ke().mark(function i(){var a=this;return Ke().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,Pn(this,Gi)[Gi](function(){var f=Gr(Ke().mark(function d(y){var m,g,w;return Ke().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,a.provider.logout({signal:y});case 2:m=E.sent,m.ok&&(m.revoked||(g=a.plugin.uppy.i18n("companionUnauthorizeHint",{provider:a.plugin.title,url:m.manual_revoke_url}),a.plugin.uppy.info(g,"info",7e3)),w={authenticated:!1,files:[],folders:[],breadcrumbs:[],filterInput:""},a.plugin.setPluginState(w));case 4:case"end":return E.stop()}},d)}));return function(d){return f.apply(this,arguments)}}());case 3:c.next=8;break;case 5:c.prev=5,c.t0=c.catch(0),this.handleError(c.t0);case 8:case"end":return c.stop()}},i,this,[[0,5]])}));function n(){return r.apply(this,arguments)}return n}()},{key:"filterQuery",value:function(n){this.plugin.setPluginState({filterInput:n})}},{key:"clearFilter",value:function(){this.plugin.setPluginState({filterInput:""})}},{key:"handleAuth",value:function(){var r=Gr(Ke().mark(function i(a){var l=this;return Ke().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.prev=0,f.next=3,Pn(this,Gi)[Gi](function(){var d=Gr(Ke().mark(function y(m){return Ke().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return l.setLoading(!0),w.next=3,l.provider.login({authFormData:a,signal:m});case 3:l.plugin.setPluginState({authenticated:!0}),l.preFirstRender();case 5:case"end":return w.stop()}},y)}));return function(y){return d.apply(this,arguments)}}());case 3:f.next=11;break;case 5:if(f.prev=5,f.t0=f.catch(0),f.t0.name!=="UserFacingApiError"){f.next=10;break}return this.plugin.uppy.info({message:this.plugin.uppy.i18n(f.t0.message)},"warning",5e3),f.abrupt("return");case 10:this.plugin.uppy.log("login failed: ".concat(f.t0.message));case 11:return f.prev=11,this.setLoading(!1),f.finish(11);case 14:case"end":return f.stop()}},i,this,[[0,5,11,14]])}));function n(i){return r.apply(this,arguments)}return n}()},{key:"handleScroll",value:function(){var r=Gr(Ke().mark(function i(a){var l=this;return Ke().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!(this.shouldHandleScroll(a)&&this.nextPagePath)){f.next=13;break}return this.isHandlingScroll=!0,f.prev=2,f.next=5,Pn(this,Gi)[Gi](function(){var d=Gr(Ke().mark(function y(m){var g,w,P,E,O,R,x,A,I;return Ke().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return g=l.plugin.getPluginState(),w=g.files,P=g.folders,E=g.breadcrumbs,j.next=3,Pn(l,Nv)[Nv]({breadcrumbs:E,signal:m});case 3:O=j.sent,R=O.files,x=O.folders,A=w.concat(R),I=P.concat(x),l.plugin.setPluginState({folders:I,files:A});case 9:case"end":return j.stop()}},y)}));return function(y){return d.apply(this,arguments)}}());case 5:f.next=10;break;case 7:f.prev=7,f.t0=f.catch(2),this.handleError(f.t0);case 10:return f.prev=10,this.isHandlingScroll=!1,f.finish(10);case 13:case"end":return f.stop()}},i,this,[[2,7,10,13]])}));function n(i){return r.apply(this,arguments)}return n}()},{key:"donePicking",value:function(){var r=Gr(Ke().mark(function i(){var a=this;return Ke().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.setLoading(!0),c.prev=1,c.next=4,Pn(this,Gi)[Gi](function(){var f=Gr(Ke().mark(function d(y){var m,g,w,P,E,O,R;return Ke().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:m=a.plugin.getPluginState(),g=m.currentSelection,w=[],P=[],E=TY(g),A.prev=4,R=Ke().mark(function I(){var N,j,k,z,B,Y,Q,X;return Ke().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:if(N=O.value,j=N.requestPath,k=function(s){return Tu(Tu({},s),{},{relDirPath:s.absDirPath.replace(N.absDirPath,"").replace(/^\//,"")})},!N.isFolder){H.next=16;break}return z=!0,B=0,Y=new eY({concurrency:6}),Q=function(s){var o=TY(s),u;try{for(o.s();!(u=o.n()).done;){var p=u.value,v=a.getTagFile(p),h=Kw(v,a.plugin.uppy.getID());a.plugin.uppy.checkIfFileAlreadyExists(h)||(P.push(k(p)),B++,a.setLoading(a.plugin.uppy.i18n("addedNumFiles",{numFiles:B}))),z=!1}}catch(b){o.e(b)}finally{o.f()}},H.next=10,Pn(a,Dv)[Dv]({requestPath:j,absDirPath:yI(N.absDirPath,N.name),relDirPath:N.name,queue:Y,onFiles:Q,signal:y});case 10:return H.next=12,Y.onIdle();case 12:z?X=a.plugin.uppy.i18n("emptyFolderAdded"):B===0?X=a.plugin.uppy.i18n("folderAlreadyAdded",{folder:N.name}):X=a.plugin.uppy.i18n("folderAdded",{smart_count:B,folder:N.name}),w.push(X),H.next=17;break;case 16:P.push(k(N));case 17:case"end":return H.stop()}},I)}),E.s();case 7:if((O=E.n()).done){A.next=11;break}return A.delegateYield(R(),"t0",9);case 9:A.next=7;break;case 11:A.next=16;break;case 13:A.prev=13,A.t1=A.catch(4),E.e(A.t1);case 16:return A.prev=16,E.f(),A.finish(16);case 19:a.plugin.uppy.log("Adding files from a remote provider"),a.plugin.uppy.addFiles(P.map(function(I){return a.getTagFile(I,a.requestClientId)})),a.plugin.setPluginState({filterInput:""}),w.forEach(function(I){return a.plugin.uppy.info(I)}),a.clearSelection();case 24:case"end":return A.stop()}},d,null,[[4,13,16,19]])}));return function(d){return f.apply(this,arguments)}}());case 4:c.next=9;break;case 6:c.prev=6,c.t0=c.catch(1),this.handleError(c.t0);case 9:return c.prev=9,this.setLoading(!1),c.finish(9);case 12:case"end":return c.stop()}},i,this,[[1,6,9,12]])}));function n(){return r.apply(this,arguments)}return n}()},{key:"render",value:function(n,i){var a=this;i===void 0&&(i={});var l=this.plugin.getPluginState(),c=l.authenticated,f=l.didFirstRender,d=this.plugin.uppy.i18n;f||this.preFirstRender();var y=Tu(Tu({},this.opts),i),m=this.plugin.getPluginState(),g=m.files,w=m.folders,P=m.filterInput,E=m.loading,O=m.currentSelection,R=this.isChecked,x=this.recordShiftKeyPress,A=this.filterItems,I=P!=="",N=this.plugin.icon||Nf,j={showBreadcrumbs:y.showBreadcrumbs,getFolder:this.getFolder,breadcrumbs:this.plugin.getPluginState().breadcrumbs,pluginIcon:N,title:this.plugin.title,logout:this.logout,username:this.username,i18n:d},k={isChecked:R,toggleCheckbox:this.toggleCheckbox.bind(this),recordShiftKeyPress:x,currentSelection:O,files:I?A(g):g,folders:I?A(w):w,getNextFolder:this.getNextFolder,getFolder:this.getFolder,loadAllFiles:this.opts.loadAllFiles,showSearchFilter:y.showFilter,search:this.filterQuery,clearSearch:this.clearFilter,searchTerm:P,searchOnInput:!0,searchInputLabel:d("filter"),clearSearchLabel:d("resetFilter"),noResultsLabel:d("noFilesFound"),logout:this.logout,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,headerComponent:T(rI,j),title:this.plugin.title,viewType:y.viewType,showTitles:y.showTitles,showBreadcrumbs:y.showBreadcrumbs,pluginIcon:N,i18n:this.plugin.uppy.i18n,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:function(){var B;return(B=a.plugin.uppy).validateRestrictions.apply(B,arguments)},isLoading:E};return c===!1?T(Lf,{onUnmount:this.clearSelection},T(ZR,{pluginName:this.plugin.title,pluginIcon:N,handleAuth:this.handleAuth,i18n:this.plugin.uppy.i18nArray,renderForm:this.opts.renderAuthForm,loading:E})):T(Lf,{onUnmount:this.clearSelection},T(k0,k))}}]),e}(q0);function gXe(t){return mI.apply(this,arguments)}function mI(){return mI=Gr(Ke().mark(function t(e){var r=this,n,i,a;return Ke().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return(n=Pn(this,fl)[fl])==null||n.abort(),i=new AbortController,Pn(this,fl)[fl]=i,a=function(){i.abort(),r.clearSelection()},c.prev=4,this.plugin.uppy.on("dashboard:close-panel",a),this.plugin.uppy.on("cancel-all",a),c.next=9,e(i.signal);case 9:return c.prev=9,this.plugin.uppy.off("dashboard:close-panel",a),this.plugin.uppy.off("cancel-all",a),Pn(this,fl)[fl]=void 0,c.finish(9);case 14:case"end":return c.stop()}},t,this,[[4,,9,14]])})),mI.apply(this,arguments)}function bXe(t){return gI.apply(this,arguments)}function gI(){return gI=Gr(Ke().mark(function t(e){var r,n,i,a,l,c,f;return Ke().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return r=e.requestPath,n=e.absDirPath,i=e.signal,y.next=3,this.provider.list(r,{signal:i});case 3:return a=y.sent,l=a.username,c=a.nextPagePath,f=a.items,this.username=l||this.username,y.abrupt("return",{items:f.map(function(m){return Tu(Tu({},m),{},{absDirPath:n})}),nextPagePath:c});case 9:case"end":return y.stop()}},t,this)})),gI.apply(this,arguments)}function wXe(t){return bI.apply(this,arguments)}function bI(){return bI=Gr(Ke().mark(function t(e){var r,n,i,a,l,c,f,d;return Ke().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return r=e.breadcrumbs,n=e.signal,i=yXe(r),m.next=4,Pn(this,Mv)[Mv]({requestPath:this.nextPagePath,absDirPath:i,signal:n});case 4:return a=m.sent,l=a.items,c=a.nextPagePath,this.nextPagePath=c,f=[],d=[],l.forEach(function(g){g.isFolder?d.push(g):f.push(g)}),m.abrupt("return",{files:f,folders:d});case 12:case"end":return m.stop()}},t,this)})),bI.apply(this,arguments)}function OXe(t){return wI.apply(this,arguments)}function wI(){return wI=Gr(Ke().mark(function t(e){var r=this,n,i,a,l,c,f,d,y,m,g,w;return Ke().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:n=e.requestPath,i=e.absDirPath,a=e.relDirPath,l=e.queue,c=e.onFiles,f=e.signal,d=n;case 2:if(!d){E.next=15;break}return E.next=5,Pn(this,Mv)[Mv]({requestPath:d,absDirPath:i,signal:f});case 5:return y=E.sent,d=y.nextPagePath,m=y.items.filter(function(O){return!O.isFolder}),g=y.items.filter(function(O){return O.isFolder}),c(m),w=g.map(function(){var O=Gr(Ke().mark(function R(x){return Ke().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.abrupt("return",l.add(Gr(Ke().mark(function N(){return Ke().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.abrupt("return",Pn(r,Dv)[Dv]({requestPath:x.requestPath,absDirPath:yI(i,x.name),relDirPath:yI(a,x.name),queue:l,onFiles:c,signal:f}));case 1:case"end":return k.stop()}},N)}))));case 1:case"end":return I.stop()}},R)}));return function(R){return O.apply(this,arguments)}}()),E.next=13,Promise.all(w);case 13:E.next=2;break;case 15:case"end":return E.stop()}},t,this)})),wI.apply(this,arguments)}gr.VERSION=vXe.version;function Ru(t){"@babel/helpers - typeof";return Ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ru(t)}function Gv(){"use strict";Gv=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Ru(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Ru(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function qY(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function FY(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){qY(a,n,i,l,c,"next",f)}function c(f){qY(a,n,i,l,c,"throw",f)}l(void 0)})}}function LY(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function L0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?LY(Object(r),!0).forEach(function(n){SXe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):LY(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function SXe(t,e,r){return e=MY(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _Xe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CY(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,MY(n.key),n)}}function PXe(t,e,r){return e&&CY(t.prototype,e),r&&CY(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function MY(t){var e=EXe(t,"string");return Ru(e)=="symbol"?e:String(e)}function EXe(t,e){if(Ru(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Ru(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function TXe(t,e,r){return e=C0(e),AXe(t,UY()?Reflect.construct(e,r||[],C0(t).constructor):e.apply(t,r))}function AXe(t,e){if(e&&(Ru(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xu(t)}function UY(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(UY=function(){return!!t})()}function C0(t){return C0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},C0(t)}function xu(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xXe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&OI(t,e)}function OI(t,e){return OI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},OI(t,e)}function NY(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var RXe=0;function IXe(t){return"__private_"+RXe+++"_"+t}var kXe={version:"3.12.0"},DY={isInputMode:!0,files:[],folders:[],breadcrumbs:[],filterInput:"",currentSelection:[],searchTerm:null},jXe={viewType:"grid",showTitles:!0,showFilter:!0,showBreadcrumbs:!0},Bv=IXe("updateFilesAndInputMode"),Df=function(t){xXe(e,t);function e(r,n){var i;return _Xe(this,e),i=TXe(this,e,[r,L0(L0({},jXe),n)]),Object.defineProperty(xu(i),Bv,{value:qXe}),i.nextPageQuery=null,i.search=i.search.bind(xu(i)),i.clearSearch=i.clearSearch.bind(xu(i)),i.resetPluginState=i.resetPluginState.bind(xu(i)),i.handleScroll=i.handleScroll.bind(xu(i)),i.donePicking=i.donePicking.bind(xu(i)),i.render=i.render.bind(xu(i)),i.plugin.setPluginState(DY),i.registerRequestClient(),i}return PXe(e,[{key:"tearDown",value:function(){}},{key:"resetPluginState",value:function(){this.plugin.setPluginState(DY)}},{key:"search",value:function(){var r=FY(Gv().mark(function i(a){var l,c,f;return Gv().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(l=this.plugin.getPluginState(),c=l.searchTerm,!(a&&a===c)){y.next=3;break}return y.abrupt("return");case 3:return this.setLoading(!0),y.prev=4,y.next=7,this.provider.search(a);case 7:f=y.sent,NY(this,Bv)[Bv](f,[]),y.next=14;break;case 11:y.prev=11,y.t0=y.catch(4),this.handleError(y.t0);case 14:return y.prev=14,this.setLoading(!1),y.finish(14);case 17:case"end":return y.stop()}},i,this,[[4,11,14,17]])}));function n(i){return r.apply(this,arguments)}return n}()},{key:"clearSearch",value:function(){this.plugin.setPluginState({currentSelection:[],files:[],searchTerm:null})}},{key:"handleScroll",value:function(){var r=FY(Gv().mark(function i(a){var l,c,f,d,y;return Gv().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(l=this.nextPageQuery||null,!(this.shouldHandleScroll(a)&&l)){g.next=17;break}return this.isHandlingScroll=!0,g.prev=3,c=this.plugin.getPluginState(),f=c.files,d=c.searchTerm,g.next=7,this.provider.search(d,l);case 7:y=g.sent,NY(this,Bv)[Bv](y,f),g.next=14;break;case 11:g.prev=11,g.t0=g.catch(3),this.handleError(g.t0);case 14:return g.prev=14,this.isHandlingScroll=!1,g.finish(14);case 17:case"end":return g.stop()}},i,this,[[3,11,14,17]])}));function n(i){return r.apply(this,arguments)}return n}()},{key:"donePicking",value:function(){var n=this,i=this.plugin.getPluginState(),a=i.currentSelection;this.plugin.uppy.log("Adding remote search provider files"),this.plugin.uppy.addFiles(a.map(function(l){return n.getTagFile(l)})),this.resetPluginState()}},{key:"render",value:function(n,i){var a=this;i===void 0&&(i={});var l=this.plugin.getPluginState(),c=l.didFirstRender,f=l.isInputMode,d=l.searchTerm,y=this.plugin.uppy.i18n;c||this.preFirstRender();var m=L0(L0({},this.opts),i),g=this.plugin.getPluginState(),w=g.files,P=g.folders,E=g.filterInput,O=g.loading,R=g.currentSelection,x=this.isChecked,A=this.filterItems,I=this.recordShiftKeyPress,N=E!=="",j={isChecked:x,toggleCheckbox:this.toggleCheckbox.bind(this),recordShiftKeyPress:I,currentSelection:R,files:N?A(w):w,folders:N?A(P):P,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,showSearchFilter:m.showFilter,search:this.search,clearSearch:this.clearSearch,searchTerm:d,searchOnInput:!1,searchInputLabel:y("search"),clearSearchLabel:y("resetSearch"),noResultsLabel:y("noSearchResults"),title:this.plugin.title,viewType:m.viewType,showTitles:m.showTitles,showFilter:m.showFilter,isLoading:O,showBreadcrumbs:m.showBreadcrumbs,pluginIcon:this.plugin.icon,i18n:y,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:function(){var z;return(z=a.plugin.uppy).validateRestrictions.apply(z,arguments)}};return f?T(Lf,{onUnmount:this.resetPluginState},T("div",{className:"uppy-SearchProvider"},T(Fv,{search:this.search,inputLabel:y("enterTextToSearch"),buttonLabel:y("searchImages"),inputClassName:"uppy-c-textInput uppy-SearchProvider-input",buttonCSSClassName:"uppy-SearchProvider-searchButton",showButton:!0}))):T(Lf,{onUnmount:this.resetPluginState},T(k0,j))}}]),e}(q0);function qXe(t,e){this.nextPageQuery=t.nextPageQuery,t.items.forEach(function(r){e.push(r)}),this.plugin.setPluginState({currentSelection:[],isInputMode:!1,files:e,searchTerm:t.searchedFor})}Df.VERSION=kXe.version;function zv(t){"@babel/helpers - typeof";return zv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zv(t)}function FXe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BY(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,CXe(n.key),n)}}function LXe(t,e,r){return e&&BY(t.prototype,e),r&&BY(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function CXe(t){var e=NXe(t,"string");return zv(e)=="symbol"?e:String(e)}function NXe(t,e){if(zv(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(zv(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var GY;function So(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var DXe=0;function _I(t){return"__private_"+DXe+++"_"+t}var MXe={version:"3.0.7"},UXe="uppy/STATE_UPDATE",BXe=function(e){return function(r){return r.uppy[e]}};function GXe(t,e){var r=Object.keys(e),n={};return r.forEach(function(i){t[i]!==e[i]&&(n[i]=e[i])}),n}var ha=_I("id"),$v=_I("selector"),da=_I("store");GY=Symbol.for("uppy test: get id");var $Y=function(t){function e(r){FXe(this,e),Object.defineProperty(this,ha,{writable:!0,value:void 0}),Object.defineProperty(this,$v,{writable:!0,value:void 0}),Object.defineProperty(this,da,{writable:!0,value:void 0}),So(this,da)[da]=r.store,So(this,ha)[ha]=r.id||Sn(),So(this,$v)[$v]=r.selector||BXe(So(this,ha)[ha]),this.setState({})}return LXe(e,[{key:"setState",value:function(n){So(this,da)[da].dispatch({type:UXe,id:So(this,ha)[ha],payload:n})}},{key:"getState",value:function(){return So(this,$v)[$v](So(this,da)[da].getState())}},{key:"subscribe",value:function(n){var i=this,a=this.getState();return So(this,da)[da].subscribe(function(){var l=i.getState();if(a!==l){var c=GXe(a,l);n(a,l,c),a=l}})}},{key:t,value:function(){return So(this,ha)[ha]}}]),e}(GY);$Y.VERSION=MXe.version;var zY=$Y;function N0(t,e,r,n){return r===0||t===e?t:n===0?e:t+(e-t)*Math.pow(2,-n/r)}var br={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"};var II=Ce(Gn(),1);function Hv(t){for(var e=[],r="indeterminate",n,i=0,a=Object.values(t);i<a.length;i++){var l=a[i].progress,c=l.preprocess,f=l.postprocess;if(n==null&&(c||f)){var d=c||f;r=d.mode,n=d.message}(c==null?void 0:c.mode)==="determinate"&&e.push(c.value),(f==null?void 0:f.mode)==="determinate"&&e.push(f.value)}var y=e.reduce(function(m,g){return m+g/e.length},0);return{mode:r,message:n,value:y}}var AI=Ce(Gn(),1),TI=Ce(Bd(),1);function PI(t){var e=Math.floor(t/3600)%24,r=Math.floor(t/60)%60,n=Math.floor(t%60);return{hours:e,minutes:r,seconds:n}}function EI(t){var e=PI(t),r=e.hours===0?"":"".concat(e.hours,"h"),n=e.minutes===0?"":"".concat(e.hours===0?e.minutes:" ".concat(e.minutes.toString(10).padStart(2,"0")),"m"),i=e.hours!==0?"":"".concat(e.minutes===0?e.seconds:" ".concat(e.seconds.toString(10).padStart(2,"0")),"s");return"".concat(r).concat(n).concat(i)}var $Xe="\xB7",HY=function(){return" ".concat($Xe," ")};function WY(t){var e=t.newFiles,r=t.isUploadStarted,n=t.recoveredState,i=t.i18n,a=t.uploadState,l=t.isSomeGhost,c=t.startUpload,f=(0,AI.default)("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":a===br.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":l}),d=e&&r&&!n?i("uploadXNewFiles",{smart_count:e}):i("uploadXFiles",{smart_count:e});return T("button",{type:"button",className:f,"aria-label":i("uploadXFiles",{smart_count:e}),onClick:c,disabled:l,"data-uppy-super-focusable":!0},d)}function VY(t){var e=t.i18n,r=t.uppy;return T("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":e("retryUpload"),onClick:function(){return r.retryAll().catch(function(){})},"data-uppy-super-focusable":!0,"data-cy":"retry"},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},T("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),e("retry"))}function KY(t){var e=t.i18n,r=t.uppy;return T("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:e("cancel"),"aria-label":e("cancel"),onClick:function(){return r.cancelAll()},"data-cy":"cancel","data-uppy-super-focusable":!0},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},T("g",{fill:"none",fillRule:"evenodd"},T("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),T("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))}function YY(t){var e=t.isAllPaused,r=t.i18n,n=t.isAllComplete,i=t.resumableUploads,a=t.uppy,l=r(e?"resume":"pause");function c(){if(!n){if(!i){a.cancelAll();return}if(e){a.resumeAll();return}a.pauseAll()}}return T("button",{title:l,"aria-label":l,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:c,"data-cy":"togglePauseResume","data-uppy-super-focusable":!0},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},T("g",{fill:"none",fillRule:"evenodd"},T("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),T("path",{fill:"#FFF",d:e?"M6 4.25L11.5 8 6 11.75z":"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z"}))))}function XY(t){var e=t.i18n,r=t.doneButtonHandler;return T("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:r,"data-uppy-super-focusable":!0},e("done"))}function QY(){return T("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},T("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))}function JY(t){var e=t.progress,r=e.value,n=e.mode,i=e.message,a="\xB7";return T("div",{className:"uppy-StatusBar-content"},T(QY,null),n==="determinate"?"".concat(Math.round(r*100),"% ").concat(a," "):"",i)}function zXe(t){var e=t.numUploads,r=t.complete,n=t.totalUploadedSize,i=t.totalSize,a=t.totalETA,l=t.i18n,c=e>1;return T("div",{className:"uppy-StatusBar-statusSecondary"},c&&l("filesUploadedOfTotal",{complete:r,smart_count:e}),T("span",{className:"uppy-StatusBar-additionalInfo"},c&&HY(),l("dataUploadedOfTotal",{complete:(0,TI.default)(n),total:(0,TI.default)(i)}),HY(),l("xTimeLeft",{time:EI(a)})))}function ZY(t){var e=t.i18n,r=t.complete,n=t.numUploads;return T("div",{className:"uppy-StatusBar-statusSecondary"},e("filesUploadedOfTotal",{complete:r,smart_count:n}))}function HXe(t){var e=t.i18n,r=t.newFiles,n=t.startUpload,i=(0,AI.default)("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return T("div",{className:"uppy-StatusBar-statusSecondary"},T("div",{className:"uppy-StatusBar-statusSecondaryHint"},e("xMoreFilesAdded",{smart_count:r})),T("button",{type:"button",className:i,"aria-label":e("uploadXFiles",{smart_count:r}),onClick:n},e("upload")))}function eX(t){var e=t.i18n,r=t.supportsUploadProgress,n=t.totalProgress,i=t.showProgressDetails,a=t.isUploadStarted,l=t.isAllComplete,c=t.isAllPaused,f=t.newFiles,d=t.numUploads,y=t.complete,m=t.totalUploadedSize,g=t.totalSize,w=t.totalETA,P=t.startUpload,E=f&&a;if(!a||l)return null;var O=e(c?"paused":"uploading");function R(){return!c&&!E&&i?r?T(zXe,{numUploads:d,complete:y,totalUploadedSize:m,totalSize:g,totalETA:w,i18n:e}):T(ZY,{i18n:e,complete:y,numUploads:d}):null}return T("div",{className:"uppy-StatusBar-content","aria-label":O,title:O},c?null:T(QY,null),T("div",{className:"uppy-StatusBar-status"},T("div",{className:"uppy-StatusBar-statusPrimary"},r?"".concat(O,": ").concat(n,"%"):O),R(),E?T(HXe,{i18n:e,newFiles:f,startUpload:P}):null))}function tX(t){var e=t.i18n;return T("div",{className:"uppy-StatusBar-content",role:"status",title:e("complete")},T("div",{className:"uppy-StatusBar-status"},T("div",{className:"uppy-StatusBar-statusPrimary"},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},T("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),e("complete"))))}function rX(t){var e=t.error,r=t.i18n,n=t.complete,i=t.numUploads;function a(){var l="".concat(r("uploadFailed")," \n\n ").concat(e);alert(l)}return T("div",{className:"uppy-StatusBar-content",title:r("uploadFailed")},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},T("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),T("div",{className:"uppy-StatusBar-status"},T("div",{className:"uppy-StatusBar-statusPrimary"},r("uploadFailed"),T("button",{className:"uppy-u-reset uppy-StatusBar-details","aria-label":r("showErrorDetails"),"data-microtip-position":"top-right","data-microtip-size":"medium",onClick:a,type:"button"},"?")),T(ZY,{i18n:r,complete:n,numUploads:i})))}var nX=br.STATE_ERROR,iX=br.STATE_WAITING,xI=br.STATE_PREPROCESSING,D0=br.STATE_UPLOADING,RI=br.STATE_POSTPROCESSING,M0=br.STATE_COMPLETE;function U0(t){var e=t.newFiles,r=t.allowNewUpload,n=t.isUploadInProgress,i=t.isAllPaused,a=t.resumableUploads,l=t.error,c=t.hideUploadButton,f=t.hidePauseResumeButton,d=t.hideCancelButton,y=t.hideRetryButton,m=t.recoveredState,g=t.uploadState,w=t.totalProgress,P=t.files,E=t.supportsUploadProgress,O=t.hideAfterFinish,R=t.isSomeGhost,x=t.doneButtonHandler,A=t.isUploadStarted,I=t.i18n,N=t.startUpload,j=t.uppy,k=t.isAllComplete,z=t.showProgressDetails,B=t.numUploads,Y=t.complete,Q=t.totalSize,X=t.totalETA,$=t.totalUploadedSize;function H(){switch(g){case RI:case xI:{var C=Hv(P);return C.mode==="determinate"?C.value*100:w}case nX:return null;case D0:return E?w:null;default:return w}}function K(){switch(g){case RI:case xI:{var C=Hv(P),Me=C.mode;return Me==="indeterminate"}case D0:return!E;default:return!1}}function s(){if(m)return!1;switch(g){case iX:return c||e===0;case M0:return O;default:return!1}}var o=H(),u=s(),p=o!=null?o:100,v=!l&&e&&!n&&!i&&r&&!c,h=!d&&g!==iX&&g!==M0,b=a&&!f&&g===D0,S=l&&!k&&!y,_=x&&g===M0,q=(0,II.default)("uppy-StatusBar-progress",{"is-indeterminate":K()}),F=(0,II.default)("uppy-StatusBar","is-".concat(g),{"has-ghosts":R});return T("div",{className:F,"aria-hidden":u},T("div",{className:q,style:{width:"".concat(p,"%")},role:"progressbar","aria-label":"".concat(p,"%"),"aria-valuetext":"".concat(p,"%"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o}),function(){switch(g){case xI:case RI:return T(JY,{progress:Hv(P)});case M0:return T(tX,{i18n:I});case nX:return T(rX,{error:l,i18n:I,numUploads:B,complete:Y});case D0:return T(eX,{i18n:I,supportsUploadProgress:E,totalProgress:w,showProgressDetails:z,isUploadStarted:A,isAllComplete:k,isAllPaused:i,newFiles:e,numUploads:B,complete:Y,totalUploadedSize:$,totalSize:Q,totalETA:X,startUpload:N});default:return null}}(),T("div",{className:"uppy-StatusBar-actions"},m||v?T(WY,{newFiles:e,isUploadStarted:A,recoveredState:m,i18n:I,isSomeGhost:R,startUpload:N,uploadState:g}):null,S?T(VY,{i18n:I,uppy:j}):null,b?T(YY,{isAllPaused:i,i18n:I,isAllComplete:k,resumableUploads:a,uppy:j}):null,h?T(KY,{i18n:I,uppy:j}):null,_?T(XY,{i18n:I,doneButtonHandler:x}):null))}U0.defaultProps={doneButtonHandler:void 0,hideAfterFinish:!1,hideCancelButton:!1,hidePauseResumeButton:!1,hideRetryButton:!1,hideUploadButton:void 0,showProgressDetails:void 0};var oX={strings:{uploading:"Uploading",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},upload:"Upload",retryUpload:"Retry upload",xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},showErrorDetails:"Show error details"}};function Mf(t){"@babel/helpers - typeof";return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mf(t)}function aX(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function uX(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?aX(Object(r),!0).forEach(function(n){WXe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aX(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function WXe(t,e,r){return e=lX(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VXe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sX(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,lX(n.key),n)}}function KXe(t,e,r){return e&&sX(t.prototype,e),r&&sX(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function lX(t){var e=YXe(t,"string");return Mf(e)=="symbol"?e:String(e)}function YXe(t,e){if(Mf(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Mf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function XXe(t,e,r){return e=B0(e),QXe(t,cX()?Reflect.construct(e,r||[],B0(t).constructor):e.apply(t,r))}function QXe(t,e){if(e&&(Mf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return En(t)}function cX(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(cX=function(){return!!t})()}function B0(t){return B0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},B0(t)}function En(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function JXe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jI(t,e)}function jI(t,e){return jI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jI(t,e)}function At(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var ZXe=0;function Uf(t){return"__private_"+ZXe+++"_"+t}var eQe={version:"3.3.2"},tQe=2e3,rQe=2e3;function nQe(t,e,r,n){if(t)return br.STATE_ERROR;if(e)return br.STATE_COMPLETE;if(r)return br.STATE_WAITING;for(var i=br.STATE_WAITING,a=Object.keys(n),l=0;l<a.length;l++){var c=n[a[l]].progress;if(c.uploadStarted&&!c.uploadComplete)return br.STATE_UPLOADING;c.preprocess&&(i=br.STATE_PREPROCESSING),c.postprocess&&i!==br.STATE_PREPROCESSING&&(i=br.STATE_POSTPROCESSING)}return i}var iQe={target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null},mi=Uf("lastUpdateTime"),$i=Uf("previousUploadedBytes"),va=Uf("previousSpeed"),$n=Uf("previousETA"),kI=Uf("computeSmoothETA"),Wv=Uf("onUploadStart"),Bf=function(t){JXe(e,t);function e(r,n){var i;return VXe(this,e),i=XXe(this,e,[r,uX(uX({},iQe),n)]),Object.defineProperty(En(i),kI,{value:oQe}),Object.defineProperty(En(i),mi,{writable:!0,value:void 0}),Object.defineProperty(En(i),$i,{writable:!0,value:void 0}),Object.defineProperty(En(i),va,{writable:!0,value:void 0}),Object.defineProperty(En(i),$n,{writable:!0,value:void 0}),i.startUpload=function(){return i.uppy.upload().catch(function(){})},Object.defineProperty(En(i),Wv,{writable:!0,value:function(){var l=i.uppy.getState(),c=l.recoveredState;if(At(En(i),va)[va]=null,At(En(i),$n)[$n]=null,c){At(En(i),$i)[$i]=Object.values(c.files).reduce(function(f,d){var y=d.progress;return f+y.bytesUploaded},0),i.uppy.emit("restore-confirmed");return}At(En(i),mi)[mi]=performance.now(),At(En(i),$i)[$i]=0}}),i.id=i.opts.id||"StatusBar",i.title="StatusBar",i.type="progressindicator",i.defaultLocale=oX,i.i18nInit(),i.render=i.render.bind(En(i)),i.install=i.install.bind(En(i)),i}return KXe(e,[{key:"render",value:function(n){var i=n.capabilities,a=n.files,l=n.allowNewUpload,c=n.totalProgress,f=n.error,d=n.recoveredState,y=this.uppy.getObjectOfFilesPerState(),m=y.newFiles,g=y.startedFiles,w=y.completeFiles,P=y.isUploadStarted,E=y.isAllComplete,O=y.isAllErrored,R=y.isAllPaused,x=y.isUploadInProgress,A=y.isSomeGhost,I=d?Object.values(a):m,N=!!i.resumableUploads,j=i.uploadProgress!==!1,k=0,z=0;g.forEach(function(Y){k+=Y.progress.bytesTotal||0,z+=Y.progress.bytesUploaded||0});var B=At(this,kI)[kI]({uploaded:z,total:k,remaining:k-z});return U0({error:f,uploadState:nQe(f,E,d,n.files||{}),allowNewUpload:l,totalProgress:c,totalSize:k,totalUploadedSize:z,isAllComplete:!1,isAllPaused:R,isAllErrored:O,isUploadStarted:P,isUploadInProgress:x,isSomeGhost:A,recoveredState:d,complete:w.length,newFiles:I.length,numUploads:g.length,totalETA:B,files:a,i18n:this.i18n,uppy:this.uppy,startUpload:this.startUpload,doneButtonHandler:this.opts.doneButtonHandler,resumableUploads:N,supportsUploadProgress:j,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})}},{key:"onMount",value:function(){var n=this.el,i=n0(n);i||(n.dir="ltr")}},{key:"install",value:function(){var n=this.opts.target;n&&this.mount(n,this),this.uppy.on("upload",At(this,Wv)[Wv]),At(this,mi)[mi]=performance.now(),At(this,$i)[$i]=this.uppy.getFiles().reduce(function(i,a){return i+a.progress.bytesUploaded},0)}},{key:"uninstall",value:function(){this.unmount(),this.uppy.off("upload",At(this,Wv)[Wv])}}]),e}(Ae);function oQe(t){var e,r;if(t.total===0||t.remaining===0)return 0;(r=(e=At(this,mi))[mi])!=null||(e[mi]=performance.now());var n=performance.now()-At(this,mi)[mi];if(n===0){var i;return Math.round(((i=At(this,$n)[$n])!=null?i:0)/100)/10}var a=t.uploaded-At(this,$i)[$i];if(At(this,$i)[$i]=t.uploaded,a<=0){var l;return Math.round(((l=At(this,$n)[$n])!=null?l:0)/100)/10}var c=a/n,f=At(this,va)[va]==null?c:N0(c,At(this,va)[va],tQe,n);At(this,va)[va]=f;var d=t.remaining/f,y=Math.max(At(this,$n)[$n]-n,0),m=At(this,$n)[$n]==null?d:N0(d,y,rQe,n);return At(this,$n)[$n]=m,At(this,mi)[mi]=performance.now(),Math.round(m/100)/10}Bf.VERSION=eQe.version;function Gf(t){"@babel/helpers - typeof";return Gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gf(t)}function aQe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fX(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sQe(n.key),n)}}function uQe(t,e,r){return e&&fX(t.prototype,e),r&&fX(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function sQe(t){var e=lQe(t,"string");return Gf(e)=="symbol"?e:String(e)}function lQe(t,e){if(Gf(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Gf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cQe(t,e,r){return e=G0(e),fQe(t,hX()?Reflect.construct(e,r||[],G0(t).constructor):e.apply(t,r))}function fQe(t,e){if(e&&(Gf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pQe(t)}function pQe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hX(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hX=function(){return!!t})()}function G0(t){return G0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},G0(t)}function hQe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qI(t,e)}function qI(t,e){return qI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qI(t,e)}var pX=300,dX=function(t){hQe(e,t);function e(){var r;return aQe(this,e),r=cQe(this,e,arguments),r.ref=mV(),r}return uQe(e,[{key:"componentWillEnter",value:function(n){this.ref.current.style.opacity="1",this.ref.current.style.transform="none",setTimeout(n,pX)}},{key:"componentWillLeave",value:function(n){this.ref.current.style.opacity="0",this.ref.current.style.transform="translateY(350%)",setTimeout(n,pX)}},{key:"render",value:function(){var n=this.props.children;return T("div",{className:"uppy-Informer-animated",ref:this.ref},n)}}]),e}(ct);function $f(t){"@babel/helpers - typeof";return $f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$f(t)}var dQe=["childFactory","transitionLeave","transitionName","transitionAppear","transitionEnter","transitionLeaveTimeout","transitionEnterTimeout","transitionAppearTimeout","component"];function vQe(t,e){return bQe(t)||gQe(t,e)||mQe(t,e)||yQe()}function yQe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mQe(t,e){if(t){if(typeof t=="string")return vX(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vX(t,e)}}function vX(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function gQe(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function bQe(t){if(Array.isArray(t))return t}function wQe(t,e){if(t==null)return{};var r=OQe(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function OQe(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function SQe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yX(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,PQe(n.key),n)}}function _Qe(t,e,r){return e&&yX(t.prototype,e),r&&yX(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function PQe(t){var e=EQe(t,"string");return $f(e)=="symbol"?e:String(e)}function EQe(t,e){if($f(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if($f(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function TQe(t,e,r){return e=z0(e),AQe(t,mX()?Reflect.construct(e,r||[],z0(t).constructor):e.apply(t,r))}function AQe(t,e){if(e&&($f(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $0(t)}function mX(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(mX=function(){return!!t})()}function z0(t){return z0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},z0(t)}function $0(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xQe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&FI(t,e)}function FI(t,e){return FI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},FI(t,e)}function RQe(t,e){return Object.assign(t,e)}function IQe(t,e){var r;return(r=t==null?void 0:t.key)!=null?r:e}function kQe(t,e){var r=t._ptgLinkedRefs||(t._ptgLinkedRefs={});return r[e]||(r[e]=function(n){t.refs[e]=n})}function Vv(t){for(var e={},r=0;r<t.length;r++)if(t[r]!=null){var n=IQe(t[r],r.toString(36));e[n]=t[r]}return e}function jQe(t,e){t=t||{},e=e||{};var r=function(g){return e.hasOwnProperty(g)?e[g]:t[g]},n={},i=[];for(var a in t)e.hasOwnProperty(a)?i.length&&(n[a]=i,i=[]):i.push(a);var l={};for(var c in e){if(n.hasOwnProperty(c))for(var f=0;f<n[c].length;f++){var d=n[c][f];l[n[c][f]]=r(d)}l[c]=r(c)}for(var y=0;y<i.length;y++)l[i[y]]=r(i[y]);return l}var qQe=function(e){return e},gX=function(t){xQe(e,t);function e(r,n){var i;return SQe(this,e),i=TQe(this,e,[r,n]),i.refs={},i.state={children:Vv(hi(hi(i.props.children))||[])},i.performAppear=i.performAppear.bind($0(i)),i.performEnter=i.performEnter.bind($0(i)),i.performLeave=i.performLeave.bind($0(i)),i}return _Qe(e,[{key:"componentWillMount",value:function(){this.currentlyTransitioningKeys={},this.keysToAbortLeave=[],this.keysToEnter=[],this.keysToLeave=[]}},{key:"componentDidMount",value:function(){var n=this.state.children;for(var i in n)n[i]&&this.performAppear(i)}},{key:"componentWillReceiveProps",value:function(n){var i=Vv(hi(n.children)||[]),a=this.state.children;this.setState(function(d){return{children:jQe(d.children,i)}});var l;for(l in i)if(i.hasOwnProperty(l)){var c=a&&a.hasOwnProperty(l);i[l]&&c&&this.currentlyTransitioningKeys[l]?(this.keysToEnter.push(l),this.keysToAbortLeave.push(l)):i[l]&&!c&&!this.currentlyTransitioningKeys[l]&&this.keysToEnter.push(l)}for(l in a)if(a.hasOwnProperty(l)){var f=i&&i.hasOwnProperty(l);a[l]&&!f&&!this.currentlyTransitioningKeys[l]&&this.keysToLeave.push(l)}}},{key:"componentDidUpdate",value:function(){var n=this.keysToEnter;this.keysToEnter=[],n.forEach(this.performEnter);var i=this.keysToLeave;this.keysToLeave=[],i.forEach(this.performLeave)}},{key:"_finishAbort",value:function(n){var i=this.keysToAbortLeave.indexOf(n);i!==-1&&this.keysToAbortLeave.splice(i,1)}},{key:"performAppear",value:function(n){this.currentlyTransitioningKeys[n]=!0;var i=this.refs[n];i!=null&&i.componentWillAppear?i.componentWillAppear(this._handleDoneAppearing.bind(this,n)):this._handleDoneAppearing(n)}},{key:"_handleDoneAppearing",value:function(n){var i=this.refs[n];i!=null&&i.componentDidAppear&&i.componentDidAppear(),delete this.currentlyTransitioningKeys[n],this._finishAbort(n);var a=Vv(hi(this.props.children)||[]);(!a||!a.hasOwnProperty(n))&&this.performLeave(n)}},{key:"performEnter",value:function(n){this.currentlyTransitioningKeys[n]=!0;var i=this.refs[n];i!=null&&i.componentWillEnter?i.componentWillEnter(this._handleDoneEntering.bind(this,n)):this._handleDoneEntering(n)}},{key:"_handleDoneEntering",value:function(n){var i=this.refs[n];i!=null&&i.componentDidEnter&&i.componentDidEnter(),delete this.currentlyTransitioningKeys[n],this._finishAbort(n);var a=Vv(hi(this.props.children)||[]);(!a||!a.hasOwnProperty(n))&&this.performLeave(n)}},{key:"performLeave",value:function(n){var i=this.keysToAbortLeave.indexOf(n);if(i===-1){this.currentlyTransitioningKeys[n]=!0;var a=this.refs[n];a!=null&&a.componentWillLeave?a.componentWillLeave(this._handleDoneLeaving.bind(this,n)):this._handleDoneLeaving(n)}}},{key:"_handleDoneLeaving",value:function(n){var i=this.keysToAbortLeave.indexOf(n);if(i===-1){var a=this.refs[n];a!=null&&a.componentDidLeave&&a.componentDidLeave(),delete this.currentlyTransitioningKeys[n];var l=Vv(hi(this.props.children)||[]);if(l&&l.hasOwnProperty(n))this.performEnter(n);else{var c=RQe({},this.state.children);delete c[n],this.setState({children:c})}}}},{key:"render",value:function(n,i){var a=this,l=n.childFactory,c=n.transitionLeave,f=n.transitionName,d=n.transitionAppear,y=n.transitionEnter,m=n.transitionLeaveTimeout,g=n.transitionEnterTimeout,w=n.transitionAppearTimeout,P=n.component,E=wQe(n,dQe),O=i.children,R=Object.entries(O).map(function(x){var A=vQe(x,2),I=A[0],N=A[1];if(N){var j=kQe(a,I);return t0(l(N),{ref:j,key:I})}}).filter(Boolean);return T(P,E,R)}}]),e}(ct);gX.defaultProps={component:"span",childFactory:qQe};var bX=gX;function zf(t){"@babel/helpers - typeof";return zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zf(t)}function FQe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wX(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,CQe(n.key),n)}}function LQe(t,e,r){return e&&wX(t.prototype,e),r&&wX(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function CQe(t){var e=NQe(t,"string");return zf(e)=="symbol"?e:String(e)}function NQe(t,e){if(zf(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(zf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function DQe(t,e,r){return e=H0(e),MQe(t,OX()?Reflect.construct(e,r||[],H0(t).constructor):e.apply(t,r))}function MQe(t,e){if(e&&(zf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UQe(t)}function UQe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function OX(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(OX=function(){return!!t})()}function H0(t){return H0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},H0(t)}function BQe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&LI(t,e)}function LI(t,e){return LI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},LI(t,e)}var GQe={version:"3.1.0"},Hf=function(t){BQe(e,t);function e(r,n){var i;return FQe(this,e),i=DQe(this,e,[r,n]),i.render=function(a){return T("div",{className:"uppy uppy-Informer"},T(bX,null,a.info.map(function(l){return T(dX,{key:l.message},T("p",{role:"alert"},l.message," ",l.details&&T("span",{"aria-label":l.details,"data-microtip-position":"top-left","data-microtip-size":"medium",role:"tooltip",onClick:function(){return alert("".concat(l.message," \n\n ").concat(l.details))}},"?")))})))},i.type="progressindicator",i.id=i.opts.id||"Informer",i.title="Informer",i}return LQe(e,[{key:"install",value:function(){var n=this.opts.target;n&&this.mount(n,this)}}]),e}(Ae);Hf.VERSION=GQe.version;var $Qe=/^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;function zQe(t,e,r){var n,i,a=$Qe.exec(t),l=(n=(i=e.mimeType)!=null?i:a==null?void 0:a[1])!=null?n:"plain/text",c;if((a==null?void 0:a[2])!=null){for(var f=atob(decodeURIComponent(a[3])),d=new Uint8Array(f.length),y=0;y<f.length;y++)d[y]=f.charCodeAt(y);c=[d]}else(a==null?void 0:a[3])!=null&&(c=[decodeURIComponent(a[3])]);return r?new File(c,e.name||"",{type:l}):new Blob(c,{type:l})}var SX=zQe;function W0(t){return t.startsWith("blob:")}function HQe(t,e,r){return e=HX(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ye(){"use strict";ye=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&bi(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(bi(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function Qf(t){return KQe(t)||VQe(t)||XI(t)||WQe()}function WQe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function VQe(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function KQe(t){if(Array.isArray(t))return BI(t)}function gi(t,e){return QQe(t)||XQe(t,e)||XI(t,e)||YQe()}function YQe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function XQe(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function QQe(t){if(Array.isArray(t))return t}function ft(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=XI(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(d){throw d},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,l=!1,c;return{s:function(){r=r.call(t)},n:function(){var d=r.next();return a=d.done,d},e:function(d){l=!0,c=d},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function XI(t,e){if(t){if(typeof t=="string")return BI(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return BI(t,e)}}function BI(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _X(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function rt(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){_X(a,n,i,l,c,"next",f)}function c(f){_X(a,n,i,l,c,"throw",f)}l(void 0)})}}function Eo(t,e,r){return e=Po(e),zX(t,QI()?Reflect.construct(e,r||[],Po(t).constructor):e.apply(t,r))}function zX(t,e){if(e&&(bi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zn(t)}function zn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pl(){return typeof Reflect!="undefined"&&Reflect.get?pl=Reflect.get.bind():pl=function(e,r,n){var i=JQe(e,r);if(i){var a=Object.getOwnPropertyDescriptor(i,r);return a.get?a.get.call(arguments.length<3?e:n):a.value}},pl.apply(this,arguments)}function JQe(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Po(t),t!==null););return t}function To(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qv(t,e)}function V0(t){var e=typeof Map=="function"?new Map:void 0;return V0=function(n){if(n===null||!eJe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return ZQe(n,arguments,Po(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Qv(i,n)},V0(t)}function ZQe(t,e,r){if(QI())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&Qv(i,r.prototype),i}function QI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(QI=function(){return!!t})()}function eJe(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch(e){return typeof t=="function"}}function Qv(t,e){return Qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qv(t,e)}function Po(t){return Po=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Po(t)}function bi(t){"@babel/helpers - typeof";return bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bi(t)}function $r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PX(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,HX(n.key),n)}}function zr(t,e,r){return e&&PX(t.prototype,e),r&&PX(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function HX(t){var e=tJe(t,"string");return bi(e)=="symbol"?e:String(e)}function tJe(t,e){if(bi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var WX=typeof self!="undefined"?self:global,Iu=typeof navigator!="undefined",K0=Iu&&typeof HTMLImageElement=="undefined",EX=!(typeof global=="undefined"||typeof process=="undefined"||!process.versions||!process.versions.node),VX=WX.Buffer,KX=!!VX,rJe=function(e){return e!==void 0};function YX(t){return t===void 0||(t instanceof Map?t.size===0:Object.values(t).filter(rJe).length===0)}function wr(t){var e=new Error(t);throw delete e.stack,e}function TX(t){var e=function(r){var n=0;return r.ifd0.enabled&&(n+=1024),r.exif.enabled&&(n+=2048),r.makerNote&&(n+=2048),r.userComment&&(n+=1024),r.gps.enabled&&(n+=512),r.interop.enabled&&(n+=100),r.ifd1.enabled&&(n+=1024),n+2048}(t);return t.jfif.enabled&&(e+=50),t.xmp.enabled&&(e+=2e4),t.iptc.enabled&&(e+=14e3),t.icc.enabled&&(e+=6e3),e}var CI=function(e){return String.fromCharCode.apply(null,e)},AX=typeof TextDecoder!="undefined"?new TextDecoder("utf-8"):void 0,Jv=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if($r(this,t),typeof i=="boolean"&&(this.le=i),Array.isArray(e)&&(e=new Uint8Array(e)),e===0)this.byteOffset=0,this.byteLength=0;else if(e instanceof ArrayBuffer){n===void 0&&(n=e.byteLength-r);var a=new DataView(e,r,n);this._swapDataView(a)}else if(e instanceof Uint8Array||e instanceof DataView||e instanceof t){n===void 0&&(n=e.byteLength-r),(r+=e.byteOffset)+n>e.byteOffset+e.byteLength&&wr("Creating view outside of available memory in ArrayBuffer");var l=new DataView(e.buffer,r,n);this._swapDataView(l)}else if(typeof e=="number"){var c=new DataView(new ArrayBuffer(e));this._swapDataView(c)}else wr("Invalid input argument for BufferView: "+e)}return zr(t,[{key:"_swapArrayBuffer",value:function(r){this._swapDataView(new DataView(r))}},{key:"_swapBuffer",value:function(r){this._swapDataView(new DataView(r.buffer,r.byteOffset,r.byteLength))}},{key:"_swapDataView",value:function(r){this.dataView=r,this.buffer=r.buffer,this.byteOffset=r.byteOffset,this.byteLength=r.byteLength}},{key:"_lengthToEnd",value:function(r){return this.byteLength-r}},{key:"set",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t;return r instanceof DataView||r instanceof t?r=new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r instanceof ArrayBuffer&&(r=new Uint8Array(r)),r instanceof Uint8Array||wr("BufferView.set(): Invalid data argument."),this.toUint8().set(r,n),new i(this,n,r.byteLength)}},{key:"subarray",value:function(r,n){return n=n||this._lengthToEnd(r),new t(this,r,n)}},{key:"toUint8",value:function(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}},{key:"getUint8Array",value:function(r,n){return new Uint8Array(this.buffer,this.byteOffset+r,n)}},{key:"getString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.byteLength,i=this.getUint8Array(r,n);return a=i,AX?AX.decode(a):KX?Buffer.from(a).toString("utf8"):decodeURIComponent(escape(CI(a)));var a}},{key:"getLatin1String",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.byteLength,i=this.getUint8Array(r,n);return CI(i)}},{key:"getUnicodeString",value:function(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.byteLength,i=[],a=0;a<n&&r+a<this.byteLength;a+=2)i.push(this.getUint16(r+a));return CI(i)}},{key:"getInt8",value:function(r){return this.dataView.getInt8(r)}},{key:"getUint8",value:function(r){return this.dataView.getUint8(r)}},{key:"getInt16",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getInt16(r,n)}},{key:"getInt32",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getInt32(r,n)}},{key:"getUint16",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getUint16(r,n)}},{key:"getUint32",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getUint32(r,n)}},{key:"getFloat32",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getFloat32(r,n)}},{key:"getFloat64",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getFloat64(r,n)}},{key:"getFloat",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getFloat32(r,n)}},{key:"getDouble",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.le;return this.dataView.getFloat64(r,n)}},{key:"getUintBytes",value:function(r,n,i){switch(n){case 1:return this.getUint8(r,i);case 2:return this.getUint16(r,i);case 4:return this.getUint32(r,i);case 8:return this.getUint64&&this.getUint64(r,i)}}},{key:"getUint",value:function(r,n,i){switch(n){case 8:return this.getUint8(r,i);case 16:return this.getUint16(r,i);case 32:return this.getUint32(r,i);case 64:return this.getUint64&&this.getUint64(r,i)}}},{key:"toString",value:function(r){return this.dataView.toString(r,this.constructor.name)}},{key:"ensureChunk",value:function(){}}],[{key:"from",value:function(r,n){return r instanceof this&&r.le===n?r:new t(r,void 0,void 0,n)}}]),t}();function GI(t,e){wr("".concat(t," '").concat(e,"' was not loaded, try using full build of exifr."))}var JI=function(t){To(e,t);function e(r){var n;return $r(this,e),n=Eo(this,e),n.kind=r,n}return zr(e,[{key:"get",value:function(n,i){return this.has(n)||GI(this.kind,n),i&&(n in i||function(a,l){wr("Unknown ".concat(a," '").concat(l,"'."))}(this.kind,n),i[n].enabled||GI(this.kind,n)),pl(Po(e.prototype),"get",this).call(this,n)}},{key:"keyList",value:function(){return Array.from(this.keys())}}]),e}(V0(Map)),Q0=new JI("file parser"),Hn=new JI("segment parser"),ty=new JI("file reader"),nJe=WX.fetch;function xX(t,e){return(r=t).startsWith("data:")||r.length>1e4?HI(t,e,"base64"):EX&&t.includes("://")?$I(t,e,"url",Y0):EX?HI(t,e,"fs"):Iu?$I(t,e,"url",Y0):void wr("Invalid input argument");var r}function $I(t,e,r,n){return zI.apply(this,arguments)}function zI(){return zI=rt(ye().mark(function t(e,r,n,i){return ye().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",ty.has(n)?HI(e,r,n):i?function(){var c=rt(ye().mark(function f(d,y){var m;return ye().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,y(d);case 2:return m=w.sent,w.abrupt("return",new Jv(m));case 4:case"end":return w.stop()}},f)}));return function(f,d){return c.apply(this,arguments)}}()(e,i):void wr("Parser ".concat(n," is not loaded")));case 1:case"end":return l.stop()}},t)})),zI.apply(this,arguments)}function HI(t,e,r){return WI.apply(this,arguments)}function WI(){return WI=rt(ye().mark(function t(e,r,n){var i;return ye().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=new(ty.get(n))(e,r),l.next=3,i.read();case 3:return l.abrupt("return",i);case 4:case"end":return l.stop()}},t)})),WI.apply(this,arguments)}var Y0=function(e){return nJe(e).then(function(r){return r.arrayBuffer()})},Zv=function(e){return new Promise(function(r,n){var i=new FileReader;i.onloadend=function(){return r(i.result||new ArrayBuffer)},i.onerror=n,i.readAsArrayBuffer(e)})},iJe=function(t){To(e,t);function e(){return $r(this,e),Eo(this,e,arguments)}return zr(e,[{key:"tagKeys",get:function(){return this.allKeys||(this.allKeys=Array.from(this.keys())),this.allKeys}},{key:"tagValues",get:function(){return this.allValues||(this.allValues=Array.from(this.values())),this.allValues}}]),e}(V0(Map));function XX(t,e,r){var n=new iJe,i=ft(r),a;try{for(i.s();!(a=i.n()).done;){var l=gi(a.value,2),c=l[0],f=l[1];n.set(c,f)}}catch(g){i.e(g)}finally{i.f()}if(Array.isArray(e)){var d=ft(e),y;try{for(d.s();!(y=d.n()).done;){var m=y.value;t.set(m,n)}}catch(g){d.e(g)}finally{d.f()}}else t.set(e,n);return n}function QX(t,e,r){var n,i=t.get(e),a=ft(r),l;try{for(a.s();!(l=a.n()).done;)n=l.value,i.set(n[0],n[1])}catch(c){a.e(c)}finally{a.f()}}var ry=new Map,ZI=new Map,ek=new Map,Wf=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],J0=["jfif","xmp","icc","iptc","ihdr"],ey=["tiff"].concat(J0),Vt=["ifd0","ifd1","exif","gps","interop"],Vf=[].concat(Qf(ey),Vt),Kf=["makerNote","userComment"],Z0=["translateKeys","translateValues","reviveValues","multiSegment"],Yf=[].concat(Z0,["sanitize","mergeOutput","silentErrors"]),JX=function(){function t(){$r(this,t)}return zr(t,[{key:"translate",get:function(){return this.translateKeys||this.translateValues||this.reviveValues}}]),t}(),Kv=function(t){To(e,t);function e(r,n,i,a){var l;if($r(this,e),l=Eo(this,e),nt(zn(l),"enabled",!1),nt(zn(l),"skip",new Set),nt(zn(l),"pick",new Set),nt(zn(l),"deps",new Set),nt(zn(l),"translateKeys",!1),nt(zn(l),"translateValues",!1),nt(zn(l),"reviveValues",!1),l.key=r,l.enabled=n,l.parse=l.enabled,l.applyInheritables(a),l.canBeFiltered=Vt.includes(r),l.canBeFiltered&&(l.dict=ry.get(r)),i!==void 0)if(Array.isArray(i))l.parse=l.enabled=!0,l.canBeFiltered&&i.length>0&&l.translateTagSet(i,l.pick);else if(bi(i)=="object"){if(l.enabled=!0,l.parse=i.parse!==!1,l.canBeFiltered){var c=i.pick,f=i.skip;c&&c.length>0&&l.translateTagSet(c,l.pick),f&&f.length>0&&l.translateTagSet(f,l.skip)}l.applyInheritables(i)}else i===!0||i===!1?l.parse=l.enabled=i:wr("Invalid options argument: ".concat(i));return zX(l)}return zr(e,[{key:"needed",get:function(){return this.enabled||this.deps.size>0}},{key:"applyInheritables",value:function(n){for(var i,a,l=0,c=Z0;l<c.length;l++)i=c[l],a=n[i],a!==void 0&&(this[i]=a)}},{key:"translateTagSet",value:function(n,i){if(this.dict){var a,l,c=this.dict,f=c.tagKeys,d=c.tagValues,y=ft(n),m;try{for(y.s();!(m=y.n()).done;)a=m.value,typeof a=="string"?(l=d.indexOf(a),l===-1&&(l=f.indexOf(Number(a))),l!==-1&&i.add(Number(f[l]))):i.add(a)}catch(E){y.e(E)}finally{y.f()}}else{var g=ft(n),w;try{for(g.s();!(w=g.n()).done;){var P=w.value;i.add(P)}}catch(E){g.e(E)}finally{g.f()}}}},{key:"finalizeFilters",value:function(){!this.enabled&&this.deps.size>0?(this.enabled=!0,X0(this.pick,this.deps)):this.enabled&&this.pick.size>0&&X0(this.pick,this.deps)}}]),e}(JX),en={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},RX=new Map,ny=function(t){To(e,t);function e(r){var n;return $r(this,e),n=Eo(this,e),r===!0?n.setupFromTrue():r===void 0?n.setupFromUndefined():Array.isArray(r)?n.setupFromArray(r):bi(r)=="object"?n.setupFromObject(r):wr("Invalid options argument ".concat(r)),n.firstChunkSize===void 0&&(n.firstChunkSize=Iu?n.firstChunkSizeBrowser:n.firstChunkSizeNode),n.mergeOutput&&(n.ifd1.enabled=!1),n.filterNestedSegmentTags(),n.traverseTiffDependencyTree(),n.checkLoadedPlugins(),n}return zr(e,[{key:"setupFromUndefined",value:function(){for(var n,i=0,a=Wf;i<a.length;i++)n=a[i],this[n]=en[n];var l=ft(Yf),c;try{for(l.s();!(c=l.n()).done;)n=c.value,this[n]=en[n]}catch(g){l.e(g)}finally{l.f()}for(var f=0,d=Kf;f<d.length;f++)n=d[f],this[n]=en[n];var y=ft(Vf),m;try{for(y.s();!(m=y.n()).done;)n=m.value,this[n]=new Kv(n,en[n],void 0,this)}catch(g){y.e(g)}finally{y.f()}}},{key:"setupFromTrue",value:function(){for(var n,i=0,a=Wf;i<a.length;i++)n=a[i],this[n]=en[n];var l=ft(Yf),c;try{for(l.s();!(c=l.n()).done;)n=c.value,this[n]=en[n]}catch(g){l.e(g)}finally{l.f()}for(var f=0,d=Kf;f<d.length;f++)n=d[f],this[n]=!0;var y=ft(Vf),m;try{for(y.s();!(m=y.n()).done;)n=m.value,this[n]=new Kv(n,!0,void 0,this)}catch(g){y.e(g)}finally{y.f()}}},{key:"setupFromArray",value:function(n){for(var i,a=0,l=Wf;a<l.length;a++)i=l[a],this[i]=en[i];var c=ft(Yf),f;try{for(c.s();!(f=c.n()).done;)i=f.value,this[i]=en[i]}catch(w){c.e(w)}finally{c.f()}for(var d=0,y=Kf;d<y.length;d++)i=y[d],this[i]=en[i];var m=ft(Vf),g;try{for(m.s();!(g=m.n()).done;)i=g.value,this[i]=new Kv(i,!1,void 0,this)}catch(w){m.e(w)}finally{m.f()}this.setupGlobalFilters(n,void 0,Vt)}},{key:"setupFromObject",value:function(n){for(var i,a=0,l=(Vt.ifd0=Vt.ifd0||Vt.image,Vt.ifd1=Vt.ifd1||Vt.thumbnail,Object.assign(this,n),Wf);a<l.length;a++)i=l[a],this[i]=NI(n[i],en[i]);var c=ft(Yf),f;try{for(c.s();!(f=c.n()).done;)i=f.value,this[i]=NI(n[i],en[i])}catch(E){c.e(E)}finally{c.f()}for(var d=0,y=Kf;d<y.length;d++)i=y[d],this[i]=NI(n[i],en[i]);var m=ft(ey),g;try{for(m.s();!(g=m.n()).done;)i=g.value,this[i]=new Kv(i,en[i],n[i],this)}catch(E){m.e(E)}finally{m.f()}for(var w=0,P=Vt;w<P.length;w++)i=P[w],this[i]=new Kv(i,en[i],n[i],this.tiff);this.setupGlobalFilters(n.pick,n.skip,Vt,Vf),n.tiff===!0?this.batchEnableWithBool(Vt,!0):n.tiff===!1?this.batchEnableWithUserValue(Vt,n):Array.isArray(n.tiff)?this.setupGlobalFilters(n.tiff,void 0,Vt):bi(n.tiff)=="object"&&this.setupGlobalFilters(n.tiff.pick,n.tiff.skip,Vt)}},{key:"batchEnableWithBool",value:function(n,i){var a=ft(n),l;try{for(a.s();!(l=a.n()).done;){var c=l.value;this[c].enabled=i}}catch(f){a.e(f)}finally{a.f()}}},{key:"batchEnableWithUserValue",value:function(n,i){var a=ft(n),l;try{for(a.s();!(l=a.n()).done;){var c=l.value,f=i[c];this[c].enabled=f!==!1&&f!==void 0}}catch(d){a.e(d)}finally{a.f()}}},{key:"setupGlobalFilters",value:function(n,i,a){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:a;if(n&&n.length){var c=ft(l),f;try{for(c.s();!(f=c.n()).done;){var d=f.value;this[d].enabled=!1}}catch(j){c.e(j)}finally{c.f()}var y=IX(n,a),m=ft(y),g;try{for(m.s();!(g=m.n()).done;){var w=gi(g.value,2),P=w[0],E=w[1];X0(this[P].pick,E),this[P].enabled=!0}}catch(j){m.e(j)}finally{m.f()}}else if(i&&i.length){var O=IX(i,a),R=ft(O),x;try{for(R.s();!(x=R.n()).done;){var A=gi(x.value,2),I=A[0],N=A[1];X0(this[I].skip,N)}}catch(j){R.e(j)}finally{R.f()}}}},{key:"filterNestedSegmentTags",value:function(){var n=this.ifd0,i=this.exif,a=this.xmp,l=this.iptc,c=this.icc;this.makerNote?i.deps.add(37500):i.skip.add(37500),this.userComment?i.deps.add(37510):i.skip.add(37510),a.enabled||n.skip.add(700),l.enabled||n.skip.add(33723),c.enabled||n.skip.add(34675)}},{key:"traverseTiffDependencyTree",value:function(){var n=this,i=this.ifd0,a=this.exif,l=this.gps,c=this.interop;c.needed&&(a.deps.add(40965),i.deps.add(40965)),a.needed&&i.deps.add(34665),l.needed&&i.deps.add(34853),this.tiff.enabled=Vt.some(function(m){return n[m].enabled===!0})||this.makerNote||this.userComment;for(var f=0,d=Vt;f<d.length;f++){var y=d[f];this[y].finalizeFilters()}}},{key:"onlyTiff",get:function(){var n=this;return!J0.map(function(i){return n[i].enabled}).some(function(i){return i===!0})&&this.tiff.enabled}},{key:"checkLoadedPlugins",value:function(){var n=ft(ey),i;try{for(n.s();!(i=n.n()).done;){var a=i.value;this[a].enabled&&!Hn.has(a)&&GI("segment parser",a)}}catch(l){n.e(l)}finally{n.f()}}}],[{key:"useCached",value:function(n){var i=RX.get(n);return i!==void 0||(i=new this(n),RX.set(n,i)),i}}]),e}(JX);function IX(t,e){var r,n,i,a,l=[],c=ft(e),f;try{for(c.s();!(f=c.n()).done;){i=f.value;var d=ft((r=ry.get(i),n=[],r)),y;try{for(d.s();!(y=d.n()).done;)a=y.value,(t.includes(a[0])||t.includes(a[1]))&&n.push(a[0])}catch(m){d.e(m)}finally{d.f()}n.length&&l.push([i,n])}}catch(m){c.e(m)}finally{c.f()}return l}function NI(t,e){return t!==void 0?t:e!==void 0?e:void 0}function X0(t,e){var r=ft(e),n;try{for(r.s();!(n=r.n()).done;){var i=n.value;t.add(i)}}catch(a){r.e(a)}finally{r.f()}}nt(ny,"default",en);var eO=function(){function t(e){var r=this;$r(this,t),nt(this,"parsers",{}),nt(this,"output",{}),nt(this,"errors",[]),nt(this,"pushToErrors",function(n){return r.errors.push(n)}),this.options=ny.useCached(e)}return zr(t,[{key:"read",value:function(){var e=rt(ye().mark(function n(i){return ye().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,function(c,f){return typeof c=="string"?xX(c,f):Iu&&!K0&&c instanceof HTMLImageElement?xX(c.src,f):c instanceof Uint8Array||c instanceof ArrayBuffer||c instanceof DataView?new Jv(c):Iu&&c instanceof Blob?$I(c,f,"blob",Zv):void wr("Invalid input argument")}(i,this.options);case 2:this.file=l.sent;case 3:case"end":return l.stop()}},n,this)}));function r(n){return e.apply(this,arguments)}return r}()},{key:"setup",value:function(){if(!this.fileParser){var r=this.file,n=r.getUint16(0),i=ft(Q0),a;try{for(i.s();!(a=i.n()).done;){var l=gi(a.value,2),c=l[0],f=l[1];if(f.canHandle(r,n))return this.fileParser=new f(this.options,this.file,this.parsers),r[c]=!0}}catch(d){i.e(d)}finally{i.f()}this.file.close&&this.file.close(),wr("Unknown file format")}}},{key:"parse",value:function(){var e=rt(ye().mark(function n(){var i,a,l;return ye().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(i=this.output,a=this.errors,this.setup(),!this.options.silentErrors){f.next=8;break}return f.next=5,this.executeParsers().catch(this.pushToErrors);case 5:a.push.apply(a,Qf(this.fileParser.errors)),f.next=10;break;case 8:return f.next=10,this.executeParsers();case 10:return this.file.close&&this.file.close(),this.options.silentErrors&&a.length>0&&(i.errors=a),f.abrupt("return",YX(l=i)?void 0:l);case 13:case"end":return f.stop()}},n,this)}));function r(){return e.apply(this,arguments)}return r}()},{key:"executeParsers",value:function(){var e=rt(ye().mark(function n(){var i=this,a,l;return ye().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return a=this.output,f.next=3,this.fileParser.parse();case 3:return l=Object.values(this.parsers).map(function(){var d=rt(ye().mark(function y(m){var g;return ye().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,m.parse();case 2:g=P.sent,m.assignToOutput(a,g);case 4:case"end":return P.stop()}},y)}));return function(y){return d.apply(this,arguments)}}()),this.options.silentErrors&&(l=l.map(function(d){return d.catch(i.pushToErrors)})),f.next=7,Promise.all(l);case 7:case"end":return f.stop()}},n,this)}));function r(){return e.apply(this,arguments)}return r}()},{key:"extractThumbnail",value:function(){var e=rt(ye().mark(function n(){var i,a,l,c,f,d,y;return ye().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(this.setup(),i=this.options,a=this.file,l=Hn.get("tiff",i),!a.tiff){g.next=6;break}c={start:0,type:"tiff"},g.next=11;break;case 6:if(g.t0=a.jpeg,!g.t0){g.next=11;break}return g.next=10,this.fileParser.getOrFindSegment("tiff");case 10:c=g.sent;case 11:if(c!==void 0){g.next=13;break}return g.abrupt("return");case 13:return g.next=15,this.fileParser.ensureSegmentChunk(c);case 15:return f=g.sent,d=this.parsers.tiff=new l(f,i,a),g.next=19,d.extractThumbnail();case 19:return y=g.sent,g.abrupt("return",(a.close&&a.close(),y));case 21:case"end":return g.stop()}},n,this)}));function r(){return e.apply(this,arguments)}return r}()}]),t}();function ZX(t,e){return VI.apply(this,arguments)}function VI(){return VI=rt(ye().mark(function t(e,r){var n;return ye().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=new eO(r),a.next=3,n.read(e);case 3:return a.abrupt("return",n.parse());case 4:case"end":return a.stop()}},t)})),VI.apply(this,arguments)}var oJe=Object.freeze({__proto__:null,parse:ZX,Exifr:eO,fileParsers:Q0,segmentParsers:Hn,fileReaders:ty,tagKeys:ry,tagValues:ZI,tagRevivers:ek,createDictionary:XX,extendDictionary:QX,fetchUrlAsArrayBuffer:Y0,readBlobAsArrayBuffer:Zv,chunkedProps:Wf,otherSegments:J0,segments:ey,tiffBlocks:Vt,segmentsAndBlocks:Vf,tiffExtractables:Kf,inheritables:Z0,allFormatters:Yf,Options:ny}),Xf=function(){function t(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;$r(this,t),nt(this,"errors",[]),nt(this,"raw",new Map),nt(this,"handleError",function(a){if(!r.options.silentErrors)throw a;r.errors.push(a.message)}),this.chunk=this.normalizeInput(e),this.file=i,this.type=this.constructor.type,this.globalOptions=this.options=n,this.localOptions=n[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}return zr(t,[{key:"normalizeInput",value:function(r){return r instanceof Jv?r:new Jv(r)}},{key:"translate",value:function(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}},{key:"output",get:function(){return this.translated?this.translated:this.raw?Object.fromEntries(this.raw):void 0}},{key:"translateBlock",value:function(r,n){var i=ek.get(n),a=ZI.get(n),l=ry.get(n),c=this.options[n],f=c.reviveValues&&!!i,d=c.translateValues&&!!a,y=c.translateKeys&&!!l,m={},g=ft(r),w;try{for(g.s();!(w=g.n()).done;){var P=gi(w.value,2),E=P[0],O=P[1];f&&i.has(E)?O=i.get(E)(O):d&&a.has(E)&&(O=this.translateValue(O,a.get(E))),y&&l.has(E)&&(E=l.get(E)||E),m[E]=O}}catch(R){g.e(R)}finally{g.f()}return m}},{key:"translateValue",value:function(r,n){return n[r]||n.DEFAULT||r}},{key:"assignToOutput",value:function(r,n){this.assignObjectToOutput(r,this.constructor.type,n)}},{key:"assignObjectToOutput",value:function(r,n,i){if(this.globalOptions.mergeOutput)return Object.assign(r,i);r[n]?Object.assign(r[n],i):r[n]=i}}],[{key:"findPosition",value:function(r,n){var i=r.getUint16(n+2)+2,a=typeof this.headerLength=="function"?this.headerLength(r,n,i):this.headerLength,l=n+a,c=i-a;return{offset:n,length:i,headerLength:a,start:l,size:c,end:l+c}}},{key:"parse",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new this(r,new ny(HQe({},this.type,n)),r).parse()}}]),t}();nt(Xf,"headerLength",4),nt(Xf,"type",void 0),nt(Xf,"multiSegment",!1),nt(Xf,"canHandle",function(){return!1});function aJe(t){return t===192||t===194||t===196||t===219||t===221||t===218||t===254}function uJe(t){return t>=224&&t<=239}function sJe(t,e,r){var n=ft(Hn),i;try{for(n.s();!(i=n.n()).done;){var a=gi(i.value,2),l=a[0],c=a[1];if(c.canHandle(t,e,r))return l}}catch(f){n.e(f)}finally{n.f()}}var kX=function(t){To(e,t);function e(){var r;$r(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Eo(this,e,[].concat(i)),nt(zn(r),"appSegments",[]),nt(zn(r),"jpegSegments",[]),nt(zn(r),"unknownSegments",[]),r}return zr(e,[{key:"parse",value:function(){var r=rt(ye().mark(function i(){return ye().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.findAppSegments();case 2:return l.next=4,this.readSegments(this.appSegments);case 4:this.mergeMultiSegments(),this.createParsers(this.mergedAppSegments||this.appSegments);case 6:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"setupSegmentFinderArgs",value:function(n){var i=this;n===!0?(this.findAll=!0,this.wanted=new Set(Hn.keyList())):(n=n===void 0?Hn.keyList().filter(function(a){return i.options[a].enabled}):n.filter(function(a){return i.options[a].enabled&&Hn.has(a)}),this.findAll=!1,this.remaining=new Set(n),this.wanted=new Set(n)),this.unfinishedMultiSegment=!1}},{key:"findAppSegments",value:function(){var r=rt(ye().mark(function i(){var a=this,l,c,f,d,y,m,g,w,P,E=arguments;return ye().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(l=E.length>0&&E[0]!==void 0?E[0]:0,c=E.length>1?E[1]:void 0,this.setupSegmentFinderArgs(c),f=this.file,d=this.findAll,y=this.wanted,m=this.remaining,R.t0=!d&&this.file.chunked,!R.t0){R.next=11;break}if(d=Array.from(y).some(function(x){var A=Hn.get(x),I=a.options[x];return A.multiSegment&&I.multiSegment}),R.t1=d,!R.t1){R.next=11;break}return R.next=11,this.file.readWhole();case 11:if(l=this.findAppSegmentsInRange(l,f.byteLength),!(!this.options.onlyTiff&&f.chunked)){R.next=30;break}g=!1;case 14:if(!(m.size>0&&!g&&(f.canReadNextChunk||this.unfinishedMultiSegment))){R.next=30;break}if(w=f.nextChunkOffset,P=this.appSegments.some(function(x){return!a.file.available(x.offset||x.start,x.length||x.size)}),!(l>w&&!P)){R.next=22;break}return R.next=19,f.readNextChunk(l);case 19:R.t2=!R.sent,R.next=25;break;case 22:return R.next=24,f.readNextChunk(w);case 24:R.t2=!R.sent;case 25:if(g=R.t2,(l=this.findAppSegmentsInRange(l,f.byteLength))!==void 0){R.next=28;break}return R.abrupt("return");case 28:R.next=14;break;case 30:case"end":return R.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"findAppSegmentsInRange",value:function(n,i){i-=2;for(var a,l,c,f,d,y,m=this.file,g=this.findAll,w=this.wanted,P=this.remaining,E=this.options;n<i;n++)if(m.getUint8(n)===255){if(a=m.getUint8(n+1),uJe(a)){if(l=m.getUint16(n+2),c=sJe(m,n,l),c&&w.has(c)&&(f=Hn.get(c),d=f.findPosition(m,n),y=E[c],d.type=c,this.appSegments.push(d),!g&&(f.multiSegment&&y.multiSegment?(this.unfinishedMultiSegment=d.chunkNumber<d.chunkCount,this.unfinishedMultiSegment||P.delete(c)):P.delete(c),P.size===0)))break;E.recordUnknownSegments&&(d=Xf.findPosition(m,n),d.marker=a,this.unknownSegments.push(d)),n+=l+1}else if(aJe(a)){if(l=m.getUint16(n+2),a===218&&E.stopAfterSos!==!1)return;E.recordJpegSegments&&this.jpegSegments.push({offset:n,length:l,marker:a}),n+=l+1}}return n}},{key:"mergeMultiSegments",value:function(){var n=this;if(this.appSegments.some(function(a){return a.multiSegment})){var i=function(a,l){for(var c,f,d,y=new Map,m=0;m<a.length;m++)c=a[m],f=c[l],y.has(f)?d=y.get(f):y.set(f,d=[]),d.push(c);return Array.from(y)}(this.appSegments,"type");this.mergedAppSegments=i.map(function(a){var l=gi(a,2),c=l[0],f=l[1],d=Hn.get(c,n.options);return d.handleMultiSegments?{type:c,chunk:d.handleMultiSegments(f)}:f[0]})}}},{key:"getSegment",value:function(n){return this.appSegments.find(function(i){return i.type===n})}},{key:"getOrFindSegment",value:function(){var r=rt(ye().mark(function i(a){var l;return ye().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(l=this.getSegment(a),f.t0=l===void 0,!f.t0){f.next=6;break}return f.next=5,this.findAppSegments(0,[a]);case 5:l=this.getSegment(a);case 6:return f.abrupt("return",l);case 7:case"end":return f.stop()}},i,this)}));function n(i){return r.apply(this,arguments)}return n}()}],[{key:"canHandle",value:function(n,i){return i===65496}}]),e}(function(){function t(e,r,n){var i=this;$r(this,t),nt(this,"errors",[]),nt(this,"ensureSegmentChunk",function(){var a=rt(ye().mark(function l(c){var f,d;return ye().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(f=c.start,d=c.size||65536,!i.file.chunked){m.next=17;break}if(!i.file.available(f,d)){m.next=6;break}c.chunk=i.file.subarray(f,d),m.next=15;break;case 6:return m.prev=6,m.next=9,i.file.readChunk(f,d);case 9:c.chunk=m.sent,m.next=15;break;case 12:m.prev=12,m.t0=m.catch(6),wr("Couldn't read segment: ".concat(JSON.stringify(c),". ").concat(m.t0.message));case 15:m.next=18;break;case 17:i.file.byteLength>f+d?c.chunk=i.file.subarray(f,d):c.size===void 0?c.chunk=i.file.subarray(f):wr("Segment unreachable: "+JSON.stringify(c));case 18:return m.abrupt("return",c.chunk);case 19:case"end":return m.stop()}},l,null,[[6,12]])}));return function(l){return a.apply(this,arguments)}}()),this.extendOptions&&this.extendOptions(e),this.options=e,this.file=r,this.parsers=n}return zr(t,[{key:"injectSegment",value:function(r,n){this.options[r].enabled&&this.createParser(r,n)}},{key:"createParser",value:function(r,n){var i=new(Hn.get(r))(n,this.options,this.file);return this.parsers[r]=i}},{key:"createParsers",value:function(r){var n=ft(r),i;try{for(n.s();!(i=n.n()).done;){var a=i.value,l=a.type,c=a.chunk,f=this.options[l];if(f&&f.enabled){var d=this.parsers[l];d&&d.append||d||this.createParser(l,c)}}}catch(y){n.e(y)}finally{n.f()}}},{key:"readSegments",value:function(){var e=rt(ye().mark(function n(i){var a;return ye().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return a=i.map(this.ensureSegmentChunk),c.next=3,Promise.all(a);case 3:case"end":return c.stop()}},n,this)}));function r(n){return e.apply(this,arguments)}return r}()}]),t}());nt(kX,"type","jpeg"),Q0.set("jpeg",kX);var lJe=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4],cJe=function(t){To(e,t);function e(){return $r(this,e),Eo(this,e,arguments)}return zr(e,[{key:"parseHeader",value:function(){var n=this.chunk.getUint16();n===18761?this.le=!0:n===19789&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}},{key:"parseTags",value:function(n,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,l=this.options[i],c=l.pick,f=l.skip;c=new Set(c);var d=c.size>0,y=f.size===0,m=this.chunk.getUint16(n);n+=2;for(var g=0;g<m;g++){var w=this.chunk.getUint16(n);if(d){if(c.has(w)&&(a.set(w,this.parseTag(n,w,i)),c.delete(w),c.size===0))break}else!y&&f.has(w)||a.set(w,this.parseTag(n,w,i));n+=12}return a}},{key:"parseTag",value:function(n,i,a){var l=this.chunk,c=l.getUint16(n+2),f=l.getUint32(n+4),d=lJe[c];if(d*f<=4?n+=8:n=l.getUint32(n+8),(c<1||c>13)&&wr("Invalid TIFF value type. block: ".concat(a.toUpperCase(),", tag: ").concat(i.toString(16),", type: ").concat(c,", offset ").concat(n)),n>l.byteLength&&wr("Invalid TIFF value offset. block: ".concat(a.toUpperCase(),", tag: ").concat(i.toString(16),", type: ").concat(c,", offset ").concat(n," is outside of chunk size ").concat(l.byteLength)),c===1)return l.getUint8Array(n,f);if(c===2)return(y=function(P){for(;P.endsWith("\0");)P=P.slice(0,-1);return P}(y=l.getString(n,f)).trim())===""?void 0:y;var y;if(c===7)return l.getUint8Array(n,f);if(f===1)return this.parseTagValue(c,n);{for(var m=new(function(P){switch(P){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 10:return Array;case 11:return Float32Array;case 12:return Float64Array;default:return Array}}(c))(f),g=d,w=0;w<f;w++)m[w]=this.parseTagValue(c,n),n+=g;return m}}},{key:"parseTagValue",value:function(n,i){var a=this.chunk;switch(n){case 1:return a.getUint8(i);case 3:return a.getUint16(i);case 4:return a.getUint32(i);case 5:return a.getUint32(i)/a.getUint32(i+4);case 6:return a.getInt8(i);case 8:return a.getInt16(i);case 9:return a.getInt32(i);case 10:return a.getInt32(i)/a.getInt32(i+4);case 11:return a.getFloat(i);case 12:return a.getDouble(i);case 13:return a.getUint32(i);default:wr("Invalid tiff type ".concat(n))}}}]),e}(Xf),DI=function(t){To(e,t);function e(){return $r(this,e),Eo(this,e,arguments)}return zr(e,[{key:"parse",value:function(){var r=rt(ye().mark(function i(){var a;return ye().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.parseHeader(),a=this.options,c.t0=a.ifd0.enabled,!c.t0){c.next=6;break}return c.next=6,this.parseIfd0Block();case 6:if(c.t1=a.exif.enabled,!c.t1){c.next=10;break}return c.next=10,this.safeParse("parseExifBlock");case 10:if(c.t2=a.gps.enabled,!c.t2){c.next=14;break}return c.next=14,this.safeParse("parseGpsBlock");case 14:if(c.t3=a.interop.enabled,!c.t3){c.next=18;break}return c.next=18,this.safeParse("parseInteropBlock");case 18:if(c.t4=a.ifd1.enabled,!c.t4){c.next=22;break}return c.next=22,this.safeParse("parseThumbnailBlock");case 22:return c.abrupt("return",this.createOutput());case 23:case"end":return c.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"safeParse",value:function(n){var i=this[n]();return i.catch!==void 0&&(i=i.catch(this.handleError)),i}},{key:"findIfd0Offset",value:function(){this.ifd0Offset===void 0&&(this.ifd0Offset=this.chunk.getUint32(4))}},{key:"findIfd1Offset",value:function(){if(this.ifd1Offset===void 0){this.findIfd0Offset();var n=this.chunk.getUint16(this.ifd0Offset),i=this.ifd0Offset+2+12*n;this.ifd1Offset=this.chunk.getUint32(i)}}},{key:"parseBlock",value:function(n,i){var a=new Map;return this[i]=a,this.parseTags(n,i,a),a}},{key:"parseIfd0Block",value:function(){var r=rt(ye().mark(function i(){var a,l;return ye().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!this.ifd0){f.next=2;break}return f.abrupt("return");case 2:if(a=this.file,this.findIfd0Offset(),this.ifd0Offset<8&&wr("Malformed EXIF data"),!a.chunked&&this.ifd0Offset>a.byteLength&&wr("IFD0 offset points to outside of file.\nthis.ifd0Offset: ".concat(this.ifd0Offset,", file.byteLength: ").concat(a.byteLength)),f.t0=a.tiff,!f.t0){f.next=10;break}return f.next=10,a.ensureChunk(this.ifd0Offset,TX(this.options));case 10:return l=this.parseBlock(this.ifd0Offset,"ifd0"),f.abrupt("return",l.size!==0?(this.exifOffset=l.get(34665),this.interopOffset=l.get(40965),this.gpsOffset=l.get(34853),this.xmp=l.get(700),this.iptc=l.get(33723),this.icc=l.get(34675),this.options.sanitize&&(l.delete(34665),l.delete(40965),l.delete(34853),l.delete(700),l.delete(33723),l.delete(34675)),l):void 0);case 12:case"end":return f.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"parseExifBlock",value:function(){var r=rt(ye().mark(function i(){var a;return ye().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!this.exif){c.next=2;break}return c.abrupt("return");case 2:if(c.t0=this.ifd0,c.t0){c.next=6;break}return c.next=6,this.parseIfd0Block();case 6:if(this.exifOffset!==void 0){c.next=8;break}return c.abrupt("return");case 8:if(c.t1=this.file.tiff,!c.t1){c.next=12;break}return c.next=12,this.file.ensureChunk(this.exifOffset,TX(this.options));case 12:return a=this.parseBlock(this.exifOffset,"exif"),c.abrupt("return",(this.interopOffset||(this.interopOffset=a.get(40965)),this.makerNote=a.get(37500),this.userComment=a.get(37510),this.options.sanitize&&(a.delete(40965),a.delete(37500),a.delete(37510)),this.unpack(a,41728),this.unpack(a,41729),a));case 14:case"end":return c.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"unpack",value:function(n,i){var a=n.get(i);a&&a.length===1&&n.set(i,a[0])}},{key:"parseGpsBlock",value:function(){var r=rt(ye().mark(function i(){var a;return ye().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!this.gps){c.next=2;break}return c.abrupt("return");case 2:if(c.t0=this.ifd0,c.t0){c.next=6;break}return c.next=6,this.parseIfd0Block();case 6:if(this.gpsOffset!==void 0){c.next=8;break}return c.abrupt("return");case 8:return a=this.parseBlock(this.gpsOffset,"gps"),c.abrupt("return",(a&&a.has(2)&&a.has(4)&&(a.set("latitude",jX.apply(void 0,Qf(a.get(2)).concat([a.get(1)]))),a.set("longitude",jX.apply(void 0,Qf(a.get(4)).concat([a.get(3)])))),a));case 10:case"end":return c.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"parseInteropBlock",value:function(){var r=rt(ye().mark(function i(){return ye().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(l.t0=!this.interop,!l.t0){l.next=11;break}if(l.t1=this.ifd0,l.t1){l.next=6;break}return l.next=6,this.parseIfd0Block();case 6:if(l.t2=this.interopOffset!==void 0||this.exif,l.t2){l.next=10;break}return l.next=10,this.parseExifBlock();case 10:l.t0=this.interopOffset!==void 0;case 11:if(!l.t0){l.next=13;break}return l.abrupt("return",this.parseBlock(this.interopOffset,"interop"));case 13:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"parseThumbnailBlock",value:function(){var r=rt(ye().mark(function i(){var a,l=arguments;return ye().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(a=l.length>0&&l[0]!==void 0?l[0]:!1,!(!this.ifd1&&!this.ifd1Parsed&&(!this.options.mergeOutput||a))){f.next=3;break}return f.abrupt("return",(this.findIfd1Offset(),this.ifd1Offset>0&&(this.parseBlock(this.ifd1Offset,"ifd1"),this.ifd1Parsed=!0),this.ifd1));case 3:case"end":return f.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"extractThumbnail",value:function(){var r=rt(ye().mark(function i(){var a,l;return ye().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(this.headerParsed||this.parseHeader(),f.t0=this.ifd1Parsed,f.t0){f.next=5;break}return f.next=5,this.parseThumbnailBlock(!0);case 5:if(this.ifd1!==void 0){f.next=7;break}return f.abrupt("return");case 7:return a=this.ifd1.get(513),l=this.ifd1.get(514),f.abrupt("return",this.chunk.getUint8Array(a,l));case 9:case"end":return f.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"image",get:function(){return this.ifd0}},{key:"thumbnail",get:function(){return this.ifd1}},{key:"createOutput",value:function(){for(var n,i,a,l={},c=0,f=Vt;c<f.length;c++)if(i=f[c],n=this[i],!YX(n))if(a=this.canTranslate?this.translateBlock(n,i):Object.fromEntries(n),this.options.mergeOutput){if(i==="ifd1")continue;Object.assign(l,a)}else l[i]=a;return this.makerNote&&(l.makerNote=this.makerNote),this.userComment&&(l.userComment=this.userComment),l}},{key:"assignToOutput",value:function(n,i){if(this.globalOptions.mergeOutput)Object.assign(n,i);else for(var a=0,l=Object.entries(i);a<l.length;a++){var c=gi(l[a],2),f=c[0],d=c[1];this.assignObjectToOutput(n,f,d)}}}],[{key:"canHandle",value:function(n,i){return n.getUint8(i+1)===225&&n.getUint32(i+4)===1165519206&&n.getUint16(i+8)===0}}]),e}(cJe);function jX(t,e,r,n){var i=t+e/60+r/3600;return n!=="S"&&n!=="W"||(i*=-1),i}nt(DI,"type","tiff"),nt(DI,"headerLength",10),Hn.set("tiff",DI);var EOt=Object.freeze({__proto__:null,default:oJe,Exifr:eO,fileParsers:Q0,segmentParsers:Hn,fileReaders:ty,tagKeys:ry,tagValues:ZI,tagRevivers:ek,createDictionary:XX,extendDictionary:QX,fetchUrlAsArrayBuffer:Y0,readBlobAsArrayBuffer:Zv,chunkedProps:Wf,otherSegments:J0,segments:ey,tiffBlocks:Vt,segmentsAndBlocks:Vf,tiffExtractables:Kf,inheritables:Z0,allFormatters:Yf,Options:ny,parse:ZX}),tk={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},TOt=Object.assign({},tk,{firstChunkSize:4e4,gps:[1,2,3,4]});var AOt=Object.assign({},tk,{tiff:!1,ifd1:!0,mergeOutput:!1});var fJe=Object.assign({},tk,{firstChunkSize:4e4,ifd0:[274]});function pJe(t){return KI.apply(this,arguments)}function KI(){return KI=rt(ye().mark(function t(e){var r,n;return ye().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=new eO(fJe),a.next=3,r.read(e);case 3:return a.next=5,r.parse();case 5:if(n=a.sent,!(n&&n.ifd0)){a.next=8;break}return a.abrupt("return",n.ifd0[274]);case 8:case"end":return a.stop()}},t)})),KI.apply(this,arguments)}var hJe=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}}),Yv=!0,Xv=!0;(typeof navigator=="undefined"?"undefined":bi(navigator))=="object"&&(_o=navigator.userAgent,_o.includes("iPad")||_o.includes("iPhone")?(MI=_o.match(/OS (\d+)_(\d+)/),MI&&(UI=gi(MI,3),qX=UI[1],Iu=UI[2],K0=Number(qX)+.1*Number(Iu),Yv=K0<13.4,Xv=!1)):_o.includes("OS X 10")&&(FX=_o.match(/OS X 10[_.](\d+)/),LX=gi(FX,2),CX=LX[1],Yv=Xv=Number(CX)<15),_o.includes("Chrome/")?(NX=_o.match(/Chrome\/(\d+)/),DX=gi(NX,2),MX=DX[1],Yv=Xv=Number(MX)<81):_o.includes("Firefox/")&&(UX=_o.match(/Firefox\/(\d+)/),BX=gi(UX,2),GX=BX[1],Yv=Xv=Number(GX)<77));var _o,MI,UI,qX,Iu,K0,FX,LX,CX,NX,DX,MX,UX,BX,GX;function eQ(t){return YI.apply(this,arguments)}function YI(){return YI=rt(ye().mark(function t(e){var r;return ye().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,pJe(e);case 2:return r=i.sent,i.abrupt("return",Object.assign({canvas:Yv,css:Xv},hJe[r]));case 4:case"end":return i.stop()}},t)})),YI.apply(this,arguments)}var dJe=function(t){To(e,t);function e(){var r;$r(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Eo(this,e,[].concat(i)),nt(zn(r),"ranges",new vJe),r.byteLength!==0&&r.ranges.add(0,r.byteLength),r}return zr(e,[{key:"_tryExtend",value:function(n,i,a){if(n===0&&this.byteLength===0&&a){var l=new DataView(a.buffer||a,a.byteOffset,a.byteLength);this._swapDataView(l)}else{var c=n+i;if(c>this.byteLength){var f=this._extend(c),d=f.dataView;this._swapDataView(d)}}}},{key:"_extend",value:function(n){var i;i=KX?VX.allocUnsafe(n):new Uint8Array(n);var a=new DataView(i.buffer,i.byteOffset,i.byteLength);return i.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:i,dataView:a}}},{key:"subarray",value:function(n,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return i=i||this._lengthToEnd(n),a&&this._tryExtend(n,i),this.ranges.add(n,i),pl(Po(e.prototype),"subarray",this).call(this,n,i)}},{key:"set",value:function(n,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;a&&this._tryExtend(i,n.byteLength,n);var l=pl(Po(e.prototype),"set",this).call(this,n,i);return this.ranges.add(i,l.byteLength),l}},{key:"ensureChunk",value:function(){var r=rt(ye().mark(function i(a,l){return ye().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(f.t0=this.chunked,!f.t0){f.next=6;break}if(f.t1=this.ranges.available(a,l),f.t1){f.next=6;break}return f.next=6,this.readChunk(a,l);case 6:case"end":return f.stop()}},i,this)}));function n(i,a){return r.apply(this,arguments)}return n}()},{key:"available",value:function(n,i){return this.ranges.available(n,i)}}]),e}(Jv),vJe=function(){function t(){$r(this,t),nt(this,"list",[])}return zr(t,[{key:"length",get:function(){return this.list.length}},{key:"add",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=r+n,l=this.list.filter(function(f){return $X(r,f.offset,a)||$X(r,f.end,a)});if(l.length>0){r=Math.min.apply(Math,[r].concat(Qf(l.map(function(f){return f.offset})))),a=Math.max.apply(Math,[a].concat(Qf(l.map(function(f){return f.end})))),n=a-r;var c=l.shift();c.offset=r,c.length=n,c.end=a,this.list=this.list.filter(function(f){return!l.includes(f)})}else this.list.push({offset:r,length:n,end:a})}},{key:"available",value:function(r,n){var i=r+n;return this.list.some(function(a){return a.offset<=r&&i<=a.end})}}]),t}();function $X(t,e,r){return t<=e&&e<=r}var yJe=function(t){To(e,t);function e(r,n){var i;return $r(this,e),i=Eo(this,e,[0]),nt(zn(i),"chunksRead",0),i.input=r,i.options=n,i}return zr(e,[{key:"readWhole",value:function(){var r=rt(ye().mark(function i(){return ye().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.chunked=!1,l.next=3,this.readChunk(this.nextChunkOffset);case 3:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"readChunked",value:function(){var r=rt(ye().mark(function i(){return ye().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.chunked=!0,l.next=3,this.readChunk(0,this.options.firstChunkSize);case 3:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"readNextChunk",value:function(){var r=rt(ye().mark(function i(){var a,l,c,f=arguments;return ye().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(a=f.length>0&&f[0]!==void 0?f[0]:this.nextChunkOffset,!this.fullyRead){y.next=3;break}return y.abrupt("return",(this.chunksRead++,!1));case 3:return l=this.options.chunkSize,y.next=6,this.readChunk(a,l);case 6:return c=y.sent,y.abrupt("return",!!c&&c.byteLength===l);case 8:case"end":return y.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"readChunk",value:function(){var r=rt(ye().mark(function i(a,l){return ye().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(this.chunksRead++,(l=this.safeWrapAddress(a,l))===0){f.next=2;break}return f.abrupt("return",this._readChunk(a,l));case 2:case"end":return f.stop()}},i,this)}));function n(i,a){return r.apply(this,arguments)}return n}()},{key:"safeWrapAddress",value:function(n,i){return this.size!==void 0&&n+i>this.size?Math.max(0,this.size-n):i}},{key:"nextChunkOffset",get:function(){if(this.ranges.list.length!==0)return this.ranges.list[0].length}},{key:"canReadNextChunk",get:function(){return this.chunksRead<this.options.chunkLimit}},{key:"fullyRead",get:function(){return this.size!==void 0&&this.nextChunkOffset===this.size}},{key:"read",value:function(){return this.options.chunked?this.readChunked():this.readWhole()}},{key:"close",value:function(){}}]),e}(dJe);ty.set("blob",function(t){To(e,t);function e(){return $r(this,e),Eo(this,e,arguments)}return zr(e,[{key:"readWhole",value:function(){var r=rt(ye().mark(function i(){var a;return ye().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.chunked=!1,c.next=3,Zv(this.input);case 3:a=c.sent,this._swapArrayBuffer(a);case 5:case"end":return c.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"readChunked",value:function(){return this.chunked=!0,this.size=this.input.size,pl(Po(e.prototype),"readChunked",this).call(this)}},{key:"_readChunk",value:function(){var r=rt(ye().mark(function i(a,l){var c,f,d;return ye().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return c=l?a+l:void 0,f=this.input.slice(a,c),m.next=4,Zv(f);case 4:return d=m.sent,m.abrupt("return",this.set(d,a,!0));case 6:case"end":return m.stop()}},i,this)}));function n(i,a){return r.apply(this,arguments)}return n}()}]),e}(yJe));var tQ={strings:{generatingThumbnails:"Generating thumbnails..."}};function Jf(t){"@babel/helpers - typeof";return Jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jf(t)}function mJe(t,e){return OJe(t)||wJe(t,e)||bJe(t,e)||gJe()}function gJe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bJe(t,e){if(t){if(typeof t=="string")return rQ(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rQ(t,e)}}function rQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function wJe(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function OJe(t){if(Array.isArray(t))return t}function nQ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function iQ(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?nQ(Object(r),!0).forEach(function(n){SJe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nQ(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function SJe(t,e,r){return e=aQ(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _Je(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oQ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,aQ(n.key),n)}}function PJe(t,e,r){return e&&oQ(t.prototype,e),r&&oQ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function aQ(t){var e=EJe(t,"string");return Jf(e)=="symbol"?e:String(e)}function EJe(t,e){if(Jf(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Jf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function TJe(t,e,r){return e=tO(e),AJe(t,uQ()?Reflect.construct(e,r||[],tO(t).constructor):e.apply(t,r))}function AJe(t,e){if(e&&(Jf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xJe(t)}function xJe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uQ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(uQ=function(){return!!t})()}function tO(t){return tO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tO(t)}function RJe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rk(t,e)}function rk(t,e){return rk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rk(t,e)}var IJe={version:"3.1.0"};function kJe(t,e,r){try{t.getContext("2d").getImageData(0,0,1,1)}catch(n){if(n.code===18)return Promise.reject(new Error("cannot read image, probably an svg with external resources"))}return t.toBlob?new Promise(function(n){t.toBlob(n,e,r)}).then(function(n){if(n===null)throw new Error("cannot read image, probably an svg with external resources");return n}):Promise.resolve().then(function(){return SX(t.toDataURL(e,r),{})}).then(function(n){if(n===null)throw new Error("could not extract blob, probably an old browser");return n})}function jJe(t,e){var r=t.width,n=t.height;(e.deg===90||e.deg===270)&&(r=t.height,n=t.width);var i=document.createElement("canvas");i.width=r,i.height=n;var a=i.getContext("2d");return a.translate(r/2,n/2),e.canvas&&(a.rotate(e.rad),a.scale(e.scaleX,e.scaleY)),a.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),i}function qJe(t){var e=t.width/t.height,r=5e6,n=4096,i=Math.floor(Math.sqrt(r*e)),a=Math.floor(r/Math.sqrt(r*e));if(i>n&&(i=n,a=Math.round(i/e)),a>n&&(a=n,i=Math.round(e*a)),t.width>i){var l=document.createElement("canvas");return l.width=i,l.height=a,l.getContext("2d").drawImage(t,0,0,i,a),l}return t}var FJe={thumbnailWidth:null,thumbnailHeight:null,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,lazy:!1},iy=function(t){RJe(e,t);function e(r,n){var i;if(_Je(this,e),i=TJe(this,e,[r,iQ(iQ({},FJe),n)]),i.onFileAdded=function(a){!a.preview&&a.data&&Cf(a.type)&&!a.isRemote&&i.addToQueue(a.id)},i.onCancelRequest=function(a){var l=i.queue.indexOf(a.id);l!==-1&&i.queue.splice(l,1)},i.onFileRemoved=function(a){var l=i.queue.indexOf(a.id);l!==-1&&i.queue.splice(l,1),a.preview&&W0(a.preview)&&URL.revokeObjectURL(a.preview)},i.onRestored=function(){var a=i.uppy.getFiles().filter(function(l){return l.isRestored});a.forEach(function(l){(!l.preview||W0(l.preview))&&i.addToQueue(l.id)})},i.onAllFilesRemoved=function(){i.queue=[]},i.waitUntilAllProcessed=function(a){a.forEach(function(c){var f=i.uppy.getFile(c);i.uppy.emit("preprocess-progress",f,{mode:"indeterminate",message:i.i18n("generatingThumbnails")})});var l=function(){a.forEach(function(f){var d=i.uppy.getFile(f);i.uppy.emit("preprocess-complete",d)})};return new Promise(function(c){i.queueProcessing?i.uppy.once("thumbnail:all-generated",function(){l(),c()}):(l(),c())})},i.type="modifier",i.id=i.opts.id||"ThumbnailGenerator",i.title="Thumbnail Generator",i.queue=[],i.queueProcessing=!1,i.defaultThumbnailDimension=200,i.thumbnailType=i.opts.thumbnailType,i.defaultLocale=tQ,i.i18nInit(),i.opts.lazy&&i.opts.waitForThumbnailsBeforeUpload)throw new Error("ThumbnailGenerator: The `lazy` and `waitForThumbnailsBeforeUpload` options are mutually exclusive. Please ensure at most one of them is set to `true`.");return i}return PJe(e,[{key:"createThumbnail",value:function(n,i,a){var l=this,c=URL.createObjectURL(n.data),f=new Promise(function(y,m){var g=new Image;g.src=c,g.addEventListener("load",function(){URL.revokeObjectURL(c),y(g)}),g.addEventListener("error",function(w){URL.revokeObjectURL(c),m(w.error||new Error("Could not create thumbnail"))})}),d=eQ(n.data).catch(function(){return 1});return Promise.all([f,d]).then(function(y){var m=mJe(y,2),g=m[0],w=m[1],P=l.getProportionalDimensions(g,i,a,w.deg),E=jJe(g,w),O=l.resizeImage(E,P.width,P.height);return kJe(O,l.thumbnailType,80)}).then(function(y){return URL.createObjectURL(y)})}},{key:"getProportionalDimensions",value:function(n,i,a,l){var c=n.width/n.height;return(l===90||l===270)&&(c=n.height/n.width),i!=null?{width:i,height:Math.round(i/c)}:a!=null?{width:Math.round(a*c),height:a}:{width:this.defaultThumbnailDimension,height:Math.round(this.defaultThumbnailDimension/c)}}},{key:"resizeImage",value:function(n,i,a){var l=qJe(n),c=Math.ceil(Math.log2(l.width/i));c<1&&(c=1);for(var f=i*Math.pow(2,c-1),d=a*Math.pow(2,c-1),y=2;c--;){var m=document.createElement("canvas");m.width=f,m.height=d,m.getContext("2d").drawImage(l,0,0,f,d),l=m,f=Math.round(f/y),d=Math.round(d/y)}return l}},{key:"setPreviewURL",value:function(n,i){this.uppy.setFileState(n,{preview:i})}},{key:"addToQueue",value:function(n){this.queue.push(n),this.queueProcessing===!1&&this.processQueue()}},{key:"processQueue",value:function(){var n=this;if(this.queueProcessing=!0,this.queue.length>0){var i=this.uppy.getFile(this.queue.shift());return i?this.requestThumbnail(i).catch(function(){}).then(function(){return n.processQueue()}):(this.uppy.log("[ThumbnailGenerator] file was removed before a thumbnail could be generated, but not removed from the queue. This is probably a bug","error"),Promise.resolve())}return this.queueProcessing=!1,this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"),this.uppy.emit("thumbnail:all-generated"),Promise.resolve()}},{key:"requestThumbnail",value:function(n){var i=this;return Cf(n.type)&&!n.isRemote?this.createThumbnail(n,this.opts.thumbnailWidth,this.opts.thumbnailHeight).then(function(a){i.setPreviewURL(n.id,a),i.uppy.log("[ThumbnailGenerator] Generated thumbnail for ".concat(n.id)),i.uppy.emit("thumbnail:generated",i.uppy.getFile(n.id),a)}).catch(function(a){i.uppy.log("[ThumbnailGenerator] Failed thumbnail for ".concat(n.id,":"),"warning"),i.uppy.log(a,"warning"),i.uppy.emit("thumbnail:error",i.uppy.getFile(n.id),a)}):Promise.resolve()}},{key:"install",value:function(){this.uppy.on("file-removed",this.onFileRemoved),this.uppy.on("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("thumbnail:cancel",this.onCancelRequest)):(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("file-added",this.onFileAdded),this.uppy.on("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.addPreProcessor(this.waitUntilAllProcessed)}},{key:"uninstall",value:function(){this.uppy.off("file-removed",this.onFileRemoved),this.uppy.off("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("thumbnail:cancel",this.onCancelRequest)):(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("file-added",this.onFileAdded),this.uppy.off("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.removePreProcessor(this.waitUntilAllProcessed)}}]),e}(Ae);iy.VERSION=IJe.version;function nk(t){"@babel/helpers - typeof";return nk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nk(t)}function LJe(t){if(typeof t=="string"){var e=document.querySelectorAll(t);return e.length===0?null:Array.from(e)}return nk(t)==="object"&&Zd(t)?[t]:null}var ik=LJe;var Kt=Array.from;function sQ(t){return MJe(t)||DJe(t)||NJe(t)||CJe()}function CJe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function NJe(t,e){if(t){if(typeof t=="string")return ok(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ok(t,e)}}function DJe(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function MJe(t){if(Array.isArray(t))return ok(t)}function ok(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function rO(t,e,r,n){var i=n.onSuccess;t.readEntries(function(a){var l=[].concat(sQ(e),sQ(a));a.length?queueMicrotask(function(){rO(t,l,r,{onSuccess:i})}):i(l)},function(a){r(a),i(e)})}function iO(t){"@babel/helpers - typeof";return iO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iO(t)}function UJe(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=BJe(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(d){throw d},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,l=!1,c;return{s:function(){r=r.call(t)},n:function(){var d=r.next();return a=d.done,d},e:function(d){l=!0,c=d},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function BJe(t,e){if(t){if(typeof t=="string")return lQ(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lQ(t,e)}}function lQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function cQ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function GJe(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){cQ(a,n,i,l,c,"next",f)}function c(f){cQ(a,n,i,l,c,"throw",f)}l(void 0)})}}function ya(){"use strict";ya=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&iO(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(iO(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function uk(t){return function(){return new oy(t.apply(this,arguments))}}function oy(t){var e,r;function n(a,l){try{var c=t[a](l),f=c.value,d=f instanceof lk;Promise.resolve(d?f.v:f).then(function(y){if(d){var m=a==="return"?"return":"next";if(!f.k||y.done)return n(m,y);y=t[m](y).value}i(c.done?"return":"normal",y)},function(y){n("throw",y)})}catch(y){i("throw",y)}}function i(a,l){switch(a){case"return":e.resolve({value:l,done:!0});break;case"throw":e.reject(l);break;default:e.resolve({value:l,done:!1})}(e=e.next)?n(e.key,e.arg):r=null}this._invoke=function(a,l){return new Promise(function(c,f){var d={key:a,arg:l,resolve:c,reject:f,next:null};r?r=r.next=d:(e=r=d,n(a,l))})},typeof t.return!="function"&&(this.return=void 0)}oy.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},oy.prototype.next=function(t){return this._invoke("next",t)},oy.prototype.throw=function(t){return this._invoke("throw",t)},oy.prototype.return=function(t){return this._invoke("return",t)};function ku(t){return new lk(t,0)}function sk(t){var e={},r=!1;function n(i,a){return r=!0,a=new Promise(function(l){l(t[i](a))}),{done:!1,value:new lk(a,1)}}return e[typeof Symbol!="undefined"&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(i){return r?(r=!1,i):n("next",i)},typeof t.throw=="function"&&(e.throw=function(i){if(r)throw r=!1,i;return n("throw",i)}),typeof t.return=="function"&&(e.return=function(i){return r?(r=!1,i):n("return",i)}),e}function lk(t,e){this.v=t,this.k=e}function oO(t){var e,r,n,i=2;for(typeof Symbol!="undefined"&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&(e=t[r])!=null)return e.call(t);if(n&&(e=t[n])!=null)return new nO(e.call(t));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function nO(t){function e(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(i){return{value:i,done:n}})}return nO=function(n){this.s=n,this.n=n.next},nO.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(n){var i=this.s.return;return i===void 0?Promise.resolve({value:n,done:!0}):e(i.apply(this.s,arguments))},throw:function(n){var i=this.s.return;return i===void 0?Promise.reject(n):e(i.apply(this.s,arguments))}},new nO(t)}function fQ(t,e){return t==null?t:{kind:t.isFile?"file":t.isDirectory?"directory":void 0,name:t.name,getFile:function(){return new Promise(function(n,i){return t.file(n,i)})},values:function(){return uk(ya().mark(function n(){var i,a;return ya().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return i=t.createReader(),c.next=3,ku(new Promise(function(f){rO(i,[],e,{onSuccess:function(y){return f(y.map(function(m){return fQ(m,e)}))}})}));case 3:return a=c.sent,c.delegateYield(sk(oO(a),ku),"t0",5);case 5:case"end":return c.stop()}},n)}))()},isSameEntry:void 0}}function pQ(t,e,r){try{return r===void 0&&(r=void 0),uk(ya().mark(function n(){var i,a,l,c,f,d,y,m;return ya().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(i=function(){return"".concat(e,"/").concat(t.name)},t.kind!=="file"){w.next=17;break}return w.next=4,ku(t.getFile());case 4:if(a=w.sent,a==null){w.next=12;break}return a.relativePath=e?i():null,w.next=10,a;case 10:w.next=15;break;case 12:if(r==null){w.next=15;break}return w.next=15,r;case 15:w.next=51;break;case 17:if(t.kind!=="directory"){w.next=48;break}l=!1,c=!1,w.prev=20,d=oO(t.values());case 22:return w.next=24,ku(d.next());case 24:if(!(l=!(y=w.sent).done)){w.next=30;break}return m=y.value,w.delegateYield(sk(oO(pQ(m,e?i():t.name)),ku),"t0",27);case 27:l=!1,w.next=22;break;case 30:w.next=36;break;case 32:w.prev=32,w.t1=w.catch(20),c=!0,f=w.t1;case 36:if(w.prev=36,w.prev=37,!(l&&d.return!=null)){w.next=41;break}return w.next=41,ku(d.return());case 41:if(w.prev=41,!c){w.next=44;break}throw f;case 44:return w.finish(41);case 45:return w.finish(36);case 46:w.next=51;break;case 48:if(r==null){w.next=51;break}return w.next=51,r;case 51:case"end":return w.stop()}},n,null,[[20,32,36,46],[37,,41,45]])}))()}catch(n){return Promise.reject(n)}}function ck(t,e){return ak.apply(this,arguments)}function ak(){return ak=uk(ya().mark(function t(e,r){var n,i,a,l,c,f;return ya().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,ku(Promise.all(Array.from(e.items,function(){var m=GJe(ya().mark(function g(w){var P,E,O;return ya().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return O=function(){return typeof w.getAsEntry=="function"?w.getAsEntry():w.webkitGetAsEntry()},(P=E)!=null||(E=fQ(O(),r)),x.abrupt("return",{fileSystemHandle:E,lastResortFile:w.getAsFile()});case 3:case"end":return x.stop()}},g)}));return function(g){return m.apply(this,arguments)}}())));case 2:n=y.sent,i=UJe(n),y.prev=4,i.s();case 6:if((a=i.n()).done){y.next=28;break}if(l=a.value,c=l.lastResortFile,f=l.fileSystemHandle,f==null){y.next=23;break}return y.prev=9,y.delegateYield(sk(oO(pQ(f,"",c)),ku),"t0",11);case 11:y.next=21;break;case 13:if(y.prev=13,y.t1=y.catch(9),c==null){y.next=20;break}return y.next=18,c;case 18:y.next=21;break;case 20:r(y.t1);case 21:y.next=26;break;case 23:if(c==null){y.next=26;break}return y.next=26,c;case 26:y.next=6;break;case 28:y.next=33;break;case 30:y.prev=30,y.t2=y.catch(4),i.e(y.t2);case 33:return y.prev=33,i.f(),y.finish(33);case 36:case"end":return y.stop()}},t,null,[[4,30,33,36],[9,13]])})),ak.apply(this,arguments)}function fk(t){var e=Kt(t.files);return Promise.resolve(e)}function uO(t){"@babel/helpers - typeof";return uO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uO(t)}function pk(){"use strict";pk=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&uO(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(uO(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function hQ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function $Je(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){hQ(a,n,i,l,c,"next",f)}function c(f){hQ(a,n,i,l,c,"throw",f)}l(void 0)})}}function zJe(t){var e,r,n,i=2;for(typeof Symbol!="undefined"&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&(e=t[r])!=null)return e.call(t);if(n&&(e=t[n])!=null)return new aO(e.call(t));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function aO(t){function e(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(i){return{value:i,done:n}})}return aO=function(n){this.s=n,this.n=n.next},aO.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(n){var i=this.s.return;return i===void 0?Promise.resolve({value:n,done:!0}):e(i.apply(this.s,arguments))},throw:function(n){var i=this.s.return;return i===void 0?Promise.reject(n):e(i.apply(this.s,arguments))}},new aO(t)}function hl(t,e){return hk.apply(this,arguments)}function hk(){return hk=$Je(pk().mark(function t(e,r){var n,i,a,l,c,f,d,y,m;return pk().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:i=(n=r==null?void 0:r.logDropError)!=null?n:Function.prototype,w.prev=1,a=[],l=!1,c=!1,w.prev=5,d=zJe(ck(e,i));case 7:return w.next=9,d.next();case 9:if(!(l=!(y=w.sent).done)){w.next=15;break}m=y.value,a.push(m);case 12:l=!1,w.next=7;break;case 15:w.next=21;break;case 17:w.prev=17,w.t0=w.catch(5),c=!0,f=w.t0;case 21:if(w.prev=21,w.prev=22,!(l&&d.return!=null)){w.next=26;break}return w.next=26,d.return();case 26:if(w.prev=26,!c){w.next=29;break}throw f;case 29:return w.finish(26);case 30:return w.finish(21);case 31:return w.abrupt("return",a);case 34:return w.prev=34,w.t1=w.catch(1),w.abrupt("return",fk(e));case 37:case"end":return w.stop()}},t,null,[[1,34],[5,17,21,31],[22,,26,30]])})),hk.apply(this,arguments)}var dQ=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function HJe(t,e){return!!(t===e||dQ(t)&&dQ(e))}function WJe(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!HJe(t[r],e[r]))return!1;return!0}function dk(t,e){e===void 0&&(e=WJe);var r=null;function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(r&&r.lastThis===this&&e(i,r.lastArgs))return r.lastResult;var l=t.apply(this,i);return r={lastResult:l,lastArgs:i,lastThis:this},l}return n.clear=function(){r=null},n}var sO=['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])',"input:not([disabled]):not([inert]):not([aria-hidden])","select:not([disabled]):not([inert]):not([aria-hidden])","textarea:not([disabled]):not([inert]):not([aria-hidden])","button:not([disabled]):not([inert]):not([aria-hidden])",'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])','object:not([tabindex^="-"]):not([inert]):not([aria-hidden])','embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])'];function ay(t,e){if(e){var r=t.querySelector('[data-uppy-paneltype="'.concat(e,'"]'));if(r)return r}return t}function vQ(t,e){var r=e[0];r&&(r.focus(),t.preventDefault())}function VJe(t,e){var r=e[e.length-1];r&&(r.focus(),t.preventDefault())}function KJe(t){return t.contains(document.activeElement)}function vk(t,e,r){var n=ay(r,e),i=Kt(n.querySelectorAll(sO)),a=i.indexOf(document.activeElement);KJe(n)?t.shiftKey&&a===0?VJe(t,i):!t.shiftKey&&a===i.length-1&&vQ(t,i):vQ(t,i)}function yQ(t,e,r){e===null||vk(t,e,r)}var mQ=Ce(zx(),1);function yk(){var t=!1,e=function(n,i){var a=ay(n,i),l=a.contains(document.activeElement);if(!(l&&t)){var c=a.querySelector("[data-uppy-super-focusable]");if(!(l&&!c))if(c)c.focus({preventScroll:!0}),t=!0;else{var f=a.querySelector(sO);f==null||f.focus({preventScroll:!0}),t=!1}}};return(0,mQ.default)(e,260)}var XQ=Ce(Gn(),1);function uy(){var t=document.body;return!(!("draggable"in t)||!("ondragstart"in t&&"ondrop"in t)||!("FormData"in window)||!("FileReader"in window))}var PQ=Ce(Gn(),1),EQ=Ce(bQ(),1);function XJe(){return T("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},T("g",{fill:"#686DE0",fillRule:"evenodd"},T("path",{d:"M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",fillRule:"nonzero"}),T("path",{d:"M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z",fillRule:"nonzero"}),T("circle",{cx:"7.5",cy:"9.5",r:"1.5"})))}function QJe(){return T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},T("path",{d:"M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z",fill:"#049BCF",fillRule:"nonzero"}))}function JJe(){return T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},T("path",{d:"M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm1 4l5 3v-6l-5 3z",fill:"#19AF67",fillRule:"nonzero"}))}function ZJe(){return T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},T("path",{d:"M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z",fill:"#E2514A",fillRule:"nonzero"}))}function eZe(){return T("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},T("path",{d:"M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z",fill:"#00C469",fillRule:"nonzero"}))}function tZe(){return T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},T("g",{fill:"#A7AFB7",fillRule:"nonzero"},T("path",{d:"M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z"}),T("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))}function rZe(){return T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},T("path",{d:"M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z",fill:"#5A5E69",fillRule:"nonzero"}))}function dl(t){var e={color:"#838999",icon:tZe()};if(!t)return e;var r=t.split("/")[0],n=t.split("/")[1];if(r==="text")return{color:"#5a5e69",icon:rZe()};if(r==="image")return{color:"#686de0",icon:XJe()};if(r==="audio")return{color:"#068dbb",icon:QJe()};if(r==="video")return{color:"#19af67",icon:JJe()};if(r==="application"&&n==="pdf")return{color:"#e25149",icon:ZJe()};var i=["zip","x-7z-compressed","x-zip-compressed","x-rar-compressed","x-tar","x-gzip","x-apple-diskimage"];return r==="application"&&i.indexOf(n)!==-1?{color:"#00C469",icon:eZe()}:e}function sy(t){var e=t.file;if(e.preview)return T("img",{className:"uppy-Dashboard-Item-previewImg",alt:e.name,src:e.preview});var r=dl(e.type),n=r.color,i=r.icon;return T("div",{className:"uppy-Dashboard-Item-previewIconWrap"},T("span",{className:"uppy-Dashboard-Item-previewIcon",style:{color:n}},i),T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-Dashboard-Item-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},T("rect",{fill:"#FFF",width:"58",height:"76",rx:"3",fillRule:"evenodd"})))}var nZe=function(e,r){var n=typeof r=="function"?r():r,i=n.filter(function(a){return a.id===e});return i[0].name};function ly(t){var e=t.file,r=t.toggleFileCard,n=t.i18n,i=t.metaFields,a=e.missingRequiredMetaFields;if(!(a!=null&&a.length))return null;var l=a.map(function(c){return nZe(c,i)}).join(", ");return T("div",{className:"uppy-Dashboard-Item-errorMessage"},n("missingRequiredMetaFields",{smart_count:a.length,fields:l})," ",T("button",{type:"button",class:"uppy-u-reset uppy-Dashboard-Item-errorMessageBtn",onClick:function(){return r(!0,e.id)}},n("editFile")))}function mk(t){var e=t.file,r=t.i18n,n=t.toggleFileCard,i=t.metaFields,a=t.showLinkToFileUploadResult,l="rgba(255, 255, 255, 0.5)",c=e.preview?l:dl(e.type).color;return T("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:c}},a&&e.uploadURL&&T("a",{className:"uppy-Dashboard-Item-previewLink",href:e.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":e.meta.name},T("span",{hidden:!0},e.meta.name)),T(sy,{file:e}),T(ly,{file:e,i18n:r,toggleFileCard:n,metaFields:i}))}function iZe(t){if(!t.isUploaded){if(t.error&&!t.hideRetryButton){t.uppy.retryUpload(t.file.id);return}t.resumableUploads&&!t.hidePauseResumeButton?t.uppy.pauseResume(t.file.id):t.individualCancellation&&!t.hideCancelButton&&t.uppy.removeFile(t.file.id)}}function wQ(t){return t.isUploaded?t.i18n("uploadComplete"):t.error?t.i18n("retryUpload"):t.resumableUploads?t.file.isPaused?t.i18n("resumeUpload"):t.i18n("pauseUpload"):t.individualCancellation?t.i18n("cancelUpload"):""}function gk(t){return T("div",{className:"uppy-Dashboard-Item-progress"},T("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":wQ(t),title:wQ(t),onClick:function(){return iZe(t)}},t.children))}function lO(t){var e=t.children;return T("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--circle"},e)}function bk(t){var e=t.progress,r=2*Math.PI*15;return T("g",null,T("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),T("circle",{className:"uppy-Dashboard-Item-progressIcon--progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)",fill:"none","stroke-width":"2","stroke-dasharray":r,"stroke-dashoffset":r-r/100*e}))}function wk(t){if(!t.file.progress.uploadStarted)return null;if(t.isUploaded)return T("div",{className:"uppy-Dashboard-Item-progress"},T("div",{className:"uppy-Dashboard-Item-progressIndicator"},T(lO,null,T("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),T("polygon",{className:"uppy-Dashboard-Item-progressIcon--check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"}))));if(!t.recoveredState)return t.error&&!t.hideRetryButton?T(gk,t,T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},T("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),T("path",{d:"M7.9 3H10v2H7.9z"}),T("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),T("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):t.resumableUploads&&!t.hidePauseResumeButton?T(gk,t,T(lO,null,T(bk,{progress:t.file.progress.percentage}),t.file.isPaused?T("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):T("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},T("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),T("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):!t.resumableUploads&&t.individualCancellation&&!t.hideCancelButton?T(gk,t,T(lO,null,T(bk,{progress:t.file.progress.percentage}),T("polygon",{className:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"}))):T("div",{className:"uppy-Dashboard-Item-progress"},T("div",{className:"uppy-Dashboard-Item-progressIndicator"},T(lO,null,T(bk,{progress:t.file.progress.percentage}))))}var OQ=Ce(Bd(),1);var Ok="...";function cO(t,e){if(e===0)return"";if(t.length<=e)return t;if(e<=Ok.length+1)return"".concat(t.slice(0,e-1),"\u2026");var r=e-Ok.length,n=Math.ceil(r/2),i=Math.floor(r/2);return t.slice(0,n)+Ok+t.slice(-i)}var oZe=function(e){var r=e.file.meta,n=r.author,i=r.name;function a(){return e.isSingleFile&&e.containerHeight>=350?90:e.containerWidth<=352?35:e.containerWidth<=576?60:n?20:30}return T("div",{className:"uppy-Dashboard-Item-name",title:i},cO(i,a()))},aZe=function(e){var r,n=e.file.meta.author,i=(r=e.file.remote)==null?void 0:r.providerName,a="\xB7";return n?T("div",{className:"uppy-Dashboard-Item-author"},T("a",{href:"".concat(n.url,"?utm_source=Companion&utm_medium=referral"),target:"_blank",rel:"noopener noreferrer"},cO(n.name,13)),i?T(mr,null," ".concat(a," "),i," ".concat(a," ")):null):null},uZe=function(e){return e.file.size&&T("div",{className:"uppy-Dashboard-Item-statusSize"},(0,OQ.default)(e.file.size))},sZe=function(e){return e.file.isGhost&&T("span",null," \u2022 ",T("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect",type:"button",onClick:e.toggleAddFilesPanel},e.i18n("reSelect")))},lZe=function(e){var r=e.file,n=e.onClick;return r.error?T("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-errorDetails","aria-label":r.error,"data-microtip-position":"bottom","data-microtip-size":"medium",onClick:n,type:"button"},"?"):null};function Sk(t){var e=t.file;return T("div",{className:"uppy-Dashboard-Item-fileInfo","data-uppy-file-source":e.source},T("div",{className:"uppy-Dashboard-Item-fileName"},oZe(t),T(lZe,{file:t.file,onClick:function(){return alert(t.file.error)}})),T("div",{className:"uppy-Dashboard-Item-status"},aZe(t),uZe(t),sZe(t)),T(ly,{file:t.file,i18n:t.i18n,toggleFileCard:t.toggleFileCard,metaFields:t.metaFields}))}function _k(t,e){return e===void 0&&(e="Copy the URL below"),new Promise(function(r){var n=document.createElement("textarea");n.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),n.value=t,document.body.appendChild(n),n.select();var i=function(c){document.body.removeChild(n),window.prompt(e,t),r()};try{var a=document.execCommand("copy");return a?(document.body.removeChild(n),r()):i("copy command unavailable")}catch(l){return document.body.removeChild(n),i(l)}})}function cZe(t){var e=t.file,r=t.uploadInProgressOrComplete,n=t.metaFields,i=t.canEditFile,a=t.i18n,l=t.onClick;return!r&&n&&n.length>0||!r&&i(e)?T("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit",type:"button","aria-label":a("editFileWithFilename",{file:e.meta.name}),title:a("editFileWithFilename",{file:e.meta.name}),onClick:function(){return l()}},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 14"},T("g",{fillRule:"evenodd"},T("path",{d:"M1.5 10.793h2.793A1 1 0 0 0 5 10.5L11.5 4a1 1 0 0 0 0-1.414L9.707.793a1 1 0 0 0-1.414 0l-6.5 6.5A1 1 0 0 0 1.5 8v2.793zm1-1V8L9 1.5l1.793 1.793-6.5 6.5H2.5z",fillRule:"nonzero"}),T("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),T("path",{fillRule:"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))):null}function fZe(t){var e=t.i18n,r=t.onClick,n=t.file;return T("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--remove",type:"button","aria-label":e("removeFile",{file:n.meta.name}),title:e("removeFile",{file:n.meta.name}),onClick:function(){return r()}},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"18",height:"18",viewBox:"0 0 18 18"},T("path",{d:"M9 0C4.034 0 0 4.034 0 9s4.034 9 9 9 9-4.034 9-9-4.034-9-9-9z"}),T("path",{fill:"#FFF",d:"M13 12.222l-.778.778L9 9.778 5.778 13 5 12.222 8.222 9 5 5.778 5.778 5 9 8.222 12.222 5l.778.778L9.778 9z"})))}var pZe=function(e,r){_k(r.file.uploadURL,r.i18n("copyLinkToClipboardFallback")).then(function(){r.uppy.log("Link copied to clipboard."),r.uppy.info(r.i18n("copyLinkToClipboardSuccess"),"info",3e3)}).catch(r.uppy.log).then(function(){return e.target.focus({preventScroll:!0})})};function hZe(t){var e=t.i18n;return T("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--copyLink",type:"button","aria-label":e("copyLink"),title:e("copyLink"),onClick:function(n){return pZe(n,t)}},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 12"},T("path",{d:"M7.94 7.703a2.613 2.613 0 0 1-.626 2.681l-.852.851a2.597 2.597 0 0 1-1.849.766A2.616 2.616 0 0 1 2.764 7.54l.852-.852a2.596 2.596 0 0 1 2.69-.625L5.267 7.099a1.44 1.44 0 0 0-.833.407l-.852.851a1.458 1.458 0 0 0 1.03 2.486c.39 0 .755-.152 1.03-.426l.852-.852c.231-.231.363-.522.406-.824l1.04-1.038zm4.295-5.937A2.596 2.596 0 0 0 10.387 1c-.698 0-1.355.272-1.849.766l-.852.851a2.614 2.614 0 0 0-.624 2.688l1.036-1.036c.041-.304.173-.6.407-.833l.852-.852c.275-.275.64-.426 1.03-.426a1.458 1.458 0 0 1 1.03 2.486l-.852.851a1.442 1.442 0 0 1-.824.406l-1.04 1.04a2.596 2.596 0 0 0 2.683-.628l.851-.85a2.616 2.616 0 0 0 0-3.697zm-6.88 6.883a.577.577 0 0 0 .82 0l3.474-3.474a.579.579 0 1 0-.819-.82L5.355 7.83a.579.579 0 0 0 0 .819z"})))}function Pk(t){var e=t.uppy,r=t.file,n=t.uploadInProgressOrComplete,i=t.canEditFile,a=t.metaFields,l=t.showLinkToFileUploadResult,c=t.showRemoveButton,f=t.i18n,d=t.toggleFileCard,y=t.openFileEditor,m=function(){a&&a.length>0?d(!0,r.id):y(r)};return T("div",{className:"uppy-Dashboard-Item-actionWrapper"},T(cZe,{i18n:f,file:r,uploadInProgressOrComplete:n,canEditFile:i,metaFields:a,onClick:m}),l&&r.uploadURL?T(hZe,{file:r,uppy:e,i18n:f}):null,c?T(fZe,{i18n:f,file:r,uppy:e,onClick:function(){return e.removeFile(r.id,"removed-by-user")}}):null)}function Zf(t){"@babel/helpers - typeof";return Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zf(t)}function dZe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function SQ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yZe(n.key),n)}}function vZe(t,e,r){return e&&SQ(t.prototype,e),r&&SQ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function yZe(t){var e=mZe(t,"string");return Zf(e)=="symbol"?e:String(e)}function mZe(t,e){if(Zf(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Zf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function gZe(t,e,r){return e=fO(e),bZe(t,_Q()?Reflect.construct(e,r||[],fO(t).constructor):e.apply(t,r))}function bZe(t,e){if(e&&(Zf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wZe(t)}function wZe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _Q(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_Q=function(){return!!t})()}function fO(t){return fO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fO(t)}function OZe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ek(t,e)}function Ek(t,e){return Ek=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ek(t,e)}var TQ=function(t){OZe(e,t);function e(){return dZe(this,e),gZe(this,e,arguments)}return vZe(e,[{key:"componentDidMount",value:function(){var n=this.props.file;n.preview||this.props.handleRequestThumbnail(n)}},{key:"shouldComponentUpdate",value:function(n){return!(0,EQ.default)(this.props,n)}},{key:"componentDidUpdate",value:function(){var n=this.props.file;n.preview||this.props.handleRequestThumbnail(n)}},{key:"componentWillUnmount",value:function(){var n=this.props.file;n.preview||this.props.handleCancelThumbnail(n)}},{key:"render",value:function(){var n=this.props.file,i=n.progress.preprocess||n.progress.postprocess,a=n.progress.uploadComplete&&!i&&!n.error,l=n.progress.uploadStarted||i,c=n.progress.uploadStarted&&!n.progress.uploadComplete||i,f=n.error||!1,d=n.isGhost,y=(this.props.individualCancellation||!c)&&!a;a&&this.props.showRemoveButtonAfterComplete&&(y=!0);var m=(0,PQ.default)({"uppy-Dashboard-Item":!0,"is-inprogress":c&&!this.props.recoveredState,"is-processing":i,"is-complete":a,"is-error":!!f,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":d});return T("div",{className:m,id:"uppy_".concat(n.id),role:this.props.role},T("div",{className:"uppy-Dashboard-Item-preview"},T(mk,{file:n,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,i18n:this.props.i18n,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),T(wk,{uppy:this.props.uppy,file:n,error:f,isUploaded:a,hideRetryButton:this.props.hideRetryButton,hideCancelButton:this.props.hideCancelButton,hidePauseResumeButton:this.props.hidePauseResumeButton,recoveredState:this.props.recoveredState,showRemoveButtonAfterComplete:this.props.showRemoveButtonAfterComplete,resumableUploads:this.props.resumableUploads,individualCancellation:this.props.individualCancellation,i18n:this.props.i18n})),T("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},T(Sk,{file:n,id:this.props.id,acquirers:this.props.acquirers,containerWidth:this.props.containerWidth,containerHeight:this.props.containerHeight,i18n:this.props.i18n,toggleAddFilesPanel:this.props.toggleAddFilesPanel,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields,isSingleFile:this.props.isSingleFile}),T(Pk,{file:n,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:y,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:l,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,uppy:this.props.uppy,i18n:this.props.i18n})))}}]),e}(ct);function SZe(t,e){var r=[],n=[];return t.forEach(function(i){n.length<e?n.push(i):(r.push(n),n=[i])}),n.length&&r.push(n),r}function Tk(t){var e=t.id,r=t.error,n=t.i18n,i=t.uppy,a=t.files,l=t.acquirers,c=t.resumableUploads,f=t.hideRetryButton,d=t.hidePauseResumeButton,y=t.hideCancelButton,m=t.showLinkToFileUploadResult,g=t.showRemoveButtonAfterComplete,w=t.isWide,P=t.metaFields,E=t.isSingleFile,O=t.toggleFileCard,R=t.handleRequestThumbnail,x=t.handleCancelThumbnail,A=t.recoveredState,I=t.individualCancellation,N=t.itemsPerRow,j=t.openFileEditor,k=t.canEditFile,z=t.toggleAddFilesPanel,B=t.containerWidth,Y=t.containerHeight,Q=N===1?71:200,X=jf(function(){var H=function(o,u){return a[u].isGhost-a[o].isGhost},K=Object.keys(a);return A&&K.sort(H),SZe(K,N)},[a,N,A]),$=function(K){return T("div",{class:"uppy-Dashboard-filesInner",role:"presentation",key:K[0]},K.map(function(s){return T(TQ,{key:s,uppy:i,id:e,error:r,i18n:n,acquirers:l,resumableUploads:c,individualCancellation:I,hideRetryButton:f,hidePauseResumeButton:d,hideCancelButton:y,showLinkToFileUploadResult:m,showRemoveButtonAfterComplete:g,isWide:w,metaFields:P,recoveredState:A,isSingleFile:E,containerWidth:B,containerHeight:Y,toggleFileCard:O,handleRequestThumbnail:R,handleCancelThumbnail:x,role:"listitem",openFileEditor:j,canEditFile:k,toggleAddFilesPanel:z,file:a[s]})}))};return E?T("div",{class:"uppy-Dashboard-files"},$(X[0])):T(x0,{class:"uppy-Dashboard-files",role:"list",data:X,renderRow:$,rowHeight:Q})}function ep(t){"@babel/helpers - typeof";return ep=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ep(t)}function Ak(t){return TZe(t)||EZe(t)||PZe(t)||_Ze()}function _Ze(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function PZe(t,e){if(t){if(typeof t=="string")return xk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xk(t,e)}}function EZe(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function TZe(t){if(Array.isArray(t))return xk(t)}function xk(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function AZe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AQ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,RZe(n.key),n)}}function xZe(t,e,r){return e&&AQ(t.prototype,e),r&&AQ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function RZe(t){var e=IZe(t,"string");return ep(e)=="symbol"?e:String(e)}function IZe(t,e){if(ep(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ep(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function kZe(t,e,r){return e=pO(e),jZe(t,xQ()?Reflect.construct(e,r||[],pO(t).constructor):e.apply(t,r))}function jZe(t,e){if(e&&(ep(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qZe(t)}function qZe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xQ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xQ=function(){return!!t})()}function pO(t){return pO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pO(t)}function FZe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rk(t,e)}function Rk(t,e){return Rk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rk(t,e)}var RQ;RQ=Symbol.for("uppy test: disable unused locale key warning");var LZe=function(t,e){FZe(r,t);function r(){var n;return AZe(this,r),n=kZe(this,r,arguments),n.triggerFileInputClick=function(){n.fileInput.click()},n.triggerFolderInputClick=function(){n.folderInput.click()},n.triggerVideoCameraInputClick=function(){n.mobileVideoFileInput.click()},n.triggerPhotoCameraInputClick=function(){n.mobilePhotoFileInput.click()},n.onFileInputChange=function(i){n.props.handleInputChange(i),i.target.value=null},n.renderHiddenInput=function(i,a){return T("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,webkitdirectory:i,type:"file",name:"files[]",multiple:n.props.maxNumberOfFiles!==1,onChange:n.onFileInputChange,accept:n.props.allowedFileTypes,ref:a})},n.renderHiddenCameraInput=function(i,a,l){var c={photo:"image/*",video:"video/*"},f=c[i];return T("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,type:"file",name:"camera-".concat(i),onChange:n.onFileInputChange,capture:a,accept:f,ref:l})},n.renderMyDeviceAcquirer=function(){return T("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},T("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:n.triggerFileInputClick},T("div",{className:"uppy-DashboardTab-inner"},T("svg",{className:"uppy-DashboardTab-iconMyDevice","aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},T("path",{d:"M8.45 22.087l-1.305-6.674h17.678l-1.572 6.674H8.45zm4.975-12.412l1.083 1.765a.823.823 0 00.715.386h7.951V13.5H8.587V9.675h4.838zM26.043 13.5h-1.195v-2.598c0-.463-.336-.75-.798-.75h-8.356l-1.082-1.766A.823.823 0 0013.897 8H7.728c-.462 0-.815.256-.815.718V13.5h-.956a.97.97 0 00-.746.37.972.972 0 00-.19.81l1.724 8.565c.095.44.484.755.933.755H24c.44 0 .824-.3.929-.727l2.043-8.568a.972.972 0 00-.176-.825.967.967 0 00-.753-.38z",fill:"currentcolor","fill-rule":"evenodd"}))),T("div",{className:"uppy-DashboardTab-name"},n.props.i18n("myDevice"))))},n.renderPhotoCamera=function(){return T("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MobilePhotoCamera"},T("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:n.triggerPhotoCameraInputClick},T("div",{className:"uppy-DashboardTab-inner"},T("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},T("path",{d:"M23.5 9.5c1.417 0 2.5 1.083 2.5 2.5v9.167c0 1.416-1.083 2.5-2.5 2.5h-15c-1.417 0-2.5-1.084-2.5-2.5V12c0-1.417 1.083-2.5 2.5-2.5h2.917l1.416-2.167C13 7.167 13.25 7 13.5 7h5c.25 0 .5.167.667.333L20.583 9.5H23.5zM16 11.417a4.706 4.706 0 00-4.75 4.75 4.704 4.704 0 004.75 4.75 4.703 4.703 0 004.75-4.75c0-2.663-2.09-4.75-4.75-4.75zm0 7.825c-1.744 0-3.076-1.332-3.076-3.074 0-1.745 1.333-3.077 3.076-3.077 1.744 0 3.074 1.333 3.074 3.076s-1.33 3.075-3.074 3.075z",fill:"#02B383","fill-rule":"nonzero"}))),T("div",{className:"uppy-DashboardTab-name"},n.props.i18n("takePictureBtn"))))},n.renderVideoCamera=function(){return T("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MobileVideoCamera"},T("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:n.triggerVideoCameraInputClick},T("div",{className:"uppy-DashboardTab-inner"},T("svg",{"aria-hidden":"true",width:"32",height:"32",viewBox:"0 0 32 32"},T("path",{fill:"#FF675E",fillRule:"nonzero",d:"m21.254 14.277 2.941-2.588c.797-.313 1.243.818 1.09 1.554-.01 2.094.02 4.189-.017 6.282-.126.915-1.145 1.08-1.58.34l-2.434-2.142c-.192.287-.504 1.305-.738.468-.104-1.293-.028-2.596-.05-3.894.047-.312.381.823.426 1.069.063-.384.206-.744.362-1.09zm-12.939-3.73c3.858.013 7.717-.025 11.574.02.912.129 1.492 1.237 1.351 2.217-.019 2.412.04 4.83-.03 7.239-.17 1.025-1.166 1.59-2.029 1.429-3.705-.012-7.41.025-11.114-.019-.913-.129-1.492-1.237-1.352-2.217.018-2.404-.036-4.813.029-7.214.136-.82.83-1.473 1.571-1.454z "}))),T("div",{className:"uppy-DashboardTab-name"},n.props.i18n("recordVideoBtn"))))},n.renderBrowseButton=function(i,a){var l=n.props.acquirers.length;return T("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-browse",onClick:a,"data-uppy-super-focusable":l===0},i)},n.renderDropPasteBrowseTagline=function(i){var a=n.renderBrowseButton(n.props.i18n("browseFiles"),n.triggerFileInputClick),l=n.renderBrowseButton(n.props.i18n("browseFolders"),n.triggerFolderInputClick),c=n.props.fileManagerSelectionType,f=c.charAt(0).toUpperCase()+c.slice(1);return T("div",{class:"uppy-Dashboard-AddFiles-title"},n.props.disableLocalFiles?n.props.i18n("importFiles"):i>0?n.props.i18nArray("dropPasteImport".concat(f),{browseFiles:a,browseFolders:l,browse:a}):n.props.i18nArray("dropPaste".concat(f),{browseFiles:a,browseFolders:l,browse:a}))},n.renderAcquirer=function(i){var a;return T("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":i.id},T("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-cy":i.id,"aria-controls":"uppy-DashboardContent-panel--".concat(i.id),"aria-selected":((a=n.props.activePickerPanel)==null?void 0:a.id)===i.id,"data-uppy-super-focusable":!0,onClick:function(){return n.props.showPanel(i.id)}},T("div",{className:"uppy-DashboardTab-inner"},i.icon()),T("div",{className:"uppy-DashboardTab-name"},i.name)))},n.renderAcquirers=function(i){var a=Ak(i),l=a.splice(i.length-2,i.length);return T(mr,null,a.map(function(c){return n.renderAcquirer(c)}),T("span",{role:"presentation",style:{"white-space":"nowrap"}},l.map(function(c){return n.renderAcquirer(c)})))},n.renderSourcesList=function(i,a){var l,c=n.props,f=c.showNativePhotoCameraButton,d=c.showNativeVideoCameraButton,y=[],m="myDevice";a||y.push({key:m,elements:n.renderMyDeviceAcquirer()}),f&&y.push({key:"nativePhotoCameraButton",elements:n.renderPhotoCamera()}),d&&y.push({key:"nativePhotoCameraButton",elements:n.renderVideoCamera()}),(l=y).push.apply(l,Ak(i.map(function(O){return{key:O.id,elements:n.renderAcquirer(O)}})));var g=y.length===1&&y[0].key===m;g&&(y=[]);var w=Ak(y),P=w.splice(y.length-2,y.length),E=function(R){return R.map(function(x){var A=x.key,I=x.elements;return T(mr,{key:A},I)})};return T(mr,null,n.renderDropPasteBrowseTagline(y.length),T("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},E(w),T("span",{role:"presentation",style:{"white-space":"nowrap"}},E(P))))},n}return xZe(r,[{key:e,value:function(){this.props.i18nArray("dropPasteBoth"),this.props.i18nArray("dropPasteFiles"),this.props.i18nArray("dropPasteFolders"),this.props.i18nArray("dropPasteImportBoth"),this.props.i18nArray("dropPasteImportFiles"),this.props.i18nArray("dropPasteImportFolders")}},{key:"renderPoweredByUppy",value:function(){var i=this.props.i18nArray,a=T("span",null,T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},T("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),T("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy")),l=i("poweredBy",{uppy:a});return T("a",{tabIndex:-1,href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},l)}},{key:"render",value:function(){var i=this,a=this.props,l=a.showNativePhotoCameraButton,c=a.showNativeVideoCameraButton,f=a.nativeCameraFacingMode;return T("div",{className:"uppy-Dashboard-AddFiles"},this.renderHiddenInput(!1,function(d){i.fileInput=d}),this.renderHiddenInput(!0,function(d){i.folderInput=d}),l&&this.renderHiddenCameraInput("photo",f,function(d){i.mobilePhotoFileInput=d}),c&&this.renderHiddenCameraInput("video",f,function(d){i.mobileVideoFileInput=d}),this.renderSourcesList(this.props.acquirers,this.props.disableLocalFiles),T("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&T("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))}}]),r}(ct,RQ),hO=LZe;var IQ=Ce(Gn(),1);var CZe=function(e){return T("div",{className:(0,IQ.default)("uppy-Dashboard-AddFilesPanel",e.className),"data-uppy-panelType":"AddFiles","aria-hidden":!e.showAddFilesPanel},T("div",{className:"uppy-DashboardContent-bar"},T("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("addingMoreFiles")),T("button",{className:"uppy-DashboardContent-back",type:"button",onClick:function(){return e.toggleAddFilesPanel(!1)}},e.i18n("back"))),T(hO,e))},kQ=CZe;var jQ=Ce(Gn(),1);function NZe(t){var e=t.target.tagName;if(e==="INPUT"||e==="TEXTAREA"){t.stopPropagation();return}t.preventDefault(),t.stopPropagation()}var Ao=NZe;function DZe(t){var e=t.activePickerPanel,r=t.className,n=t.hideAllPanels,i=t.i18n,a=t.state,l=t.uppy;return T("div",{className:(0,jQ.default)("uppy-DashboardContent-panel",r),role:"tabpanel","data-uppy-panelType":"PickerPanel",id:"uppy-DashboardContent-panel--".concat(e.id),onDragOver:Ao,onDragLeave:Ao,onDrop:Ao,onPaste:Ao},T("div",{className:"uppy-DashboardContent-bar"},T("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},i("importFrom",{name:e.name})),T("button",{className:"uppy-DashboardContent-back",type:"button",onClick:n},i("cancel"))),T("div",{className:"uppy-DashboardContent-panelBody"},l.getPlugin(e.id).render(a)))}var qQ=DZe;var FQ=Ce(Gn(),1);function MZe(t){var e=t.files[t.fileCardFor],r=function(){t.uppy.emit("file-editor:cancel",e),t.closeFileEditor()};return T("div",{className:(0,FQ.default)("uppy-DashboardContent-panel",t.className),role:"tabpanel","data-uppy-panelType":"FileEditor",id:"uppy-DashboardContent-panel--editor"},T("div",{className:"uppy-DashboardContent-bar"},T("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},t.i18nArray("editing",{file:T("span",{className:"uppy-DashboardContent-titleFile"},e.meta?e.meta.name:e.name)})),T("button",{className:"uppy-DashboardContent-back",type:"button",onClick:r},t.i18n("cancel")),T("button",{className:"uppy-DashboardContent-save",type:"button",onClick:t.saveFileEditor},t.i18n("save"))),T("div",{className:"uppy-DashboardContent-panelBody"},t.editors.map(function(n){return t.uppy.getPlugin(n.id).render(t.state)})))}var LQ=MZe;var xo={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete",STATE_PAUSED:"paused"};function UZe(t,e,r,n){if(n===void 0&&(n={}),t)return xo.STATE_ERROR;if(e)return xo.STATE_COMPLETE;if(r)return xo.STATE_PAUSED;for(var i=xo.STATE_WAITING,a=Object.keys(n),l=0;l<a.length;l++){var c=n[a[l]].progress;if(c.uploadStarted&&!c.uploadComplete)return xo.STATE_UPLOADING;c.preprocess&&i!==xo.STATE_UPLOADING&&(i=xo.STATE_PREPROCESSING),c.postprocess&&i!==xo.STATE_UPLOADING&&i!==xo.STATE_PREPROCESSING&&(i=xo.STATE_POSTPROCESSING)}return i}function BZe(t){var e=t.files,r=t.i18n,n=t.isAllComplete,i=t.isAllErrored,a=t.isAllPaused,l=t.inProgressNotPausedFiles,c=t.newFiles,f=t.processingFiles,d=UZe(i,n,a,e);switch(d){case"uploading":return r("uploadingXFiles",{smart_count:l.length});case"preprocessing":case"postprocessing":return r("processingXFiles",{smart_count:f.length});case"paused":return r("uploadPaused");case"waiting":return r("xFilesSelected",{smart_count:c.length});case"complete":return r("uploadComplete");case"error":return r("error");default:}}function GZe(t){var e=t.i18n,r=t.isAllComplete,n=t.hideCancelButton,i=t.maxNumberOfFiles,a=t.toggleAddFilesPanel,l=t.uppy,c=t.allowNewUpload;return c&&i&&(c=t.totalFileCount<t.maxNumberOfFiles),T("div",{className:"uppy-DashboardContent-bar"},!r&&!n?T("button",{className:"uppy-DashboardContent-back",type:"button",onClick:function(){return l.cancelAll()}},e("cancel")):T("div",null),T("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},T(BZe,t)),c?T("button",{className:"uppy-DashboardContent-addMore",type:"button","aria-label":e("addMoreFiles"),title:e("addMoreFiles"),onClick:function(){return a(!0)}},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"15",height:"15",viewBox:"0 0 15 15"},T("path",{d:"M8 6.5h6a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H8v6a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V8h-6a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h6v-6A.5.5 0 0 1 7 0h.5a.5.5 0 0 1 .5.5v6z"})),T("span",{className:"uppy-DashboardContent-addMoreCaption"},e("addMore"))):T("div",null))}var CQ=GZe;var GQ=Ce(Gn(),1);function Ik(t){var e=t.computedMetaFields,r=t.requiredMetaFields,n=t.updateMeta,i=t.form,a=t.formState,l={text:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input"};return e.map(function(c){var f="uppy-Dashboard-FileCard-input-".concat(c.id),d=r.includes(c.id);return T("fieldset",{key:c.id,className:"uppy-Dashboard-FileCard-fieldset"},T("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:f},c.name),c.render!==void 0?c.render({value:a[c.id],onChange:function(m){return n(m,c.id)},fieldCSSClasses:l,required:d,form:i.id},T):T("input",{className:l.text,id:f,form:i.id,type:c.type||"text",required:d,value:a[c.id],placeholder:c.placeholder,onInput:function(m){return n(m.target.value,c.id)},"data-uppy-super-focusable":!0}))})}function cy(t){"@babel/helpers - typeof";return cy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cy(t)}function NQ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function DQ(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?NQ(Object(r),!0).forEach(function(n){BQ(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NQ(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function BQ(t,e,r){return e=$Ze(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $Ze(t){var e=zZe(t,"string");return cy(e)=="symbol"?e:String(e)}function zZe(t,e){if(cy(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(cy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function MQ(t,e){return KZe(t)||VZe(t,e)||WZe(t,e)||HZe()}function HZe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function WZe(t,e){if(t){if(typeof t=="string")return UQ(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return UQ(t,e)}}function UQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function VZe(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function KZe(t){if(Array.isArray(t))return t}function kk(t){var e,r=t.files,n=t.fileCardFor,i=t.toggleFileCard,a=t.saveFileCard,l=t.metaFields,c=t.requiredMetaFields,f=t.openFileEditor,d=t.i18n,y=t.i18nArray,m=t.className,g=t.canEditFile,w=function(){return typeof l=="function"?l(r[n]):l},P=r[n],E=(e=w())!=null?e:[],O=g(P),R={};E.forEach(function(X){var $;R[X.id]=($=P.meta[X.id])!=null?$:""});var x=pa(R),A=MQ(x,2),I=A[0],N=A[1],j=cl(function(X){X.preventDefault(),a(I,n)},[a,I,n]),k=function($,H){N(DQ(DQ({},I),{},BQ({},H,$)))},z=function(){i(!1)},B=pa(function(){var X=document.createElement("form");return X.setAttribute("tabindex","-1"),X.id=Sn(),X}),Y=MQ(B,1),Q=Y[0];return Oo(function(){return document.body.appendChild(Q),Q.addEventListener("submit",j),function(){Q.removeEventListener("submit",j),document.body.removeChild(Q)}},[Q,j]),T("div",{className:(0,GQ.default)("uppy-Dashboard-FileCard",m),"data-uppy-panelType":"FileCard",onDragOver:Ao,onDragLeave:Ao,onDrop:Ao,onPaste:Ao},T("div",{className:"uppy-DashboardContent-bar"},T("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},y("editing",{file:T("span",{className:"uppy-DashboardContent-titleFile"},P.meta?P.meta.name:P.name)})),T("button",{className:"uppy-DashboardContent-back",type:"button",form:Q.id,title:d("finishEditingFile"),onClick:z},d("cancel"))),T("div",{className:"uppy-Dashboard-FileCard-inner"},T("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:dl(P.type).color}},T(sy,{file:P}),O&&T("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit",onClick:function($){j($),f(P)}},d("editImage"))),T("div",{className:"uppy-Dashboard-FileCard-info"},T(Ik,{computedMetaFields:E,requiredMetaFields:c,updateMeta:k,form:Q,formState:I})),T("div",{className:"uppy-Dashboard-FileCard-actions"},T("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"submit",form:Q.id},d("saveChanges")),T("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:z,form:Q.id},d("cancel")))))}var WQ=Ce(Gn(),1);function $Q(t,e){return JZe(t)||QZe(t,e)||XZe(t,e)||YZe()}function YZe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function XZe(t,e){if(t){if(typeof t=="string")return zQ(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zQ(t,e)}}function zQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function QZe(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function JZe(t){if(Array.isArray(t))return t}var tp="uppy-transition-slideDownUp",HQ=250;function ZZe(t){var e=t.children,r=pa(null),n=$Q(r,2),i=n[0],a=n[1],l=pa(""),c=$Q(l,2),f=c[0],d=c[1],y=ll(),m=ll(),g=ll(),w=function(){d("".concat(tp,"-enter")),cancelAnimationFrame(g.current),clearTimeout(m.current),m.current=void 0,g.current=requestAnimationFrame(function(){d("".concat(tp,"-enter ").concat(tp,"-enter-active")),y.current=setTimeout(function(){d("")},HQ)})},P=function(){d("".concat(tp,"-leave")),cancelAnimationFrame(g.current),clearTimeout(y.current),y.current=void 0,g.current=requestAnimationFrame(function(){d("".concat(tp,"-leave ").concat(tp,"-leave-active")),m.current=setTimeout(function(){a(null),d("")},HQ)})};return Oo(function(){var E=hi(e)[0];i!==E&&(E&&!i?w():i&&!E&&!m.current&&P(),a(E))},[e,i]),Oo(function(){return function(){clearTimeout(y.current),clearTimeout(m.current),cancelAnimationFrame(g.current)}},[]),i?t0(i,{className:(0,WQ.default)(f,i.props.className)}):null}var fy=ZZe;function vl(){return vl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},vl.apply(this,arguments)}var VQ=900,KQ=700,jk=576,YQ=330;function qk(t){var e=t.totalFileCount===0,r=t.totalFileCount===1,n=t.containerWidth>jk,i=t.containerHeight>YQ,a=(0,XQ.default)({"uppy-Dashboard":!0,"uppy-Dashboard--isDisabled":t.disabled,"uppy-Dashboard--animateOpenClose":t.animateOpenClose,"uppy-Dashboard--isClosing":t.isClosing,"uppy-Dashboard--isDraggingOver":t.isDraggingOver,"uppy-Dashboard--modal":!t.inline,"uppy-size--md":t.containerWidth>jk,"uppy-size--lg":t.containerWidth>KQ,"uppy-size--xl":t.containerWidth>VQ,"uppy-size--height-md":t.containerHeight>YQ,"uppy-Dashboard--isAddFilesPanelVisible":t.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":t.areInsidesReadyToBeVisible,"uppy-Dashboard--singleFile":t.singleFileFullScreen&&r&&i}),l=1;t.containerWidth>VQ?l=5:t.containerWidth>KQ?l=4:t.containerWidth>jk&&(l=3);var c=t.showSelectedFiles&&!e,f=t.recoveredState?Object.keys(t.recoveredState.files).length:null,d=t.files?Object.keys(t.files).filter(function(g){return t.files[g].isGhost}).length:null,y=function(){return d>0?t.i18n("recoveredXFiles",{smart_count:d}):t.i18n("recoveredAllFiles")},m=T("div",{className:a,"data-uppy-theme":t.theme,"data-uppy-num-acquirers":t.acquirers.length,"data-uppy-drag-drop-supported":!t.disableLocalFiles&&uy(),"aria-hidden":t.inline?"false":t.isHidden,"aria-disabled":t.disabled,"aria-label":t.inline?t.i18n("dashboardTitle"):t.i18n("dashboardWindowTitle"),onPaste:t.handlePaste,onDragOver:t.handleDragOver,onDragLeave:t.handleDragLeave,onDrop:t.handleDrop},T("div",{"aria-hidden":"true",className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:t.handleClickOutside}),T("div",{className:"uppy-Dashboard-inner","aria-modal":!t.inline&&"true",role:t.inline?void 0:"dialog",style:{width:t.inline&&t.width?t.width:"",height:t.inline&&t.height?t.height:""}},t.inline?null:T("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":t.i18n("closeModal"),title:t.i18n("closeModal"),onClick:t.closeModal},T("span",{"aria-hidden":"true"},"\xD7")),T("div",{className:"uppy-Dashboard-innerWrap"},T("div",{className:"uppy-Dashboard-dropFilesHereHint"},t.i18n("dropHint")),c&&T(CQ,t),f&&T("div",{className:"uppy-Dashboard-serviceMsg"},T("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},T("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},T("path",{d:"M12.857 1.43l10.234 17.056A1 1 0 0122.234 20H1.766a1 1 0 01-.857-1.514L11.143 1.429a1 1 0 011.714 0z",fill:"#FFD300"}),T("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),T("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),T("strong",{className:"uppy-Dashboard-serviceMsg-title"},t.i18n("sessionRestored")),T("div",{className:"uppy-Dashboard-serviceMsg-text"},y())),c?T(Tk,{id:t.id,error:t.error,i18n:t.i18n,uppy:t.uppy,files:t.files,acquirers:t.acquirers,resumableUploads:t.resumableUploads,hideRetryButton:t.hideRetryButton,hidePauseResumeButton:t.hidePauseResumeButton,hideCancelButton:t.hideCancelButton,showLinkToFileUploadResult:t.showLinkToFileUploadResult,showRemoveButtonAfterComplete:t.showRemoveButtonAfterComplete,isWide:t.isWide,metaFields:t.metaFields,toggleFileCard:t.toggleFileCard,handleRequestThumbnail:t.handleRequestThumbnail,handleCancelThumbnail:t.handleCancelThumbnail,recoveredState:t.recoveredState,individualCancellation:t.individualCancellation,openFileEditor:t.openFileEditor,canEditFile:t.canEditFile,toggleAddFilesPanel:t.toggleAddFilesPanel,isSingleFile:r,itemsPerRow:l}):T(hO,vl({},t,{isSizeMD:n})),T(fy,null,t.showAddFilesPanel?T(kQ,vl({key:"AddFiles"},t,{isSizeMD:n})):null),T(fy,null,t.fileCardFor?T(kk,vl({key:"FileCard"},t)):null),T(fy,null,t.activePickerPanel?T(qQ,vl({key:"Picker"},t)):null),T(fy,null,t.showFileEditor?T(LQ,vl({key:"Editor"},t)):null),T("div",{className:"uppy-Dashboard-progressindicators"},t.progressindicators.map(function(g){return t.uppy.getPlugin(g.id).render(t.state)})))));return m}var QQ={strings:{closeModal:"Close Modal",addMoreFiles:"Add more files",addingMoreFiles:"Adding more files",importFrom:"Import from %{name}",dashboardWindowTitle:"Uppy Dashboard Window (Press escape to close)",dashboardTitle:"Uppy Dashboard",copyLinkToClipboardSuccess:"Link copied to clipboard.",copyLinkToClipboardFallback:"Copy the URL below",copyLink:"Copy link",back:"Back",removeFile:"Remove file",editFile:"Edit file",editImage:"Edit image",editing:"Editing %{file}",error:"Error",finishEditingFile:"Finish editing file",saveChanges:"Save changes",myDevice:"My Device",dropHint:"Drop your files here",uploadComplete:"Upload complete",uploadPaused:"Upload paused",resumeUpload:"Resume upload",pauseUpload:"Pause upload",retryUpload:"Retry upload",cancelUpload:"Cancel upload",xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},poweredBy:"Powered by %{uppy}",addMore:"Add more",editFileWithFilename:"Edit file %{file}",save:"Save",cancel:"Cancel",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",importFiles:"Import files from:",browseFiles:"browse files",browseFolders:"browse folders",recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},recoveredAllFiles:"We restored all files. You can now resume the upload.",sessionRestored:"Session restored",reSelect:"Re-select",missingRequiredMetaFields:{0:"Missing required meta field: %{fields}.",1:"Missing required meta fields: %{fields}."},takePictureBtn:"Take Picture",recordVideoBtn:"Record Video"}};function ju(t){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ju(t)}function Uk(){"use strict";Uk=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&ju(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(ju(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function JQ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function eet(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){JQ(a,n,i,l,c,"next",f)}function c(f){JQ(a,n,i,l,c,"throw",f)}l(void 0)})}}function tet(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=ret(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(d){throw d},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,l=!1,c;return{s:function(){r=r.call(t)},n:function(){var d=r.next();return a=d.done,d},e:function(d){l=!0,c=d},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function ret(t,e){if(t){if(typeof t=="string")return ZQ(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ZQ(t,e)}}function ZQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function eJ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function zi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?eJ(Object(r),!0).forEach(function(n){iJ(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eJ(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function iJ(t,e,r){return e=oJ(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tJ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,oJ(n.key),n)}}function net(t,e,r){return e&&tJ(t.prototype,e),r&&tJ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function oJ(t){var e=iet(t,"string");return ju(e)=="symbol"?e:String(e)}function iet(t,e){if(ju(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ju(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function oet(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aet(t,e,r){return e=dO(e),uet(t,aJ()?Reflect.construct(e,r||[],dO(t).constructor):e.apply(t,r))}function uet(t,e){if(e&&(ju(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qe(t)}function aJ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(aJ=function(){return!!t})()}function dO(t){return dO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dO(t)}function qe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function set(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bk(t,e)}function Bk(t,e){return Bk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bk(t,e)}function St(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var cet=0;function Hi(t){return"__private_"+cet+++"_"+t}var fet={version:"3.8.2"},Fk=dk.default||dk,rJ=9,pet=27;function nJ(){var t={};return t.promise=new Promise(function(e,r){t.resolve=e,t.reject=r}),t}var het={target:"body",metaFields:[],inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,defaultPickerIcon:Nf,showLinkToFileUploadResult:!1,showProgressDetails:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,singleFileFullScreen:!0,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,showNativePhotoCameraButton:!1,showNativeVideoCameraButton:!1,theme:"light",autoOpen:null,autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1,doneButtonHandler:null,onRequestCloseModal:null},yl=Hi("disabledNodes"),ma=Hi("generateLargeThumbnailIfSingleFile"),py=Hi("openFileEditorWhenFilesAdded"),ml=Hi("attachRenderFunctionToTarget"),Lk=Hi("isTargetSupported"),Ck=Hi("getAcquirers"),Nk=Hi("getProgressIndicators"),ga=Hi("getEditors"),Dk=Hi("addSpecifiedPluginsFromOptions"),Mk=Hi("autoDiscoverPlugins"),gl=Hi("addSupportedPluginIfNoTarget"),vO=function(t){set(e,t);function e(r,n){var i;oet(this,e);var a,l,c,f,d;return n?n.autoOpen===void 0?d=n.autoOpenFileEditor?"imageEditor":null:d=n.autoOpen:d=null,i=aet(this,e,[r,zi(zi(zi({},het),n),{},{autoOpen:d})]),Object.defineProperty(qe(i),yl,{writable:!0,value:void 0}),i.modalName="uppy-Dashboard-".concat(Sn()),i.superFocus=yk(),i.ifFocusedOnUppyRecently=!1,i.removeTarget=function(y){var m=i.getPluginState(),g=m.targets.filter(function(w){return w.id!==y.id});i.setPluginState({targets:g})},i.addTarget=function(y){var m=y.id||y.constructor.name,g=y.title||m,w=y.type;if(w!=="acquirer"&&w!=="progressindicator"&&w!=="editor"){var P="Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor";return i.uppy.log(P,"error"),null}var E={id:m,name:g,type:w},O=i.getPluginState(),R=O.targets.slice();return R.push(E),i.setPluginState({targets:R}),i.el},i.hideAllPanels=function(){var y,m=i.getPluginState(),g={activePickerPanel:void 0,showAddFilesPanel:!1,activeOverlayType:null,fileCardFor:null,showFileEditor:!1};m.activePickerPanel===g.activePickerPanel&&m.showAddFilesPanel===g.showAddFilesPanel&&m.showFileEditor===g.showFileEditor&&m.activeOverlayType===g.activeOverlayType||(i.setPluginState(g),i.uppy.emit("dashboard:close-panel",(y=m.activePickerPanel)==null?void 0:y.id))},i.showPanel=function(y){var m=i.getPluginState(),g=m.targets,w=g.find(function(P){return P.type==="acquirer"&&P.id===y});i.setPluginState({activePickerPanel:w,activeOverlayType:"PickerPanel"}),i.uppy.emit("dashboard:show-panel",y)},i.canEditFile=function(y){var m=i.getPluginState(),g=m.targets,w=St(qe(i),ga)[ga](g);return w.some(function(P){return i.uppy.getPlugin(P.id).canEditFile(y)})},i.openFileEditor=function(y){var m=i.getPluginState(),g=m.targets,w=St(qe(i),ga)[ga](g);i.setPluginState({showFileEditor:!0,fileCardFor:y.id||null,activeOverlayType:"FileEditor"}),w.forEach(function(P){i.uppy.getPlugin(P.id).selectFile(y)})},i.closeFileEditor=function(){var y=i.getPluginState(),m=y.metaFields,g=m&&m.length>0;g?i.setPluginState({showFileEditor:!1,activeOverlayType:"FileCard"}):i.setPluginState({showFileEditor:!1,fileCardFor:null,activeOverlayType:"AddFiles"})},i.saveFileEditor=function(){var y=i.getPluginState(),m=y.targets,g=St(qe(i),ga)[ga](m);g.forEach(function(w){i.uppy.getPlugin(w.id).save()}),i.closeFileEditor()},i.openModal=function(){var y=nJ(),m=y.promise,g=y.resolve;if(i.savedScrollPosition=window.pageYOffset,i.savedActiveElement=document.activeElement,i.opts.disablePageScrollWhenModalOpen&&document.body.classList.add("uppy-Dashboard-isFixed"),i.opts.animateOpenClose&&i.getPluginState().isClosing){var w=function P(){i.setPluginState({isHidden:!1}),i.el.removeEventListener("animationend",P,!1),g()};i.el.addEventListener("animationend",w,!1)}else i.setPluginState({isHidden:!1}),g();return i.opts.browserBackButtonClose&&i.updateBrowserHistory(),document.addEventListener("keydown",i.handleKeyDownInModal),i.uppy.emit("dashboard:modal-open"),m},i.closeModal=function(y){var m,g=(m=y==null?void 0:y.manualClose)!=null?m:!0,w=i.getPluginState(),P=w.isHidden,E=w.isClosing;if(!(P||E)){var O=nJ(),R=O.promise,x=O.resolve;if(i.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),i.opts.animateOpenClose){i.setPluginState({isClosing:!0});var A=function N(){i.setPluginState({isHidden:!0,isClosing:!1}),i.superFocus.cancel(),i.savedActiveElement.focus(),i.el.removeEventListener("animationend",N,!1),x()};i.el.addEventListener("animationend",A,!1)}else i.setPluginState({isHidden:!0}),i.superFocus.cancel(),i.savedActiveElement.focus(),x();if(document.removeEventListener("keydown",i.handleKeyDownInModal),g&&i.opts.browserBackButtonClose){var I;(I=history.state)!=null&&I[i.modalName]&&history.back()}return i.uppy.emit("dashboard:modal-closed"),R}},i.isModalOpen=function(){return!i.getPluginState().isHidden||!1},i.requestCloseModal=function(){return i.opts.onRequestCloseModal?i.opts.onRequestCloseModal():i.closeModal()},i.setDarkModeCapability=function(y){var m=i.uppy.getState(),g=m.capabilities;i.uppy.setState({capabilities:zi(zi({},g),{},{darkMode:y})})},i.handleSystemDarkModeChange=function(y){var m=y.matches;i.uppy.log("[Dashboard] Dark mode is ".concat(m?"on":"off")),i.setDarkModeCapability(m)},i.toggleFileCard=function(y,m){var g=i.uppy.getFile(m);y?i.uppy.emit("dashboard:file-edit-start",g):i.uppy.emit("dashboard:file-edit-complete",g),i.setPluginState({fileCardFor:y?m:null,activeOverlayType:y?"FileCard":null})},i.toggleAddFilesPanel=function(y){i.setPluginState({showAddFilesPanel:y,activeOverlayType:y?"AddFiles":null})},i.addFiles=function(y){var m=y.map(function(g){return{source:i.id,name:g.name,type:g.type,data:g,meta:{relativePath:g.relativePath||g.webkitRelativePath||null}}});try{i.uppy.addFiles(m)}catch(g){i.uppy.log(g)}},i.startListeningToResize=function(){i.resizeObserver=new ResizeObserver(function(y){var m=y[0],g=m.contentRect,w=g.width,P=g.height;i.setPluginState({containerWidth:w,containerHeight:P,areInsidesReadyToBeVisible:!0})}),i.resizeObserver.observe(i.el.querySelector(".uppy-Dashboard-inner")),i.makeDashboardInsidesVisibleAnywayTimeout=setTimeout(function(){var y=i.getPluginState(),m=!i.opts.inline&&y.isHidden;!y.areInsidesReadyToBeVisible&&!m&&(i.uppy.log("[Dashboard] resize event didn\u2019t fire on time: defaulted to mobile layout","warning"),i.setPluginState({areInsidesReadyToBeVisible:!0}))},1e3)},i.stopListeningToResize=function(){i.resizeObserver.disconnect(),clearTimeout(i.makeDashboardInsidesVisibleAnywayTimeout)},i.recordIfFocusedOnUppyRecently=function(y){i.el.contains(y.target)?i.ifFocusedOnUppyRecently=!0:(i.ifFocusedOnUppyRecently=!1,i.superFocus.cancel())},i.disableInteractiveElements=function(y){var m,g=["a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])",'[role="button"]:not([disabled])'],w=(m=St(qe(i),yl)[yl])!=null?m:Kt(i.el.querySelectorAll(g)).filter(function(R){return!R.classList.contains("uppy-Dashboard-close")}),P=tet(w),E;try{for(P.s();!(E=P.n()).done;){var O=E.value;O.tagName==="A"?O.setAttribute("aria-disabled",y):O.disabled=y}}catch(R){P.e(R)}finally{P.f()}y?St(qe(i),yl)[yl]=w:St(qe(i),yl)[yl]=null,i.dashboardIsDisabled=y},i.updateBrowserHistory=function(){var y;(y=history.state)!=null&&y[i.modalName]||history.pushState(zi(zi({},history.state),{},iJ({},i.modalName,!0)),""),window.addEventListener("popstate",i.handlePopState,!1)},i.handlePopState=function(y){var m;i.isModalOpen()&&(!y.state||!y.state[i.modalName])&&i.closeModal({manualClose:!1}),!i.isModalOpen()&&(m=y.state)!=null&&m[i.modalName]&&history.back()},i.handleKeyDownInModal=function(y){y.keyCode===pet&&i.requestCloseModal(),y.keyCode===rJ&&vk(y,i.getPluginState().activeOverlayType,i.el)},i.handleClickOutside=function(){i.opts.closeModalOnClickOutside&&i.requestCloseModal()},i.handlePaste=function(y){i.uppy.iteratePlugins(function(g){g.type==="acquirer"&&(g.handleRootPaste==null||g.handleRootPaste(y))});var m=Kt(y.clipboardData.files);m.length>0&&(i.uppy.log("[Dashboard] Files pasted"),i.addFiles(m))},i.handleInputChange=function(y){y.preventDefault();var m=Kt(y.target.files);m.length>0&&(i.uppy.log("[Dashboard] Files selected through input"),i.addFiles(m))},i.handleDragOver=function(y){var m,g;y.preventDefault(),y.stopPropagation();var w=function(){var x=!0;return i.uppy.iteratePlugins(function(A){A.canHandleRootDrop!=null&&A.canHandleRootDrop(y)&&(x=!0)}),x},P=function(){var x=y.dataTransfer.types;return x.some(function(A){return A==="Files"})},E=w(),O=P();if(!E&&!O||i.opts.disabled||i.opts.disableLocalFiles&&(O||!E)||!i.uppy.getState().allowNewUpload){y.dataTransfer.dropEffect="none",clearTimeout(i.removeDragOverClassTimeout);return}y.dataTransfer.dropEffect="copy",clearTimeout(i.removeDragOverClassTimeout),i.setPluginState({isDraggingOver:!0}),(m=(g=i.opts).onDragOver)==null||m.call(g,y)},i.handleDragLeave=function(y){var m,g;y.preventDefault(),y.stopPropagation(),clearTimeout(i.removeDragOverClassTimeout),i.removeDragOverClassTimeout=setTimeout(function(){i.setPluginState({isDraggingOver:!1})},50),(m=(g=i.opts).onDragLeave)==null||m.call(g,y)},i.handleDrop=function(){var y=eet(Uk().mark(function m(g){var w,P,E,O,R;return Uk().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return g.preventDefault(),g.stopPropagation(),clearTimeout(i.removeDragOverClassTimeout),i.setPluginState({isDraggingOver:!1}),i.uppy.iteratePlugins(function(I){I.type==="acquirer"&&(I.handleRootDrop==null||I.handleRootDrop(g))}),E=!1,O=function(N){i.uppy.log(N,"error"),E||(i.uppy.info(N.message,"error"),E=!0)},i.uppy.log("[Dashboard] Processing dropped files"),A.next=10,hl(g.dataTransfer,{logDropError:O});case 10:R=A.sent,R.length>0&&(i.uppy.log("[Dashboard] Files dropped"),i.addFiles(R)),(w=(P=i.opts).onDrop)==null||w.call(P,g);case 13:case"end":return A.stop()}},m)}));return function(m){return y.apply(this,arguments)}}(),i.handleRequestThumbnail=function(y){i.opts.waitForThumbnailsBeforeUpload||i.uppy.emit("thumbnail:request",y)},i.handleCancelThumbnail=function(y){i.opts.waitForThumbnailsBeforeUpload||i.uppy.emit("thumbnail:cancel",y)},i.handleKeyDownInInline=function(y){y.keyCode===rJ&&yQ(y,i.getPluginState().activeOverlayType,i.el)},i.handlePasteOnBody=function(y){var m=i.el.contains(document.activeElement);m&&i.handlePaste(y)},i.handleComplete=function(y){var m=y.failed;i.opts.closeAfterFinish&&!(m!=null&&m.length)&&i.requestCloseModal()},i.handleCancelRestore=function(){i.uppy.emit("restore-canceled")},Object.defineProperty(qe(i),ma,{writable:!0,value:function(){if(!i.opts.disableThumbnailGenerator){var m=600,g=i.uppy.getFiles();if(g.length===1){var w=i.uppy.getPlugin("".concat(i.id,":ThumbnailGenerator"));w==null||w.setOptions({thumbnailWidth:m});var P=zi(zi({},g[0]),{},{preview:void 0});w==null||w.requestThumbnail(P).then(function(){w==null||w.setOptions({thumbnailWidth:i.opts.thumbnailWidth})})}}}}),Object.defineProperty(qe(i),py,{writable:!0,value:function(m){var g=m[0],w=i.getPluginState(),P=w.metaFields,E=P&&P.length>0,O=i.canEditFile(g);E&&i.opts.autoOpen==="metaEditor"?i.toggleFileCard(!0,g.id):O&&i.opts.autoOpen==="imageEditor"&&i.openFileEditor(g)}}),i.initEvents=function(){if(i.opts.trigger&&!i.opts.inline){var y=ik(i.opts.trigger);y?y.forEach(function(m){return m.addEventListener("click",i.openModal)}):i.uppy.log("Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options, unless you are planning to call `dashboard.openModal()` method yourself","warning")}i.startListeningToResize(),document.addEventListener("paste",i.handlePasteOnBody),i.uppy.on("plugin-added",St(qe(i),gl)[gl]),i.uppy.on("plugin-remove",i.removeTarget),i.uppy.on("file-added",i.hideAllPanels),i.uppy.on("dashboard:modal-closed",i.hideAllPanels),i.uppy.on("complete",i.handleComplete),i.uppy.on("files-added",St(qe(i),ma)[ma]),i.uppy.on("file-removed",St(qe(i),ma)[ma]),document.addEventListener("focus",i.recordIfFocusedOnUppyRecently,!0),document.addEventListener("click",i.recordIfFocusedOnUppyRecently,!0),i.opts.inline&&i.el.addEventListener("keydown",i.handleKeyDownInInline),i.opts.autoOpen&&i.uppy.on("files-added",St(qe(i),py)[py])},i.removeEvents=function(){var y=ik(i.opts.trigger);!i.opts.inline&&y&&y.forEach(function(m){return m.removeEventListener("click",i.openModal)}),i.stopListeningToResize(),document.removeEventListener("paste",i.handlePasteOnBody),window.removeEventListener("popstate",i.handlePopState,!1),i.uppy.off("plugin-added",St(qe(i),gl)[gl]),i.uppy.off("plugin-remove",i.removeTarget),i.uppy.off("file-added",i.hideAllPanels),i.uppy.off("dashboard:modal-closed",i.hideAllPanels),i.uppy.off("complete",i.handleComplete),i.uppy.off("files-added",St(qe(i),ma)[ma]),i.uppy.off("file-removed",St(qe(i),ma)[ma]),document.removeEventListener("focus",i.recordIfFocusedOnUppyRecently),document.removeEventListener("click",i.recordIfFocusedOnUppyRecently),i.opts.inline&&i.el.removeEventListener("keydown",i.handleKeyDownInInline),i.opts.autoOpen&&i.uppy.off("files-added",St(qe(i),py)[py])},i.superFocusOnEachUpdate=function(){var y=i.el.contains(document.activeElement),m=document.activeElement===document.body||document.activeElement===null,g=i.uppy.getState().info.length===0,w=!i.opts.inline;g&&(w||y||m&&i.ifFocusedOnUppyRecently)?i.superFocus(i.el,i.getPluginState().activeOverlayType):i.superFocus.cancel()},i.afterUpdate=function(){if(i.opts.disabled&&!i.dashboardIsDisabled){i.disableInteractiveElements(!0);return}!i.opts.disabled&&i.dashboardIsDisabled&&i.disableInteractiveElements(!1),i.superFocusOnEachUpdate()},i.saveFileCard=function(y,m){i.uppy.setFileMeta(m,y),i.toggleFileCard(!1,m)},Object.defineProperty(qe(i),ml,{writable:!0,value:function(m){var g=i.uppy.getPlugin(m.id);return zi(zi({},m),{},{icon:g.icon||i.opts.defaultPickerIcon,render:g.render})}}),Object.defineProperty(qe(i),Lk,{writable:!0,value:function(m){var g=i.uppy.getPlugin(m.id);return typeof g.isSupported!="function"?!0:g.isSupported()}}),Object.defineProperty(qe(i),Ck,{writable:!0,value:Fk(function(y){return y.filter(function(m){return m.type==="acquirer"&&St(qe(i),Lk)[Lk](m)}).map(St(qe(i),ml)[ml])})}),Object.defineProperty(qe(i),Nk,{writable:!0,value:Fk(function(y){return y.filter(function(m){return m.type==="progressindicator"}).map(St(qe(i),ml)[ml])})}),Object.defineProperty(qe(i),ga,{writable:!0,value:Fk(function(y){return y.filter(function(m){return m.type==="editor"}).map(St(qe(i),ml)[ml])})}),i.render=function(y){var m=i.getPluginState(),g=y.files,w=y.capabilities,P=y.allowNewUpload,E=i.uppy.getObjectOfFilesPerState(),O=E.newFiles,R=E.uploadStartedFiles,x=E.completeFiles,A=E.erroredFiles,I=E.inProgressFiles,N=E.inProgressNotPausedFiles,j=E.processingFiles,k=E.isUploadStarted,z=E.isAllComplete,B=E.isAllErrored,Y=E.isAllPaused,Q=St(qe(i),Ck)[Ck](m.targets),X=St(qe(i),Nk)[Nk](m.targets),$=St(qe(i),ga)[ga](m.targets),H;return i.opts.theme==="auto"?H=w.darkMode?"dark":"light":H=i.opts.theme,["files","folders","both"].indexOf(i.opts.fileManagerSelectionType)<0&&(i.opts.fileManagerSelectionType="files",console.warn('Unsupported option for "fileManagerSelectionType". Using default of "'.concat(i.opts.fileManagerSelectionType,'".'))),qk({state:y,isHidden:m.isHidden,files:g,newFiles:O,uploadStartedFiles:R,completeFiles:x,erroredFiles:A,inProgressFiles:I,inProgressNotPausedFiles:N,processingFiles:j,isUploadStarted:k,isAllComplete:z,isAllErrored:B,isAllPaused:Y,totalFileCount:Object.keys(g).length,totalProgress:y.totalProgress,allowNewUpload:P,acquirers:Q,theme:H,disabled:i.opts.disabled,disableLocalFiles:i.opts.disableLocalFiles,direction:i.opts.direction,activePickerPanel:m.activePickerPanel,showFileEditor:m.showFileEditor,saveFileEditor:i.saveFileEditor,closeFileEditor:i.closeFileEditor,disableInteractiveElements:i.disableInteractiveElements,animateOpenClose:i.opts.animateOpenClose,isClosing:m.isClosing,progressindicators:X,editors:$,autoProceed:i.uppy.opts.autoProceed,id:i.id,closeModal:i.requestCloseModal,handleClickOutside:i.handleClickOutside,handleInputChange:i.handleInputChange,handlePaste:i.handlePaste,inline:i.opts.inline,showPanel:i.showPanel,hideAllPanels:i.hideAllPanels,i18n:i.i18n,i18nArray:i.i18nArray,uppy:i.uppy,note:i.opts.note,recoveredState:y.recoveredState,metaFields:m.metaFields,resumableUploads:w.resumableUploads||!1,individualCancellation:w.individualCancellation,isMobileDevice:w.isMobileDevice,fileCardFor:m.fileCardFor,toggleFileCard:i.toggleFileCard,toggleAddFilesPanel:i.toggleAddFilesPanel,showAddFilesPanel:m.showAddFilesPanel,saveFileCard:i.saveFileCard,openFileEditor:i.openFileEditor,canEditFile:i.canEditFile,width:i.opts.width,height:i.opts.height,showLinkToFileUploadResult:i.opts.showLinkToFileUploadResult,fileManagerSelectionType:i.opts.fileManagerSelectionType,proudlyDisplayPoweredByUppy:i.opts.proudlyDisplayPoweredByUppy,hideCancelButton:i.opts.hideCancelButton,hideRetryButton:i.opts.hideRetryButton,hidePauseResumeButton:i.opts.hidePauseResumeButton,showRemoveButtonAfterComplete:i.opts.showRemoveButtonAfterComplete,containerWidth:m.containerWidth,containerHeight:m.containerHeight,areInsidesReadyToBeVisible:m.areInsidesReadyToBeVisible,isTargetDOMEl:i.isTargetDOMEl,parentElement:i.el,allowedFileTypes:i.uppy.opts.restrictions.allowedFileTypes,maxNumberOfFiles:i.uppy.opts.restrictions.maxNumberOfFiles,requiredMetaFields:i.uppy.opts.restrictions.requiredMetaFields,showSelectedFiles:i.opts.showSelectedFiles,showNativePhotoCameraButton:i.opts.showNativePhotoCameraButton,showNativeVideoCameraButton:i.opts.showNativeVideoCameraButton,nativeCameraFacingMode:i.opts.nativeCameraFacingMode,singleFileFullScreen:i.opts.singleFileFullScreen,handleCancelRestore:i.handleCancelRestore,handleRequestThumbnail:i.handleRequestThumbnail,handleCancelThumbnail:i.handleCancelThumbnail,isDraggingOver:m.isDraggingOver,handleDragOver:i.handleDragOver,handleDragLeave:i.handleDragLeave,handleDrop:i.handleDrop})},Object.defineProperty(qe(i),Dk,{writable:!0,value:function(){var m=i.opts.plugins||[];m.forEach(function(g){var w=i.uppy.getPlugin(g);w?w.mount(qe(i),w):i.uppy.log("[Uppy] Dashboard could not find plugin '".concat(g,"', make sure to uppy.use() the plugins you are specifying"),"warning")})}}),Object.defineProperty(qe(i),Mk,{writable:!0,value:function(){i.uppy.iteratePlugins(St(qe(i),gl)[gl])}}),Object.defineProperty(qe(i),gl,{writable:!0,value:function(m){var g,w=["acquirer","editor"];if(m&&!((g=m.opts)!=null&&g.target)&&w.includes(m.type)){var P=i.getPluginState().targets.some(function(E){return m.id===E.id});P||m.mount(qe(i),m)}}}),i.install=function(){i.setPluginState({isHidden:!0,fileCardFor:null,activeOverlayType:null,showAddFilesPanel:!1,activePickerPanel:void 0,showFileEditor:!1,metaFields:i.opts.metaFields,targets:[],areInsidesReadyToBeVisible:!1,isDraggingOver:!1});var y=i.opts,m=y.inline,g=y.closeAfterFinish;if(m&&g)throw new Error("[Dashboard] `closeAfterFinish: true` cannot be used on an inline Dashboard, because an inline Dashboard cannot be closed at all. Either set `inline: false`, or disable the `closeAfterFinish` option.");var w=i.uppy.opts,P=w.allowMultipleUploads,E=w.allowMultipleUploadBatches;(P||E)&&g&&i.uppy.log("[Dashboard] When using `closeAfterFinish`, we recommended setting the `allowMultipleUploadBatches` option to `false` in the Uppy constructor. See https://uppy.io/docs/uppy/#allowMultipleUploads-true","warning");var O=i.opts.target;O&&i.mount(O,qe(i)),i.opts.disableStatusBar||i.uppy.use(Bf,{id:"".concat(i.id,":StatusBar"),target:qe(i),hideUploadButton:i.opts.hideUploadButton,hideRetryButton:i.opts.hideRetryButton,hidePauseResumeButton:i.opts.hidePauseResumeButton,hideCancelButton:i.opts.hideCancelButton,showProgressDetails:i.opts.showProgressDetails,hideAfterFinish:i.opts.hideProgressAfterFinish,locale:i.opts.locale,doneButtonHandler:i.opts.doneButtonHandler}),i.opts.disableInformer||i.uppy.use(Hf,{id:"".concat(i.id,":Informer"),target:qe(i)}),i.opts.disableThumbnailGenerator||i.uppy.use(iy,{id:"".concat(i.id,":ThumbnailGenerator"),thumbnailWidth:i.opts.thumbnailWidth,thumbnailHeight:i.opts.thumbnailHeight,thumbnailType:i.opts.thumbnailType,waitForThumbnailsBeforeUpload:i.opts.waitForThumbnailsBeforeUpload,lazy:!i.opts.waitForThumbnailsBeforeUpload}),i.darkModeMediaQuery=typeof window!="undefined"&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;var R=i.darkModeMediaQuery?i.darkModeMediaQuery.matches:!1;if(i.uppy.log("[Dashboard] Dark mode is ".concat(R?"on":"off")),i.setDarkModeCapability(R),i.opts.theme==="auto"){var x;(x=i.darkModeMediaQuery)==null||x.addListener(i.handleSystemDarkModeChange)}St(qe(i),Dk)[Dk](),St(qe(i),Mk)[Mk](),i.initEvents()},i.uninstall=function(){if(!i.opts.disableInformer){var y=i.uppy.getPlugin("".concat(i.id,":Informer"));y&&i.uppy.removePlugin(y)}if(!i.opts.disableStatusBar){var m=i.uppy.getPlugin("".concat(i.id,":StatusBar"));m&&i.uppy.removePlugin(m)}if(!i.opts.disableThumbnailGenerator){var g=i.uppy.getPlugin("".concat(i.id,":ThumbnailGenerator"));g&&i.uppy.removePlugin(g)}var w=i.opts.plugins||[];if(w.forEach(function(E){var O=i.uppy.getPlugin(E);O&&O.unmount()}),i.opts.theme==="auto"){var P;(P=i.darkModeMediaQuery)==null||P.removeListener(i.handleSystemDarkModeChange)}i.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),i.unmount(),i.removeEvents()},i.id=i.opts.id||"Dashboard",i.title="Dashboard",i.type="orchestrator",i.defaultLocale=QQ,(l=(a=i.opts).doneButtonHandler)!=null||(a.doneButtonHandler=function(){i.uppy.clearUploadedFiles(),i.requestCloseModal()}),(f=(c=i.opts).onRequestCloseModal)!=null||(c.onRequestCloseModal=function(){return i.closeModal()}),i.i18nInit(),i}return net(e)}(Ae);vO.VERSION=fet.version;var uJ={strings:{dropHereOr:"Drop here or %{browse}",browse:"browse"}};function qu(t){"@babel/helpers - typeof";return qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qu(t)}function Gk(){"use strict";Gk=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&qu(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(qu(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function sJ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function det(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){sJ(a,n,i,l,c,"next",f)}function c(f){sJ(a,n,i,l,c,"throw",f)}l(void 0)})}}function lJ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function cJ(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?lJ(Object(r),!0).forEach(function(n){vet(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lJ(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function vet(t,e,r){return e=pJ(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yet(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fJ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pJ(n.key),n)}}function met(t,e,r){return e&&fJ(t.prototype,e),r&&fJ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function pJ(t){var e=get(t,"string");return qu(e)=="symbol"?e:String(e)}function get(t,e){if(qu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(qu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bet(t,e,r){return e=yO(e),wet(t,hJ()?Reflect.construct(e,r||[],yO(t).constructor):e.apply(t,r))}function wet(t,e){if(e&&(qu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oet(t)}function Oet(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hJ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hJ=function(){return!!t})()}function yO(t){return yO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yO(t)}function _et(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$k(t,e)}function $k(t,e){return $k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$k(t,e)}var Pet={version:"3.1.0"},Eet={inputName:"files[]",width:"100%",height:"100%"},mO=function(t){_et(e,t);function e(r,n){var i;return yet(this,e),i=bet(this,e,[r,cJ(cJ({},Eet),n)]),i.isDragDropSupported=uy(),i.addFiles=function(a){var l=a.map(function(c){return{source:i.id,name:c.name,type:c.type,data:c,meta:{relativePath:c.relativePath||null}}});try{i.uppy.addFiles(l)}catch(c){i.uppy.log(c)}},i.onInputChange=function(a){var l=Kt(a.target.files);l.length>0&&(i.uppy.log("[DragDrop] Files selected through input"),i.addFiles(l)),a.target.value=null},i.handleDragOver=function(a){var l,c;a.preventDefault(),a.stopPropagation();var f=a.dataTransfer.types,d=f.some(function(g){return g==="Files"}),y=i.uppy.getState(),m=y.allowNewUpload;if(!d||!m){a.dataTransfer.dropEffect="none",clearTimeout(i.removeDragOverClassTimeout);return}a.dataTransfer.dropEffect="copy",clearTimeout(i.removeDragOverClassTimeout),i.setPluginState({isDraggingOver:!0}),(l=(c=i.opts).onDragOver)==null||l.call(c,a)},i.handleDragLeave=function(a){var l,c;a.preventDefault(),a.stopPropagation(),clearTimeout(i.removeDragOverClassTimeout),i.removeDragOverClassTimeout=setTimeout(function(){i.setPluginState({isDraggingOver:!1})},50),(l=(c=i.opts).onDragLeave)==null||l.call(c,a)},i.handleDrop=function(){var a=det(Gk().mark(function l(c){var f,d,y,m;return Gk().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return c.preventDefault(),c.stopPropagation(),clearTimeout(i.removeDragOverClassTimeout),i.setPluginState({isDraggingOver:!1}),y=function(E){i.uppy.log(E,"error")},w.next=7,hl(c.dataTransfer,{logDropError:y});case 7:m=w.sent,m.length>0&&(i.uppy.log("[DragDrop] Files dropped"),i.addFiles(m)),(f=(d=i.opts).onDrop)==null||f.call(d,c);case 10:case"end":return w.stop()}},l)}));return function(l){return a.apply(this,arguments)}}(),i.type="acquirer",i.id=i.opts.id||"DragDrop",i.title="Drag & Drop",i.defaultLocale=uJ,i.i18nInit(),i}return met(e,[{key:"renderHiddenFileInput",value:function(){var n=this,i=this.uppy.opts.restrictions;return T("input",{className:"uppy-DragDrop-input",type:"file",hidden:!0,ref:function(l){n.fileInputRef=l},name:this.opts.inputName,multiple:i.maxNumberOfFiles!==1,accept:i.allowedFileTypes,onChange:this.onInputChange})}},{key:"renderLabel",value:function(){return T("div",{className:"uppy-DragDrop-label"},this.i18nArray("dropHereOr",{browse:T("span",{className:"uppy-DragDrop-browse"},this.i18n("browse"))}))}},{key:"renderNote",value:function(){return T("span",{className:"uppy-DragDrop-note"},this.opts.note)}},{key:"render",value:function(){var n=this,i="uppy-u-reset\n      uppy-DragDrop-container\n      ".concat(this.isDragDropSupported?"uppy-DragDrop--isDragDropSupported":"","\n      ").concat(this.getPluginState().isDraggingOver?"uppy-DragDrop--isDraggingOver":"","\n    "),a={width:this.opts.width,height:this.opts.height};return T("button",{type:"button",className:i,style:a,onClick:function(){return n.fileInputRef.click()},onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},this.renderHiddenFileInput(),T("div",{className:"uppy-DragDrop-inner"},e.renderArrowSvg(),this.renderLabel(),this.renderNote()))}},{key:"install",value:function(){var n=this.opts.target;this.setPluginState({isDraggingOver:!1}),n&&this.mount(n,this)}},{key:"uninstall",value:function(){this.unmount()}}],[{key:"renderArrowSvg",value:function(){return T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-DragDrop-arrow",width:"16",height:"16",viewBox:"0 0 16 16"},T("path",{d:"M11 10V0H5v10H2l6 6 6-6h-3zm0 0",fillRule:"evenodd"}))}}]),e}(Ae);mO.VERSION=Pet.version;function Fu(t){"@babel/helpers - typeof";return Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fu(t)}function Hk(){"use strict";Hk=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Fu(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Fu(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function dJ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Tet(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){dJ(a,n,i,l,c,"next",f)}function c(f){dJ(a,n,i,l,c,"throw",f)}l(void 0)})}}function vJ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function yJ(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vJ(Object(r),!0).forEach(function(n){Aet(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vJ(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Aet(t,e,r){return e=gJ(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xet(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mJ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,gJ(n.key),n)}}function Ret(t,e,r){return e&&mJ(t.prototype,e),r&&mJ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function gJ(t){var e=Iet(t,"string");return Fu(e)=="symbol"?e:String(e)}function Iet(t,e){if(Fu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Fu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ket(t,e,r){return e=gO(e),jet(t,bJ()?Reflect.construct(e,r||[],gO(t).constructor):e.apply(t,r))}function jet(t,e){if(e&&(Fu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qet(t)}function qet(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bJ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bJ=function(){return!!t})()}function gO(t){return gO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gO(t)}function Fet(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wk(t,e)}function Wk(t,e){return Wk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wk(t,e)}var Let={version:"2.1.0"},Cet={target:null};function zk(t){var e,r;return(e=(r=t.dataTransfer)==null||(r=r.types)==null?void 0:r.some(function(n){return n==="Files"}))!=null?e:!1}var Vk=function(t){Fet(e,t);function e(r,n){var i;return xet(this,e),i=ket(this,e,[r,yJ(yJ({},Cet),n)]),i.addFiles=function(a){var l=a.map(function(c){return{source:i.id,name:c.name,type:c.type,data:c,meta:{relativePath:c.relativePath||null}}});try{i.uppy.addFiles(l)}catch(c){i.uppy.log(c)}},i.handleDrop=function(){var a=Tet(Hk().mark(function l(c){var f,d,y,m,g,w;return Hk().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(zk(c)){E.next=2;break}return E.abrupt("return");case 2:return c.preventDefault(),c.stopPropagation(),clearTimeout(i.removeDragOverClassTimeout),(f=c.currentTarget)==null||f.classList.remove("uppy-is-drag-over"),i.setPluginState({isDraggingOver:!1}),i.uppy.iteratePlugins(function(O){O.type==="acquirer"&&(O.handleRootDrop==null||O.handleRootDrop(c))}),m=!1,g=function(R){i.uppy.log(R,"error"),m||(i.uppy.info(R.message,"error"),m=!0)},E.next=12,hl(c.dataTransfer,{logDropError:g});case 12:w=E.sent,w.length>0&&(i.uppy.log("[DropTarget] Files were dropped"),i.addFiles(w)),(d=(y=i.opts).onDrop)==null||d.call(y,c);case 15:case"end":return E.stop()}},l)}));return function(l){return a.apply(this,arguments)}}(),i.handleDragOver=function(a){var l,c;zk(a)&&(a.preventDefault(),a.stopPropagation(),a.dataTransfer.dropEffect="copy",clearTimeout(i.removeDragOverClassTimeout),a.currentTarget.classList.add("uppy-is-drag-over"),i.setPluginState({isDraggingOver:!0}),(l=(c=i.opts).onDragOver)==null||l.call(c,a))},i.handleDragLeave=function(a){var l,c;if(zk(a)){a.preventDefault(),a.stopPropagation();var f=a.currentTarget;clearTimeout(i.removeDragOverClassTimeout),i.removeDragOverClassTimeout=setTimeout(function(){f.classList.remove("uppy-is-drag-over"),i.setPluginState({isDraggingOver:!1})},50),(l=(c=i.opts).onDragLeave)==null||l.call(c,a)}},i.addListeners=function(){var a=i.opts.target;if(a instanceof Element?i.nodes=[a]:typeof a=="string"&&(i.nodes=Kt(document.querySelectorAll(a))),!i.nodes||i.nodes.length===0)throw new Error('"'.concat(a,'" does not match any HTML elements'));i.nodes.forEach(function(l){l.addEventListener("dragover",i.handleDragOver,!1),l.addEventListener("dragleave",i.handleDragLeave,!1),l.addEventListener("drop",i.handleDrop,!1)})},i.removeListeners=function(){i.nodes&&i.nodes.forEach(function(a){a.removeEventListener("dragover",i.handleDragOver,!1),a.removeEventListener("dragleave",i.handleDragLeave,!1),a.removeEventListener("drop",i.handleDrop,!1)})},i.type="acquirer",i.id=i.opts.id||"DropTarget",i.title="Drop Target",i}return Ret(e,[{key:"install",value:function(){this.setPluginState({isDraggingOver:!1}),this.addListeners()}},{key:"uninstall",value:function(){this.removeListeners()}}]),e}(ht);Vk.VERSION=Let.version;var wJ={strings:{chooseFiles:"Choose files"}};function rp(t){"@babel/helpers - typeof";return rp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rp(t)}function OJ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function SJ(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?OJ(Object(r),!0).forEach(function(n){Net(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):OJ(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Net(t,e,r){return e=PJ(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Det(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _J(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,PJ(n.key),n)}}function Met(t,e,r){return e&&_J(t.prototype,e),r&&_J(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function PJ(t){var e=Uet(t,"string");return rp(e)=="symbol"?e:String(e)}function Uet(t,e){if(rp(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(rp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Bet(t,e,r){return e=wO(e),Get(t,EJ()?Reflect.construct(e,r||[],wO(t).constructor):e.apply(t,r))}function Get(t,e){if(e&&(rp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bO(t)}function EJ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(EJ=function(){return!!t})()}function wO(t){return wO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wO(t)}function bO(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $et(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Kk(t,e)}function Kk(t,e){return Kk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kk(t,e)}var zet={version:"3.1.2"},Het={pretty:!0,inputName:"files[]"},OO=function(t){$et(e,t);function e(r,n){var i;return Det(this,e),i=Bet(this,e,[r,SJ(SJ({},Het),n)]),i.id=i.opts.id||"FileInput",i.title="File Input",i.type="acquirer",i.defaultLocale=wJ,i.i18nInit(),i.render=i.render.bind(bO(i)),i.handleInputChange=i.handleInputChange.bind(bO(i)),i.handleClick=i.handleClick.bind(bO(i)),i}return Met(e,[{key:"addFiles",value:function(n){var i=this,a=n.map(function(l){return{source:i.id,name:l.name,type:l.type,data:l}});try{this.uppy.addFiles(a)}catch(l){this.uppy.log(l)}}},{key:"handleInputChange",value:function(n){this.uppy.log("[FileInput] Something selected through input...");var i=Kt(n.target.files);this.addFiles(i),n.target.value=null}},{key:"handleClick",value:function(){this.input.click()}},{key:"render",value:function(){var n=this,i={width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1},a=this.uppy.opts.restrictions,l=a.allowedFileTypes?a.allowedFileTypes.join(","):void 0;return T("div",{className:"uppy-FileInput-container"},T("input",{className:"uppy-FileInput-input",style:this.opts.pretty?i:void 0,type:"file",name:this.opts.inputName,onChange:this.handleInputChange,multiple:a.maxNumberOfFiles!==1,accept:l,ref:function(f){n.input=f}}),this.opts.pretty&&T("button",{className:"uppy-FileInput-btn",type:"button",onClick:this.handleClick},this.i18n("chooseFiles")))}},{key:"install",value:function(){var n=this.opts.target;n&&this.mount(n,this)}},{key:"uninstall",value:function(){this.unmount()}}]),e}(Ae);OO.VERSION=zet.version;var qJ=Ce(TJ(),1);function Wet(t,e){var r=t.width/e.width,n=t.height/e.height,i=Math.min(r,n),a=e.width*i,l=e.height*i,c=(t.width-a)/2,f=(t.height-l)/2;return{width:a,height:l,left:c,top:f}}var AJ=Wet;function Vet(t){return t*(Math.PI/180)}function Ket(t,e,r){var n=Math.abs(Vet(r)),i=Math.max((Math.sin(n)*t+Math.cos(n)*e)/e,(Math.sin(n)*e+Math.cos(n)*t)/t);return i}var xJ=Ket;function Yet(t,e,r){return e.left<t.left?{left:t.left,width:r.width}:e.top<t.top?{top:t.top,height:r.height}:e.left+e.width>t.left+t.width?{left:t.left+t.width-r.width,width:r.width}:e.top+e.height>t.top+t.height?{top:t.top+t.height-r.height,height:r.height}:null}var RJ=Yet;function Xet(t,e,r){return e.left<t.left?{left:t.left,width:r.left+r.width-t.left}:e.top<t.top?{top:t.top,height:r.top+r.height-t.top}:e.left+e.width>t.left+t.width?{left:r.left,width:t.left+t.width-r.left}:e.top+e.height>t.top+t.height?{top:r.top,height:t.top+t.height-r.top}:null}var IJ=Xet;function np(t){"@babel/helpers - typeof";return np=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},np(t)}function Qet(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kJ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Zet(n.key),n)}}function Jet(t,e,r){return e&&kJ(t.prototype,e),r&&kJ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zet(t){var e=ett(t,"string");return np(e)=="symbol"?e:String(e)}function ett(t,e){if(np(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(np(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ttt(t,e,r){return e=_O(e),rtt(t,jJ()?Reflect.construct(e,r||[],_O(t).constructor):e.apply(t,r))}function rtt(t,e){if(e&&(np(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qk(t)}function jJ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jJ=function(){return!!t})()}function _O(t){return _O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_O(t)}function Qk(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ntt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jk(t,e)}function Jk(t,e){return Jk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jk(t,e)}var FJ=function(t){ntt(e,t);function e(r){var n;return Qet(this,e),n=ttt(this,e,[r]),n.onRotate90Deg=function(){var i=n.state.angle90Deg,a=i-90;n.setState({angle90Deg:a,angleGranular:0}),n.cropper.scale(1),n.cropper.rotateTo(a);var l=n.cropper.getCanvasData(),c=n.cropper.getContainerData(),f=AJ(c,l);n.cropper.setCanvasData(f),n.cropper.setCropBoxData(f)},n.onRotateGranular=function(i){var a=Number(i.target.value);n.setState({angleGranular:a});var l=n.state.angle90Deg,c=l+a;n.cropper.rotateTo(c);var f=n.cropper.getImageData(),d=xJ(f.naturalWidth,f.naturalHeight,a),y=n.cropper.getImageData().scaleX<0?-d:d;n.cropper.scale(y,d)},n.state={angle90Deg:0,angleGranular:0,prevCropboxData:null},n.storePrevCropboxData=n.storePrevCropboxData.bind(Qk(n)),n.limitCropboxMovement=n.limitCropboxMovement.bind(Qk(n)),n}return Jet(e,[{key:"componentDidMount",value:function(){var n=this.props,i=n.opts,a=n.storeCropperInstance;this.cropper=new qJ.default(this.imgElement,i.cropperOptions),this.imgElement.addEventListener("cropstart",this.storePrevCropboxData),this.imgElement.addEventListener("cropend",this.limitCropboxMovement),a(this.cropper)}},{key:"componentWillUnmount",value:function(){this.cropper.destroy(),this.imgElement.removeEventListener("cropstart",this.storePrevCropboxData),this.imgElement.removeEventListener("cropend",this.limitCropboxMovement)}},{key:"storePrevCropboxData",value:function(){this.setState({prevCropboxData:this.cropper.getCropBoxData()})}},{key:"limitCropboxMovement",value:function(n){var i=this.cropper.getCanvasData(),a=this.cropper.getCropBoxData(),l=this.state.prevCropboxData;if(n.detail.action==="all"){var c=RJ(i,a,l);c&&this.cropper.setCropBoxData(c)}else{var f=IJ(i,a,l);f&&this.cropper.setCropBoxData(f)}}},{key:"renderGranularRotate",value:function(){var n=this.props.i18n,i=this.state.angleGranular;return T("label",{role:"tooltip","aria-label":"".concat(i,"\xBA"),"data-microtip-position":"top",className:"uppy-ImageCropper-rangeWrapper"},T("input",{className:"uppy-ImageCropper-range uppy-u-reset",type:"range",onInput:this.onRotateGranular,onChange:this.onRotateGranular,value:i,min:"-45",max:"45","aria-label":n("rotate")}))}},{key:"renderRevert",value:function(){var n=this,i=this.props,a=i.i18n,l=i.opts;return T("label",{role:"tooltip","data-microtip-position":"top"},T("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":a("revert"),onClick:function(){n.cropper.reset(),n.cropper.setAspectRatio(l.cropperOptions.initialAspectRatio),n.setState({angle90Deg:0,angleGranular:0})}},T("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},T("path",{d:"M0 0h24v24H0z",fill:"none"}),T("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}))))}},{key:"renderRotate",value:function(){var n=this.props.i18n;return T("label",{role:"tooltip","data-microtip-position":"top"},T("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":n("rotate"),onClick:this.onRotate90Deg},T("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},T("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"}),T("path",{d:"M14 10a2 2 0 012 2v7a2 2 0 01-2 2H6a2 2 0 01-2-2v-7a2 2 0 012-2h8zm0 1.75H6a.25.25 0 00-.243.193L5.75 12v7a.25.25 0 00.193.243L6 19.25h8a.25.25 0 00.243-.193L14.25 19v-7a.25.25 0 00-.193-.243L14 11.75zM12 .76V4c2.3 0 4.61.88 6.36 2.64a8.95 8.95 0 012.634 6.025L21 13a1 1 0 01-1.993.117L19 13h-.003a6.979 6.979 0 00-2.047-4.95 6.97 6.97 0 00-4.652-2.044L12 6v3.24L7.76 5 12 .76z"}))))}},{key:"renderFlip",value:function(){var n=this,i=this.props.i18n;return T("label",{role:"tooltip","data-microtip-position":"top"},T("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":i("flipHorizontal"),onClick:function(){return n.cropper.scaleX(-n.cropper.getData().scaleX||-1)}},T("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},T("path",{d:"M0 0h24v24H0z",fill:"none"}),T("path",{d:"M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v2zm4 8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2z"}))))}},{key:"renderZoomIn",value:function(){var n=this,i=this.props.i18n;return T("label",{role:"tooltip","data-microtip-position":"top"},T("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":i("zoomIn"),onClick:function(){return n.cropper.zoom(.1)}},T("svg",{"aria-hidden":"true",className:"uppy-c-icon",height:"24",viewBox:"0 0 24 24",width:"24"},T("path",{d:"M0 0h24v24H0V0z",fill:"none"}),T("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),T("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))))}},{key:"renderZoomOut",value:function(){var n=this,i=this.props.i18n;return T("label",{role:"tooltip","data-microtip-position":"top"},T("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":i("zoomOut"),onClick:function(){return n.cropper.zoom(-.1)}},T("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},T("path",{d:"M0 0h24v24H0V0z",fill:"none"}),T("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"}))))}},{key:"renderCropSquare",value:function(){var n=this,i=this.props.i18n;return T("label",{role:"tooltip","data-microtip-position":"top"},T("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":i("aspectRatioSquare"),onClick:function(){return n.cropper.setAspectRatio(1)}},T("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},T("path",{d:"M0 0h24v24H0z",fill:"none"}),T("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))))}},{key:"renderCropWidescreen",value:function(){var n=this,i=this.props.i18n;return T("label",{role:"tooltip","data-microtip-position":"top"},T("button",{type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":i("aspectRatioLandscape"),onClick:function(){return n.cropper.setAspectRatio(16/9)}},T("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},T("path",{d:"M 19,4.9999992 V 17.000001 H 4.9999998 V 6.9999992 H 19 m 0,-2 H 4.9999998 c -1.0999999,0 -1.9999999,0.9000001 -1.9999999,2 V 17.000001 c 0,1.1 0.9,2 1.9999999,2 H 19 c 1.1,0 2,-0.9 2,-2 V 6.9999992 c 0,-1.0999999 -0.9,-2 -2,-2 z"}),T("path",{fill:"none",d:"M0 0h24v24H0z"}))))}},{key:"renderCropWidescreenVertical",value:function(){var n=this,i=this.props.i18n;return T("label",{role:"tooltip","data-microtip-position":"top"},T("button",{type:"button","aria-label":i("aspectRatioPortrait"),className:"uppy-u-reset uppy-c-btn",onClick:function(){return n.cropper.setAspectRatio(9/16)}},T("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},T("path",{d:"M 19.000001,19 H 6.999999 V 5 h 10.000002 v 14 m 2,0 V 5 c 0,-1.0999999 -0.9,-1.9999999 -2,-1.9999999 H 6.999999 c -1.1,0 -2,0.9 -2,1.9999999 v 14 c 0,1.1 0.9,2 2,2 h 10.000002 c 1.1,0 2,-0.9 2,-2 z"}),T("path",{d:"M0 0h24v24H0z",fill:"none"}))))}},{key:"render",value:function(){var n=this,i=this.props,a=i.currentImage,l=i.opts,c=l.actions,f=URL.createObjectURL(a.data);return T("div",{className:"uppy-ImageCropper"},T("div",{className:"uppy-ImageCropper-container"},T("img",{className:"uppy-ImageCropper-image",alt:a.name,src:f,ref:function(y){n.imgElement=y}})),T("div",{className:"uppy-ImageCropper-controls"},c.revert&&this.renderRevert(),c.rotate&&this.renderRotate(),c.granularRotate&&this.renderGranularRotate(),c.flip&&this.renderFlip(),c.zoomIn&&this.renderZoomIn(),c.zoomOut&&this.renderZoomOut(),c.cropSquare&&this.renderCropSquare(),c.cropWidescreen&&this.renderCropWidescreen(),c.cropWidescreenVertical&&this.renderCropWidescreenVertical()))}}]),e}(ct);var LJ={strings:{revert:"Reset",rotate:"Rotate 90\xB0",zoomIn:"Zoom in",zoomOut:"Zoom out",flipHorizontal:"Flip horizontally",aspectRatioSquare:"Crop square",aspectRatioLandscape:"Crop landscape (16:9)",aspectRatioPortrait:"Crop portrait (9:16)"}};function ip(t){"@babel/helpers - typeof";return ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ip(t)}function CJ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function bl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?CJ(Object(r),!0).forEach(function(n){itt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):CJ(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function itt(t,e,r){return e=DJ(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ott(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function NJ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,DJ(n.key),n)}}function att(t,e,r){return e&&NJ(t.prototype,e),r&&NJ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function DJ(t){var e=utt(t,"string");return ip(e)=="symbol"?e:String(e)}function utt(t,e){if(ip(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ip(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function stt(t,e,r){return e=PO(e),ltt(t,MJ()?Reflect.construct(e,r||[],PO(t).constructor):e.apply(t,r))}function ltt(t,e){if(e&&(ip(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ctt(t)}function ctt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function MJ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(MJ=function(){return!!t})()}function PO(t){return PO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},PO(t)}function ftt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zk(t,e)}function Zk(t,e){return Zk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zk(t,e)}var ptt={version:"2.4.5"},UJ={viewMode:0,background:!1,autoCropArea:1,responsive:!0,minCropBoxWidth:70,minCropBoxHeight:70,croppedCanvasOptions:{},initialAspectRatio:0},BJ={revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!0,cropWidescreen:!0,cropWidescreenVertical:!0},htt={quality:.8,actions:BJ,cropperOptions:UJ},EO=function(t){ftt(e,t);function e(r,n){var i;return ott(this,e),i=stt(this,e,[r,bl(bl(bl({},htt),n),{},{actions:bl(bl({},BJ),n==null?void 0:n.actions),cropperOptions:bl(bl({},UJ),n==null?void 0:n.cropperOptions)})]),i.save=function(){var a=function(y){var m=i.getPluginState(),g=m.currentImage;i.uppy.setFileState(g.id,{data:new File([y],g.name,{type:y.type}),size:y.size,preview:void 0});var w=i.uppy.getFile(g.id);i.uppy.emit("thumbnail:request",w),i.setPluginState({currentImage:w}),i.uppy.emit("file-editor:complete",w)},l=i.getPluginState(),c=l.currentImage,f=i.cropper.getCroppedCanvas({});f.width%2!==0&&i.cropper.setData({width:f.width-1}),f.height%2!==0&&i.cropper.setData({height:f.height-1}),i.cropper.getCroppedCanvas(i.opts.cropperOptions.croppedCanvasOptions).toBlob(a,c.type,i.opts.quality)},i.storeCropperInstance=function(a){i.cropper=a},i.selectFile=function(a){i.uppy.emit("file-editor:start",a),i.setPluginState({currentImage:a})},i.id=i.opts.id||"ImageEditor",i.title="Image Editor",i.type="editor",i.defaultLocale=LJ,i.i18nInit(),i}return att(e,[{key:"canEditFile",value:function(n){if(!n.type||n.isRemote)return!1;var i=n.type.split("/")[1];return!!/^(jpe?g|gif|png|bmp|webp)$/.test(i)}},{key:"install",value:function(){this.setPluginState({currentImage:null});var n=this.opts.target;n&&this.mount(n,this)}},{key:"uninstall",value:function(){var n=this.getPluginState(),i=n.currentImage;if(i){var a=this.uppy.getFile(i.id);this.uppy.emit("file-editor:cancel",a)}this.unmount()}},{key:"render",value:function(){var n=this.getPluginState(),i=n.currentImage;return i===null||i.isRemote?null:T(FJ,{currentImage:i,storeCropperInstance:this.storeCropperInstance,save:this.save,opts:this.opts,i18n:this.i18n})}}]),e}(Ae);EO.VERSION=ptt.version;function op(t){"@babel/helpers - typeof";return op=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},op(t)}function GJ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $J(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?GJ(Object(r),!0).forEach(function(n){dtt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):GJ(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function dtt(t,e,r){return e=HJ(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vtt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zJ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,HJ(n.key),n)}}function ytt(t,e,r){return e&&zJ(t.prototype,e),r&&zJ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function HJ(t){var e=mtt(t,"string");return op(e)=="symbol"?e:String(e)}function mtt(t,e){if(op(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(op(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function gtt(t,e,r){return e=TO(e),btt(t,WJ()?Reflect.construct(e,r||[],TO(t).constructor):e.apply(t,r))}function btt(t,e){if(e&&(op(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VJ(t)}function WJ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(WJ=function(){return!!t})()}function TO(t){return TO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},TO(t)}function VJ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wtt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ej(t,e)}function ej(t,e){return ej=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ej(t,e)}var Ott={version:"3.1.1"},Stt={target:"body",fixed:!1,hideAfterFinish:!0},AO=function(t){wtt(e,t);function e(r,n){var i;return vtt(this,e),i=gtt(this,e,[r,$J($J({},Stt),n)]),i.id=i.opts.id||"ProgressBar",i.title="Progress Bar",i.type="progressindicator",i.render=i.render.bind(VJ(i)),i}return ytt(e,[{key:"render",value:function(n){var i=n.totalProgress||0,a=(i===0||i===100)&&this.opts.hideAfterFinish;return T("div",{className:"uppy uppy-ProgressBar",style:{position:this.opts.fixed?"fixed":"initial"},"aria-hidden":a},T("div",{className:"uppy-ProgressBar-inner",style:{width:"".concat(i,"%")}}),T("div",{className:"uppy-ProgressBar-percentage"},i))}},{key:"install",value:function(){var n=this.opts.target;n&&this.mount(n,this)}},{key:"uninstall",value:function(){this.unmount()}}]),e}(Ae);AO.VERSION=Ott.version;function _tt(t,e){return Att(t)||Ttt(t,e)||Ett(t,e)||Ptt()}function Ptt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ett(t,e){if(t){if(typeof t=="string")return KJ(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return KJ(t,e)}}function KJ(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ttt(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function Att(t){if(Array.isArray(t))return t}var xtt={__proto__:null,"audio/mp3":"mp3","audio/mp4":"mp4","audio/ogg":"ogg","audio/webm":"webm","image/gif":"gif","image/heic":"heic","image/heif":"heif","image/jpeg":"jpg","image/png":"png","image/svg+xml":"svg","video/mp4":"mp4","video/ogg":"ogv","video/quicktime":"mov","video/webm":"webm","video/x-matroska":"mkv","video/x-msvideo":"avi"};function Ro(t){var e=t.split(";",1),r=_tt(e,1);return t=r[0],xtt[t]||null}function tj(){var t;return typeof MediaRecorder=="function"&&typeof((t=MediaRecorder.prototype)==null?void 0:t.start)=="function"}function rj(t){var e=t.recording,r=t.onStartRecording,n=t.onStopRecording,i=t.i18n;return e?T("button",{className:"uppy-u-reset uppy-c-btn uppy-Audio-button",type:"button",title:i("stopAudioRecording"),"aria-label":i("stopAudioRecording"),onClick:n,"data-uppy-super-focusable":!0},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},T("rect",{x:"15",y:"15",width:"70",height:"70"}))):T("button",{className:"uppy-u-reset uppy-c-btn uppy-Audio-button",type:"button",title:i("startAudioRecording"),"aria-label":i("startAudioRecording"),onClick:r,"data-uppy-super-focusable":!0},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14px",height:"20px",viewBox:"0 0 14 20"},T("path",{d:"M7 14c2.21 0 4-1.71 4-3.818V3.818C11 1.71 9.21 0 7 0S3 1.71 3 3.818v6.364C3 12.29 4.79 14 7 14zm6.364-7h-.637a.643.643 0 0 0-.636.65V9.6c0 3.039-2.565 5.477-5.6 5.175-2.645-.264-4.582-2.692-4.582-5.407V7.65c0-.36-.285-.65-.636-.65H.636A.643.643 0 0 0 0 7.65v1.631c0 3.642 2.544 6.888 6.045 7.382v1.387H3.818a.643.643 0 0 0-.636.65v.65c0 .36.285.65.636.65h6.364c.351 0 .636-.29.636-.65v-.65c0-.36-.285-.65-.636-.65H7.955v-1.372C11.363 16.2 14 13.212 14 9.6V7.65c0-.36-.285-.65-.636-.65z",fill:"#FFF","fill-rule":"nonzero"})))}function nj(t){return"".concat(Math.floor(t/60),":").concat(String(t%60).padStart(2,"0"))}function ij(t){var e=t.recordingLengthSeconds,r=t.i18n,n=nj(e);return T("span",{"aria-label":r("recordingLength",{recording_length:n})},n)}var YJ=function(t){var e=t.currentDeviceId,r=t.audioSources,n=t.onChangeSource;return T("div",{className:"uppy-Audio-videoSource"},T("select",{className:"uppy-u-reset uppy-Audio-audioSource-select",onChange:function(a){n(a.target.value)}},r.map(function(i){return T("option",{key:i.deviceId,value:i.deviceId,selected:i.deviceId===e},i.label)})))};function dy(t){"@babel/helpers - typeof";return dy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dy(t)}function Rtt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function XJ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ktt(n.key),n)}}function Itt(t,e,r){return e&&XJ(t.prototype,e),r&&XJ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ktt(t){var e=jtt(t,"string");return dy(e)=="symbol"?e:String(e)}function jtt(t,e){if(dy(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(dy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qtt(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Ftt=0;function Ltt(t){return"__private_"+Ftt+++"_"+t}function QJ(t){return typeof t=="function"}function hy(t){return QJ(t)?t():t}var oj=Ltt("draw"),JJ=function(){function t(e,r){var n=this;Rtt(this,t),r===void 0&&(r={}),Object.defineProperty(this,oj,{writable:!0,value:function(){return n.draw()}});var i=r.canvas||{},a=r.canvasContext||{};this.analyser=null,this.bufferLength=0,this.canvas=e,this.width=hy(i.width)||this.canvas.width,this.height=hy(i.height)||this.canvas.height,this.canvas.width=this.width,this.canvas.height=this.height,this.canvasContext=this.canvas.getContext("2d"),this.canvasContext.fillStyle=hy(a.fillStyle)||"rgb(255, 255, 255)",this.canvasContext.strokeStyle=hy(a.strokeStyle)||"rgb(0, 0, 0)",this.canvasContext.lineWidth=hy(a.lineWidth)||1,this.onDrawFrame=QJ(r.onDrawFrame)?r.onDrawFrame:function(){}}return Itt(t,[{key:"addSource",value:function(r){this.streamSource=r,this.audioContext=this.streamSource.context,this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=2048,this.bufferLength=this.analyser.frequencyBinCount,this.source=this.audioContext.createBufferSource(),this.dataArray=new Uint8Array(this.bufferLength),this.analyser.getByteTimeDomainData(this.dataArray),this.streamSource.connect(this.analyser)}},{key:"draw",value:function(){var r=this.analyser,n=this.dataArray,i=this.bufferLength,a=this.canvasContext,l=this.width,c=this.height;r&&r.getByteTimeDomainData(n),a.fillRect(0,0,l,c),a.beginPath();var f=l*1/i,d=0;i||a.moveTo(0,this.height/2);for(var y=0;y<i;y++){var m=n[y]/128,g=m*(c/2);y===0?a.moveTo(d,g):a.lineTo(d,g),d+=f}a.lineTo(l,c/2),a.stroke(),this.onDrawFrame(this),requestAnimationFrame(qtt(this,oj)[oj])}}]),t}();function Ctt(t){var e=t.onSubmit,r=t.i18n;return T("button",{className:"uppy-u-reset uppy-c-btn uppy-Audio-button uppy-Audio-button--submit",type:"button",title:r("submitRecordedFile"),"aria-label":r("submitRecordedFile"),onClick:e,"data-uppy-super-focusable":!0},T("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},T("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"})))}var ZJ=Ctt;function Ntt(t){var e=t.onDiscard,r=t.i18n;return T("button",{className:"uppy-u-reset uppy-c-btn uppy-Audio-button",type:"button",title:r("discardRecordedFile"),"aria-label":r("discardRecordedFile"),onClick:e,"data-uppy-super-focusable":!0},T("svg",{width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"uppy-c-icon"},T("g",{fill:"#FFF",fillRule:"evenodd"},T("path",{d:"M.496 11.367L11.103.76l1.414 1.414L1.911 12.781z"}),T("path",{d:"M11.104 12.782L.497 2.175 1.911.76l10.607 10.606z"}))))}var eZ=Ntt;function aj(t){var e=t.stream,r=t.recordedAudio,n=t.onStop,i=t.recording,a=t.supportsRecording,l=t.audioSources,c=t.showAudioSourceDropdown,f=t.onSubmit,d=t.i18n,y=t.onStartRecording,m=t.onStopRecording,g=t.onDiscardRecordedAudio,w=t.recordingLengthSeconds,P=ll(null),E=ll();Oo(function(){return function(){E.current=null,n()}},[n]),Oo(function(){if(!r&&(E.current=new JJ(P.current,{canvas:{width:600,height:600},canvasContext:{lineWidth:2,fillStyle:"rgb(0,0,0)",strokeStyle:"green"}}),E.current.draw(),e)){var A=new AudioContext,I=A.createMediaStreamSource(e);E.current.addSource(I)}},[r,e]);var O=r!=null,R=!O&&a,x=c&&!O&&l&&l.length>1;return T("div",{className:"uppy-Audio-container"},T("div",{className:"uppy-Audio-audioContainer"},O?T("audio",{className:"uppy-Audio-player",controls:!0,src:r}):T("canvas",{ref:P,className:"uppy-Audio-canvas"})),T("div",{className:"uppy-Audio-footer"},T("div",{className:"uppy-Audio-audioSourceContainer"},x?YJ(t):null),T("div",{className:"uppy-Audio-buttonContainer"},R&&T(rj,{recording:i,onStartRecording:y,onStopRecording:m,i18n:d}),O&&T(ZJ,{onSubmit:f,i18n:d}),O&&T(eZ,{onDiscard:g,i18n:d})),T("div",{className:"uppy-Audio-recordingLength"},!O&&T(ij,{recordingLengthSeconds:w,i18n:d}))))}var tZ=function(t){var e=t.icon,r=t.hasAudio,n=t.i18n;return T("div",{className:"uppy-Audio-permissons"},T("div",{className:"uppy-Audio-permissonsIcon"},e()),T("h1",{className:"uppy-Audio-title"},n(r?"allowAudioAccessTitle":"noAudioTitle")),T("p",null,n(r?"allowAudioAccessDescription":"noAudioDescription")))};var rZ={strings:{pluginNameAudio:"Audio",startAudioRecording:"Begin audio recording",stopAudioRecording:"Stop audio recording",allowAudioAccessTitle:"Please allow access to your microphone",allowAudioAccessDescription:"In order to record audio, please allow microphone access for this site.",noAudioTitle:"Microphone Not Available",noAudioDescription:"In order to record audio, please connect a microphone or another audio input device",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",recordingLength:"Recording length %{recording_length}",submitRecordedFile:"Submit recorded file",discardRecordedFile:"Discard recorded file"}};function Lu(t){"@babel/helpers - typeof";return Lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lu(t)}function nZ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Dtt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?nZ(Object(r),!0).forEach(function(n){Mtt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nZ(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Mtt(t,e,r){return e=aZ(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hj(){"use strict";hj=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Lu(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Lu(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function iZ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Utt(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){iZ(a,n,i,l,c,"next",f)}function c(f){iZ(a,n,i,l,c,"throw",f)}l(void 0)})}}function Btt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oZ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,aZ(n.key),n)}}function Gtt(t,e,r){return e&&oZ(t.prototype,e),r&&oZ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function aZ(t){var e=$tt(t,"string");return Lu(e)=="symbol"?e:String(e)}function $tt(t,e){if(Lu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ztt(t,e,r){return e=xO(e),Htt(t,uZ()?Reflect.construct(e,r||[],xO(t).constructor):e.apply(t,r))}function Htt(t,e){if(e&&(Lu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return me(t)}function uZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(uZ=function(){return!!t})()}function xO(t){return xO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xO(t)}function me(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wtt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dj(t,e)}function dj(t,e){return dj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dj(t,e)}function vj(){return vj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},vj.apply(this,arguments)}function he(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Vtt=0;function xr(t){return"__private_"+Vtt+++"_"+t}var Ktt={version:"1.1.9"},Tr=xr("stream"),ba=xr("audioActive"),Rt=xr("recordingChunks"),xt=xr("recorder"),wa=xr("capturedMediaFile"),Ar=xr("mediaDevices"),vy=xr("supportsUserMedia"),uj=xr("hasAudioCheck"),wl=xr("start"),sj=xr("startRecording"),yy=xr("stopRecording"),lj=xr("discardRecordedAudio"),cj=xr("submit"),Oa=xr("stop"),fj=xr("getAudio"),pj=xr("changeSource"),Ol=xr("updateSources"),RO=function(t){Wtt(e,t);function e(r,n){var i;return Btt(this,e),i=ztt(this,e,[r,n]),Object.defineProperty(me(i),fj,{value:Xtt}),Object.defineProperty(me(i),uj,{value:Ytt}),Object.defineProperty(me(i),Tr,{writable:!0,value:null}),Object.defineProperty(me(i),ba,{writable:!0,value:!1}),Object.defineProperty(me(i),Rt,{writable:!0,value:null}),Object.defineProperty(me(i),xt,{writable:!0,value:null}),Object.defineProperty(me(i),wa,{writable:!0,value:null}),Object.defineProperty(me(i),Ar,{writable:!0,value:void 0}),Object.defineProperty(me(i),vy,{writable:!0,value:void 0}),Object.defineProperty(me(i),wl,{writable:!0,value:function(l){if(!he(me(i),vy)[vy])return Promise.reject(new Error("Microphone access not supported"));he(me(i),ba)[ba]=!0,he(me(i),uj)[uj]().then(function(c){return i.setPluginState({hasAudio:c}),he(me(i),Ar)[Ar].getUserMedia({audio:!0}).then(function(f){he(me(i),Tr)[Tr]=f;var d=null,y=f.getAudioTracks();l!=null&&l.deviceId?d=y.findLast(function(m){return m.getSettings().deviceId===l.deviceId}):d=y[0].getSettings().deviceId,he(me(i),Ol)[Ol](),i.setPluginState({currentDeviceId:d,audioReady:!0})}).catch(function(f){i.setPluginState({audioReady:!1,cameraError:f}),i.uppy.info(f.message,"error")})})}}),Object.defineProperty(me(i),sj,{writable:!0,value:function(){he(me(i),xt)[xt]=new MediaRecorder(he(me(i),Tr)[Tr]),he(me(i),Rt)[Rt]=[];var l=!1;he(me(i),xt)[xt].addEventListener("dataavailable",function(c){he(me(i),Rt)[Rt].push(c.data);var f=i.uppy.opts.restrictions;if(he(me(i),Rt)[Rt].length>1&&f.maxFileSize!=null&&!l){var d=he(me(i),Rt)[Rt].reduce(function(w,P){return w+P.size},0),y=(d-he(me(i),Rt)[Rt][0].size)/(he(me(i),Rt)[Rt].length-1),m=y*3,g=Math.max(0,f.maxFileSize-m);d>g&&(l=!0,i.uppy.info(i.i18n("recordingStoppedMaxSize"),"warning",4e3),he(me(i),yy)[yy]())}}),he(me(i),xt)[xt].start(500),i.recordingLengthTimer=setInterval(function(){var c=i.getPluginState().recordingLengthSeconds;i.setPluginState({recordingLengthSeconds:c+1})},1e3),i.setPluginState({isRecording:!0})}}),Object.defineProperty(me(i),yy,{writable:!0,value:function(){var l=new Promise(function(c){he(me(i),xt)[xt].addEventListener("stop",function(){c()}),he(me(i),xt)[xt].stop(),clearInterval(i.recordingLengthTimer),i.setPluginState({recordingLengthSeconds:0})});return l.then(function(){return i.setPluginState({isRecording:!1}),he(me(i),fj)[fj]()}).then(function(c){try{he(me(i),wa)[wa]=c,i.setPluginState({recordedAudio:URL.createObjectURL(c.data)})}catch(f){f.isRestriction||i.uppy.log(f)}}).then(function(){he(me(i),Rt)[Rt]=null,he(me(i),xt)[xt]=null},function(c){throw he(me(i),Rt)[Rt]=null,he(me(i),xt)[xt]=null,c})}}),Object.defineProperty(me(i),lj,{writable:!0,value:function(){i.setPluginState({recordedAudio:null}),he(me(i),wa)[wa]=null}}),Object.defineProperty(me(i),cj,{writable:!0,value:function(){try{he(me(i),wa)[wa]&&i.uppy.addFile(he(me(i),wa)[wa])}catch(l){l.isRestriction||i.uppy.log(l,"warning")}}}),Object.defineProperty(me(i),Oa,{writable:!0,value:function(){var a=Utt(hj().mark(function c(){var f;return hj().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(he(me(i),Tr)[Tr]&&(f=he(me(i),Tr)[Tr].getAudioTracks(),f.forEach(function(m){return m.stop()})),!he(me(i),xt)[xt]){y.next=4;break}return y.next=4,new Promise(function(m){he(me(i),xt)[xt].addEventListener("stop",m,{once:!0}),he(me(i),xt)[xt].stop(),clearInterval(i.recordingLengthTimer)});case 4:he(me(i),Rt)[Rt]=null,he(me(i),xt)[xt]=null,he(me(i),ba)[ba]=!1,he(me(i),Tr)[Tr]=null,i.setPluginState({recordedAudio:null,isRecording:!1,recordingLengthSeconds:0});case 9:case"end":return y.stop()}},c)}));function l(){return a.apply(this,arguments)}return l}()}),Object.defineProperty(me(i),pj,{writable:!0,value:function(l){he(me(i),Oa)[Oa](),he(me(i),wl)[wl]({deviceId:l})}}),Object.defineProperty(me(i),Ol,{writable:!0,value:function(){he(me(i),Ar)[Ar].enumerateDevices().then(function(l){i.setPluginState({audioSources:l.filter(function(c){return c.kind==="audioinput"})})})}}),he(me(i),Ar)[Ar]=navigator.mediaDevices,he(me(i),vy)[vy]=he(me(i),Ar)[Ar]!=null,i.id=i.opts.id||"Audio",i.type="acquirer",i.icon=function(){return T("svg",{className:"uppy-DashboardTab-iconAudio","aria-hidden":"true",focusable:"false",width:"32px",height:"32px",viewBox:"0 0 32 32"},T("path",{d:"M21.143 12.297c.473 0 .857.383.857.857v2.572c0 3.016-2.24 5.513-5.143 5.931v2.64h2.572a.857.857 0 110 1.714H12.57a.857.857 0 110-1.714h2.572v-2.64C12.24 21.24 10 18.742 10 15.726v-2.572a.857.857 0 111.714 0v2.572A4.29 4.29 0 0016 20.01a4.29 4.29 0 004.286-4.285v-2.572c0-.474.384-.857.857-.857zM16 6.5a3 3 0 013 3v6a3 3 0 01-6 0v-6a3 3 0 013-3z",fill:"currentcolor","fill-rule":"nonzero"}))},i.defaultLocale=rZ,i.opts=Dtt({},n),i.i18nInit(),i.title=i.i18n("pluginNameAudio"),i.setPluginState({hasAudio:!1,audioReady:!1,cameraError:null,recordingLengthSeconds:0,audioSources:[],currentDeviceId:null}),i}return Gtt(e,[{key:"render",value:function(){he(this,ba)[ba]||he(this,wl)[wl]();var n=this.getPluginState();return!n.audioReady||!n.hasAudio?T(tZ,{icon:this.icon,i18n:this.i18n,hasAudio:n.hasAudio}):T(aj,vj({},n,{audioActive:he(this,ba)[ba],onChangeSource:he(this,pj)[pj],onStartRecording:he(this,sj)[sj],onStopRecording:he(this,yy)[yy],onDiscardRecordedAudio:he(this,lj)[lj],onSubmit:he(this,cj)[cj],onStop:he(this,Oa)[Oa],i18n:this.i18n,showAudioSourceDropdown:this.opts.showAudioSourceDropdown,supportsRecording:tj(),recording:n.isRecording,stream:he(this,Tr)[Tr]}))}},{key:"install",value:function(){var n=this;this.setPluginState({audioReady:!1,recordingLengthSeconds:0});var i=this.opts.target;i&&this.mount(i,this),he(this,Ar)[Ar]&&(he(this,Ol)[Ol](),he(this,Ar)[Ar].ondevicechange=function(){if(he(n,Ol)[Ol](),he(n,Tr)[Tr]){var a=!0,l=n.getPluginState(),c=l.audioSources,f=l.currentDeviceId;c.forEach(function(d){f===d.deviceId&&(a=!1)}),a&&(he(n,Oa)[Oa](),he(n,wl)[wl]())}})}},{key:"uninstall",value:function(){he(this,Tr)[Tr]&&he(this,Oa)[Oa](),this.unmount()}}]),e}(Ae);function Ytt(){return he(this,Ar)[Ar]?he(this,Ar)[Ar].enumerateDevices().then(function(t){return t.some(function(e){return e.kind==="audioinput"})}):Promise.resolve(!1)}function Xtt(){var t=he(this,Rt)[Rt].find(function(a){var l;return((l=a.type)==null?void 0:l.length)>0}).type,e=Ro(t);if(!e)return Promise.reject(new Error('Could not retrieve recording: Unsupported media type "'.concat(t,'"')));var r="audio-".concat(Date.now(),".").concat(e),n=new Blob(he(this,Rt)[Rt],{type:t}),i={source:this.id,name:r,data:new Blob([n],{type:t}),type:t};return Promise.resolve(i)}RO.VERSION=Ktt.version;var sZ={strings:{pluginNameBox:"Box"}};function Cu(t){"@babel/helpers - typeof";return Cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cu(t)}function yj(){"use strict";yj=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Cu(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Cu(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function lZ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Qtt(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){lZ(a,n,i,l,c,"next",f)}function c(f){lZ(a,n,i,l,c,"throw",f)}l(void 0)})}}function Jtt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cZ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ert(n.key),n)}}function Ztt(t,e,r){return e&&cZ(t.prototype,e),r&&cZ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ert(t){var e=trt(t,"string");return Cu(e)=="symbol"?e:String(e)}function trt(t,e){if(Cu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Cu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rrt(t,e,r){return e=IO(e),nrt(t,fZ()?Reflect.construct(e,r||[],IO(t).constructor):e.apply(t,r))}function nrt(t,e){if(e&&(Cu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mj(t)}function fZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fZ=function(){return!!t})()}function IO(t){return IO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},IO(t)}function mj(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function irt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gj(t,e)}function gj(t,e){return gj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gj(t,e)}var ort={version:"2.3.1"},ap=function(t){irt(e,t);function e(r,n){var i;return Jtt(this,e),i=rrt(this,e,[r,n]),i.id=i.opts.id||"Box",i.type="acquirer",i.storage=i.opts.storage||or,i.files=[],i.icon=function(){return T("svg",{className:"uppy-DashboardTab-iconBox","aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},T("g",{fill:"currentcolor",fillRule:"nonzero"},T("path",{d:"m16.4 13.5c-1.6 0-3 0.9-3.7 2.2-0.7-1.3-2.1-2.2-3.7-2.2-1 0-1.8 0.3-2.5 0.8v-3.6c-0.1-0.3-0.5-0.7-1-0.7s-0.8 0.4-0.8 0.8v7c0 2.3 1.9 4.2 4.2 4.2 1.6 0 3-0.9 3.7-2.2 0.7 1.3 2.1 2.2 3.7 2.2 2.3 0 4.2-1.9 4.2-4.2 0.1-2.4-1.8-4.3-4.1-4.3m-7.5 6.8c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5m7.5 0c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5"}),T("path",{d:"m27.2 20.6l-2.3-2.8 2.3-2.8c0.3-0.4 0.2-0.9-0.2-1.2s-1-0.2-1.3 0.2l-2 2.4-2-2.4c-0.3-0.4-0.9-0.4-1.3-0.2-0.4 0.3-0.5 0.8-0.2 1.2l2.3 2.8-2.3 2.8c-0.3 0.4-0.2 0.9 0.2 1.2s1 0.2 1.3-0.2l2-2.4 2 2.4c0.3 0.4 0.9 0.4 1.3 0.2 0.4-0.3 0.4-0.8 0.2-1.2"})))},i.opts.companionAllowedHosts=ir(i.opts.companionAllowedHosts,i.opts.companionUrl),i.provider=new Ur(r,{companionUrl:i.opts.companionUrl,companionHeaders:i.opts.companionHeaders,companionKeysParams:i.opts.companionKeysParams,companionCookiesRule:i.opts.companionCookiesRule,provider:"box",pluginId:i.id,supportsRefreshToken:!1}),i.defaultLocale=sZ,i.i18nInit(),i.title=i.i18n("pluginNameBox"),i.onFirstRender=i.onFirstRender.bind(mj(i)),i.render=i.render.bind(mj(i)),i}return Ztt(e,[{key:"install",value:function(){this.view=new gr(this,{provider:this.provider,loadAllFiles:!0});var n=this.opts.target;n&&this.mount(n,this)}},{key:"uninstall",value:function(){this.view.tearDown(),this.unmount()}},{key:"onFirstRender",value:function(){var r=Qtt(yj().mark(function i(){return yj().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()]);case 2:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"render",value:function(n){return this.view.render(n)}}]),e}(Ae);ap.VERSION=ort.version;var pZ={strings:{pluginNameDropbox:"Dropbox"}};function Nu(t){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nu(t)}function bj(){"use strict";bj=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Nu(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Nu(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function hZ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function art(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){hZ(a,n,i,l,c,"next",f)}function c(f){hZ(a,n,i,l,c,"throw",f)}l(void 0)})}}function urt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dZ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,lrt(n.key),n)}}function srt(t,e,r){return e&&dZ(t.prototype,e),r&&dZ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function lrt(t){var e=crt(t,"string");return Nu(e)=="symbol"?e:String(e)}function crt(t,e){if(Nu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Nu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function frt(t,e,r){return e=kO(e),prt(t,vZ()?Reflect.construct(e,r||[],kO(t).constructor):e.apply(t,r))}function prt(t,e){if(e&&(Nu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wj(t)}function vZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(vZ=function(){return!!t})()}function kO(t){return kO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kO(t)}function wj(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hrt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oj(t,e)}function Oj(t,e){return Oj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Oj(t,e)}var drt={version:"3.3.1"},up=function(t){hrt(e,t);function e(r,n){var i;return urt(this,e),i=frt(this,e,[r,n]),i.id=i.opts.id||"Dropbox",i.type="acquirer",i.storage=i.opts.storage||or,i.files=[],i.icon=function(){return T("svg",{className:"uppy-DashboardTab-iconDropbox","aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},T("path",{d:"M10.5 7.5L5 10.955l5.5 3.454 5.5-3.454 5.5 3.454 5.5-3.454L21.5 7.5 16 10.955zM10.5 21.319L5 17.864l5.5-3.455 5.5 3.455zM16 17.864l5.5-3.455 5.5 3.455-5.5 3.455zM16 25.925l-5.5-3.455 5.5-3.454 5.5 3.454z",fill:"currentcolor",fillRule:"nonzero"}))},i.opts.companionAllowedHosts=ir(i.opts.companionAllowedHosts,i.opts.companionUrl),i.provider=new Ur(r,{companionUrl:i.opts.companionUrl,companionHeaders:i.opts.companionHeaders,companionKeysParams:i.opts.companionKeysParams,companionCookiesRule:i.opts.companionCookiesRule,provider:"dropbox",pluginId:i.id,supportsRefreshToken:!0}),i.defaultLocale=pZ,i.i18nInit(),i.title=i.opts.title||i.i18n("pluginNameDropbox"),i.onFirstRender=i.onFirstRender.bind(wj(i)),i.render=i.render.bind(wj(i)),i}return srt(e,[{key:"install",value:function(){this.view=new gr(this,{provider:this.provider,loadAllFiles:!0});var n=this.opts.target;n&&this.mount(n,this)}},{key:"uninstall",value:function(){this.view.tearDown(),this.unmount()}},{key:"onFirstRender",value:function(){var r=art(bj().mark(function i(){return bj().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()]);case 2:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"render",value:function(n){return this.view.render(n)}}]),e}(Ae);up.VERSION=drt.version;var yZ={strings:{pluginNameFacebook:"Facebook"}};function Du(t){"@babel/helpers - typeof";return Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Du(t)}function Sj(){"use strict";Sj=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Du(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Du(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function mZ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function vrt(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){mZ(a,n,i,l,c,"next",f)}function c(f){mZ(a,n,i,l,c,"throw",f)}l(void 0)})}}function yrt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gZ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,grt(n.key),n)}}function mrt(t,e,r){return e&&gZ(t.prototype,e),r&&gZ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function grt(t){var e=brt(t,"string");return Du(e)=="symbol"?e:String(e)}function brt(t,e){if(Du(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Du(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wrt(t,e,r){return e=jO(e),Ort(t,bZ()?Reflect.construct(e,r||[],jO(t).constructor):e.apply(t,r))}function Ort(t,e){if(e&&(Du(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _j(t)}function bZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bZ=function(){return!!t})()}function jO(t){return jO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jO(t)}function _j(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Srt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pj(t,e)}function Pj(t,e){return Pj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pj(t,e)}var _rt={version:"3.3.1"},sp=function(t){Srt(e,t);function e(r,n){var i;return yrt(this,e),i=wrt(this,e,[r,n]),i.id=i.opts.id||"Facebook",i.type="acquirer",i.storage=i.opts.storage||or,i.files=[],i.icon=function(){return T("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},T("g",{fill:"none",fillRule:"evenodd"},T("path",{d:"M27 16c0-6.075-4.925-11-11-11S5 9.925 5 16c0 5.49 4.023 10.041 9.281 10.866V19.18h-2.793V16h2.793v-2.423c0-2.757 1.642-4.28 4.155-4.28 1.204 0 2.462.215 2.462.215v2.707h-1.387c-1.366 0-1.792.848-1.792 1.718V16h3.05l-.487 3.18h-2.563v7.686C22.977 26.041 27 21.49 27 16",fill:"#1777F2"}),T("path",{d:"M20.282 19.18L20.77 16h-3.051v-2.063c0-.87.426-1.718 1.792-1.718h1.387V9.512s-1.258-.215-2.462-.215c-2.513 0-4.155 1.523-4.155 4.28V16h-2.793v3.18h2.793v7.686a11.082 11.082 0 003.438 0V19.18h2.563",fill:"#FFFFFE"})))},i.opts.companionAllowedHosts=ir(i.opts.companionAllowedHosts,i.opts.companionUrl),i.provider=new Ur(r,{companionUrl:i.opts.companionUrl,companionHeaders:i.opts.companionHeaders,companionKeysParams:i.opts.companionKeysParams,companionCookiesRule:i.opts.companionCookiesRule,provider:"facebook",pluginId:i.id,supportsRefreshToken:!1}),i.defaultLocale=yZ,i.i18nInit(),i.title=i.i18n("pluginNameFacebook"),i.onFirstRender=i.onFirstRender.bind(_j(i)),i.render=i.render.bind(_j(i)),i}return mrt(e,[{key:"install",value:function(){this.view=new gr(this,{provider:this.provider});var n=this.opts.target;n&&this.mount(n,this)}},{key:"uninstall",value:function(){this.view.tearDown(),this.unmount()}},{key:"onFirstRender",value:function(){var r=vrt(Sj().mark(function i(){return Sj().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()]);case 2:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"render",value:function(n){var i={};return this.getPluginState().files.length&&!this.getPluginState().folders.length&&(i.viewType="grid",i.showFilter=!1,i.showTitles=!1),this.view.render(n,i)}}]),e}(Ae);sp.VERSION=_rt.version;function lp(t){"@babel/helpers - typeof";return lp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lp(t)}function Prt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wZ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Trt(n.key),n)}}function Ert(t,e,r){return e&&wZ(t.prototype,e),r&&wZ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Trt(t){var e=Art(t,"string");return lp(e)=="symbol"?e:String(e)}function Art(t,e){if(lp(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(lp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xrt(t,e,r){return e=cp(e),Rrt(t,OZ()?Reflect.construct(e,r||[],cp(t).constructor):e.apply(t,r))}function Rrt(t,e){if(e&&(lp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Irt(t)}function Irt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function OZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(OZ=function(){return!!t})()}function qO(){return typeof Reflect!="undefined"&&Reflect.get?qO=Reflect.get.bind():qO=function(e,r,n){var i=krt(e,r);if(i){var a=Object.getOwnPropertyDescriptor(i,r);return a.get?a.get.call(arguments.length<3?e:n):a.value}},qO.apply(this,arguments)}function krt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=cp(t),t!==null););return t}function cp(t){return cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cp(t)}function jrt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ej(t,e)}function Ej(t,e){return Ej=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ej(t,e)}var SZ=function(t){jrt(e,t);function e(){return Prt(this,e),xrt(this,e,arguments)}return Ert(e,[{key:"toggleCheckbox",value:function(n,i){n.stopPropagation(),n.preventDefault(),i.custom.isSharedDrive||qO(cp(e.prototype),"toggleCheckbox",this).call(this,n,i)}}]),e}(gr);var _Z={strings:{pluginNameGoogleDrive:"Google Drive"}};function Mu(t){"@babel/helpers - typeof";return Mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mu(t)}function Tj(){"use strict";Tj=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Mu(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Mu(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function PZ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function qrt(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){PZ(a,n,i,l,c,"next",f)}function c(f){PZ(a,n,i,l,c,"throw",f)}l(void 0)})}}function Frt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function EZ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Crt(n.key),n)}}function Lrt(t,e,r){return e&&EZ(t.prototype,e),r&&EZ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Crt(t){var e=Nrt(t,"string");return Mu(e)=="symbol"?e:String(e)}function Nrt(t,e){if(Mu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Drt(t,e,r){return e=FO(e),Mrt(t,TZ()?Reflect.construct(e,r||[],FO(t).constructor):e.apply(t,r))}function Mrt(t,e){if(e&&(Mu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aj(t)}function TZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(TZ=function(){return!!t})()}function FO(t){return FO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},FO(t)}function Aj(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Urt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xj(t,e)}function xj(t,e){return xj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xj(t,e)}var Brt={version:"3.5.1"},fp=function(t){Urt(e,t);function e(r,n){var i;return Frt(this,e),i=Drt(this,e,[r,n]),i.type="acquirer",i.storage=i.opts.storage||or,i.files=[],i.id=i.opts.id||"GoogleDrive",i.icon=function(){return T("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},T("g",{fillRule:"nonzero",fill:"none"},T("path",{d:"M6.663 22.284l.97 1.62c.202.34.492.609.832.804l3.465-5.798H5c0 .378.1.755.302 1.096l1.361 2.278z",fill:"#0066DA"}),T("path",{d:"M16 12.09l-3.465-5.798c-.34.195-.63.463-.832.804l-6.4 10.718A2.15 2.15 0 005 18.91h6.93L16 12.09z",fill:"#00AC47"}),T("path",{d:"M23.535 24.708c.34-.195.63-.463.832-.804l.403-.67 1.928-3.228c.201-.34.302-.718.302-1.096h-6.93l1.474 2.802 1.991 2.996z",fill:"#EA4335"}),T("path",{d:"M16 12.09l3.465-5.798A2.274 2.274 0 0018.331 6h-4.662c-.403 0-.794.11-1.134.292L16 12.09z",fill:"#00832D"}),T("path",{d:"M20.07 18.91h-8.14l-3.465 5.798c.34.195.73.292 1.134.292h12.802c.403 0 .794-.11 1.134-.292L20.07 18.91z",fill:"#2684FC"}),T("path",{d:"M23.497 12.455l-3.2-5.359a2.252 2.252 0 00-.832-.804L16 12.09l4.07 6.82h6.917c0-.377-.1-.755-.302-1.096l-3.188-5.359z",fill:"#FFBA00"})))},i.opts.companionAllowedHosts=ir(i.opts.companionAllowedHosts,i.opts.companionUrl),i.provider=new Ur(r,{companionUrl:i.opts.companionUrl,companionHeaders:i.opts.companionHeaders,companionKeysParams:i.opts.companionKeysParams,companionCookiesRule:i.opts.companionCookiesRule,provider:"drive",pluginId:i.id,supportsRefreshToken:!0}),i.defaultLocale=_Z,i.i18nInit(),i.title=i.i18n("pluginNameGoogleDrive"),i.onFirstRender=i.onFirstRender.bind(Aj(i)),i.render=i.render.bind(Aj(i)),i}return Lrt(e,[{key:"install",value:function(){this.view=new SZ(this,{provider:this.provider,loadAllFiles:!0});var n=this.opts.target;n&&this.mount(n,this)}},{key:"uninstall",value:function(){this.view.tearDown(),this.unmount()}},{key:"onFirstRender",value:function(){var r=qrt(Tj().mark(function i(){return Tj().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder("root")]);case 2:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"render",value:function(n){return this.view.render(n)}}]),e}(Ae);fp.VERSION=Brt.version;var AZ={strings:{pluginNameInstagram:"Instagram"}};function Uu(t){"@babel/helpers - typeof";return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uu(t)}function Rj(){"use strict";Rj=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Uu(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Uu(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function xZ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Grt(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){xZ(a,n,i,l,c,"next",f)}function c(f){xZ(a,n,i,l,c,"throw",f)}l(void 0)})}}function $rt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RZ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Hrt(n.key),n)}}function zrt(t,e,r){return e&&RZ(t.prototype,e),r&&RZ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Hrt(t){var e=Wrt(t,"string");return Uu(e)=="symbol"?e:String(e)}function Wrt(t,e){if(Uu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Uu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vrt(t,e,r){return e=LO(e),Krt(t,IZ()?Reflect.construct(e,r||[],LO(t).constructor):e.apply(t,r))}function Krt(t,e){if(e&&(Uu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ij(t)}function IZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(IZ=function(){return!!t})()}function LO(t){return LO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},LO(t)}function Ij(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yrt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kj(t,e)}function kj(t,e){return kj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kj(t,e)}var Xrt={version:"3.3.1"},pp=function(t){Yrt(e,t);function e(r,n){var i;return $rt(this,e),i=Vrt(this,e,[r,n]),i.type="acquirer",i.files=[],i.storage=i.opts.storage||or,i.id=i.opts.id||"Instagram",i.icon=function(){return T("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},T("defs",null,T("path",{d:"M16.825 5l.483-.001.799.002c1.168.005 1.598.021 2.407.057 1.17.05 1.97.235 2.67.506.725.28 1.34.655 1.951 1.265.613.61.99 1.223 1.273 1.946.273.7.46 1.498.516 2.67l.025.552.008.205c.029.748.037 1.51.042 3.777l.001.846v.703l-.001.398a50.82 50.82 0 01-.058 2.588c-.05 1.17-.235 1.97-.506 2.67a5.394 5.394 0 01-1.265 1.951c-.61.613-1.222.99-1.946 1.273-.699.273-1.498.46-2.668.516-.243.012-.451.022-.656.03l-.204.007c-.719.026-1.512.034-3.676.038l-.847.001h-1.1a50.279 50.279 0 01-2.587-.059c-1.171-.05-1.971-.235-2.671-.506a5.394 5.394 0 01-1.951-1.265 5.385 5.385 0 01-1.272-1.946c-.274-.699-.46-1.498-.517-2.668a88.15 88.15 0 01-.03-.656l-.007-.205c-.026-.718-.034-1.512-.038-3.674v-2.129c.006-1.168.022-1.597.058-2.406.051-1.171.235-1.971.506-2.672a5.39 5.39 0 011.265-1.95 5.381 5.381 0 011.946-1.272c.699-.274 1.498-.462 2.669-.517l.656-.03.204-.007c.718-.026 1.511-.034 3.674-.038zm.678 1.981h-1.226l-.295.001c-2.307.005-3.016.013-3.777.043l-.21.009-.457.02c-1.072.052-1.654.232-2.042.383-.513.2-.879.44-1.263.825a3.413 3.413 0 00-.82 1.267c-.15.388-.33.97-.375 2.043a48.89 48.89 0 00-.056 2.482v.398 1.565c.006 2.937.018 3.285.073 4.444.05 1.073.231 1.654.382 2.043.2.512.44.878.825 1.263.386.383.753.621 1.267.82.388.15.97.328 2.043.374.207.01.388.017.563.024l.208.007a63.28 63.28 0 002.109.026h1.564c2.938-.006 3.286-.019 4.446-.073 1.071-.051 1.654-.232 2.04-.383.514-.2.88-.44 1.264-.825.384-.386.622-.753.82-1.266.15-.389.328-.971.375-2.044.039-.88.054-1.292.057-2.723v-1.15-.572c-.006-2.936-.019-3.284-.074-4.445-.05-1.071-.23-1.654-.382-2.04-.2-.515-.44-.88-.825-1.264a3.405 3.405 0 00-1.267-.82c-.388-.15-.97-.328-2.042-.375a48.987 48.987 0 00-2.535-.056zm-1.515 3.37a5.65 5.65 0 11.021 11.299 5.65 5.65 0 01-.02-11.3zm.004 1.982a3.667 3.667 0 10.015 7.334 3.667 3.667 0 00-.015-7.334zm5.865-3.536a1.32 1.32 0 11.005 2.64 1.32 1.32 0 01-.005-2.64z",id:"a"})),T("g",{fill:"none","fill-rule":"evenodd"},T("mask",{id:"b",fill:"#fff"},T("use",{xlinkHref:"#a"})),T("image",{mask:"url(#b)",x:"4",y:"4",width:"24",height:"24",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALKADAAQAAAABAAAALAAAAAD8buejAAALZklEQVRYCVWZC2LbNhAFCRKykvP0bD1506SxRKIzbwHJoU3jv5h9WICU3P7+6zlG2zZvr8s/rW1tN7U0rMll8aDYufdzbLfc1JHmpv3jpPy8tsO+3O2s/O6YMSjTl/qdCds4mIIG60m8vdq2Z+phm2V4vAb9+o7BbZeuoM0NyYazvTvbvlN1MGjHUAesZ/IWWOsCeF0BOwAK4ITR0WYd/QKHEPv2DEymmorZtiubjOHEMYEzXmC9GMxu+95Kz+kuwxjDBKb8iUoCAdqZoAeyALreW6ZNx9Y4Jz8cLwjTZOEoR+HU05k2RzgP2iafGgfZiEdZbEr94zpX/xkPtDtGAxF+LRcgTsp9CAZg0rnEnXmPqFshY5vLnVWxLXO/bah2sZQgBZppGSe8NbjNPN5kc/WbIYEn8U+jXCOezT4zfgS1eoVEhceVeK74Fe4N6CoYEoLWykzHsd+GMAUqdTTVvvqT1uWqB3lVCLb12/ORAe8/5Zu9mp7lqoEFUCAFDIxqz7i1bq2AY1U9jqq2QK/7DYl+1AeZlAFcEc+U/jkRUqsvCHQ/nyGvjrOl6EuZWRWVGCKUMCkntQ5o+u2AZ3OxakbTcoBZnY0xhgGCUM4Kp1xtBTnBnXM5ASRms/Fs7d9OpX8bXN45pibQY/ML1MmA5G9CINBuCpdftexr6i2c5qd9J441LNJm3zk1GVusJ7v6mPJ7HPxJR0Li/vg9O1XHTEgvsQoSgExU0NnlLF0paK+6d06aOMKE2nCKV0ofNw4WsWmLsWrv6lPLnhGpr9E137QkHOMB/jh/T8MOqOadXarR44zPBW5NvDccnBxVmdK81+7RQ5p6qnQoRDZPh9+xWj0N2XpqxX1HzMty9UlFnKya/h3gulziAsyxwkSmpTIPB8vagKLyktRdDuBEHNGZMm4oCFWgjq31WPHpaC93gGNqpOpP4Ez4spa+nMNvhTWcuPKAJ79fqIxVoUvdjEG9qSy2WhpQlz61yG/gnKEA25IrIOYK6DIsQs2EE9LR/sTKq38Nd1y/X//FXG0QDHkEqSz3EYVV2dhb00rgLPSDcqmrScs55NNOD2zVqKmYnYTFnkACp520dkW5vBxK99BVzr792/iZ+VVo92UkKU2oG5WFTb6mNiA1H2C8KC0E44qaQleR3EQvQNwLrECOVAiSwM5gpF7nvDND0lZvYuQ9JbZfqdTrqCgwMcVrRS0z9QkLu9NWmkgEHb8p2zDRylj9VWA3lXD2vObEdWpT3w5MiFqQ1W/lteG4eipastxv2w+TeTBP0ypK84HiOW9fUzLcjRDwCW2b2VxmnGSKTX6uRSwMnC9YX4l05Mh2uwI+QVWdWUOSTWd5Xjjf7/tPYk2stSh053XTGN5RJMCMSajMcS8Trn3j/E1ajthlxCkmJXVi47PSUsyyq+jyexsayQNuv5GVYJaszprNsQD3RkgYiy49kFl2JlJJxlf8Uu/lpkq7+aWqzEzjr5cTVpFaJvSVr8AKRtiTlVPFk5t1nO30W+o6jrbAk76kxFa/tX+dom4C1wDPk03gqCw8HTBSxx4FHxIA+mh2pM3rKu5SNqBAuOSZnHzsB9JwW7DV/ge8dlVsOh375PvH8YO8EALU1HuecIC6qQgXifNuSx9XAoLaoGIYDjkWFrawX1U1XrknuMFw7QBSPtg79XovmBvwqnDICrhClEO6wgKFj9vPqJWlthUvdgH1DOA8+wFMexzQc5BUS1d1IsdBSjEv4Fe1LgBO1CpFPTpV1JuPSFNt4y/trzbtaUfwBWwM3/6JsrL6MSQYwLKXAm9YJBxsM8992MblZ63Gami0+rnwOMyPykVpQsyl9eYNOfVC6kRBkwaop//LgcAKWivkHF791g0JK5kMmCgKPas2QRkUFQsuTvm6R1946Wg95k764ZRLW59yO5UVGsawwELupCfAbdCuAwvcz5Xk18rIVEdgSRBRgO77R206QdXHuA2goaGiCQ0GmUfN1JlmFayjv0IcKGkfYt4HAj0yuQBRGDjzuS/rTmAf29Gov1S+FF7QBayNcpoBOEsMt3vFcIUC7VxOnE+pxmkgqEzduzwsPykrjBszCusgdarsRIAL6CM/KqsqcAf1vj8P1TXFyN6e5G8ao48fjKfDQJYizIdIfb+Xwp6Z2fE2C7mUfUEzMKqSBp4VUV1A49Sz1M2LzVzahEfyHUAcQNltR0nADYkBvHXDZQo8H9dQvHF7qhjPtSolBJ0A/vaLwdRz5YFFGoWBy8E/4aKcjqimaUBXXnjBpzOZnMlIVXsTVEBBUa+dD0BR0xVopgAD70psY0KjMHpmHB2kApea9o23NS83mpsref5OZet4U/0CMhSEDpwnxB9lVKSfk5djllXRFPizQmKcqMpnyZ3ycPntf96Ym9ChzU8vCQnhgWZ2UuySArw+cVBG4gqNCS6YoSEEziRWVStKUpe4FfCd91V0XA/qgOJuF7FpGjjyQgsFoNDtibp8cm+cyXxbB6zh4pMUO4H06yzsv4E/A6rg/uRJRnMRmrhMDIhyOjABX9CMDFhBFxx19KujjqWeim5PwVFU6IBiewfyk7IPETcg52kjXN7nsbaoEykKf/cjUgVxpTZZVtnqFMgv4FHa8oSOisawinMLHfUBzJcK1j8BeqquedKDtgcgnA4bym4P6gBWYVM3W/pn41ku5L4RElFWtlk5SXHEThhOWDiIyVROlQNM+wyHimlgATI/PPIm4BB8qfqwHnhgL89gzs+Ww1xQb4821SZ/4IwOJiRqH/X9u7Hj08JLSZfawOQcpRzwgk1oBNzzcgLn1FBNHspMENik9OG4awIDaUjw9rKNT1KXPl9neua6sSbkgqfs/CNfBdNfDDhQuL4AKXEXeOgZID91eOiRUnEFOIA5rnTkBU0/IT05gByoq5KBJF4Hym4Pxh3UcxZ7HjdhEhKWURbhavNR9rjLBwk3ryDcrGzfvk9I69b1yhMGWQ4bqMwv/RMSplQkjjVKXzZX8wESVcuB7QG0YUCMjk/aOmWgc/vC4oMCVYfghIGP6MT1zpeUhM1rQzOnGxmFKwTCir1Xaj5vN7T7nDZvnbDGHbCKnwji2zofNsOvbold3zlUtKGosBun3PbJSrrReHEaCQVCIDEMaCCBs+P+AbybkbIhmbNecGwF+E5/L2ECuPKCWsUESQkKnyyJ93TGACk7OrAY9P8XG//fGCoM7DAEUGnj5Mw7aQfelySWOm9iPuFyvrL8rKQR6mM6qdCUDQsfNPVu4yv/HaPOT1e/yDaviMKmTkg/I/F7MUG9OlrmDrBLRVd3c8KBJlPEKoVRcIJuhoQAmZDUkPC00W5OI1dOpQ1F61kFNqr9SmFcaHdBheOaDHF6QZMOP6QyiZ804oj98wLiAMIgcWw4UDYkDAWfR+4d5s0zP2GgUZX04i+NeSgYGokvbDhIZYUWHgd9K8zZzir264NxZUFbsfM1jdqpV2naA48tx6hsvBSabE4IMtlcOGgq8PqCjoly2rw2soqy4RJWQtPZl6PUCU14ZUWENuZV2Honn3f+k6R6wrkqgTStyQ0bFY+XAaafMRFgUlVeXxXFUcpLEYfZz3FrVUzZrOOJK+4B/wnIZ8TGRvb9OB8EUM0w8uNYj/oa9iK9AMoy6gA72o02srMxpAPUD+EDnVEF7P5xw896VyAbFk8MgnpVpR3gfLnt/wECq3rYFvYLcKCpqvcI+/hVl8AumXDeApklDRRKJSS+KOaq1Rgg4igOYtiQK1hJy46TBtDjznDp3iqJff5j0/LfSZbYVdauqXccJ9W+czupp0sU9gMlqkQ52lU1E6tUwoDUukAD6YRpAwqDrAErzA8QCRvXm98KEep0xIdY1CN1ye27IP0IHvvYIW18qGz8S7VWUZuMkUOb3P8DHTl67ur/i1UAAAAASUVORK5CYII="})))},i.defaultLocale=AZ,i.i18nInit(),i.title=i.i18n("pluginNameInstagram"),i.opts.companionAllowedHosts=ir(i.opts.companionAllowedHosts,i.opts.companionUrl),i.provider=new Ur(r,{companionUrl:i.opts.companionUrl,companionHeaders:i.opts.companionHeaders,companionKeysParams:i.opts.companionKeysParams,companionCookiesRule:i.opts.companionCookiesRule,provider:"instagram",pluginId:i.id,supportsRefreshToken:!1}),i.onFirstRender=i.onFirstRender.bind(Ij(i)),i.render=i.render.bind(Ij(i)),i}return zrt(e,[{key:"install",value:function(){this.view=new gr(this,{provider:this.provider,viewType:"grid",showTitles:!1,showFilter:!1,showBreadcrumbs:!1});var n=this.opts.target;n&&this.mount(n,this)}},{key:"uninstall",value:function(){this.view.tearDown(),this.unmount()}},{key:"onFirstRender",value:function(){var r=Grt(Rj().mark(function i(){return Rj().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder("recent")]);case 2:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"render",value:function(n){return this.view.render(n)}}]),e}(Ae);pp.VERSION=Xrt.version;var kZ={strings:{pluginNameOneDrive:"OneDrive"}};function Bu(t){"@babel/helpers - typeof";return Bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bu(t)}function jj(){"use strict";jj=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Bu(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Bu(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function jZ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Qrt(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){jZ(a,n,i,l,c,"next",f)}function c(f){jZ(a,n,i,l,c,"throw",f)}l(void 0)})}}function Jrt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qZ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ent(n.key),n)}}function Zrt(t,e,r){return e&&qZ(t.prototype,e),r&&qZ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ent(t){var e=tnt(t,"string");return Bu(e)=="symbol"?e:String(e)}function tnt(t,e){if(Bu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Bu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rnt(t,e,r){return e=CO(e),nnt(t,FZ()?Reflect.construct(e,r||[],CO(t).constructor):e.apply(t,r))}function nnt(t,e){if(e&&(Bu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qj(t)}function FZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(FZ=function(){return!!t})()}function CO(t){return CO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},CO(t)}function qj(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function int(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fj(t,e)}function Fj(t,e){return Fj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fj(t,e)}var ont={version:"3.3.1"},hp=function(t){int(e,t);function e(r,n){var i;return Jrt(this,e),i=rnt(this,e,[r,n]),i.type="acquirer",i.files=[],i.storage=i.opts.storage||or,i.id=i.opts.id||"OneDrive",i.icon=function(){return T("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},T("g",{fill:"none",fillRule:"nonzero"},T("path",{d:"M13.39 12.888l4.618 2.747 2.752-1.15a4.478 4.478 0 012.073-.352 6.858 6.858 0 00-5.527-5.04 6.895 6.895 0 00-6.876 2.982l.07-.002a5.5 5.5 0 012.89.815z",fill:"#0364B8"}),T("path",{d:"M13.39 12.887v.001a5.5 5.5 0 00-2.89-.815l-.07.002a5.502 5.502 0 00-4.822 2.964 5.43 5.43 0 00.38 5.62l4.073-1.702 1.81-.757 4.032-1.685 2.105-.88-4.619-2.748z",fill:"#0078D4"}),T("path",{d:"M22.833 14.133a4.479 4.479 0 00-2.073.352l-2.752 1.15.798.475 2.616 1.556 1.141.68 3.902 2.321a4.413 4.413 0 00-.022-4.25 4.471 4.471 0 00-3.61-2.284z",fill:"#1490DF"}),T("path",{d:"M22.563 18.346l-1.141-.68-2.616-1.556-.798-.475-2.105.88L11.87 18.2l-1.81.757-4.073 1.702A5.503 5.503 0 0010.5 23h12.031a4.472 4.472 0 003.934-2.333l-3.902-2.321z",fill:"#28A8EA"})))},i.opts.companionAllowedHosts=ir(i.opts.companionAllowedHosts,i.opts.companionUrl),i.provider=new Ur(r,{companionUrl:i.opts.companionUrl,companionHeaders:i.opts.companionHeaders,companionKeysParams:i.opts.companionKeysParams,companionCookiesRule:i.opts.companionCookiesRule,provider:"onedrive",pluginId:i.id,supportsRefreshToken:!1}),i.defaultLocale=kZ,i.i18nInit(),i.title=i.i18n("pluginNameOneDrive"),i.onFirstRender=i.onFirstRender.bind(qj(i)),i.render=i.render.bind(qj(i)),i}return Zrt(e,[{key:"install",value:function(){this.view=new gr(this,{provider:this.provider,loadAllFiles:!0});var n=this.opts.target;n&&this.mount(n,this)}},{key:"uninstall",value:function(){this.view.tearDown(),this.unmount()}},{key:"onFirstRender",value:function(){var r=Qrt(jj().mark(function i(){return jj().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()]);case 2:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"render",value:function(n){return this.view.render(n)}}]),e}(Ae);hp.VERSION=ont.version;function Gu(t){"@babel/helpers - typeof";return Gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gu(t)}function Lj(){"use strict";Lj=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Gu(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Gu(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function LZ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function ant(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){LZ(a,n,i,l,c,"next",f)}function c(f){LZ(a,n,i,l,c,"throw",f)}l(void 0)})}}function unt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CZ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,lnt(n.key),n)}}function snt(t,e,r){return e&&CZ(t.prototype,e),r&&CZ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function lnt(t){var e=cnt(t,"string");return Gu(e)=="symbol"?e:String(e)}function cnt(t,e){if(Gu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Gu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function fnt(t,e,r){return e=NO(e),pnt(t,NZ()?Reflect.construct(e,r||[],NO(t).constructor):e.apply(t,r))}function pnt(t,e){if(e&&(Gu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hnt(t)}function hnt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function NZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(NZ=function(){return!!t})()}function NO(t){return NO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},NO(t)}function dnt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Cj(t,e)}function Cj(t,e){return Cj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cj(t,e)}var vnt={version:"3.3.1"},dp=function(t){dnt(e,t);function e(r,n){var i;if(unt(this,e),i=fnt(this,e,[r,n]),i.type="acquirer",i.files=[],i.storage=i.opts.storage||or,i.id=i.opts.id||"Unsplash",i.title=i.opts.title||"Unsplash",i.icon=function(){return T("svg",{className:"uppy-DashboardTab-iconUnsplash",viewBox:"0 0 32 32",height:"32",width:"32","aria-hidden":"true"},T("g",{fill:"currentcolor"},T("path",{d:"M46.575 10.883v-9h12v9zm12 5h10v18h-32v-18h10v9h12z"}),T("path",{d:"M13 12.5V8h6v4.5zm6 2.5h5v9H8v-9h5v4.5h6z"})))},!i.opts.companionUrl)throw new Error("Companion hostname is required, please consult https://uppy.io/docs/companion");return i.hostname=i.opts.companionUrl,i.opts.companionAllowedHosts=ir(i.opts.companionAllowedHosts,i.opts.companionUrl),i.provider=new f0(r,{companionUrl:i.opts.companionUrl,companionHeaders:i.opts.companionHeaders,companionCookiesRule:i.opts.companionCookiesRule,provider:"unsplash",pluginId:i.id}),i}return snt(e,[{key:"install",value:function(){this.view=new Df(this,{provider:this.provider,viewType:"unsplash",showFilter:!0});var n=this.opts.target;n&&this.mount(n,this)}},{key:"onFirstRender",value:function(){var r=ant(Lj().mark(function i(){return Lj().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:case"end":return l.stop()}},i)}));function n(){return r.apply(this,arguments)}return n}()},{key:"render",value:function(n){return this.view.render(n)}},{key:"uninstall",value:function(){this.unmount()}}]),e}(Ae);dp.VERSION=vnt.version;function vp(t){"@babel/helpers - typeof";return vp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vp(t)}function ynt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function DZ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,gnt(n.key),n)}}function mnt(t,e,r){return e&&DZ(t.prototype,e),r&&DZ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function gnt(t){var e=bnt(t,"string");return vp(e)=="symbol"?e:String(e)}function bnt(t,e){if(vp(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(vp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wnt(t,e,r){return e=DO(e),Ont(t,UZ()?Reflect.construct(e,r||[],DO(t).constructor):e.apply(t,r))}function Ont(t,e){if(e&&(vp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BZ(t)}function UZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(UZ=function(){return!!t})()}function DO(t){return DO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},DO(t)}function BZ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Snt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nj(t,e)}function Nj(t,e){return Nj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nj(t,e)}function MZ(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var _nt=0;function Pnt(t){return"__private_"+_nt+++"_"+t}var my=Pnt("handleSubmit"),Ent=function(t){Snt(e,t);function e(r){var n;return ynt(this,e),n=wnt(this,e,[r]),n.form=document.createElement("form"),Object.defineProperty(BZ(n),my,{writable:!0,value:function(a){a.preventDefault();var l=n.props.addFile,c=n.input.value.trim();l(c)}}),n.form.id=Sn(),n}return mnt(e,[{key:"componentDidMount",value:function(){this.input.value="",this.form.addEventListener("submit",MZ(this,my)[my]),document.body.appendChild(this.form)}},{key:"componentWillUnmount",value:function(){this.form.removeEventListener("submit",MZ(this,my)[my]),document.body.removeChild(this.form)}},{key:"render",value:function(){var n=this,i=this.props.i18n;return T("div",{className:"uppy-Url"},T("input",{className:"uppy-u-reset uppy-c-textInput uppy-Url-input",type:"text","aria-label":i("enterUrlToImport"),placeholder:i("enterUrlToImport"),ref:function(l){n.input=l},"data-uppy-super-focusable":!0,form:this.form.id}),T("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Url-importButton",type:"submit",form:this.form.id},i("import")))}}]),e}(ct),GZ=Ent;function MO(t,e,r){var n=Kt(t.items),i;switch(e){case"paste":{var a=n.some(function(l){return l.kind==="file"});if(a)return;i=n.filter(function(l){return l.kind==="string"&&l.type==="text/plain"});break}case"drop":{i=n.filter(function(l){return l.kind==="string"&&l.type==="text/uri-list"});break}default:throw new Error("isDropOrPaste must be either 'drop' or 'paste', but it's ".concat(e))}i.forEach(function(l){l.getAsString(function(c){return r(c)})})}var $Z={strings:{import:"Import",enterUrlToImport:"Enter URL to import a file",failedToFetch:"Companion failed to fetch this URL, please make sure it\u2019s correct",enterCorrectUrl:"Incorrect URL: Please make sure you are entering a direct link to a file"}};function $u(t){"@babel/helpers - typeof";return $u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$u(t)}function Dj(){"use strict";Dj=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&$u(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError($u(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function zZ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Tnt(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){zZ(a,n,i,l,c,"next",f)}function c(f){zZ(a,n,i,l,c,"throw",f)}l(void 0)})}}function Ant(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HZ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rnt(n.key),n)}}function xnt(t,e,r){return e&&HZ(t.prototype,e),r&&HZ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Rnt(t){var e=Int(t,"string");return $u(e)=="symbol"?e:String(e)}function Int(t,e){if($u(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if($u(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function knt(t,e,r){return e=UO(e),jnt(t,WZ()?Reflect.construct(e,r||[],UO(t).constructor):e.apply(t,r))}function jnt(t,e){if(e&&($u(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qnt(t)}function qnt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function WZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(WZ=function(){return!!t})()}function UO(t){return UO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},UO(t)}function Fnt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mj(t,e)}function Mj(t,e){return Mj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mj(t,e)}var VZ,Lnt={version:"3.6.1"};function Cnt(){return T("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},T("path",{d:"M23.637 15.312l-2.474 2.464a3.582 3.582 0 01-.577.491c-.907.657-1.897.986-2.968.986a4.925 4.925 0 01-3.959-1.971c-.248-.329-.164-.902.165-1.149.33-.247.907-.164 1.155.164 1.072 1.478 3.133 1.724 4.618.656a.642.642 0 00.33-.328l2.473-2.463c1.238-1.313 1.238-3.366-.082-4.597a3.348 3.348 0 00-4.618 0l-1.402 1.395a.799.799 0 01-1.154 0 .79.79 0 010-1.15l1.402-1.394a4.843 4.843 0 016.843 0c2.062 1.805 2.144 5.007.248 6.896zm-8.081 5.664l-1.402 1.395a3.348 3.348 0 01-4.618 0c-1.319-1.23-1.319-3.365-.082-4.596l2.475-2.464.328-.328c.743-.492 1.567-.739 2.475-.657.906.165 1.648.574 2.143 1.314.248.329.825.411 1.155.165.33-.248.412-.822.165-1.15-.825-1.068-1.98-1.724-3.216-1.888-1.238-.247-2.556.082-3.628.902l-.495.493-2.474 2.464c-1.897 1.969-1.814 5.09.083 6.977.99.904 2.226 1.396 3.463 1.396s2.473-.492 3.463-1.395l1.402-1.396a.79.79 0 000-1.15c-.33-.328-.908-.41-1.237-.082z",fill:"#FF753E","fill-rule":"nonzero"}))}function Nnt(t){var e=/^[a-z0-9]+:\/\//,r="http://";return e.test(t)?t:r+t}function Dnt(t){var e=Kt(t.dataTransfer.items),r=e.filter(function(n){return n.kind==="string"&&n.type==="text/uri-list"});return r.length>0}function Mnt(t){return(t==null?void 0:t.startsWith("http://"))||(t==null?void 0:t.startsWith("https://"))}function Unt(t){var e=new URL(t),r=e.pathname;return r.substring(r.lastIndexOf("/")+1)}var Sa=function(t){Fnt(e,t);function e(r,n){var i;if(Ant(this,e),i=knt(this,e,[r,n]),i.getMeta=function(a){return i.client.post("url/meta",{url:a}).then(function(l){if(l.error)throw i.uppy.log("[URL] Error:"),i.uppy.log(l.error),new Error("Failed to fetch the file");return l})},i.addFile=function(){var a=Tnt(Dj().mark(function l(c,f){var d,y,m;return Dj().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(d=Nnt(c),Mnt(d)){w.next=5;break}return i.uppy.log("[URL] Incorrect URL entered: ".concat(d)),i.uppy.info(i.i18n("enterCorrectUrl"),"error",4e3),w.abrupt("return",void 0);case 5:return w.prev=5,w.next=8,i.getMeta(d);case 8:return y=w.sent,m={meta:f,source:i.id,name:y.name||Unt(d),type:y.type,data:{size:y.size},isRemote:!0,body:{url:d},remote:{companionUrl:i.opts.companionUrl,url:"".concat(i.hostname,"/url/get"),body:{fileId:d,url:d},requestClientId:e.requestClientId}},i.uppy.log("[Url] Adding remote file"),w.prev=11,w.abrupt("return",i.uppy.addFile(m));case 15:return w.prev=15,w.t0=w.catch(11),w.t0.isRestriction||i.uppy.log(w.t0),w.abrupt("return",w.t0);case 19:w.next=26;break;case 21:return w.prev=21,w.t1=w.catch(5),i.uppy.log(w.t1),i.uppy.info({message:i.i18n("failedToFetch"),details:w.t1},"error",4e3),w.abrupt("return",w.t1);case 26:case"end":return w.stop()}},l,null,[[5,21],[11,15]])}));return function(l,c){return a.apply(this,arguments)}}(),i.handleRootDrop=function(a){MO(a.dataTransfer,"drop",function(l){i.uppy.log("[URL] Adding file from dropped url: ".concat(l)),i.addFile(l)})},i.handleRootPaste=function(a){MO(a.clipboardData,"paste",function(l){i.uppy.log("[URL] Adding file from pasted url: ".concat(l)),i.addFile(l)})},i.id=i.opts.id||"Url",i.title=i.opts.title||"Link",i.type="acquirer",i.icon=function(){return T(Cnt,null)},i.defaultLocale=$Z,i.i18nInit(),i.hostname=i.opts.companionUrl,!i.hostname)throw new Error("Companion hostname is required, please consult https://uppy.io/docs/companion");return i.client=new Mn(r,{pluginId:i.id,provider:"url",companionUrl:i.opts.companionUrl,companionHeaders:i.opts.companionHeaders,companionCookiesRule:i.opts.companionCookiesRule}),i.uppy.registerRequestClient(e.requestClientId,i.client),i}return xnt(e,[{key:"render",value:function(){return T(GZ,{i18n:this.i18n,addFile:this.addFile})}},{key:"install",value:function(){var n=this.opts.target;n&&this.mount(n,this)}},{key:"uninstall",value:function(){this.unmount()}}]),e}(Ae);VZ=Sa;Sa.VERSION=Lnt.version;Sa.requestClientId=VZ.name;Sa.prototype.canHandleRootDrop=Dnt;var KZ={strings:{pluginNameZoom:"Zoom"}};function zu(t){"@babel/helpers - typeof";return zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zu(t)}function Uj(){"use strict";Uj=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&zu(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(zu(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function YZ(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Bnt(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){YZ(a,n,i,l,c,"next",f)}function c(f){YZ(a,n,i,l,c,"throw",f)}l(void 0)})}}function Gnt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function XZ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,znt(n.key),n)}}function $nt(t,e,r){return e&&XZ(t.prototype,e),r&&XZ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function znt(t){var e=Hnt(t,"string");return zu(e)=="symbol"?e:String(e)}function Hnt(t,e){if(zu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(zu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Wnt(t,e,r){return e=BO(e),Vnt(t,QZ()?Reflect.construct(e,r||[],BO(t).constructor):e.apply(t,r))}function Vnt(t,e){if(e&&(zu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bj(t)}function QZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(QZ=function(){return!!t})()}function BO(t){return BO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},BO(t)}function Bj(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Knt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gj(t,e)}function Gj(t,e){return Gj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gj(t,e)}var Ynt={version:"2.3.1"},yp=function(t){Knt(e,t);function e(r,n){var i;return Gnt(this,e),i=Wnt(this,e,[r,n]),i.type="acquirer",i.files=[],i.storage=i.opts.storage||or,i.id=i.opts.id||"Zoom",i.icon=function(){return T("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},T("path",{d:"M24.5 11.125l-2.75 2.063c-.473.353-.75.91-.75 1.5v3.124c0 .59.277 1.147.75 1.5l2.75 2.063a.938.938 0 001.5-.75v-8.75a.938.938 0 00-1.5-.75zm-4.75 9.5c0 1.035-.84 1.875-1.875 1.875H9.75A3.75 3.75 0 016 18.75v-6.875C6 10.84 6.84 10 7.875 10H16a3.75 3.75 0 013.75 3.75v6.875z",fill:"#2E8CFF","fill-rule":"evenodd"}))},i.opts.companionAllowedHosts=ir(i.opts.companionAllowedHosts,i.opts.companionUrl),i.provider=new Ur(r,{companionUrl:i.opts.companionUrl,companionHeaders:i.opts.companionHeaders,companionKeysParams:i.opts.companionKeysParams,companionCookiesRule:i.opts.companionCookiesRule,provider:"zoom",pluginId:i.id,supportsRefreshToken:!1}),i.defaultLocale=KZ,i.i18nInit(),i.title=i.i18n("pluginNameZoom"),i.onFirstRender=i.onFirstRender.bind(Bj(i)),i.render=i.render.bind(Bj(i)),i}return $nt(e,[{key:"install",value:function(){this.view=new gr(this,{provider:this.provider});var n=this.opts.target;n&&this.mount(n,this)}},{key:"uninstall",value:function(){this.view.tearDown(),this.unmount()}},{key:"onFirstRender",value:function(){var r=Bnt(Uj().mark(function i(){return Uj().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()]);case 2:case"end":return l.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"render",value:function(n){return this.view.render(n)}}]),e}(Ae);yp.VERSION=Ynt.version;function mp(t){"@babel/helpers - typeof";return mp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mp(t)}function Xnt(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Qnt(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(d){throw d},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,l=!1,c;return{s:function(){r=r.call(t)},n:function(){var d=r.next();return a=d.done,d},e:function(d){l=!0,c=d},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function Qnt(t,e){if(t){if(typeof t=="string")return JZ(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return JZ(t,e)}}function JZ(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ZZ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function GO(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ZZ(Object(r),!0).forEach(function(n){Jnt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ZZ(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Jnt(t,e,r){return e=tee(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Znt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tee(n.key),n)}}function eit(t,e,r){return e&&eee(t.prototype,e),r&&eee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function tee(t){var e=tit(t,"string");return mp(e)=="symbol"?e:String(e)}function tit(t,e){if(mp(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(mp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rit(t,e,r){return e=gp(e),nit(t,ree()?Reflect.construct(e,r||[],gp(t).constructor):e.apply(t,r))}function nit(t,e){if(e&&(mp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nee(t)}function ree(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ree=function(){return!!t})()}function nee(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $O(){return typeof Reflect!="undefined"&&Reflect.get?$O=Reflect.get.bind():$O=function(e,r,n){var i=iit(e,r);if(i){var a=Object.getOwnPropertyDescriptor(i,r);return a.get?a.get.call(arguments.length<3?e:n):a.value}},$O.apply(this,arguments)}function iit(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=gp(t),t!==null););return t}function gp(t){return gp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gp(t)}function oit(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zj(t,e)}function zj(t,e){return zj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zj(t,e)}function $j(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var ait=0;function uit(t){return"__private_"+ait+++"_"+t}var sit={version:"1.2.0"},Hj={__proto__:null,Box:ap,Dropbox:up,Facebook:sp,GoogleDrive:fp,Instagram:pp,OneDrive:hp,Unsplash:dp,Url:Sa,Zoom:yp},lit={sources:Object.keys(Hj)},Sl=uit("installedPlugins"),Wj=function(t){oit(e,t);function e(r,n){var i;if(Znt(this,e),i=rit(this,e,[r,GO(GO({},lit),n)]),Object.defineProperty(nee(i),Sl,{writable:!0,value:new Set}),i.id=i.opts.id||"RemoteSources",i.type="preset",i.opts.companionUrl==null)throw new Error("Please specify companionUrl for RemoteSources to work, see https://uppy.io/docs/remote-sources#companionUrl");return i}return eit(e,[{key:"setOptions",value:function(n){this.uninstall(),$O(gp(e.prototype),"setOptions",this).call(this,n),this.install()}},{key:"install",value:function(){var n=this;this.opts.sources.forEach(function(i){var a=GO(GO({},n.opts),{},{sources:void 0}),l=Hj[i];if(l==null){var c=Object.keys(Hj),f=new Intl.ListFormat("en",{style:"long",type:"disjunction"});throw new Error('Invalid plugin: "'.concat(i,'" is not one of: ').concat(f.format(c),"."))}n.uppy.use(l,a),$j(n,Sl)[Sl].add(n.uppy.getPlugin(i))})}},{key:"uninstall",value:function(){var n=Xnt($j(this,Sl)[Sl]),i;try{for(n.s();!(i=n.n()).done;){var a=i.value;this.uppy.removePlugin(a)}}catch(l){n.e(l)}finally{n.f()}$j(this,Sl)[Sl].clear()}}]),e}(ht);Wj.VERSION=sit.version;function Vj(){return T("svg",{className:"uppy-DashboardTab-iconScreenRec","aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},T("g",{fill:"currentcolor",fillRule:"evenodd"},T("path",{d:"M24.182 9H7.818C6.81 9 6 9.742 6 10.667v10c0 .916.81 1.666 1.818 1.666h4.546V24h7.272v-1.667h4.546c1 0 1.809-.75 1.809-1.666l.009-10C26 9.742 25.182 9 24.182 9zM24 21H8V11h16v10z"}),T("circle",{cx:"16",cy:"16",r:"2"})))}function Kj(t){var e=t.recording,r=t.onStartRecording,n=t.onStopRecording,i=t.i18n;return e?T("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--video uppy-ScreenCapture-button--stop-rec",type:"button",title:i("stopCapturing"),"aria-label":i("stopCapturing"),onClick:n,"data-uppy-super-focusable":!0},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},T("rect",{x:"15",y:"15",width:"70",height:"70"}))):T("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--video",type:"button",title:i("startCapturing"),"aria-label":i("startCapturing"),onClick:r,"data-uppy-super-focusable":!0},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},T("circle",{cx:"50",cy:"50",r:"40"})))}function Yj(t){var e=t.recording,r=t.recordedVideo,n=t.onSubmit,i=t.i18n;return r&&!e?T("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--submit",type:"button",title:i("submitRecordedFile"),"aria-label":i("submitRecordedFile"),onClick:n,"data-uppy-super-focusable":!0},T("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},T("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"}))):null}function bp(t){"@babel/helpers - typeof";return bp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bp(t)}function iee(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function cit(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?iee(Object(r),!0).forEach(function(n){fit(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iee(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function fit(t,e,r){return e=aee(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pit(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,aee(n.key),n)}}function hit(t,e,r){return e&&oee(t.prototype,e),r&&oee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function aee(t){var e=dit(t,"string");return bp(e)=="symbol"?e:String(e)}function dit(t,e){if(bp(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(bp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vit(t,e,r){return e=zO(e),yit(t,uee()?Reflect.construct(e,r||[],zO(t).constructor):e.apply(t,r))}function yit(t,e){if(e&&(bp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mit(t)}function mit(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uee(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(uee=function(){return!!t})()}function zO(t){return zO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zO(t)}function git(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xj(t,e)}function Xj(t,e){return Xj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xj(t,e)}function bit(t){return(t-(t%=60))/60+(t>9?":":":0")+t}var wit=function(t){git(e,t);function e(r){var n;return pit(this,e),n=vit(this,e,[r]),n.wrapperStyle={width:"100%",height:"100%",display:"flex"},n.overlayStyle={position:"absolute",width:"100%",height:"100%",background:"black",opacity:.7},n.infoContainerStyle={marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto",zIndex:1,color:"white"},n.infotextStyle={marginLeft:"auto",marginRight:"auto",marginBottom:"1rem",fontSize:"1.5rem"},n.timeStyle={display:"block",fontWeight:"bold",marginLeft:"auto",marginRight:"auto",fontSize:"3rem",fontFamily:"Courier New"},n.state={elapsedTime:0},n}return hit(e,[{key:"startTimer",value:function(){this.timerTick(),this.timerRunning=!0}},{key:"resetTimer",value:function(){clearTimeout(this.timer),this.setState({elapsedTime:0}),this.timerRunning=!1}},{key:"timerTick",value:function(){var n=this;this.timer=setTimeout(function(){n.setState(function(i){return{elapsedTime:i.elapsedTime+1}}),n.timerTick()},1e3)}},{key:"render",value:function(){var n=cit({},this.props),i=n.recording,a=n.i18n,l=this.state.elapsedTime,c=bit(l);return i&&!this.timerRunning&&this.startTimer(),!i&&this.timerRunning&&this.resetTimer(),i?T("div",{style:this.wrapperStyle},T("div",{style:this.overlayStyle}),T("div",{style:this.infoContainerStyle},T("div",{style:this.infotextStyle},a("recording")),T("div",{style:this.timeStyle},c))):null}}]),e}(ct),see=wit;function Qj(t){var e=t.streamActive,r=t.i18n;return e?T("div",{title:r("streamActive"),"aria-label":r("streamActive"),className:"uppy-ScreenCapture-icon--stream uppy-ScreenCapture-icon--streamActive"},T("svg",{"aria-hidden":"true",focusable:"false",width:"24",height:"24",viewBox:"0 0 24 24"},T("path",{d:"M0 0h24v24H0z",opacity:".1",fill:"none"}),T("path",{d:"M0 0h24v24H0z",fill:"none"}),T("path",{d:"M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))):T("div",{title:r("streamPassive"),"aria-label":r("streamPassive"),className:"uppy-ScreenCapture-icon--stream"},T("svg",{"aria-hidden":"true",focusable:"false",width:"24",height:"24",viewBox:"0 0 24 24"},T("path",{d:"M0 0h24v24H0z",opacity:".1",fill:"none"}),T("path",{d:"M0 0h24v24H0z",fill:"none"}),T("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11z"})))}function wp(t){"@babel/helpers - typeof";return wp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wp(t)}function Oit(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_it(n.key),n)}}function Sit(t,e,r){return e&&lee(t.prototype,e),r&&lee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _it(t){var e=Pit(t,"string");return wp(e)=="symbol"?e:String(e)}function Pit(t,e){if(wp(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(wp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Eit(t,e,r){return e=HO(e),Tit(t,cee()?Reflect.construct(e,r||[],HO(t).constructor):e.apply(t,r))}function Tit(t,e){if(e&&(wp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ait(t)}function Ait(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cee(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(cee=function(){return!!t})()}function HO(t){return HO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},HO(t)}function xit(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jj(t,e)}function Jj(t,e){return Jj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jj(t,e)}function Zj(){return Zj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Zj.apply(this,arguments)}var Rit=function(t){xit(e,t);function e(){return Oit(this,e),Eit(this,e,arguments)}return Sit(e,[{key:"componentWillUnmount",value:function(){var n=this.props.onStop;n()}},{key:"render",value:function(){var n=this,i=this.props,a=i.recording,l=i.stream,c=i.recordedVideo,f={playsinline:!0};return(a||!c&&!a)&&(f.muted=!0,f.autoplay=!0,f.srcObject=l),c&&!a&&(f.muted=!1,f.controls=!0,f.src=c,this.videoElement&&(this.videoElement.srcObject=null)),T("div",{className:"uppy uppy-ScreenCapture-container"},T("div",{className:"uppy-ScreenCapture-videoContainer"},T(Qj,this.props),T("video",Zj({ref:function(y){n.videoElement=y},className:"uppy-ScreenCapture-video"},f)),T(see,this.props)),T("div",{className:"uppy-ScreenCapture-buttonContainer"},T(Kj,this.props),T(Yj,this.props)))}}]),e}(ct),fee=Rit;var pee={strings:{startCapturing:"Begin screen capturing",stopCapturing:"Stop screen capturing",submitRecordedFile:"Submit recorded file",streamActive:"Stream active",streamPassive:"Stream passive",micDisabled:"Microphone access denied by user",recording:"Recording"}};function Op(t){"@babel/helpers - typeof";return Op=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Op(t)}function hee(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function eq(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hee(Object(r),!0).forEach(function(n){Iit(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hee(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Iit(t,e,r){return e=vee(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kit(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,vee(n.key),n)}}function jit(t,e,r){return e&&dee(t.prototype,e),r&&dee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function vee(t){var e=qit(t,"string");return Op(e)=="symbol"?e:String(e)}function qit(t,e){if(Op(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Op(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fit(t,e,r){return e=WO(e),Lit(t,yee()?Reflect.construct(e,r||[],WO(t).constructor):e.apply(t,r))}function Lit(t,e){if(e&&(Op(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Io(t)}function yee(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(yee=function(){return!!t})()}function WO(t){return WO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},WO(t)}function Io(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Cit(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tq(t,e)}function tq(t,e){return tq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tq(t,e)}function rq(){return rq=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},rq.apply(this,arguments)}var Nit={version:"3.2.0"};function Dit(){var t;return window.MediaRecorder&&((t=navigator.mediaDevices)==null?void 0:t.getDisplayMedia)}function Mit(){return window.MediaRecorder&&navigator.mediaDevices}var Uit={displayMediaConstraints:{video:{width:1280,height:720,frameRate:{ideal:3,max:5},cursor:"motion",displaySurface:"monitor"}},userMediaConstraints:{audio:!0},preferredVideoMimeType:"video/webm"},VO=function(t){Cit(e,t);function e(r,n){var i;return kit(this,e),i=Fit(this,e,[r,eq(eq({},Uit),n)]),i.mediaDevices=Mit(),i.protocol=location.protocol==="https:"?"https":"http",i.id=i.opts.id||"ScreenCapture",i.title=i.opts.title||"Screencast",i.type="acquirer",i.icon=Vj,i.defaultLocale=pee,i.i18nInit(),i.install=i.install.bind(Io(i)),i.setPluginState=i.setPluginState.bind(Io(i)),i.render=i.render.bind(Io(i)),i.start=i.start.bind(Io(i)),i.stop=i.stop.bind(Io(i)),i.startRecording=i.startRecording.bind(Io(i)),i.stopRecording=i.stopRecording.bind(Io(i)),i.submit=i.submit.bind(Io(i)),i.streamInterrupted=i.streamInactivated.bind(Io(i)),i.captureActive=!1,i.capturedMediaFile=null,i}return jit(e,[{key:"install",value:function(){if(!Dit())return this.uppy.log("Screen recorder access is not supported","warning"),null;this.setPluginState({streamActive:!1,audioStreamActive:!1});var n=this.opts.target;n&&this.mount(n,this)}},{key:"uninstall",value:function(){this.videoStream&&this.stop(),this.unmount()}},{key:"start",value:function(){var n=this;return this.mediaDevices?(this.captureActive=!0,this.selectAudioStreamSource(),this.selectVideoStreamSource().then(function(i){i===!1&&n.parent&&n.parent.hideAllPanels&&(n.parent.hideAllPanels(),n.captureActive=!1)})):Promise.reject(new Error("Screen recorder access not supported"))}},{key:"selectVideoStreamSource",value:function(){var n=this;return this.videoStream?new Promise(function(i){return i(n.videoStream)}):this.mediaDevices.getDisplayMedia(this.opts.displayMediaConstraints).then(function(i){return n.videoStream=i,n.videoStream.addEventListener("inactive",function(){n.streamInactivated()}),n.setPluginState({streamActive:!0}),i}).catch(function(i){return n.setPluginState({screenRecError:i}),n.userDenied=!0,setTimeout(function(){n.userDenied=!1},1e3),!1})}},{key:"selectAudioStreamSource",value:function(){var n=this;return this.audioStream?new Promise(function(i){return i(n.audioStream)}):this.mediaDevices.getUserMedia(this.opts.userMediaConstraints).then(function(i){return n.audioStream=i,n.setPluginState({audioStreamActive:!0}),i}).catch(function(i){return i.name==="NotAllowedError"&&(n.uppy.info(n.i18n("micDisabled"),"error",5e3),n.uppy.log(n.i18n("micDisabled"),"warning")),!1})}},{key:"startRecording",value:function(){var n=this,i={};this.capturedMediaFile=null,this.recordingChunks=[];var a=this.opts.preferredVideoMimeType;this.selectVideoStreamSource().then(function(l){if(l===!1)throw new Error("No video stream available");a&&MediaRecorder.isTypeSupported(a)&&Ro(a)&&(i.mimeType=a);var c=[l.getVideoTracks()[0]];n.audioStream&&c.push(n.audioStream.getAudioTracks()[0]),n.outputStream=new MediaStream(c),n.recorder=new MediaRecorder(n.outputStream,i),n.recorder.addEventListener("dataavailable",function(f){n.recordingChunks.push(f.data)}),n.recorder.start(),n.setPluginState({recording:!0})}).catch(function(l){n.uppy.log(l,"error")})}},{key:"streamInactivated",value:function(){var n=eq({},this.getPluginState()),i=n.recordedVideo,a=n.recording;!i&&!a?this.parent&&this.parent.hideAllPanels&&this.parent.hideAllPanels():a&&(this.uppy.log("Capture stream inactive \u2014 stop recording"),this.stopRecording()),this.videoStream=null,this.audioStream=null,this.setPluginState({streamActive:!1,audioStreamActive:!1})}},{key:"stopRecording",value:function(){var n=this,i=new Promise(function(a){n.recorder.addEventListener("stop",function(){a()}),n.recorder.stop()});return i.then(function(){return n.setPluginState({recording:!1}),n.getVideo()}).then(function(a){n.capturedMediaFile=a,n.setPluginState({recordedVideo:URL.createObjectURL(a.data)})}).then(function(){n.recordingChunks=null,n.recorder=null},function(a){throw n.recordingChunks=null,n.recorder=null,a})}},{key:"submit",value:function(){try{this.capturedMediaFile&&this.uppy.addFile(this.capturedMediaFile)}catch(n){n.isRestriction||this.uppy.log(n,"warning")}}},{key:"stop",value:function(){this.videoStream&&(this.videoStream.getVideoTracks().forEach(function(n){n.stop()}),this.videoStream.getAudioTracks().forEach(function(n){n.stop()}),this.videoStream=null),this.audioStream&&(this.audioStream.getAudioTracks().forEach(function(n){n.stop()}),this.audioStream.getVideoTracks().forEach(function(n){n.stop()}),this.audioStream=null),this.outputStream&&(this.outputStream.getAudioTracks().forEach(function(n){n.stop()}),this.outputStream.getVideoTracks().forEach(function(n){n.stop()}),this.outputStream=null),this.setPluginState({recordedVideo:null}),this.captureActive=!1}},{key:"getVideo",value:function(){var n=this.recordingChunks[0].type,i=Ro(n);if(!i)return Promise.reject(new Error('Could not retrieve recording: Unsupported media type "'.concat(n,'"')));var a="screencap-".concat(Date.now(),".").concat(i),l=new Blob(this.recordingChunks,{type:n}),c={source:this.id,name:a,data:new Blob([l],{type:n}),type:n};return Promise.resolve(c)}},{key:"render",value:function(){var n=this.getPluginState();return!n.streamActive&&!this.captureActive&&!this.userDenied&&this.start(),T(fee,rq({},n,{onStartRecording:this.startRecording,onStopRecording:this.stopRecording,onStop:this.stop,onSubmit:this.submit,i18n:this.i18n,stream:this.videoStream}))}}]),e}(Ae);VO.VERSION=Nit.version;var Iee=Ce(mee(),1);function iq(t,e,r){return new Promise(function(n){t.toBlob(n,e,r)})}function oq(){return typeof MediaRecorder=="function"&&!!MediaRecorder.prototype&&typeof MediaRecorder.prototype.start=="function"}function gy(){return T("svg",{"aria-hidden":"true",focusable:"false",fill:"#0097DC",width:"66",height:"55",viewBox:"0 0 66 55"},T("path",{d:"M57.3 8.433c4.59 0 8.1 3.51 8.1 8.1v29.7c0 4.59-3.51 8.1-8.1 8.1H8.7c-4.59 0-8.1-3.51-8.1-8.1v-29.7c0-4.59 3.51-8.1 8.1-8.1h9.45l4.59-7.02c.54-.54 1.35-1.08 2.16-1.08h16.2c.81 0 1.62.54 2.16 1.08l4.59 7.02h9.45zM33 14.64c-8.62 0-15.393 6.773-15.393 15.393 0 8.62 6.773 15.393 15.393 15.393 8.62 0 15.393-6.773 15.393-15.393 0-8.62-6.773-15.393-15.393-15.393zM33 40c-5.648 0-9.966-4.319-9.966-9.967 0-5.647 4.318-9.966 9.966-9.966s9.966 4.319 9.966 9.966C42.966 35.681 38.648 40 33 40z",fillRule:"evenodd"}))}function aq(t){var e=t.onSnapshot,r=t.i18n;return T("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--picture",type:"button",title:r("takePicture"),"aria-label":r("takePicture"),onClick:e,"data-uppy-super-focusable":!0},gy())}function uq(t){var e=t.recording,r=t.onStartRecording,n=t.onStopRecording,i=t.i18n;return e?T("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:i("stopRecording"),"aria-label":i("stopRecording"),onClick:n,"data-uppy-super-focusable":!0},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},T("rect",{x:"15",y:"15",width:"70",height:"70"}))):T("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:i("startRecording"),"aria-label":i("startRecording"),onClick:r,"data-uppy-super-focusable":!0},T("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},T("circle",{cx:"50",cy:"50",r:"40"})))}function sq(t){return"".concat(Math.floor(t/60),":").concat(String(t%60).padStart(2,"0"))}function lq(t){var e=t.recordingLengthSeconds,r=t.i18n,n=sq(e);return T("span",{"aria-label":r("recordingLength",{recording_length:n})},n)}function cq(t){var e=t.currentDeviceId,r=t.videoSources,n=t.onChangeVideoSource;return T("div",{className:"uppy-Webcam-videoSource"},T("select",{className:"uppy-u-reset uppy-Webcam-videoSource-select",onChange:function(a){n(a.target.value)}},r.map(function(i){return T("option",{key:i.deviceId,value:i.deviceId,selected:i.deviceId===e},i.label)})))}function zit(t){var e=t.onSubmit,r=t.i18n;return T("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--submit",type:"button",title:r("submitRecordedFile"),"aria-label":r("submitRecordedFile"),onClick:e,"data-uppy-super-focusable":!0},T("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},T("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"})))}var gee=zit;function Hit(t){var e=t.onDiscard,r=t.i18n;return T("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--discard",type:"button",title:r("discardRecordedFile"),"aria-label":r("discardRecordedFile"),onClick:e,"data-uppy-super-focusable":!0},T("svg",{width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},T("g",{fill:"#FFF",fillRule:"evenodd"},T("path",{d:"M.496 11.367L11.103.76l1.414 1.414L1.911 12.781z"}),T("path",{d:"M11.104 12.782L.497 2.175 1.911.76l10.607 10.606z"}))))}var bee=Hit;function Sp(t){"@babel/helpers - typeof";return Sp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sp(t)}function Wit(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Kit(n.key),n)}}function Vit(t,e,r){return e&&wee(t.prototype,e),r&&wee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Kit(t){var e=Yit(t,"string");return Sp(e)=="symbol"?e:String(e)}function Yit(t,e){if(Sp(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Sp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xit(t,e,r){return e=XO(e),Qit(t,Oee()?Reflect.construct(e,r||[],XO(t).constructor):e.apply(t,r))}function Qit(t,e){if(e&&(Sp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jit(t)}function Jit(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Oee(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Oee=function(){return!!t})()}function XO(t){return XO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},XO(t)}function Zit(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fq(t,e)}function fq(t,e){return fq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fq(t,e)}function pq(){return pq=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pq.apply(this,arguments)}function YO(t,e){return t.includes(e)}var eot=function(t){Zit(e,t);function e(){return Wit(this,e),Xit(this,e,arguments)}return Vit(e,[{key:"componentDidMount",value:function(){var n=this.props.onFocus;n()}},{key:"componentWillUnmount",value:function(){var n=this.props.onStop;n()}},{key:"render",value:function(){var n=this,i=this.props,a=i.src,l=i.recordedVideo,c=i.recording,f=i.modes,d=i.supportsRecording,y=i.videoSources,m=i.showVideoSourceDropdown,g=i.showRecordingLength,w=i.onSubmit,P=i.i18n,E=i.mirror,O=i.onSnapshot,R=i.onStartRecording,x=i.onStopRecording,A=i.onDiscardRecordedVideo,I=i.recordingLengthSeconds,N=!!l,j=!N&&d&&(YO(f,"video-only")||YO(f,"audio-only")||YO(f,"video-audio")),k=!N&&YO(f,"picture"),z=d&&g&&!N,B=m&&y&&y.length>1,Y={playsInline:!0};return l?(Y.muted=!1,Y.controls=!0,Y.src=l,this.videoElement&&(this.videoElement.srcObject=null)):(Y.muted=!0,Y.autoPlay=!0,Y.srcObject=a),T("div",{className:"uppy uppy-Webcam-container"},T("div",{className:"uppy-Webcam-videoContainer"},T("video",pq({ref:function(X){return n.videoElement=X},className:"uppy-Webcam-video  ".concat(E?"uppy-Webcam-video--mirrored":"")},Y))),T("div",{className:"uppy-Webcam-footer"},T("div",{className:"uppy-Webcam-videoSourceContainer"},B?cq(this.props):null),T("div",{className:"uppy-Webcam-buttonContainer"},k&&T(aq,{onSnapshot:O,i18n:P}),j&&T(uq,{recording:c,onStartRecording:R,onStopRecording:x,i18n:P}),N&&T(gee,{onSubmit:w,i18n:P}),N&&T(bee,{onDiscard:A,i18n:P})),T("div",{className:"uppy-Webcam-recordingLength"},z&&T(lq,{recordingLengthSeconds:I,i18n:P}))))}}]),e}(ct),See=eot;function hq(t){var e=t.icon,r=t.i18n,n=t.hasCamera;return T("div",{className:"uppy-Webcam-permissons"},T("div",{className:"uppy-Webcam-permissonsIcon"},e()),T("h1",{className:"uppy-Webcam-title"},r(n?"allowAccessTitle":"noCameraTitle")),T("p",null,r(n?"allowAccessDescription":"noCameraDescription")))}var _ee={strings:{pluginNameCamera:"Camera",noCameraTitle:"Camera Not Available",noCameraDescription:"In order to take pictures or record video, please connect a camera device",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",submitRecordedFile:"Submit recorded file",discardRecordedFile:"Discard recorded file",smile:"Smile!",takePicture:"Take a picture",startRecording:"Begin video recording",stopRecording:"Stop video recording",recordingLength:"Recording length %{recording_length}",allowAccessTitle:"Please allow access to your camera",allowAccessDescription:"In order to take pictures or record video with your camera, please allow camera access for this site."}};function _a(t){"@babel/helpers - typeof";return _a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_a(t)}function vq(){"use strict";vq=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&_a(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(_a(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function Pee(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function tot(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){Pee(a,n,i,l,c,"next",f)}function c(f){Pee(a,n,i,l,c,"throw",f)}l(void 0)})}}function Eee(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Hu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Eee(Object(r),!0).forEach(function(n){rot(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Eee(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function rot(t,e,r){return e=xee(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function not(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xee(n.key),n)}}function iot(t,e,r){return e&&Tee(t.prototype,e),r&&Tee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function xee(t){var e=oot(t,"string");return _a(e)=="symbol"?e:String(e)}function oot(t,e){if(_a(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(_a(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function aot(t,e,r){return e=_p(e),uot(t,Ree()?Reflect.construct(e,r||[],_p(t).constructor):e.apply(t,r))}function uot(t,e){if(e&&(_a(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hr(t)}function Ree(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ree=function(){return!!t})()}function Hr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function QO(){return typeof Reflect!="undefined"&&Reflect.get?QO=Reflect.get.bind():QO=function(e,r,n){var i=sot(e,r);if(i){var a=Object.getOwnPropertyDescriptor(i,r);return a.get?a.get.call(arguments.length<3?e:n):a.value}},QO.apply(this,arguments)}function sot(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=_p(t),t!==null););return t}function _p(t){return _p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_p(t)}function lot(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yq(t,e)}function yq(t,e){return yq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yq(t,e)}function mq(){return mq=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},mq.apply(this,arguments)}function by(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var cot=0;function fot(t){return"__private_"+cot+++"_"+t}var pot={version:"3.4.1"};function Aee(t){return t[0]==="."?Dd[t.slice(1)]:t}function hot(t){return/^video\/[^*]+$/.test(t)}function dot(t){return/^image\/[^*]+$/.test(t)}function vot(){return navigator.mediaDevices}function dq(t,e){return t.includes(e)}var yot={onBeforeSnapshot:function(){return Promise.resolve()},countdown:!1,modes:["video-audio","video-only","audio-only","picture"],mirror:!0,showVideoSourceDropdown:!1,facingMode:"user",preferredImageMimeType:null,preferredVideoMimeType:null,showRecordingLength:!1,mobileNativeCamera:(0,Iee.default)({tablet:!0})},Wi=fot("enableMirror"),JO=function(t){lot(e,t);function e(r,n){var i;return not(this,e),i=aot(this,e,[r,Hu(Hu({},yot),n)]),Object.defineProperty(Hr(i),Wi,{writable:!0,value:void 0}),i.mediaDevices=vot(),i.supportsUserMedia=!!i.mediaDevices,i.protocol=location.protocol.match(/https/i)?"https":"http",i.id=i.opts.id||"Webcam",i.type="acquirer",i.capturedMediaFile=null,i.icon=function(){return T("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},T("path",{d:"M23.5 9.5c1.417 0 2.5 1.083 2.5 2.5v9.167c0 1.416-1.083 2.5-2.5 2.5h-15c-1.417 0-2.5-1.084-2.5-2.5V12c0-1.417 1.083-2.5 2.5-2.5h2.917l1.416-2.167C13 7.167 13.25 7 13.5 7h5c.25 0 .5.167.667.333L20.583 9.5H23.5zM16 11.417a4.706 4.706 0 00-4.75 4.75 4.704 4.704 0 004.75 4.75 4.703 4.703 0 004.75-4.75c0-2.663-2.09-4.75-4.75-4.75zm0 7.825c-1.744 0-3.076-1.332-3.076-3.074 0-1.745 1.333-3.077 3.076-3.077 1.744 0 3.074 1.333 3.074 3.076s-1.33 3.075-3.074 3.075z",fill:"#02B383",fillRule:"nonzero"}))},i.defaultLocale=_ee,i.i18nInit(),i.title=i.i18n("pluginNameCamera"),by(Hr(i),Wi)[Wi]=i.opts.mirror,i.install=i.install.bind(Hr(i)),i.setPluginState=i.setPluginState.bind(Hr(i)),i.render=i.render.bind(Hr(i)),i.start=i.start.bind(Hr(i)),i.stop=i.stop.bind(Hr(i)),i.takeSnapshot=i.takeSnapshot.bind(Hr(i)),i.startRecording=i.startRecording.bind(Hr(i)),i.stopRecording=i.stopRecording.bind(Hr(i)),i.discardRecordedVideo=i.discardRecordedVideo.bind(Hr(i)),i.submit=i.submit.bind(Hr(i)),i.oneTwoThreeSmile=i.oneTwoThreeSmile.bind(Hr(i)),i.focus=i.focus.bind(Hr(i)),i.changeVideoSource=i.changeVideoSource.bind(Hr(i)),i.webcamActive=!1,i.opts.countdown&&(i.opts.onBeforeSnapshot=i.oneTwoThreeSmile),i.setPluginState({hasCamera:!1,cameraReady:!1,cameraError:null,recordingLengthSeconds:0,videoSources:[],currentDeviceId:null}),i}return iot(e,[{key:"setOptions",value:function(n){QO(_p(e.prototype),"setOptions",this).call(this,Hu(Hu({},n),{},{videoConstraints:Hu(Hu({},this.opts.videoConstraints),n==null?void 0:n.videoConstraints)}))}},{key:"hasCameraCheck",value:function(){return this.mediaDevices?this.mediaDevices.enumerateDevices().then(function(n){return n.some(function(i){return i.kind==="videoinput"})}):Promise.resolve(!1)}},{key:"isAudioOnly",value:function(){return this.opts.modes.length===1&&this.opts.modes[0]==="audio-only"}},{key:"getConstraints",value:function(n){n===void 0&&(n=null);var i=this.opts.modes.indexOf("video-audio")!==-1||this.opts.modes.indexOf("audio-only")!==-1,a=!this.isAudioOnly()&&(this.opts.modes.indexOf("video-audio")!==-1||this.opts.modes.indexOf("video-only")!==-1||this.opts.modes.indexOf("picture")!==-1),l=Hu(Hu({},this.opts.videoConstraints||{facingMode:this.opts.facingMode}),n?{deviceId:n,facingMode:null}:{});return{audio:i,video:a?l:!1}}},{key:"start",value:function(n){var i=this,a;if(n===void 0&&(n=null),!this.supportsUserMedia)return Promise.reject(new Error("Webcam access not supported"));this.webcamActive=!0,this.opts.mirror&&(by(this,Wi)[Wi]=!0);var l=this.getConstraints((a=n)==null?void 0:a.deviceId);this.hasCameraCheck().then(function(c){return i.setPluginState({hasCamera:c}),i.mediaDevices.getUserMedia(l).then(function(f){i.stream=f;var d=null,y=i.isAudioOnly()?f.getAudioTracks():f.getVideoTracks();!n||!n.deviceId?d=y[0].getSettings().deviceId:y.forEach(function(m){m.getSettings().deviceId===n.deviceId&&(d=m.getSettings().deviceId)}),i.updateVideoSources(),i.setPluginState({currentDeviceId:d,cameraReady:!0})}).catch(function(f){i.setPluginState({cameraReady:!1,cameraError:f}),i.uppy.info(f.message,"error")})})}},{key:"getMediaRecorderOptions",value:function(){var n={};if(MediaRecorder.isTypeSupported){var i=this.uppy.opts.restrictions,a=[];this.opts.preferredVideoMimeType?a=[this.opts.preferredVideoMimeType]:i.allowedFileTypes&&(a=i.allowedFileTypes.map(Aee).filter(hot));var l=function(d){return MediaRecorder.isTypeSupported(d)&&Ro(d)},c=a.filter(l);c.length>0&&(n.mimeType=c[0])}return n}},{key:"startRecording",value:function(){var n=this;this.recorder=new MediaRecorder(this.stream,this.getMediaRecorderOptions()),this.recordingChunks=[];var i=!1;this.recorder.addEventListener("dataavailable",function(a){n.recordingChunks.push(a.data);var l=n.uppy.opts.restrictions;if(n.recordingChunks.length>1&&l.maxFileSize!=null&&!i){var c=n.recordingChunks.reduce(function(m,g){return m+g.size},0),f=(c-n.recordingChunks[0].size)/(n.recordingChunks.length-1),d=f*3,y=Math.max(0,l.maxFileSize-d);c>y&&(i=!0,n.uppy.info(n.i18n("recordingStoppedMaxSize"),"warning",4e3),n.stopRecording())}}),this.recorder.start(500),this.opts.showRecordingLength&&(this.recordingLengthTimer=setInterval(function(){var a=n.getPluginState().recordingLengthSeconds;n.setPluginState({recordingLengthSeconds:a+1})},1e3)),this.setPluginState({isRecording:!0})}},{key:"stopRecording",value:function(){var n=this,i=new Promise(function(a){n.recorder.addEventListener("stop",function(){a()}),n.recorder.stop(),n.opts.showRecordingLength&&(clearInterval(n.recordingLengthTimer),n.setPluginState({recordingLengthSeconds:0}))});return i.then(function(){return n.setPluginState({isRecording:!1}),n.getVideo()}).then(function(a){try{n.capturedMediaFile=a,n.setPluginState({recordedVideo:URL.createObjectURL(a.data)}),by(n,Wi)[Wi]=!1}catch(l){l.isRestriction||n.uppy.log(l)}}).then(function(){n.recordingChunks=null,n.recorder=null},function(a){throw n.recordingChunks=null,n.recorder=null,a})}},{key:"discardRecordedVideo",value:function(){this.setPluginState({recordedVideo:null}),this.opts.mirror&&(by(this,Wi)[Wi]=!0),this.capturedMediaFile=null}},{key:"submit",value:function(){try{this.capturedMediaFile&&this.uppy.addFile(this.capturedMediaFile)}catch(n){n.isRestriction||this.uppy.log(n,"error")}}},{key:"stop",value:function(){var r=tot(vq().mark(function i(){var a=this,l,c;return vq().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(this.stream&&(l=this.stream.getAudioTracks(),c=this.stream.getVideoTracks(),l.concat(c).forEach(function(y){return y.stop()})),!this.recorder){d.next=4;break}return d.next=4,new Promise(function(y){a.recorder.addEventListener("stop",y,{once:!0}),a.recorder.stop(),a.opts.showRecordingLength&&clearInterval(a.recordingLengthTimer)});case 4:this.recordingChunks=null,this.recorder=null,this.webcamActive=!1,this.stream=null,this.setPluginState({recordedVideo:null,isRecording:!1,recordingLengthSeconds:0});case 9:case"end":return d.stop()}},i,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"getVideoElement",value:function(){return this.el.querySelector(".uppy-Webcam-video")}},{key:"oneTwoThreeSmile",value:function(){var n=this;return new Promise(function(i,a){var l=n.opts.countdown,c=setInterval(function(){if(!n.webcamActive)return clearInterval(c),n.captureInProgress=!1,a(new Error("Webcam is not active"));l?(n.uppy.info("".concat(l,"..."),"warning",800),l--):(clearInterval(c),n.uppy.info(n.i18n("smile"),"success",1500),setTimeout(function(){return i()},1500))},1e3)})}},{key:"takeSnapshot",value:function(){var n=this;this.captureInProgress||(this.captureInProgress=!0,this.opts.onBeforeSnapshot().catch(function(i){var a=_a(i)==="object"?i.message:i;return n.uppy.info(a,"error",5e3),Promise.reject(new Error("onBeforeSnapshot: ".concat(a)))}).then(function(){return n.getImage()}).then(function(i){n.captureInProgress=!1;try{n.uppy.addFile(i)}catch(a){a.isRestriction||n.uppy.log(a)}},function(i){throw n.captureInProgress=!1,i}))}},{key:"getImage",value:function(){var n=this,i=this.getVideoElement();if(!i)return Promise.reject(new Error("No video element found, likely due to the Webcam tab being closed."));var a=i.videoWidth,l=i.videoHeight,c=document.createElement("canvas");c.width=a,c.height=l;var f=c.getContext("2d");f.drawImage(i,0,0);var d=this.uppy.opts.restrictions,y=[];this.opts.preferredImageMimeType?y=[this.opts.preferredImageMimeType]:d.allowedFileTypes&&(y=d.allowedFileTypes.map(Aee).filter(dot));var m=y[0]||"image/jpeg",g=Ro(m)||"jpg",w="cam-".concat(Date.now(),".").concat(g);return iq(c,m).then(function(P){return{source:n.id,name:w,data:new Blob([P],{type:m}),type:m}})}},{key:"getVideo",value:function(){var n=this.recordingChunks.find(function(f){var d;return((d=f.type)==null?void 0:d.length)>0}).type,i=Ro(n);if(!i)return Promise.reject(new Error('Could not retrieve recording: Unsupported media type "'.concat(n,'"')));var a="webcam-".concat(Date.now(),".").concat(i),l=new Blob(this.recordingChunks,{type:n}),c={source:this.id,name:a,data:new Blob([l],{type:n}),type:n};return Promise.resolve(c)}},{key:"focus",value:function(){var n=this;this.opts.countdown&&setTimeout(function(){n.uppy.info(n.i18n("smile"),"success",1500)},1e3)}},{key:"changeVideoSource",value:function(n){this.stop(),this.start({deviceId:n})}},{key:"updateVideoSources",value:function(){var n=this;this.mediaDevices.enumerateDevices().then(function(i){n.setPluginState({videoSources:i.filter(function(a){return a.kind==="videoinput"})})})}},{key:"render",value:function(){this.webcamActive||this.start();var n=this.getPluginState();return!n.cameraReady||!n.hasCamera?T(hq,{icon:gy,i18n:this.i18n,hasCamera:n.hasCamera}):T(See,mq({},n,{onChangeVideoSource:this.changeVideoSource,onSnapshot:this.takeSnapshot,onStartRecording:this.startRecording,onStopRecording:this.stopRecording,onDiscardRecordedVideo:this.discardRecordedVideo,onSubmit:this.submit,onFocus:this.focus,onStop:this.stop,i18n:this.i18n,modes:this.opts.modes,showRecordingLength:this.opts.showRecordingLength,showVideoSourceDropdown:this.opts.showVideoSourceDropdown,supportsRecording:oq(),recording:n.isRecording,mirror:by(this,Wi)[Wi],src:this.stream}))}},{key:"install",value:function(){var n=this,i=this.opts,a=i.mobileNativeCamera,l=i.modes,c=i.facingMode,f=i.videoConstraints,d=this.opts.target;if(a&&d){var y;(y=this.getTargetPlugin(d))==null||y.setOptions({showNativeVideoCameraButton:dq(l,"video-only")||dq(l,"video-audio"),showNativePhotoCameraButton:dq(l,"picture"),nativeCameraFacingMode:(f==null?void 0:f.facingMode)||c});return}this.setPluginState({cameraReady:!1,recordingLengthSeconds:0}),d&&this.mount(d,this),this.mediaDevices&&(this.updateVideoSources(),this.mediaDevices.ondevicechange=function(){if(n.updateVideoSources(),n.stream){var m=!0,g=n.getPluginState(),w=g.videoSources,P=g.currentDeviceId;w.forEach(function(E){P===E.deviceId&&(m=!1)}),m&&(n.stop(),n.start())}})}},{key:"uninstall",value:function(){this.stop(),this.unmount()}},{key:"onUnmount",value:function(){this.stop()}}]),e}(Ae);JO.VERSION=pot.version;function Oy(t){"@babel/helpers - typeof";return Oy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oy(t)}function mot(t,e){return wot(t)||bot(t,e)||qee(t,e)||got()}function got(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bot(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function wot(t){if(Array.isArray(t))return t}function Oot(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=qee(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(d){throw d},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,l=!1,c;return{s:function(){r=r.call(t)},n:function(){var d=r.next();return a=d.done,d},e:function(d){l=!0,c=d},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function qee(t,e){if(t){if(typeof t=="string")return kee(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kee(t,e)}}function kee(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Sot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Pot(n.key),n)}}function _ot(t,e,r){return e&&jee(t.prototype,e),r&&jee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pot(t){var e=Eot(t,"string");return Oy(e)=="symbol"?e:String(e)}function Eot(t,e){if(Oy(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Oy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Pa(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Tot=0;function Fee(t){return"__private_"+Tot+++"_"+t}var tn=Fee("uppy"),wy=Fee("events"),Pp=function(){function t(e){Sot(this,t),Object.defineProperty(this,tn,{writable:!0,value:void 0}),Object.defineProperty(this,wy,{writable:!0,value:[]}),Pa(this,tn)[tn]=e}return _ot(t,[{key:"on",value:function(r,n){return Pa(this,wy)[wy].push([r,n]),Pa(this,tn)[tn].on(r,n)}},{key:"remove",value:function(){var r=Oot(Pa(this,wy)[wy].splice(0)),n;try{for(r.s();!(n=r.n()).done;){var i=mot(n.value,2),a=i[0],l=i[1];Pa(this,tn)[tn].off(a,l)}}catch(c){r.e(c)}finally{r.f()}}},{key:"onFilePause",value:function(r,n){this.on("upload-pause",function(i,a){r===i&&n(a)})}},{key:"onFileRemove",value:function(r,n){this.on("file-removed",function(i){r===i.id&&n(i.id)})}},{key:"onPause",value:function(r,n){this.on("upload-pause",function(i,a){r===i&&n(a)})}},{key:"onRetry",value:function(r,n){this.on("upload-retry",function(i){r===i&&n()})}},{key:"onRetryAll",value:function(r,n){var i=this;this.on("retry-all",function(){Pa(i,tn)[tn].getFile(r)&&n()})}},{key:"onPauseAll",value:function(r,n){var i=this;this.on("pause-all",function(){Pa(i,tn)[tn].getFile(r)&&n()})}},{key:"onCancelAll",value:function(r,n){var i=this;this.on("cancel-all",function(){Pa(i,tn)[tn].getFile(r)&&n.apply(void 0,arguments)})}},{key:"onResumeAll",value:function(r,n){var i=this;this.on("resume-all",function(){Pa(i,tn)[tn].getFile(r)&&n()})}}]),t}();function _y(t){"@babel/helpers - typeof";return _y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_y(t)}function Aot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rot(n.key),n)}}function xot(t,e,r){return e&&Lee(t.prototype,e),r&&Lee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Rot(t){var e=Iot(t,"string");return _y(e)=="symbol"?e:String(e)}function Iot(t,e){if(_y(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(_y(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Se(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var kot=0;function Tn(t){return"__private_"+kot+++"_"+t}function jot(t){return new Error("Cancelled",{cause:t})}function Cee(t){var e=this;if(t!=null){var r,n=function(){return e.abort(t.reason)};t.addEventListener("abort",n,{once:!0});var i=function(){t.removeEventListener("abort",n)};(r=this.then)==null||r.call(this,i,i)}return this}var Vn=Tn("activeRequests"),nn=Tn("queuedHandlers"),Wn=Tn("paused"),_l=Tn("pauseTimer"),rn=Tn("downLimit"),Pl=Tn("upperLimit"),Ea=Tn("rateLimitingTimer"),Sy=Tn("call"),Ta=Tn("queueNext"),wq=Tn("next"),gq=Tn("queue"),Oq=Tn("dequeue"),bq=Tn("resume"),El=Tn("increaseLimit"),wi=function(){function t(e){var r=this;Aot(this,t),Object.defineProperty(this,Oq,{value:Not}),Object.defineProperty(this,gq,{value:Cot}),Object.defineProperty(this,wq,{value:Lot}),Object.defineProperty(this,Ta,{value:Fot}),Object.defineProperty(this,Sy,{value:qot}),Object.defineProperty(this,Vn,{writable:!0,value:0}),Object.defineProperty(this,nn,{writable:!0,value:[]}),Object.defineProperty(this,Wn,{writable:!0,value:!1}),Object.defineProperty(this,_l,{writable:!0,value:void 0}),Object.defineProperty(this,rn,{writable:!0,value:1}),Object.defineProperty(this,Pl,{writable:!0,value:void 0}),Object.defineProperty(this,Ea,{writable:!0,value:void 0}),Object.defineProperty(this,bq,{writable:!0,value:function(){return r.resume()}}),Object.defineProperty(this,El,{writable:!0,value:function(){if(Se(r,Wn)[Wn]){Se(r,Ea)[Ea]=setTimeout(Se(r,El)[El],0);return}Se(r,rn)[rn]=r.limit,r.limit=Math.ceil((Se(r,Pl)[Pl]+Se(r,rn)[rn])/2);for(var i=Se(r,rn)[rn];i<=r.limit;i++)Se(r,Ta)[Ta]();Se(r,Pl)[Pl]-Se(r,rn)[rn]>3?Se(r,Ea)[Ea]=setTimeout(Se(r,El)[El],2e3):Se(r,rn)[rn]=Math.floor(Se(r,rn)[rn]/2)}}),typeof e!="number"||e===0?this.limit=1/0:this.limit=e}return xot(t,[{key:"run",value:function(r,n){return!Se(this,Wn)[Wn]&&Se(this,Vn)[Vn]<this.limit?Se(this,Sy)[Sy](r):Se(this,gq)[gq](r,n)}},{key:"wrapSyncFunction",value:function(r,n){var i=this;return function(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];var f=i.run(function(){return r.apply(void 0,l),queueMicrotask(function(){return f.done()}),function(){}},n);return{abortOn:Cee,abort:function(){f.abort()}}}}},{key:"wrapPromiseFunction",value:function(r,n){var i=this;return function(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];var f,d=new Promise(function(y,m){f=i.run(function(){var g,w;try{w=Promise.resolve(r.apply(void 0,l))}catch(P){w=Promise.reject(P)}return w.then(function(P){g?m(g):(f.done(),y(P))},function(P){g?m(g):(f.done(),m(P))}),function(P){g=jot(P)}},n)});return d.abort=function(y){f.abort(y)},d.abortOn=Cee,d}}},{key:"resume",value:function(){Se(this,Wn)[Wn]=!1,clearTimeout(Se(this,_l)[_l]);for(var r=0;r<this.limit;r++)Se(this,Ta)[Ta]()}},{key:"pause",value:function(r){r===void 0&&(r=null),Se(this,Wn)[Wn]=!0,clearTimeout(Se(this,_l)[_l]),r!=null&&(Se(this,_l)[_l]=setTimeout(Se(this,bq)[bq],r))}},{key:"rateLimit",value:function(r){clearTimeout(Se(this,Ea)[Ea]),this.pause(r),this.limit>1&&Number.isFinite(this.limit)&&(Se(this,Pl)[Pl]=this.limit-1,this.limit=Se(this,rn)[rn],Se(this,Ea)[Ea]=setTimeout(Se(this,El)[El],r))}},{key:"isPaused",get:function(){return Se(this,Wn)[Wn]}}]),t}();function qot(t){var e=this;Se(this,Vn)[Vn]+=1;var r=!1,n;try{n=t()}catch(i){throw Se(this,Vn)[Vn]-=1,i}return{abort:function(a){r||(r=!0,Se(e,Vn)[Vn]-=1,n==null||n(a),Se(e,Ta)[Ta]())},done:function(){r||(r=!0,Se(e,Vn)[Vn]-=1,Se(e,Ta)[Ta]())}}}function Fot(){var t=this;queueMicrotask(function(){return Se(t,wq)[wq]()})}function Lot(){if(!(Se(this,Wn)[Wn]||Se(this,Vn)[Vn]>=this.limit)&&Se(this,nn)[nn].length!==0){var t=Se(this,nn)[nn].shift();if(t==null)throw new Error("Invariant violation: next is null");var e=Se(this,Sy)[Sy](t.fn);t.abort=e.abort,t.done=e.done}}function Cot(t,e){var r=this,n={fn:t,priority:(e==null?void 0:e.priority)||0,abort:function(){Se(r,Oq)[Oq](n)},done:function(){throw new Error("Cannot mark a queued request as done: this indicates a bug")}},i=Se(this,nn)[nn].findIndex(function(a){return n.priority>a.priority});return i===-1?Se(this,nn)[nn].push(n):Se(this,nn)[nn].splice(i,0,n),n}function Not(t){var e=Se(this,nn)[nn].indexOf(t);e!==-1&&Se(this,nn)[nn].splice(e,1)}var Wu=Symbol("__queue");function Vu(t){var e=function(n){return"error"in n&&!!n.error};return t.filter(function(r){return!e(r)})}function Ku(t){return t.filter(function(e){var r;return!((r=e.progress)!=null&&r.uploadStarted)||!e.isRestored})}var ZO=globalThis.AbortController;var PAt=globalThis.AbortSignal;var eS=function(e,r){e===void 0&&(e="Aborted");var n=new DOMException(e,"AbortError");return r!=null&&Nn(r,"cause")&&Object.defineProperty(n,"cause",{__proto__:null,configurable:!0,writable:!0,value:r.cause}),n};function ky(t){"@babel/helpers - typeof";return ky=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ky(t)}function Nee(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Dee(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Nee(Object(r),!0).forEach(function(n){Dot(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nee(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Dot(t,e,r){return e=Bee(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Bee(n.key),n)}}function Uot(t,e,r){return e&&Mee(t.prototype,e),r&&Mee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Bee(t){var e=Bot(t,"string");return ky(e)=="symbol"?e:String(e)}function Bot(t,e){if(ky(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ky(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function de(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Got=0;function lr(t){return"__private_"+Got+++"_"+t}var $ot=1024*1024,Uee={getChunkSize:function(e){return Math.ceil(e.size/1e4)},onProgress:function(){},onPartComplete:function(){},onSuccess:function(){},onError:function(e){throw e}};function zot(t){if(typeof t=="string")return parseInt(t,10);if(typeof t=="number")return t;throw new TypeError("Expected a number")}var Ry=Symbol("pausing upload, not an actual error"),Rr=lr("abortController"),sr=lr("chunks"),on=lr("chunkState"),Kn=lr("data"),Yn=lr("file"),Iy=lr("uploadHasStarted"),Py=lr("onError"),xl=lr("onSuccess"),Aa=lr("shouldUseMultipart"),Al=lr("isRestoring"),jy=lr("onReject"),Tl=lr("maxMultipartParts"),Ty=lr("minPartSize"),Sq=lr("initChunks"),_q=lr("createUpload"),Ey=lr("resumeUpload"),Ay=lr("onPartProgress"),xy=lr("onPartComplete"),Pq=lr("abortUpload"),Hot=function(){function t(e,r){var n=this;Mot(this,t);var i,a;Object.defineProperty(this,Pq,{value:Yot}),Object.defineProperty(this,Ey,{value:Kot}),Object.defineProperty(this,_q,{value:Vot}),Object.defineProperty(this,Sq,{value:Wot}),Object.defineProperty(this,Rr,{writable:!0,value:new ZO}),Object.defineProperty(this,sr,{writable:!0,value:void 0}),Object.defineProperty(this,on,{writable:!0,value:void 0}),Object.defineProperty(this,Kn,{writable:!0,value:void 0}),Object.defineProperty(this,Yn,{writable:!0,value:void 0}),Object.defineProperty(this,Iy,{writable:!0,value:!1}),Object.defineProperty(this,Py,{writable:!0,value:void 0}),Object.defineProperty(this,xl,{writable:!0,value:void 0}),Object.defineProperty(this,Aa,{writable:!0,value:void 0}),Object.defineProperty(this,Al,{writable:!0,value:void 0}),Object.defineProperty(this,jy,{writable:!0,value:function(c){return(c==null?void 0:c.cause)===Ry?null:de(n,Py)[Py](c)}}),Object.defineProperty(this,Tl,{writable:!0,value:1e4}),Object.defineProperty(this,Ty,{writable:!0,value:5*$ot}),Object.defineProperty(this,Ay,{writable:!0,value:function(c){return function(f){if(f.lengthComputable){de(n,on)[on][c].uploaded=zot(f.loaded);var d=de(n,on)[on].reduce(function(y,m){return y+m.uploaded},0);n.options.onProgress(d,de(n,Kn)[Kn].size)}}}}),Object.defineProperty(this,xy,{writable:!0,value:function(c){return function(f){de(n,sr)[sr][c]=null,de(n,on)[on][c].etag=f,de(n,on)[on][c].done=!0;var d={PartNumber:c+1,ETag:f};n.options.onPartComplete(d)}}}),this.options=Dee(Dee({},Uee),r),(a=(i=this.options).getChunkSize)!=null||(i.getChunkSize=Uee.getChunkSize),de(this,Kn)[Kn]=e,de(this,Yn)[Yn]=r.file,de(this,xl)[xl]=this.options.onSuccess,de(this,Py)[Py]=this.options.onError,de(this,Aa)[Aa]=this.options.shouldUseMultipart,de(this,Al)[Al]=r.uploadId&&r.key,de(this,Sq)[Sq]()}return Uot(t,[{key:"start",value:function(){de(this,Iy)[Iy]?(de(this,Rr)[Rr].signal.aborted||de(this,Rr)[Rr].abort(Ry),de(this,Rr)[Rr]=new ZO,de(this,Ey)[Ey]()):de(this,Al)[Al]?(this.options.companionComm.restoreUploadFile(de(this,Yn)[Yn],{uploadId:this.options.uploadId,key:this.options.key}),de(this,Ey)[Ey]()):de(this,_q)[_q]()}},{key:"pause",value:function(){de(this,Rr)[Rr].abort(Ry),de(this,Rr)[Rr]=new ZO}},{key:"abort",value:function(r){r!=null&&r.really?de(this,Pq)[Pq]():this.pause()}},{key:"chunkState",get:function(){return de(this,on)[on]}}]),t}();function Wot(){var t=this,e=de(this,Kn)[Kn].size,r=typeof de(this,Aa)[Aa]=="function"?de(this,Aa)[Aa](de(this,Yn)[Yn]):!!de(this,Aa)[Aa];if(r&&e>de(this,Ty)[Ty]){var n=Math.max(this.options.getChunkSize(de(this,Kn)[Kn]),de(this,Ty)[Ty]),i=Math.floor(e/n);i>de(this,Tl)[Tl]&&(i=de(this,Tl)[Tl],n=e/de(this,Tl)[Tl]),de(this,sr)[sr]=Array(i);for(var a=function(d,y){var m=Math.min(e,d+n),g=function(){var E=d;return de(t,Kn)[Kn].slice(E,m)};if(de(t,sr)[sr][y]={getData:g,onProgress:de(t,Ay)[Ay](y),onComplete:de(t,xy)[xy](y),shouldUseMultipart:r},de(t,Al)[Al]){var w=d+n>e?e-d:n;de(t,sr)[sr][y].setAsUploaded=function(){de(t,sr)[sr][y]=null,de(t,on)[on][y].uploaded=w}}},l=0,c=0;l<e;l+=n,c++)a(l,c)}else de(this,sr)[sr]=[{getData:function(){return de(t,Kn)[Kn]},onProgress:de(this,Ay)[Ay](0),onComplete:de(this,xy)[xy](0),shouldUseMultipart:r}];de(this,on)[on]=de(this,sr)[sr].map(function(){return{uploaded:0}})}function Vot(){this.options.companionComm.uploadFile(de(this,Yn)[Yn],de(this,sr)[sr],de(this,Rr)[Rr].signal).then(de(this,xl)[xl],de(this,jy)[jy]),de(this,Iy)[Iy]=!0}function Kot(){this.options.companionComm.resumeUploadFile(de(this,Yn)[Yn],de(this,sr)[sr],de(this,Rr)[Rr].signal).then(de(this,xl)[xl],de(this,jy)[jy])}function Yot(){var t=this;de(this,Rr)[Rr].abort(),this.options.companionComm.abortFileUpload(de(this,Yn)[Yn]).catch(function(e){return t.options.log(e)})}var Gee=Hot;function Or(t){if(t!=null&&t.aborted)throw eS("The operation was aborted",{cause:t.reason})}function tS(t){"@babel/helpers - typeof";return tS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tS(t)}function xa(){"use strict";xa=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&tS(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(tS(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function $ee(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function rS(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){$ee(a,n,i,l,c,"next",f)}function c(f){$ee(a,n,i,l,c,"throw",f)}l(void 0)})}}function Xot(t){return eat(t)||Zot(t)||Jot(t)||Qot()}function Qot(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Jot(t,e){if(t){if(typeof t=="string")return Eq(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Eq(t,e)}}function Zot(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function eat(t){if(Array.isArray(t))return Eq(t)}function Eq(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tat(t){var e=t.method,r=e===void 0?"PUT":e,n=t.CanonicalUri,i=n===void 0?"/":n,a=t.CanonicalQueryString,l=a===void 0?"":a,c=t.SignedHeaders,f=t.HashedPayload,d=Object.keys(c).map(function(y){return y.toLowerCase()}).sort();return[r,i,l].concat(Xot(d.map(function(y){return"".concat(y,":").concat(c[y])})),["",d.join(";"),f]).join("\n")}var Iq=new TextEncoder,kq={name:"HMAC",hash:"SHA-256"};function rat(t){return Tq.apply(this,arguments)}function Tq(){return Tq=rS(xa().mark(function t(e){var r;return xa().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=globalThis.crypto.subtle,i.abrupt("return",r.digest(kq.hash,Iq.encode(e)));case 2:case"end":return i.stop()}},t)})),Tq.apply(this,arguments)}function nat(t){return Aq.apply(this,arguments)}function Aq(){return Aq=rS(xa().mark(function t(e){var r;return xa().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=globalThis.crypto.subtle,i.abrupt("return",r.importKey("raw",typeof e=="string"?Iq.encode(e):e,kq,!1,["sign"]));case 2:case"end":return i.stop()}},t)})),Aq.apply(this,arguments)}function zee(t){for(var e=new Uint8Array(t),r="",n=0;n<e.length;n++)r+=e[n].toString(16).padStart(2,"0");return r}function qy(t,e){return xq.apply(this,arguments)}function xq(){return xq=rS(xa().mark(function t(e,r){var n;return xa().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=globalThis.crypto.subtle,a.t0=n,a.t1=kq,a.next=5,nat(e);case 5:return a.t2=a.sent,a.t3=Iq.encode(r),a.abrupt("return",a.t0.sign.call(a.t0,a.t1,a.t2,a.t3));case 8:case"end":return a.stop()}},t)})),xq.apply(this,arguments)}function jq(t){return Rq.apply(this,arguments)}function Rq(){return Rq=rS(xa().mark(function t(e){var r,n,i,a,l,c,f,d,y,m,g,w,P,E,O,R,x,A,I,N,j,k,z,B,Y;return xa().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return r=e.accountKey,n=e.accountSecret,i=e.sessionToken,a=e.bucketName,l=e.Key,c=e.Region,f=e.expires,d=e.uploadId,y=e.partNumber,m="s3",g="".concat(a,".").concat(m,".").concat(c,".amazonaws.com"),w="/".concat(encodeURI(l).replace(/[;?:@&=+$,#!'()*]/g,function($){return"%".concat($.charCodeAt(0).toString(16).toUpperCase())})),P="UNSIGNED-PAYLOAD",E=new Date().toISOString().replace(/[-:]|\.\d+/g,""),O=E.slice(0,8),R="".concat(O,"/").concat(c,"/").concat(m,"/aws4_request"),x=new URL("https://".concat(g).concat(w)),x.searchParams.set("X-Amz-Algorithm","AWS4-HMAC-SHA256"),x.searchParams.set("X-Amz-Content-Sha256",P),x.searchParams.set("X-Amz-Credential","".concat(r,"/").concat(R)),x.searchParams.set("X-Amz-Date",E),x.searchParams.set("X-Amz-Expires",f),x.searchParams.set("X-Amz-Security-Token",i),x.searchParams.set("X-Amz-SignedHeaders","host"),y&&x.searchParams.set("partNumber",y),d&&x.searchParams.set("uploadId",d),x.searchParams.set("x-id",y&&d?"UploadPart":"PutObject"),A=tat({CanonicalUri:w,CanonicalQueryString:x.search.slice(1),SignedHeaders:{host:g},HashedPayload:P}),X.t0=zee,X.next=23,rat(A);case 23:return X.t1=X.sent,I=(0,X.t0)(X.t1),N=["AWS4-HMAC-SHA256",E,R,I].join("\n"),X.next=28,qy("AWS4".concat(n),O);case 28:return j=X.sent,X.next=31,qy(j,c);case 31:return k=X.sent,X.next=34,qy(k,m);case 34:return z=X.sent,X.next=37,qy(z,"aws4_request");case 37:return B=X.sent,X.t2=zee,X.next=41,qy(B,N);case 41:return X.t3=X.sent,Y=(0,X.t2)(X.t3),x.searchParams.set("X-Amz-Signature",Y),X.abrupt("return",x);case 45:case"end":return X.stop()}},t)})),Rq.apply(this,arguments)}function iat(t,e){return sat(t)||uat(t,e)||aat(t,e)||oat()}function oat(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function aat(t,e){if(t){if(typeof t=="string")return Hee(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hee(t,e)}}function Hee(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function uat(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function sat(t){if(Array.isArray(t))return t}function Ll(t){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ll(t)}function Wee(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Yee(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Wee(Object(r),!0).forEach(function(n){lat(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wee(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function lat(t,e,r){return e=Xee(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cr(){"use strict";cr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Ll(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Ll(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function Vee(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Yu(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){Vee(a,n,i,l,c,"next",f)}function c(f){Vee(a,n,i,l,c,"throw",f)}l(void 0)})}}function cat(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Xee(n.key),n)}}function fat(t,e,r){return e&&Kee(t.prototype,e),r&&Kee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Xee(t){var e=pat(t,"string");return Ll(e)=="symbol"?e:String(e)}function pat(t,e){if(Ll(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Ll(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Pe(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var hat=0;function an(t){return"__private_"+hat+++"_"+t}function dat(t){var e=new URL(t);return e.search="",e.hash="",e.href}var Fy=an("abortMultipartUpload"),Ir=an("cache"),Ly=an("createMultipartUpload"),Cy=an("fetchSignature"),My=an("getUploadParameters"),Ny=an("listParts"),jl=an("previousRetryDelay"),ql=an("requests"),Rl=an("retryDelays"),Il=an("sendCompletionRequest"),kl=an("setS3MultipartState"),Fl=an("uploadPartBytes"),kr=an("getFile"),qq=an("shouldRetry"),Dy=an("nonMultipartUpload"),Qee=function(){function t(e,r,n,i){cat(this,t),Object.defineProperty(this,Dy,{value:yat}),Object.defineProperty(this,qq,{value:vat}),Object.defineProperty(this,Fy,{writable:!0,value:void 0}),Object.defineProperty(this,Ir,{writable:!0,value:new WeakMap}),Object.defineProperty(this,Ly,{writable:!0,value:void 0}),Object.defineProperty(this,Cy,{writable:!0,value:void 0}),Object.defineProperty(this,My,{writable:!0,value:void 0}),Object.defineProperty(this,Ny,{writable:!0,value:void 0}),Object.defineProperty(this,jl,{writable:!0,value:void 0}),Object.defineProperty(this,ql,{writable:!0,value:void 0}),Object.defineProperty(this,Rl,{writable:!0,value:void 0}),Object.defineProperty(this,Il,{writable:!0,value:void 0}),Object.defineProperty(this,kl,{writable:!0,value:void 0}),Object.defineProperty(this,Fl,{writable:!0,value:void 0}),Object.defineProperty(this,kr,{writable:!0,value:void 0}),Pe(this,ql)[ql]=e,Pe(this,kl)[kl]=n,Pe(this,kr)[kr]=i,this.setOptions(r)}return fat(t,[{key:"setOptions",value:function(r){var n=Pe(this,ql)[ql];if("abortMultipartUpload"in r&&(Pe(this,Fy)[Fy]=n.wrapPromiseFunction(r.abortMultipartUpload,{priority:1})),"createMultipartUpload"in r&&(Pe(this,Ly)[Ly]=n.wrapPromiseFunction(r.createMultipartUpload,{priority:-1})),"signPart"in r&&(Pe(this,Cy)[Cy]=n.wrapPromiseFunction(r.signPart)),"listParts"in r&&(Pe(this,Ny)[Ny]=n.wrapPromiseFunction(r.listParts)),"completeMultipartUpload"in r&&(Pe(this,Il)[Il]=n.wrapPromiseFunction(r.completeMultipartUpload,{priority:1})),"retryDelays"in r){var i;Pe(this,Rl)[Rl]=(i=r.retryDelays)!=null?i:[]}"uploadPartBytes"in r&&(Pe(this,Fl)[Fl]=n.wrapPromiseFunction(r.uploadPartBytes,{priority:1/0})),"getUploadParameters"in r&&(Pe(this,My)[My]=n.wrapPromiseFunction(r.getUploadParameters))}},{key:"getUploadId",value:function(){var e=Yu(cr().mark(function n(i,a){var l=this,c,f,d;return cr().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if((c=Pe(this,Ir)[Ir].get(i.data))==null){m.next=11;break}return m.prev=1,m.next=4,c;case 4:return m.abrupt("return",m.sent);case 7:m.prev=7,m.t0=m.catch(1);case 9:m.next=0;break;case 11:return f=Pe(this,Ly)[Ly](Pe(this,kr)[kr](i),a),d=function(){f.abort(a.reason),Pe(l,Ir)[Ir].delete(i.data)},a.addEventListener("abort",d,{once:!0}),Pe(this,Ir)[Ir].set(i.data,f),f.then(function(){var g=Yu(cr().mark(function w(P){return cr().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:a.removeEventListener("abort",d),Pe(l,kl)[kl](i,P),Pe(l,Ir)[Ir].set(i.data,P);case 3:case"end":return O.stop()}},w)}));return function(w){return g.apply(this,arguments)}}(),function(){a.removeEventListener("abort",d),Pe(l,Ir)[Ir].delete(i.data)}),m.abrupt("return",f);case 17:case"end":return m.stop()}},n,this,[[1,7]])}));function r(n,i){return e.apply(this,arguments)}return r}()},{key:"abortFileUpload",value:function(){var e=Yu(cr().mark(function n(i){var a,l;return cr().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(a=Pe(this,Ir)[Ir].get(i.data),a!=null){f.next=3;break}return f.abrupt("return");case 3:return Pe(this,Ir)[Ir].delete(i.data),Pe(this,kl)[kl](i,Object.create(null)),f.prev=5,f.next=8,a;case 8:l=f.sent,f.next=14;break;case 11:return f.prev=11,f.t0=f.catch(5),f.abrupt("return");case 14:return f.next=16,Pe(this,Fy)[Fy](Pe(this,kr)[kr](i),l);case 16:case"end":return f.stop()}},n,this,[[5,11]])}));function r(n){return e.apply(this,arguments)}return r}()},{key:"uploadFile",value:function(){var e=Yu(cr().mark(function n(i,a,l){var c=this,f,d,y,m;return cr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(Or(l),!(a.length===1&&!a[0].shouldUseMultipart)){w.next=3;break}return w.abrupt("return",Pe(this,Dy)[Dy](i,a[0],l));case 3:return w.next=5,this.getUploadId(i,l);case 5:return f=w.sent,d=f.uploadId,y=f.key,Or(l),w.prev=9,w.next=12,Promise.all(a.map(function(P,E){return c.uploadChunk(i,E+1,P,l)}));case 12:return m=w.sent,Or(l),w.next=16,Pe(this,Il)[Il](Pe(this,kr)[kr](i),{key:y,uploadId:d,parts:m,signal:l},l).abortOn(l);case 16:return w.abrupt("return",w.sent);case 19:throw w.prev=19,w.t0=w.catch(9),(w.t0==null?void 0:w.t0.cause)!==Ry&&(w.t0==null?void 0:w.t0.name)!=="AbortError"&&this.abortFileUpload(i),w.t0;case 23:case"end":return w.stop()}},n,this,[[9,19]])}));function r(n,i,a){return e.apply(this,arguments)}return r}()},{key:"restoreUploadFile",value:function(r,n){Pe(this,Ir)[Ir].set(r.data,n)}},{key:"resumeUploadFile",value:function(){var e=Yu(cr().mark(function n(i,a,l){var c=this,f,d,y,m,g;return cr().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(Or(l),!(a.length===1&&a[0]!=null&&!a[0].shouldUseMultipart)){P.next=3;break}return P.abrupt("return",Pe(this,Dy)[Dy](i,a[0],l));case 3:return P.next=5,this.getUploadId(i,l);case 5:return f=P.sent,d=f.uploadId,y=f.key,Or(l),P.next=11,Pe(this,Ny)[Ny](Pe(this,kr)[kr](i),{uploadId:d,key:y,signal:l},l).abortOn(l);case 11:return m=P.sent,Or(l),P.next=15,Promise.all(a.map(function(E,O){var R=O+1,x=m.find(function(A){var I=A.PartNumber;return I===R});return x==null?c.uploadChunk(i,R,E,l):(E==null||E.setAsUploaded==null||E.setAsUploaded(),{PartNumber:R,ETag:x.ETag})}));case 15:return g=P.sent,Or(l),P.abrupt("return",Pe(this,Il)[Il](Pe(this,kr)[kr](i),{key:y,uploadId:d,parts:g,signal:l},l).abortOn(l));case 18:case"end":return P.stop()}},n,this)}));function r(n,i,a){return e.apply(this,arguments)}return r}()},{key:"uploadChunk",value:function(){var e=Yu(cr().mark(function n(i,a,l,c){var f=this,d,y,m,g,w,P,E,O;return cr().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return Or(c),x.next=3,this.getUploadId(i,c);case 3:d=x.sent,y=d.uploadId,m=d.key,g=Pe(this,Rl)[Rl].values(),w=Pe(this,Rl)[Rl].values(),P=function(){var I=g.next();return I==null||I.done?null:I.value},E=cr().mark(function A(){var I,N,j,k,z;return cr().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Or(c),I=l.getData(),N=l.onProgress,j=l.onComplete,Y.prev=3,Y.next=6,Pe(f,Cy)[Cy](Pe(f,kr)[kr](i),{uploadId:y,key:m,partNumber:a,body:I,signal:c}).abortOn(c);case 6:k=Y.sent,Y.next=17;break;case 9:if(Y.prev=9,Y.t0=Y.catch(3),z=P(),!(z==null||c.aborted)){Y.next=14;break}throw Y.t0;case 14:return Y.next=16,new Promise(function(Q){return setTimeout(Q,z)});case 16:return Y.abrupt("return",0);case 17:return Or(c),Y.prev=18,Y.t1=Yee,Y.t2={PartNumber:a},Y.next=23,Pe(f,Fl)[Fl]({signature:k,body:I,size:I.size,onProgress:N,onComplete:j,signal:c}).abortOn(c);case 23:return Y.t3=Y.sent,Y.t4=(0,Y.t1)(Y.t2,Y.t3),Y.abrupt("return",{v:Y.t4});case 28:return Y.prev=28,Y.t5=Y.catch(18),Y.next=32,Pe(f,qq)[qq](Y.t5,w);case 32:if(Y.sent){Y.next=34;break}throw Y.t5;case 34:case"end":return Y.stop()}},A,null,[[3,9],[18,28]])});case 10:return x.delegateYield(E(),"t0",11);case 11:if(O=x.t0,O!==0){x.next=14;break}return x.abrupt("continue",16);case 14:if(!O){x.next=16;break}return x.abrupt("return",O.v);case 16:x.next=10;break;case 18:case"end":return x.stop()}},n,this)}));function r(n,i,a,l){return e.apply(this,arguments)}return r}()}]),t}();function vat(t,e){return Fq.apply(this,arguments)}function Fq(){return Fq=Yu(cr().mark(function t(e,r){var n=this,i,a,l,c,f,d;return cr().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(a=Pe(this,ql)[ql],l=e==null||(i=e.source)==null?void 0:i.status,l!=null){m.next=4;break}return m.abrupt("return",!1);case 4:if(!(l===403&&e.message==="Request has expired")){m.next=16;break}if(a.isPaused){m.next=14;break}if(!(a.limit===1||Pe(this,jl)[jl]==null)){m.next=11;break}if(c=r.next(),!(c==null||c.done)){m.next=10;break}return m.abrupt("return",!1);case 10:Pe(this,jl)[jl]=c.value;case 11:return a.rateLimit(0),m.next=14,new Promise(function(g){return setTimeout(g,Pe(n,jl)[jl])});case 14:m.next=37;break;case 16:if(l!==429){m.next=24;break}if(a.isPaused){m.next=22;break}if(f=r.next(),!(f==null||f.done)){m.next=21;break}return m.abrupt("return",!1);case 21:a.rateLimit(f.value);case 22:m.next=37;break;case 24:if(!(l>400&&l<500&&l!==409)){m.next=28;break}return m.abrupt("return",!1);case 28:if(!(typeof navigator!="undefined"&&navigator.onLine===!1)){m.next=32;break}a.isPaused||(a.pause(),window.addEventListener("online",function(){a.resume()},{once:!0})),m.next=37;break;case 32:if(d=r.next(),!(d==null||d.done)){m.next=35;break}return m.abrupt("return",!1);case 35:return m.next=37,new Promise(function(g){return setTimeout(g,d.value)});case 37:return m.abrupt("return",!0);case 38:case"end":return m.stop()}},t,this)})),Fq.apply(this,arguments)}function yat(t,e,r){return Lq.apply(this,arguments)}function Lq(){return Lq=Yu(cr().mark(function t(e,r,n){var i,a,l,c,f,d,y,m,g,w,P,E;return cr().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,Pe(this,My)[My](Pe(this,kr)[kr](e),{signal:n}).abortOn(n);case 2:return i=R.sent,a=i.method,l=a===void 0?"POST":a,c=i.url,f=i.fields,d=i.headers,m=r.getData(),l.toUpperCase()==="POST"?(g=new FormData,Object.entries(f).forEach(function(x){var A=iat(x,2),I=A[0],N=A[1];return g.set(I,N)}),g.set("file",m),y=g):y=m,w=r.onProgress,P=r.onComplete,R.next=13,Pe(this,Fl)[Fl]({signature:{url:c,headers:d,method:l},body:y,size:m.size,onProgress:w,onComplete:P,signal:n}).abortOn(n);case 13:return E=R.sent,R.abrupt("return","location"in E?E:Yee({location:dat(c)},E));case 15:case"end":return R.stop()}},t,this)})),Lq.apply(this,arguments)}function Xu(t){"@babel/helpers - typeof";return Xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xu(t)}function Vi(){"use strict";Vi=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Xu(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Xu(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function Jee(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Gy(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){Jee(a,n,i,l,c,"next",f)}function c(f){Jee(a,n,i,l,c,"throw",f)}l(void 0)})}}function Zee(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Oi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Zee(Object(r),!0).forEach(function(n){mat(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zee(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function mat(t,e,r){return e=rte(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gat(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ete(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,rte(n.key),n)}}function bat(t,e,r){return e&&ete(t.prototype,e),r&&ete(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function rte(t){var e=wat(t,"string");return Xu(e)=="symbol"?e:String(e)}function wat(t,e){if(Xu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Xu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Oat(t,e,r){return e=Tp(e),Sat(t,nte()?Reflect.construct(e,r||[],Tp(t).constructor):e.apply(t,r))}function Sat(t,e){if(e&&(Xu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _t(t)}function nte(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nte=function(){return!!t})()}function _t(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nS(){return typeof Reflect!="undefined"&&Reflect.get?nS=Reflect.get.bind():nS=function(e,r,n){var i=_at(e,r);if(i){var a=Object.getOwnPropertyDescriptor(i,r);return a.get?a.get.call(arguments.length<3?e:n):a.value}},nS.apply(this,arguments)}function _at(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Tp(t),t!==null););return t}function Tp(t){return Tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Tp(t)}function Pat(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Uq(t,e)}function Uq(t,e){return Uq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Uq(t,e)}var ite;function De(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Eat=0;function Si(t){return"__private_"+Eat+++"_"+t}var Tat={version:"3.11.1"};function Ep(t){if(t!=null&&t.error){var e=new Error(t.message);throw Object.assign(e,t.error),e}return t}function ote(t){var e=t.Expiration;if(e){var r=Math.floor((new Date(e)-Date.now())/1e3);if(r>9)return r}}function tte(t){var e=t.meta,r=t.allowedMetaFields,n=t.querify,i=n===void 0?!1:n,a=r!=null?r:Object.keys(e);return e?Object.fromEntries(a.filter(function(l){return e[l]!=null}).map(function(l){var c=i?"metadata[".concat(l,"]"):l,f=String(e[l]);return[c,f]})):{}}var Aat={allowedMetaFields:null,limit:6,getTemporarySecurityCredentials:!1,shouldUseMultipart:function(e){return e.size!==0},retryDelays:[0,1e3,3e3,5e3],companionHeaders:{}},Nl=Si("companionCommunicationQueue"),Mt=Si("client"),jr=Si("cachedTemporaryCredentials"),Cq=Si("getTemporarySecurityCredentials"),Nq=Si("setS3MultipartState"),Dl=Si("getFile"),Dq=Si("uploadLocalFile"),Mq=Si("getCompanionClientArgs"),Uy=Si("upload"),Cl=Si("setCompanionHeaders"),Ra=Si("setResumableUploadsCapability"),By=Si("resetResumableCapability");ite=Symbol.for("uppy test: getClient");var $y=function(t,e){Pat(r,t);function r(n,i){var a;gat(this,r);var l;a=Oat(this,r,[n,Oi(Oi({},Aat),{},{uploadPartBytes:r.uploadPartBytes,createMultipartUpload:null,listParts:null,abortMultipartUpload:null,completeMultipartUpload:null,signPart:null,getUploadParameters:null},i)]),Object.defineProperty(_t(a),Mq,{value:Iat}),Object.defineProperty(_t(a),Dq,{value:Rat}),Object.defineProperty(_t(a),Cq,{value:xat}),Object.defineProperty(_t(a),Nl,{writable:!0,value:void 0}),Object.defineProperty(_t(a),Mt,{writable:!0,value:void 0}),Object.defineProperty(_t(a),jr,{writable:!0,value:void 0}),Object.defineProperty(_t(a),Nq,{writable:!0,value:function(g,w){var P=w.key,E=w.uploadId,O=a.uppy.getFile(g.id);O!=null&&a.uppy.setFileState(g.id,{s3Multipart:Oi(Oi({},O.s3Multipart),{},{key:P,uploadId:E})})}}),Object.defineProperty(_t(a),Dl,{writable:!0,value:function(g){return a.uppy.getFile(g.id)||g}}),Object.defineProperty(_t(a),Uy,{writable:!0,value:function(){var m=Gy(Vi().mark(function w(P){var E,O,R,x,A;return Vi().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(P.length!==0){N.next=2;break}return N.abrupt("return",void 0);case 2:return E=a.uppy.getFilesByIds(P),O=Vu(E),R=Ku(O),a.uppy.emit("upload-start",R),x=O.map(function(j){if(j.isRemote){var k=function(){return a.requests};De(_t(a),Ra)[Ra](!1);var z=new AbortController,B=function(X){X.id===j.id&&z.abort()};a.uppy.on("file-removed",B);var Y=a.uppy.getRequestClientForFile(j).uploadRemoteFile(j,De(_t(a),Mq)[Mq](j),{signal:z.signal,getQueue:k});return a.requests.wrapSyncFunction(function(){a.uppy.off("file-removed",B)},{priority:-1})(),Y}return De(_t(a),Dq)[Dq](j)}),N.next=9,Promise.all(x);case 9:return A=N.sent,De(_t(a),Ra)[Ra](!0),N.abrupt("return",A);case 12:case"end":return N.stop()}},w)}));function g(w){return m.apply(this,arguments)}return g}()}),Object.defineProperty(_t(a),Cl,{writable:!0,value:function(){De(_t(a),Mt)[Mt].setCompanionHeaders(a.opts.companionHeaders)}}),Object.defineProperty(_t(a),Ra,{writable:!0,value:function(g){var w=a.uppy.getState(),P=w.capabilities;a.uppy.setState({capabilities:Oi(Oi({},P),{},{resumableUploads:g})})}}),Object.defineProperty(_t(a),By,{writable:!0,value:function(){De(_t(a),Ra)[Ra](!0)}}),a.type="uploader",a.id=a.opts.id||"AwsS3Multipart",a.title="AWS S3 Multipart",De(_t(a),Mt)[Mt]=new Mn(n,i);for(var c={createMultipartUpload:a.createMultipartUpload,listParts:a.listParts,abortMultipartUpload:a.abortMultipartUpload,completeMultipartUpload:a.completeMultipartUpload,signPart:i!=null&&i.getTemporarySecurityCredentials?a.createSignedURL:a.signPart,getUploadParameters:i!=null&&i.getTemporarySecurityCredentials?a.createSignedURL:a.getUploadParameters},f=0,d=Object.keys(c);f<d.length;f++){var y=d[f];a.opts[y]==null&&(a.opts[y]=c[y].bind(_t(a)))}return(i==null?void 0:i.prepareUploadParts)!=null&&i.signPart==null&&(a.opts.signPart=function(){var m=Gy(Vi().mark(function g(w,P){var E,O,R,x,A,I,N,j;return Vi().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return E=P.uploadId,O=P.key,R=P.partNumber,x=P.body,A=P.signal,z.next=3,i.prepareUploadParts(w,{uploadId:E,key:O,parts:[{number:R,chunk:x}],signal:A});case 3:return I=z.sent,N=I.presignedUrls,j=I.headers,z.abrupt("return",{url:N==null?void 0:N[R],headers:j==null?void 0:j[R]});case 7:case"end":return z.stop()}},g)}));return function(g,w){return m.apply(this,arguments)}}()),a.requests=(l=a.opts.rateLimitedQueue)!=null?l:new wi(a.opts.limit),De(_t(a),Nl)[Nl]=new Qee(a.requests,a.opts,De(_t(a),Nq)[Nq],De(_t(a),Dl)[Dl]),a.uploaders=Object.create(null),a.uploaderEvents=Object.create(null),a.uploaderSockets=Object.create(null),a}return bat(r,[{key:e,value:function(){return De(this,Mt)[Mt]}},{key:"setOptions",value:function(i){De(this,Nl)[Nl].setOptions(i),nS(Tp(r.prototype),"setOptions",this).call(this,i),De(this,Cl)[Cl]()}},{key:"resetUploaderReferences",value:function(i,a){this.uploaders[i]&&(this.uploaders[i].abort({really:(a==null?void 0:a.abort)||!1}),this.uploaders[i]=null),this.uploaderEvents[i]&&(this.uploaderEvents[i].remove(),this.uploaderEvents[i]=null),this.uploaderSockets[i]&&(this.uploaderSockets[i].close(),this.uploaderSockets[i]=null)}},{key:"assertHost",value:function(i){if(!this.opts.companionUrl)throw new Error("Expected a `companionUrl` option containing a Companion address, or if you are not using Companion, a custom `".concat(i,"` implementation."))}},{key:"createMultipartUpload",value:function(i,a){this.assertHost("createMultipartUpload"),Or(a);var l=tte({meta:i.meta,allowedMetaFields:this.opts.allowedMetaFields});return De(this,Mt)[Mt].post("s3/multipart",{filename:i.name,type:i.type,metadata:l},{signal:a}).then(Ep)}},{key:"listParts",value:function(i,a,l){var c,f=a.key,d=a.uploadId,y=a.signal;(c=y)!=null||(y=l),this.assertHost("listParts"),Or(y);var m=encodeURIComponent(f);return De(this,Mt)[Mt].get("s3/multipart/".concat(d,"?key=").concat(m),{signal:y}).then(Ep)}},{key:"completeMultipartUpload",value:function(i,a,l){var c,f=a.key,d=a.uploadId,y=a.parts,m=a.signal;(c=m)!=null||(m=l),this.assertHost("completeMultipartUpload"),Or(m);var g=encodeURIComponent(f),w=encodeURIComponent(d);return De(this,Mt)[Mt].post("s3/multipart/".concat(w,"/complete?key=").concat(g),{parts:y},{signal:m}).then(Ep)}},{key:"createSignedURL",value:function(){var n=Gy(Vi().mark(function a(l,c){var f,d,y,m,g;return Vi().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,De(this,Cq)[Cq](c);case 2:return f=P.sent,d=ote(f.credentials)||604800,y=c.uploadId,m=c.key,g=c.partNumber,P.t0=d,P.t1={},P.t2="",P.next=10,jq({accountKey:f.credentials.AccessKeyId,accountSecret:f.credentials.SecretAccessKey,sessionToken:f.credentials.SessionToken,expires:d,bucketName:f.bucket,Region:f.region,Key:m!=null?m:"".concat(crypto.randomUUID(),"-").concat(l.name),uploadId:y,partNumber:g});case 10:return P.t3=P.sent,P.t4=P.t2.concat.call(P.t2,P.t3),P.t5={"Content-Type":l.type},P.abrupt("return",{method:"PUT",expires:P.t0,fields:P.t1,url:P.t4,headers:P.t5});case 14:case"end":return P.stop()}},a,this)}));function i(a,l){return n.apply(this,arguments)}return i}()},{key:"signPart",value:function(i,a){var l=a.uploadId,c=a.key,f=a.partNumber,d=a.signal;if(this.assertHost("signPart"),Or(d),l==null||c==null||f==null)throw new Error("Cannot sign without a key, an uploadId, and a partNumber");var y=encodeURIComponent(c);return De(this,Mt)[Mt].get("s3/multipart/".concat(l,"/").concat(f,"?key=").concat(y),{signal:d}).then(Ep)}},{key:"abortMultipartUpload",value:function(i,a,l){var c,f=a.key,d=a.uploadId,y=a.signal;(c=y)!=null||(y=l),this.assertHost("abortMultipartUpload");var m=encodeURIComponent(f),g=encodeURIComponent(d);return De(this,Mt)[Mt].delete("s3/multipart/".concat(g,"?key=").concat(m),void 0,{signal:y}).then(Ep)}},{key:"getUploadParameters",value:function(i,a){var l=i.meta,c=l.type,f=l.name,d=tte({meta:l,allowedMetaFields:this.opts.allowedMetaFields,querify:!0}),y=new URLSearchParams(Oi({filename:f,type:c},d));return De(this,Mt)[Mt].get("s3/params?".concat(y),a)}},{key:"install",value:function(){De(this,Ra)[Ra](!0),this.uppy.addPreProcessor(De(this,Cl)[Cl]),this.uppy.addUploader(De(this,Uy)[Uy]),this.uppy.on("cancel-all",De(this,By)[By])}},{key:"uninstall",value:function(){this.uppy.removePreProcessor(De(this,Cl)[Cl]),this.uppy.removeUploader(De(this,Uy)[Uy]),this.uppy.off("cancel-all",De(this,By)[By])}}],[{key:"uploadPartBytes",value:function(){var n=Gy(Vi().mark(function a(l){var c,f,d,y,m,g,w,P,E,O,R,x;return Vi().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(c=l.signature,f=c.url,d=c.expires,y=c.headers,m=c.method,g=m===void 0?"PUT":m,w=l.body,P=l.size,E=P===void 0?w.size:P,O=l.onProgress,R=l.onComplete,x=l.signal,Or(x),f!=null){I.next=4;break}throw new Error("Cannot upload to an undefined URL");case 4:return I.abrupt("return",new Promise(function(N,j){var k=new XMLHttpRequest;k.open(g,f,!0),y&&Object.keys(y).forEach(function(Y){k.setRequestHeader(Y,y[Y])}),k.responseType="text",typeof d=="number"&&(k.timeout=d*1e3);function z(){k.abort()}function B(){x==null||x.removeEventListener("abort",z)}x==null||x.addEventListener("abort",z),k.upload.addEventListener("progress",function(Y){O(Y)}),k.addEventListener("abort",function(){B(),j(eS())}),k.addEventListener("timeout",function(){B();var Y=new Error("Request has expired");Y.source={status:403},j(Y)}),k.addEventListener("load",function(Y){if(B(),k.status===403&&k.responseText.includes("<Message>Request has expired</Message>")){var Q=new Error("Request has expired");Q.source=k,j(Q);return}if(k.status<200||k.status>=300){var X=new Error("Non 2xx");X.source=k,j(X);return}O==null||O({loaded:E,lengthComputable:!0});var $=k.getResponseHeader("ETag"),H=k.getResponseHeader("Location");if(g.toUpperCase()==="POST"&&H===null&&console.warn("AwsS3/Multipart: Could not read the Location header. This likely means CORS is not configured correctly on the S3 Bucket. See https://uppy.io/docs/aws-s3-multipart#S3-Bucket-Configuration for instructions."),$===null){j(new Error("AwsS3/Multipart: Could not read the ETag header. This likely means CORS is not configured correctly on the S3 Bucket. See https://uppy.io/docs/aws-s3-multipart#S3-Bucket-Configuration for instructions."));return}R==null||R($),N(Oi({ETag:$},H?{location:H}:void 0))}),k.addEventListener("error",function(Y){B();var Q=new Error("Unknown error");Q.source=Y.target,j(Q)}),k.send(w)}));case 5:case"end":return I.stop()}},a)}));function i(a){return n.apply(this,arguments)}return i}()}]),r}(ht,ite);function xat(t){return Bq.apply(this,arguments)}function Bq(){return Bq=Gy(Vi().mark(function t(e){var r=this;return Vi().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(Or(e==null?void 0:e.signal),De(this,jr)[jr]!=null){i.next=7;break}return this.opts.getTemporarySecurityCredentials===!0?(this.assertHost("getTemporarySecurityCredentials"),De(this,jr)[jr]=De(this,Mt)[Mt].get("s3/sts",e).then(Ep)):De(this,jr)[jr]=this.opts.getTemporarySecurityCredentials(e),i.next=5,De(this,jr)[jr];case 5:De(this,jr)[jr]=i.sent,setTimeout(function(){De(r,jr)[jr]=null},(ote(De(this,jr)[jr].credentials)||0)*500);case 7:return i.abrupt("return",De(this,jr)[jr]);case 8:case"end":return i.stop()}},t,this)})),Bq.apply(this,arguments)}function Rat(t){var e=this,r=this;return new Promise(function(n,i){var a=function(m,g){e.uppy.emit("upload-progress",e.uppy.getFile(t.id),{uploader:e,bytesUploaded:m,bytesTotal:g})},l=function(m){e.uppy.log(m),e.uppy.emit("upload-error",t,m),e.resetUploaderReferences(t.id),i(m)},c=function(m){var g={body:Oi({},m),status:200,uploadURL:m.location};e.resetUploaderReferences(t.id),e.uppy.emit("upload-success",De(e,Dl)[Dl](t),g),m.location&&e.uppy.log("Download ".concat(t.name," from ").concat(m.location)),n()},f=new Gee(t.data,Oi({companionComm:De(e,Nl)[Nl],log:function(){var m;return(m=r.uppy).log.apply(m,arguments)},getChunkSize:e.opts.getChunkSize?e.opts.getChunkSize.bind(e):null,onProgress:a,onError:l,onSuccess:c,onPartComplete:function(m){e.uppy.emit("s3-multipart:part-uploaded",De(e,Dl)[Dl](t),m)},file:t,shouldUseMultipart:e.opts.shouldUseMultipart},t.s3Multipart));e.uploaders[t.id]=f;var d=new Pp(e.uppy);e.uploaderEvents[t.id]=d,d.onFileRemove(t.id,function(y){f.abort(),e.resetUploaderReferences(t.id,{abort:!0}),n("upload ".concat(y," was removed"))}),d.onCancelAll(t.id,function(y){(y==null?void 0:y.reason)==="user"&&(f.abort(),e.resetUploaderReferences(t.id,{abort:!0})),n("upload ".concat(t.id," was canceled"))}),d.onFilePause(t.id,function(y){y?f.pause():f.start()}),d.onPauseAll(t.id,function(){f.pause()}),d.onResumeAll(t.id,function(){f.start()}),f.start()})}function Iat(t){var e;return Oi(Oi({},(e=t.remote)==null?void 0:e.body),{},{protocol:"s3-multipart",size:t.data.size,metadata:t.meta})}$y.VERSION=Tat.version;function Hy(t){"@babel/helpers - typeof";return Hy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hy(t)}function kat(t,e){return Fat(t)||qat(t,e)||ste(t,e)||jat()}function jat(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function qat(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function Fat(t){if(Array.isArray(t))return t}function Lat(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=ste(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(d){throw d},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,l=!1,c;return{s:function(){r=r.call(t)},n:function(){var d=r.next();return a=d.done,d},e:function(d){l=!0,c=d},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function ste(t,e){if(t){if(typeof t=="string")return ate(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ate(t,e)}}function ate(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Cat(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ute(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Dat(n.key),n)}}function Nat(t,e,r){return e&&ute(t.prototype,e),r&&ute(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Dat(t){var e=Mat(t,"string");return Hy(e)=="symbol"?e:String(e)}function Mat(t,e){if(Hy(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Hy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ia(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Uat=0;function lte(t){return"__private_"+Uat+++"_"+t}var un=lte("uppy"),zy=lte("events"),cte=function(){function t(e){Cat(this,t),Object.defineProperty(this,un,{writable:!0,value:void 0}),Object.defineProperty(this,zy,{writable:!0,value:[]}),Ia(this,un)[un]=e}return Nat(t,[{key:"on",value:function(r,n){return Ia(this,zy)[zy].push([r,n]),Ia(this,un)[un].on(r,n)}},{key:"remove",value:function(){var r=Lat(Ia(this,zy)[zy].splice(0)),n;try{for(r.s();!(n=r.n()).done;){var i=kat(n.value,2),a=i[0],l=i[1];Ia(this,un)[un].off(a,l)}}catch(c){r.e(c)}finally{r.f()}}},{key:"onFilePause",value:function(r,n){this.on("upload-pause",function(i,a){r===i&&n(a)})}},{key:"onFileRemove",value:function(r,n){this.on("file-removed",function(i){r===i.id&&n(i.id)})}},{key:"onPause",value:function(r,n){this.on("upload-pause",function(i,a){r===i&&n(a)})}},{key:"onRetry",value:function(r,n){this.on("upload-retry",function(i){r===i&&n()})}},{key:"onRetryAll",value:function(r,n){var i=this;this.on("retry-all",function(){Ia(i,un)[un].getFile(r)&&n()})}},{key:"onPauseAll",value:function(r,n){var i=this;this.on("pause-all",function(){Ia(i,un)[un].getFile(r)&&n()})}},{key:"onCancelAll",value:function(r,n){var i=this;this.on("cancel-all",function(){Ia(i,un)[un].getFile(r)&&n.apply(void 0,arguments)})}},{key:"onResumeAll",value:function(r,n){var i=this;this.on("resume-all",function(){Ia(i,un)[un].getFile(r)&&n()})}}]),t}();function Vy(t){"@babel/helpers - typeof";return Vy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vy(t)}function Bat(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fte(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$at(n.key),n)}}function Gat(t,e,r){return e&&fte(t.prototype,e),r&&fte(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function $at(t){var e=zat(t,"string");return Vy(e)=="symbol"?e:String(e)}function zat(t,e){if(Vy(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Vy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _i(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Hat=0;function iS(t){return"__private_"+Hat+++"_"+t}var ka=iS("aliveTimer"),Ml=iS("isDone"),Wy=iS("onTimedOut"),Ul=iS("timeout"),Wat=function(){function t(e,r){Bat(this,t),Object.defineProperty(this,ka,{writable:!0,value:void 0}),Object.defineProperty(this,Ml,{writable:!0,value:!1}),Object.defineProperty(this,Wy,{writable:!0,value:void 0}),Object.defineProperty(this,Ul,{writable:!0,value:void 0}),_i(this,Ul)[Ul]=e,_i(this,Wy)[Wy]=function(){return r(e)}}return Gat(t,[{key:"progress",value:function(){_i(this,Ml)[Ml]||_i(this,Ul)[Ul]>0&&(clearTimeout(_i(this,ka)[ka]),_i(this,ka)[ka]=setTimeout(_i(this,Wy)[Wy],_i(this,Ul)[Ul]))}},{key:"done",value:function(){_i(this,Ml)[Ml]||(clearTimeout(_i(this,ka)[ka]),_i(this,ka)[ka]=void 0,_i(this,Ml)[Ml]=!0)}}]),t}(),oS=Wat;function Vat(t){return t?t.readyState!==0&&t.readyState!==4||t.status===0:!1}var Bl=Vat;function Ky(t){"@babel/helpers - typeof";return Ky=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ky(t)}function pte(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Qu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pte(Object(r),!0).forEach(function(n){Kat(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pte(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Kat(t,e,r){return e=yte(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yat(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hte(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yte(n.key),n)}}function Xat(t,e,r){return e&&hte(t.prototype,e),r&&hte(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function yte(t){var e=Qat(t,"string");return Ky(e)=="symbol"?e:String(e)}function Qat(t,e){if(Ky(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Ky(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function dte(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Jat=0;function mte(t){return"__private_"+Jat+++"_"+t}function vte(t,e){if(Bl(t))return new Mr(e,t);var r=new aa("Upload error",{cause:e});return r.request=t,r}function Zat(t){var e=t.data.slice(0,t.data.size,t.meta.type);return e}function eut(t,e,r){var n=Array.isArray(r.allowedMetaFields)?r.allowedMetaFields:Object.keys(e);n.forEach(function(i){t.append(i,e[i])})}function tut(t,e){var r=new FormData;eut(r,t.meta,e);var n=Zat(t);return t.name?r.append(e.fieldName,n,t.meta.name):r.append(e.fieldName,n),r}var rut=function(e){return e.data},Gq=mte("addEventHandlerForFile"),$q=mte("addEventHandlerIfFileStillExists"),gte=function(){function t(e,r){Yat(this,t),Object.defineProperty(this,$q,{value:iut}),Object.defineProperty(this,Gq,{value:nut}),this.uppy=e,this.opts=Qu({validateStatus:function(i){return i>=200&&i<300}},r),this.requests=r[Wu],this.uploaderEvents=Object.create(null),this.i18n=r.i18n}return Xat(t,[{key:"getOptions",value:function(r){var n,i=this.uppy,a=i.getState().xhrUpload,l=Qu(Qu(Qu(Qu({},this.opts),a||{}),r.xhrUpload||{}),{},{headers:Qu(Qu(Qu({},this.opts.headers),a==null?void 0:a.headers),(n=r.xhrUpload)==null?void 0:n.headers)});return l}},{key:"uploadLocalFile",value:function(r){var n=this,i=this.getOptions(r);return new Promise(function(a,l){var c=i.formData?tut(r,i):rut(r,i),f=new XMLHttpRequest;n.uploaderEvents[r.id]=new cte(n.uppy);var d=new oS(i.timeout,function(){f.abort(),m.done();var g=new Error(n.i18n("timedOut",{seconds:Math.ceil(i.timeout/1e3)}));n.uppy.emit("upload-error",r,g),l(g)}),y=Sn();f.upload.addEventListener("loadstart",function(){n.uppy.log("[AwsS3/XHRUpload] ".concat(y," started"))}),f.upload.addEventListener("progress",function(g){n.uppy.log("[AwsS3/XHRUpload] ".concat(y," progress: ").concat(g.loaded," / ").concat(g.total)),d.progress(),g.lengthComputable&&n.uppy.emit("upload-progress",n.uppy.getFile(r.id),{uploader:n,bytesUploaded:g.loaded,bytesTotal:g.total})}),f.addEventListener("load",function(g){if(n.uppy.log("[AwsS3/XHRUpload] ".concat(y," finished")),d.done(),m.done(),n.uploaderEvents[r.id]&&(n.uploaderEvents[r.id].remove(),n.uploaderEvents[r.id]=null),i.validateStatus(g.target.status,f.responseText,f)){var w=i.getResponseData(f.responseText,f),P=w[i.responseUrlFieldName],E={status:g.target.status,body:w,uploadURL:P};return n.uppy.emit("upload-success",n.uppy.getFile(r.id),E),P&&n.uppy.log("Download ".concat(r.name," from ").concat(P)),a(r)}var O=i.getResponseData(f.responseText,f),R=vte(f,i.getResponseError(f.responseText,f)),x={status:g.target.status,body:O};return n.uppy.emit("upload-error",r,R,x),l(R)}),f.addEventListener("error",function(){n.uppy.log("[AwsS3/XHRUpload] ".concat(y," errored")),d.done(),m.done(),n.uploaderEvents[r.id]&&(n.uploaderEvents[r.id].remove(),n.uploaderEvents[r.id]=null);var g=vte(f,i.getResponseError(f.responseText,f));return n.uppy.emit("upload-error",r,g),l(g)}),f.open(i.method.toUpperCase(),i.endpoint,!0),f.withCredentials=!!i.withCredentials,i.responseType!==""&&(f.responseType=i.responseType),Object.keys(i.headers).forEach(function(g){f.setRequestHeader(g,i.headers[g])});var m=n.requests.run(function(){return f.send(c),function(){d.done(),f.abort()}},{priority:1});dte(n,Gq)[Gq]("file-removed",r.id,function(){m.abort(),l(new Error("File removed"))}),dte(n,$q)[$q]("cancel-all",r.id,function(g){var w=g===void 0?{}:g,P=w.reason;P==="user"&&m.abort(),l(new Error("Upload cancelled"))})})}}]),t}();function nut(t,e,r){this.uploaderEvents[e].on(t,function(n){var i,a=(i=n==null?void 0:n.id)!=null?i:n;e===a&&r()})}function iut(t,e,r){var n=this;this.uploaderEvents[e].on(t,function(){n.uppy.getFile(e)&&r.apply(void 0,arguments)})}function out(t){return t.replace(/;.*$/,"")}function aut(t,e){var r=e.headers?e.headers["content-type"]:e.getResponseHeader("Content-Type");if(typeof r=="string"){var n=out(r).toLowerCase();if(n==="application/xml"||n==="text/xml"||n==="text/html"&&/^<\?xml /.test(t))return!0}return!1}var zq=aut;var bte={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};function Wq(){"use strict";Wq=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&ja(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(ja(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function wte(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Gl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?wte(Object(r),!0).forEach(function(n){Qy(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wte(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Qy(t,e,r){return e=Pte(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ote(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function uut(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){Ote(a,n,i,l,c,"next",f)}function c(f){Ote(a,n,i,l,c,"throw",f)}l(void 0)})}}function sut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ste(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Pte(n.key),n)}}function lut(t,e,r){return e&&Ste(t.prototype,e),r&&Ste(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pte(t){var e=cut(t,"string");return ja(e)=="symbol"?e:String(e)}function cut(t,e){if(ja(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ja(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function fut(t,e,r){return e=aS(e),Ete(t,Tte()?Reflect.construct(e,r||[],aS(t).constructor):e.apply(t,r))}function Ete(t,e){if(e&&(ja(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qn(t)}function Tte(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Tte=function(){return!!t})()}function aS(t){return aS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},aS(t)}function Qn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function put(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vq(t,e)}function Vq(t,e){return Vq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vq(t,e)}function ja(t){"@babel/helpers - typeof";return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ja(t)}var Ate;function fr(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var hut=0;function Ap(t){return"__private_"+hut+++"_"+t}var dut={version:"3.6.2"};function vut(t,e){return!t&&!e.startsWith("https://")&&!e.startsWith("http://")&&(e="https://".concat(e)),new URL(e,t||void 0).toString()}function Jy(t,e){var r=t.indexOf("<".concat(e,">")),n=t.indexOf("</".concat(e,">"),r);return r!==-1&&n!==-1?t.slice(r+e.length+2,n):""}function yut(t){if(t&&t.error){var e=new Error(t.message);throw Object.assign(e,t.error),e}return t}function mut(t,e){var r=e!=null&&typeof e.url=="string"&&(ja(e.fields)==="object"||e.fields==null);if(!r){var n=new TypeError("AwsS3: got incorrect result from 'getUploadParameters()' for file '".concat(t.name,"', expected an object '{ url, method, fields, headers }' but got '").concat(JSON.stringify(e),"' instead.\nSee https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format."));throw n}var i=e.method==null||/^p(u|os)t$/i.test(e.method);if(!i){var a=new TypeError("AwsS3: got incorrect method from 'getUploadParameters()' for file '".concat(t.name,"', expected  'PUT' or 'POST' but got '").concat(e.method,"' instead.\nSee https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format."));throw a}}function gut(t,e){if(zq(t,e)){var r=Jy(t,"Message");return new Error(r)}}var _te=!1,Xn=Ap("client"),Ki=Ap("requests"),$l=Ap("uploader"),Yy=Ap("handleUpload"),Xy=Ap("setCompanionHeaders"),Hq=Ap("getCompanionClientArgs");Ate=Symbol.for("uppy test: getClient");var Kq=function(t,e){put(r,t);function r(n,i){var a;if(sut(this,r),(i==null?void 0:i.shouldUseMultipart)!=null)return Ete(a,new $y(n,i));a=fut(this,r,[n,i]),Object.defineProperty(Qn(a),Xn,{writable:!0,value:void 0}),Object.defineProperty(Qn(a),Ki,{writable:!0,value:void 0}),Object.defineProperty(Qn(a),$l,{writable:!0,value:void 0}),Object.defineProperty(Qn(a),Yy,{writable:!0,value:function(){var c=uut(Wq().mark(function d(y){var m,g,w,P,E,O,R;return Wq().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return g=function(N){var j,k=N.id;(j=m[k])==null||j.abort()},m=Object.create(null),a.uppy.on("file-removed",g),w=a.uppy.getFilesByIds(y),P=Vu(w),E=Ku(P),a.uppy.emit("upload-start",E),O=fr(Qn(a),Ki)[Ki].wrapPromiseFunction(function(I){return a.opts.getUploadParameters(I)}),R=y.length,A.abrupt("return",Promise.allSettled(y.map(function(I,N){return m[I]=O(a.uppy.getFile(I)),m[I].then(function(j){delete m[I];var k=a.uppy.getFile(I);mut(k,j);var z=j.method,B=z===void 0?"POST":z,Y=j.url,Q=j.fields,X=j.headers,$={method:B,formData:B.toUpperCase()==="POST",endpoint:Y,allowedMetaFields:Q?Object.keys(Q):[]};return X&&($.headers=X),a.uppy.setFileState(k.id,{meta:Gl(Gl({},k.meta),Q),xhrUpload:$}),a.uploadFile(k.id,N,R)}).catch(function(j){delete m[I];var k=a.uppy.getFile(I);return a.uppy.emit("upload-error",k,j),Promise.reject(j)})})).finally(function(){a.uppy.off("file-removed",g)}));case 10:case"end":return A.stop()}},d)}));function f(d){return c.apply(this,arguments)}return f}()}),Object.defineProperty(Qn(a),Xy,{writable:!0,value:function(){return fr(Qn(a),Xn)[Xn].setCompanionHeaders(a.opts.companionHeaders),Promise.resolve()}}),Object.defineProperty(Qn(a),Hq,{writable:!0,value:function(f){var d=fr(Qn(a),$l)[$l].getOptions(f),y=Array.isArray(d.allowedMetaFields)?d.allowedMetaFields:Object.keys(f.meta);return Gl(Gl({},f.remote.body),{},{protocol:"multipart",endpoint:d.endpoint,size:f.data.size,fieldname:d.fieldName,metadata:Object.fromEntries(y.map(function(m){return[m,f.meta[m]]})),httpMethod:d.method,useFormData:d.formData,headers:typeof d.headers=="function"?d.headers(f):d.headers})}}),a.type="uploader",a.id=a.opts.id||"AwsS3",a.title="AWS S3",a.defaultLocale=bte;var l={timeout:30*1e3,limit:0,allowedMetaFields:[],getUploadParameters:a.getUploadParameters.bind(Qn(a)),shouldUseMultipart:!1,companionHeaders:{}};if(a.opts=Gl(Gl({},l),i),(i==null?void 0:i.allowedMetaFields)===void 0&&"metaFields"in a.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");return a.i18nInit(),fr(Qn(a),Xn)[Xn]=new Mn(n,i),fr(Qn(a),Ki)[Ki]=new wi(a.opts.limit),a}return lut(r,[{key:e,value:function(){return fr(this,Xn)[Xn]}},{key:"client",get:function(){return fr(this,Xn)[Xn]}},{key:"client",set:function(i){fr(this,Xn)[Xn]=i}},{key:"getUploadParameters",value:function(i){if(!this.opts.companionUrl)throw new Error("Expected a `companionUrl` option containing a Companion address.");var a=i.meta.name,l=i.meta.type,c=Object.fromEntries(this.opts.allowedMetaFields.filter(function(d){return i.meta[d]!=null}).map(function(d){return["metadata[".concat(d,"]"),i.meta[d].toString()]})),f=new URLSearchParams(Gl({filename:a,type:l},c));return fr(this,Xn)[Xn].get("s3/params?".concat(f)).then(yut)}},{key:"uploadFile",value:function(i,a,l){var c=this,f=this.uppy.getFile(i);if(this.uppy.log("uploading ".concat(a," of ").concat(l)),f.error)throw new Error(f.error);if(f.isRemote){var d=function(){return fr(c,Ki)[Ki]},y=new AbortController,m=function(P){P.id===f.id&&y.abort()};this.uppy.on("file-removed",m);var g=this.uppy.getRequestClientForFile(f).uploadRemoteFile(f,fr(this,Hq)[Hq](f),{signal:y.signal,getQueue:d});return fr(this,Ki)[Ki].wrapSyncFunction(function(){c.uppy.off("file-removed",m)},{priority:-1})(),g}return fr(this,$l)[$l].uploadLocalFile(f,a,l)}},{key:"install",value:function(){var i=this.uppy;i.addPreProcessor(fr(this,Xy)[Xy]),i.addUploader(fr(this,Yy)[Yy]);function a(c,f){var d=this;return zq(c,f)?{location:vut(f.responseURL,Jy(c,"Location")),bucket:Jy(c,"Bucket"),key:Jy(c,"Key"),etag:Jy(c,"ETag")}:d.method.toUpperCase()==="POST"?(_te||(i.log("[AwsS3] No response data found, make sure to set the success_action_status AWS SDK option to 201. See https://uppy.io/docs/aws-s3/#POST-Uploads","warning"),_te=!0),{location:null}):f.responseURL?{location:f.responseURL.replace(/\?.*$/,"")}:{location:null}}var l=Qy(Qy(Qy(Qy({fieldName:"file",responseUrlFieldName:"location",timeout:this.opts.timeout},Wu,fr(this,Ki)[Ki]),"responseType","text"),"getResponseData",this.opts.getResponseData||a),"getResponseError",gut);l.i18n=this.i18n,fr(this,$l)[$l]=new gte(i,l)}},{key:"uninstall",value:function(){this.uppy.removePreProcessor(fr(this,Xy)[Xy]),this.uppy.removeUploader(fr(this,Yy)[Yy])}}]),r}(ht,Ate);Kq.VERSION=dut.version;var qte="3.7.2",but=qte,wut=typeof atob=="function",Out=typeof btoa=="function",Rp=typeof Buffer=="function",xte=typeof TextDecoder=="function"?new TextDecoder:void 0,Rte=typeof TextEncoder=="function"?new TextEncoder:void 0,Sut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Zy=Array.prototype.slice.call(Sut),uS=function(t){var e={};return t.forEach(function(r,n){return e[r]=n}),e}(Zy),_ut=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,qr=String.fromCharCode.bind(String),Ite=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(r){return r};return new Uint8Array(Array.prototype.slice.call(t,0).map(e))},Fte=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,function(r){return r=="+"?"-":"_"})},Lte=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},Cte=function(e){for(var r,n,i,a,l="",c=e.length%3,f=0;f<e.length;){if((n=e.charCodeAt(f++))>255||(i=e.charCodeAt(f++))>255||(a=e.charCodeAt(f++))>255)throw new TypeError("invalid character found");r=n<<16|i<<8|a,l+=Zy[r>>18&63]+Zy[r>>12&63]+Zy[r>>6&63]+Zy[r&63]}return c?l.slice(0,c-3)+"===".substring(c):l},Qq=Out?function(t){return btoa(t)}:Rp?function(t){return Buffer.from(t,"binary").toString("base64")}:Cte,Yq=Rp?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var e=4096,r=[],n=0,i=t.length;n<i;n+=e)r.push(qr.apply(null,t.subarray(n,n+e)));return Qq(r.join(""))},sS=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return r?Fte(Yq(e)):Yq(e)},Put=function(e){if(e.length<2){var r=e.charCodeAt(0);return r<128?e:r<2048?qr(192|r>>>6)+qr(128|r&63):qr(224|r>>>12&15)+qr(128|r>>>6&63)+qr(128|r&63)}else{var r=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return qr(240|r>>>18&7)+qr(128|r>>>12&63)+qr(128|r>>>6&63)+qr(128|r&63)}},Eut=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Nte=function(e){return e.replace(Eut,Put)},kte=Rp?function(t){return Buffer.from(t,"utf8").toString("base64")}:Rte?function(t){return Yq(Rte.encode(t))}:function(t){return Qq(Nte(t))},xp=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return r?Fte(kte(e)):kte(e)},jte=function(e){return xp(e,!0)},Tut=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Aut=function(e){switch(e.length){case 4:var r=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=r-65536;return qr((n>>>10)+55296)+qr((n&1023)+56320);case 3:return qr((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return qr((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Dte=function(e){return e.replace(Tut,Aut)},Mte=function(e){if(e=e.replace(/\s+/g,""),!_ut.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));for(var r,n="",i,a,l=0;l<e.length;)r=uS[e.charAt(l++)]<<18|uS[e.charAt(l++)]<<12|(i=uS[e.charAt(l++)])<<6|(a=uS[e.charAt(l++)]),n+=i===64?qr(r>>16&255):a===64?qr(r>>16&255,r>>8&255):qr(r>>16&255,r>>8&255,r&255);return n},Jq=wut?function(t){return atob(Lte(t))}:Rp?function(t){return Buffer.from(t,"base64").toString("binary")}:Mte,Ute=Rp?function(t){return Ite(Buffer.from(t,"base64"))}:function(t){return Ite(Jq(t),function(e){return e.charCodeAt(0)})},Bte=function(e){return Ute(Gte(e))},xut=Rp?function(t){return Buffer.from(t,"base64").toString("utf8")}:xte?function(t){return xte.decode(Ute(t))}:function(t){return Dte(Jq(t))},Gte=function(e){return Lte(e.replace(/[-_]/g,function(r){return r=="-"?"+":"/"}))},Xq=function(e){return xut(Gte(e))},Rut=function(e){if(typeof e!="string")return!1;var r=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(r)||!/[^\s0-9a-zA-Z\-_]/.test(r)},$te=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},zte=function(){var e=function(n,i){return Object.defineProperty(String.prototype,n,$te(i))};e("fromBase64",function(){return Xq(this)}),e("toBase64",function(r){return xp(this,r)}),e("toBase64URI",function(){return xp(this,!0)}),e("toBase64URL",function(){return xp(this,!0)}),e("toUint8Array",function(){return Bte(this)})},Hte=function(){var e=function(n,i){return Object.defineProperty(Uint8Array.prototype,n,$te(i))};e("toBase64",function(r){return sS(this,r)}),e("toBase64URI",function(){return sS(this,!0)}),e("toBase64URL",function(){return sS(this,!0)})},Iut=function(){zte(),Hte()},Wte={version:qte,VERSION:but,atob:Jq,atobPolyfill:Mte,btoa:Qq,btoaPolyfill:Cte,fromBase64:Xq,toBase64:xp,encode:xp,encodeURI:jte,encodeURL:jte,utob:Nte,btou:Dte,decode:Xq,isValid:Rut,fromUint8Array:sS,toUint8Array:Bte,extendString:zte,extendUint8Array:Hte,extendBuiltins:Iut};var bre=Ce(ore());function Ip(t){"@babel/helpers - typeof";return Ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ip(t)}function are(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$ut(n.key),n)}}function Gut(t,e,r){return e&&are(t.prototype,e),r&&are(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function $ut(t){var e=zut(t,"string");return Ip(e)==="symbol"?e:String(e)}function zut(t,e){if(Ip(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Ip(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wut(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tm(t,e)}function Vut(t){var e=ure();return function(){var n=rm(t),i;if(e){var a=rm(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Kut(this,i)}}function Kut(t,e){if(e&&(Ip(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yut(t)}function Yut(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r2(t){var e=typeof Map=="function"?new Map:void 0;return r2=function(n){if(n===null||!Xut(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return cS(n,arguments,rm(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),tm(i,n)},r2(t)}function cS(t,e,r){return ure()?cS=Reflect.construct.bind():cS=function(i,a,l){var c=[null];c.push.apply(c,a);var f=Function.bind.apply(i,c),d=new f;return l&&tm(d,l.prototype),d},cS.apply(null,arguments)}function ure(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Xut(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch(e){return typeof t=="function"}}function tm(t,e){return tm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tm(t,e)}function rm(t){return rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rm(t)}var Qut=function(t){Wut(r,t);var e=Vut(r);function r(n){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(Hut(this,r),i=e.call(this,n),i.originalRequest=l,i.originalResponse=c,i.causingError=a,a!=null&&(n+=", caused by ".concat(a.toString())),l!=null){var f=l.getHeader("X-Request-ID")||"n/a",d=l.getMethod(),y=l.getURL(),m=c?c.getStatus():"n/a",g=c?c.getBody()||"":"n/a";n+=", originated from request (method: ".concat(d,", url: ").concat(y,", response code: ").concat(m,", response text: ").concat(g,", request id: ").concat(f,")")}return i.message=n,i}return Gut(r)}(r2(Error)),kp=Qut;var Jut=!1;function Ju(t){Jut&&console.log(t)}function n2(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,r=t==="x"?e:e&3|8;return r.toString(16)})}function i2(){"use strict";i2=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&zl(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(zl(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function sre(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Zut(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){sre(a,n,i,l,c,"next",f)}function c(f){sre(a,n,i,l,c,"throw",f)}l(void 0)})}}function mre(t,e){return nst(t)||rst(t,e)||tst(t,e)||est()}function est(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tst(t,e){if(t){if(typeof t=="string")return lre(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lre(t,e)}}function lre(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function rst(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function nst(t){if(Array.isArray(t))return t}function zl(t){"@babel/helpers - typeof";return zl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zl(t)}function cre(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function jp(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?cre(Object(r),!0).forEach(function(n){ist(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cre(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ist(t,e,r){return e=gre(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ost(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fre(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,gre(n.key),n)}}function ast(t,e,r){return e&&fre(t.prototype,e),r&&fre(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function gre(t){var e=ust(t,"string");return zl(e)==="symbol"?e:String(e)}function ust(t,e){if(zl(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(zl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var sst={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:Ore,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},wre=function(){function t(e,r){ost(this,t),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=e,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return ast(t,[{key:"findPreviousUploads",value:function(){var r=this;return this.options.fingerprint(this.file,this.options).then(function(n){return r._urlStorage.findUploadsByFingerprint(n)})}},{key:"resumeFromPreviousUpload",value:function(r){this.url=r.uploadUrl||null,this._parallelUploadUrls=r.parallelUploadUrls||null,this._urlStorageKey=r.urlStorageKey}},{key:"start",value:function(){var r=this,n=this.file;if(!n){this._emitError(new Error("tus: no file or stream to upload provided"));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));return}var i=this.options.retryDelays;if(i!=null&&Object.prototype.toString.call(i)!=="[object Array]"){this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var a=0,l=["uploadUrl","uploadSize","uploadLengthDeferred"];a<l.length;a++){var c=l[a];if(this.options[c]){this._emitError(new Error("tus: cannot use the ".concat(c," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(n,this.options).then(function(f){return f==null?Ju("No fingerprint was calculated meaning that the upload cannot be stored in the URL storage."):Ju("Calculated fingerprint: ".concat(f)),r._fingerprint=f,r._source?r._source:r.options.fileReader.openFile(n,r.options.chunkSize)}).then(function(f){if(r._source=f,r.options.uploadLengthDeferred)r._size=null;else if(r.options.uploadSize!=null){if(r._size=Number(r.options.uploadSize),Number.isNaN(r._size)){r._emitError(new Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(r._size=r._source.size,r._size==null){r._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}r.options.parallelUploads>1||r._parallelUploadUrls!=null?r._startParallelUpload():r._startSingleUpload()}).catch(function(f){r._emitError(f)})}},{key:"_startParallelUpload",value:function(){var r,n=this,i=this._size,a=0;this._parallelUploads=[];var l=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,c=(r=this.options.parallelUploadBoundaries)!==null&&r!==void 0?r:cst(this._source.size,l);this._parallelUploadUrls&&c.forEach(function(y,m){y.uploadUrl=n._parallelUploadUrls[m]||null}),this._parallelUploadUrls=new Array(c.length);var f=c.map(function(y,m){var g=0;return n._source.slice(y.start,y.end).then(function(w){var P=w.value;return new Promise(function(E,O){var R=jp(jp({},n.options),{},{uploadUrl:y.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:jp(jp({},n.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:E,onError:O,onProgress:function(I){a=a-g+I,g=I,n._emitProgress(a,i)},onUploadUrlAvailable:function(){n._parallelUploadUrls[m]=x.url,n._parallelUploadUrls.filter(function(I){return!!I}).length===c.length&&n._saveUploadInUrlStorage()}}),x=new t(P,R);x.start(),n._parallelUploads.push(x)})})}),d;Promise.all(f).then(function(){d=n._openRequest("POST",n.options.endpoint),d.setHeader("Upload-Concat","final;".concat(n._parallelUploadUrls.join(" ")));var y=pre(n.options.metadata);return y!==""&&d.setHeader("Upload-Metadata",y),n._sendRequest(d,null)}).then(function(y){if(!qp(y.getStatus(),200)){n._emitHttpError(d,y,"tus: unexpected response while creating upload");return}var m=y.getHeader("Location");if(m==null){n._emitHttpError(d,y,"tus: invalid or missing Location header");return}n.url=yre(n.options.endpoint,m),Ju("Created upload at ".concat(n.url)),n._emitSuccess()}).catch(function(y){n._emitError(y)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){Ju("Resuming upload from previous URL: ".concat(this.url)),this._resumeUpload();return}if(this.options.uploadUrl!=null){Ju("Resuming upload from provided URL: ".concat(this.options.uploadUrl)),this.url=this.options.uploadUrl,this._resumeUpload();return}Ju("Creating a new upload"),this._createUpload()}},{key:"abort",value:function(r){var n=this;return this._parallelUploads!=null&&this._parallelUploads.forEach(function(i){i.abort(r)}),this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!r||this.url==null?Promise.resolve():t.terminate(this.url,this.options).then(function(){return n._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(r,n,i,a){this._emitError(new kp(i,a,r,n))}},{key:"_emitError",value:function(r){var n=this;if(!this._aborted){if(this.options.retryDelays!=null){var i=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(i&&(this._retryAttempt=0),vre(r,this._retryAttempt,this.options)){var a=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){n.start()},a);return}}if(typeof this.options.onError=="function")this.options.onError(r);else throw r}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess()}},{key:"_emitProgress",value:function(r,n){typeof this.options.onProgress=="function"&&this.options.onProgress(r,n)}},{key:"_emitChunkComplete",value:function(r,n,i){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(r,n,i)}},{key:"_createUpload",value:function(){var r=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var n=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?n.setHeader("Upload-Defer-Length",1):n.setHeader("Upload-Length",this._size);var i=pre(this.options.metadata);i!==""&&n.setHeader("Upload-Metadata",i);var a;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,a=this._addChunkToRequest(n)):a=this._sendRequest(n,null),a.then(function(l){if(!qp(l.getStatus(),200)){r._emitHttpError(n,l,"tus: unexpected response while creating upload");return}var c=l.getHeader("Location");if(c==null){r._emitHttpError(n,l,"tus: invalid or missing Location header");return}if(r.url=yre(r.options.endpoint,c),Ju("Created upload at ".concat(r.url)),typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._size===0){r._emitSuccess(),r._source.close();return}r._saveUploadInUrlStorage().then(function(){r.options.uploadDataDuringCreation?r._handleUploadResponse(n,l):(r._offset=0,r._performUpload())})}).catch(function(l){r._emitHttpError(n,null,"tus: failed to create upload",l)})}},{key:"_resumeUpload",value:function(){var r=this,n=this._openRequest("HEAD",this.url),i=this._sendRequest(n,null);i.then(function(a){var l=a.getStatus();if(!qp(l,200)){if(l===423){r._emitHttpError(n,a,"tus: upload is currently locked; retry later");return}if(qp(l,400)&&r._removeFromUrlStorage(),!r.options.endpoint){r._emitHttpError(n,a,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}r.url=null,r._createUpload();return}var c=parseInt(a.getHeader("Upload-Offset"),10);if(Number.isNaN(c)){r._emitHttpError(n,a,"tus: invalid or missing offset value");return}var f=parseInt(a.getHeader("Upload-Length"),10);if(Number.isNaN(f)&&!r.options.uploadLengthDeferred){r._emitHttpError(n,a,"tus: invalid or missing length value");return}typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._saveUploadInUrlStorage().then(function(){if(c===f){r._emitProgress(f,f),r._emitSuccess();return}r._offset=c,r._performUpload()})}).catch(function(a){r._emitHttpError(n,null,"tus: failed to resume upload",a)})}},{key:"_performUpload",value:function(){var r=this;if(!this._aborted){var n;this.options.overridePatchMethod?(n=this._openRequest("POST",this.url),n.setHeader("X-HTTP-Method-Override","PATCH")):n=this._openRequest("PATCH",this.url),n.setHeader("Upload-Offset",this._offset);var i=this._addChunkToRequest(n);i.then(function(a){if(!qp(a.getStatus(),200)){r._emitHttpError(n,a,"tus: unexpected response while uploading chunk");return}r._handleUploadResponse(n,a)}).catch(function(a){r._aborted||r._emitHttpError(n,null,"tus: failed to upload chunk at offset ".concat(r._offset),a)})}}},{key:"_addChunkToRequest",value:function(r){var n=this,i=this._offset,a=this._offset+this.options.chunkSize;return r.setProgressHandler(function(l){n._emitProgress(i+l,n._size)}),r.setHeader("Content-Type","application/offset+octet-stream"),(a===1/0||a>this._size)&&!this.options.uploadLengthDeferred&&(a=this._size),this._source.slice(i,a).then(function(l){var c=l.value,f=l.done,d=c&&c.size?c.size:0;n.options.uploadLengthDeferred&&f&&(n._size=n._offset+d,r.setHeader("Upload-Length",n._size));var y=n._offset+d;return!n.options.uploadLengthDeferred&&f&&y!==n._size?Promise.reject(new Error("upload was configured with a size of ".concat(n._size," bytes, but the source is done after ").concat(y," bytes"))):c===null?n._sendRequest(r):(n._emitProgress(n._offset,n._size),n._sendRequest(r,c))})}},{key:"_handleUploadResponse",value:function(r,n){var i=parseInt(n.getHeader("Upload-Offset"),10);if(Number.isNaN(i)){this._emitHttpError(r,n,"tus: invalid or missing offset value");return}if(this._emitProgress(i,this._size),this._emitChunkComplete(i-this._offset,i,this._size),this._offset=i,i===this._size){this._emitSuccess(),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(r,n){var i=hre(r,n,this.options);return this._req=i,i}},{key:"_removeFromUrlStorage",value:function(){var r=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(n){r._emitError(n)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var r=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var n={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?n.parallelUploadUrls=this._parallelUploadUrls:n.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,n).then(function(i){r._urlStorageKey=i})}},{key:"_sendRequest",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return dre(r,n,this.options)}}],[{key:"terminate",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=hre("DELETE",r,n);return dre(i,null,n).then(function(a){if(a.getStatus()!==204)throw new kp("tus: unexpected response while terminating upload",null,i,a)}).catch(function(a){if(a instanceof kp||(a=new kp("tus: failed to terminate upload",a,i,null)),!vre(a,0,n))throw a;var l=n.retryDelays[0],c=n.retryDelays.slice(1),f=jp(jp({},n),{},{retryDelays:c});return new Promise(function(d){return setTimeout(d,l)}).then(function(){return t.terminate(r,f)})})}}]),t}();function pre(t){return Object.entries(t).map(function(e){var r=mre(e,2),n=r[0],i=r[1];return"".concat(n," ").concat(Wte.encode(String(i)))}).join(",")}function qp(t,e){return t>=e&&t<e+100}function hre(t,e,r){var n=r.httpStack.createRequest(t,e);n.setHeader("Tus-Resumable","1.0.0");var i=r.headers||{};if(Object.entries(i).forEach(function(l){var c=mre(l,2),f=c[0],d=c[1];n.setHeader(f,d)}),r.addRequestId){var a=n2();n.setHeader("X-Request-ID",a)}return n}function dre(t,e,r){return o2.apply(this,arguments)}function o2(){return o2=Zut(i2().mark(function t(e,r,n){var i;return i2().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(typeof n.onBeforeRequest!="function"){l.next=3;break}return l.next=3,n.onBeforeRequest(e);case 3:return l.next=5,e.send(r);case 5:if(i=l.sent,typeof n.onAfterResponse!="function"){l.next=9;break}return l.next=9,n.onAfterResponse(e,i);case 9:return l.abrupt("return",i);case 10:case"end":return l.stop()}},t)})),o2.apply(this,arguments)}function lst(){var t=!0;return typeof window!="undefined"&&"navigator"in window&&window.navigator.onLine===!1&&(t=!1),t}function vre(t,e,r){return r.retryDelays==null||e>=r.retryDelays.length||t.originalRequest==null?!1:r&&typeof r.onShouldRetry=="function"?r.onShouldRetry(t,e,r):Ore(t)}function Ore(t){var e=t.originalResponse?t.originalResponse.getStatus():0;return(!qp(e,400)||e===409||e===423)&&lst()}function yre(t,e){return new bre.default(e,t).toString()}function cst(t,e){for(var r=Math.floor(t/e),n=[],i=0;i<e;i++)n.push({start:r*i,end:r*(i+1)});return n[e-1].end=t,n}wre.defaultOptions=sst;var fS=wre;function nm(t){"@babel/helpers - typeof";return nm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nm(t)}function fst(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sre(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,hst(n.key),n)}}function pst(t,e,r){return e&&Sre(t.prototype,e),r&&Sre(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function hst(t){var e=dst(t,"string");return nm(e)==="symbol"?e:String(e)}function dst(t,e){if(nm(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(nm(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var _re=function(){function t(){fst(this,t)}return pst(t,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(r){return Promise.resolve([])}},{key:"removeUpload",value:function(r){return Promise.resolve()}},{key:"addUpload",value:function(r,n){return Promise.resolve(null)}}]),t}();function im(t){"@babel/helpers - typeof";return im=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},im(t)}function vst(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pre(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mst(n.key),n)}}function yst(t,e,r){return e&&Pre(t.prototype,e),r&&Pre(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function mst(t){var e=gst(t,"string");return im(e)==="symbol"?e:String(e)}function gst(t,e){if(im(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(im(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var u2=!1;try{u2="localStorage"in window,pS="tusSupport",a2=localStorage.getItem(pS),localStorage.setItem(pS,a2),a2===null&&localStorage.removeItem(pS)}catch(t){if(t.code===t.SECURITY_ERR||t.code===t.QUOTA_EXCEEDED_ERR)u2=!1;else throw t}var pS,a2,Ere=u2,Tre=function(){function t(){vst(this,t)}return yst(t,[{key:"findAllUploads",value:function(){var r=this._findEntries("tus::");return Promise.resolve(r)}},{key:"findUploadsByFingerprint",value:function(r){var n=this._findEntries("tus::".concat(r,"::"));return Promise.resolve(n)}},{key:"removeUpload",value:function(r){return localStorage.removeItem(r),Promise.resolve()}},{key:"addUpload",value:function(r,n){var i=Math.round(Math.random()*1e12),a="tus::".concat(r,"::").concat(i);return localStorage.setItem(a,JSON.stringify(n)),Promise.resolve(a)}},{key:"_findEntries",value:function(r){for(var n=[],i=0;i<localStorage.length;i++){var a=localStorage.key(i);if(a.indexOf(r)===0)try{var l=JSON.parse(localStorage.getItem(a));l.urlStorageKey=a,n.push(l)}catch(c){}}return n}}]),t}();function om(t){"@babel/helpers - typeof";return om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},om(t)}function s2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Are(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bst(n.key),n)}}function l2(t,e,r){return e&&Are(t.prototype,e),r&&Are(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function bst(t){var e=wst(t,"string");return om(e)==="symbol"?e:String(e)}function wst(t,e){if(om(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(om(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var xre=function(){function t(){s2(this,t)}return l2(t,[{key:"createRequest",value:function(r,n){return new Ost(r,n)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),t}();var Ost=function(){function t(e,r){s2(this,t),this._xhr=new XMLHttpRequest,this._xhr.open(e,r,!0),this._method=e,this._url=r,this._headers={}}return l2(t,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(r,n){this._xhr.setRequestHeader(r,n),this._headers[r]=n}},{key:"getHeader",value:function(r){return this._headers[r]}},{key:"setProgressHandler",value:function(r){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(n){n.lengthComputable&&r(n.loaded)})}},{key:"send",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(i,a){r._xhr.onload=function(){i(new Sst(r._xhr))},r._xhr.onerror=function(l){a(l)},r._xhr.send(n)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),t}(),Sst=function(){function t(e){s2(this,t),this._xhr=e}return l2(t,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(r){return this._xhr.getResponseHeader(r)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),t}();var _st=function(){return typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"},hS=_st;function c2(t){return new Promise(function(e,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var i=n.response;e(i)},n.onerror=function(i){r(i)},n.open("GET",t),n.send()})}var Pst=function(){return typeof window!="undefined"&&(typeof window.PhoneGap!="undefined"||typeof window.Cordova!="undefined"||typeof window.cordova!="undefined")},Rre=Pst;function f2(t){return new Promise(function(e,r){var n=new FileReader;n.onload=function(){var i=new Uint8Array(n.result);e({value:i})},n.onerror=function(i){r(i)},n.readAsArrayBuffer(t)})}function am(t){"@babel/helpers - typeof";return am=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},am(t)}function Est(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ire(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ast(n.key),n)}}function Tst(t,e,r){return e&&Ire(t.prototype,e),r&&Ire(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ast(t){var e=xst(t,"string");return am(e)==="symbol"?e:String(e)}function xst(t,e){if(am(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(am(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var p2=function(){function t(e){Est(this,t),this._file=e,this.size=e.size}return Tst(t,[{key:"slice",value:function(r,n){if(Rre())return f2(this._file.slice(r,n));var i=this._file.slice(r,n),a=n>=this.size;return Promise.resolve({value:i,done:a})}},{key:"close",value:function(){}}]),t}();function um(t){"@babel/helpers - typeof";return um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},um(t)}function Rst(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kre(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,kst(n.key),n)}}function Ist(t,e,r){return e&&kre(t.prototype,e),r&&kre(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function kst(t){var e=jst(t,"string");return um(e)==="symbol"?e:String(e)}function jst(t,e){if(um(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(um(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function jre(t){return t===void 0?0:t.size!==void 0?t.size:t.length}function qst(t,e){if(t.concat)return t.concat(e);if(t instanceof Blob)return new Blob([t,e],{type:t.type});if(t.set){var r=new t.constructor(t.length+e.length);return r.set(t),r.set(e,t.length),r}throw new Error("Unknown data type")}var qre=function(){function t(e){Rst(this,t),this._buffer=void 0,this._bufferOffset=0,this._reader=e,this._done=!1}return Ist(t,[{key:"slice",value:function(r,n){return r<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(r,n)}},{key:"_readUntilEnoughDataOrDone",value:function(r,n){var i=this,a=n<=this._bufferOffset+jre(this._buffer);if(this._done||a){var l=this._getDataFromBuffer(r,n),c=l==null?this._done:!1;return Promise.resolve({value:l,done:c})}return this._reader.read().then(function(f){var d=f.value,y=f.done;return y?i._done=!0:i._buffer===void 0?i._buffer=d:i._buffer=qst(i._buffer,d),i._readUntilEnoughDataOrDone(r,n)})}},{key:"_getDataFromBuffer",value:function(r,n){r>this._bufferOffset&&(this._buffer=this._buffer.slice(r-this._bufferOffset),this._bufferOffset=r);var i=jre(this._buffer)===0;return this._done&&i?null:this._buffer.slice(0,n-r)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),t}();function Hl(t){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hl(t)}function h2(){"use strict";h2=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Hl(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Hl(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function Fre(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Fst(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){Fre(a,n,i,l,c,"next",f)}function c(f){Fre(a,n,i,l,c,"throw",f)}l(void 0)})}}function Lst(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lre(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Nst(n.key),n)}}function Cst(t,e,r){return e&&Lre(t.prototype,e),r&&Lre(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Nst(t){var e=Dst(t,"string");return Hl(e)==="symbol"?e:String(e)}function Dst(t,e){if(Hl(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Hl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Cre=function(){function t(){Lst(this,t)}return Cst(t,[{key:"openFile",value:function(){var e=Fst(h2().mark(function n(i,a){var l;return h2().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!(hS()&&i&&typeof i.uri!="undefined")){f.next=11;break}return f.prev=1,f.next=4,c2(i.uri);case 4:return l=f.sent,f.abrupt("return",new p2(l));case 8:throw f.prev=8,f.t0=f.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(f.t0));case 11:if(!(typeof i.slice=="function"&&typeof i.size!="undefined")){f.next=13;break}return f.abrupt("return",Promise.resolve(new p2(i)));case 13:if(typeof i.read!="function"){f.next=18;break}if(a=Number(a),Number.isFinite(a)){f.next=17;break}return f.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return f.abrupt("return",Promise.resolve(new qre(i,a)));case 18:return f.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return f.stop()}},n,null,[[1,8]])}));function r(n,i){return e.apply(this,arguments)}return r}()}]),t}();function d2(t,e){return hS()?Promise.resolve(Mst(t,e)):Promise.resolve(["tus-br",t.name,t.type,t.size,t.lastModified,e.endpoint].join("-"))}function Mst(t,e){var r=t.exif?Ust(JSON.stringify(t.exif)):"noexif";return["tus-rn",t.name||"noname",t.size||"nosize",r,e.endpoint].join("/")}function Ust(t){var e=0;if(t.length===0)return e;for(var r=0;r<t.length;r++){var n=t.charCodeAt(r);e=(e<<5)-e+n,e&=e}return e}function Lp(t){"@babel/helpers - typeof";return Lp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lp(t)}function Bst(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nre(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ure(n.key),n)}}function Gst(t,e,r){return e&&Nre(t.prototype,e),r&&Nre(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function $st(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v2(t,e)}function v2(t,e){return v2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},v2(t,e)}function zst(t){var e=Vst();return function(){var n=dS(t),i;if(e){var a=dS(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Hst(this,i)}}function Hst(t,e){if(e&&(Lp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wst(t)}function Wst(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vst(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function dS(t){return dS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dS(t)}function Dre(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Fp(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Dre(Object(r),!0).forEach(function(n){Kst(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dre(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Kst(t,e,r){return e=Ure(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ure(t){var e=Yst(t,"string");return Lp(e)==="symbol"?e:String(e)}function Yst(t,e){if(Lp(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Lp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vS=Fp(Fp({},fS.defaultOptions),{},{httpStack:new xre,fileReader:new Cre,urlStorage:Ere?new Tre:new _re,fingerprint:d2}),Bre=function(t){$st(r,t);var e=zst(r);function r(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Bst(this,r),i=Fp(Fp({},vS),i),e.call(this,n,i)}return Gst(r,null,[{key:"terminate",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a=Fp(Fp({},vS),a),fS.terminate(i,a)}}]),r}(fS),Gre=window,Xst=Gre.XMLHttpRequest,Mre=Gre.Blob,Jxt=Xst&&Mre&&typeof Mre.prototype.slice=="function";function Qst(){return typeof window!="undefined"&&(typeof window.PhoneGap!="undefined"||typeof window.Cordova!="undefined"||typeof window.cordova!="undefined")}function Jst(){return typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"}function y2(t){return function(e,r){if(Qst()||Jst())return vS.fingerprint(e,r);var n=["tus",t.id,r.endpoint].join("-");return Promise.resolve(n)}}function Zu(t){"@babel/helpers - typeof";return Zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zu(t)}var Zst=["onShouldRetry","onBeforeRequest"];function elt(t,e){if(t==null)return{};var r=tlt(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function tlt(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function Vl(){"use strict";Vl=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Zu(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Zu(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function zre(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function S2(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){zre(a,n,i,l,c,"next",f)}function c(f){zre(a,n,i,l,c,"throw",f)}l(void 0)})}}function Hre(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function pr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Hre(Object(r),!0).forEach(function(n){rlt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hre(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function rlt(t,e,r){return e=Vre(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nlt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wre(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Vre(n.key),n)}}function ilt(t,e,r){return e&&Wre(t.prototype,e),r&&Wre(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Vre(t){var e=olt(t,"string");return Zu(e)=="symbol"?e:String(e)}function olt(t,e){if(Zu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Zu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function alt(t,e,r){return e=yS(e),ult(t,Kre()?Reflect.construct(e,r||[],yS(t).constructor):e.apply(t,r))}function ult(t,e){if(e&&(Zu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qa(t)}function Kre(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Kre=function(){return!!t})()}function yS(t){return yS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yS(t)}function qa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function slt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g2(t,e)}function g2(t,e){return g2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},g2(t,e)}function Wl(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var llt=0;function cm(t){return"__private_"+llt+++"_"+t}var clt={version:"3.5.4"},Yre={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[100,1e3,3e3,5e3],parallelUploads:1,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1},flt={limit:20,retryDelays:Yre.retryDelays,withCredentials:!1},lm=cm("retryDelayIterator"),b2=cm("uploadLocalFile"),w2=cm("getCompanionClientArgs"),m2=cm("uploadFiles"),sm=cm("handleUpload"),Cp=function(t){slt(e,t);function e(r,n){var i;nlt(this,e);var a,l;if(i=alt(this,e,[r,pr(pr({},flt),n)]),Object.defineProperty(qa(i),m2,{value:dlt}),Object.defineProperty(qa(i),w2,{value:hlt}),Object.defineProperty(qa(i),b2,{value:plt}),Object.defineProperty(qa(i),lm,{writable:!0,value:void 0}),Object.defineProperty(qa(i),sm,{writable:!0,value:function(){var c=S2(Vl().mark(function d(y){var m;return Vl().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(y.length!==0){w.next=3;break}return i.uppy.log("[Tus] No files to upload"),w.abrupt("return");case 3:return i.opts.limit===0&&i.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),i.uppy.log("[Tus] Uploading..."),m=i.uppy.getFilesByIds(y),w.next=8,Wl(qa(i),m2)[m2](m);case 8:case"end":return w.stop()}},d)}));function f(d){return c.apply(this,arguments)}return f}()}),i.type="uploader",i.id=i.opts.id||"Tus",(n==null?void 0:n.allowedMetaFields)===void 0&&"metaFields"in i.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");if("autoRetry"in n)throw new Error("The `autoRetry` option was deprecated and has been removed.");return i.requests=(a=i.opts.rateLimitedQueue)!=null?a:new wi(i.opts.limit),Wl(qa(i),lm)[lm]=(l=i.opts.retryDelays)==null?void 0:l.values(),i.uploaders=Object.create(null),i.uploaderEvents=Object.create(null),i.handleResetProgress=i.handleResetProgress.bind(qa(i)),i}return ilt(e,[{key:"handleResetProgress",value:function(){var n=pr({},this.uppy.getState().files);Object.keys(n).forEach(function(i){var a;if((a=n[i])!=null&&(a=a.tus)!=null&&a.uploadUrl){var l=pr({},n[i].tus);delete l.uploadUrl,n[i]=pr(pr({},n[i]),{},{tus:l})}}),this.uppy.setState({files:n})}},{key:"resetUploaderReferences",value:function(n,i){var a=this.uploaders[n];a&&(a.abort(),i!=null&&i.abort&&a.abort(!0),this.uploaders[n]=null),this.uploaderEvents[n]&&(this.uploaderEvents[n].remove(),this.uploaderEvents[n]=null)}},{key:"onReceiveUploadUrl",value:function(n,i){var a=this.uppy.getFile(n.id);a&&(!a.tus||a.tus.uploadUrl!==i)&&(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(a.id,{tus:pr(pr({},a.tus),{},{uploadUrl:i})}))}},{key:"install",value:function(){this.uppy.setState({capabilities:pr(pr({},this.uppy.getState().capabilities),{},{resumableUploads:!0})}),this.uppy.addUploader(Wl(this,sm)[sm]),this.uppy.on("reset-progress",this.handleResetProgress)}},{key:"uninstall",value:function(){this.uppy.setState({capabilities:pr(pr({},this.uppy.getState().capabilities),{},{resumableUploads:!1})}),this.uppy.removeUploader(Wl(this,sm)[sm])}}]),e}(ht);function plt(t){var e=this,r=this;return this.resetUploaderReferences(t.id),new Promise(function(n,i){var a,l,c,f=pr(pr({},e.opts),t.tus||{});typeof f.headers=="function"&&(f.headers=f.headers(t));var d=f.onShouldRetry,y=f.onBeforeRequest,m=elt(f,Zst),g=pr(pr({},Yre),m);g.fingerprint=y2(t),g.onBeforeRequest=function(){var x=S2(Vl().mark(function A(I){var N,j,k,z;return Vl().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(N=I.getUnderlyingObject(),N.withCredentials=!!f.withCredentials,typeof y=="function"&&(j=y(I,t)),!Nn(a,"shouldBeRequeued")){Y.next=11;break}if(a.shouldBeRequeued){Y.next=6;break}return Y.abrupt("return",Promise.reject());case 6:return z=new Promise(function(Q){k=Q}),a=e.requests.run(function(){return t.isPaused&&a.abort(),k(),function(){}}),Y.next=10,Promise.all([z,j]);case 10:return Y.abrupt("return",void 0);case 11:return Y.abrupt("return",j);case 12:case"end":return Y.stop()}},A)}));return function(A){return x.apply(this,arguments)}}(),g.onError=function(x){var A;e.uppy.log(x);var I=x.originalRequest!=null?x.originalRequest.getUnderlyingObject():null;Bl(I)&&(x=new Mr(x,I)),e.resetUploaderReferences(t.id),(A=a)==null||A.abort(),e.uppy.emit("upload-error",t,x),typeof f.onError=="function"&&f.onError(x),i(x)},g.onProgress=function(x,A){e.onReceiveUploadUrl(t,c.url),typeof f.onProgress=="function"&&f.onProgress(x,A),e.uppy.emit("upload-progress",e.uppy.getFile(t.id),{uploader:e,bytesUploaded:x,bytesTotal:A})},g.onSuccess=function(){var x,A={uploadURL:(x=c.url)!=null?x:void 0,status:200,body:{}};if(e.resetUploaderReferences(t.id),a.done(),e.uppy.emit("upload-success",e.uppy.getFile(t.id),A),c.url){var I=c.file.name;e.uppy.log("Download ".concat(I," from ").concat(c.url))}typeof f.onSuccess=="function"&&f.onSuccess(),n(c)};var w=function(A){var I,N=A==null||(I=A.originalResponse)==null?void 0:I.getStatus();if(N===429){if(!e.requests.isPaused){var j,k=(j=Wl(e,lm)[lm])==null?void 0:j.next();if(k==null||k.done)return!1;e.requests.rateLimit(k.value)}}else{if(N!=null&&N>400&&N<500&&N!==409&&N!==423)return!1;typeof navigator!="undefined"&&navigator.onLine===!1&&(e.requests.isPaused||(e.requests.pause(),window.addEventListener("online",function(){e.requests.resume()},{once:!0})))}return a.abort(),a={shouldBeRequeued:!0,abort:function(){this.shouldBeRequeued=!1},done:function(){throw new Error("Cannot mark a queued request as done: this indicates a bug")},fn:function(){throw new Error("Cannot run a queued request: this indicates a bug")}},!0};d!=null?g.onShouldRetry=function(x,A){return d(x,A,f,w)}:g.onShouldRetry=w;var P=function(A,I,N){Nn(A,I)&&!Nn(A,N)&&(A[N]=A[I])},E={},O=Array.isArray(f.allowedMetaFields)?f.allowedMetaFields:Object.keys(t.meta);O.forEach(function(x){E[x]=String(t.meta[x])}),P(E,"type","filetype"),P(E,"name","filename"),g.metadata=E,c=new Bre(t.data,g),e.uploaders[t.id]=c;var R=new Pp(e.uppy);e.uploaderEvents[t.id]=R,l=function(){return t.isPaused||c.start(),function(){}},c.findPreviousUploads().then(function(x){var A=x[0];A&&(e.uppy.log("[Tus] Resuming upload of ".concat(t.id," started at ").concat(A.creationTime)),c.resumeFromPreviousUpload(A))}),a=e.requests.run(l),R.onFileRemove(t.id,function(x){a.abort(),e.resetUploaderReferences(t.id,{abort:!!c.url}),n("upload ".concat(x," was removed"))}),R.onPause(t.id,function(x){a.abort(),x?c.abort():a=e.requests.run(l)}),R.onPauseAll(t.id,function(){a.abort(),c.abort()}),R.onCancelAll(t.id,function(x){var A=x===void 0?{}:x,I=A.reason;I==="user"&&(a.abort(),r.resetUploaderReferences(t.id,{abort:!!c.url})),n("upload ".concat(t.id," was canceled"))}),R.onResumeAll(t.id,function(){a.abort(),t.error&&c.abort(),a=e.requests.run(l)})}).catch(function(n){throw e.uppy.emit("upload-error",t,n),n})}function hlt(t){var e,r=pr({},this.opts);return t.tus&&Object.assign(r,t.tus),pr(pr({},(e=t.remote)==null?void 0:e.body),{},{endpoint:r.endpoint,uploadUrl:r.uploadUrl,protocol:"tus",size:t.data.size,headers:r.headers,metadata:t.meta})}function dlt(t){return O2.apply(this,arguments)}function O2(){return O2=S2(Vl().mark(function t(e){var r=this,n,i;return Vl().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return n=Vu(e),i=Ku(n),this.uppy.emit("upload-start",i),l.next=5,Promise.allSettled(n.map(function(c){if(c.isRemote){var f=function(){return r.requests},d=new AbortController,y=function(w){w.id===c.id&&d.abort()};r.uppy.on("file-removed",y);var m=r.uppy.getRequestClientForFile(c).uploadRemoteFile(c,Wl(r,w2)[w2](c),{signal:d.signal,getQueue:f});return r.requests.wrapSyncFunction(function(){r.uppy.off("file-removed",y)},{priority:-1})(),m}return Wl(r,b2)[b2](c)}));case 5:case"end":return l.stop()}},t,this)})),O2.apply(this,arguments)}Cp.VERSION=clt.version;var tne=Ce(P2(),1);function es(t){"@babel/helpers - typeof";return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},es(t)}function x2(){"use strict";x2=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&es(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(es(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function Xre(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function ylt(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){Xre(a,n,i,l,c,"next",f)}function c(f){Xre(a,n,i,l,c,"throw",f)}l(void 0)})}}function mlt(t,e){return Olt(t)||wlt(t,e)||blt(t,e)||glt()}function glt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function blt(t,e){if(t){if(typeof t=="string")return Qre(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qre(t,e)}}function Qre(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function wlt(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function Olt(t){if(Array.isArray(t))return t}function Slt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jre(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Plt(n.key),n)}}function _lt(t,e,r){return e&&Jre(t.prototype,e),r&&Jre(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Plt(t){var e=Elt(t,"string");return es(e)=="symbol"?e:String(e)}function Elt(t,e){if(es(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(es(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tlt(t,e,r){return e=gS(e),Alt(t,ene()?Reflect.construct(e,r||[],gS(t).constructor):e.apply(t,r))}function Alt(t,e){if(e&&(es(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zn(t)}function ene(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ene=function(){return!!t})()}function gS(t){return gS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gS(t)}function Zn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xlt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&R2(t,e)}function R2(t,e){return R2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},R2(t,e)}function Je(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Rlt=0;function qo(t){return"__private_"+Rlt+++"_"+t}var Ilt="ASSEMBLY_UPLOADING",I2="ASSEMBLY_EXECUTING",k2="ASSEMBLY_COMPLETED",Zre=[Ilt,I2,k2];function mS(t,e){return Zre.indexOf(t)>=Zre.indexOf(e)}var Yl=qo("rateLimitedQueue"),fm=qo("fetchWithNetworkError"),Kl=qo("previousFetchStatusStillPending"),Ut=qo("sse"),j2=qo("onFinished"),E2=qo("connectServerSentEvents"),Yi=qo("onError"),T2=qo("beginPolling"),Fa=qo("fetchStatus"),A2=qo("diffStatus"),klt=function(t){xlt(e,t);function e(r,n){var i;return Slt(this,e),i=Tlt(this,e),Object.defineProperty(Zn(i),A2,{value:Nlt}),Object.defineProperty(Zn(i),Fa,{value:Clt}),Object.defineProperty(Zn(i),T2,{value:Llt}),Object.defineProperty(Zn(i),Yi,{value:Flt}),Object.defineProperty(Zn(i),E2,{value:qlt}),Object.defineProperty(Zn(i),j2,{value:jlt}),Object.defineProperty(Zn(i),Yl,{writable:!0,value:void 0}),Object.defineProperty(Zn(i),fm,{writable:!0,value:void 0}),Object.defineProperty(Zn(i),Kl,{writable:!0,value:!1}),Object.defineProperty(Zn(i),Ut,{writable:!0,value:void 0}),i.status=r,i.pollInterval=null,i.closed=!1,Je(Zn(i),Yl)[Yl]=n,Je(Zn(i),fm)[fm]=n.wrapPromiseFunction(al),i}return _lt(e,[{key:"connect",value:function(){Je(this,E2)[E2](),Je(this,T2)[T2]()}},{key:"update",value:function(){return Je(this,Fa)[Fa]({diff:!0})}},{key:"updateStatus",value:function(n){Je(this,A2)[A2](this.status,n),this.status=n}},{key:"close",value:function(){this.closed=!0,Je(this,Ut)[Ut]&&(Je(this,Ut)[Ut].close(),Je(this,Ut)[Ut]=null),clearInterval(this.pollInterval),this.pollInterval=null}}]),e}(tne.default);function jlt(){this.emit("finished"),this.close()}function qlt(){var t=this;Je(this,Ut)[Ut]=new EventSource("".concat(this.status.websocket_url,"?assembly=").concat(this.status.assembly_id)),Je(this,Ut)[Ut].addEventListener("open",function(){clearInterval(t.pollInterval),t.pollInterval=null}),Je(this,Ut)[Ut].addEventListener("message",function(e){e.data==="assembly_finished"&&Je(t,j2)[j2](),e.data==="assembly_uploading_finished"&&t.emit("executing"),e.data==="assembly_upload_meta_data_extracted"&&(t.emit("metadata"),Je(t,Fa)[Fa]({diff:!1}))}),Je(this,Ut)[Ut].addEventListener("assembly_upload_finished",function(e){var r=JSON.parse(e.data);t.emit("upload",r),t.status.uploads.push(r)}),Je(this,Ut)[Ut].addEventListener("assembly_result_finished",function(e){var r,n,i=JSON.parse(e.data),a=mlt(i,2),l=a[0],c=a[1];t.emit("result",l,c),((n=(r=t.status.results)[l])!=null?n:r[l]=[]).push(c)}),Je(this,Ut)[Ut].addEventListener("assembly_execution_progress",function(e){var r=JSON.parse(e.data);t.emit("execution-progress",r)}),Je(this,Ut)[Ut].addEventListener("assembly_error",function(e){try{Je(t,Yi)[Yi](JSON.parse(e.data))}catch(r){Je(t,Yi)[Yi](new Error(e.data))}Je(t,Fa)[Fa]({diff:!1})})}function Flt(t){this.emit("error",Object.assign(new Error(t.message),t)),this.close()}function Llt(){var t=this;this.pollInterval=setInterval(function(){Je(t,Fa)[Fa]()},2e3)}function Clt(t){return q2.apply(this,arguments)}function q2(){return q2=ylt(x2().mark(function t(e){var r,n,i,a,l;return x2().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(r=e===void 0?{}:e,n=r.diff,i=n===void 0?!0:n,!(this.closed||Je(this,Yl)[Yl].isPaused||Je(this,Kl)[Kl])){f.next=3;break}return f.abrupt("return");case 3:return f.prev=3,Je(this,Kl)[Kl]=!0,f.next=7,Je(this,fm)[fm](this.status.assembly_ssl_url);case 7:if(a=f.sent,Je(this,Kl)[Kl]=!1,!this.closed){f.next=11;break}return f.abrupt("return");case 11:if(a.status!==429){f.next=14;break}return Je(this,Yl)[Yl].rateLimit(2e3),f.abrupt("return");case 14:if(a.ok){f.next=17;break}return Je(this,Yi)[Yi](new Mr(a.statusText)),f.abrupt("return");case 17:return f.next=19,a.json();case 19:if(l=f.sent,!this.closed){f.next=22;break}return f.abrupt("return");case 22:this.emit("status",l),i?this.updateStatus(l):this.status=l,f.next=29;break;case 26:f.prev=26,f.t0=f.catch(3),Je(this,Yi)[Yi](f.t0);case 29:case"end":return f.stop()}},t,this,[[3,26]])})),q2.apply(this,arguments)}function Nlt(t,e){var r=this,n=t.ok,i=e.ok;if(e.error&&!t.error)return Je(this,Yi)[Yi](e);var a=mS(i,I2)&&!mS(n,I2);a&&this.emit("executing"),Object.keys(e.uploads).filter(function(l){return!Nn(t.uploads,l)}).forEach(function(l){r.emit("upload",e.uploads[l])}),a&&this.emit("metadata"),Object.keys(e.results).forEach(function(l){var c=e.results[l],f=t.results[l];c.filter(function(d){return!f||!f.some(function(y){return y.id===d.id})}).forEach(function(d){r.emit("result",l,d)})}),mS(i,k2)&&!mS(n,k2)&&this.emit("finished")}var F2=klt;function rs(t){"@babel/helpers - typeof";return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rs(t)}function Lr(){"use strict";Lr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&rs(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(rs(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function rne(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function ts(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){rne(a,n,i,l,c,"next",f)}function c(f){rne(a,n,i,l,c,"throw",f)}l(void 0)})}}function nne(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Dlt(n.key),n)}}function ine(t,e,r){return e&&nne(t.prototype,e),r&&nne(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Dlt(t){var e=Mlt(t,"string");return rs(e)=="symbol"?e:String(e)}function Mlt(t,e){if(rs(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(rs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function one(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ult(t,e,r){return e=dm(e),Blt(t,N2()?Reflect.construct(e,r||[],dm(t).constructor):e.apply(t,r))}function Blt(t,e){if(e&&(rs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Glt(t)}function Glt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $lt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hm(t,e)}function L2(t){var e=typeof Map=="function"?new Map:void 0;return L2=function(n){if(n===null||!Hlt(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return zlt(n,arguments,dm(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),hm(i,n)},L2(t)}function zlt(t,e,r){if(N2())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&hm(i,r.prototype),i}function N2(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(N2=function(){return!!t})()}function Hlt(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch(e){return typeof t=="function"}}function hm(t,e){return hm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hm(t,e)}function dm(t){return dm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dm(t)}function It(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Wlt=0;function bS(t){return"__private_"+Wlt+++"_"+t}var ane="/assemblies",Vlt=function(t){$lt(e,t);function e(r,n,i){var a;return one(this,e),a=Ult(this,e,[r]),a.details=n,a.assembly=i,a}return ine(e)}(L2(Error)),sn=bS("headers"),pm=bS("fetchWithNetworkError"),Fr=bS("fetchJSON"),ei=bS("reportError"),une=function(){function t(e){var r=this;one(this,t),Object.defineProperty(this,Fr,{value:Klt}),Object.defineProperty(this,sn,{writable:!0,value:{}}),Object.defineProperty(this,pm,{writable:!0,value:void 0}),Object.defineProperty(this,ei,{writable:!0,value:function(i,a){if(r.opts.errorReporting===!1)throw i;var l={type:a.type};throw a.assembly&&(l.assembly=a.assembly.assembly_id,l.instance=a.assembly.instance),a.url&&(l.endpoint=a.url),r.submitError(i,l).catch(function(){}),i}}),this.opts=e,this.opts.client!=null&&(It(this,sn)[sn]["Transloadit-Client"]=this.opts.client),It(this,pm)[pm]=this.opts.rateLimitedQueue.wrapPromiseFunction(al)}return ine(t,[{key:"createAssembly",value:function(){var e=ts(Lr().mark(function n(i){var a=this,l,c,f,d,y,m;return Lr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return l=i.params,c=i.fields,f=i.signature,d=i.expectedFiles,y=new FormData,y.append("params",typeof l=="string"?l:JSON.stringify(l)),f&&y.append("signature",f),Object.keys(c).forEach(function(P){y.append(P,String(c[P]))}),y.append("num_expected_upload_files",String(d)),m=new URL(ane,"".concat(this.opts.service)).href,w.abrupt("return",It(this,Fr)[Fr](m,{method:"POST",headers:It(this,sn)[sn],body:y}).catch(function(P){return It(a,ei)[ei](P,{url:m,type:"API_ERROR"})}));case 8:case"end":return w.stop()}},n,this)}));function r(n){return e.apply(this,arguments)}return r}()},{key:"reserveFile",value:function(){var e=ts(Lr().mark(function n(i,a){var l=this,c,f;return Lr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return c=encodeURIComponent(a.size),f="".concat(i.assembly_ssl_url,"/reserve_file?size=").concat(c),y.abrupt("return",It(this,Fr)[Fr](f,{method:"POST",headers:It(this,sn)[sn]}).catch(function(m){return It(l,ei)[ei](m,{assembly:i,file:a,url:f,type:"API_ERROR"})}));case 3:case"end":return y.stop()}},n,this)}));function r(n,i){return e.apply(this,arguments)}return r}()},{key:"addFile",value:function(){var e=ts(Lr().mark(function n(i,a){var l=this,c,f,d,y,m,g;return Lr().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(a.uploadURL){P.next=2;break}return P.abrupt("return",Promise.reject(new Error("File does not have an `uploadURL`.")));case 2:return c=encodeURIComponent(a.size),f=encodeURIComponent(a.uploadURL),d=encodeURIComponent(a.name),y="file",m="size=".concat(c,"&filename=").concat(d,"&fieldname=").concat(y,"&s3Url=").concat(f),g="".concat(i.assembly_ssl_url,"/add_file?").concat(m),P.abrupt("return",It(this,Fr)[Fr](g,{method:"POST",headers:It(this,sn)[sn]}).catch(function(E){return It(l,ei)[ei](E,{assembly:i,file:a,url:g,type:"API_ERROR"})}));case 9:case"end":return P.stop()}},n,this)}));function r(n,i){return e.apply(this,arguments)}return r}()},{key:"updateNumberOfFilesInAssembly",value:function(){var e=ts(Lr().mark(function n(i,a){var l=this,c,f;return Lr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return c=new URL(i.assembly_ssl_url),c.pathname="/update_assemblies",f=JSON.stringify({assembly_updates:[{assembly_id:i.assembly_id,num_expected_upload_files:a}]}),y.abrupt("return",It(this,Fr)[Fr](c,{method:"POST",headers:It(this,sn)[sn],body:f}).catch(function(m){return It(l,ei)[ei](m,{url:c,type:"API_ERROR"})}));case 4:case"end":return y.stop()}},n,this)}));function r(n,i){return e.apply(this,arguments)}return r}()},{key:"cancelAssembly",value:function(){var e=ts(Lr().mark(function n(i){var a=this,l;return Lr().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return l=i.assembly_ssl_url,f.abrupt("return",It(this,Fr)[Fr](l,{method:"DELETE",headers:It(this,sn)[sn]}).catch(function(d){return It(a,ei)[ei](d,{url:l,type:"API_ERROR"})}));case 2:case"end":return f.stop()}},n,this)}));function r(n){return e.apply(this,arguments)}return r}()},{key:"getAssemblyStatus",value:function(){var e=ts(Lr().mark(function n(i){var a=this;return Lr().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",It(this,Fr)[Fr](i,{headers:It(this,sn)[sn]}).catch(function(f){return It(a,ei)[ei](f,{url:i,type:"STATUS_ERROR"})}));case 1:case"end":return c.stop()}},n,this)}));function r(n){return e.apply(this,arguments)}return r}()},{key:"submitError",value:function(){var e=ts(Lr().mark(function n(i,a){var l,c,f,d,y;return Lr().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return l=a===void 0?{}:a,c=l.endpoint,f=l.instance,d=l.assembly,y=i.details?"".concat(i.message," (").concat(i.details,")"):i.message,g.abrupt("return",It(this,Fr)[Fr]("https://transloaditstatus.com/client_error",{method:"POST",body:JSON.stringify({endpoint:c,instance:f,assembly_id:d,agent:typeof navigator!="undefined"?navigator.userAgent:"",client:this.opts.client,error:y})}));case 3:case"end":return g.stop()}},n,this)}));function r(n,i){return e.apply(this,arguments)}return r}()}]),t}();function Klt(){return C2.apply(this,arguments)}function C2(){return C2=ts(Lr().mark(function t(){var e,r,n,i,a=arguments;return Lr().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(e=It(this,pm))[pm].apply(e,a);case 2:if(r=c.sent,r.status!==429){c.next=6;break}return this.opts.rateLimitedQueue.rateLimit(2e3),c.abrupt("return",(n=It(this,Fr))[Fr].apply(n,a));case 6:if(r.ok){c.next=12;break}if(i=new Error(r.statusText),i.statusCode=r.status,"".concat(a.length<=0?void 0:a[0]).endsWith(ane)){c.next=11;break}return c.abrupt("return",Promise.reject(i));case 11:return c.abrupt("return",r.json().then(function(f){if(!f.error)throw i;var d=new Vlt(f.error,f.message,f);throw f.assembly_id&&(d.details+=" Assembly ID: ".concat(f.assembly_id)),d},function(f){throw f.cause=i,f}));case 12:return c.abrupt("return",r.json());case 13:case"end":return c.stop()}},t,this)})),C2.apply(this,arguments)}function Ql(t){"@babel/helpers - typeof";return Ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ql(t)}function Xl(){"use strict";Xl=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&Ql(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(Ql(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function Ylt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sne(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Qlt(n.key),n)}}function Xlt(t,e,r){return e&&sne(t.prototype,e),r&&sne(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qlt(t){var e=Jlt(t,"string");return Ql(e)=="symbol"?e:String(e)}function Jlt(t,e){if(Ql(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Ql(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lne(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function D2(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){lne(a,n,i,l,c,"next",f)}function c(f){lne(a,n,i,l,c,"throw",f)}l(void 0)})}}function Zlt(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=ect(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(d){throw d},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,l=!1,c;return{s:function(){r=r.call(t)},n:function(){var d=r.next();return a=d.done,d},e:function(d){l=!0,c=d},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function ect(t,e){if(t){if(typeof t=="string")return cne(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cne(t,e)}}function cne(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function U2(t){if(t==null)throw new Error("Transloadit: The `params` option is required.");if(typeof t=="string")try{t=JSON.parse(t)}catch(e){throw new aa("Transloadit: The `params` option is a malformed JSON string.",{cause:e})}if(!t.auth||!t.auth.key)throw new Error("Transloadit: The `params.auth.key` option is required. You can find your Transloadit API key at https://transloadit.com/c/template-credentials")}function tct(t){var e=Object.create(null),r=Zlt(t.filter(Boolean)),n;try{for(r.s();!(n=r.n()).done;){var i=n.value,a=i.fileIDs,l=i.options,c=JSON.stringify(l);c in e?e[c].fileIDArrays.push(a):e[c]={options:l,fileIDArrays:[a]}}}catch(f){r.e(f)}finally{r.f()}return Object.values(e).map(function(f){var d=f.options,y=f.fileIDArrays;return{options:d,fileIDs:y.flat(1)}})}function fne(t,e){return M2.apply(this,arguments)}function M2(){return M2=D2(Xl().mark(function t(e,r){var n,i;return Xl().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(typeof r.assemblyOptions!="function"){l.next=6;break}return l.next=3,r.assemblyOptions(e,r);case 3:l.t0=l.sent,l.next=7;break;case 6:l.t0=r.assemblyOptions;case 7:return n=l.t0,U2(n.params),i=n.fields,Array.isArray(i)?n.fields=e==null?{}:Object.fromEntries(i.map(function(c){return[c,e.meta[c]]})):i==null&&(n.fields={}),l.abrupt("return",n);case 12:case"end":return l.stop()}},t)})),M2.apply(this,arguments)}var rct=function(){function t(e,r){Ylt(this,t),this.files=e,this.opts=r}return Xlt(t,[{key:"build",value:function(){var e=D2(Xl().mark(function n(){var i,a;return Xl().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(i=this.opts,!(this.files.length>0)){c.next=3;break}return c.abrupt("return",Promise.all(this.files.map(function(){var f=D2(Xl().mark(function d(y){var m;return Xl().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(y!=null){w.next=2;break}return w.abrupt("return",void 0);case 2:return w.next=4,fne(y,i);case 4:if(m=w.sent,y!=null){w.next=7;break}return w.abrupt("return",void 0);case 7:return w.abrupt("return",{fileIDs:[y.id],options:m});case 8:case"end":return w.stop()}},d)}));return function(d){return f.apply(this,arguments)}}())).then(tct));case 3:if(!i.alwaysRunAssembly){c.next=8;break}return c.next=6,fne(null,i);case 6:return a=c.sent,c.abrupt("return",[{fileIDs:[],options:a}]);case 8:return c.abrupt("return",[]);case 9:case"end":return c.stop()}},n,this)}));function r(){return e.apply(this,arguments)}return r}()}]),t}(),pne=rct;var vne=Ce(P2(),1);function Np(t){"@babel/helpers - typeof";return Np=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Np(t)}function hne(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ict(n.key),n)}}function nct(t,e,r){return e&&hne(t.prototype,e),r&&hne(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ict(t){var e=oct(t,"string");return Np(e)=="symbol"?e:String(e)}function oct(t,e){if(Np(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Np(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function act(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uct(t,e,r){return e=wS(e),sct(t,dne()?Reflect.construct(e,r||[],wS(t).constructor):e.apply(t,r))}function sct(t,e){if(e&&(Np(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ze(t)}function dne(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dne=function(){return!!t})()}function wS(t){return wS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wS(t)}function Ze(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lct(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$2(t,e)}function $2(t,e){return $2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$2(t,e)}function Be(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var cct=0;function ti(t){return"__private_"+cct+++"_"+t}var vm=ti("assemblyIDs"),Zl=ti("remaining"),ym=ti("resolve"),B2=ti("reject"),yt=ti("uppy"),La=ti("watching"),mm=ti("onAssemblyComplete"),gm=ti("onAssemblyCancel"),ec=ti("onAssemblyError"),bm=ti("onImportError"),Jl=ti("checkAllComplete"),z2=ti("removeListeners"),G2=ti("addListeners"),fct=function(t){lct(e,t);function e(r,n){var i;return act(this,e),i=uct(this,e),Object.defineProperty(Ze(i),G2,{value:vct}),Object.defineProperty(Ze(i),z2,{value:dct}),Object.defineProperty(Ze(i),Jl,{value:hct}),Object.defineProperty(Ze(i),La,{value:pct}),Object.defineProperty(Ze(i),vm,{writable:!0,value:void 0}),Object.defineProperty(Ze(i),Zl,{writable:!0,value:void 0}),Object.defineProperty(Ze(i),ym,{writable:!0,value:void 0}),Object.defineProperty(Ze(i),B2,{writable:!0,value:void 0}),Object.defineProperty(Ze(i),yt,{writable:!0,value:void 0}),Object.defineProperty(Ze(i),mm,{writable:!0,value:function(l){Be(Ze(i),La)[La](l.assembly_id)&&(Be(Ze(i),yt)[yt].log("[Transloadit] AssemblyWatcher: Got Assembly finish ".concat(l.assembly_id)),i.emit("assembly-complete",l.assembly_id),Be(Ze(i),Jl)[Jl]())}}),Object.defineProperty(Ze(i),gm,{writable:!0,value:function(l){Be(Ze(i),La)[La](l.assembly_id)&&Be(Ze(i),Jl)[Jl]()}}),Object.defineProperty(Ze(i),ec,{writable:!0,value:function(l,c){Be(Ze(i),La)[La](l.assembly_id)&&(Be(Ze(i),yt)[yt].log("[Transloadit] AssemblyWatcher: Got Assembly error ".concat(l.assembly_id)),Be(Ze(i),yt)[yt].log(c),i.emit("assembly-error",l.assembly_id,c),Be(Ze(i),Jl)[Jl]())}}),Object.defineProperty(Ze(i),bm,{writable:!0,value:function(l,c,f){Be(Ze(i),La)[La](l.assembly_id)&&Be(Ze(i),ec)[ec](l,f)}}),Be(Ze(i),yt)[yt]=r,Be(Ze(i),vm)[vm]=n,Be(Ze(i),Zl)[Zl]=n.length,i.promise=new Promise(function(a,l){Be(Ze(i),ym)[ym]=a,Be(Ze(i),B2)[B2]=l}),Be(Ze(i),G2)[G2](),i}return nct(e)}(vne.default);function pct(t){return Be(this,vm)[vm].indexOf(t)!==-1}function hct(){Be(this,Zl)[Zl]-=1,Be(this,Zl)[Zl]===0&&(Be(this,z2)[z2](),Be(this,ym)[ym]())}function dct(){Be(this,yt)[yt].off("transloadit:complete",Be(this,mm)[mm]),Be(this,yt)[yt].off("transloadit:assembly-cancel",Be(this,gm)[gm]),Be(this,yt)[yt].off("transloadit:assembly-error",Be(this,ec)[ec]),Be(this,yt)[yt].off("transloadit:import-error",Be(this,bm)[bm])}function vct(){Be(this,yt)[yt].on("transloadit:complete",Be(this,mm)[mm]),Be(this,yt)[yt].on("transloadit:assembly-cancel",Be(this,gm)[gm]),Be(this,yt)[yt].on("transloadit:assembly-error",Be(this,ec)[ec]),Be(this,yt)[yt].on("transloadit:import-error",Be(this,bm)[bm])}var yne=fct;var mne={strings:{creatingAssembly:"Preparing upload...",creatingAssemblyFailed:"Transloadit: Could not create Assembly",encoding:"Encoding..."}};function ns(t){"@babel/helpers - typeof";return ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ns(t)}function Sne(t){return gct(t)||mct(t)||aF(t)||yct()}function yct(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mct(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gct(t){if(Array.isArray(t))return eF(t)}function _ne(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=aF(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(d){throw d},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,l=!1,c;return{s:function(){r=r.call(t)},n:function(){var d=r.next();return a=d.done,d},e:function(d){l=!0,c=d},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function bct(t,e){return Sct(t)||Oct(t,e)||aF(t,e)||wct()}function wct(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function aF(t,e){if(t){if(typeof t=="string")return eF(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eF(t,e)}}function eF(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Oct(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function Sct(t){if(Array.isArray(t))return t}function Qi(){"use strict";Qi=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&ns(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(ns(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function gne(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Tm(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){gne(a,n,i,l,c,"next",f)}function c(f){gne(a,n,i,l,c,"throw",f)}l(void 0)})}}function bne(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Xe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?bne(Object(r),!0).forEach(function(n){is(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bne(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function is(t,e,r){return e=Pne(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _ct(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wne(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Pne(n.key),n)}}function Pct(t,e,r){return e&&wne(t.prototype,e),r&&wne(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pne(t){var e=Ect(t,"string");return ns(e)=="symbol"?e:String(e)}function Ect(t,e){if(ns(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ns(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tct(t,e,r){return e=OS(e),Act(t,Ene()?Reflect.construct(e,r||[],OS(t).constructor):e.apply(t,r))}function Act(t,e){if(e&&(ns(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ge(t)}function Ene(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ene=function(){return!!t})()}function OS(t){return OS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},OS(t)}function Ge(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xct(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tF(t,e)}function tF(t,e){return tF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tF(t,e)}function We(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Rct=0;function Lt(t){return"__private_"+Rct+++"_"+t}var Ict={version:"3.6.1"},One=function(e){return function(r){var n=new aa("Failed to send error to the client",{cause:r});console.error(n,e)}},uF="https://api2.transloadit.com/companion",sF=/\.transloadit\.com$/,kct=/https?:\/\/api2(?:-\w+)?\.transloadit\.com\/companion/,jct={service:"https://api2.transloadit.com",errorReporting:!0,waitForEncoding:!1,waitForMetadata:!1,alwaysRunAssembly:!1,importFromUploadURLs:!1,signature:null,params:null,fields:null,getAssemblyOptions:null,limit:20,retryDelays:[7e3,1e4,15e3,2e4],clientName:null},Xi=Lt("rateLimitedQueue"),H2=Lt("getClientVersion"),rF=Lt("attachAssemblyMetadata"),W2=Lt("createAssembly"),wm=Lt("createAssemblyWatcher"),V2=Lt("shouldWaitAfterUpload"),K2=Lt("reserveFiles"),Om=Lt("onFileUploadURLAvailable"),Am=Lt("findFile"),nF=Lt("onFileUploadComplete"),iF=Lt("onResult"),Em=Lt("onAssemblyFinished"),xm=Lt("cancelAssembly"),Y2=Lt("onCancelAll"),X2=Lt("getPersistentData"),Q2=Lt("onRestored"),Sm=Lt("connectAssembly"),_m=Lt("prepareUpload"),tc=Lt("afterUpload"),J2=Lt("closeAssemblyIfExists"),Pm=Lt("onError"),Z2=Lt("onTusError"),os=function(t){xct(e,t);function e(r,n){var i;_ct(this,e);var a,l,c,f;return i=Tct(this,e,[r,Xe(Xe({},jct),n)]),a=Ge(i),Object.defineProperty(Ge(i),Sm,{value:zct}),Object.defineProperty(Ge(i),xm,{value:$ct}),Object.defineProperty(Ge(i),Em,{value:Gct}),Object.defineProperty(Ge(i),iF,{value:Bct}),Object.defineProperty(Ge(i),nF,{value:Uct}),Object.defineProperty(Ge(i),Am,{value:Mct}),Object.defineProperty(Ge(i),K2,{value:Dct}),Object.defineProperty(Ge(i),V2,{value:Nct}),Object.defineProperty(Ge(i),wm,{value:Cct}),Object.defineProperty(Ge(i),W2,{value:Lct}),Object.defineProperty(Ge(i),rF,{value:Fct}),Object.defineProperty(Ge(i),H2,{value:qct}),Object.defineProperty(Ge(i),Xi,{writable:!0,value:void 0}),Object.defineProperty(Ge(i),Om,{writable:!0,value:function(y){var m,g=i.uppy.getFile(y.id);if(g!=null&&(m=g.transloadit)!=null&&m.assembly){var w=i.getPluginState(),P=w.assemblies,E=P[g.transloadit.assembly];i.client.addFile(E,g).catch(function(O){i.uppy.log(O),i.uppy.emit("transloadit:import-error",E,g.id,O)})}}}),Object.defineProperty(Ge(i),Y2,{writable:!0,value:function(){var d=Tm(Qi().mark(function m(g){var w,P,E,O,R,x;return Qi().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(w=g===void 0?{}:g,P=w.reason,I.prev=1,P==="user"){I.next=4;break}return I.abrupt("return");case 4:return E=a.getPluginState(),O=E.uploadsAssemblies,R=Object.values(O).flat(1),x=R.map(function(N){return a.getAssembly(N)}),I.next=9,Promise.all(x.map(function(N){return We(a,xm)[xm](N)}));case 9:I.next=14;break;case 11:I.prev=11,I.t0=I.catch(1),a.uppy.log(I.t0);case 14:case"end":return I.stop()}},m,null,[[1,11]])}));function y(m){return d.apply(this,arguments)}return y}()}),Object.defineProperty(Ge(i),X2,{writable:!0,value:function(y){var m=i.getPluginState(),g=m.assemblies,w=m.uploadsAssemblies;y(is({},i.id,{assemblies:g,uploadsAssemblies:w}))}}),Object.defineProperty(Ge(i),Q2,{writable:!0,value:function(y){var m=y&&y[i.id]?y[i.id]:{},g=m.assemblies||{},w=m.uploadsAssemblies||{};if(Object.keys(w).length!==0){var P=function(x){for(var A={},I=[],N=function(){var B=bct(k[j],2),Y=B[0],Q=B[1];Q.uploads.forEach(function($){var H=We(Ge(i),Am)[Am]($);A[$.id]={id:H.id,assembly:Y,uploadedFile:$}});var X=i.getPluginState();Object.keys(Q.results).forEach(function($){var H=_ne(Q.results[$]),K;try{for(H.s();!(K=H.n()).done;){var s=K.value,o=X.files[s.original_id];s.localId=o?o.id:null,I.push({id:s.id,result:s,stepName:$,assembly:Y})}}catch(u){H.e(u)}finally{H.f()}})},j=0,k=Object.entries(x);j<k.length;j++)N();i.setPluginState({assemblies:x,files:A,results:I,uploadsAssemblies:w})},E=function(){var x=i.getPluginState(),A=x.assemblies,I=x.uploadsAssemblies;Object.keys(I).forEach(function(j){var k=I[j];We(Ge(i),wm)[wm](k,j)});var N=Object.keys(A);N.forEach(function(j){var k=new F2(A[j],We(Ge(i),Xi)[Xi]);We(Ge(i),Sm)[Sm](k)})},O=function(){var x=i.getPluginState(),A=x.assemblies;return Promise.all(Object.keys(A).map(function(I){return i.activeAssemblies[I].update()}))};i.restored=Promise.resolve().then(function(){P(g),E(),O()}),i.restored.then(function(){i.restored=null})}}}),Object.defineProperty(Ge(i),_m,{writable:!0,value:function(){var d=Tm(Qi().mark(function m(g,w){var P,E,O,R,x,A;return Qi().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return P=g.map(function(j){return i.uppy.getFile(j)}),E=P.filter(function(j){return j.error?!1:(i.uppy.emit("preprocess-progress",j,{mode:"indeterminate",message:i.i18n("creatingAssembly")}),!0)}),O=function(){var j=Tm(Qi().mark(function k(z){var B,Y,Q;return Qi().wrap(function($){for(;;)switch($.prev=$.next){case 0:return B=z.fileIDs,Y=z.options,$.prev=1,$.next=4,We(Ge(i),W2)[W2](B,w,Y);case 4:if(Q=$.sent,!i.opts.importFromUploadURLs){$.next=8;break}return $.next=8,We(Ge(i),K2)[K2](Q,B);case 8:return B.forEach(function(H){var K=i.uppy.getFile(H);i.uppy.emit("preprocess-complete",K)}),$.abrupt("return",Q);case 12:throw $.prev=12,$.t0=$.catch(1),B.forEach(function(H){var K=i.uppy.getFile(H);i.uppy.emit("preprocess-complete",K),i.uppy.emit("upload-error",K,$.t0)}),$.t0;case 16:case"end":return $.stop()}},k,null,[[1,12]])}));return function(z){return j.apply(this,arguments)}}(),R=i.getPluginState(),x=R.uploadsAssemblies,i.setPluginState({uploadsAssemblies:Xe(Xe({},x),{},is({},w,[]))}),A=new pne(E,i.opts),N.next=8,A.build().then(function(j){return Promise.all(j.map(O))}).then(function(j){var k=j.filter(Boolean),z=k.map(function(B){return B.status.assembly_id});return We(Ge(i),wm)[wm](z,w),Promise.all(k.map(function(B){return We(Ge(i),Sm)[Sm](B)}))}).catch(function(j){throw E.forEach(function(k){i.uppy.emit("preprocess-complete",k),i.uppy.emit("upload-error",k,j)}),j});case 8:case"end":return N.stop()}},m)}));function y(m,g){return d.apply(this,arguments)}return y}()}),Object.defineProperty(Ge(i),tc,{writable:!0,value:function(y,m){var g=y.map(function(I){return i.uppy.getFile(I)}),w=g.filter(function(I){return!I.error}).map(function(I){return I.id}),P=i.getPluginState();if(i.restored)return i.restored.then(function(){return We(Ge(i),tc)[tc](w,m)});var E=P.uploadsAssemblies[m],O=function(){E.forEach(function(N){var j=i.activeAssemblies[N];j.close(),delete i.activeAssemblies[N]})};if(!We(Ge(i),V2)[V2]()){O();var R=E.map(function(I){return i.getAssembly(I)});return i.uppy.addResultData(m,{transloadit:R}),Promise.resolve()}if(E.length===0)return i.uppy.addResultData(m,{transloadit:[]}),Promise.resolve();var x=g.filter(function(I){return!Nn(i.completedFiles,I.id)});x.forEach(function(I){i.uppy.emit("postprocess-progress",I,{mode:"indeterminate",message:i.i18n("encoding")})});var A=i.assemblyWatchers[m];return A.promise.then(function(){O();var I=E.map(function(j){return i.getAssembly(j)}),N=Xe({},i.getPluginState().uploadsAssemblies);delete N[m],i.setPluginState({uploadsAssemblies:N}),i.uppy.addResultData(m,{transloadit:I})})}}),Object.defineProperty(Ge(i),J2,{writable:!0,value:function(y){var m;y&&((m=i.activeAssemblies[y])==null||m.close())}}),Object.defineProperty(Ge(i),Pm,{writable:!0,value:function(y){i.client.submitError(y).catch(One(y))}}),Object.defineProperty(Ge(i),Z2,{writable:!0,value:function(y,m){var g,w;if(We(Ge(i),J2)[J2](y==null||(g=y.transloadit)==null?void 0:g.assembly),m!=null&&(w=m.message)!=null&&w.startsWith("tus: ")){var P,E=(P=m.originalRequest)==null||(P=P.getUnderlyingObject())==null?void 0:P.responseURL;i.client.submitError(m,{endpoint:E}).catch(One(m))}}}),i.type="uploader",i.id=i.opts.id||"Transloadit",i.defaultLocale=mne,(c=(l=i.opts).assemblyOptions)!=null||(l.assemblyOptions=(f=i.opts.getAssemblyOptions)!=null?f:{params:i.opts.params,signature:i.opts.signature,fields:i.opts.fields}),(n==null?void 0:n.params)!=null&&n.getAssemblyOptions==null&&n.assemblyOptions==null&&U2(i.opts.assemblyOptions.params),We(Ge(i),Xi)[Xi]=new wi(i.opts.limit),i.i18nInit(),i.client=new une({service:i.opts.service,client:We(Ge(i),H2)[H2](),errorReporting:i.opts.errorReporting,rateLimitedQueue:We(Ge(i),Xi)[Xi]}),i.activeAssemblies={},i.assemblyWatchers={},i.completedFiles=Object.create(null),i}return Pct(e,[{key:"install",value:function(){this.uppy.addPreProcessor(We(this,_m)[_m]),this.uppy.addPostProcessor(We(this,tc)[tc]),this.uppy.on("error",We(this,Pm)[Pm]),this.uppy.on("cancel-all",We(this,Y2)[Y2]),this.uppy.on("upload-error",We(this,Z2)[Z2]),this.opts.importFromUploadURLs?this.uppy.on("upload-success",We(this,Om)[Om]):this.uppy.use(Cp,{storeFingerprintForResuming:!1,allowedMetaFields:["assembly_url","filename","fieldname"],limit:this.opts.limit,rateLimitedQueue:We(this,Xi)[Xi],retryDelays:this.opts.retryDelays}),this.uppy.on("restore:get-data",We(this,X2)[X2]),this.uppy.on("restored",We(this,Q2)[Q2]),this.setPluginState({assemblies:{},uploadsAssemblies:{},files:{},results:[]});var n=this.uppy.getState(),i=n.capabilities;this.uppy.setState({capabilities:Xe(Xe({},i),{},{individualCancellation:!1})})}},{key:"uninstall",value:function(){this.uppy.removePreProcessor(We(this,_m)[_m]),this.uppy.removePostProcessor(We(this,tc)[tc]),this.uppy.off("error",We(this,Pm)[Pm]),this.opts.importFromUploadURLs&&this.uppy.off("upload-success",We(this,Om)[Om]);var n=this.uppy.getState(),i=n.capabilities;this.uppy.setState({capabilities:Xe(Xe({},i),{},{individualCancellation:!0})})}},{key:"getAssembly",value:function(n){var i=this.getPluginState(),a=i.assemblies;return a[n]}},{key:"getAssemblyFiles",value:function(n){return this.uppy.getFiles().filter(function(i){var a;return(i==null||(a=i.transloadit)==null?void 0:a.assembly)===n})}}]),e}(ht);function qct(){var t=this,e=["uppy-core:".concat(this.uppy.constructor.VERSION),"uppy-transloadit:".concat(this.constructor.VERSION),"uppy-tus:".concat(Cp.VERSION)],r=function(i,a){var l=t.uppy.getPlugin(i);l&&e.push("".concat(a,":").concat(l.constructor.VERSION))};return this.opts.importFromUploadURLs&&(r("XHRUpload","uppy-xhr-upload"),r("AwsS3","uppy-aws-s3"),r("AwsS3Multipart","uppy-aws-s3-multipart")),r("Dropbox","uppy-dropbox"),r("Box","uppy-box"),r("Facebook","uppy-facebook"),r("GoogleDrive","uppy-google-drive"),r("Instagram","uppy-instagram"),r("OneDrive","uppy-onedrive"),r("Zoom","uppy-zoom"),r("Url","uppy-url"),this.opts.clientName!=null&&e.push(this.opts.clientName),e.join(",")}function Fct(t,e){var r=Xe(Xe({},t.meta),{},{assembly_url:e.assembly_url,filename:t.name,fieldname:"file"}),n=Xe(Xe({},t.tus),{},{endpoint:e.tus_url,addRequestId:!0}),i=t.remote;if(t.remote&&kct.test(t.remote.companionUrl)){var a=e.companion_url.replace(/\/$/,""),l=t.remote.url.replace(t.remote.companionUrl,"").replace(/^\//,"");i=Xe(Xe({},t.remote),{},{companionUrl:a,url:"".concat(a,"/").concat(l)})}var c=Xe(Xe({},t),{},{transloadit:{assembly:e.assembly_id}});return this.opts.importFromUploadURLs||Object.assign(c,{meta:r,tus:n,remote:i}),c}function Lct(t,e,r){var n=this;return this.uppy.log("[Transloadit] Create Assembly"),this.client.createAssembly(Xe(Xe({},r),{},{expectedFiles:t.length})).then(function(){var i=Tm(Qi().mark(function a(l){var c,f,d,y,m,g,w,P,E;return Qi().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(c=n.uppy.getFiles().filter(function(x){var A=x.id;return t.includes(A)}),c.length===t.length){R.next=8;break}if(c.length!==0){R.next=6;break}return R.next=5,n.client.cancelAssembly(l);case 5:return R.abrupt("return",null);case 6:return R.next=8,n.client.updateNumberOfFilesInAssembly(l,c.length);case 8:return f=new F2(l,We(n,Xi)[Xi]),d=f.status,y=d.assembly_id,m=n.getPluginState(),g=m.assemblies,w=m.uploadsAssemblies,n.setPluginState({assemblies:Xe(Xe({},g),{},is({},y,d)),uploadsAssemblies:Xe(Xe({},w),{},is({},e,[].concat(Sne(w[e]),[y])))}),P={},c.forEach(function(x){P[x.id]=We(n,rF)[rF](x,d)}),n.uppy.setState({files:Xe(Xe({},n.uppy.getState().files),P)}),E=function x(A,I){var N;if(((N=f.status)==null?void 0:N.ok)==="ASSEMBLY_COMPLETED"){n.uppy.off("file-removed",x);return}if(I==="cancel-all")f.close(),n.uppy.off("file-removed",x);else if(A.id in P){delete P[A.id];var j=Object.keys(P).length;j===0?(f.close(),We(n,xm)[xm](l).catch(function(){}),n.uppy.off("file-removed",x)):n.client.updateNumberOfFilesInAssembly(l,j).catch(function(){})}},n.uppy.on("file-removed",E),n.uppy.emit("transloadit:assembly-created",d,t),n.uppy.log("[Transloadit] Created Assembly ".concat(y)),R.abrupt("return",f);case 21:case"end":return R.stop()}},a)}));return function(a){return i.apply(this,arguments)}}()).catch(function(i){var a=new aa("".concat(n.i18n("creatingAssemblyFailed"),": ").concat(i.message),{cause:i});throw"details"in i&&(a.details=i.details),"assembly"in i&&(a.assembly=i.assembly),a})}function Cct(t,e){var r=this,n=Array.isArray(t)?t:[t],i=new yne(this.uppy,n);i.on("assembly-complete",function(a){var l=r.getAssemblyFiles(a);l.forEach(function(c){r.completedFiles[c.id]=!0,r.uppy.emit("postprocess-complete",c)})}),i.on("assembly-error",function(a,l){var c=r.getAssemblyFiles(a);c.forEach(function(d){r.uppy.emit("upload-error",d,l),r.uppy.emit("postprocess-complete",d)});var f=Xe({},r.uppy.getState().files);c.forEach(function(d){return delete f[d.id].tus}),r.uppy.setState({files:f}),r.uppy.emit("error",l)}),this.assemblyWatchers[e]=i}function Nct(){return this.opts.waitForEncoding||this.opts.waitForMetadata}function Dct(t,e){var r=this;return Promise.all(e.map(function(n){var i=r.uppy.getFile(n);return r.client.reserveFile(t.status,i)}))}function Mct(t){for(var e=this.uppy.getFiles(),r=0;r<e.length;r++){var n=e[r];if(n.uploadURL===t.tus_upload_url||n.tus&&n.tus.uploadUrl===t.tus_upload_url||!t.is_tus_file&&n.name===t.name&&n.size===t.size)return n}}function Uct(t,e){var r=this.getPluginState(),n=We(this,Am)[Am](e);if(!n){this.uppy.log("[Transloadit] Couldn\u2019t find the file, it was likely removed in the process");return}this.setPluginState({files:Xe(Xe({},r.files),{},is({},e.id,{assembly:t,id:n.id,uploadedFile:e}))}),this.uppy.emit("transloadit:upload",e,this.getAssembly(t))}function Bct(t,e,r){var n=this.getPluginState(),i=n.files[r.original_id];r.localId=i?i.id:null;var a={result:r,stepName:e,id:r.id,assembly:t};this.setPluginState({results:[].concat(Sne(n.results),[a])}),this.uppy.emit("transloadit:result",e,r,this.getAssembly(t))}function Gct(t){var e=this,r=t.assembly_ssl_url;this.client.getAssemblyStatus(r).then(function(n){var i=n.assembly_id,a=e.getPluginState();e.setPluginState({assemblies:Xe(Xe({},a.assemblies),{},is({},i,n))}),e.uppy.emit("transloadit:complete",n)})}function $ct(t){return oF.apply(this,arguments)}function oF(){return oF=Tm(Qi().mark(function t(e){return Qi().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.client.cancelAssembly(e);case 2:this.uppy.emit("transloadit:assembly-cancelled",e);case 3:case"end":return n.stop()}},t,this)})),oF.apply(this,arguments)}function zct(t){var e=this,r=t.status,n=r.assembly_id;return this.activeAssemblies[n]=t,t.on("status",function(i){var a=e.getPluginState(),l=a.assemblies;e.setPluginState({assemblies:Xe(Xe({},l),{},is({},n,i))})}),t.on("upload",function(i){We(e,nF)[nF](n,i)}),t.on("error",function(i){i.assembly=t.status,e.uppy.emit("transloadit:assembly-error",t.status,i)}),t.on("executing",function(){e.uppy.emit("transloadit:assembly-executing",t.status)}),t.on("execution-progress",function(i){if(e.uppy.emit("transloadit:execution-progress",i),i.progress_combined!=null){var a=_ne(e.uppy.getFiles()),l;try{for(a.s();!(l=a.n()).done;){var c=l.value;e.uppy.emit("postprocess-progress",c,{mode:"determinate",value:i.progress_combined/100,message:e.i18n("encoding")})}}catch(f){a.e(f)}finally{a.f()}}}),this.opts.waitForEncoding&&t.on("result",function(i,a){We(e,iF)[iF](n,i,a)}),this.opts.waitForEncoding?t.on("finished",function(){We(e,Em)[Em](t.status)}):this.opts.waitForMetadata&&t.on("metadata",function(){We(e,Em)[Em](t.status)}),t.ok==="ASSEMBLY_COMPLETE"||t.connect(),t}os.VERSION=Ict.version;os.COMPANION=uF;os.COMPANION_PATTERN=sF;function _S(t){"@babel/helpers - typeof";return _S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_S(t)}function Rm(){"use strict";Rm=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&_S(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(_S(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function Tne(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Ane(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){Tne(a,n,i,l,c,"next",f)}function c(f){Tne(a,n,i,l,c,"throw",f)}l(void 0)})}}var SS=function(){};function xne(t,e){e===void 0&&(e={});var r=e,n=r.body,i=n===void 0?null:n,a=r.headers,l=a===void 0?{}:a,c=r.method,f=c===void 0?"GET":c,d=r.onBeforeRequest,y=d===void 0?SS:d,m=r.onUploadProgress,g=m===void 0?SS:m,w=r.shouldRetry,P=w===void 0?function(){return!0}:w,E=r.onAfterRequest,O=E===void 0?SS:E,R=r.onTimeout,x=R===void 0?SS:R,A=r.responseType,I=r.retries,N=I===void 0?3:I,j=r.signal,k=j===void 0?null:j,z=r.timeout,B=z===void 0?3e4:z,Y=r.withCredentials,Q=Y===void 0?!1:Y,X=function(s){return .3*Math.pow(2,s-1)*1e3},$=new oS(B,x);function H(K){return K===void 0&&(K=0),new Promise(function(){var s=Ane(Rm().mark(function o(u,p){var v;return Rm().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return v=new XMLHttpRequest,v.open(f,t,!0),v.withCredentials=Q,A&&(v.responseType=A),k==null||k.addEventListener("abort",function(){v.abort(),p(new DOMException("Aborted","AbortError"))}),v.onload=Ane(Rm().mark(function S(){return Rm().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,O(v,K);case 2:v.status>=200&&v.status<300?($.done(),u(v)):P(v)&&K<N?setTimeout(function(){H(K+1).then(u,p)},X(K)):($.done(),p(new Mr(v.statusText,v)));case 3:case"end":return q.stop()}},S)})),v.onerror=function(){P(v)&&K<N?setTimeout(function(){H(K+1).then(u,p)},X(K)):($.done(),p(new Mr(v.statusText,v)))},v.upload.onprogress=function(S){$.progress(),g(S)},l&&Object.keys(l).forEach(function(S){v.setRequestHeader(S,l[S])}),b.next=11,y(v,K);case 11:v.send(i);case 12:case"end":return b.stop()}},o)}));return function(o,u){return s.apply(this,arguments)}}())}return H()}var Rne={strings:{uploadStalled:"Upload has not made any progress for %{seconds} seconds. You may want to retry it."}};function as(t){"@babel/helpers - typeof";return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},as(t)}function lF(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Hct(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(d){throw d},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,l=!1,c;return{s:function(){r=r.call(t)},n:function(){var d=r.next();return a=d.done,d},e:function(d){l=!0,c=d},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function Hct(t,e){if(t){if(typeof t=="string")return Ine(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ine(t,e)}}function Ine(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ln(){"use strict";ln=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&as(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(as(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function kne(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function nc(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){kne(a,n,i,l,c,"next",f)}function c(f){kne(a,n,i,l,c,"throw",f)}l(void 0)})}}function jne(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Yt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jne(Object(r),!0).forEach(function(n){Wct(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jne(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Wct(t,e,r){return e=Lne(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vct(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qne(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Lne(n.key),n)}}function Kct(t,e,r){return e&&qne(t.prototype,e),r&&qne(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Lne(t){var e=Yct(t,"string");return as(e)=="symbol"?e:String(e)}function Yct(t,e){if(as(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(as(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xct(t,e,r){return e=PS(e),Qct(t,Cne()?Reflect.construct(e,r||[],PS(t).constructor):e.apply(t,r))}function Qct(t,e){if(e&&(as(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ji(t)}function Cne(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Cne=function(){return!!t})()}function PS(t){return PS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},PS(t)}function Ji(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jct(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pF(t,e)}function pF(t,e){return pF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pF(t,e)}function Ca(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Zct=0;function Dp(t){return"__private_"+Zct+++"_"+t}var eft={version:"3.6.6"};function tft(t,e){var r=e;return r||(r=new Error("Upload error")),typeof r=="string"&&(r=new Error(r)),r instanceof Error||(r=Object.assign(new Error("Upload error"),{data:r})),Bl(t)?(r=new Mr(r,t),r):(r.request=t,r)}function Fne(t){var e=t.data.slice(0,t.data.size,t.meta.type);return e}var rft={formData:!0,fieldName:"file",method:"post",allowedMetaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:30*1e3,limit:5,withCredentials:!1,responseType:"",getResponseData:function(e){var r={};try{r=JSON.parse(e)}catch(n){}return r},getResponseError:function(e,r){var n=new Error("Upload error");return Bl(r)&&(n=new Mr(n,r)),n},validateStatus:function(e){return e>=200&&e<300}},rc=Dp("getFetcher"),hF=Dp("uploadLocalFile"),cF=Dp("uploadBundle"),dF=Dp("getCompanionClientArgs"),fF=Dp("uploadFiles"),Im=Dp("handleUpload"),gF=function(t){Jct(e,t);function e(r,n){var i;if(Vct(this,e),i=Xct(this,e,[r,Yt(Yt({},rft),{},{fieldName:n.bundle?"files[]":"file"},n)]),Object.defineProperty(Ji(i),fF,{value:aft}),Object.defineProperty(Ji(i),dF,{value:oft}),Object.defineProperty(Ji(i),cF,{value:ift}),Object.defineProperty(Ji(i),hF,{value:nft}),Object.defineProperty(Ji(i),rc,{writable:!0,value:void 0}),Object.defineProperty(Ji(i),Im,{writable:!0,value:function(){var a=nc(ln().mark(function c(f){var d,y,m,g;return ln().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(f.length!==0){P.next=3;break}return i.uppy.log("[XHRUpload] No files to upload!"),P.abrupt("return");case 3:if(i.opts.limit===0&&!i.opts[Wu]&&i.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),i.uppy.log("[XHRUpload] Uploading..."),d=i.uppy.getFilesByIds(f),y=Vu(d),m=Ku(y),i.uppy.emit("upload-start",m),!i.opts.bundle){P.next=19;break}if(g=y.some(function(E){return E.isRemote}),!g){P.next=13;break}throw new Error("Can\u2019t upload remote files when the `bundle: true` option is set");case 13:if(typeof i.opts.headers!="function"){P.next=15;break}throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");case 15:return P.next=17,Ca(Ji(i),cF)[cF](y);case 17:P.next=21;break;case 19:return P.next=21,Ca(Ji(i),fF)[fF](y);case 21:case"end":return P.stop()}},c)}));function l(c){return a.apply(this,arguments)}return l}()}),i.type="uploader",i.id=i.opts.id||"XHRUpload",i.defaultLocale=Rne,i.i18nInit(),Wu in i.opts?i.requests=i.opts[Wu]:i.requests=new wi(i.opts.limit),i.opts.bundle&&!i.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");if(i.opts.bundle&&typeof i.opts.headers=="function")throw new Error("`opts.headers` can not be a function when the `bundle: true` option is set.");if((n==null?void 0:n.allowedMetaFields)===void 0&&"metaFields"in i.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");return i.uploaderEvents=Object.create(null),Ca(Ji(i),rc)[rc]=function(a){return function(){var l=nc(ln().mark(function c(f,d){var y,m,g,w,P,E,O,R,x,A,I;return ln().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.prev=0,j.next=3,xne(f,Yt(Yt({},d),{},{onTimeout:function(z){var B=Math.ceil(z/1e3),Y=new Error(i.i18n("uploadStalled",{seconds:B}));i.uppy.emit("upload-stalled",Y,a)},onUploadProgress:function(z){if(z.lengthComputable){var B=lF(a),Y;try{for(B.s();!(Y=B.n()).done;){var Q=Y.value;i.uppy.emit("upload-progress",Q,{uploader:Ji(i),bytesUploaded:z.loaded/z.total*Q.size,bytesTotal:Q.size})}}catch(X){B.e(X)}finally{B.f()}}}}));case 3:if(y=j.sent,i.opts.validateStatus(y.status,y.responseText,y)){j.next=6;break}throw new Mr(y.statusText,y);case 6:m=i.opts.getResponseData(y.responseText,y),g=m==null?void 0:m[i.opts.responseUrlFieldName],w=lF(a);try{for(w.s();!(P=w.n()).done;)E=P.value,i.uppy.emit("upload-success",E,{status:y.status,body:m,uploadURL:g})}catch(k){w.e(k)}finally{w.f()}return j.abrupt("return",y);case 13:if(j.prev=13,j.t0=j.catch(0),j.t0.name!=="AbortError"){j.next=17;break}return j.abrupt("return",void 0);case 17:if(j.t0 instanceof Mr){O=j.t0.request,R=tft(O,i.opts.getResponseError(O.responseText,O)),x=lF(a);try{for(x.s();!(A=x.n()).done;)I=A.value,i.uppy.emit("upload-error",I,R)}catch(k){x.e(k)}finally{x.f()}}throw j.t0;case 19:case"end":return j.stop()}},c,null,[[0,13]])}));return function(c,f){return l.apply(this,arguments)}}()},i}return Kct(e,[{key:"getOptions",value:function(n){var i=this.uppy.getState().xhrUpload,a=this.opts.headers,l=Yt(Yt(Yt(Yt({},this.opts),i||{}),n.xhrUpload||{}),{},{headers:{}});return typeof a=="function"?l.headers=a(n):Object.assign(l.headers,this.opts.headers),i&&Object.assign(l.headers,i.headers),n.xhrUpload&&Object.assign(l.headers,n.xhrUpload.headers),l}},{key:"addMetadata",value:function(n,i,a){var l=Array.isArray(a.allowedMetaFields)?a.allowedMetaFields:Object.keys(i);l.forEach(function(c){var f=i[c];Array.isArray(f)?f.forEach(function(d){return n.append(c,d)}):n.append(c,f)})}},{key:"createFormDataUpload",value:function(n,i){var a=new FormData;this.addMetadata(a,n.meta,i);var l=Fne(n);return n.name?a.append(i.fieldName,l,n.meta.name):a.append(i.fieldName,l),a}},{key:"createBundledUpload",value:function(n,i){var a=this,l=new FormData,c=this.uppy.getState(),f=c.meta;return this.addMetadata(l,f,i),n.forEach(function(d){var y=a.getOptions(d),m=Fne(d);d.name?l.append(y.fieldName,m,d.name):l.append(y.fieldName,m)}),l}},{key:"install",value:function(){if(this.opts.bundle){var n=this.uppy.getState(),i=n.capabilities;this.uppy.setState({capabilities:Yt(Yt({},i),{},{individualCancellation:!1})})}this.uppy.addUploader(Ca(this,Im)[Im])}},{key:"uninstall",value:function(){if(this.opts.bundle){var n=this.uppy.getState(),i=n.capabilities;this.uppy.setState({capabilities:Yt(Yt({},i),{},{individualCancellation:!0})})}this.uppy.removeUploader(Ca(this,Im)[Im])}}]),e}(ht);function nft(t){return vF.apply(this,arguments)}function vF(){return vF=nc(ln().mark(function t(e){var r=this,n,i,a;return ln().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return n=new Pp(this.uppy),i=new AbortController,a=this.requests.wrapPromiseFunction(nc(ln().mark(function f(){var d,y,m;return ln().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return d=r.getOptions(e),y=Ca(r,rc)[rc]([e]),m=d.formData?r.createFormDataUpload(e,d):e.data,w.abrupt("return",y(d.endpoint,Yt(Yt({},d),{},{body:m,signal:i.signal})));case 4:case"end":return w.stop()}},f)}))),n.onFileRemove(e.id,function(){return i.abort()}),n.onCancelAll(e.id,function(f){var d=f.reason;d==="user"&&i.abort()}),c.prev=5,c.next=8,a().abortOn(i.signal);case 8:c.next=14;break;case 10:if(c.prev=10,c.t0=c.catch(5),c.t0.message==="Cancelled"){c.next=14;break}throw c.t0;case 14:return c.prev=14,n.remove(),c.finish(14);case 17:case"end":return c.stop()}},t,this,[[5,10,14,17]])})),vF.apply(this,arguments)}function ift(t){return yF.apply(this,arguments)}function yF(){return yF=nc(ln().mark(function t(e){var r=this,n,i,a;return ln().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return a=function(){n.abort()},n=new AbortController,i=this.requests.wrapPromiseFunction(nc(ln().mark(function f(){var d,y,m,g;return ln().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return y=(d=r.uppy.getState().xhrUpload)!=null?d:{},m=Ca(r,rc)[rc](e),g=r.createBundledUpload(e,Yt(Yt({},r.opts),y)),P.abrupt("return",m(r.opts.endpoint,Yt(Yt({},r.opts),{},{body:g,signal:n.signal})));case 4:case"end":return P.stop()}},f)}))),this.uppy.once("cancel-all",a),c.prev=4,c.next=7,i().abortOn(n.signal);case 7:c.next=13;break;case 9:if(c.prev=9,c.t0=c.catch(4),c.t0.message==="Cancelled"){c.next=13;break}throw c.t0;case 13:return c.prev=13,this.uppy.off("cancel-all",a),c.finish(13);case 16:case"end":return c.stop()}},t,this,[[4,9,13,16]])})),yF.apply(this,arguments)}function oft(t){var e,r=this.getOptions(t),n=Array.isArray(r.allowedMetaFields)?r.allowedMetaFields:Object.keys(t.meta);return Yt(Yt({},(e=t.remote)==null?void 0:e.body),{},{protocol:"multipart",endpoint:r.endpoint,size:t.data.size,fieldname:r.fieldName,metadata:Object.fromEntries(n.map(function(i){return[i,t.meta[i]]})),httpMethod:r.method,useFormData:r.formData,headers:r.headers})}function aft(t){return mF.apply(this,arguments)}function mF(){return mF=nc(ln().mark(function t(e){var r=this;return ln().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Promise.allSettled(e.map(function(a){if(a.isRemote){var l=function(){return r.requests},c=new AbortController,f=function(m){m.id===a.id&&c.abort()};r.uppy.on("file-removed",f);var d=r.uppy.getRequestClientForFile(a).uploadRemoteFile(a,Ca(r,dF)[dF](a),{signal:c.signal,getQueue:l});return r.requests.wrapSyncFunction(function(){r.uppy.off("file-removed",f)},{priority:-1})(),d}return Ca(r,hF)[hF](a)}));case 2:case"end":return i.stop()}},t)})),mF.apply(this,arguments)}gF.VERSION=eft.version;var OF=Ce(Bd(),1),Vne=Ce(Nne(),1);var Dne={strings:{compressingImages:"Compressing images...",compressedX:"Saved %{size} by compressing images"}};function us(t){"@babel/helpers - typeof";return us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},us(t)}function uft(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=sft(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(d){throw d},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=!0,l=!1,c;return{s:function(){r=r.call(t)},n:function(){var d=r.next();return a=d.done,d},e:function(d){l=!0,c=d},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function sft(t,e){if(t){if(typeof t=="string")return Mne(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mne(t,e)}}function Mne(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jm(){"use strict";jm=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&us(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(us(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function Une(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function Bne(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){Une(a,n,i,l,c,"next",f)}function c(f){Une(a,n,i,l,c,"throw",f)}l(void 0)})}}function Gne(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Zi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Gne(Object(r),!0).forEach(function(n){lft(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gne(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function lft(t,e,r){return e=Hne(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $ne(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Hne(n.key),n)}}function fft(t,e,r){return e&&$ne(t.prototype,e),r&&$ne(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Hne(t){var e=pft(t,"string");return us(e)=="symbol"?e:String(e)}function pft(t,e){if(us(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(us(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function hft(t,e,r){return e=TS(e),dft(t,Wne()?Reflect.construct(e,r||[],TS(t).constructor):e.apply(t,r))}function dft(t,e){if(e&&(us(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qm(t)}function Wne(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Wne=function(){return!!t})()}function TS(t){return TS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},TS(t)}function qm(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vft(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wF(t,e)}function wF(t,e){return wF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wF(t,e)}function zne(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var yft=0;function mft(t){return"__private_"+yft+++"_"+t}var km=mft("RateLimitedQueue"),Kne=function(t){vft(e,t);function e(r,n){var i;cft(this,e),i=hft(this,e,[r,n]),Object.defineProperty(qm(i),km,{writable:!0,value:void 0}),i.id=i.opts.id||"Compressor",i.type="modifier",i.defaultLocale=Dne;var a={quality:.6,limit:10};return i.opts=Zi(Zi({},a),n),zne(qm(i),km)[km]=new wi(i.opts.limit),i.i18nInit(),i.prepareUpload=i.prepareUpload.bind(qm(i)),i.compress=i.compress.bind(qm(i)),i}return fft(e,[{key:"compress",value:function(n){var i=this;return new Promise(function(a,l){new Vne.default(n,Zi(Zi({},i.opts),{},{success:a,error:l}))})}},{key:"prepareUpload",value:function(){var r=Bne(jm().mark(function i(a){var l=this,c,f,d,y,m,g,w,P;return jm().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return c=0,f=[],d=zne(this,km)[km].wrapPromiseFunction(function(){var R=Bne(jm().mark(function x(A){var I,N,j,k,z,B,Y,Q;return jm().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.prev=0,$.next=3,l.compress(A.data);case 3:I=$.sent,N=A.data.size-I.size,l.uppy.log("[Image Compressor] Image ".concat(A.id," compressed by ").concat((0,OF.default)(N))),c+=N,j=I.name,k=I.type,z=I.size,B=bo(j),Y=bo(A.meta.name),Q="".concat(Y.name,".").concat(B.extension),l.uppy.setFileState(A.id,Zi(Zi(Zi(Zi(Zi({},j&&{name:j}),B.extension&&{extension:B.extension}),k&&{type:k}),z&&{size:z}),{},{data:I,meta:Zi(Zi({},A.meta),{},{type:k,name:Q})})),f.push(A),$.next=19;break;case 15:$.prev=15,$.t0=$.catch(0),l.uppy.log("[Image Compressor] Failed to compress ".concat(A.id,":"),"warning"),l.uppy.log($.t0,"warning");case 19:case"end":return $.stop()}},x,null,[[0,15]])}));return function(x){return R.apply(this,arguments)}}()),y=a.map(function(R){var x,A=l.uppy.getFile(R);return l.uppy.emit("preprocess-progress",A,{mode:"indeterminate",message:l.i18n("compressingImages")}),A.isRemote||(A.data.type||(A.data=A.data.slice(0,A.data.size,A.type)),!((x=A.type)!=null&&x.startsWith("image/")))?Promise.resolve():d(A)}),O.next=6,Promise.all(y);case 6:this.uppy.emit("compressor:complete",f),c>1024&&this.uppy.info(this.i18n("compressedX",{size:(0,OF.default)(c)}),"info"),m=uft(a);try{for(m.s();!(g=m.n()).done;)w=g.value,P=this.uppy.getFile(w),this.uppy.emit("preprocess-complete",P)}catch(R){m.e(R)}finally{m.f()}case 10:case"end":return O.stop()}},i,this)}));function n(i){return r.apply(this,arguments)}return n}()},{key:"install",value:function(){this.uppy.addPreProcessor(this.prepareUpload)}},{key:"uninstall",value:function(){this.uppy.removePreProcessor(this.prepareUpload)}}]),e}(ht);function AS(){return AS=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},AS.apply(this,arguments)}var gft={"[object HTMLCollection]":!0,"[object NodeList]":!0,"[object RadioNodeList]":!0},bft={button:!0,fieldset:!0,reset:!0,submit:!0},wft={checkbox:!0,radio:!0},Oft=/^\s+|\s+$/g,Sft=Array.prototype.slice,Yne=Object.prototype.toString;function xS(t,e){if(!t)throw new Error("A form is required by getFormData, was given form="+t);e=AS({includeDisabled:!1,trim:!1},e);for(var r={},n,i=[],a={},l=0,c=t.elements.length;l<c;l++){var f=t.elements[l];bft[f.type]||f.disabled&&!e.includeDisabled||(n=f.name||f.id,n&&!a[n]&&(i.push(n),a[n]=!0))}for(var d=0,y=i.length;d<y;d++){n=i[d];var m=Qne(t,n,e);m!=null&&(r[n]=m)}return r}function Qne(t,e,r){if(!t)throw new Error("A form is required by getFieldData, was given form="+t);if(!e&&Yne.call(e)!=="[object String]")throw new Error("A field name is required by getFieldData, was given fieldName="+e);r=AS({includeDisabled:!1,trim:!1},r);var n=t.elements[e];if(!n||n.disabled&&!r.includeDisabled)return null;if(!gft[Yne.call(n)])return Xne(n,r.trim);for(var i=[],a=!0,l=0,c=n.length;l<c;l++)if(!(n[l].disabled&&!r.includeDisabled)){a&&n[l].type!=="radio"&&(a=!1);var f=Xne(n[l],r.trim);f!=null&&(i=i.concat(f))}return a&&i.length===1?i[0]:i.length>0?i:null}function Xne(t,e){var r=null,n=t.type;if(n==="select-one")return t.options.length&&(r=t.options[t.selectedIndex].value),r;if(n==="select-multiple"){r=[];for(var i=0,a=t.options.length;i<a;i++)t.options[i].selected&&r.push(t.options[i].value);return r.length===0&&(r=null),r}return n==="file"&&"files"in t?(t.multiple?(r=Sft.call(t.files),r.length===0&&(r=null)):r=t.files[0],r):(wft[n]?t.checked&&(n==="checkbox"&&!t.hasAttribute("value")?r=!0:r=t.value):r=e?t.value.replace(Oft,""):t.value,r)}xS.getFieldData=Qne;function Up(t){"@babel/helpers - typeof";return Up=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Up(t)}function Jne(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Zne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jne(Object(r),!0).forEach(function(n){_ft(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jne(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _ft(t,e,r){return e=tie(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eie(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tie(n.key),n)}}function Eft(t,e,r){return e&&eie(t.prototype,e),r&&eie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function tie(t){var e=Tft(t,"string");return Up(e)=="symbol"?e:String(e)}function Tft(t,e){if(Up(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Up(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Aft(t,e,r){return e=RS(e),xft(t,rie()?Reflect.construct(e,r||[],RS(t).constructor):e.apply(t,r))}function xft(t,e){if(e&&(Up(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oc(t)}function rie(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rie=function(){return!!t})()}function RS(t){return RS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},RS(t)}function oc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rft(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_F(t,e)}function _F(t,e){return _F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_F(t,e)}function SF(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Ift=0;function kft(t){return"__private_"+Ift+++"_"+t}var jft={version:"3.2.1"},qft={resultName:"uppyResult",getMetaFromForm:!0,addResultToForm:!0,submitOnSuccess:!1,triggerUploadOnSubmit:!1};function Fft(t){if(t==null||t.nodeName!=="FORM")throw new Error("ASSERTION FAILED: the target is not a <form> element",{cause:t});return t}var ic=kft("completed"),PF=function(t){Rft(e,t);function e(r,n){var i;return Pft(this,e),i=Aft(this,e,[r,Zne(Zne({},qft),n)]),Object.defineProperty(oc(i),ic,{writable:!0,value:!1}),i.type="acquirer",i.id=i.opts.id||"Form",i.handleFormSubmit=i.handleFormSubmit.bind(oc(i)),i.handleUploadStart=i.handleUploadStart.bind(oc(i)),i.handleSuccess=i.handleSuccess.bind(oc(i)),i.addResultToForm=i.addResultToForm.bind(oc(i)),i.getMetaFromForm=i.getMetaFromForm.bind(oc(i)),i}return Eft(e,[{key:"handleUploadStart",value:function(){SF(this,ic)[ic]=!1,this.opts.getMetaFromForm&&this.getMetaFromForm()}},{key:"handleSuccess",value:function(n){SF(this,ic)[ic]=!0,this.opts.addResultToForm&&this.addResultToForm(n),this.opts.submitOnSuccess&&this.form.requestSubmit()}},{key:"handleFormSubmit",value:function(n){var i=this;if(this.opts.triggerUploadOnSubmit&&!SF(this,ic)[ic]){n.preventDefault();var a=Kt(n.target.elements),l=[];a.forEach(function(c){var f=c.tagName==="BUTTON"||c.tagName==="INPUT"&&c.type==="submit";f&&!c.disabled&&(c.disabled=!0,l.push(c))}),this.uppy.upload().then(function(){l.forEach(function(c){c.disabled=!1})},function(c){return l.forEach(function(f){f.disabled=!1}),Promise.reject(c)}).catch(function(c){i.uppy.log(c.stack||c.message||c)})}}},{key:"addResultToForm",value:function(n){this.uppy.log("[Form] Adding result to the original form:"),this.uppy.log(n);var i=this.form.querySelector('[name="'.concat(this.opts.resultName,'"]'));if(i){var a;try{a=JSON.parse(i.value)}catch(l){}Array.isArray(a)||(a=[]),a.push(n),i.value=JSON.stringify(a);return}i=document.createElement("input"),i.name=this.opts.resultName,i.type="hidden",i.value=JSON.stringify([n]),this.form.appendChild(i)}},{key:"getMetaFromForm",value:function(){var n=xS(this.form);delete n[this.opts.resultName],this.uppy.setMeta(n)}},{key:"install",value:function(){this.form=Fft(r0(this.opts.target)),this.form.addEventListener("submit",this.handleFormSubmit),this.uppy.on("upload",this.handleUploadStart),this.uppy.on("complete",this.handleSuccess)}},{key:"uninstall",value:function(){this.form.removeEventListener("submit",this.handleFormSubmit),this.uppy.off("upload",this.handleUploadStart),this.uppy.off("complete",this.handleSuccess)}}]),e}(ht);PF.VERSION=jft.version;var kie=Ce(Hw(),1);function sc(t){"@babel/helpers - typeof";return sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sc(t)}function uc(){"use strict";uc=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&sc(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(sc(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function nie(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function EF(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){nie(a,n,i,l,c,"next",f)}function c(f){nie(a,n,i,l,c,"throw",f)}l(void 0)})}}function Lft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function iie(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Nft(n.key),n)}}function Cft(t,e,r){return e&&iie(t.prototype,e),r&&iie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Nft(t){var e=Dft(t,"string");return sc(e)=="symbol"?e:String(e)}function Dft(t,e){if(sc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(sc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ac(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Mft=0;function Uft(t){return"__private_"+Mft+++"_"+t}var oie=typeof navigator!="undefined"&&"serviceWorker"in navigator;function Bft(){return new Promise(function(t,e){oie?navigator.serviceWorker.controller?t():navigator.serviceWorker.addEventListener("controllerchange",function(){t()}):e(new Error("Unsupported"))})}var cn=Uft("ready"),aie=function(){function t(e){var r=this;Lft(this,t),Object.defineProperty(this,cn,{writable:!0,value:void 0}),ac(this,cn)[cn]=Bft().then(function(n){ac(r,cn)[cn]=n}),this.name=e.storeName}return Cft(t,[{key:"ready",get:function(){return Promise.resolve(ac(this,cn)[cn])},set:function(r){ac(this,cn)[cn]=r}},{key:"list",value:function(){var e=EF(uc().mark(function n(){var i=this;return uc().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,ac(this,cn)[cn];case 2:return l.abrupt("return",new Promise(function(c,f){var d=function y(m){if(m.data.store===i.name)switch(m.data.type){case"uppy/ALL_FILES":c(m.data.files),navigator.serviceWorker.removeEventListener("message",y);break;default:f()}};navigator.serviceWorker.addEventListener("message",d),navigator.serviceWorker.controller.postMessage({type:"uppy/GET_FILES",store:i.name})}));case 3:case"end":return l.stop()}},n,this)}));function r(){return e.apply(this,arguments)}return r}()},{key:"put",value:function(){var e=EF(uc().mark(function n(i){return uc().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,ac(this,cn)[cn];case 2:navigator.serviceWorker.controller.postMessage({type:"uppy/ADD_FILE",store:this.name,file:i});case 3:case"end":return l.stop()}},n,this)}));function r(n){return e.apply(this,arguments)}return r}()},{key:"delete",value:function(){var e=EF(uc().mark(function n(i){return uc().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,ac(this,cn)[cn];case 2:navigator.serviceWorker.controller.postMessage({type:"uppy/REMOVE_FILE",store:this.name,fileID:i});case 3:case"end":return l.stop()}},n,this)}));function r(n){return e.apply(this,arguments)}return r}()}]),t}();aie.isSupported=oie;var uie=aie;function cc(t){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cc(t)}function fn(){"use strict";fn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&cc(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(cc(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function sie(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function lc(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){sie(a,n,i,l,c,"next",f)}function c(f){sie(a,n,i,l,c,"throw",f)}l(void 0)})}}function lie(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Gft(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?lie(Object(r),!0).forEach(function(n){$ft(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lie(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function $ft(t,e,r){return e=vie(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cie(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,vie(n.key),n)}}function Hft(t,e,r){return e&&cie(t.prototype,e),r&&cie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function vie(t){var e=Wft(t,"string");return cc(e)=="symbol"?e:String(e)}function Wft(t,e){if(cc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(cc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fo(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Vft=0;function Kft(t){return"__private_"+Vft+++"_"+t}var yie=typeof window!="undefined"&&(window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.OIndexedDB||window.msIndexedDB),Yft=!!yie,fie="uppy-blobs",An="files",mie=24*60*60*1e3,Xft=3,pie=1048576;function Qft(t){var e=t.openCursor();e.onsuccess=function(r){var n=r.target.result;if(n){var i=n.value;i.expires=Date.now()+mie,n.update(i)}}}function hie(t){var e=yie.open(t,Xft);return new Promise(function(r,n){e.onupgradeneeded=function(i){var a=i.target.result,l=i.currentTarget.transaction;if(i.oldVersion<2){var c=a.createObjectStore(An,{keyPath:"id"});c.createIndex("store","store",{unique:!1})}if(i.oldVersion<3){var f=l.objectStore(An);f.createIndex("expires","expires",{unique:!1}),Qft(f)}l.oncomplete=function(){r(a)}},e.onsuccess=function(i){r(i.target.result)},e.onerror=n})}function IS(t){return new Promise(function(e,r){t.onsuccess=function(n){e(n.target.result)},t.onerror=r})}var die=!1,Bt=Kft("ready"),gie=function(){function t(e){var r=this;zft(this,t),Object.defineProperty(this,Bt,{writable:!0,value:void 0}),this.opts=Gft({dbName:fie,storeName:"default",expires:mie,maxFileSize:10*pie,maxTotalSize:300*pie},e),this.name=this.opts.storeName;var n=function(){var i=lc(fn().mark(function a(){var l;return fn().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,hie(r.opts.dbName);case 2:return l=f.sent,Fo(r,Bt)[Bt]=l,f.abrupt("return",l);case 5:case"end":return f.stop()}},a)}));return function(){return i.apply(this,arguments)}}();die?Fo(this,Bt)[Bt]=n():(die=!0,Fo(this,Bt)[Bt]=t.cleanup().then(n,n))}return Hft(t,[{key:"ready",get:function(){return Promise.resolve(Fo(this,Bt)[Bt])},set:function(r){Fo(this,Bt)[Bt]=r}},{key:"key",value:function(r){return"".concat(this.name,"!").concat(r)}},{key:"list",value:function(){var e=lc(fn().mark(function n(){var i,a,l,c,f;return fn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,Fo(this,Bt)[Bt];case 2:return i=y.sent,a=i.transaction([An],"readonly"),l=a.objectStore(An),c=l.index("store").getAll(IDBKeyRange.only(this.name)),y.next=8,IS(c);case 8:return f=y.sent,y.abrupt("return",Object.fromEntries(f.map(function(m){return[m.fileID,m.data]})));case 10:case"end":return y.stop()}},n,this)}));function r(){return e.apply(this,arguments)}return r}()},{key:"get",value:function(){var e=lc(fn().mark(function n(i){var a,l,c,f,d;return fn().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Fo(this,Bt)[Bt];case 2:return a=m.sent,l=a.transaction([An],"readonly"),c=l.objectStore(An).get(this.key(i)),m.next=7,IS(c);case 7:return f=m.sent,d=f.data,m.abrupt("return",{id:d.fileID,data:d.data});case 10:case"end":return m.stop()}},n,this)}));function r(n){return e.apply(this,arguments)}return r}()},{key:"getSize",value:function(){var e=lc(fn().mark(function n(){var i,a,l,c;return fn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Fo(this,Bt)[Bt];case 2:return i=d.sent,a=i.transaction([An],"readonly"),l=a.objectStore(An),c=l.index("store").openCursor(IDBKeyRange.only(this.name)),d.abrupt("return",new Promise(function(y,m){var g=0;c.onsuccess=function(w){var P=w.target.result;P?(g+=P.value.data.size,P.continue()):y(g)},c.onerror=function(){m(new Error("Could not retrieve stored blobs size"))}}));case 7:case"end":return d.stop()}},n,this)}));function r(){return e.apply(this,arguments)}return r}()},{key:"put",value:function(){var e=lc(fn().mark(function n(i){var a,l,c,f;return fn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!(i.data.size>this.opts.maxFileSize)){y.next=2;break}throw new Error("File is too big to store.");case 2:return y.next=4,this.getSize();case 4:if(a=y.sent,!(a>this.opts.maxTotalSize)){y.next=7;break}throw new Error("No space left");case 7:return y.next=9,Fo(this,Bt)[Bt];case 9:return l=y.sent,c=l.transaction([An],"readwrite"),f=c.objectStore(An).add({id:this.key(i.id),fileID:i.id,store:this.name,expires:Date.now()+this.opts.expires,data:i.data}),y.abrupt("return",IS(f));case 13:case"end":return y.stop()}},n,this)}));function r(n){return e.apply(this,arguments)}return r}()},{key:"delete",value:function(){var e=lc(fn().mark(function n(i){var a,l,c;return fn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Fo(this,Bt)[Bt];case 2:return a=d.sent,l=a.transaction([An],"readwrite"),c=l.objectStore(An).delete(this.key(i)),d.abrupt("return",IS(c));case 6:case"end":return d.stop()}},n,this)}));function r(n){return e.apply(this,arguments)}return r}()}],[{key:"cleanup",value:function(){var e=lc(fn().mark(function n(){var i,a,l,c;return fn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,hie(fie);case 2:return i=d.sent,a=i.transaction([An],"readwrite"),l=a.objectStore(An),c=l.index("expires").openCursor(IDBKeyRange.upperBound(Date.now())),d.next=8,new Promise(function(y,m){c.onsuccess=function(g){var w=g.target.result;w?(w.delete(),w.continue()):y()},c.onerror=m});case 8:i.close();case 9:case"end":return d.stop()}},n)}));function r(){return e.apply(this,arguments)}return r}()}]),t}();gie.isSupported=Yft;var bie=gie;function Fm(t){"@babel/helpers - typeof";return Fm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fm(t)}function wie(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Jft(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?wie(Object(r),!0).forEach(function(n){Zft(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wie(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Zft(t,e,r){return e=Pie(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ept(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Oie(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Pie(n.key),n)}}function tpt(t,e,r){return e&&Oie(t.prototype,e),r&&Oie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pie(t){var e=rpt(t,"string");return Fm(e)=="symbol"?e:String(e)}function rpt(t,e){if(Fm(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Fm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function npt(){for(var t=[],e=0;e<localStorage.length;e++){var r=localStorage.key(e);r!=null&&r.startsWith("uppyState:")&&t.push(r.slice(10))}return t}function Sie(t){try{return JSON.parse(t)}catch(e){return null}}var _ie=!1,Lm=function(){function t(e){ept(this,t),this.opts=Jft({expires:24*60*60*1e3},e),this.name="uppyState:".concat(e.storeName),_ie||(_ie=!0,t.cleanup())}return tpt(t,[{key:"load",value:function(){var r=localStorage.getItem(this.name);if(!r)return null;var n=Sie(r);return n?n.metadata:null}},{key:"save",value:function(r){var n=Date.now()+this.opts.expires,i=JSON.stringify({metadata:r,expires:n});localStorage.setItem(this.name,i)}}],[{key:"cleanup",value:function(r){if(r){localStorage.removeItem("uppyState:".concat(r));return}var n=npt(),i=Date.now();n.forEach(function(a){var l=localStorage.getItem("uppyState:".concat(a));if(l){var c=Sie(l);c&&c.expires&&c.expires<i&&localStorage.removeItem("uppyState:".concat(a))}})}}]),t}();function ss(t){"@babel/helpers - typeof";return ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ss(t)}function TF(){"use strict";TF=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(s,o,u){s[o]=u.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(s,o,u){return Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),s[o]}try{d({},"")}catch(s){d=function(u,p,v){return u[p]=v}}function y(s,o,u,p){var v=o&&o.prototype instanceof R?o:R,h=Object.create(v.prototype),b=new H(p||[]);return i(h,"_invoke",{value:Y(s,u,b)}),h}function m(s,o,u){try{return{type:"normal",arg:s.call(o,u)}}catch(p){return{type:"throw",arg:p}}}e.wrap=y;var g="suspendedStart",w="suspendedYield",P="executing",E="completed",O={};function R(){}function x(){}function A(){}var I={};d(I,l,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(K([])));j&&j!==r&&n.call(j,l)&&(I=j);var k=A.prototype=R.prototype=Object.create(I);function z(s){["next","throw","return"].forEach(function(o){d(s,o,function(u){return this._invoke(o,u)})})}function B(s,o){function u(v,h,b,S){var _=m(s[v],s,h);if(_.type!=="throw"){var q=_.arg,F=q.value;return F&&ss(F)=="object"&&n.call(F,"__await")?o.resolve(F.__await).then(function(C){u("next",C,b,S)},function(C){u("throw",C,b,S)}):o.resolve(F).then(function(C){q.value=C,b(q)},function(C){return u("throw",C,b,S)})}S(_.arg)}var p;i(this,"_invoke",{value:function(h,b){function S(){return new o(function(_,q){u(h,b,_,q)})}return p=p?p.then(S,S):S()}})}function Y(s,o,u){var p=g;return function(v,h){if(p===P)throw new Error("Generator is already running");if(p===E){if(v==="throw")throw h;return{value:t,done:!0}}for(u.method=v,u.arg=h;;){var b=u.delegate;if(b){var S=Q(b,u);if(S){if(S===O)continue;return S}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(p===g)throw p=E,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);p=P;var _=m(s,o,u);if(_.type==="normal"){if(p=u.done?E:w,_.arg===O)continue;return{value:_.arg,done:u.done}}_.type==="throw"&&(p=E,u.method="throw",u.arg=_.arg)}}}function Q(s,o){var u=o.method,p=s.iterator[u];if(p===t)return o.delegate=null,u==="throw"&&s.iterator.return&&(o.method="return",o.arg=t,Q(s,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),O;var v=m(p,s.iterator,o.arg);if(v.type==="throw")return o.method="throw",o.arg=v.arg,o.delegate=null,O;var h=v.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,o.method!=="return"&&(o.method="next",o.arg=t),o.delegate=null,O):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,O)}function X(s){var o={tryLoc:s[0]};1 in s&&(o.catchLoc=s[1]),2 in s&&(o.finallyLoc=s[2],o.afterLoc=s[3]),this.tryEntries.push(o)}function $(s){var o=s.completion||{};o.type="normal",delete o.arg,s.completion=o}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(X,this),this.reset(!0)}function K(s){if(s||s===""){var o=s[l];if(o)return o.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var u=-1,p=function v(){for(;++u<s.length;)if(n.call(s,u))return v.value=s[u],v.done=!1,v;return v.value=t,v.done=!0,v};return p.next=p}}throw new TypeError(ss(s)+" is not iterable")}return x.prototype=A,i(k,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=d(A,f,"GeneratorFunction"),e.isGeneratorFunction=function(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===x||(o.displayName||o.name)==="GeneratorFunction")},e.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,A):(s.__proto__=A,d(s,f,"GeneratorFunction")),s.prototype=Object.create(k),s},e.awrap=function(s){return{__await:s}},z(B.prototype),d(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(s,o,u,p,v){v===void 0&&(v=Promise);var h=new B(y(s,o,u,p),v);return e.isGeneratorFunction(o)?h:h.next().then(function(b){return b.done?b.value:h.next()})},z(k),d(k,f,"Generator"),d(k,l,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),e.keys=function(s){var o=Object(s),u=[];for(var p in o)u.push(p);return u.reverse(),function v(){for(;u.length;){var h=u.pop();if(h in o)return v.value=h,v.done=!1,v}return v.done=!0,v}},e.values=K,H.prototype={constructor:H,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach($),!o)for(var u in this)u.charAt(0)==="t"&&n.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=t)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function p(q,F){return b.type="throw",b.arg=o,u.next=q,F&&(u.method="next",u.arg=t),!!F}for(var v=this.tryEntries.length-1;v>=0;--v){var h=this.tryEntries[v],b=h.completion;if(h.tryLoc==="root")return p("end");if(h.tryLoc<=this.prev){var S=n.call(h,"catchLoc"),_=n.call(h,"finallyLoc");if(S&&_){if(this.prev<h.catchLoc)return p(h.catchLoc,!0);if(this.prev<h.finallyLoc)return p(h.finallyLoc)}else if(S){if(this.prev<h.catchLoc)return p(h.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<h.finallyLoc)return p(h.finallyLoc)}}}},abrupt:function(o,u){for(var p=this.tryEntries.length-1;p>=0;--p){var v=this.tryEntries[p];if(v.tryLoc<=this.prev&&n.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var h=v;break}}h&&(o==="break"||o==="continue")&&h.tryLoc<=u&&u<=h.finallyLoc&&(h=null);var b=h?h.completion:{};return b.type=o,b.arg=u,h?(this.method="next",this.next=h.finallyLoc,O):this.complete(b)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),O},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===o)return this.complete(p.completion,p.afterLoc),$(p),O}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===o){var v=p.completion;if(v.type==="throw"){var h=v.arg;$(p)}return h}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,p){return this.delegate={iterator:K(o),resultName:u,nextLoc:p},this.method==="next"&&(this.arg=t),O}},e}function Eie(t,e,r,n,i,a,l){try{var c=t[a](l),f=c.value}catch(d){r(d);return}c.done?e(f):Promise.resolve(f).then(n,i)}function ipt(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function l(f){Eie(a,n,i,l,c,"next",f)}function c(f){Eie(a,n,i,l,c,"throw",f)}l(void 0)})}}function opt(t,e){return lpt(t)||spt(t,e)||upt(t,e)||apt()}function apt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function upt(t,e){if(t){if(typeof t=="string")return Tie(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tie(t,e)}}function Tie(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function spt(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,l,c=[],f=!0,d=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);f=!0);}catch(y){d=!0,i=y}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function lpt(t){if(Array.isArray(t))return t}function Aie(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Cr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Aie(Object(r),!0).forEach(function(n){cpt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Aie(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function cpt(t,e,r){return e=Rie(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fpt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xie(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rie(n.key),n)}}function ppt(t,e,r){return e&&xie(t.prototype,e),r&&xie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Rie(t){var e=hpt(t,"string");return ss(e)=="symbol"?e:String(e)}function hpt(t,e){if(ss(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ss(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function dpt(t,e,r){return e=kS(e),vpt(t,Iie()?Reflect.construct(e,r||[],kS(t).constructor):e.apply(t,r))}function vpt(t,e){if(e&&(ss(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bp(t)}function Iie(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Iie=function(){return!!t})()}function kS(t){return kS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kS(t)}function Bp(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ypt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&AF(t,e)}function AF(t,e){return AF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},AF(t,e)}var mpt={version:"3.2.0"},gpt={expires:24*60*60*1e3,serviceWorker:!1},xF=function(t){ypt(e,t);function e(r,n){var i;return fpt(this,e),i=dpt(this,e,[r,Cr(Cr({},gpt),n)]),i.addBlobToStores=function(a){a.isRemote||(i.ServiceWorkerStore&&i.ServiceWorkerStore.put(a).catch(function(l){i.uppy.log("[GoldenRetriever] Could not store file","warning"),i.uppy.log(l)}),i.IndexedDBStore.put(a).catch(function(l){i.uppy.log("[GoldenRetriever] Could not store file","warning"),i.uppy.log(l)}))},i.removeBlobFromStores=function(a){i.ServiceWorkerStore&&i.ServiceWorkerStore.delete(a.id).catch(function(l){i.uppy.log("[GoldenRetriever] Failed to remove file","warning"),i.uppy.log(l)}),i.IndexedDBStore.delete(a.id).catch(function(l){i.uppy.log("[GoldenRetriever] Failed to remove file","warning"),i.uppy.log(l)})},i.replaceBlobInStores=function(a){i.removeBlobFromStores(a),i.addBlobToStores(a)},i.handleRestoreConfirmed=function(){i.uppy.log("[GoldenRetriever] Restore confirmed, proceeding...");var a=i.uppy.getState(),l=a.currentUploads;l&&(i.uppy.resumeAll(),Object.keys(l).forEach(function(c){i.uppy.restore(c)})),i.uppy.setState({recoveredState:null})},i.abortRestore=function(){i.uppy.log("[GoldenRetriever] Aborting restore...");var a=Object.keys(i.uppy.getState().files);i.deleteBlobs(a).then(function(){i.uppy.log("[GoldenRetriever] Removed ".concat(a.length," files"))}).catch(function(l){i.uppy.log("[GoldenRetriever] Could not remove ".concat(a.length," files"),"warning"),i.uppy.log(l)}),i.uppy.cancelAll(),i.uppy.setState({recoveredState:null}),Lm.cleanup(i.uppy.opts.id)},i.handleComplete=function(a){var l=a.successful,c=l.map(function(f){return f.id});i.deleteBlobs(c).then(function(){i.uppy.log("[GoldenRetriever] Removed ".concat(l.length," files that finished uploading"))}).catch(function(f){i.uppy.log("[GoldenRetriever] Could not remove ".concat(l.length," files that finished uploading"),"warning"),i.uppy.log(f)}),i.uppy.setState({recoveredState:null}),Lm.cleanup(i.uppy.opts.id)},i.restoreBlobs=function(){i.uppy.getFiles().length>0?Promise.all([i.loadFileBlobsFromServiceWorker(),i.loadFileBlobsFromIndexedDB()]).then(function(a){var l=Cr(Cr({},a[0]),a[1]);i.onBlobsLoaded(l)}):i.uppy.log("[GoldenRetriever] No files need to be loaded, only restoring processing state...")},i.type="debugger",i.id=i.opts.id||"GoldenRetriever",i.MetaDataStore=new Lm({expires:i.opts.expires,storeName:r.getID()}),i.ServiceWorkerStore=null,i.opts.serviceWorker&&(i.ServiceWorkerStore=new uie({storeName:r.getID()})),i.IndexedDBStore=new bie(Cr(Cr({expires:i.opts.expires},i.opts.indexedDB||{}),{},{storeName:r.getID()})),i.saveFilesStateToLocalStorage=(0,kie.default)(i.saveFilesStateToLocalStorage.bind(Bp(i)),500,{leading:!0,trailing:!0}),i.restoreState=i.restoreState.bind(Bp(i)),i.loadFileBlobsFromServiceWorker=i.loadFileBlobsFromServiceWorker.bind(Bp(i)),i.loadFileBlobsFromIndexedDB=i.loadFileBlobsFromIndexedDB.bind(Bp(i)),i.onBlobsLoaded=i.onBlobsLoaded.bind(Bp(i)),i}return ppt(e,[{key:"restoreState",value:function(){var n=this.MetaDataStore.load();n&&(this.uppy.log("[GoldenRetriever] Recovered some state from Local Storage"),this.uppy.setState({currentUploads:n.currentUploads||{},files:n.files||{},recoveredState:n}),this.savedPluginData=n.pluginData)}},{key:"getWaitingFiles",value:function(){var n={};return this.uppy.getFiles().forEach(function(i){(!i.progress||!i.progress.uploadStarted)&&(n[i.id]=i)}),n}},{key:"getUploadingFiles",value:function(){var n=this,i={},a=this.uppy.getState(),l=a.currentUploads;if(l){var c=Object.keys(l);c.forEach(function(f){var d=l[f].fileIDs;d.forEach(function(y){i[y]=n.uppy.getFile(y)})})}return i}},{key:"saveFilesStateToLocalStorage",value:function(){var n=Cr(Cr({},this.getWaitingFiles()),this.getUploadingFiles()),i=Object.entries(n);if(i.length===0){this.uppy.getState().recoveredState!==null&&this.uppy.setState({recoveredState:null}),Lm.cleanup(this.uppy.opts.id);return}var a=Object.fromEntries(i.map(function(d){var y=opt(d,2),m=y[0],g=y[1];return[m,g.isRemote?Cr(Cr({},g),{},{isRestored:!0}):Cr(Cr({},g),{},{isRestored:!0,data:null,preview:null})]})),l={};this.uppy.emit("restore:get-data",function(d){Object.assign(l,d)});var c=this.uppy.getState(),f=c.currentUploads;this.MetaDataStore.save({currentUploads:f,files:a,pluginData:l})}},{key:"loadFileBlobsFromServiceWorker",value:function(){var n=this;return this.ServiceWorkerStore?this.ServiceWorkerStore.list().then(function(i){var a=Object.keys(i).length;return a>0?(n.uppy.log("[GoldenRetriever] Successfully recovered ".concat(a," blobs from Service Worker!")),i):(n.uppy.log("[GoldenRetriever] No blobs found in Service Worker, trying IndexedDB now..."),{})}).catch(function(i){return n.uppy.log("[GoldenRetriever] Failed to recover blobs from Service Worker","warning"),n.uppy.log(i),{}}):Promise.resolve({})}},{key:"loadFileBlobsFromIndexedDB",value:function(){var n=this;return this.IndexedDBStore.list().then(function(i){var a=Object.keys(i).length;return a>0?(n.uppy.log("[GoldenRetriever] Successfully recovered ".concat(a," blobs from IndexedDB!")),i):(n.uppy.log("[GoldenRetriever] No blobs found in IndexedDB"),{})}).catch(function(i){return n.uppy.log("[GoldenRetriever] Failed to recover blobs from IndexedDB","warning"),n.uppy.log(i),{}})}},{key:"onBlobsLoaded",value:function(n){var i=this,a=[],l=Cr({},this.uppy.getState().files);Object.keys(n).forEach(function(c){var f=i.uppy.getFile(c);if(!f){a.push(c);return}var d=n[c],y={data:d,isRestored:!0,isGhost:!1};l[c]=Cr(Cr({},f),y)}),Object.keys(l).forEach(function(c){l[c].data===null&&(l[c]=Cr(Cr({},l[c]),{},{isGhost:!0}))}),this.uppy.setState({files:l}),this.uppy.emit("restored",this.savedPluginData),a.length&&this.deleteBlobs(a).then(function(){i.uppy.log("[GoldenRetriever] Cleaned up ".concat(a.length," old files"))}).catch(function(c){i.uppy.log("[GoldenRetriever] Could not clean up ".concat(a.length," old files"),"warning"),i.uppy.log(c)})}},{key:"deleteBlobs",value:function(){var r=ipt(TF().mark(function i(a){var l=this;return TF().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,Promise.all(a.map(function(d){var y,m,g;return(y=(m=l.ServiceWorkerStore)==null?void 0:m.delete(d))!=null?y:(g=l.IndexedDBStore)==null?void 0:g.delete(d)}));case 2:case"end":return f.stop()}},i)}));function n(i){return r.apply(this,arguments)}return n}()},{key:"install",value:function(){this.restoreState(),this.restoreBlobs(),this.uppy.on("file-added",this.addBlobToStores),this.uppy.on("file-editor:complete",this.replaceBlobInStores),this.uppy.on("file-removed",this.removeBlobFromStores),this.uppy.on("state-update",this.saveFilesStateToLocalStorage),this.uppy.on("restore-confirmed",this.handleRestoreConfirmed),this.uppy.on("restore-canceled",this.abortRestore),this.uppy.on("complete",this.handleComplete)}},{key:"uninstall",value:function(){this.uppy.off("file-added",this.addBlobToStores),this.uppy.off("file-editor:complete",this.replaceBlobInStores),this.uppy.off("file-removed",this.removeBlobFromStores),this.uppy.off("state-update",this.saveFilesStateToLocalStorage),this.uppy.off("restore-confirmed",this.handleRestoreConfirmed),this.uppy.off("restore-canceled",this.abortRestore),this.uppy.off("complete",this.handleComplete)}}]),e}(ht);xF.VERSION=mpt.version;function $p(t){"@babel/helpers - typeof";return $p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$p(t)}function jie(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Gp(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jie(Object(r),!0).forEach(function(n){bpt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jie(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function bpt(t,e,r){return e=Fie(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wpt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qie(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Fie(n.key),n)}}function Opt(t,e,r){return e&&qie(t.prototype,e),r&&qie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Fie(t){var e=Spt(t,"string");return $p(e)=="symbol"?e:String(e)}function Spt(t,e){if($p(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if($p(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _pt(t,e,r){return e=jS(e),Ppt(t,Lie()?Reflect.construct(e,r||[],jS(t).constructor):e.apply(t,r))}function Ppt(t,e){if(e&&($p(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RF(t)}function Lie(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Lie=function(){return!!t})()}function jS(t){return jS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jS(t)}function RF(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ept(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&IF(t,e)}function IF(t,e){return IF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},IF(t,e)}var Tpt={version:"3.0.3"},kF=function(t){Ept(e,t);function e(r,n){var i;wpt(this,e),i=_pt(this,e,[r,n]),i.type="debugger",i.id=i.opts.id||"ReduxDevTools",i.title="Redux DevTools";var a={};return i.opts=Gp(Gp({},a),n),i.handleStateChange=i.handleStateChange.bind(RF(i)),i.initDevTools=i.initDevTools.bind(RF(i)),i}return Opt(e,[{key:"handleStateChange",value:function(n,i){this.devTools.send("UPPY_STATE_UPDATE",i)}},{key:"initDevTools",value:function(){var n=this;this.devTools=window.devToolsExtension.connect(),this.devToolsUnsubscribe=this.devTools.subscribe(function(i){if(i.type==="DISPATCH")switch(i.payload.type){case"RESET":n.uppy.cancelAll();return;case"IMPORT_STATE":{var a=i.payload.nextLiftedState.computedStates;n.uppy.store.state=Gp(Gp({},n.uppy.getState()),a[a.length-1].state),n.uppy.updateAll(n.uppy.getState());return}case"JUMP_TO_STATE":case"JUMP_TO_ACTION":n.uppy.store.state=Gp(Gp({},n.uppy.getState()),JSON.parse(i.state)),n.uppy.updateAll(n.uppy.getState());break;default:}})}},{key:"install",value:function(){this.withDevTools=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION__,this.withDevTools&&(this.initDevTools(),this.uppy.on("state-update",this.handleStateChange))}},{key:"uninstall",value:function(){this.withDevTools&&(this.devToolsUnsubscribe(),this.uppy.off("state-update",this.handleStateUpdate))}}]),e}(Ae);kF.VERSION=Tpt.version;function Apt(){throw new Error("Core has been renamed to Uppy")}var xpt={ProviderView:SI};os.COMPANION_URL=uF;os.COMPANION_ALLOWED_HOSTS=sF;var Rpt={};globalThis.Uppy=jF;typeof window.ResizeObserver!="function"&&(window.ResizeObserver=UH);})();
/**
 * Takes a string with placeholder variables like `%{smart_count} file selected`
 * and replaces it with values from options `{smart_count: 5}`
 *
 * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
 * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
 *
 * @param phrase that needs interpolation, with placeholders
 * @param options with values that will be used to replace placeholders
 */
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
/*! Bundled license information:

classnames/index.js:
  (*!
    Copyright (c) 2018 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  *)

cropperjs/dist/cropper.js:
  (*!
   * Cropper.js v1.5.7
   * https://fengyuanchen.github.io/cropperjs
   *
   * Copyright 2015-present Chen Fengyuan
   * Released under the MIT license
   *
   * Date: 2020-05-23T05:23:00.081Z
   *)

compressorjs/dist/compressor.js:
  (*!
   * Compressor.js v1.2.1
   * https://fengyuanchen.github.io/compressorjs
   *
   * Copyright 2018-present Chen Fengyuan
   * Released under the MIT license
   *
   * Date: 2023-02-28T14:09:41.732Z
   *)

p-retry/index.js:
  (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)

p-timeout/index.js:
  (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)

p-queue/dist/index.js:
  (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)

exifr/dist/mini.esm.mjs:
  (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)

tus-js-client/lib.esm/upload.js:
  (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)

tus-js-client/lib.esm/browser/fileReader.js:
  (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
*/
//# sourceMappingURL=uppy.legacy.min.js.map