@kvass/widgets 1.9.18 → 1.9.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +8 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,10 +1,12 @@
1
- const Pe="Cancel",Me="Confirm",We="Email",Re="Drag a file here or <b>browse</b> to upload",Ne="the file / files are too large",$e=`
2
- Font associated with selected theme template`,He="Body font",Ye="Heading font",ze="Preview",Ve="Preview not available",Ge="Back",qe="Highlighted icons",Ke="Icon | Icons",Xe="Search in English for icon you are looking for, for example 'Helicopter'.",Je="Hits",Qe="No icons to match your search.",Ze="Notification",et="Thank you for your interest. You will soon be contacted.",tt="I wish to be contacted with the consent of {0}",rt="Load all elements",nt="Max size",ot="Name",it="Phone",at="You have not entered a valid phone number",st="Main title",ut="Privacy policy",lt="Secondary title",ct="Select",ft="Select icon",ht="Select / search for font",dt="Show all",gt="Show all Google Fonts",pt="Something went wrong",mt="Submit {x}",yt={cancel:Pe,confirm:Me,delete:"Delete",email:We,"fa-pro-brands":"Brands icons","fa-pro-duotone":"Duotone icons","fa-pro-light":"Light icons","fa-pro-regular":"Regular icons","fa-pro-solid":"Solid icons",fileDropAreaMessage:Re,fileSizeError:Ne,fontAssociatedWithSelectedThemeTemplate:$e,fontForBody:He,fontForHeading:Ye,fontPreview:ze,fontPreviewDisabled:Ve,goBack:Ge,highlightedIcons:qe,icon:Ke,iconSelectWidgetHelpText:Xe,iconsSelectWidgetIconsFound:Je,iconsSelectWidgetNoIconsMatchYourSearch:Qe,leadMessage:Ze,leadMessageSent:et,leadPrivacy:tt,loadAllElements:rt,maxSize:nt,name:ot,phone:it,phoneValidation:at,primaryTitle:st,privacy:ut,secondaryTitle:lt,select:ct,selectIcon:ft,selectOrSearchForFont:ht,showAll:dt,showAllGoogleFonts:gt,somethingWentWrong:pt,submit:mt},wt="Avbryt",bt="Bekreft",vt="E-post",Et="Dra en fil hit eller <b>velg</b> for å laste opp",At="filen / filene er for store",It="Font tilknyttet valgt tema mal",Bt="Skrifttype for mengdetekst",xt="Skrifttype for tittel",St="Forhåndsvisning",_t="Forhåndsvisning ikke tilgjengelig",kt="Gå tilbake",Ut="Fremhevede ikoner",Tt="Ikon | Ikoner",jt="Søk på engelsk etter ikonet du leter etter. Eks. 'Helicopter'",Lt="treff",Ft="Ingen ikoner passer søket ditt.",Dt="Beskjed",Ct="Takk for din interesse. Du vil snart bli kontaktet.",Ot="Jeg ønsker å bli kontaktet i samtykke med {0}",Pt="Last inn alle",Mt="Maks størrelse",Wt="Navn",Rt="Telefon",Nt="Du har ikke tastet inn et gyldig telefonnummer",$t="Hovedtittel",Ht="Personvernerklæringen",Yt="Sekundærtittel",zt="Velg",Vt="Velg ikon",Gt="Velg / søk etter font",qt="Vis alle",Kt="Vis alle Google fonts",Xt="Noe gikk galt",Jt="Send inn {x}",Qt={cancel:wt,confirm:bt,delete:"Slett",email:vt,"fa-pro-brands":"Merkevare ikoner","fa-pro-duotone":"Duofargede ikoner","fa-pro-light":"Tynne ikoner","fa-pro-regular":"Normale ikoner","fa-pro-solid":"Ikoner med heldekkende farge",fileDropAreaMessage:Et,fileSizeError:At,fontAssociatedWithSelectedThemeTemplate:It,fontForBody:Bt,fontForHeading:xt,fontPreview:St,fontPreviewDisabled:_t,goBack:kt,highlightedIcons:Ut,icon:Tt,iconSelectWidgetHelpText:jt,iconsSelectWidgetIconsFound:Lt,iconsSelectWidgetNoIconsMatchYourSearch:Ft,leadMessage:Dt,leadMessageSent:Ct,leadPrivacy:Ot,loadAllElements:Pt,maxSize:Mt,name:Wt,phone:Rt,phoneValidation:Nt,primaryTitle:$t,privacy:Ht,secondaryTitle:Yt,select:zt,selectIcon:Vt,selectOrSearchForFont:Gt,showAll:qt,showAllGoogleFonts:Kt,somethingWentWrong:Xt,submit:Jt};var Pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zt(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function he(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Te={exports:{}};(function(a,s){(function(o){a.exports=o()})(function(){return function o(u,f,d){function k(x,F){if(!f[x]){if(!u[x]){var P=typeof he=="function"&&he;if(!F&&P)return P(x,!0);if(U)return U(x,!0);throw new Error("Cannot find module '"+x+"'")}F=f[x]={exports:{}},u[x][0].call(F.exports,function(W){var R=u[x][1][W];return k(R||W)},F,F.exports,o,u,f,d)}return f[x].exports}for(var U=typeof he=="function"&&he,S=0;S<d.length;S++)k(d[S]);return k}({1:[function(o,u,f){(function(d,k,U,S,x,F,P,W,R){var y=o("crypto");function T(c,m){m=_(c,m);var r;return(r=m.algorithm!=="passthrough"?y.createHash(m.algorithm):new L).write===void 0&&(r.write=r.update,r.end=r.update),v(m,r).dispatch(c),r.update||r.end(""),r.digest?r.digest(m.encoding==="buffer"?void 0:m.encoding):(c=r.read(),m.encoding!=="buffer"?c.toString(m.encoding):c)}(f=u.exports=T).sha1=function(c){return T(c)},f.keys=function(c){return T(c,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},f.MD5=function(c){return T(c,{algorithm:"md5",encoding:"hex"})},f.keysMD5=function(c){return T(c,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var g=y.getHashes?y.getHashes().slice():["sha1","md5"],E=(g.push("passthrough"),["buffer","hex","binary","base64"]);function _(c,m){var r={};if(r.algorithm=(m=m||{}).algorithm||"sha1",r.encoding=m.encoding||"hex",r.excludeValues=!!m.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=m.ignoreUnknown===!0,r.respectType=m.respectType!==!1,r.respectFunctionNames=m.respectFunctionNames!==!1,r.respectFunctionProperties=m.respectFunctionProperties!==!1,r.unorderedArrays=m.unorderedArrays===!0,r.unorderedSets=m.unorderedSets!==!1,r.unorderedObjects=m.unorderedObjects!==!1,r.replacer=m.replacer||void 0,r.excludeKeys=m.excludeKeys||void 0,c===void 0)throw new Error("Object argument required.");for(var i=0;i<g.length;++i)g[i].toLowerCase()===r.algorithm.toLowerCase()&&(r.algorithm=g[i]);if(g.indexOf(r.algorithm)===-1)throw new Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+g.join(", "));if(E.indexOf(r.encoding)===-1&&r.algorithm!=="passthrough")throw new Error('Encoding "'+r.encoding+'" not supported. supported values: '+E.join(", "));return r}function A(c){if(typeof c=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(c))!=null}function v(c,m,r){r=r||[];function i(t){return m.update?m.update(t,"utf8"):m.write(t,"utf8")}return{dispatch:function(t){return this["_"+((t=c.replacer?c.replacer(t):t)===null?"null":typeof t)](t)},_object:function(t){var h,p=Object.prototype.toString.call(t),C=/\[object (.*)\]/i.exec(p);if(C=(C=C?C[1]:"unknown:["+p+"]").toLowerCase(),0<=(p=r.indexOf(t)))return this.dispatch("[CIRCULAR:"+p+"]");if(r.push(t),U!==void 0&&U.isBuffer&&U.isBuffer(t))return i("buffer:"),i(t);if(C==="object"||C==="function"||C==="asyncfunction")return p=Object.keys(t),c.unorderedObjects&&(p=p.sort()),c.respectType===!1||A(t)||p.splice(0,0,"prototype","__proto__","constructor"),c.excludeKeys&&(p=p.filter(function(D){return!c.excludeKeys(D)})),i("object:"+p.length+":"),h=this,p.forEach(function(D){h.dispatch(D),i(":"),c.excludeValues||h.dispatch(t[D]),i(",")});if(!this["_"+C]){if(c.ignoreUnknown)return i("["+C+"]");throw new Error('Unknown object type "'+C+'"')}this["_"+C](t)},_array:function(t,D){D=D!==void 0?D:c.unorderedArrays!==!1;var p=this;if(i("array:"+t.length+":"),!D||t.length<=1)return t.forEach(function(O){return p.dispatch(O)});var C=[],D=t.map(function(O){var j=new L,N=r.slice();return v(c,j,N).dispatch(O),C=C.concat(N.slice(r.length)),j.read().toString()});return r=r.concat(C),D.sort(),this._array(D,!1)},_date:function(t){return i("date:"+t.toJSON())},_symbol:function(t){return i("symbol:"+t.toString())},_error:function(t){return i("error:"+t.toString())},_boolean:function(t){return i("bool:"+t.toString())},_string:function(t){i("string:"+t.length+":"),i(t.toString())},_function:function(t){i("fn:"),A(t)?this.dispatch("[native]"):this.dispatch(t.toString()),c.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(t.name)),c.respectFunctionProperties&&this._object(t)},_number:function(t){return i("number:"+t.toString())},_xml:function(t){return i("xml:"+t.toString())},_null:function(){return i("Null")},_undefined:function(){return i("Undefined")},_regexp:function(t){return i("regex:"+t.toString())},_uint8array:function(t){return i("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint8clampedarray:function(t){return i("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(t))},_int8array:function(t){return i("int8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint16array:function(t){return i("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},_int16array:function(t){return i("int16array:"),this.dispatch(Array.prototype.slice.call(t))},_uint32array:function(t){return i("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},_int32array:function(t){return i("int32array:"),this.dispatch(Array.prototype.slice.call(t))},_float32array:function(t){return i("float32array:"),this.dispatch(Array.prototype.slice.call(t))},_float64array:function(t){return i("float64array:"),this.dispatch(Array.prototype.slice.call(t))},_arraybuffer:function(t){return i("arraybuffer:"),this.dispatch(new Uint8Array(t))},_url:function(t){return i("url:"+t.toString())},_map:function(t){return i("map:"),t=Array.from(t),this._array(t,c.unorderedSets!==!1)},_set:function(t){return i("set:"),t=Array.from(t),this._array(t,c.unorderedSets!==!1)},_file:function(t){return i("file:"),this.dispatch([t.name,t.size,t.type,t.lastModfied])},_blob:function(){if(c.ignoreUnknown)return i("[blob]");throw Error(`Hashing Blob objects is currently not supported
1
+ const Pe="Cancel",We="Confirm",Ce="Email",Oe="Drag a file here or <b>browse</b> to upload",Ne="the file / files are too large",Re=`
2
+ Font associated with selected theme template`,He="Body font",ze="Heading font",Ye="Preview",Ve="Preview not available",Ge="Back",qe="Highlighted icons",Je="Icon | Icons",Ke="Search in English for icon you are looking for, for example 'Helicopter'.",Xe="Hits",Qe="No icons to match your search.",Ze="Notification",et="Thank you for your interest. You will soon be contacted.",tt="I wish to be contacted with the consent of {0}",nt="Load all elements",rt="Max size",ot="Name",it="Phone",at="You have not entered a valid phone number",st="Main title",lt="Privacy policy",ct="Secondary title",ut="Select",ft="Select icon",dt="Select / search for font",ht="Show all",gt="Show all Google Fonts",pt="Something went wrong",mt="Submit {x}",yt={cancel:Pe,confirm:We,delete:"Delete",email:Ce,"fa-pro-brands":"Brands icons","fa-pro-duotone":"Duotone icons","fa-pro-light":"Light icons","fa-pro-regular":"Regular icons","fa-pro-solid":"Solid icons",fileDropAreaMessage:Oe,fileSizeError:Ne,fontAssociatedWithSelectedThemeTemplate:Re,fontForBody:He,fontForHeading:ze,fontPreview:Ye,fontPreviewDisabled:Ve,goBack:Ge,highlightedIcons:qe,icon:Je,iconSelectWidgetHelpText:Ke,iconsSelectWidgetIconsFound:Xe,iconsSelectWidgetNoIconsMatchYourSearch:Qe,leadMessage:Ze,leadMessageSent:et,leadPrivacy:tt,loadAllElements:nt,maxSize:rt,name:ot,phone:it,phoneValidation:at,primaryTitle:st,privacy:lt,secondaryTitle:ct,select:ut,selectIcon:ft,selectOrSearchForFont:dt,showAll:ht,showAllGoogleFonts:gt,somethingWentWrong:pt,submit:mt},bt="Avbryt",wt="Bekreft",vt="E-post",St="Dra en fil hit eller <b>velg</b> for å laste opp",kt="filen / filene er for store",At="Font tilknyttet valgt tema mal",Et="Skrifttype for mengdetekst",It="Skrifttype for tittel",Bt="Forhåndsvisning",xt="Forhåndsvisning ikke tilgjengelig",Tt="Gå tilbake",$t="Fremhevede ikoner",Ft="Ikon | Ikoner",_t="Søk på engelsk etter ikonet du leter etter. Eks. 'Helicopter'",jt="treff",Ut="Ingen ikoner passer søket ditt.",Mt="Beskjed",Dt="Takk for din interesse. Du vil snart bli kontaktet.",Lt="Jeg ønsker å bli kontaktet i samtykke med {0}",Pt="Last inn alle",Wt="Maks størrelse",Ct="Navn",Ot="Telefon",Nt="Du har ikke tastet inn et gyldig telefonnummer",Rt="Hovedtittel",Ht="Personvernerklæringen",zt="Sekundærtittel",Yt="Velg",Vt="Velg ikon",Gt="Velg / søk etter font",qt="Vis alle",Jt="Vis alle Google fonts",Kt="Noe gikk galt",Xt="Send inn {x}",Qt={cancel:bt,confirm:wt,delete:"Slett",email:vt,"fa-pro-brands":"Merkevare ikoner","fa-pro-duotone":"Duofargede ikoner","fa-pro-light":"Tynne ikoner","fa-pro-regular":"Normale ikoner","fa-pro-solid":"Ikoner med heldekkende farge",fileDropAreaMessage:St,fileSizeError:kt,fontAssociatedWithSelectedThemeTemplate:At,fontForBody:Et,fontForHeading:It,fontPreview:Bt,fontPreviewDisabled:xt,goBack:Tt,highlightedIcons:$t,icon:Ft,iconSelectWidgetHelpText:_t,iconsSelectWidgetIconsFound:jt,iconsSelectWidgetNoIconsMatchYourSearch:Ut,leadMessage:Mt,leadMessageSent:Dt,leadPrivacy:Lt,loadAllElements:Pt,maxSize:Wt,name:Ct,phone:Ot,phoneValidation:Nt,primaryTitle:Rt,privacy:Ht,secondaryTitle:zt,select:Yt,selectIcon:Vt,selectOrSearchForFont:Gt,showAll:qt,showAllGoogleFonts:Jt,somethingWentWrong:Kt,submit:Xt},Zt="Annuler",en="Confirmer",tn="E-mail",nn=`Faites glisser un fichier ici ou
3
+ <b>choisissez</b> pour télécharger
4
+ `,rn="le fichier / les fichiers sont trop volumineux",on="Police associée au modèle de thème sélectionné",an="Police pour le texte de contenu",sn="Police pour le titre",ln="Aperçu",cn="Aperçu non disponible",un="Retourner",fn="Icônes mises en avant",dn="Icône | Icônes",hn="Recherchez en anglais l'icône que vous recherchez. Ex. 'Helicopter'",gn="résultats",pn="Aucune icône ne correspond à votre recherche.",mn="Message",yn="Merci de votre intérêt. Vous serez bientôt contacté.",bn="Je souhaite être contacté en accord avec {0}",wn="Charger tout",vn="Taille max.",Sn="Nom",kn="Téléphone",An="Le numéro de téléphone saisi n’est pas valide",En="Titre principal",In="Déclaration de confidentialité",Bn="Titre secondaire",xn="Choisir",Tn="Sélectionnez l'icône",$n="Choisir / rechercher une police",Fn="Afficher tout",_n="Afficher toutes les polices Google",jn="Quelque chose a mal tourné",Un="Soumettre {x}",Mn={cancel:Zt,confirm:en,delete:"Supprimer",email:tn,"fa-pro-brands":"Icônes de marque","fa-pro-duotone":"Icônes bicolores","fa-pro-light":"Icônes fines","fa-pro-regular":"Icônes normales","fa-pro-solid":"Icônes avec couleur pleine",fileDropAreaMessage:nn,fileSizeError:rn,fontAssociatedWithSelectedThemeTemplate:on,fontForBody:an,fontForHeading:sn,fontPreview:ln,fontPreviewDisabled:cn,goBack:un,highlightedIcons:fn,icon:dn,iconSelectWidgetHelpText:hn,iconsSelectWidgetIconsFound:gn,iconsSelectWidgetNoIconsMatchYourSearch:pn,leadMessage:mn,leadMessageSent:yn,leadPrivacy:bn,loadAllElements:wn,maxSize:vn,name:Sn,phone:kn,phoneValidation:An,primaryTitle:En,privacy:In,secondaryTitle:Bn,select:xn,selectIcon:Tn,selectOrSearchForFont:$n,showAll:Fn,showAllGoogleFonts:_n,somethingWentWrong:jn,submit:Un},Dn="Afbryd",Ln="Bekræft",Pn="E-mail",Wn="Træk en fil over eller <b>vælg</b> for at låse op",Cn="filen / filene er for store",On="Font tilknyttet den valgte temaskabelon",Nn="Skrifttype til tekst",Rn="Skrifttype til titel",Hn="Forhåndsvisning",zn="Forhåndsvisning ikke tilgængelig",Yn="Gå tilbage",Vn="Fremhævede ikoner",Gn="Ikon | Ikoner",qn="Søg på engelsk efter det ikon, du leder efter. F.eks. 'Helicopter'.",Jn="Resultat",Kn="Der er ingen ikoner, der matcher din søgning",Xn="Besked",Qn="Tak for din interesse. Du vil snart blive kontaktet af vores account manager.",Zn="Jeg ønsker at blive kontaktet i overensstemmelse med {0}",er="Tilfjøj alle",tr="Navn",nr="Telefon",rr="Du har ikke indtastet et gyldigt telefonnummer",or="Hovedtitel",ir="Erklæring om privatlivsbeskyttelse",ar="Sekundærtitel",sr="Vælg",lr="Vælg ikon",cr="Vælg / søg efter skrifttype",ur="Vis alle",fr="Vis alle Google-skrifttyper",dr="Noget gik galt",hr="Indsend {x}",gr={cancel:Dn,confirm:Ln,delete:"Slet",email:Pn,"fa-pro-brands":"Mærkevareikoner","fa-pro-duotone":"Tofarvede ikoner","fa-pro-light":"Light ikoner","fa-pro-regular":"Normale ikoner","fa-pro-solid":"Ikoner med heldækkende farve",fileDropAreaMessage:Wn,fileSizeError:Cn,fontAssociatedWithSelectedThemeTemplate:On,fontForBody:Nn,fontForHeading:Rn,fontPreview:Hn,fontPreviewDisabled:zn,goBack:Yn,highlightedIcons:Vn,icon:Gn,iconSelectWidgetHelpText:qn,iconsSelectWidgetIconsFound:Jn,iconsSelectWidgetNoIconsMatchYourSearch:Kn,leadMessage:Xn,leadMessageSent:Qn,leadPrivacy:Zn,loadAllElements:er,name:tr,phone:nr,phoneValidation:rr,primaryTitle:or,privacy:ir,secondaryTitle:ar,select:sr,selectIcon:lr,selectOrSearchForFont:cr,showAll:ur,showAllGoogleFonts:fr,somethingWentWrong:dr,submit:hr},pr="Avbryt",mr="Bekräfta",yr="E-post",br="Dra en fil hit eller <b>välj</b> för att ladda upp",wr="filen / filerna är för stora",vr="Typsnitt kopplat till vald temamall",Sr="Teckensnitt för brödtext",kr="Teckensnitt för titel",Ar="Förhandsvisning",Er="Förhandsvisning inte tillgänglig",Ir="Gå tillbaka",Br="Framhävda ikoner",xr="Ikon | Ikoner",Tr='Sök på engelska efter ikonen du letar efter. T.ex. "Helicopter"',$r="träff",Fr="Inga ikoner matchade din sökning.",_r="Besked/Information",jr="Tack för ditt intresse. Du kommer snart att kontaktas av en kundtjänstmedarbetare.",Ur="Jag vill bli kontaktad i enlighet med {0}",Mr="Ladda alla",Dr="Namn",Lr="Telefon",Pr="Du har inte angett ett giltigt telefonnummer",Wr="Huvudtitel",Cr="Dataskyddsförordningen",Or="Sekundär titel",Nr="Välj",Rr="Välj ikon",Hr="älj / sök efter typsnitt",zr="Visa alla",Yr="Visa alla Google-typsnitt",Vr="Ett fel inträffade",Gr="Skicka in {x}",qr={cancel:pr,confirm:mr,delete:"Radera",email:yr,"fa-pro-brands":"Varumärkesikoner","fa-pro-duotone":"Tvåfärgade ikoner","fa-pro-light":"Tunna ikoner","fa-pro-regular":"Normala ikoner","fa-pro-solid":"Ikoner med heltäckande färg",fileDropAreaMessage:br,fileSizeError:wr,fontAssociatedWithSelectedThemeTemplate:vr,fontForBody:Sr,fontForHeading:kr,fontPreview:Ar,fontPreviewDisabled:Er,goBack:Ir,highlightedIcons:Br,icon:xr,iconSelectWidgetHelpText:Tr,iconsSelectWidgetIconsFound:$r,iconsSelectWidgetNoIconsMatchYourSearch:Fr,leadMessage:_r,leadMessageSent:jr,leadPrivacy:Ur,loadAllElements:Mr,name:Dr,phone:Lr,phoneValidation:Pr,primaryTitle:Wr,privacy:Cr,secondaryTitle:Or,select:Nr,selectIcon:Rr,selectOrSearchForFont:Hr,showAll:zr,showAllGoogleFonts:Yr,somethingWentWrong:Vr,submit:Gr};var Mo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jr(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function de(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Fe={exports:{}};(function(a,s){(function(o){a.exports=o()})(function(){return function o(l,f,h){function T(I,U){if(!f[I]){if(!l[I]){var P=typeof de=="function"&&de;if(!U&&P)return P(I,!0);if($)return $(I,!0);throw new Error("Cannot find module '"+I+"'")}U=f[I]={exports:{}},l[I][0].call(U.exports,function(C){var O=l[I][1][C];return T(O||C)},U,U.exports,o,l,f,h)}return f[I].exports}for(var $=typeof de=="function"&&de,B=0;B<h.length;B++)T(h[B]);return T}({1:[function(o,l,f){(function(h,T,$,B,I,U,P,C,O){var y=o("crypto");function F(u,m){m=x(u,m);var n;return(n=m.algorithm!=="passthrough"?y.createHash(m.algorithm):new j).write===void 0&&(n.write=n.update,n.end=n.update),v(m,n).dispatch(u),n.update||n.end(""),n.digest?n.digest(m.encoding==="buffer"?void 0:m.encoding):(u=n.read(),m.encoding!=="buffer"?u.toString(m.encoding):u)}(f=l.exports=F).sha1=function(u){return F(u)},f.keys=function(u){return F(u,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},f.MD5=function(u){return F(u,{algorithm:"md5",encoding:"hex"})},f.keysMD5=function(u){return F(u,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var g=y.getHashes?y.getHashes().slice():["sha1","md5"],S=(g.push("passthrough"),["buffer","hex","binary","base64"]);function x(u,m){var n={};if(n.algorithm=(m=m||{}).algorithm||"sha1",n.encoding=m.encoding||"hex",n.excludeValues=!!m.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=m.ignoreUnknown===!0,n.respectType=m.respectType!==!1,n.respectFunctionNames=m.respectFunctionNames!==!1,n.respectFunctionProperties=m.respectFunctionProperties!==!1,n.unorderedArrays=m.unorderedArrays===!0,n.unorderedSets=m.unorderedSets!==!1,n.unorderedObjects=m.unorderedObjects!==!1,n.replacer=m.replacer||void 0,n.excludeKeys=m.excludeKeys||void 0,u===void 0)throw new Error("Object argument required.");for(var i=0;i<g.length;++i)g[i].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=g[i]);if(g.indexOf(n.algorithm)===-1)throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+g.join(", "));if(S.indexOf(n.encoding)===-1&&n.algorithm!=="passthrough")throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+S.join(", "));return n}function k(u){if(typeof u=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(u))!=null}function v(u,m,n){n=n||[];function i(t){return m.update?m.update(t,"utf8"):m.write(t,"utf8")}return{dispatch:function(t){return this["_"+((t=u.replacer?u.replacer(t):t)===null?"null":typeof t)](t)},_object:function(t){var d,p=Object.prototype.toString.call(t),D=/\[object (.*)\]/i.exec(p);if(D=(D=D?D[1]:"unknown:["+p+"]").toLowerCase(),0<=(p=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+p+"]");if(n.push(t),$!==void 0&&$.isBuffer&&$.isBuffer(t))return i("buffer:"),i(t);if(D==="object"||D==="function"||D==="asyncfunction")return p=Object.keys(t),u.unorderedObjects&&(p=p.sort()),u.respectType===!1||k(t)||p.splice(0,0,"prototype","__proto__","constructor"),u.excludeKeys&&(p=p.filter(function(M){return!u.excludeKeys(M)})),i("object:"+p.length+":"),d=this,p.forEach(function(M){d.dispatch(M),i(":"),u.excludeValues||d.dispatch(t[M]),i(",")});if(!this["_"+D]){if(u.ignoreUnknown)return i("["+D+"]");throw new Error('Unknown object type "'+D+'"')}this["_"+D](t)},_array:function(t,M){M=M!==void 0?M:u.unorderedArrays!==!1;var p=this;if(i("array:"+t.length+":"),!M||t.length<=1)return t.forEach(function(L){return p.dispatch(L)});var D=[],M=t.map(function(L){var _=new j,N=n.slice();return v(u,_,N).dispatch(L),D=D.concat(N.slice(n.length)),_.read().toString()});return n=n.concat(D),M.sort(),this._array(M,!1)},_date:function(t){return i("date:"+t.toJSON())},_symbol:function(t){return i("symbol:"+t.toString())},_error:function(t){return i("error:"+t.toString())},_boolean:function(t){return i("bool:"+t.toString())},_string:function(t){i("string:"+t.length+":"),i(t.toString())},_function:function(t){i("fn:"),k(t)?this.dispatch("[native]"):this.dispatch(t.toString()),u.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(t.name)),u.respectFunctionProperties&&this._object(t)},_number:function(t){return i("number:"+t.toString())},_xml:function(t){return i("xml:"+t.toString())},_null:function(){return i("Null")},_undefined:function(){return i("Undefined")},_regexp:function(t){return i("regex:"+t.toString())},_uint8array:function(t){return i("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint8clampedarray:function(t){return i("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(t))},_int8array:function(t){return i("int8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint16array:function(t){return i("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},_int16array:function(t){return i("int16array:"),this.dispatch(Array.prototype.slice.call(t))},_uint32array:function(t){return i("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},_int32array:function(t){return i("int32array:"),this.dispatch(Array.prototype.slice.call(t))},_float32array:function(t){return i("float32array:"),this.dispatch(Array.prototype.slice.call(t))},_float64array:function(t){return i("float64array:"),this.dispatch(Array.prototype.slice.call(t))},_arraybuffer:function(t){return i("arraybuffer:"),this.dispatch(new Uint8Array(t))},_url:function(t){return i("url:"+t.toString())},_map:function(t){return i("map:"),t=Array.from(t),this._array(t,u.unorderedSets!==!1)},_set:function(t){return i("set:"),t=Array.from(t),this._array(t,u.unorderedSets!==!1)},_file:function(t){return i("file:"),this.dispatch([t.name,t.size,t.type,t.lastModfied])},_blob:function(){if(u.ignoreUnknown)return i("[blob]");throw Error(`Hashing Blob objects is currently not supported
3
5
  (see https://github.com/puleos/object-hash/issues/26)
4
6
  Use "options.replacer" or "options.ignoreUnknown"
5
- `)},_domwindow:function(){return i("domwindow")},_bigint:function(t){return i("bigint:"+t.toString())},_process:function(){return i("process")},_timer:function(){return i("timer")},_pipe:function(){return i("pipe")},_tcp:function(){return i("tcp")},_udp:function(){return i("udp")},_tty:function(){return i("tty")},_statwatcher:function(){return i("statwatcher")},_securecontext:function(){return i("securecontext")},_connection:function(){return i("connection")},_zlib:function(){return i("zlib")},_context:function(){return i("context")},_nodescript:function(){return i("nodescript")},_httpparser:function(){return i("httpparser")},_dataview:function(){return i("dataview")},_signal:function(){return i("signal")},_fsevent:function(){return i("fsevent")},_tlswrap:function(){return i("tlswrap")}}}function L(){return{buf:"",write:function(c){this.buf+=c},end:function(c){this.buf+=c},read:function(){return this.buf}}}f.writeToStream=function(c,m,r){return r===void 0&&(r=m,m={}),v(m=_(c,m),r).dispatch(c)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(o,u,f){(function(d,k,U,S,x,F,P,W,R){(function(y){var T=typeof Uint8Array<"u"?Uint8Array:Array,g=43,E=47,_=48,A=97,v=65,L=45,c=95;function m(r){return r=r.charCodeAt(0),r===g||r===L?62:r===E||r===c?63:r<_?-1:r<_+10?r-_+26+26:r<v+26?r-v:r<A+26?r-A+26:void 0}y.toByteArray=function(r){var i,t;if(0<r.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var h=r.length,h=r.charAt(h-2)==="="?2:r.charAt(h-1)==="="?1:0,p=new T(3*r.length/4-h),C=0<h?r.length-4:r.length,D=0;function O(j){p[D++]=j}for(i=0;i<C;i+=4,0)O((16711680&(t=m(r.charAt(i))<<18|m(r.charAt(i+1))<<12|m(r.charAt(i+2))<<6|m(r.charAt(i+3))))>>16),O((65280&t)>>8),O(255&t);return h==2?O(255&(t=m(r.charAt(i))<<2|m(r.charAt(i+1))>>4)):h==1&&(O((t=m(r.charAt(i))<<10|m(r.charAt(i+1))<<4|m(r.charAt(i+2))>>2)>>8&255),O(255&t)),p},y.fromByteArray=function(r){var i,t,h,p,C=r.length%3,D="";function O(j){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(j)}for(i=0,h=r.length-C;i<h;i+=3)t=(r[i]<<16)+(r[i+1]<<8)+r[i+2],D+=O((p=t)>>18&63)+O(p>>12&63)+O(p>>6&63)+O(63&p);switch(C){case 1:D=(D+=O((t=r[r.length-1])>>2))+O(t<<4&63)+"==";break;case 2:D=(D=(D+=O((t=(r[r.length-2]<<8)+r[r.length-1])>>10))+O(t>>4&63))+O(t<<2&63)+"="}return D}})(f===void 0?this.base64js={}:f)}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(o,u,f){(function(d,k,g,S,x,F,P,W,R){var y=o("base64-js"),T=o("ieee754");function g(e,n,l){if(!(this instanceof g))return new g(e,n,l);var w,b,I,M,H=typeof e;if(n==="base64"&&H=="string")for(e=(M=e).trim?M.trim():M.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if(H=="number")w=K(e);else if(H=="string")w=g.byteLength(e,n);else{if(H!="object")throw new Error("First argument needs to be a number, array or string.");w=K(e.length)}if(g._useTypedArrays?b=g._augment(new Uint8Array(w)):((b=this).length=w,b._isBuffer=!0),g._useTypedArrays&&typeof e.byteLength=="number")b._set(e);else if(z(M=e)||g.isBuffer(M)||M&&typeof M=="object"&&typeof M.length=="number")for(I=0;I<w;I++)g.isBuffer(e)?b[I]=e.readUInt8(I):b[I]=e[I];else if(H=="string")b.write(e,0,n);else if(H=="number"&&!g._useTypedArrays&&!l)for(I=0;I<w;I++)b[I]=0;return b}function E(e,n,l,w){return g._charsWritten=ee(function(b){for(var I=[],M=0;M<b.length;M++)I.push(255&b.charCodeAt(M));return I}(n),e,l,w)}function _(e,n,l,w){return g._charsWritten=ee(function(b){for(var I,M,H=[],Y=0;Y<b.length;Y++)M=b.charCodeAt(Y),I=M>>8,M=M%256,H.push(M),H.push(I);return H}(n),e,l,w)}function A(e,n,l){var w="";l=Math.min(e.length,l);for(var b=n;b<l;b++)w+=String.fromCharCode(e[b]);return w}function v(e,n,l,I){I||(B(typeof l=="boolean","missing or invalid endian"),B(n!=null,"missing offset"),B(n+1<e.length,"Trying to read beyond buffer length"));var b,I=e.length;if(!(I<=n))return l?(b=e[n],n+1<I&&(b|=e[n+1]<<8)):(b=e[n]<<8,n+1<I&&(b|=e[n+1])),b}function L(e,n,l,I){I||(B(typeof l=="boolean","missing or invalid endian"),B(n!=null,"missing offset"),B(n+3<e.length,"Trying to read beyond buffer length"));var b,I=e.length;if(!(I<=n))return l?(n+2<I&&(b=e[n+2]<<16),n+1<I&&(b|=e[n+1]<<8),b|=e[n],n+3<I&&(b+=e[n+3]<<24>>>0)):(n+1<I&&(b=e[n+1]<<16),n+2<I&&(b|=e[n+2]<<8),n+3<I&&(b|=e[n+3]),b+=e[n]<<24>>>0),b}function c(e,n,l,w){if(w||(B(typeof l=="boolean","missing or invalid endian"),B(n!=null,"missing offset"),B(n+1<e.length,"Trying to read beyond buffer length")),!(e.length<=n))return w=v(e,n,l,!0),32768&w?-1*(65535-w+1):w}function m(e,n,l,w){if(w||(B(typeof l=="boolean","missing or invalid endian"),B(n!=null,"missing offset"),B(n+3<e.length,"Trying to read beyond buffer length")),!(e.length<=n))return w=L(e,n,l,!0),2147483648&w?-1*(4294967295-w+1):w}function r(e,n,l,w){return w||(B(typeof l=="boolean","missing or invalid endian"),B(n+3<e.length,"Trying to read beyond buffer length")),T.read(e,n,l,23,4)}function i(e,n,l,w){return w||(B(typeof l=="boolean","missing or invalid endian"),B(n+7<e.length,"Trying to read beyond buffer length")),T.read(e,n,l,52,8)}function t(e,n,l,w,b){if(b||(B(n!=null,"missing value"),B(typeof w=="boolean","missing or invalid endian"),B(l!=null,"missing offset"),B(l+1<e.length,"trying to write beyond buffer length"),ae(n,65535)),b=e.length,!(b<=l))for(var I=0,M=Math.min(b-l,2);I<M;I++)e[l+I]=(n&255<<8*(w?I:1-I))>>>8*(w?I:1-I)}function h(e,n,l,w,b){if(b||(B(n!=null,"missing value"),B(typeof w=="boolean","missing or invalid endian"),B(l!=null,"missing offset"),B(l+3<e.length,"trying to write beyond buffer length"),ae(n,4294967295)),b=e.length,!(b<=l))for(var I=0,M=Math.min(b-l,4);I<M;I++)e[l+I]=n>>>8*(w?I:3-I)&255}function p(e,n,l,w,b){b||(B(n!=null,"missing value"),B(typeof w=="boolean","missing or invalid endian"),B(l!=null,"missing offset"),B(l+1<e.length,"Trying to write beyond buffer length"),re(n,32767,-32768)),e.length<=l||t(e,0<=n?n:65535+n+1,l,w,b)}function C(e,n,l,w,b){b||(B(n!=null,"missing value"),B(typeof w=="boolean","missing or invalid endian"),B(l!=null,"missing offset"),B(l+3<e.length,"Trying to write beyond buffer length"),re(n,2147483647,-2147483648)),e.length<=l||h(e,0<=n?n:4294967295+n+1,l,w,b)}function D(e,n,l,w,b){b||(B(n!=null,"missing value"),B(typeof w=="boolean","missing or invalid endian"),B(l!=null,"missing offset"),B(l+3<e.length,"Trying to write beyond buffer length"),se(n,34028234663852886e22,-34028234663852886e22)),e.length<=l||T.write(e,n,l,w,23,4)}function O(e,n,l,w,b){b||(B(n!=null,"missing value"),B(typeof w=="boolean","missing or invalid endian"),B(l!=null,"missing offset"),B(l+7<e.length,"Trying to write beyond buffer length"),se(n,17976931348623157e292,-17976931348623157e292)),e.length<=l||T.write(e,n,l,w,52,8)}f.Buffer=g,f.SlowBuffer=g,f.INSPECT_MAX_BYTES=50,g.poolSize=8192,g._useTypedArrays=function(){try{var e=new ArrayBuffer(0),n=new Uint8Array(e);return n.foo=function(){return 42},n.foo()===42&&typeof n.subarray=="function"}catch{return!1}}(),g.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.isBuffer=function(e){return!(e==null||!e._isBuffer)},g.byteLength=function(e,n){var l;switch(e+="",n||"utf8"){case"hex":l=e.length/2;break;case"utf8":case"utf-8":l=Z(e).length;break;case"ascii":case"binary":case"raw":l=e.length;break;case"base64":l=fe(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":l=2*e.length;break;default:throw new Error("Unknown encoding")}return l},g.concat=function(e,n){if(B(z(e),`Usage: Buffer.concat(list, [totalLength])
6
- list should be an Array.`),e.length===0)return new g(0);if(e.length===1)return e[0];if(typeof n!="number")for(b=n=0;b<e.length;b++)n+=e[b].length;for(var l=new g(n),w=0,b=0;b<e.length;b++){var I=e[b];I.copy(l,w),w+=I.length}return l},g.prototype.write=function(e,n,l,w){isFinite(n)?isFinite(l)||(w=l,l=void 0):(Y=w,w=n,n=l,l=Y),n=Number(n)||0;var b,I,M,H,Y=this.length-n;switch((!l||Y<(l=Number(l)))&&(l=Y),w=String(w||"utf8").toLowerCase()){case"hex":b=function(J,G,Q,X){Q=Number(Q)||0;var q=J.length-Q;(!X||q<(X=Number(X)))&&(X=q),B((q=G.length)%2==0,"Invalid hex string"),q/2<X&&(X=q/2);for(var ue=0;ue<X;ue++){var ve=parseInt(G.substr(2*ue,2),16);B(!isNaN(ve),"Invalid hex string"),J[Q+ue]=ve}return g._charsWritten=2*ue,ue}(this,e,n,l);break;case"utf8":case"utf-8":I=this,M=n,H=l,b=g._charsWritten=ee(Z(e),I,M,H);break;case"ascii":case"binary":b=E(this,e,n,l);break;case"base64":I=this,M=n,H=l,b=g._charsWritten=ee(fe(e),I,M,H);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":b=_(this,e,n,l);break;default:throw new Error("Unknown encoding")}return b},g.prototype.toString=function(e,n,l){var w,b,I,M,H=this;if(e=String(e||"utf8").toLowerCase(),n=Number(n)||0,(l=l!==void 0?Number(l):H.length)===n)return"";switch(e){case"hex":w=function(Y,J,G){var Q=Y.length;(!J||J<0)&&(J=0),(!G||G<0||Q<G)&&(G=Q);for(var X="",q=J;q<G;q++)X+=$(Y[q]);return X}(H,n,l);break;case"utf8":case"utf-8":w=function(Y,J,G){var Q="",X="";G=Math.min(Y.length,G);for(var q=J;q<G;q++)Y[q]<=127?(Q+=le(X)+String.fromCharCode(Y[q]),X=""):X+="%"+Y[q].toString(16);return Q+le(X)}(H,n,l);break;case"ascii":case"binary":w=A(H,n,l);break;case"base64":b=H,M=l,w=(I=n)===0&&M===b.length?y.fromByteArray(b):y.fromByteArray(b.slice(I,M));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":w=function(Y,J,G){for(var Q=Y.slice(J,G),X="",q=0;q<Q.length;q+=2)X+=String.fromCharCode(Q[q]+256*Q[q+1]);return X}(H,n,l);break;default:throw new Error("Unknown encoding")}return w},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},g.prototype.copy=function(e,n,l,w){if(n=n||0,(w=w||w===0?w:this.length)!==(l=l||0)&&e.length!==0&&this.length!==0){B(l<=w,"sourceEnd < sourceStart"),B(0<=n&&n<e.length,"targetStart out of bounds"),B(0<=l&&l<this.length,"sourceStart out of bounds"),B(0<=w&&w<=this.length,"sourceEnd out of bounds"),w>this.length&&(w=this.length);var b=(w=e.length-n<w-l?e.length-n+l:w)-l;if(b<100||!g._useTypedArrays)for(var I=0;I<b;I++)e[I+n]=this[I+l];else e._set(this.subarray(l,l+b),n)}},g.prototype.slice=function(e,n){var l=this.length;if(e=N(e,l,0),n=N(n,l,l),g._useTypedArrays)return g._augment(this.subarray(e,n));for(var w=n-e,b=new g(w,void 0,!0),I=0;I<w;I++)b[I]=this[I+e];return b},g.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},g.prototype.set=function(e,n){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,n)},g.prototype.readUInt8=function(e,n){if(n||(B(e!=null,"missing offset"),B(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},g.prototype.readUInt16LE=function(e,n){return v(this,e,!0,n)},g.prototype.readUInt16BE=function(e,n){return v(this,e,!1,n)},g.prototype.readUInt32LE=function(e,n){return L(this,e,!0,n)},g.prototype.readUInt32BE=function(e,n){return L(this,e,!1,n)},g.prototype.readInt8=function(e,n){if(n||(B(e!=null,"missing offset"),B(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},g.prototype.readInt16LE=function(e,n){return c(this,e,!0,n)},g.prototype.readInt16BE=function(e,n){return c(this,e,!1,n)},g.prototype.readInt32LE=function(e,n){return m(this,e,!0,n)},g.prototype.readInt32BE=function(e,n){return m(this,e,!1,n)},g.prototype.readFloatLE=function(e,n){return r(this,e,!0,n)},g.prototype.readFloatBE=function(e,n){return r(this,e,!1,n)},g.prototype.readDoubleLE=function(e,n){return i(this,e,!0,n)},g.prototype.readDoubleBE=function(e,n){return i(this,e,!1,n)},g.prototype.writeUInt8=function(e,n,l){l||(B(e!=null,"missing value"),B(n!=null,"missing offset"),B(n<this.length,"trying to write beyond buffer length"),ae(e,255)),n>=this.length||(this[n]=e)},g.prototype.writeUInt16LE=function(e,n,l){t(this,e,n,!0,l)},g.prototype.writeUInt16BE=function(e,n,l){t(this,e,n,!1,l)},g.prototype.writeUInt32LE=function(e,n,l){h(this,e,n,!0,l)},g.prototype.writeUInt32BE=function(e,n,l){h(this,e,n,!1,l)},g.prototype.writeInt8=function(e,n,l){l||(B(e!=null,"missing value"),B(n!=null,"missing offset"),B(n<this.length,"Trying to write beyond buffer length"),re(e,127,-128)),n>=this.length||(0<=e?this.writeUInt8(e,n,l):this.writeUInt8(255+e+1,n,l))},g.prototype.writeInt16LE=function(e,n,l){p(this,e,n,!0,l)},g.prototype.writeInt16BE=function(e,n,l){p(this,e,n,!1,l)},g.prototype.writeInt32LE=function(e,n,l){C(this,e,n,!0,l)},g.prototype.writeInt32BE=function(e,n,l){C(this,e,n,!1,l)},g.prototype.writeFloatLE=function(e,n,l){D(this,e,n,!0,l)},g.prototype.writeFloatBE=function(e,n,l){D(this,e,n,!1,l)},g.prototype.writeDoubleLE=function(e,n,l){O(this,e,n,!0,l)},g.prototype.writeDoubleBE=function(e,n,l){O(this,e,n,!1,l)},g.prototype.fill=function(e,n,l){if(n=n||0,l=l||this.length,B(typeof(e=typeof(e=e||0)=="string"?e.charCodeAt(0):e)=="number"&&!isNaN(e),"value is not a number"),B(n<=l,"end < start"),l!==n&&this.length!==0){B(0<=n&&n<this.length,"start out of bounds"),B(0<=l&&l<=this.length,"end out of bounds");for(var w=n;w<l;w++)this[w]=e}},g.prototype.inspect=function(){for(var e=[],n=this.length,l=0;l<n;l++)if(e[l]=$(this[l]),l===f.INSPECT_MAX_BYTES){e[l+1]="...";break}return"<Buffer "+e.join(" ")+">"},g.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(g._useTypedArrays)return new g(this).buffer;for(var e=new Uint8Array(this.length),n=0,l=e.length;n<l;n+=1)e[n]=this[n];return e.buffer};var j=g.prototype;function N(e,n,l){return typeof e!="number"?l:n<=(e=~~e)?n:0<=e||0<=(e+=n)?e:0}function K(e){return(e=~~Math.ceil(+e))<0?0:e}function z(e){return(Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"})(e)}function $(e){return e<16?"0"+e.toString(16):e.toString(16)}function Z(e){for(var n=[],l=0;l<e.length;l++){var w=e.charCodeAt(l);if(w<=127)n.push(e.charCodeAt(l));else for(var b=l,I=(55296<=w&&w<=57343&&l++,encodeURIComponent(e.slice(b,l+1)).substr(1).split("%")),M=0;M<I.length;M++)n.push(parseInt(I[M],16))}return n}function fe(e){return y.toByteArray(e)}function ee(e,n,l,w){for(var b=0;b<w&&!(b+l>=n.length||b>=e.length);b++)n[b+l]=e[b];return b}function le(e){try{return decodeURIComponent(e)}catch{return"�"}}function ae(e,n){B(typeof e=="number","cannot write a non-number as a number"),B(0<=e,"specified a negative value for writing an unsigned value"),B(e<=n,"value is larger than maximum value for type"),B(Math.floor(e)===e,"value has a fractional component")}function re(e,n,l){B(typeof e=="number","cannot write a non-number as a number"),B(e<=n,"value larger than maximum allowed value"),B(l<=e,"value smaller than minimum allowed value"),B(Math.floor(e)===e,"value has a fractional component")}function se(e,n,l){B(typeof e=="number","cannot write a non-number as a number"),B(e<=n,"value larger than maximum allowed value"),B(l<=e,"value smaller than minimum allowed value")}function B(e,n){if(!e)throw new Error(n||"Failed assertion")}g._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=j.get,e.set=j.set,e.write=j.write,e.toString=j.toString,e.toLocaleString=j.toString,e.toJSON=j.toJSON,e.copy=j.copy,e.slice=j.slice,e.readUInt8=j.readUInt8,e.readUInt16LE=j.readUInt16LE,e.readUInt16BE=j.readUInt16BE,e.readUInt32LE=j.readUInt32LE,e.readUInt32BE=j.readUInt32BE,e.readInt8=j.readInt8,e.readInt16LE=j.readInt16LE,e.readInt16BE=j.readInt16BE,e.readInt32LE=j.readInt32LE,e.readInt32BE=j.readInt32BE,e.readFloatLE=j.readFloatLE,e.readFloatBE=j.readFloatBE,e.readDoubleLE=j.readDoubleLE,e.readDoubleBE=j.readDoubleBE,e.writeUInt8=j.writeUInt8,e.writeUInt16LE=j.writeUInt16LE,e.writeUInt16BE=j.writeUInt16BE,e.writeUInt32LE=j.writeUInt32LE,e.writeUInt32BE=j.writeUInt32BE,e.writeInt8=j.writeInt8,e.writeInt16LE=j.writeInt16LE,e.writeInt16BE=j.writeInt16BE,e.writeInt32LE=j.writeInt32LE,e.writeInt32BE=j.writeInt32BE,e.writeFloatLE=j.writeFloatLE,e.writeFloatBE=j.writeFloatBE,e.writeDoubleLE=j.writeDoubleLE,e.writeDoubleBE=j.writeDoubleBE,e.fill=j.fill,e.inspect=j.inspect,e.toArrayBuffer=j.toArrayBuffer,e}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(o,u,f){(function(d,k,y,S,x,F,P,W,R){var y=o("buffer").Buffer,T=4,g=new y(T);g.fill(0),u.exports={hash:function(E,_,A,v){for(var L=_(function(t,h){t.length%T!=0&&(p=t.length+(T-t.length%T),t=y.concat([t,g],p));for(var p,C=[],D=h?t.readInt32BE:t.readInt32LE,O=0;O<t.length;O+=T)C.push(D.call(t,O));return C}(E=y.isBuffer(E)?E:new y(E),v),8*E.length),_=v,c=new y(A),m=_?c.writeInt32BE:c.writeInt32LE,r=0;r<L.length;r++)m.call(c,L[r],4*r,!0);return c}}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(o,u,f){(function(d,k,y,S,x,F,P,W,R){var y=o("buffer").Buffer,T=o("./sha"),g=o("./sha256"),E=o("./rng"),_={sha1:T,sha256:g,md5:o("./md5")},A=64,v=new y(A);function L(t,h){var p=_[t=t||"sha1"],C=[];return p||c("algorithm:",t,"is not yet supported"),{update:function(D){return y.isBuffer(D)||(D=new y(D)),C.push(D),D.length,this},digest:function(D){var O=y.concat(C),O=h?function(j,N,K){y.isBuffer(N)||(N=new y(N)),y.isBuffer(K)||(K=new y(K)),N.length>A?N=j(N):N.length<A&&(N=y.concat([N,v],A));for(var z=new y(A),$=new y(A),Z=0;Z<A;Z++)z[Z]=54^N[Z],$[Z]=92^N[Z];return K=j(y.concat([z,K])),j(y.concat([$,K]))}(p,h,O):p(O);return C=null,D?O.toString(D):O}}}function c(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
7
- `))}v.fill(0),f.createHash=function(t){return L(t)},f.createHmac=L,f.randomBytes=function(t,h){if(!h||!h.call)return new y(E(t));try{h.call(this,void 0,new y(E(t)))}catch(p){h(p)}};var m,r=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],i=function(t){f[t]=function(){c("sorry,",t,"is not implemented yet")}};for(m in r)i(r[m])}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(o,u,f){(function(d,k,U,S,x,F,P,W,R){var y=o("./helpers");function T(c,m){c[m>>5]|=128<<m%32,c[14+(m+64>>>9<<4)]=m;for(var r=1732584193,i=-271733879,t=-1732584194,h=271733878,p=0;p<c.length;p+=16){var C=r,D=i,O=t,j=h,r=E(r,i,t,h,c[p+0],7,-680876936),h=E(h,r,i,t,c[p+1],12,-389564586),t=E(t,h,r,i,c[p+2],17,606105819),i=E(i,t,h,r,c[p+3],22,-1044525330);r=E(r,i,t,h,c[p+4],7,-176418897),h=E(h,r,i,t,c[p+5],12,1200080426),t=E(t,h,r,i,c[p+6],17,-1473231341),i=E(i,t,h,r,c[p+7],22,-45705983),r=E(r,i,t,h,c[p+8],7,1770035416),h=E(h,r,i,t,c[p+9],12,-1958414417),t=E(t,h,r,i,c[p+10],17,-42063),i=E(i,t,h,r,c[p+11],22,-1990404162),r=E(r,i,t,h,c[p+12],7,1804603682),h=E(h,r,i,t,c[p+13],12,-40341101),t=E(t,h,r,i,c[p+14],17,-1502002290),r=_(r,i=E(i,t,h,r,c[p+15],22,1236535329),t,h,c[p+1],5,-165796510),h=_(h,r,i,t,c[p+6],9,-1069501632),t=_(t,h,r,i,c[p+11],14,643717713),i=_(i,t,h,r,c[p+0],20,-373897302),r=_(r,i,t,h,c[p+5],5,-701558691),h=_(h,r,i,t,c[p+10],9,38016083),t=_(t,h,r,i,c[p+15],14,-660478335),i=_(i,t,h,r,c[p+4],20,-405537848),r=_(r,i,t,h,c[p+9],5,568446438),h=_(h,r,i,t,c[p+14],9,-1019803690),t=_(t,h,r,i,c[p+3],14,-187363961),i=_(i,t,h,r,c[p+8],20,1163531501),r=_(r,i,t,h,c[p+13],5,-1444681467),h=_(h,r,i,t,c[p+2],9,-51403784),t=_(t,h,r,i,c[p+7],14,1735328473),r=A(r,i=_(i,t,h,r,c[p+12],20,-1926607734),t,h,c[p+5],4,-378558),h=A(h,r,i,t,c[p+8],11,-2022574463),t=A(t,h,r,i,c[p+11],16,1839030562),i=A(i,t,h,r,c[p+14],23,-35309556),r=A(r,i,t,h,c[p+1],4,-1530992060),h=A(h,r,i,t,c[p+4],11,1272893353),t=A(t,h,r,i,c[p+7],16,-155497632),i=A(i,t,h,r,c[p+10],23,-1094730640),r=A(r,i,t,h,c[p+13],4,681279174),h=A(h,r,i,t,c[p+0],11,-358537222),t=A(t,h,r,i,c[p+3],16,-722521979),i=A(i,t,h,r,c[p+6],23,76029189),r=A(r,i,t,h,c[p+9],4,-640364487),h=A(h,r,i,t,c[p+12],11,-421815835),t=A(t,h,r,i,c[p+15],16,530742520),r=v(r,i=A(i,t,h,r,c[p+2],23,-995338651),t,h,c[p+0],6,-198630844),h=v(h,r,i,t,c[p+7],10,1126891415),t=v(t,h,r,i,c[p+14],15,-1416354905),i=v(i,t,h,r,c[p+5],21,-57434055),r=v(r,i,t,h,c[p+12],6,1700485571),h=v(h,r,i,t,c[p+3],10,-1894986606),t=v(t,h,r,i,c[p+10],15,-1051523),i=v(i,t,h,r,c[p+1],21,-2054922799),r=v(r,i,t,h,c[p+8],6,1873313359),h=v(h,r,i,t,c[p+15],10,-30611744),t=v(t,h,r,i,c[p+6],15,-1560198380),i=v(i,t,h,r,c[p+13],21,1309151649),r=v(r,i,t,h,c[p+4],6,-145523070),h=v(h,r,i,t,c[p+11],10,-1120210379),t=v(t,h,r,i,c[p+2],15,718787259),i=v(i,t,h,r,c[p+9],21,-343485551),r=L(r,C),i=L(i,D),t=L(t,O),h=L(h,j)}return Array(r,i,t,h)}function g(c,m,r,i,t,h){return L((m=L(L(m,c),L(i,h)))<<t|m>>>32-t,r)}function E(c,m,r,i,t,h,p){return g(m&r|~m&i,c,m,t,h,p)}function _(c,m,r,i,t,h,p){return g(m&i|r&~i,c,m,t,h,p)}function A(c,m,r,i,t,h,p){return g(m^r^i,c,m,t,h,p)}function v(c,m,r,i,t,h,p){return g(r^(m|~i),c,m,t,h,p)}function L(c,m){var r=(65535&c)+(65535&m);return(c>>16)+(m>>16)+(r>>16)<<16|65535&r}u.exports=function(c){return y.hash(c,T,16)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(o,u,f){(function(d,k,U,S,x,F,P,W,R){u.exports=function(y){for(var T,g=new Array(y),E=0;E<y;E++)!(3&E)&&(T=4294967296*Math.random()),g[E]=T>>>((3&E)<<3)&255;return g}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(o,u,f){(function(d,k,U,S,x,F,P,W,R){var y=o("./helpers");function T(_,A){_[A>>5]|=128<<24-A%32,_[15+(A+64>>9<<4)]=A;for(var v,L,c,m=Array(80),r=1732584193,i=-271733879,t=-1732584194,h=271733878,p=-1009589776,C=0;C<_.length;C+=16){for(var D=r,O=i,j=t,N=h,K=p,z=0;z<80;z++){m[z]=z<16?_[C+z]:E(m[z-3]^m[z-8]^m[z-14]^m[z-16],1);var $=g(g(E(r,5),($=i,L=t,c=h,(v=z)<20?$&L|~$&c:!(v<40)&&v<60?$&L|$&c|L&c:$^L^c)),g(g(p,m[z]),(v=z)<20?1518500249:v<40?1859775393:v<60?-1894007588:-899497514)),p=h,h=t,t=E(i,30),i=r,r=$}r=g(r,D),i=g(i,O),t=g(t,j),h=g(h,N),p=g(p,K)}return Array(r,i,t,h,p)}function g(_,A){var v=(65535&_)+(65535&A);return(_>>16)+(A>>16)+(v>>16)<<16|65535&v}function E(_,A){return _<<A|_>>>32-A}u.exports=function(_){return y.hash(_,T,20,!0)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(o,u,f){(function(d,k,U,S,x,F,P,W,R){function y(A,v){var L=(65535&A)+(65535&v);return(A>>16)+(v>>16)+(L>>16)<<16|65535&L}function T(A,v){var L,c=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),m=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),r=new Array(64);A[v>>5]|=128<<24-v%32,A[15+(v+64>>9<<4)]=v;for(var i,t,h=0;h<A.length;h+=16){for(var p=m[0],C=m[1],D=m[2],O=m[3],j=m[4],N=m[5],K=m[6],z=m[7],$=0;$<64;$++)r[$]=$<16?A[$+h]:y(y(y((t=r[$-2],E(t,17)^E(t,19)^_(t,10)),r[$-7]),(t=r[$-15],E(t,7)^E(t,18)^_(t,3))),r[$-16]),L=y(y(y(y(z,E(t=j,6)^E(t,11)^E(t,25)),j&N^~j&K),c[$]),r[$]),i=y(E(i=p,2)^E(i,13)^E(i,22),p&C^p&D^C&D),z=K,K=N,N=j,j=y(O,L),O=D,D=C,C=p,p=y(L,i);m[0]=y(p,m[0]),m[1]=y(C,m[1]),m[2]=y(D,m[2]),m[3]=y(O,m[3]),m[4]=y(j,m[4]),m[5]=y(N,m[5]),m[6]=y(K,m[6]),m[7]=y(z,m[7])}return m}var g=o("./helpers"),E=function(A,v){return A>>>v|A<<32-v},_=function(A,v){return A>>>v};u.exports=function(A){return g.hash(A,T,32,!0)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(o,u,f){(function(d,k,U,S,x,F,P,W,R){f.read=function(y,T,g,E,h){var A,v,L=8*h-E-1,c=(1<<L)-1,m=c>>1,r=-7,i=g?h-1:0,t=g?-1:1,h=y[T+i];for(i+=t,A=h&(1<<-r)-1,h>>=-r,r+=L;0<r;A=256*A+y[T+i],i+=t,r-=8);for(v=A&(1<<-r)-1,A>>=-r,r+=E;0<r;v=256*v+y[T+i],i+=t,r-=8);if(A===0)A=1-m;else{if(A===c)return v?NaN:1/0*(h?-1:1);v+=Math.pow(2,E),A-=m}return(h?-1:1)*v*Math.pow(2,A-E)},f.write=function(y,T,g,E,_,p){var v,L,c=8*p-_-1,m=(1<<c)-1,r=m>>1,i=_===23?Math.pow(2,-24)-Math.pow(2,-77):0,t=E?0:p-1,h=E?1:-1,p=T<0||T===0&&1/T<0?1:0;for(T=Math.abs(T),isNaN(T)||T===1/0?(L=isNaN(T)?1:0,v=m):(v=Math.floor(Math.log(T)/Math.LN2),T*(E=Math.pow(2,-v))<1&&(v--,E*=2),2<=(T+=1<=v+r?i/E:i*Math.pow(2,1-r))*E&&(v++,E/=2),m<=v+r?(L=0,v=m):1<=v+r?(L=(T*E-1)*Math.pow(2,_),v+=r):(L=T*Math.pow(2,r-1)*Math.pow(2,_),v=0));8<=_;y[g+t]=255&L,t+=h,L/=256,_-=8);for(v=v<<_|L,c+=_;0<c;y[g+t]=255&v,t+=h,v/=256,c-=8);y[g+t-h]|=128*p}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(o,u,f){(function(d,k,U,S,x,F,P,W,R){var y,T,g;function E(){}(d=u.exports={}).nextTick=(T=typeof window<"u"&&window.setImmediate,g=typeof window<"u"&&window.postMessage&&window.addEventListener,T?function(_){return window.setImmediate(_)}:g?(y=[],window.addEventListener("message",function(_){var A=_.source;A!==window&&A!==null||_.data!=="process-tick"||(_.stopPropagation(),0<y.length&&y.shift()())},!0),function(_){y.push(_),window.postMessage("process-tick","*")}):function(_){setTimeout(_,0)}),d.title="browser",d.browser=!0,d.env={},d.argv=[],d.on=E,d.addListener=E,d.once=E,d.off=E,d.removeListener=E,d.removeAllListeners=E,d.emit=E,d.binding=function(_){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(_){throw new Error("process.chdir is not supported")}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})})(Te);var er=Te.exports;const Ee=Zt(er);function V(a){return a!=null&&typeof a=="object"&&a["@@functional/placeholder"]===!0}function ie(a){return function s(o){return arguments.length===0||V(o)?s:a.apply(this,arguments)}}function oe(a){return function s(o,u){switch(arguments.length){case 0:return s;case 1:return V(o)?s:ie(function(f){return a(o,f)});default:return V(o)&&V(u)?s:V(o)?ie(function(f){return a(f,u)}):V(u)?ie(function(f){return a(o,f)}):a(o,u)}}}function je(a){return function s(o,u,f){switch(arguments.length){case 0:return s;case 1:return V(o)?s:oe(function(d,k){return a(o,d,k)});case 2:return V(o)&&V(u)?s:V(o)?oe(function(d,k){return a(d,u,k)}):V(u)?oe(function(d,k){return a(o,d,k)}):ie(function(d){return a(o,u,d)});default:return V(o)&&V(u)&&V(f)?s:V(o)&&V(u)?oe(function(d,k){return a(d,k,f)}):V(o)&&V(f)?oe(function(d,k){return a(d,u,k)}):V(u)&&V(f)?oe(function(d,k){return a(o,d,k)}):V(o)?ie(function(d){return a(d,u,f)}):V(u)?ie(function(d){return a(o,d,f)}):V(f)?ie(function(d){return a(o,u,d)}):a(o,u,f)}}}function de(a,s){return Object.prototype.hasOwnProperty.call(s,a)}function Ae(a){return Object.prototype.toString.call(a)==="[object Object]"}var tr=je(function(s,o,u){var f={},d;for(d in o)de(d,o)&&(f[d]=de(d,u)?s(d,o[d],u[d]):o[d]);for(d in u)de(d,u)&&!de(d,f)&&(f[d]=u[d]);return f}),rr=je(function a(s,o,u){return tr(function(f,d,k){return Ae(d)&&Ae(k)?a(s,d,k):s(f,d,k)},o,u)}),nr=oe(function(s,o){return rr(function(u,f,d){return d},s,o)});let or={headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"include"};async function ir(a,s={}){const{baseURL:o="",...u}=s;return fetch(`${o}${a}`,nr(or,u)).then(f=>{if(!f.ok)throw f;return f})}/*!
7
+ `)},_domwindow:function(){return i("domwindow")},_bigint:function(t){return i("bigint:"+t.toString())},_process:function(){return i("process")},_timer:function(){return i("timer")},_pipe:function(){return i("pipe")},_tcp:function(){return i("tcp")},_udp:function(){return i("udp")},_tty:function(){return i("tty")},_statwatcher:function(){return i("statwatcher")},_securecontext:function(){return i("securecontext")},_connection:function(){return i("connection")},_zlib:function(){return i("zlib")},_context:function(){return i("context")},_nodescript:function(){return i("nodescript")},_httpparser:function(){return i("httpparser")},_dataview:function(){return i("dataview")},_signal:function(){return i("signal")},_fsevent:function(){return i("fsevent")},_tlswrap:function(){return i("tlswrap")}}}function j(){return{buf:"",write:function(u){this.buf+=u},end:function(u){this.buf+=u},read:function(){return this.buf}}}f.writeToStream=function(u,m,n){return n===void 0&&(n=m,m={}),v(m=x(u,m),n).dispatch(u)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(o,l,f){(function(h,T,$,B,I,U,P,C,O){(function(y){var F=typeof Uint8Array<"u"?Uint8Array:Array,g=43,S=47,x=48,k=97,v=65,j=45,u=95;function m(n){return n=n.charCodeAt(0),n===g||n===j?62:n===S||n===u?63:n<x?-1:n<x+10?n-x+26+26:n<v+26?n-v:n<k+26?n-k+26:void 0}y.toByteArray=function(n){var i,t;if(0<n.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var d=n.length,d=n.charAt(d-2)==="="?2:n.charAt(d-1)==="="?1:0,p=new F(3*n.length/4-d),D=0<d?n.length-4:n.length,M=0;function L(_){p[M++]=_}for(i=0;i<D;i+=4,0)L((16711680&(t=m(n.charAt(i))<<18|m(n.charAt(i+1))<<12|m(n.charAt(i+2))<<6|m(n.charAt(i+3))))>>16),L((65280&t)>>8),L(255&t);return d==2?L(255&(t=m(n.charAt(i))<<2|m(n.charAt(i+1))>>4)):d==1&&(L((t=m(n.charAt(i))<<10|m(n.charAt(i+1))<<4|m(n.charAt(i+2))>>2)>>8&255),L(255&t)),p},y.fromByteArray=function(n){var i,t,d,p,D=n.length%3,M="";function L(_){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(_)}for(i=0,d=n.length-D;i<d;i+=3)t=(n[i]<<16)+(n[i+1]<<8)+n[i+2],M+=L((p=t)>>18&63)+L(p>>12&63)+L(p>>6&63)+L(63&p);switch(D){case 1:M=(M+=L((t=n[n.length-1])>>2))+L(t<<4&63)+"==";break;case 2:M=(M=(M+=L((t=(n[n.length-2]<<8)+n[n.length-1])>>10))+L(t>>4&63))+L(t<<2&63)+"="}return M}})(f===void 0?this.base64js={}:f)}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(o,l,f){(function(h,T,g,B,I,U,P,C,O){var y=o("base64-js"),F=o("ieee754");function g(e,r,c){if(!(this instanceof g))return new g(e,r,c);var b,w,A,W,H=typeof e;if(r==="base64"&&H=="string")for(e=(W=e).trim?W.trim():W.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if(H=="number")b=J(e);else if(H=="string")b=g.byteLength(e,r);else{if(H!="object")throw new Error("First argument needs to be a number, array or string.");b=J(e.length)}if(g._useTypedArrays?w=g._augment(new Uint8Array(b)):((w=this).length=b,w._isBuffer=!0),g._useTypedArrays&&typeof e.byteLength=="number")w._set(e);else if(Y(W=e)||g.isBuffer(W)||W&&typeof W=="object"&&typeof W.length=="number")for(A=0;A<b;A++)g.isBuffer(e)?w[A]=e.readUInt8(A):w[A]=e[A];else if(H=="string")w.write(e,0,r);else if(H=="number"&&!g._useTypedArrays&&!c)for(A=0;A<b;A++)w[A]=0;return w}function S(e,r,c,b){return g._charsWritten=ee(function(w){for(var A=[],W=0;W<w.length;W++)A.push(255&w.charCodeAt(W));return A}(r),e,c,b)}function x(e,r,c,b){return g._charsWritten=ee(function(w){for(var A,W,H=[],z=0;z<w.length;z++)W=w.charCodeAt(z),A=W>>8,W=W%256,H.push(W),H.push(A);return H}(r),e,c,b)}function k(e,r,c){var b="";c=Math.min(e.length,c);for(var w=r;w<c;w++)b+=String.fromCharCode(e[w]);return b}function v(e,r,c,A){A||(E(typeof c=="boolean","missing or invalid endian"),E(r!=null,"missing offset"),E(r+1<e.length,"Trying to read beyond buffer length"));var w,A=e.length;if(!(A<=r))return c?(w=e[r],r+1<A&&(w|=e[r+1]<<8)):(w=e[r]<<8,r+1<A&&(w|=e[r+1])),w}function j(e,r,c,A){A||(E(typeof c=="boolean","missing or invalid endian"),E(r!=null,"missing offset"),E(r+3<e.length,"Trying to read beyond buffer length"));var w,A=e.length;if(!(A<=r))return c?(r+2<A&&(w=e[r+2]<<16),r+1<A&&(w|=e[r+1]<<8),w|=e[r],r+3<A&&(w+=e[r+3]<<24>>>0)):(r+1<A&&(w=e[r+1]<<16),r+2<A&&(w|=e[r+2]<<8),r+3<A&&(w|=e[r+3]),w+=e[r]<<24>>>0),w}function u(e,r,c,b){if(b||(E(typeof c=="boolean","missing or invalid endian"),E(r!=null,"missing offset"),E(r+1<e.length,"Trying to read beyond buffer length")),!(e.length<=r))return b=v(e,r,c,!0),32768&b?-1*(65535-b+1):b}function m(e,r,c,b){if(b||(E(typeof c=="boolean","missing or invalid endian"),E(r!=null,"missing offset"),E(r+3<e.length,"Trying to read beyond buffer length")),!(e.length<=r))return b=j(e,r,c,!0),2147483648&b?-1*(4294967295-b+1):b}function n(e,r,c,b){return b||(E(typeof c=="boolean","missing or invalid endian"),E(r+3<e.length,"Trying to read beyond buffer length")),F.read(e,r,c,23,4)}function i(e,r,c,b){return b||(E(typeof c=="boolean","missing or invalid endian"),E(r+7<e.length,"Trying to read beyond buffer length")),F.read(e,r,c,52,8)}function t(e,r,c,b,w){if(w||(E(r!=null,"missing value"),E(typeof b=="boolean","missing or invalid endian"),E(c!=null,"missing offset"),E(c+1<e.length,"trying to write beyond buffer length"),ae(r,65535)),w=e.length,!(w<=c))for(var A=0,W=Math.min(w-c,2);A<W;A++)e[c+A]=(r&255<<8*(b?A:1-A))>>>8*(b?A:1-A)}function d(e,r,c,b,w){if(w||(E(r!=null,"missing value"),E(typeof b=="boolean","missing or invalid endian"),E(c!=null,"missing offset"),E(c+3<e.length,"trying to write beyond buffer length"),ae(r,4294967295)),w=e.length,!(w<=c))for(var A=0,W=Math.min(w-c,4);A<W;A++)e[c+A]=r>>>8*(b?A:3-A)&255}function p(e,r,c,b,w){w||(E(r!=null,"missing value"),E(typeof b=="boolean","missing or invalid endian"),E(c!=null,"missing offset"),E(c+1<e.length,"Trying to write beyond buffer length"),ne(r,32767,-32768)),e.length<=c||t(e,0<=r?r:65535+r+1,c,b,w)}function D(e,r,c,b,w){w||(E(r!=null,"missing value"),E(typeof b=="boolean","missing or invalid endian"),E(c!=null,"missing offset"),E(c+3<e.length,"Trying to write beyond buffer length"),ne(r,2147483647,-2147483648)),e.length<=c||d(e,0<=r?r:4294967295+r+1,c,b,w)}function M(e,r,c,b,w){w||(E(r!=null,"missing value"),E(typeof b=="boolean","missing or invalid endian"),E(c!=null,"missing offset"),E(c+3<e.length,"Trying to write beyond buffer length"),se(r,34028234663852886e22,-34028234663852886e22)),e.length<=c||F.write(e,r,c,b,23,4)}function L(e,r,c,b,w){w||(E(r!=null,"missing value"),E(typeof b=="boolean","missing or invalid endian"),E(c!=null,"missing offset"),E(c+7<e.length,"Trying to write beyond buffer length"),se(r,17976931348623157e292,-17976931348623157e292)),e.length<=c||F.write(e,r,c,b,52,8)}f.Buffer=g,f.SlowBuffer=g,f.INSPECT_MAX_BYTES=50,g.poolSize=8192,g._useTypedArrays=function(){try{var e=new ArrayBuffer(0),r=new Uint8Array(e);return r.foo=function(){return 42},r.foo()===42&&typeof r.subarray=="function"}catch{return!1}}(),g.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.isBuffer=function(e){return!(e==null||!e._isBuffer)},g.byteLength=function(e,r){var c;switch(e+="",r||"utf8"){case"hex":c=e.length/2;break;case"utf8":case"utf-8":c=Z(e).length;break;case"ascii":case"binary":case"raw":c=e.length;break;case"base64":c=fe(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":c=2*e.length;break;default:throw new Error("Unknown encoding")}return c},g.concat=function(e,r){if(E(Y(e),`Usage: Buffer.concat(list, [totalLength])
8
+ list should be an Array.`),e.length===0)return new g(0);if(e.length===1)return e[0];if(typeof r!="number")for(w=r=0;w<e.length;w++)r+=e[w].length;for(var c=new g(r),b=0,w=0;w<e.length;w++){var A=e[w];A.copy(c,b),b+=A.length}return c},g.prototype.write=function(e,r,c,b){isFinite(r)?isFinite(c)||(b=c,c=void 0):(z=b,b=r,r=c,c=z),r=Number(r)||0;var w,A,W,H,z=this.length-r;switch((!c||z<(c=Number(c)))&&(c=z),b=String(b||"utf8").toLowerCase()){case"hex":w=function(X,G,Q,K){Q=Number(Q)||0;var q=X.length-Q;(!K||q<(K=Number(K)))&&(K=q),E((q=G.length)%2==0,"Invalid hex string"),q/2<K&&(K=q/2);for(var le=0;le<K;le++){var ve=parseInt(G.substr(2*le,2),16);E(!isNaN(ve),"Invalid hex string"),X[Q+le]=ve}return g._charsWritten=2*le,le}(this,e,r,c);break;case"utf8":case"utf-8":A=this,W=r,H=c,w=g._charsWritten=ee(Z(e),A,W,H);break;case"ascii":case"binary":w=S(this,e,r,c);break;case"base64":A=this,W=r,H=c,w=g._charsWritten=ee(fe(e),A,W,H);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":w=x(this,e,r,c);break;default:throw new Error("Unknown encoding")}return w},g.prototype.toString=function(e,r,c){var b,w,A,W,H=this;if(e=String(e||"utf8").toLowerCase(),r=Number(r)||0,(c=c!==void 0?Number(c):H.length)===r)return"";switch(e){case"hex":b=function(z,X,G){var Q=z.length;(!X||X<0)&&(X=0),(!G||G<0||Q<G)&&(G=Q);for(var K="",q=X;q<G;q++)K+=R(z[q]);return K}(H,r,c);break;case"utf8":case"utf-8":b=function(z,X,G){var Q="",K="";G=Math.min(z.length,G);for(var q=X;q<G;q++)z[q]<=127?(Q+=ce(K)+String.fromCharCode(z[q]),K=""):K+="%"+z[q].toString(16);return Q+ce(K)}(H,r,c);break;case"ascii":case"binary":b=k(H,r,c);break;case"base64":w=H,W=c,b=(A=r)===0&&W===w.length?y.fromByteArray(w):y.fromByteArray(w.slice(A,W));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":b=function(z,X,G){for(var Q=z.slice(X,G),K="",q=0;q<Q.length;q+=2)K+=String.fromCharCode(Q[q]+256*Q[q+1]);return K}(H,r,c);break;default:throw new Error("Unknown encoding")}return b},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},g.prototype.copy=function(e,r,c,b){if(r=r||0,(b=b||b===0?b:this.length)!==(c=c||0)&&e.length!==0&&this.length!==0){E(c<=b,"sourceEnd < sourceStart"),E(0<=r&&r<e.length,"targetStart out of bounds"),E(0<=c&&c<this.length,"sourceStart out of bounds"),E(0<=b&&b<=this.length,"sourceEnd out of bounds"),b>this.length&&(b=this.length);var w=(b=e.length-r<b-c?e.length-r+c:b)-c;if(w<100||!g._useTypedArrays)for(var A=0;A<w;A++)e[A+r]=this[A+c];else e._set(this.subarray(c,c+w),r)}},g.prototype.slice=function(e,r){var c=this.length;if(e=N(e,c,0),r=N(r,c,c),g._useTypedArrays)return g._augment(this.subarray(e,r));for(var b=r-e,w=new g(b,void 0,!0),A=0;A<b;A++)w[A]=this[A+e];return w},g.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},g.prototype.set=function(e,r){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,r)},g.prototype.readUInt8=function(e,r){if(r||(E(e!=null,"missing offset"),E(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},g.prototype.readUInt16LE=function(e,r){return v(this,e,!0,r)},g.prototype.readUInt16BE=function(e,r){return v(this,e,!1,r)},g.prototype.readUInt32LE=function(e,r){return j(this,e,!0,r)},g.prototype.readUInt32BE=function(e,r){return j(this,e,!1,r)},g.prototype.readInt8=function(e,r){if(r||(E(e!=null,"missing offset"),E(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},g.prototype.readInt16LE=function(e,r){return u(this,e,!0,r)},g.prototype.readInt16BE=function(e,r){return u(this,e,!1,r)},g.prototype.readInt32LE=function(e,r){return m(this,e,!0,r)},g.prototype.readInt32BE=function(e,r){return m(this,e,!1,r)},g.prototype.readFloatLE=function(e,r){return n(this,e,!0,r)},g.prototype.readFloatBE=function(e,r){return n(this,e,!1,r)},g.prototype.readDoubleLE=function(e,r){return i(this,e,!0,r)},g.prototype.readDoubleBE=function(e,r){return i(this,e,!1,r)},g.prototype.writeUInt8=function(e,r,c){c||(E(e!=null,"missing value"),E(r!=null,"missing offset"),E(r<this.length,"trying to write beyond buffer length"),ae(e,255)),r>=this.length||(this[r]=e)},g.prototype.writeUInt16LE=function(e,r,c){t(this,e,r,!0,c)},g.prototype.writeUInt16BE=function(e,r,c){t(this,e,r,!1,c)},g.prototype.writeUInt32LE=function(e,r,c){d(this,e,r,!0,c)},g.prototype.writeUInt32BE=function(e,r,c){d(this,e,r,!1,c)},g.prototype.writeInt8=function(e,r,c){c||(E(e!=null,"missing value"),E(r!=null,"missing offset"),E(r<this.length,"Trying to write beyond buffer length"),ne(e,127,-128)),r>=this.length||(0<=e?this.writeUInt8(e,r,c):this.writeUInt8(255+e+1,r,c))},g.prototype.writeInt16LE=function(e,r,c){p(this,e,r,!0,c)},g.prototype.writeInt16BE=function(e,r,c){p(this,e,r,!1,c)},g.prototype.writeInt32LE=function(e,r,c){D(this,e,r,!0,c)},g.prototype.writeInt32BE=function(e,r,c){D(this,e,r,!1,c)},g.prototype.writeFloatLE=function(e,r,c){M(this,e,r,!0,c)},g.prototype.writeFloatBE=function(e,r,c){M(this,e,r,!1,c)},g.prototype.writeDoubleLE=function(e,r,c){L(this,e,r,!0,c)},g.prototype.writeDoubleBE=function(e,r,c){L(this,e,r,!1,c)},g.prototype.fill=function(e,r,c){if(r=r||0,c=c||this.length,E(typeof(e=typeof(e=e||0)=="string"?e.charCodeAt(0):e)=="number"&&!isNaN(e),"value is not a number"),E(r<=c,"end < start"),c!==r&&this.length!==0){E(0<=r&&r<this.length,"start out of bounds"),E(0<=c&&c<=this.length,"end out of bounds");for(var b=r;b<c;b++)this[b]=e}},g.prototype.inspect=function(){for(var e=[],r=this.length,c=0;c<r;c++)if(e[c]=R(this[c]),c===f.INSPECT_MAX_BYTES){e[c+1]="...";break}return"<Buffer "+e.join(" ")+">"},g.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(g._useTypedArrays)return new g(this).buffer;for(var e=new Uint8Array(this.length),r=0,c=e.length;r<c;r+=1)e[r]=this[r];return e.buffer};var _=g.prototype;function N(e,r,c){return typeof e!="number"?c:r<=(e=~~e)?r:0<=e||0<=(e+=r)?e:0}function J(e){return(e=~~Math.ceil(+e))<0?0:e}function Y(e){return(Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"})(e)}function R(e){return e<16?"0"+e.toString(16):e.toString(16)}function Z(e){for(var r=[],c=0;c<e.length;c++){var b=e.charCodeAt(c);if(b<=127)r.push(e.charCodeAt(c));else for(var w=c,A=(55296<=b&&b<=57343&&c++,encodeURIComponent(e.slice(w,c+1)).substr(1).split("%")),W=0;W<A.length;W++)r.push(parseInt(A[W],16))}return r}function fe(e){return y.toByteArray(e)}function ee(e,r,c,b){for(var w=0;w<b&&!(w+c>=r.length||w>=e.length);w++)r[w+c]=e[w];return w}function ce(e){try{return decodeURIComponent(e)}catch{return"�"}}function ae(e,r){E(typeof e=="number","cannot write a non-number as a number"),E(0<=e,"specified a negative value for writing an unsigned value"),E(e<=r,"value is larger than maximum value for type"),E(Math.floor(e)===e,"value has a fractional component")}function ne(e,r,c){E(typeof e=="number","cannot write a non-number as a number"),E(e<=r,"value larger than maximum allowed value"),E(c<=e,"value smaller than minimum allowed value"),E(Math.floor(e)===e,"value has a fractional component")}function se(e,r,c){E(typeof e=="number","cannot write a non-number as a number"),E(e<=r,"value larger than maximum allowed value"),E(c<=e,"value smaller than minimum allowed value")}function E(e,r){if(!e)throw new Error(r||"Failed assertion")}g._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=_.get,e.set=_.set,e.write=_.write,e.toString=_.toString,e.toLocaleString=_.toString,e.toJSON=_.toJSON,e.copy=_.copy,e.slice=_.slice,e.readUInt8=_.readUInt8,e.readUInt16LE=_.readUInt16LE,e.readUInt16BE=_.readUInt16BE,e.readUInt32LE=_.readUInt32LE,e.readUInt32BE=_.readUInt32BE,e.readInt8=_.readInt8,e.readInt16LE=_.readInt16LE,e.readInt16BE=_.readInt16BE,e.readInt32LE=_.readInt32LE,e.readInt32BE=_.readInt32BE,e.readFloatLE=_.readFloatLE,e.readFloatBE=_.readFloatBE,e.readDoubleLE=_.readDoubleLE,e.readDoubleBE=_.readDoubleBE,e.writeUInt8=_.writeUInt8,e.writeUInt16LE=_.writeUInt16LE,e.writeUInt16BE=_.writeUInt16BE,e.writeUInt32LE=_.writeUInt32LE,e.writeUInt32BE=_.writeUInt32BE,e.writeInt8=_.writeInt8,e.writeInt16LE=_.writeInt16LE,e.writeInt16BE=_.writeInt16BE,e.writeInt32LE=_.writeInt32LE,e.writeInt32BE=_.writeInt32BE,e.writeFloatLE=_.writeFloatLE,e.writeFloatBE=_.writeFloatBE,e.writeDoubleLE=_.writeDoubleLE,e.writeDoubleBE=_.writeDoubleBE,e.fill=_.fill,e.inspect=_.inspect,e.toArrayBuffer=_.toArrayBuffer,e}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(o,l,f){(function(h,T,y,B,I,U,P,C,O){var y=o("buffer").Buffer,F=4,g=new y(F);g.fill(0),l.exports={hash:function(S,x,k,v){for(var j=x(function(t,d){t.length%F!=0&&(p=t.length+(F-t.length%F),t=y.concat([t,g],p));for(var p,D=[],M=d?t.readInt32BE:t.readInt32LE,L=0;L<t.length;L+=F)D.push(M.call(t,L));return D}(S=y.isBuffer(S)?S:new y(S),v),8*S.length),x=v,u=new y(k),m=x?u.writeInt32BE:u.writeInt32LE,n=0;n<j.length;n++)m.call(u,j[n],4*n,!0);return u}}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(o,l,f){(function(h,T,y,B,I,U,P,C,O){var y=o("buffer").Buffer,F=o("./sha"),g=o("./sha256"),S=o("./rng"),x={sha1:F,sha256:g,md5:o("./md5")},k=64,v=new y(k);function j(t,d){var p=x[t=t||"sha1"],D=[];return p||u("algorithm:",t,"is not yet supported"),{update:function(M){return y.isBuffer(M)||(M=new y(M)),D.push(M),M.length,this},digest:function(M){var L=y.concat(D),L=d?function(_,N,J){y.isBuffer(N)||(N=new y(N)),y.isBuffer(J)||(J=new y(J)),N.length>k?N=_(N):N.length<k&&(N=y.concat([N,v],k));for(var Y=new y(k),R=new y(k),Z=0;Z<k;Z++)Y[Z]=54^N[Z],R[Z]=92^N[Z];return J=_(y.concat([Y,J])),_(y.concat([R,J]))}(p,d,L):p(L);return D=null,M?L.toString(M):L}}}function u(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
9
+ `))}v.fill(0),f.createHash=function(t){return j(t)},f.createHmac=j,f.randomBytes=function(t,d){if(!d||!d.call)return new y(S(t));try{d.call(this,void 0,new y(S(t)))}catch(p){d(p)}};var m,n=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],i=function(t){f[t]=function(){u("sorry,",t,"is not implemented yet")}};for(m in n)i(n[m])}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(o,l,f){(function(h,T,$,B,I,U,P,C,O){var y=o("./helpers");function F(u,m){u[m>>5]|=128<<m%32,u[14+(m+64>>>9<<4)]=m;for(var n=1732584193,i=-271733879,t=-1732584194,d=271733878,p=0;p<u.length;p+=16){var D=n,M=i,L=t,_=d,n=S(n,i,t,d,u[p+0],7,-680876936),d=S(d,n,i,t,u[p+1],12,-389564586),t=S(t,d,n,i,u[p+2],17,606105819),i=S(i,t,d,n,u[p+3],22,-1044525330);n=S(n,i,t,d,u[p+4],7,-176418897),d=S(d,n,i,t,u[p+5],12,1200080426),t=S(t,d,n,i,u[p+6],17,-1473231341),i=S(i,t,d,n,u[p+7],22,-45705983),n=S(n,i,t,d,u[p+8],7,1770035416),d=S(d,n,i,t,u[p+9],12,-1958414417),t=S(t,d,n,i,u[p+10],17,-42063),i=S(i,t,d,n,u[p+11],22,-1990404162),n=S(n,i,t,d,u[p+12],7,1804603682),d=S(d,n,i,t,u[p+13],12,-40341101),t=S(t,d,n,i,u[p+14],17,-1502002290),n=x(n,i=S(i,t,d,n,u[p+15],22,1236535329),t,d,u[p+1],5,-165796510),d=x(d,n,i,t,u[p+6],9,-1069501632),t=x(t,d,n,i,u[p+11],14,643717713),i=x(i,t,d,n,u[p+0],20,-373897302),n=x(n,i,t,d,u[p+5],5,-701558691),d=x(d,n,i,t,u[p+10],9,38016083),t=x(t,d,n,i,u[p+15],14,-660478335),i=x(i,t,d,n,u[p+4],20,-405537848),n=x(n,i,t,d,u[p+9],5,568446438),d=x(d,n,i,t,u[p+14],9,-1019803690),t=x(t,d,n,i,u[p+3],14,-187363961),i=x(i,t,d,n,u[p+8],20,1163531501),n=x(n,i,t,d,u[p+13],5,-1444681467),d=x(d,n,i,t,u[p+2],9,-51403784),t=x(t,d,n,i,u[p+7],14,1735328473),n=k(n,i=x(i,t,d,n,u[p+12],20,-1926607734),t,d,u[p+5],4,-378558),d=k(d,n,i,t,u[p+8],11,-2022574463),t=k(t,d,n,i,u[p+11],16,1839030562),i=k(i,t,d,n,u[p+14],23,-35309556),n=k(n,i,t,d,u[p+1],4,-1530992060),d=k(d,n,i,t,u[p+4],11,1272893353),t=k(t,d,n,i,u[p+7],16,-155497632),i=k(i,t,d,n,u[p+10],23,-1094730640),n=k(n,i,t,d,u[p+13],4,681279174),d=k(d,n,i,t,u[p+0],11,-358537222),t=k(t,d,n,i,u[p+3],16,-722521979),i=k(i,t,d,n,u[p+6],23,76029189),n=k(n,i,t,d,u[p+9],4,-640364487),d=k(d,n,i,t,u[p+12],11,-421815835),t=k(t,d,n,i,u[p+15],16,530742520),n=v(n,i=k(i,t,d,n,u[p+2],23,-995338651),t,d,u[p+0],6,-198630844),d=v(d,n,i,t,u[p+7],10,1126891415),t=v(t,d,n,i,u[p+14],15,-1416354905),i=v(i,t,d,n,u[p+5],21,-57434055),n=v(n,i,t,d,u[p+12],6,1700485571),d=v(d,n,i,t,u[p+3],10,-1894986606),t=v(t,d,n,i,u[p+10],15,-1051523),i=v(i,t,d,n,u[p+1],21,-2054922799),n=v(n,i,t,d,u[p+8],6,1873313359),d=v(d,n,i,t,u[p+15],10,-30611744),t=v(t,d,n,i,u[p+6],15,-1560198380),i=v(i,t,d,n,u[p+13],21,1309151649),n=v(n,i,t,d,u[p+4],6,-145523070),d=v(d,n,i,t,u[p+11],10,-1120210379),t=v(t,d,n,i,u[p+2],15,718787259),i=v(i,t,d,n,u[p+9],21,-343485551),n=j(n,D),i=j(i,M),t=j(t,L),d=j(d,_)}return Array(n,i,t,d)}function g(u,m,n,i,t,d){return j((m=j(j(m,u),j(i,d)))<<t|m>>>32-t,n)}function S(u,m,n,i,t,d,p){return g(m&n|~m&i,u,m,t,d,p)}function x(u,m,n,i,t,d,p){return g(m&i|n&~i,u,m,t,d,p)}function k(u,m,n,i,t,d,p){return g(m^n^i,u,m,t,d,p)}function v(u,m,n,i,t,d,p){return g(n^(m|~i),u,m,t,d,p)}function j(u,m){var n=(65535&u)+(65535&m);return(u>>16)+(m>>16)+(n>>16)<<16|65535&n}l.exports=function(u){return y.hash(u,F,16)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(o,l,f){(function(h,T,$,B,I,U,P,C,O){l.exports=function(y){for(var F,g=new Array(y),S=0;S<y;S++)!(3&S)&&(F=4294967296*Math.random()),g[S]=F>>>((3&S)<<3)&255;return g}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(o,l,f){(function(h,T,$,B,I,U,P,C,O){var y=o("./helpers");function F(x,k){x[k>>5]|=128<<24-k%32,x[15+(k+64>>9<<4)]=k;for(var v,j,u,m=Array(80),n=1732584193,i=-271733879,t=-1732584194,d=271733878,p=-1009589776,D=0;D<x.length;D+=16){for(var M=n,L=i,_=t,N=d,J=p,Y=0;Y<80;Y++){m[Y]=Y<16?x[D+Y]:S(m[Y-3]^m[Y-8]^m[Y-14]^m[Y-16],1);var R=g(g(S(n,5),(R=i,j=t,u=d,(v=Y)<20?R&j|~R&u:!(v<40)&&v<60?R&j|R&u|j&u:R^j^u)),g(g(p,m[Y]),(v=Y)<20?1518500249:v<40?1859775393:v<60?-1894007588:-899497514)),p=d,d=t,t=S(i,30),i=n,n=R}n=g(n,M),i=g(i,L),t=g(t,_),d=g(d,N),p=g(p,J)}return Array(n,i,t,d,p)}function g(x,k){var v=(65535&x)+(65535&k);return(x>>16)+(k>>16)+(v>>16)<<16|65535&v}function S(x,k){return x<<k|x>>>32-k}l.exports=function(x){return y.hash(x,F,20,!0)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(o,l,f){(function(h,T,$,B,I,U,P,C,O){function y(k,v){var j=(65535&k)+(65535&v);return(k>>16)+(v>>16)+(j>>16)<<16|65535&j}function F(k,v){var j,u=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),m=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),n=new Array(64);k[v>>5]|=128<<24-v%32,k[15+(v+64>>9<<4)]=v;for(var i,t,d=0;d<k.length;d+=16){for(var p=m[0],D=m[1],M=m[2],L=m[3],_=m[4],N=m[5],J=m[6],Y=m[7],R=0;R<64;R++)n[R]=R<16?k[R+d]:y(y(y((t=n[R-2],S(t,17)^S(t,19)^x(t,10)),n[R-7]),(t=n[R-15],S(t,7)^S(t,18)^x(t,3))),n[R-16]),j=y(y(y(y(Y,S(t=_,6)^S(t,11)^S(t,25)),_&N^~_&J),u[R]),n[R]),i=y(S(i=p,2)^S(i,13)^S(i,22),p&D^p&M^D&M),Y=J,J=N,N=_,_=y(L,j),L=M,M=D,D=p,p=y(j,i);m[0]=y(p,m[0]),m[1]=y(D,m[1]),m[2]=y(M,m[2]),m[3]=y(L,m[3]),m[4]=y(_,m[4]),m[5]=y(N,m[5]),m[6]=y(J,m[6]),m[7]=y(Y,m[7])}return m}var g=o("./helpers"),S=function(k,v){return k>>>v|k<<32-v},x=function(k,v){return k>>>v};l.exports=function(k){return g.hash(k,F,32,!0)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(o,l,f){(function(h,T,$,B,I,U,P,C,O){f.read=function(y,F,g,S,d){var k,v,j=8*d-S-1,u=(1<<j)-1,m=u>>1,n=-7,i=g?d-1:0,t=g?-1:1,d=y[F+i];for(i+=t,k=d&(1<<-n)-1,d>>=-n,n+=j;0<n;k=256*k+y[F+i],i+=t,n-=8);for(v=k&(1<<-n)-1,k>>=-n,n+=S;0<n;v=256*v+y[F+i],i+=t,n-=8);if(k===0)k=1-m;else{if(k===u)return v?NaN:1/0*(d?-1:1);v+=Math.pow(2,S),k-=m}return(d?-1:1)*v*Math.pow(2,k-S)},f.write=function(y,F,g,S,x,p){var v,j,u=8*p-x-1,m=(1<<u)-1,n=m>>1,i=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,t=S?0:p-1,d=S?1:-1,p=F<0||F===0&&1/F<0?1:0;for(F=Math.abs(F),isNaN(F)||F===1/0?(j=isNaN(F)?1:0,v=m):(v=Math.floor(Math.log(F)/Math.LN2),F*(S=Math.pow(2,-v))<1&&(v--,S*=2),2<=(F+=1<=v+n?i/S:i*Math.pow(2,1-n))*S&&(v++,S/=2),m<=v+n?(j=0,v=m):1<=v+n?(j=(F*S-1)*Math.pow(2,x),v+=n):(j=F*Math.pow(2,n-1)*Math.pow(2,x),v=0));8<=x;y[g+t]=255&j,t+=d,j/=256,x-=8);for(v=v<<x|j,u+=x;0<u;y[g+t]=255&v,t+=d,v/=256,u-=8);y[g+t-d]|=128*p}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(o,l,f){(function(h,T,$,B,I,U,P,C,O){var y,F,g;function S(){}(h=l.exports={}).nextTick=(F=typeof window<"u"&&window.setImmediate,g=typeof window<"u"&&window.postMessage&&window.addEventListener,F?function(x){return window.setImmediate(x)}:g?(y=[],window.addEventListener("message",function(x){var k=x.source;k!==window&&k!==null||x.data!=="process-tick"||(x.stopPropagation(),0<y.length&&y.shift()())},!0),function(x){y.push(x),window.postMessage("process-tick","*")}):function(x){setTimeout(x,0)}),h.title="browser",h.browser=!0,h.env={},h.argv=[],h.on=S,h.addListener=S,h.once=S,h.off=S,h.removeListener=S,h.removeAllListeners=S,h.emit=S,h.binding=function(x){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(x){throw new Error("process.chdir is not supported")}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})})(Fe);var Kr=Fe.exports;const Se=Jr(Kr);function V(a){return a!=null&&typeof a=="object"&&a["@@functional/placeholder"]===!0}function ie(a){return function s(o){return arguments.length===0||V(o)?s:a.apply(this,arguments)}}function oe(a){return function s(o,l){switch(arguments.length){case 0:return s;case 1:return V(o)?s:ie(function(f){return a(o,f)});default:return V(o)&&V(l)?s:V(o)?ie(function(f){return a(f,l)}):V(l)?ie(function(f){return a(o,f)}):a(o,l)}}}function _e(a){return function s(o,l,f){switch(arguments.length){case 0:return s;case 1:return V(o)?s:oe(function(h,T){return a(o,h,T)});case 2:return V(o)&&V(l)?s:V(o)?oe(function(h,T){return a(h,l,T)}):V(l)?oe(function(h,T){return a(o,h,T)}):ie(function(h){return a(o,l,h)});default:return V(o)&&V(l)&&V(f)?s:V(o)&&V(l)?oe(function(h,T){return a(h,T,f)}):V(o)&&V(f)?oe(function(h,T){return a(h,l,T)}):V(l)&&V(f)?oe(function(h,T){return a(o,h,T)}):V(o)?ie(function(h){return a(h,l,f)}):V(l)?ie(function(h){return a(o,h,f)}):V(f)?ie(function(h){return a(o,l,h)}):a(o,l,f)}}}function he(a,s){return Object.prototype.hasOwnProperty.call(s,a)}function ke(a){return Object.prototype.toString.call(a)==="[object Object]"}var Xr=_e(function(s,o,l){var f={},h;for(h in o)he(h,o)&&(f[h]=he(h,l)?s(h,o[h],l[h]):o[h]);for(h in l)he(h,l)&&!he(h,f)&&(f[h]=l[h]);return f}),Qr=_e(function a(s,o,l){return Xr(function(f,h,T){return ke(h)&&ke(T)?a(s,h,T):s(f,h,T)},o,l)}),Zr=oe(function(s,o){return Qr(function(l,f,h){return h},s,o)});let eo={headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"include"};async function to(a,s={}){const{baseURL:o="",...l}=s;return fetch(`${o}${a}`,Zr(eo,l)).then(f=>{if(!f.ok)throw f;return f})}/*!
8
10
  * Compressor.js v1.2.1
9
11
  * https://fengyuanchen.github.io/compressorjs
10
12
  *
@@ -12,4 +14,4 @@ list should be an Array.`),e.length===0)return new g(0);if(e.length===1)return e
12
14
  * Released under the MIT license
13
15
  *
14
16
  * Date: 2023-02-28T14:09:41.732Z
15
- */function Ie(a,s){var o=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);s&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(a,f).enumerable})),o.push.apply(o,u)}return o}function ge(a){for(var s=1;s<arguments.length;s++){var o=arguments[s]!=null?arguments[s]:{};s%2?Ie(Object(o),!0).forEach(function(u){ur(a,u,o[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):Ie(Object(o)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(o,u))})}return a}function ar(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function Be(a,s){for(var o=0;o<s.length;o++){var u=s[o];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(a,Le(u.key),u)}}function sr(a,s,o){return s&&Be(a.prototype,s),o&&Be(a,o),Object.defineProperty(a,"prototype",{writable:!1}),a}function ur(a,s,o){return s=Le(s),s in a?Object.defineProperty(a,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[s]=o,a}function pe(){return pe=Object.assign?Object.assign.bind():function(a){for(var s=1;s<arguments.length;s++){var o=arguments[s];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(a[u]=o[u])}return a},pe.apply(this,arguments)}function lr(a,s){if(typeof a!="object"||a===null)return a;var o=a[Symbol.toPrimitive];if(o!==void 0){var u=o.call(a,s);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}function Le(a){var s=lr(a,"string");return typeof s=="symbol"?s:String(s)}var Fe={exports:{}};(function(a){typeof window>"u"||function(s){var o=s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype,u=s.Blob&&function(){try{return!!new Blob}catch{return!1}}(),f=u&&s.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch{return!1}}(),d=s.BlobBuilder||s.WebKitBlobBuilder||s.MozBlobBuilder||s.MSBlobBuilder,k=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,U=(u||d)&&s.atob&&s.ArrayBuffer&&s.Uint8Array&&function(S){var x,F,P,W,R,y,T,g,E;if(x=S.match(k),!x)throw new Error("invalid data URI");for(F=x[2]?x[1]:"text/plain"+(x[3]||";charset=US-ASCII"),P=!!x[4],W=S.slice(x[0].length),P?R=atob(W):R=decodeURIComponent(W),y=new ArrayBuffer(R.length),T=new Uint8Array(y),g=0;g<R.length;g+=1)T[g]=R.charCodeAt(g);return u?new Blob([f?T:y],{type:F}):(E=new d,E.append(y),E.getBlob(F))};s.HTMLCanvasElement&&!o.toBlob&&(o.mozGetAsFile?o.toBlob=function(S,x,F){var P=this;setTimeout(function(){F&&o.toDataURL&&U?S(U(P.toDataURL(x,F))):S(P.mozGetAsFile("blob",x))})}:o.toDataURL&&U&&(o.msToBlob?o.toBlob=function(S,x,F){var P=this;setTimeout(function(){(x&&x!=="image/png"||F)&&o.toDataURL&&U?S(U(P.toDataURL(x,F))):S(P.msToBlob(x))})}:o.toBlob=function(S,x,F){var P=this;setTimeout(function(){S(U(P.toDataURL(x,F)))})})),a.exports?a.exports=U:s.dataURLtoBlob=U}(window)})(Fe);var xe=Fe.exports,cr=function(s){return typeof Blob>"u"?!1:s instanceof Blob||Object.prototype.toString.call(s)==="[object Blob]"},Se={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},fr=typeof window<"u"&&typeof window.document<"u",te=fr?window:{},me=function(s){return s>0&&s<1/0},hr=Array.prototype.slice;function be(a){return Array.from?Array.from(a):hr.call(a)}var dr=/^image\/.+$/;function we(a){return dr.test(a)}function gr(a){var s=we(a)?a.substr(6):"";return s==="jpeg"&&(s="jpg"),".".concat(s)}var De=String.fromCharCode;function pr(a,s,o){var u="",f;for(o+=s,f=s;f<o;f+=1)u+=De(a.getUint8(f));return u}var mr=te.btoa;function _e(a,s){for(var o=[],u=8192,f=new Uint8Array(a);f.length>0;)o.push(De.apply(null,be(f.subarray(0,u)))),f=f.subarray(u);return"data:".concat(s,";base64,").concat(mr(o.join("")))}function yr(a){var s=new DataView(a),o;try{var u,f,d;if(s.getUint8(0)===255&&s.getUint8(1)===216)for(var k=s.byteLength,U=2;U+1<k;){if(s.getUint8(U)===255&&s.getUint8(U+1)===225){f=U;break}U+=1}if(f){var S=f+4,x=f+10;if(pr(s,S,4)==="Exif"){var F=s.getUint16(x);if(u=F===18761,(u||F===19789)&&s.getUint16(x+2,u)===42){var P=s.getUint32(x+4,u);P>=8&&(d=x+P)}}}if(d){var W=s.getUint16(d,u),R,y;for(y=0;y<W;y+=1)if(R=d+y*12+2,s.getUint16(R,u)===274){R+=8,o=s.getUint16(R,u),s.setUint16(R,1,u);break}}}catch{o=1}return o}function wr(a){var s=0,o=1,u=1;switch(a){case 2:o=-1;break;case 3:s=-180;break;case 4:u=-1;break;case 5:s=90,u=-1;break;case 6:s=90;break;case 7:s=90,o=-1;break;case 8:s=-90;break}return{rotate:s,scaleX:o,scaleY:u}}var br=/\.\d*(?:0|9){12}\d*$/;function ke(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return br.test(a)?Math.round(a*s)/s:a}function ce(a){var s=a.aspectRatio,o=a.height,u=a.width,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none",d=me(u),k=me(o);if(d&&k){var U=o*s;(f==="contain"||f==="none")&&U>u||f==="cover"&&U<u?o=u/s:u=o*s}else d?o=u/s:k&&(u=o*s);return{width:u,height:o}}function vr(a){for(var s=be(new Uint8Array(a)),o=s.length,u=[],f=0;f+3<o;){var d=s[f],k=s[f+1];if(d===255&&k===218)break;if(d===255&&k===216)f+=2;else{var U=s[f+2]*256+s[f+3],S=f+U+2,x=s.slice(f,S);u.push(x),f=S}}return u.reduce(function(F,P){return P[0]===255&&P[1]===225?F.concat(P):F},[])}function Er(a,s){var o=be(new Uint8Array(a));if(o[2]!==255||o[3]!==224)return a;var u=o[4]*256+o[5],f=[255,216].concat(s,o.slice(4+u));return new Uint8Array(f)}var Ar=te.ArrayBuffer,ye=te.FileReader,ne=te.URL||te.webkitURL,Ir=/\.\w+$/,Br=te.Compressor,xr=function(){function a(s,o){ar(this,a),this.file=s,this.exif=[],this.image=new Image,this.options=ge(ge({},Se),o),this.aborted=!1,this.result=null,this.init()}return sr(a,[{key:"init",value:function(){var o=this,u=this.file,f=this.options;if(!cr(u)){this.fail(new Error("The first argument must be a File or Blob object."));return}var d=u.type;if(!we(d)){this.fail(new Error("The first argument must be an image File or Blob object."));return}if(!ne||!ye){this.fail(new Error("The current browser does not support image compression."));return}Ar||(f.checkOrientation=!1,f.retainExif=!1);var k=d==="image/jpeg",U=k&&f.checkOrientation,S=k&&f.retainExif;if(ne&&!U&&!S)this.load({url:ne.createObjectURL(u)});else{var x=new ye;this.reader=x,x.onload=function(F){var P=F.target,W=P.result,R={},y=1;U&&(y=yr(W),y>1&&pe(R,wr(y))),S&&(o.exif=vr(W)),U||S?!ne||y>1?R.url=_e(W,d):R.url=ne.createObjectURL(u):R.url=W,o.load(R)},x.onabort=function(){o.fail(new Error("Aborted to read the image with FileReader."))},x.onerror=function(){o.fail(new Error("Failed to read the image with FileReader."))},x.onloadend=function(){o.reader=null},U||S?x.readAsArrayBuffer(u):x.readAsDataURL(u)}}},{key:"load",value:function(o){var u=this,f=this.file,d=this.image;d.onload=function(){u.draw(ge(ge({},o),{},{naturalWidth:d.naturalWidth,naturalHeight:d.naturalHeight}))},d.onabort=function(){u.fail(new Error("Aborted to load the image."))},d.onerror=function(){u.fail(new Error("Failed to load the image."))},te.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(te.navigator.userAgent)&&(d.crossOrigin="anonymous"),d.alt=f.name,d.src=o.url}},{key:"draw",value:function(o){var u=this,f=o.naturalWidth,d=o.naturalHeight,k=o.rotate,U=k===void 0?0:k,S=o.scaleX,x=S===void 0?1:S,F=o.scaleY,P=F===void 0?1:F,W=this.file,R=this.image,y=this.options,T=document.createElement("canvas"),g=T.getContext("2d"),E=Math.abs(U)%180===90,_=(y.resize==="contain"||y.resize==="cover")&&me(y.width)&&me(y.height),A=Math.max(y.maxWidth,0)||1/0,v=Math.max(y.maxHeight,0)||1/0,L=Math.max(y.minWidth,0)||0,c=Math.max(y.minHeight,0)||0,m=f/d,r=y.width,i=y.height;if(E){var t=[v,A];A=t[0],v=t[1];var h=[c,L];L=h[0],c=h[1];var p=[i,r];r=p[0],i=p[1]}_&&(m=r/i);var C=ce({aspectRatio:m,width:A,height:v},"contain");A=C.width,v=C.height;var D=ce({aspectRatio:m,width:L,height:c},"cover");if(L=D.width,c=D.height,_){var O=ce({aspectRatio:m,width:r,height:i},y.resize);r=O.width,i=O.height}else{var j=ce({aspectRatio:m,width:r,height:i}),N=j.width;r=N===void 0?f:N;var K=j.height;i=K===void 0?d:K}r=Math.floor(ke(Math.min(Math.max(r,L),A))),i=Math.floor(ke(Math.min(Math.max(i,c),v)));var z=-r/2,$=-i/2,Z=r,fe=i,ee=[];if(_){var le=0,ae=0,re=f,se=d,B=ce({aspectRatio:m,width:f,height:d},{contain:"cover",cover:"contain"}[y.resize]);re=B.width,se=B.height,le=(f-re)/2,ae=(d-se)/2,ee.push(le,ae,re,se)}if(ee.push(z,$,Z,fe),E){var e=[i,r];r=e[0],i=e[1]}T.width=r,T.height=i,we(y.mimeType)||(y.mimeType=W.type);var n="transparent";W.size>y.convertSize&&y.convertTypes.indexOf(y.mimeType)>=0&&(y.mimeType="image/jpeg");var l=y.mimeType==="image/jpeg";if(l&&(n="#fff"),g.fillStyle=n,g.fillRect(0,0,r,i),y.beforeDraw&&y.beforeDraw.call(this,g,T),!this.aborted&&(g.save(),g.translate(r/2,i/2),g.rotate(U*Math.PI/180),g.scale(x,P),g.drawImage.apply(g,[R].concat(ee)),g.restore(),y.drew&&y.drew.call(this,g,T),!this.aborted)){var w=function(I){if(!u.aborted){var M=function(G){return u.done({naturalWidth:f,naturalHeight:d,result:G})};if(I&&l&&y.retainExif&&u.exif&&u.exif.length>0){var H=function(G){return M(xe(_e(Er(G,u.exif),y.mimeType)))};if(I.arrayBuffer)I.arrayBuffer().then(H).catch(function(){u.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var Y=new ye;u.reader=Y,Y.onload=function(J){var G=J.target;H(G.result)},Y.onabort=function(){u.fail(new Error("Aborted to read the compressed image with FileReader."))},Y.onerror=function(){u.fail(new Error("Failed to read the compressed image with FileReader."))},Y.onloadend=function(){u.reader=null},Y.readAsArrayBuffer(I)}}else M(I)}};T.toBlob?T.toBlob(w,y.mimeType,y.quality):w(xe(T.toDataURL(y.mimeType,y.quality)))}}},{key:"done",value:function(o){var u=o.naturalWidth,f=o.naturalHeight,d=o.result,k=this.file,U=this.image,S=this.options;if(ne&&U.src.indexOf("blob:")===0&&ne.revokeObjectURL(U.src),d)if(S.strict&&!S.retainExif&&d.size>k.size&&S.mimeType===k.type&&!(S.width>u||S.height>f||S.minWidth>u||S.minHeight>f||S.maxWidth<u||S.maxHeight<f))d=k;else{var x=new Date;d.lastModified=x.getTime(),d.lastModifiedDate=x,d.name=k.name,d.name&&d.type!==k.type&&(d.name=d.name.replace(Ir,gr(d.type)))}else d=k;this.result=d,S.success&&S.success.call(this,d)}},{key:"fail",value:function(o){var u=this.options;if(u.error)u.error.call(this,o);else throw o}},{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=Br,a}},{key:"setDefaults",value:function(o){pe(Se,o)}}]),a}();const Sr={default:{maxWidth:1920},logo:{maxWidth:500,quality:.9},gallery:{maxWidth:2560}},Ce=a=>a instanceof Array?a:[a];function _r(a,s){return new Promise((o,u)=>{if(!s)return o(a);new xr(a,{success:f=>o(f),error:f=>u(f),...s})})}function kr(a={}){let{acl:s="public-read",url:o,...u}=a;return o||(o="/api/file/sign?acl="+s),ir(o,u).then(f=>f.json())}function Ur({file:a,url:s,onProgress:o}){return new Promise((u,f)=>{let d=new URLSearchParams(s),k=new XMLHttpRequest;k.upload.addEventListener("progress",o),k.addEventListener("error",f),k.addEventListener("load",function(){u(this)}),k.open("PUT",s),d.get("x-amz-acl")&&k.setRequestHeader("x-amz-acl",d.get("x-amz-acl")),k.send(a)})}function Tr(a){return new Promise(s=>{let o=new FileReader;o.onload=function(u){s(u.target.result)},o.readAsDataURL(a)})}function jr(a){return a.type.startsWith("image/")?Tr(a).then(s=>new Promise((o,u)=>{let f=new Image;f.onload=()=>o([f.naturalWidth,f.naturalHeight]),f.onerror=d=>u(d),f.src=s})):Promise.resolve()}async function Lr(a,s){switch(typeof s){case"function":return s(a);case"string":const o=new FormData;return o.append("file",a),window.fetch(s,{method:"POST",credentials:"include",body:o}).then(u=>u.json()).then(Ce).then(u=>u.map(({data:f,name:d,type:k})=>new File([new Uint8Array(f.data)],d,{type:k})));default:return a}}async function Fr(a,s,o){let{compression:u,transform:f=F=>F,rename:d,convert:k,...U}=o;const S=await Lr(a,k).then(Ce),x=await Promise.all(S.map(async F=>{typeof u=="string"&&(u=Sr[u]);let[P,W]=await Promise.all([kr(U||{}),u?_r(F,u):Promise.resolve(F)]),R;try{R=await jr(W)}catch{}return await Ur({file:W,url:P.uploadUrl,onProgress(y){s(Math.floor(y.loaded/y.total*100))}}),f({name:d||W.name,size:W.size,url:P.url,type:W.type,dimensions:R})}));return x.length===1?x[0]:x}function Mr(a,s,o={}){let{group:u=1}=o,f=a.match(s);if(f)return f[u]}function Dr(a){return new Promise((s,o)=>{setTimeout(s,a)})}function Wr(a){return a==="false"?!1:a==="true"?!0:a}async function Rr(a,s={}){let{interval:o=200,limit:u=50}=s,f=0,d;for(;f<u&&(f++,!(d=a()));)await Dr(o);if(f>=u)throw new Error("Could not resolve");return d}function Nr(a,s={type:"text/javascript"}){if(!document||document.querySelector(`script[src="${a}"]`))return;let{type:o}=s,u=document.createElement("script");u.type=o,u.src=a,document.body.appendChild(u)}function $r(a,s=1,o={}){const u={en:yt,nb:Qt},f=document.documentElement.getAttribute("lang")||"nb";let d=u[f]?.[a]||a;if(d?.includes("|")&&(d=d.split("|")[s-1]),o instanceof Array){const k=/\{.*?\}/;d.match(k).forEach((S,x)=>{d=d.replace(S,o[x])})}return d}function Hr(a){return{validator(s,o){return a instanceof Array?s instanceof Array?s.every(u=>a.includes(u)):a.includes(s):a(s,o)}}}function Cr(a){return Object.prototype.toString.call(a)==="[object Object]"}function Oe(a,s,o={}){if(!s||!Cr(s))return a;let{ignoreMissing:u=!1}=o,f={},d=(U,S)=>U.length===S.length&&Ee(U.slice())===Ee(S.slice()),k=function(U,S,x){let F=Object.prototype.toString.call(U),P=Object.prototype.toString.call(S);if(F!==P){f[x]=S;return}if(F==="[object Object]"){let W=Oe(U,S,o);Object.keys(W).length&&(f[x]=W);return}if(F==="[object Array]"){d(U,S)||(f[x]=S);return}if(F==="[object Function]"){U.toString()!==S.toString()&&(f[x]=S);return}U!==S&&(f[x]=S)};for(let U in a)Object.hasOwn(a,U)&&k(a[U],s[U],U);if(!u)for(let U in s)Object.hasOwn(s,U)&&!(U in a)&&(f[U]=s[U]);return f}function Yr(...a){return!!Object.keys(Oe(...a)).length}const zr=function(){return JSON.parse(JSON.stringify.apply(this,arguments))};function Vr(a,s,o){return Fr(a,s,o)}function Gr(a,s=document.documentElement.getAttribute("lang")||"nb"){return!a&&a!==0?"-":a.toLocaleString(s,{style:"currency",currency:"NOK",minimumFractionDigits:0})}const Or=a=>{if(typeof a!="string")return a;try{return JSON.parse(a)}catch{return{}}},qr=(a={},s={})=>o=>Or(a)[o]||s[o]||o,Ue=(a,s={})=>o=>{switch(a){case"currency":const{locale:u,...f}=s;return new Intl.NumberFormat(u,{style:"currency",maximumFractionDigits:0,...f}).format(o);case"number":return new Intl.NumberFormat(s.locale).format(o);case"year":case"years":return[o,new Intl.RelativeTimeFormat(s.locale).formatToParts(o,"year").at(-1).value].join(" ");case"percent":const{maximumFractionDigits:d=0}=s;return[Number(o).toFixed(d),"%"].join("");default:return o}},Kr=(a={})=>{const{locale:s,currency:o}=a,u=/(.{1})\d{3}(\D)\d$/,f=Ue("number",{locale:s})(1000.1);let[d,k,U]=u.exec(f);const S=Ue("currency",{locale:s,currency:o})(1000.1),x=S.replace(/[\d\s\,\.]/g,""),F={mask:Number,thousandsSeparator:k};return S.match(/^\d/)?{suffix:x,mask:F}:{symbol:x,mask:F}};function Xr(a,s=300){let o;return(...u)=>{clearTimeout(o),o=setTimeout(()=>{a.apply(this,u)},s)}}function Jr(a){if(!a)return;a=a.replace(/^\s+|\s+$/g,""),a=a.toLowerCase();const s="àáäâèéëêìíïîòóöôùúüûñç·/_,:;",o="aaaaeeeeiiiioooouuuunc------";for(let u=0,f=s.length;u<f;u++)a=a.replace(new RegExp(s.charAt(u),"g"),o.charAt(u));return a=a.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"),a}export{zr as C,Xr as D,Mr as E,Nr as L,Hr as P,Jr as S,$r as T,Rr as W,Kr as a,qr as b,he as c,Pr as d,Gr as e,Ue as f,Zt as g,Yr as h,Oe as i,Wr as t,Vr as u};
17
+ */function Ae(a,s){var o=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);s&&(l=l.filter(function(f){return Object.getOwnPropertyDescriptor(a,f).enumerable})),o.push.apply(o,l)}return o}function ge(a){for(var s=1;s<arguments.length;s++){var o=arguments[s]!=null?arguments[s]:{};s%2?Ae(Object(o),!0).forEach(function(l){oo(a,l,o[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):Ae(Object(o)).forEach(function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(o,l))})}return a}function no(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function Ee(a,s){for(var o=0;o<s.length;o++){var l=s[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,je(l.key),l)}}function ro(a,s,o){return s&&Ee(a.prototype,s),o&&Ee(a,o),Object.defineProperty(a,"prototype",{writable:!1}),a}function oo(a,s,o){return s=je(s),s in a?Object.defineProperty(a,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[s]=o,a}function pe(){return pe=Object.assign?Object.assign.bind():function(a){for(var s=1;s<arguments.length;s++){var o=arguments[s];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(a[l]=o[l])}return a},pe.apply(this,arguments)}function io(a,s){if(typeof a!="object"||a===null)return a;var o=a[Symbol.toPrimitive];if(o!==void 0){var l=o.call(a,s);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}function je(a){var s=io(a,"string");return typeof s=="symbol"?s:String(s)}var Ue={exports:{}};(function(a){typeof window>"u"||function(s){var o=s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype,l=s.Blob&&function(){try{return!!new Blob}catch{return!1}}(),f=l&&s.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch{return!1}}(),h=s.BlobBuilder||s.WebKitBlobBuilder||s.MozBlobBuilder||s.MSBlobBuilder,T=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,$=(l||h)&&s.atob&&s.ArrayBuffer&&s.Uint8Array&&function(B){var I,U,P,C,O,y,F,g,S;if(I=B.match(T),!I)throw new Error("invalid data URI");for(U=I[2]?I[1]:"text/plain"+(I[3]||";charset=US-ASCII"),P=!!I[4],C=B.slice(I[0].length),P?O=atob(C):O=decodeURIComponent(C),y=new ArrayBuffer(O.length),F=new Uint8Array(y),g=0;g<O.length;g+=1)F[g]=O.charCodeAt(g);return l?new Blob([f?F:y],{type:U}):(S=new h,S.append(y),S.getBlob(U))};s.HTMLCanvasElement&&!o.toBlob&&(o.mozGetAsFile?o.toBlob=function(B,I,U){var P=this;setTimeout(function(){U&&o.toDataURL&&$?B($(P.toDataURL(I,U))):B(P.mozGetAsFile("blob",I))})}:o.toDataURL&&$&&(o.msToBlob?o.toBlob=function(B,I,U){var P=this;setTimeout(function(){(I&&I!=="image/png"||U)&&o.toDataURL&&$?B($(P.toDataURL(I,U))):B(P.msToBlob(I))})}:o.toBlob=function(B,I,U){var P=this;setTimeout(function(){B($(P.toDataURL(I,U)))})})),a.exports?a.exports=$:s.dataURLtoBlob=$}(window)})(Ue);var Ie=Ue.exports,ao=function(s){return typeof Blob>"u"?!1:s instanceof Blob||Object.prototype.toString.call(s)==="[object Blob]"},Be={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},so=typeof window<"u"&&typeof window.document<"u",te=so?window:{},me=function(s){return s>0&&s<1/0},lo=Array.prototype.slice;function we(a){return Array.from?Array.from(a):lo.call(a)}var co=/^image\/.+$/;function be(a){return co.test(a)}function uo(a){var s=be(a)?a.substr(6):"";return s==="jpeg"&&(s="jpg"),".".concat(s)}var Me=String.fromCharCode;function fo(a,s,o){var l="",f;for(o+=s,f=s;f<o;f+=1)l+=Me(a.getUint8(f));return l}var ho=te.btoa;function xe(a,s){for(var o=[],l=8192,f=new Uint8Array(a);f.length>0;)o.push(Me.apply(null,we(f.subarray(0,l)))),f=f.subarray(l);return"data:".concat(s,";base64,").concat(ho(o.join("")))}function go(a){var s=new DataView(a),o;try{var l,f,h;if(s.getUint8(0)===255&&s.getUint8(1)===216)for(var T=s.byteLength,$=2;$+1<T;){if(s.getUint8($)===255&&s.getUint8($+1)===225){f=$;break}$+=1}if(f){var B=f+4,I=f+10;if(fo(s,B,4)==="Exif"){var U=s.getUint16(I);if(l=U===18761,(l||U===19789)&&s.getUint16(I+2,l)===42){var P=s.getUint32(I+4,l);P>=8&&(h=I+P)}}}if(h){var C=s.getUint16(h,l),O,y;for(y=0;y<C;y+=1)if(O=h+y*12+2,s.getUint16(O,l)===274){O+=8,o=s.getUint16(O,l),s.setUint16(O,1,l);break}}}catch{o=1}return o}function po(a){var s=0,o=1,l=1;switch(a){case 2:o=-1;break;case 3:s=-180;break;case 4:l=-1;break;case 5:s=90,l=-1;break;case 6:s=90;break;case 7:s=90,o=-1;break;case 8:s=-90;break}return{rotate:s,scaleX:o,scaleY:l}}var mo=/\.\d*(?:0|9){12}\d*$/;function Te(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return mo.test(a)?Math.round(a*s)/s:a}function ue(a){var s=a.aspectRatio,o=a.height,l=a.width,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none",h=me(l),T=me(o);if(h&&T){var $=o*s;(f==="contain"||f==="none")&&$>l||f==="cover"&&$<l?o=l/s:l=o*s}else h?o=l/s:T&&(l=o*s);return{width:l,height:o}}function yo(a){for(var s=we(new Uint8Array(a)),o=s.length,l=[],f=0;f+3<o;){var h=s[f],T=s[f+1];if(h===255&&T===218)break;if(h===255&&T===216)f+=2;else{var $=s[f+2]*256+s[f+3],B=f+$+2,I=s.slice(f,B);l.push(I),f=B}}return l.reduce(function(U,P){return P[0]===255&&P[1]===225?U.concat(P):U},[])}function bo(a,s){var o=we(new Uint8Array(a));if(o[2]!==255||o[3]!==224)return a;var l=o[4]*256+o[5],f=[255,216].concat(s,o.slice(4+l));return new Uint8Array(f)}var wo=te.ArrayBuffer,ye=te.FileReader,re=te.URL||te.webkitURL,vo=/\.\w+$/,So=te.Compressor,ko=function(){function a(s,o){no(this,a),this.file=s,this.exif=[],this.image=new Image,this.options=ge(ge({},Be),o),this.aborted=!1,this.result=null,this.init()}return ro(a,[{key:"init",value:function(){var o=this,l=this.file,f=this.options;if(!ao(l)){this.fail(new Error("The first argument must be a File or Blob object."));return}var h=l.type;if(!be(h)){this.fail(new Error("The first argument must be an image File or Blob object."));return}if(!re||!ye){this.fail(new Error("The current browser does not support image compression."));return}wo||(f.checkOrientation=!1,f.retainExif=!1);var T=h==="image/jpeg",$=T&&f.checkOrientation,B=T&&f.retainExif;if(re&&!$&&!B)this.load({url:re.createObjectURL(l)});else{var I=new ye;this.reader=I,I.onload=function(U){var P=U.target,C=P.result,O={},y=1;$&&(y=go(C),y>1&&pe(O,po(y))),B&&(o.exif=yo(C)),$||B?!re||y>1?O.url=xe(C,h):O.url=re.createObjectURL(l):O.url=C,o.load(O)},I.onabort=function(){o.fail(new Error("Aborted to read the image with FileReader."))},I.onerror=function(){o.fail(new Error("Failed to read the image with FileReader."))},I.onloadend=function(){o.reader=null},$||B?I.readAsArrayBuffer(l):I.readAsDataURL(l)}}},{key:"load",value:function(o){var l=this,f=this.file,h=this.image;h.onload=function(){l.draw(ge(ge({},o),{},{naturalWidth:h.naturalWidth,naturalHeight:h.naturalHeight}))},h.onabort=function(){l.fail(new Error("Aborted to load the image."))},h.onerror=function(){l.fail(new Error("Failed to load the image."))},te.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(te.navigator.userAgent)&&(h.crossOrigin="anonymous"),h.alt=f.name,h.src=o.url}},{key:"draw",value:function(o){var l=this,f=o.naturalWidth,h=o.naturalHeight,T=o.rotate,$=T===void 0?0:T,B=o.scaleX,I=B===void 0?1:B,U=o.scaleY,P=U===void 0?1:U,C=this.file,O=this.image,y=this.options,F=document.createElement("canvas"),g=F.getContext("2d"),S=Math.abs($)%180===90,x=(y.resize==="contain"||y.resize==="cover")&&me(y.width)&&me(y.height),k=Math.max(y.maxWidth,0)||1/0,v=Math.max(y.maxHeight,0)||1/0,j=Math.max(y.minWidth,0)||0,u=Math.max(y.minHeight,0)||0,m=f/h,n=y.width,i=y.height;if(S){var t=[v,k];k=t[0],v=t[1];var d=[u,j];j=d[0],u=d[1];var p=[i,n];n=p[0],i=p[1]}x&&(m=n/i);var D=ue({aspectRatio:m,width:k,height:v},"contain");k=D.width,v=D.height;var M=ue({aspectRatio:m,width:j,height:u},"cover");if(j=M.width,u=M.height,x){var L=ue({aspectRatio:m,width:n,height:i},y.resize);n=L.width,i=L.height}else{var _=ue({aspectRatio:m,width:n,height:i}),N=_.width;n=N===void 0?f:N;var J=_.height;i=J===void 0?h:J}n=Math.floor(Te(Math.min(Math.max(n,j),k))),i=Math.floor(Te(Math.min(Math.max(i,u),v)));var Y=-n/2,R=-i/2,Z=n,fe=i,ee=[];if(x){var ce=0,ae=0,ne=f,se=h,E=ue({aspectRatio:m,width:f,height:h},{contain:"cover",cover:"contain"}[y.resize]);ne=E.width,se=E.height,ce=(f-ne)/2,ae=(h-se)/2,ee.push(ce,ae,ne,se)}if(ee.push(Y,R,Z,fe),S){var e=[i,n];n=e[0],i=e[1]}F.width=n,F.height=i,be(y.mimeType)||(y.mimeType=C.type);var r="transparent";C.size>y.convertSize&&y.convertTypes.indexOf(y.mimeType)>=0&&(y.mimeType="image/jpeg");var c=y.mimeType==="image/jpeg";if(c&&(r="#fff"),g.fillStyle=r,g.fillRect(0,0,n,i),y.beforeDraw&&y.beforeDraw.call(this,g,F),!this.aborted&&(g.save(),g.translate(n/2,i/2),g.rotate($*Math.PI/180),g.scale(I,P),g.drawImage.apply(g,[O].concat(ee)),g.restore(),y.drew&&y.drew.call(this,g,F),!this.aborted)){var b=function(A){if(!l.aborted){var W=function(G){return l.done({naturalWidth:f,naturalHeight:h,result:G})};if(A&&c&&y.retainExif&&l.exif&&l.exif.length>0){var H=function(G){return W(Ie(xe(bo(G,l.exif),y.mimeType)))};if(A.arrayBuffer)A.arrayBuffer().then(H).catch(function(){l.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var z=new ye;l.reader=z,z.onload=function(X){var G=X.target;H(G.result)},z.onabort=function(){l.fail(new Error("Aborted to read the compressed image with FileReader."))},z.onerror=function(){l.fail(new Error("Failed to read the compressed image with FileReader."))},z.onloadend=function(){l.reader=null},z.readAsArrayBuffer(A)}}else W(A)}};F.toBlob?F.toBlob(b,y.mimeType,y.quality):b(Ie(F.toDataURL(y.mimeType,y.quality)))}}},{key:"done",value:function(o){var l=o.naturalWidth,f=o.naturalHeight,h=o.result,T=this.file,$=this.image,B=this.options;if(re&&$.src.indexOf("blob:")===0&&re.revokeObjectURL($.src),h)if(B.strict&&!B.retainExif&&h.size>T.size&&B.mimeType===T.type&&!(B.width>l||B.height>f||B.minWidth>l||B.minHeight>f||B.maxWidth<l||B.maxHeight<f))h=T;else{var I=new Date;h.lastModified=I.getTime(),h.lastModifiedDate=I,h.name=T.name,h.name&&h.type!==T.type&&(h.name=h.name.replace(vo,uo(h.type)))}else h=T;this.result=h,B.success&&B.success.call(this,h)}},{key:"fail",value:function(o){var l=this.options;if(l.error)l.error.call(this,o);else throw o}},{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=So,a}},{key:"setDefaults",value:function(o){pe(Be,o)}}]),a}();const Ao={default:{maxWidth:1920},logo:{maxWidth:500,quality:.9},gallery:{maxWidth:2560}},De=a=>a instanceof Array?a:[a];function Eo(a,s){return new Promise((o,l)=>{if(!s)return o(a);new ko(a,{success:f=>o(f),error:f=>l(f),...s})})}function Io(a={}){let{acl:s="public-read",url:o,...l}=a;return o||(o="/api/file/sign?acl="+s),to(o,l).then(f=>f.json())}function Bo({file:a,url:s,onProgress:o}){return new Promise((l,f)=>{let h=new URLSearchParams(s),T=new XMLHttpRequest;T.upload.addEventListener("progress",o),T.addEventListener("error",f),T.addEventListener("load",function(){l(this)}),T.open("PUT",s),h.get("x-amz-acl")&&T.setRequestHeader("x-amz-acl",h.get("x-amz-acl")),T.send(a)})}function xo(a){return new Promise(s=>{let o=new FileReader;o.onload=function(l){s(l.target.result)},o.readAsDataURL(a)})}function To(a){return a.type.startsWith("image/")?xo(a).then(s=>new Promise((o,l)=>{let f=new Image;f.onload=()=>o([f.naturalWidth,f.naturalHeight]),f.onerror=h=>l(h),f.src=s})):Promise.resolve()}async function $o(a,s){switch(typeof s){case"function":return s(a);case"string":const o=new FormData;return o.append("file",a),window.fetch(s,{method:"POST",credentials:"include",body:o}).then(l=>l.json()).then(De).then(l=>l.map(({data:f,name:h,type:T})=>new File([new Uint8Array(f.data)],h,{type:T})));default:return a}}async function Fo(a,s,o){let{compression:l,transform:f=U=>U,rename:h,convert:T,...$}=o;const B=await $o(a,T).then(De),I=await Promise.all(B.map(async U=>{typeof l=="string"&&(l=Ao[l]);let[P,C]=await Promise.all([Io($||{}),l?Eo(U,l):Promise.resolve(U)]),O;try{O=await To(C)}catch{}return await Bo({file:C,url:P.uploadUrl,onProgress(y){s(Math.floor(y.loaded/y.total*100))}}),f({name:h||C.name,size:C.size,url:P.url,type:C.type,dimensions:O})}));return I.length===1?I[0]:I}function Do(a,s,o={}){let{group:l=1}=o,f=a.match(s);if(f)return f[l]}function _o(a){return new Promise((s,o)=>{setTimeout(s,a)})}function Lo(a){return a==="false"?!1:a==="true"?!0:a}async function Po(a,s={}){let{interval:o=200,limit:l=50}=s,f=0,h;for(;f<l&&(f++,!(h=a()));)await _o(o);if(f>=l)throw new Error("Could not resolve");return h}function Wo(a,s={type:"text/javascript"}){if(!document||document.querySelector(`script[src="${a}"]`))return;let{type:o}=s,l=document.createElement("script");l.type=o,l.src=a,document.body.appendChild(l)}function Co(a,s=1,o={}){const l={en:yt,nb:Qt,fr:Mn,da:gr,sv:qr},f=document.documentElement.getAttribute("lang")||"nb";let h=l[f]?.[a]||a;if(h?.includes("|")&&(h=h.split("|")[s-1]),o instanceof Array){const T=/\{.*?\}/;h.match(T).forEach((B,I)=>{h=h.replace(B,o[I])})}return h}function Oo(a){return{validator(s,o){return a instanceof Array?s instanceof Array?s.every(l=>a.includes(l)):a.includes(s):a(s,o)}}}function jo(a){return Object.prototype.toString.call(a)==="[object Object]"}function Le(a,s,o={}){if(!s||!jo(s))return a;let{ignoreMissing:l=!1}=o,f={},h=($,B)=>$.length===B.length&&Se($.slice())===Se(B.slice()),T=function($,B,I){let U=Object.prototype.toString.call($),P=Object.prototype.toString.call(B);if(U!==P){f[I]=B;return}if(U==="[object Object]"){let C=Le($,B,o);Object.keys(C).length&&(f[I]=C);return}if(U==="[object Array]"){h($,B)||(f[I]=B);return}if(U==="[object Function]"){$.toString()!==B.toString()&&(f[I]=B);return}$!==B&&(f[I]=B)};for(let $ in a)Object.hasOwn(a,$)&&T(a[$],s[$],$);if(!l)for(let $ in s)Object.hasOwn(s,$)&&!($ in a)&&(f[$]=s[$]);return f}function No(...a){return!!Object.keys(Le(...a)).length}const Ro=function(){return JSON.parse(JSON.stringify.apply(this,arguments))};function Ho(a,s,o){return Fo(a,s,o)}function zo(a,s=document.documentElement.getAttribute("lang")||"nb"){return!a&&a!==0?"-":a.toLocaleString(s,{style:"currency",currency:"NOK",minimumFractionDigits:0})}const Uo=a=>{if(typeof a!="string")return a;try{return JSON.parse(a)}catch{return{}}},Yo=(a={},s={})=>o=>Uo(a)[o]||s[o]||o,$e=(a,s={})=>o=>{switch(a){case"currency":const{locale:l,...f}=s;return new Intl.NumberFormat(l,{style:"currency",maximumFractionDigits:0,...f}).format(o);case"number":return new Intl.NumberFormat(s.locale).format(o);case"year":case"years":return[o,new Intl.RelativeTimeFormat(s.locale).formatToParts(o,"year").at(-1).value].join(" ");case"percent":const{maximumFractionDigits:h=0}=s;return[Number(o).toFixed(h),"%"].join("");default:return o}},Vo=(a={})=>{const{locale:s,currency:o}=a,l=/(.{1})\d{3}(\D)\d$/,f=$e("number",{locale:s})(1000.1);let[h,T,$]=l.exec(f);const B=$e("currency",{locale:s,currency:o})(1000.1),I=B.replace(/[\d\s\,\.]/g,""),U={mask:Number,thousandsSeparator:T};return B.match(/^\d/)?{suffix:I,mask:U}:{symbol:I,mask:U}};function Go(a,s=300){let o;return(...l)=>{clearTimeout(o),o=setTimeout(()=>{a.apply(this,l)},s)}}function qo(a){if(!a)return;a=a.replace(/^\s+|\s+$/g,""),a=a.toLowerCase();const s="àáäâèéëêìíïîòóöôùúüûñç·/_,:;",o="aaaaeeeeiiiioooouuuunc------";for(let l=0,f=s.length;l<f;l++)a=a.replace(new RegExp(s.charAt(l),"g"),o.charAt(l));return a=a.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"),a}export{Ro as C,Go as D,Do as E,Wo as L,Oo as P,qo as S,Co as T,Po as W,Vo as a,Yo as b,de as c,Mo as d,zo as e,$e as f,Jr as g,No as h,Le as i,Lo as t,Ho as u};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kvass/widgets",
3
- "version": "1.9.18",
3
+ "version": "1.9.19",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",