@kvass/widgets 1.9.54 → 1.9.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -6
- package/dist/kvass-form.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const De="Cancel",We="Confirm",Ce="Copy",Oe="Email",Ne="Drag a file here or <b>browse</b> to upload",Re="the file / files are too large",He="File upload",ze=`
|
|
2
|
-
Font associated with selected theme template`,
|
|
2
|
+
Font associated with selected theme template`,Ve="Body font",Ye="Heading font",Ge="Preview",qe="Preview not available",Je="Back",Ke="Highlighted icons",Xe="Icon | Icons",Qe="Search in English for icon you are looking for, for example 'Helicopter'.",Ze="Hits",et="No icons to match your search.",tt="Notification",nt="Thank you for your interest. You will soon be contacted.",rt="I wish to be contacted with the consent of {0}",ot="We process the information you submit in accordance with our {link}",it="Link | Links",at="Load all elements",st="Max size",lt="Name",ct="I wish to be contacted with the consent of {link}",ut="Phone",ft="You have not entered a valid phone number",dt="Main title",ht="Privacy policy",gt="Privacy policy",pt="Secondary title",mt="Select",yt="Select icon",bt="Select / search for font",vt="Show all",wt="Show all Google Fonts",kt="Something went wrong",St="Submit {x}",It="Upload font",At={cancel:De,confirm:We,copy:Ce,delete:"Delete",email:Oe,"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:Ne,fileSizeError:Re,fileUpload:He,fontAssociatedWithSelectedThemeTemplate:ze,fontForBody:Ve,fontForHeading:Ye,fontPreview:Ge,fontPreviewDisabled:qe,goBack:Je,highlightedIcons:Ke,icon:Xe,iconSelectWidgetHelpText:Qe,iconsSelectWidgetIconsFound:Ze,iconsSelectWidgetNoIconsMatchYourSearch:et,leadMessage:tt,leadMessageSent:nt,leadPrivacy:rt,leadPrivacyInfo:ot,link:it,loadAllElements:at,maxSize:st,name:lt,nuxtLeadPrivacy:ct,phone:ut,phoneValidation:ft,primaryTitle:dt,privacy:ht,privacyPolicyTitle:gt,secondaryTitle:pt,select:mt,selectIcon:yt,selectOrSearchForFont:bt,showAll:vt,showAllGoogleFonts:wt,somethingWentWrong:kt,submit:St,uploadFont:It},Et="Avbryt",$t="Bekreft",xt="Kopier",Bt="E-post",Tt="Dra en fil hit eller <b>velg</b> for å laste opp",Ft="filen / filene er for store",_t="Filopplastning",Pt="Font tilknyttet valgt tema mal",Lt="Skrifttype for mengdetekst",Ut="Skrifttype for tittel",jt="Forhåndsvisning",Mt="Forhåndsvisning ikke tilgjengelig",Dt="Gå tilbake",Wt="Fremhevede ikoner",Ct="Ikon | Ikoner",Ot="Søk på engelsk etter ikonet du leter etter. Eks. 'Helicopter'",Nt="treff",Rt="Ingen ikoner passer søket ditt.",Ht="Beskjed",zt="Takk for din interesse. Du vil snart bli kontaktet.",Vt="Jeg ønsker å bli kontaktet i samtykke med {0}",Yt="Vi behandler informasjonen du sender i henhold til vår {link}",Gt="Lenke | Lenker",qt="Last inn alle",Jt="Maks størrelse",Kt="Navn",Xt="Jeg ønsker å bli kontaktet i samtykke med {link}",Qt="Telefon",Zt="Du har ikke tastet inn et gyldig telefonnummer",en="Hovedtittel",tn="Personvernerklæringen",nn="Personvernerklæring",rn="Sekundærtittel",on="Velg",an="Velg ikon",sn="Velg / søk etter font",ln="Vis alle",cn="Vis alle Google fonts",un="Noe gikk galt",fn="Send inn {x}",dn="Last opp skrifttype",hn={cancel:Et,confirm:$t,copy:xt,delete:"Slett",email:Bt,"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:Tt,fileSizeError:Ft,fileUpload:_t,fontAssociatedWithSelectedThemeTemplate:Pt,fontForBody:Lt,fontForHeading:Ut,fontPreview:jt,fontPreviewDisabled:Mt,goBack:Dt,highlightedIcons:Wt,icon:Ct,iconSelectWidgetHelpText:Ot,iconsSelectWidgetIconsFound:Nt,iconsSelectWidgetNoIconsMatchYourSearch:Rt,leadMessage:Ht,leadMessageSent:zt,leadPrivacy:Vt,leadPrivacyInfo:Yt,link:Gt,loadAllElements:qt,maxSize:Jt,name:Kt,nuxtLeadPrivacy:Xt,phone:Qt,phoneValidation:Zt,primaryTitle:en,privacy:tn,privacyPolicyTitle:nn,secondaryTitle:rn,select:on,selectIcon:an,selectOrSearchForFont:sn,showAll:ln,showAllGoogleFonts:cn,somethingWentWrong:un,submit:fn,uploadFont:dn},gn="Annuler",pn="Confirmer",mn="Copier",yn="E-mail",bn=`Faites glisser un fichier ici ou
|
|
3
3
|
<b>velg</b> pour télécharger
|
|
4
|
-
`,pn="le fichier / les fichiers sont trop volumineux",mn="Téléchargement de fichier",yn="Police associée au modèle de thème sélectionné",bn="Police pour le texte de contenu",wn="Police pour le titre",vn="Aperçu",kn="Aperçu non disponible",Sn="Retourner",An="Icônes mises en avant",En="Icône | Icônes",In="Recherchez en anglais l'icône que vous recherchez. Ex. 'Helicopter'",$n="résultats",xn="Aucune icône ne correspond à votre recherche.",Bn="Message",Tn="Merci de votre intérêt. Vous serez bientôt contacté.",Fn="Je souhaite être contacté en accord avec {0}",_n="Lien | Liens",Ln="Charger tout",Un="Taille max.",jn="Nom",Pn="Je souhaite être contacté en accord avec {link}",Mn="Téléphone",Dn="Le numéro de téléphone saisi n’est pas valide",Wn="Titre principal",Cn="Déclaration de confidentialité",On="Titre secondaire",Nn="Choisir",Rn="Sélectionnez l'icône",Hn="Choisir / rechercher une police",zn="Afficher tout",Yn="Afficher toutes les polices Google",Vn="Quelque chose a mal tourné",Gn="Soumettre {x}",Jn="Téléverser une police",qn={cancel:un,confirm:fn,copy:dn,delete:"Supprimer",email:hn,"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:gn,fileSizeError:pn,fileUpload:mn,fontAssociatedWithSelectedThemeTemplate:yn,fontForBody:bn,fontForHeading:wn,fontPreview:vn,fontPreviewDisabled:kn,goBack:Sn,highlightedIcons:An,icon:En,iconSelectWidgetHelpText:In,iconsSelectWidgetIconsFound:$n,iconsSelectWidgetNoIconsMatchYourSearch:xn,leadMessage:Bn,leadMessageSent:Tn,leadPrivacy:Fn,link:_n,loadAllElements:Ln,maxSize:Un,name:jn,nuxtLeadPrivacy:Pn,phone:Mn,phoneValidation:Dn,primaryTitle:Wn,privacy:Cn,secondaryTitle:On,select:Nn,selectIcon:Rn,selectOrSearchForFont:Hn,showAll:zn,showAllGoogleFonts:Yn,somethingWentWrong:Vn,submit:Gn,uploadFont:Jn},Kn="Afbryd",Xn="Bekræft",Qn="Kopier",Zn="E-mail",er="Træk en fil over eller <b>vælg</b> for at låse op",tr="filen / filene er for store",nr="Filupload",rr="Font tilknyttet den valgte temaskabelon",or="Skrifttype til tekst",ir="Skrifttype til titel",ar="Forhåndsvisning",sr="Forhåndsvisning ikke tilgængelig",lr="Gå tilbage",cr="Fremhævede ikoner",ur="Ikon | Ikoner",fr="Søg på engelsk efter det ikon, du leder efter. F.eks. 'Helicopter'.",dr="Resultat",hr="Der er ingen ikoner, der matcher din søgning",gr="Besked",pr="Tak for din interesse. Du vil snart blive kontaktet af vores account manager.",mr="Jeg ønsker at blive kontaktet i overensstemmelse med {0}",yr="Link | Links",br="Tilfjøj alle",wr="Navn",vr="Jeg ønsker at blive kontaktet i overensstemmelse med {link}",kr="Telefon",Sr="Du har ikke indtastet et gyldigt telefonnummer",Ar="Hovedtitel",Er="Erklæring om privatlivsbeskyttelse",Ir="Sekundærtitel",$r="Vælg",xr="Vælg ikon",Br="Vælg / søg efter skrifttype",Tr="Vis alle",Fr="Vis alle Google-skrifttyper",_r="Noget gik galt",Lr="Indsend {x}",Ur="Upload skrifttype",jr={cancel:Kn,confirm:Xn,copy:Qn,delete:"Slet",email:Zn,"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:er,fileSizeError:tr,fileUpload:nr,fontAssociatedWithSelectedThemeTemplate:rr,fontForBody:or,fontForHeading:ir,fontPreview:ar,fontPreviewDisabled:sr,goBack:lr,highlightedIcons:cr,icon:ur,iconSelectWidgetHelpText:fr,iconsSelectWidgetIconsFound:dr,iconsSelectWidgetNoIconsMatchYourSearch:hr,leadMessage:gr,leadMessageSent:pr,leadPrivacy:mr,link:yr,loadAllElements:br,name:wr,nuxtLeadPrivacy:vr,phone:kr,phoneValidation:Sr,primaryTitle:Ar,privacy:Er,secondaryTitle:Ir,select:$r,selectIcon:xr,selectOrSearchForFont:Br,showAll:Tr,showAllGoogleFonts:Fr,somethingWentWrong:_r,submit:Lr,uploadFont:Ur},Pr="Avbryt",Mr="Bekräfta",Dr="Kopiera",Wr="E-post",Cr="Dra en fil hit eller <b>välj</b> för att ladda upp",Or="filen / filerna är för stora",Nr="Filuppladdning",Rr="Typsnitt kopplat till vald temamall",Hr="Teckensnitt för brödtext",zr="Teckensnitt för titel",Yr="Förhandsvisning",Vr="Förhandsvisning inte tillgänglig",Gr="Gå tillbaka",Jr="Framhävda ikoner",qr="Ikon | Ikoner",Kr='Sök på engelska efter ikonen du letar efter. T.ex. "Helicopter"',Xr="träff",Qr="Inga ikoner matchade din sökning.",Zr="Besked/Information",eo="Tack för ditt intresse. Du kommer snart att kontaktas av en kundtjänstmedarbetare.",to="Jag vill bli kontaktad i enlighet med {0}",no="Länk | Länkar",ro="Ladda alla",oo="Namn",io="Jag vill bli kontaktad i enlighet med {link}",ao="Telefon",so="Du har inte angett ett giltigt telefonnummer",lo="Huvudtitel",co="Dataskyddsförordningen",uo="Sekundär titel",fo="Välj",ho="Välj ikon",go="älj / sök efter typsnitt",po="Visa alla",mo="Visa alla Google-typsnitt",yo="Ett fel inträffade",bo="Skicka in {x}",wo="Ladda upp teckensnitt",vo={cancel:Pr,confirm:Mr,copy:Dr,delete:"Radera",email:Wr,"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:Cr,fileSizeError:Or,fileUpload:Nr,fontAssociatedWithSelectedThemeTemplate:Rr,fontForBody:Hr,fontForHeading:zr,fontPreview:Yr,fontPreviewDisabled:Vr,goBack:Gr,highlightedIcons:Jr,icon:qr,iconSelectWidgetHelpText:Kr,iconsSelectWidgetIconsFound:Xr,iconsSelectWidgetNoIconsMatchYourSearch:Qr,leadMessage:Zr,leadMessageSent:eo,leadPrivacy:to,link:no,loadAllElements:ro,name:oo,nuxtLeadPrivacy:io,phone:ao,phoneValidation:so,primaryTitle:lo,privacy:co,secondaryTitle:uo,select:fo,selectIcon:ho,selectOrSearchForFont:go,showAll:po,showAllGoogleFonts:mo,somethingWentWrong:yo,submit:bo,uploadFont:wo};var ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ko(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 I(B,U){if(!f[B]){if(!l[B]){var D=typeof de=="function"&&de;if(!U&&D)return D(B,!0);if(T)return T(B,!0);throw new Error("Cannot find module '"+B+"'")}U=f[B]={exports:{}},l[B][0].call(U.exports,function(O){var W=l[B][1][O];return I(W||O)},U,U.exports,o,l,f,h)}return f[B].exports}for(var T=typeof de=="function"&&de,$=0;$<h.length;$++)I(h[$]);return I}({1:[function(o,l,f){(function(h,I,T,$,B,U,D,O,W){var y=o("crypto");function F(u,m){m=x(u,m);var n;return(n=m.algorithm!=="passthrough"?y.createHash(m.algorithm):new L).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"],k=(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(k.indexOf(n.encoding)===-1&&n.algorithm!=="passthrough")throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+k.join(", "));return n}function S(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),P=/\[object (.*)\]/i.exec(p);if(P=(P=P?P[1]:"unknown:["+p+"]").toLowerCase(),0<=(p=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+p+"]");if(n.push(t),T!==void 0&&T.isBuffer&&T.isBuffer(t))return i("buffer:"),i(t);if(P==="object"||P==="function"||P==="asyncfunction")return p=Object.keys(t),u.unorderedObjects&&(p=p.sort()),u.respectType===!1||S(t)||p.splice(0,0,"prototype","__proto__","constructor"),u.excludeKeys&&(p=p.filter(function(j){return!u.excludeKeys(j)})),i("object:"+p.length+":"),d=this,p.forEach(function(j){d.dispatch(j),i(":"),u.excludeValues||d.dispatch(t[j]),i(",")});if(!this["_"+P]){if(u.ignoreUnknown)return i("["+P+"]");throw new Error('Unknown object type "'+P+'"')}this["_"+P](t)},_array:function(t,j){j=j!==void 0?j:u.unorderedArrays!==!1;var p=this;if(i("array:"+t.length+":"),!j||t.length<=1)return t.forEach(function(M){return p.dispatch(M)});var P=[],j=t.map(function(M){var _=new L,N=n.slice();return v(u,_,N).dispatch(M),P=P.concat(N.slice(n.length)),_.read().toString()});return n=n.concat(P),j.sort(),this._array(j,!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:"),S(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
|
|
4
|
+
`,vn="le fichier / les fichiers sont trop volumineux",wn="Téléchargement de fichier",kn="Police associée au modèle de thème sélectionné",Sn="Police pour le texte de contenu",In="Police pour le titre",An="Aperçu",En="Aperçu non disponible",$n="Retourner",xn="Icônes mises en avant",Bn="Icône | Icônes",Tn="Recherchez en anglais l'icône que vous recherchez. Ex. 'Helicopter'",Fn="résultats",_n="Aucune icône ne correspond à votre recherche.",Pn="Message",Ln="Merci de votre intérêt. Vous serez bientôt contacté.",Un="Je souhaite être contacté en accord avec {0}",jn="Nous traitons les informations que vous soumettez conformément à notre {link}",Mn="Lien | Liens",Dn="Charger tout",Wn="Taille max.",Cn="Nom",On="Je souhaite être contacté en accord avec {link}",Nn="Téléphone",Rn="Le numéro de téléphone saisi n’est pas valide",Hn="Titre principal",zn="Déclaration de confidentialité",Vn="Politique de confidentialité",Yn="Titre secondaire",Gn="Choisir",qn="Sélectionnez l'icône",Jn="Choisir / rechercher une police",Kn="Afficher tout",Xn="Afficher toutes les polices Google",Qn="Quelque chose a mal tourné",Zn="Soumettre {x}",er="Téléverser une police",tr={cancel:gn,confirm:pn,copy:mn,delete:"Supprimer",email:yn,"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:bn,fileSizeError:vn,fileUpload:wn,fontAssociatedWithSelectedThemeTemplate:kn,fontForBody:Sn,fontForHeading:In,fontPreview:An,fontPreviewDisabled:En,goBack:$n,highlightedIcons:xn,icon:Bn,iconSelectWidgetHelpText:Tn,iconsSelectWidgetIconsFound:Fn,iconsSelectWidgetNoIconsMatchYourSearch:_n,leadMessage:Pn,leadMessageSent:Ln,leadPrivacy:Un,leadPrivacyInfo:jn,link:Mn,loadAllElements:Dn,maxSize:Wn,name:Cn,nuxtLeadPrivacy:On,phone:Nn,phoneValidation:Rn,primaryTitle:Hn,privacy:zn,privacyPolicyTitle:Vn,secondaryTitle:Yn,select:Gn,selectIcon:qn,selectOrSearchForFont:Jn,showAll:Kn,showAllGoogleFonts:Xn,somethingWentWrong:Qn,submit:Zn,uploadFont:er},nr="Afbryd",rr="Bekræft",or="Kopier",ir="E-mail",ar="Træk en fil over eller <b>vælg</b> for at låse op",sr="filen / filene er for store",lr="Filupload",cr="Font tilknyttet den valgte temaskabelon",ur="Skrifttype til tekst",fr="Skrifttype til titel",dr="Forhåndsvisning",hr="Forhåndsvisning ikke tilgængelig",gr="Gå tilbage",pr="Fremhævede ikoner",mr="Ikon | Ikoner",yr="Søg på engelsk efter det ikon, du leder efter. F.eks. 'Helicopter'.",br="Resultat",vr="Der er ingen ikoner, der matcher din søgning",wr="Besked",kr="Tak for din interesse. Du vil snart blive kontaktet af vores account manager.",Sr="Jeg ønsker at blive kontaktet i overensstemmelse med {0}",Ir="Vi behandler de oplysninger, du indsender, i overensstemmelse med vores {link}",Ar="Link | Links",Er="Tilfjøj alle",$r="Navn",xr="Jeg ønsker at blive kontaktet i overensstemmelse med {link}",Br="Telefon",Tr="Du har ikke indtastet et gyldigt telefonnummer",Fr="Hovedtitel",_r="Erklæring om privatlivsbeskyttelse",Pr="Erklæring om beskyttelse af personoplysninger",Lr="Sekundærtitel",Ur="Vælg",jr="Vælg ikon",Mr="Vælg / søg efter skrifttype",Dr="Vis alle",Wr="Vis alle Google-skrifttyper",Cr="Noget gik galt",Or="Indsend {x}",Nr="Upload skrifttype",Rr={cancel:nr,confirm:rr,copy:or,delete:"Slet",email:ir,"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:ar,fileSizeError:sr,fileUpload:lr,fontAssociatedWithSelectedThemeTemplate:cr,fontForBody:ur,fontForHeading:fr,fontPreview:dr,fontPreviewDisabled:hr,goBack:gr,highlightedIcons:pr,icon:mr,iconSelectWidgetHelpText:yr,iconsSelectWidgetIconsFound:br,iconsSelectWidgetNoIconsMatchYourSearch:vr,leadMessage:wr,leadMessageSent:kr,leadPrivacy:Sr,leadPrivacyInfo:Ir,link:Ar,loadAllElements:Er,name:$r,nuxtLeadPrivacy:xr,phone:Br,phoneValidation:Tr,primaryTitle:Fr,privacy:_r,privacyPolicyTitle:Pr,secondaryTitle:Lr,select:Ur,selectIcon:jr,selectOrSearchForFont:Mr,showAll:Dr,showAllGoogleFonts:Wr,somethingWentWrong:Cr,submit:Or,uploadFont:Nr},Hr="Avbryt",zr="Bekräfta",Vr="Kopiera",Yr="E-post",Gr="Dra en fil hit eller <b>välj</b> för att ladda upp",qr="filen / filerna är för stora",Jr="Filuppladdning",Kr="Typsnitt kopplat till vald temamall",Xr="Teckensnitt för brödtext",Qr="Teckensnitt för titel",Zr="Förhandsvisning",eo="Förhandsvisning inte tillgänglig",to="Gå tillbaka",no="Framhävda ikoner",ro="Ikon | Ikoner",oo='Sök på engelska efter ikonen du letar efter. T.ex. "Helicopter"',io="träff",ao="Inga ikoner matchade din sökning.",so="Besked/Information",lo="Tack för ditt intresse. Du kommer snart att kontaktas av en kundtjänstmedarbetare.",co="Jag vill bli kontaktad i enlighet med {0}",uo="Vi behandlar informationen du skickar i enlighet med vår {link}",fo="Länk | Länkar",ho="Ladda alla",go="Max storlek",po="Namn",mo="Jag vill bli kontaktad i enlighet med {link}",yo="Telefon",bo="Du har inte angett ett giltigt telefonnummer",vo="Huvudtitel",wo="Dataskyddsförordningen",ko="Sekretesspolicy",So="Sekundär titel",Io="Välj",Ao="Välj ikon",Eo="älj / sök efter typsnitt",$o="Visa alla",xo="Visa alla Google-typsnitt",Bo="Ett fel inträffade",To="Skicka in {x}",Fo="Ladda upp teckensnitt",_o={cancel:Hr,confirm:zr,copy:Vr,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:Gr,fileSizeError:qr,fileUpload:Jr,fontAssociatedWithSelectedThemeTemplate:Kr,fontForBody:Xr,fontForHeading:Qr,fontPreview:Zr,fontPreviewDisabled:eo,goBack:to,highlightedIcons:no,icon:ro,iconSelectWidgetHelpText:oo,iconsSelectWidgetIconsFound:io,iconsSelectWidgetNoIconsMatchYourSearch:ao,leadMessage:so,leadMessageSent:lo,leadPrivacy:co,leadPrivacyInfo:uo,link:fo,loadAllElements:ho,maxSize:go,name:po,nuxtLeadPrivacy:mo,phone:yo,phoneValidation:bo,primaryTitle:vo,privacy:wo,privacyPolicyTitle:ko,secondaryTitle:So,select:Io,selectIcon:Ao,selectOrSearchForFont:Eo,showAll:$o,showAllGoogleFonts:xo,somethingWentWrong:Bo,submit:To,uploadFont:Fo};var mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Po(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 E(B,L){if(!f[B]){if(!l[B]){var D=typeof de=="function"&&de;if(!L&&D)return D(B,!0);if(T)return T(B,!0);throw new Error("Cannot find module '"+B+"'")}L=f[B]={exports:{}},l[B][0].call(L.exports,function(O){var W=l[B][1][O];return E(W||O)},L,L.exports,o,l,f,h)}return f[B].exports}for(var T=typeof de=="function"&&de,$=0;$<h.length;$++)E(h[$]);return E}({1:[function(o,l,f){(function(h,E,T,$,B,L,D,O,W){var y=o("crypto");function F(u,m){m=x(u,m);var n;return(n=m.algorithm!=="passthrough"?y.createHash(m.algorithm):new P).write===void 0&&(n.write=n.update,n.end=n.update),w(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"],k=(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(k.indexOf(n.encoding)===-1&&n.algorithm!=="passthrough")throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+k.join(", "));return n}function S(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 w(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),j=/\[object (.*)\]/i.exec(p);if(j=(j=j?j[1]:"unknown:["+p+"]").toLowerCase(),0<=(p=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+p+"]");if(n.push(t),T!==void 0&&T.isBuffer&&T.isBuffer(t))return i("buffer:"),i(t);if(j==="object"||j==="function"||j==="asyncfunction")return p=Object.keys(t),u.unorderedObjects&&(p=p.sort()),u.respectType===!1||S(t)||p.splice(0,0,"prototype","__proto__","constructor"),u.excludeKeys&&(p=p.filter(function(U){return!u.excludeKeys(U)})),i("object:"+p.length+":"),d=this,p.forEach(function(U){d.dispatch(U),i(":"),u.excludeValues||d.dispatch(t[U]),i(",")});if(!this["_"+j]){if(u.ignoreUnknown)return i("["+j+"]");throw new Error('Unknown object type "'+j+'"')}this["_"+j](t)},_array:function(t,U){U=U!==void 0?U:u.unorderedArrays!==!1;var p=this;if(i("array:"+t.length+":"),!U||t.length<=1)return t.forEach(function(M){return p.dispatch(M)});var j=[],U=t.map(function(M){var _=new P,N=n.slice();return w(u,_,N).dispatch(M),j=j.concat(N.slice(n.length)),_.read().toString()});return n=n.concat(j),U.sort(),this._array(U,!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:"),S(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
|
|
5
5
|
(see https://github.com/puleos/object-hash/issues/26)
|
|
6
6
|
Use "options.replacer" or "options.ignoreUnknown"
|
|
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
|
|
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,C,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 J=X.length-Q;(!K||J<(K=Number(K)))&&(K=J),E((J=G.length)%2==0,"Invalid hex string"),J/2<K&&(K=J/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,C=r,H=c,w=g._charsWritten=ee(Z(e),A,C,H);break;case"ascii":case"binary":w=k(this,e,r,c);break;case"base64":A=this,C=r,H=c,w=g._charsWritten=ee(fe(e),A,C,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,C,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="",J=X;J<G;J++)K+=R(z[J]);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 J=X;J<G;J++)z[J]<=127?(Q+=ce(K)+String.fromCharCode(z[J]),K=""):K+="%"+z[J].toString(16);return Q+ce(K)}(H,r,c);break;case"ascii":case"binary":b=S(H,r,c);break;case"base64":w=H,C=c,b=(A=r)===0&&C===w.length?y.fromByteArray(w):y.fromByteArray(w.slice(A,C));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":b=function(z,X,G){for(var Q=z.slice(X,G),K="",J=0;J<Q.length;J+=2)K+=String.fromCharCode(Q[J]+256*Q[J+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 L(this,e,!0,r)},g.prototype.readUInt32BE=function(e,r){return L(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){P(this,e,r,!0,c)},g.prototype.writeInt32BE=function(e,r,c){P(this,e,r,!1,c)},g.prototype.writeFloatLE=function(e,r,c){j(this,e,r,!0,c)},g.prototype.writeFloatBE=function(e,r,c){j(this,e,r,!1,c)},g.prototype.writeDoubleLE=function(e,r,c){M(this,e,r,!0,c)},g.prototype.writeDoubleBE=function(e,r,c){M(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 q(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("%")),C=0;C<A.length;C++)r.push(parseInt(A[C],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,I,y,$,B,U,D,O,W){var y=o("buffer").Buffer,F=4,g=new y(F);g.fill(0),l.exports={hash:function(k,x,S,v){for(var L=x(function(t,d){t.length%F!=0&&(p=t.length+(F-t.length%F),t=y.concat([t,g],p));for(var p,P=[],j=d?t.readInt32BE:t.readInt32LE,M=0;M<t.length;M+=F)P.push(j.call(t,M));return P}(k=y.isBuffer(k)?k:new y(k),v),8*k.length),x=v,u=new y(S),m=x?u.writeInt32BE:u.writeInt32LE,n=0;n<L.length;n++)m.call(u,L[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,I,y,$,B,U,D,O,W){var y=o("buffer").Buffer,F=o("./sha"),g=o("./sha256"),k=o("./rng"),x={sha1:F,sha256:g,md5:o("./md5")},S=64,v=new y(S);function L(t,d){var p=x[t=t||"sha1"],P=[];return p||u("algorithm:",t,"is not yet supported"),{update:function(j){return y.isBuffer(j)||(j=new y(j)),P.push(j),j.length,this},digest:function(j){var M=y.concat(P),M=d?function(_,N,q){y.isBuffer(N)||(N=new y(N)),y.isBuffer(q)||(q=new y(q)),N.length>S?N=_(N):N.length<S&&(N=y.concat([N,v],S));for(var Y=new y(S),R=new y(S),Z=0;Z<S;Z++)Y[Z]=54^N[Z],R[Z]=92^N[Z];return q=_(y.concat([Y,q])),_(y.concat([R,q]))}(p,d,M):p(M);return P=null,j?M.toString(j):M}}}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 L(t)},f.createHmac=L,f.randomBytes=function(t,d){if(!d||!d.call)return new y(k(t));try{d.call(this,void 0,new y(k(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,I,T,$,B,U,D,O,W){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 P=n,j=i,M=t,_=d,n=k(n,i,t,d,u[p+0],7,-680876936),d=k(d,n,i,t,u[p+1],12,-389564586),t=k(t,d,n,i,u[p+2],17,606105819),i=k(i,t,d,n,u[p+3],22,-1044525330);n=k(n,i,t,d,u[p+4],7,-176418897),d=k(d,n,i,t,u[p+5],12,1200080426),t=k(t,d,n,i,u[p+6],17,-1473231341),i=k(i,t,d,n,u[p+7],22,-45705983),n=k(n,i,t,d,u[p+8],7,1770035416),d=k(d,n,i,t,u[p+9],12,-1958414417),t=k(t,d,n,i,u[p+10],17,-42063),i=k(i,t,d,n,u[p+11],22,-1990404162),n=k(n,i,t,d,u[p+12],7,1804603682),d=k(d,n,i,t,u[p+13],12,-40341101),t=k(t,d,n,i,u[p+14],17,-1502002290),n=x(n,i=k(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=S(n,i=x(i,t,d,n,u[p+12],20,-1926607734),t,d,u[p+5],4,-378558),d=S(d,n,i,t,u[p+8],11,-2022574463),t=S(t,d,n,i,u[p+11],16,1839030562),i=S(i,t,d,n,u[p+14],23,-35309556),n=S(n,i,t,d,u[p+1],4,-1530992060),d=S(d,n,i,t,u[p+4],11,1272893353),t=S(t,d,n,i,u[p+7],16,-155497632),i=S(i,t,d,n,u[p+10],23,-1094730640),n=S(n,i,t,d,u[p+13],4,681279174),d=S(d,n,i,t,u[p+0],11,-358537222),t=S(t,d,n,i,u[p+3],16,-722521979),i=S(i,t,d,n,u[p+6],23,76029189),n=S(n,i,t,d,u[p+9],4,-640364487),d=S(d,n,i,t,u[p+12],11,-421815835),t=S(t,d,n,i,u[p+15],16,530742520),n=v(n,i=S(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=L(n,P),i=L(i,j),t=L(t,M),d=L(d,_)}return Array(n,i,t,d)}function g(u,m,n,i,t,d){return L((m=L(L(m,u),L(i,d)))<<t|m>>>32-t,n)}function k(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 S(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 L(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,I,T,$,B,U,D,O,W){l.exports=function(y){for(var F,g=new Array(y),k=0;k<y;k++)!(3&k)&&(F=4294967296*Math.random()),g[k]=F>>>((3&k)<<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,I,T,$,B,U,D,O,W){var y=o("./helpers");function F(x,S){x[S>>5]|=128<<24-S%32,x[15+(S+64>>9<<4)]=S;for(var v,L,u,m=Array(80),n=1732584193,i=-271733879,t=-1732584194,d=271733878,p=-1009589776,P=0;P<x.length;P+=16){for(var j=n,M=i,_=t,N=d,q=p,Y=0;Y<80;Y++){m[Y]=Y<16?x[P+Y]:k(m[Y-3]^m[Y-8]^m[Y-14]^m[Y-16],1);var R=g(g(k(n,5),(R=i,L=t,u=d,(v=Y)<20?R&L|~R&u:!(v<40)&&v<60?R&L|R&u|L&u:R^L^u)),g(g(p,m[Y]),(v=Y)<20?1518500249:v<40?1859775393:v<60?-1894007588:-899497514)),p=d,d=t,t=k(i,30),i=n,n=R}n=g(n,j),i=g(i,M),t=g(t,_),d=g(d,N),p=g(p,q)}return Array(n,i,t,d,p)}function g(x,S){var v=(65535&x)+(65535&S);return(x>>16)+(S>>16)+(v>>16)<<16|65535&v}function k(x,S){return x<<S|x>>>32-S}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,I,T,$,B,U,D,O,W){function y(S,v){var L=(65535&S)+(65535&v);return(S>>16)+(v>>16)+(L>>16)<<16|65535&L}function F(S,v){var L,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);S[v>>5]|=128<<24-v%32,S[15+(v+64>>9<<4)]=v;for(var i,t,d=0;d<S.length;d+=16){for(var p=m[0],P=m[1],j=m[2],M=m[3],_=m[4],N=m[5],q=m[6],Y=m[7],R=0;R<64;R++)n[R]=R<16?S[R+d]:y(y(y((t=n[R-2],k(t,17)^k(t,19)^x(t,10)),n[R-7]),(t=n[R-15],k(t,7)^k(t,18)^x(t,3))),n[R-16]),L=y(y(y(y(Y,k(t=_,6)^k(t,11)^k(t,25)),_&N^~_&q),u[R]),n[R]),i=y(k(i=p,2)^k(i,13)^k(i,22),p&P^p&j^P&j),Y=q,q=N,N=_,_=y(M,L),M=j,j=P,P=p,p=y(L,i);m[0]=y(p,m[0]),m[1]=y(P,m[1]),m[2]=y(j,m[2]),m[3]=y(M,m[3]),m[4]=y(_,m[4]),m[5]=y(N,m[5]),m[6]=y(q,m[6]),m[7]=y(Y,m[7])}return m}var g=o("./helpers"),k=function(S,v){return S>>>v|S<<32-v},x=function(S,v){return S>>>v};l.exports=function(S){return g.hash(S,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,I,T,$,B,U,D,O,W){f.read=function(y,F,g,k,d){var S,v,L=8*d-k-1,u=(1<<L)-1,m=u>>1,n=-7,i=g?d-1:0,t=g?-1:1,d=y[F+i];for(i+=t,S=d&(1<<-n)-1,d>>=-n,n+=L;0<n;S=256*S+y[F+i],i+=t,n-=8);for(v=S&(1<<-n)-1,S>>=-n,n+=k;0<n;v=256*v+y[F+i],i+=t,n-=8);if(S===0)S=1-m;else{if(S===u)return v?NaN:1/0*(d?-1:1);v+=Math.pow(2,k),S-=m}return(d?-1:1)*v*Math.pow(2,S-k)},f.write=function(y,F,g,k,x,p){var v,L,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=k?0:p-1,d=k?1:-1,p=F<0||F===0&&1/F<0?1:0;for(F=Math.abs(F),isNaN(F)||F===1/0?(L=isNaN(F)?1:0,v=m):(v=Math.floor(Math.log(F)/Math.LN2),F*(k=Math.pow(2,-v))<1&&(v--,k*=2),2<=(F+=1<=v+n?i/k:i*Math.pow(2,1-n))*k&&(v++,k/=2),m<=v+n?(L=0,v=m):1<=v+n?(L=(F*k-1)*Math.pow(2,x),v+=n):(L=F*Math.pow(2,n-1)*Math.pow(2,x),v=0));8<=x;y[g+t]=255&L,t+=d,L/=256,x-=8);for(v=v<<x|L,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,I,T,$,B,U,D,O,W){var y,F,g;function k(){}(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 S=x.source;S!==window&&S!==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=k,h.addListener=k,h.once=k,h.off=k,h.removeListener=k,h.removeAllListeners=k,h.emit=k,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 So=Fe.exports;const ke=ko(So);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,I){return a(o,h,I)});case 2:return V(o)&&V(l)?s:V(o)?oe(function(h,I){return a(h,l,I)}):V(l)?oe(function(h,I){return a(o,h,I)}):ie(function(h){return a(o,l,h)});default:return V(o)&&V(l)&&V(f)?s:V(o)&&V(l)?oe(function(h,I){return a(h,I,f)}):V(o)&&V(f)?oe(function(h,I){return a(h,l,I)}):V(l)&&V(f)?oe(function(h,I){return a(o,h,I)}):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 Se(a){return Object.prototype.toString.call(a)==="[object Object]"}var Ao=_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}),Eo=_e(function a(s,o,l){return Ao(function(f,h,I){return Se(h)&&Se(I)?a(s,h,I):s(f,h,I)},o,l)}),Io=oe(function(s,o){return Eo(function(l,f,h){return h},s,o)});let $o={headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"include"};async function xo(a,s={}){const{baseURL:o="",...l}=s;return fetch(`${o}${a}`,Io($o,l)).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 P(){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={}),w(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,E,T,$,B,L,D,O,W){(function(y){var F=typeof Uint8Array<"u"?Uint8Array:Array,g=43,k=47,x=48,S=97,w=65,P=45,u=95;function m(n){return n=n.charCodeAt(0),n===g||n===P?62:n===k||n===u?63:n<x?-1:n<x+10?n-x+26+26:n<w+26?n-w:n<S+26?n-S+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),j=0<d?n.length-4:n.length,U=0;function M(_){p[U++]=_}for(i=0;i<j;i+=4,0)M((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),M((65280&t)>>8),M(255&t);return d==2?M(255&(t=m(n.charAt(i))<<2|m(n.charAt(i+1))>>4)):d==1&&(M((t=m(n.charAt(i))<<10|m(n.charAt(i+1))<<4|m(n.charAt(i+2))>>2)>>8&255),M(255&t)),p},y.fromByteArray=function(n){var i,t,d,p,j=n.length%3,U="";function M(_){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(_)}for(i=0,d=n.length-j;i<d;i+=3)t=(n[i]<<16)+(n[i+1]<<8)+n[i+2],U+=M((p=t)>>18&63)+M(p>>12&63)+M(p>>6&63)+M(63&p);switch(j){case 1:U=(U+=M((t=n[n.length-1])>>2))+M(t<<4&63)+"==";break;case 2:U=(U=(U+=M((t=(n[n.length-2]<<8)+n[n.length-1])>>10))+M(t>>4&63))+M(t<<2&63)+"="}return U}})(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,E,g,$,B,L,D,O,W){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,v,I,C,H=typeof e;if(r==="base64"&&H=="string")for(e=(C=e).trim?C.trim():C.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?v=g._augment(new Uint8Array(b)):((v=this).length=b,v._isBuffer=!0),g._useTypedArrays&&typeof e.byteLength=="number")v._set(e);else if(V(C=e)||g.isBuffer(C)||C&&typeof C=="object"&&typeof C.length=="number")for(I=0;I<b;I++)g.isBuffer(e)?v[I]=e.readUInt8(I):v[I]=e[I];else if(H=="string")v.write(e,0,r);else if(H=="number"&&!g._useTypedArrays&&!c)for(I=0;I<b;I++)v[I]=0;return v}function k(e,r,c,b){return g._charsWritten=ee(function(v){for(var I=[],C=0;C<v.length;C++)I.push(255&v.charCodeAt(C));return I}(r),e,c,b)}function x(e,r,c,b){return g._charsWritten=ee(function(v){for(var I,C,H=[],z=0;z<v.length;z++)C=v.charCodeAt(z),I=C>>8,C=C%256,H.push(C),H.push(I);return H}(r),e,c,b)}function S(e,r,c){var b="";c=Math.min(e.length,c);for(var v=r;v<c;v++)b+=String.fromCharCode(e[v]);return b}function w(e,r,c,I){I||(A(typeof c=="boolean","missing or invalid endian"),A(r!=null,"missing offset"),A(r+1<e.length,"Trying to read beyond buffer length"));var v,I=e.length;if(!(I<=r))return c?(v=e[r],r+1<I&&(v|=e[r+1]<<8)):(v=e[r]<<8,r+1<I&&(v|=e[r+1])),v}function P(e,r,c,I){I||(A(typeof c=="boolean","missing or invalid endian"),A(r!=null,"missing offset"),A(r+3<e.length,"Trying to read beyond buffer length"));var v,I=e.length;if(!(I<=r))return c?(r+2<I&&(v=e[r+2]<<16),r+1<I&&(v|=e[r+1]<<8),v|=e[r],r+3<I&&(v+=e[r+3]<<24>>>0)):(r+1<I&&(v=e[r+1]<<16),r+2<I&&(v|=e[r+2]<<8),r+3<I&&(v|=e[r+3]),v+=e[r]<<24>>>0),v}function u(e,r,c,b){if(b||(A(typeof c=="boolean","missing or invalid endian"),A(r!=null,"missing offset"),A(r+1<e.length,"Trying to read beyond buffer length")),!(e.length<=r))return b=w(e,r,c,!0),32768&b?-1*(65535-b+1):b}function m(e,r,c,b){if(b||(A(typeof c=="boolean","missing or invalid endian"),A(r!=null,"missing offset"),A(r+3<e.length,"Trying to read beyond buffer length")),!(e.length<=r))return b=P(e,r,c,!0),2147483648&b?-1*(4294967295-b+1):b}function n(e,r,c,b){return b||(A(typeof c=="boolean","missing or invalid endian"),A(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||(A(typeof c=="boolean","missing or invalid endian"),A(r+7<e.length,"Trying to read beyond buffer length")),F.read(e,r,c,52,8)}function t(e,r,c,b,v){if(v||(A(r!=null,"missing value"),A(typeof b=="boolean","missing or invalid endian"),A(c!=null,"missing offset"),A(c+1<e.length,"trying to write beyond buffer length"),ae(r,65535)),v=e.length,!(v<=c))for(var I=0,C=Math.min(v-c,2);I<C;I++)e[c+I]=(r&255<<8*(b?I:1-I))>>>8*(b?I:1-I)}function d(e,r,c,b,v){if(v||(A(r!=null,"missing value"),A(typeof b=="boolean","missing or invalid endian"),A(c!=null,"missing offset"),A(c+3<e.length,"trying to write beyond buffer length"),ae(r,4294967295)),v=e.length,!(v<=c))for(var I=0,C=Math.min(v-c,4);I<C;I++)e[c+I]=r>>>8*(b?I:3-I)&255}function p(e,r,c,b,v){v||(A(r!=null,"missing value"),A(typeof b=="boolean","missing or invalid endian"),A(c!=null,"missing offset"),A(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,v)}function j(e,r,c,b,v){v||(A(r!=null,"missing value"),A(typeof b=="boolean","missing or invalid endian"),A(c!=null,"missing offset"),A(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,v)}function U(e,r,c,b,v){v||(A(r!=null,"missing value"),A(typeof b=="boolean","missing or invalid endian"),A(c!=null,"missing offset"),A(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 M(e,r,c,b,v){v||(A(r!=null,"missing value"),A(typeof b=="boolean","missing or invalid endian"),A(c!=null,"missing offset"),A(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(A(V(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(v=r=0;v<e.length;v++)r+=e[v].length;for(var c=new g(r),b=0,v=0;v<e.length;v++){var I=e[v];I.copy(c,b),b+=I.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 v,I,C,H,z=this.length-r;switch((!c||z<(c=Number(c)))&&(c=z),b=String(b||"utf8").toLowerCase()){case"hex":v=function(X,G,Q,K){Q=Number(Q)||0;var q=X.length-Q;(!K||q<(K=Number(K)))&&(K=q),A((q=G.length)%2==0,"Invalid hex string"),q/2<K&&(K=q/2);for(var le=0;le<K;le++){var we=parseInt(G.substr(2*le,2),16);A(!isNaN(we),"Invalid hex string"),X[Q+le]=we}return g._charsWritten=2*le,le}(this,e,r,c);break;case"utf8":case"utf-8":I=this,C=r,H=c,v=g._charsWritten=ee(Z(e),I,C,H);break;case"ascii":case"binary":v=k(this,e,r,c);break;case"base64":I=this,C=r,H=c,v=g._charsWritten=ee(fe(e),I,C,H);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":v=x(this,e,r,c);break;default:throw new Error("Unknown encoding")}return v},g.prototype.toString=function(e,r,c){var b,v,I,C,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=S(H,r,c);break;case"base64":v=H,C=c,b=(I=r)===0&&C===v.length?y.fromByteArray(v):y.fromByteArray(v.slice(I,C));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){A(c<=b,"sourceEnd < sourceStart"),A(0<=r&&r<e.length,"targetStart out of bounds"),A(0<=c&&c<this.length,"sourceStart out of bounds"),A(0<=b&&b<=this.length,"sourceEnd out of bounds"),b>this.length&&(b=this.length);var v=(b=e.length-r<b-c?e.length-r+c:b)-c;if(v<100||!g._useTypedArrays)for(var I=0;I<v;I++)e[I+r]=this[I+c];else e._set(this.subarray(c,c+v),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,v=new g(b,void 0,!0),I=0;I<b;I++)v[I]=this[I+e];return v},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||(A(e!=null,"missing offset"),A(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},g.prototype.readUInt16LE=function(e,r){return w(this,e,!0,r)},g.prototype.readUInt16BE=function(e,r){return w(this,e,!1,r)},g.prototype.readUInt32LE=function(e,r){return P(this,e,!0,r)},g.prototype.readUInt32BE=function(e,r){return P(this,e,!1,r)},g.prototype.readInt8=function(e,r){if(r||(A(e!=null,"missing offset"),A(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||(A(e!=null,"missing value"),A(r!=null,"missing offset"),A(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||(A(e!=null,"missing value"),A(r!=null,"missing offset"),A(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){j(this,e,r,!0,c)},g.prototype.writeInt32BE=function(e,r,c){j(this,e,r,!1,c)},g.prototype.writeFloatLE=function(e,r,c){U(this,e,r,!0,c)},g.prototype.writeFloatBE=function(e,r,c){U(this,e,r,!1,c)},g.prototype.writeDoubleLE=function(e,r,c){M(this,e,r,!0,c)},g.prototype.writeDoubleBE=function(e,r,c){M(this,e,r,!1,c)},g.prototype.fill=function(e,r,c){if(r=r||0,c=c||this.length,A(typeof(e=typeof(e=e||0)=="string"?e.charCodeAt(0):e)=="number"&&!isNaN(e),"value is not a number"),A(r<=c,"end < start"),c!==r&&this.length!==0){A(0<=r&&r<this.length,"start out of bounds"),A(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 V(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 v=c,I=(55296<=b&&b<=57343&&c++,encodeURIComponent(e.slice(v,c+1)).substr(1).split("%")),C=0;C<I.length;C++)r.push(parseInt(I[C],16))}return r}function fe(e){return y.toByteArray(e)}function ee(e,r,c,b){for(var v=0;v<b&&!(v+c>=r.length||v>=e.length);v++)r[v+c]=e[v];return v}function ce(e){try{return decodeURIComponent(e)}catch{return"�"}}function ae(e,r){A(typeof e=="number","cannot write a non-number as a number"),A(0<=e,"specified a negative value for writing an unsigned value"),A(e<=r,"value is larger than maximum value for type"),A(Math.floor(e)===e,"value has a fractional component")}function ne(e,r,c){A(typeof e=="number","cannot write a non-number as a number"),A(e<=r,"value larger than maximum allowed value"),A(c<=e,"value smaller than minimum allowed value"),A(Math.floor(e)===e,"value has a fractional component")}function se(e,r,c){A(typeof e=="number","cannot write a non-number as a number"),A(e<=r,"value larger than maximum allowed value"),A(c<=e,"value smaller than minimum allowed value")}function A(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,E,y,$,B,L,D,O,W){var y=o("buffer").Buffer,F=4,g=new y(F);g.fill(0),l.exports={hash:function(k,x,S,w){for(var P=x(function(t,d){t.length%F!=0&&(p=t.length+(F-t.length%F),t=y.concat([t,g],p));for(var p,j=[],U=d?t.readInt32BE:t.readInt32LE,M=0;M<t.length;M+=F)j.push(U.call(t,M));return j}(k=y.isBuffer(k)?k:new y(k),w),8*k.length),x=w,u=new y(S),m=x?u.writeInt32BE:u.writeInt32LE,n=0;n<P.length;n++)m.call(u,P[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,E,y,$,B,L,D,O,W){var y=o("buffer").Buffer,F=o("./sha"),g=o("./sha256"),k=o("./rng"),x={sha1:F,sha256:g,md5:o("./md5")},S=64,w=new y(S);function P(t,d){var p=x[t=t||"sha1"],j=[];return p||u("algorithm:",t,"is not yet supported"),{update:function(U){return y.isBuffer(U)||(U=new y(U)),j.push(U),U.length,this},digest:function(U){var M=y.concat(j),M=d?function(_,N,J){y.isBuffer(N)||(N=new y(N)),y.isBuffer(J)||(J=new y(J)),N.length>S?N=_(N):N.length<S&&(N=y.concat([N,w],S));for(var V=new y(S),R=new y(S),Z=0;Z<S;Z++)V[Z]=54^N[Z],R[Z]=92^N[Z];return J=_(y.concat([V,J])),_(y.concat([R,J]))}(p,d,M):p(M);return j=null,U?M.toString(U):M}}}function u(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
9
|
+
`))}w.fill(0),f.createHash=function(t){return P(t)},f.createHmac=P,f.randomBytes=function(t,d){if(!d||!d.call)return new y(k(t));try{d.call(this,void 0,new y(k(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,E,T,$,B,L,D,O,W){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 j=n,U=i,M=t,_=d,n=k(n,i,t,d,u[p+0],7,-680876936),d=k(d,n,i,t,u[p+1],12,-389564586),t=k(t,d,n,i,u[p+2],17,606105819),i=k(i,t,d,n,u[p+3],22,-1044525330);n=k(n,i,t,d,u[p+4],7,-176418897),d=k(d,n,i,t,u[p+5],12,1200080426),t=k(t,d,n,i,u[p+6],17,-1473231341),i=k(i,t,d,n,u[p+7],22,-45705983),n=k(n,i,t,d,u[p+8],7,1770035416),d=k(d,n,i,t,u[p+9],12,-1958414417),t=k(t,d,n,i,u[p+10],17,-42063),i=k(i,t,d,n,u[p+11],22,-1990404162),n=k(n,i,t,d,u[p+12],7,1804603682),d=k(d,n,i,t,u[p+13],12,-40341101),t=k(t,d,n,i,u[p+14],17,-1502002290),n=x(n,i=k(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=S(n,i=x(i,t,d,n,u[p+12],20,-1926607734),t,d,u[p+5],4,-378558),d=S(d,n,i,t,u[p+8],11,-2022574463),t=S(t,d,n,i,u[p+11],16,1839030562),i=S(i,t,d,n,u[p+14],23,-35309556),n=S(n,i,t,d,u[p+1],4,-1530992060),d=S(d,n,i,t,u[p+4],11,1272893353),t=S(t,d,n,i,u[p+7],16,-155497632),i=S(i,t,d,n,u[p+10],23,-1094730640),n=S(n,i,t,d,u[p+13],4,681279174),d=S(d,n,i,t,u[p+0],11,-358537222),t=S(t,d,n,i,u[p+3],16,-722521979),i=S(i,t,d,n,u[p+6],23,76029189),n=S(n,i,t,d,u[p+9],4,-640364487),d=S(d,n,i,t,u[p+12],11,-421815835),t=S(t,d,n,i,u[p+15],16,530742520),n=w(n,i=S(i,t,d,n,u[p+2],23,-995338651),t,d,u[p+0],6,-198630844),d=w(d,n,i,t,u[p+7],10,1126891415),t=w(t,d,n,i,u[p+14],15,-1416354905),i=w(i,t,d,n,u[p+5],21,-57434055),n=w(n,i,t,d,u[p+12],6,1700485571),d=w(d,n,i,t,u[p+3],10,-1894986606),t=w(t,d,n,i,u[p+10],15,-1051523),i=w(i,t,d,n,u[p+1],21,-2054922799),n=w(n,i,t,d,u[p+8],6,1873313359),d=w(d,n,i,t,u[p+15],10,-30611744),t=w(t,d,n,i,u[p+6],15,-1560198380),i=w(i,t,d,n,u[p+13],21,1309151649),n=w(n,i,t,d,u[p+4],6,-145523070),d=w(d,n,i,t,u[p+11],10,-1120210379),t=w(t,d,n,i,u[p+2],15,718787259),i=w(i,t,d,n,u[p+9],21,-343485551),n=P(n,j),i=P(i,U),t=P(t,M),d=P(d,_)}return Array(n,i,t,d)}function g(u,m,n,i,t,d){return P((m=P(P(m,u),P(i,d)))<<t|m>>>32-t,n)}function k(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 S(u,m,n,i,t,d,p){return g(m^n^i,u,m,t,d,p)}function w(u,m,n,i,t,d,p){return g(n^(m|~i),u,m,t,d,p)}function P(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,E,T,$,B,L,D,O,W){l.exports=function(y){for(var F,g=new Array(y),k=0;k<y;k++)!(3&k)&&(F=4294967296*Math.random()),g[k]=F>>>((3&k)<<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,E,T,$,B,L,D,O,W){var y=o("./helpers");function F(x,S){x[S>>5]|=128<<24-S%32,x[15+(S+64>>9<<4)]=S;for(var w,P,u,m=Array(80),n=1732584193,i=-271733879,t=-1732584194,d=271733878,p=-1009589776,j=0;j<x.length;j+=16){for(var U=n,M=i,_=t,N=d,J=p,V=0;V<80;V++){m[V]=V<16?x[j+V]:k(m[V-3]^m[V-8]^m[V-14]^m[V-16],1);var R=g(g(k(n,5),(R=i,P=t,u=d,(w=V)<20?R&P|~R&u:!(w<40)&&w<60?R&P|R&u|P&u:R^P^u)),g(g(p,m[V]),(w=V)<20?1518500249:w<40?1859775393:w<60?-1894007588:-899497514)),p=d,d=t,t=k(i,30),i=n,n=R}n=g(n,U),i=g(i,M),t=g(t,_),d=g(d,N),p=g(p,J)}return Array(n,i,t,d,p)}function g(x,S){var w=(65535&x)+(65535&S);return(x>>16)+(S>>16)+(w>>16)<<16|65535&w}function k(x,S){return x<<S|x>>>32-S}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,E,T,$,B,L,D,O,W){function y(S,w){var P=(65535&S)+(65535&w);return(S>>16)+(w>>16)+(P>>16)<<16|65535&P}function F(S,w){var P,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);S[w>>5]|=128<<24-w%32,S[15+(w+64>>9<<4)]=w;for(var i,t,d=0;d<S.length;d+=16){for(var p=m[0],j=m[1],U=m[2],M=m[3],_=m[4],N=m[5],J=m[6],V=m[7],R=0;R<64;R++)n[R]=R<16?S[R+d]:y(y(y((t=n[R-2],k(t,17)^k(t,19)^x(t,10)),n[R-7]),(t=n[R-15],k(t,7)^k(t,18)^x(t,3))),n[R-16]),P=y(y(y(y(V,k(t=_,6)^k(t,11)^k(t,25)),_&N^~_&J),u[R]),n[R]),i=y(k(i=p,2)^k(i,13)^k(i,22),p&j^p&U^j&U),V=J,J=N,N=_,_=y(M,P),M=U,U=j,j=p,p=y(P,i);m[0]=y(p,m[0]),m[1]=y(j,m[1]),m[2]=y(U,m[2]),m[3]=y(M,m[3]),m[4]=y(_,m[4]),m[5]=y(N,m[5]),m[6]=y(J,m[6]),m[7]=y(V,m[7])}return m}var g=o("./helpers"),k=function(S,w){return S>>>w|S<<32-w},x=function(S,w){return S>>>w};l.exports=function(S){return g.hash(S,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,E,T,$,B,L,D,O,W){f.read=function(y,F,g,k,d){var S,w,P=8*d-k-1,u=(1<<P)-1,m=u>>1,n=-7,i=g?d-1:0,t=g?-1:1,d=y[F+i];for(i+=t,S=d&(1<<-n)-1,d>>=-n,n+=P;0<n;S=256*S+y[F+i],i+=t,n-=8);for(w=S&(1<<-n)-1,S>>=-n,n+=k;0<n;w=256*w+y[F+i],i+=t,n-=8);if(S===0)S=1-m;else{if(S===u)return w?NaN:1/0*(d?-1:1);w+=Math.pow(2,k),S-=m}return(d?-1:1)*w*Math.pow(2,S-k)},f.write=function(y,F,g,k,x,p){var w,P,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=k?0:p-1,d=k?1:-1,p=F<0||F===0&&1/F<0?1:0;for(F=Math.abs(F),isNaN(F)||F===1/0?(P=isNaN(F)?1:0,w=m):(w=Math.floor(Math.log(F)/Math.LN2),F*(k=Math.pow(2,-w))<1&&(w--,k*=2),2<=(F+=1<=w+n?i/k:i*Math.pow(2,1-n))*k&&(w++,k/=2),m<=w+n?(P=0,w=m):1<=w+n?(P=(F*k-1)*Math.pow(2,x),w+=n):(P=F*Math.pow(2,n-1)*Math.pow(2,x),w=0));8<=x;y[g+t]=255&P,t+=d,P/=256,x-=8);for(w=w<<x|P,u+=x;0<u;y[g+t]=255&w,t+=d,w/=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,E,T,$,B,L,D,O,W){var y,F,g;function k(){}(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 S=x.source;S!==window&&S!==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=k,h.addListener=k,h.once=k,h.off=k,h.removeListener=k,h.removeAllListeners=k,h.emit=k,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 Lo=Fe.exports;const ke=Po(Lo);function Y(a){return a!=null&&typeof a=="object"&&a["@@functional/placeholder"]===!0}function ie(a){return function s(o){return arguments.length===0||Y(o)?s:a.apply(this,arguments)}}function oe(a){return function s(o,l){switch(arguments.length){case 0:return s;case 1:return Y(o)?s:ie(function(f){return a(o,f)});default:return Y(o)&&Y(l)?s:Y(o)?ie(function(f){return a(f,l)}):Y(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 Y(o)?s:oe(function(h,E){return a(o,h,E)});case 2:return Y(o)&&Y(l)?s:Y(o)?oe(function(h,E){return a(h,l,E)}):Y(l)?oe(function(h,E){return a(o,h,E)}):ie(function(h){return a(o,l,h)});default:return Y(o)&&Y(l)&&Y(f)?s:Y(o)&&Y(l)?oe(function(h,E){return a(h,E,f)}):Y(o)&&Y(f)?oe(function(h,E){return a(h,l,E)}):Y(l)&&Y(f)?oe(function(h,E){return a(o,h,E)}):Y(o)?ie(function(h){return a(h,l,f)}):Y(l)?ie(function(h){return a(o,h,f)}):Y(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 Se(a){return Object.prototype.toString.call(a)==="[object Object]"}var Uo=_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}),jo=_e(function a(s,o,l){return Uo(function(f,h,E){return Se(h)&&Se(E)?a(s,h,E):s(f,h,E)},o,l)}),Mo=oe(function(s,o){return jo(function(l,f,h){return h},s,o)});let Do={headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"include"};async function Wo(a,s={}){const{baseURL:o="",...l}=s;return fetch(`${o}${a}`,Mo(Do,l)).then(f=>{if(!f.ok)throw f;return f})}/*!
|
|
10
10
|
* Compressor.js v1.2.1
|
|
11
11
|
* https://fengyuanchen.github.io/compressorjs
|
|
12
12
|
*
|
|
@@ -14,4 +14,4 @@ list should be an Array.`),e.length===0)return new g(0);if(e.length===1)return e
|
|
|
14
14
|
* Released under the MIT license
|
|
15
15
|
*
|
|
16
16
|
* Date: 2023-02-28T14:09:41.732Z
|
|
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){Fo(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 Bo(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,Le(l.key),l)}}function To(a,s,o){return s&&Ee(a.prototype,s),o&&Ee(a,o),Object.defineProperty(a,"prototype",{writable:!1}),a}function Fo(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 l in o)Object.prototype.hasOwnProperty.call(o,l)&&(a[l]=o[l])}return a},pe.apply(this,arguments)}function _o(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 Le(a){var s=_o(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,I=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,T=(l||h)&&s.atob&&s.ArrayBuffer&&s.Uint8Array&&function($){var B,U,D,O,W,y,F,g,k;if(B=$.match(I),!B)throw new Error("invalid data URI");for(U=B[2]?B[1]:"text/plain"+(B[3]||";charset=US-ASCII"),D=!!B[4],O=$.slice(B[0].length),D?W=atob(O):W=decodeURIComponent(O),y=new ArrayBuffer(W.length),F=new Uint8Array(y),g=0;g<W.length;g+=1)F[g]=W.charCodeAt(g);return l?new Blob([f?F:y],{type:U}):(k=new h,k.append(y),k.getBlob(U))};s.HTMLCanvasElement&&!o.toBlob&&(o.mozGetAsFile?o.toBlob=function($,B,U){var D=this;setTimeout(function(){U&&o.toDataURL&&T?$(T(D.toDataURL(B,U))):$(D.mozGetAsFile("blob",B))})}:o.toDataURL&&T&&(o.msToBlob?o.toBlob=function($,B,U){var D=this;setTimeout(function(){(B&&B!=="image/png"||U)&&o.toDataURL&&T?$(T(D.toDataURL(B,U))):$(D.msToBlob(B))})}:o.toBlob=function($,B,U){var D=this;setTimeout(function(){$(T(D.toDataURL(B,U)))})})),a.exports?a.exports=T:s.dataURLtoBlob=T}(window)})(Ue);var Ie=Ue.exports,Lo=function(s){return typeof Blob>"u"?!1:s instanceof Blob||Object.prototype.toString.call(s)==="[object Blob]"},$e={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},Uo=typeof window<"u"&&typeof window.document<"u",te=Uo?window:{},me=function(s){return s>0&&s<1/0},jo=Array.prototype.slice;function we(a){return Array.from?Array.from(a):jo.call(a)}var Po=/^image\/.+$/;function be(a){return Po.test(a)}function Mo(a){var s=be(a)?a.substr(6):"";return s==="jpeg"&&(s="jpg"),".".concat(s)}var je=String.fromCharCode;function Do(a,s,o){var l="",f;for(o+=s,f=s;f<o;f+=1)l+=je(a.getUint8(f));return l}var Wo=te.btoa;function xe(a,s){for(var o=[],l=8192,f=new Uint8Array(a);f.length>0;)o.push(je.apply(null,we(f.subarray(0,l)))),f=f.subarray(l);return"data:".concat(s,";base64,").concat(Wo(o.join("")))}function Co(a){var s=new DataView(a),o;try{var l,f,h;if(s.getUint8(0)===255&&s.getUint8(1)===216)for(var I=s.byteLength,T=2;T+1<I;){if(s.getUint8(T)===255&&s.getUint8(T+1)===225){f=T;break}T+=1}if(f){var $=f+4,B=f+10;if(Do(s,$,4)==="Exif"){var U=s.getUint16(B);if(l=U===18761,(l||U===19789)&&s.getUint16(B+2,l)===42){var D=s.getUint32(B+4,l);D>=8&&(h=B+D)}}}if(h){var O=s.getUint16(h,l),W,y;for(y=0;y<O;y+=1)if(W=h+y*12+2,s.getUint16(W,l)===274){W+=8,o=s.getUint16(W,l),s.setUint16(W,1,l);break}}}catch{o=1}return o}function Oo(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 No=/\.\d*(?:0|9){12}\d*$/;function Be(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return No.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),I=me(o);if(h&&I){var T=o*s;(f==="contain"||f==="none")&&T>l||f==="cover"&&T<l?o=l/s:l=o*s}else h?o=l/s:I&&(l=o*s);return{width:l,height:o}}function Ro(a){for(var s=we(new Uint8Array(a)),o=s.length,l=[],f=0;f+3<o;){var h=s[f],I=s[f+1];if(h===255&&I===218)break;if(h===255&&I===216)f+=2;else{var T=s[f+2]*256+s[f+3],$=f+T+2,B=s.slice(f,$);l.push(B),f=$}}return l.reduce(function(U,D){return D[0]===255&&D[1]===225?U.concat(D):U},[])}function Ho(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 zo=te.ArrayBuffer,ye=te.FileReader,re=te.URL||te.webkitURL,Yo=/\.\w+$/,Vo=te.Compressor,Go=function(){function a(s,o){Bo(this,a),this.file=s,this.exif=[],this.image=new Image,this.options=ge(ge({},$e),o),this.aborted=!1,this.result=null,this.init()}return To(a,[{key:"init",value:function(){var o=this,l=this.file,f=this.options;if(!Lo(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}zo||(f.checkOrientation=!1,f.retainExif=!1);var I=h==="image/jpeg",T=I&&f.checkOrientation,$=I&&f.retainExif;if(re&&!T&&!$)this.load({url:re.createObjectURL(l)});else{var B=new ye;this.reader=B,B.onload=function(U){var D=U.target,O=D.result,W={},y=1;T&&(y=Co(O),y>1&&pe(W,Oo(y))),$&&(o.exif=Ro(O)),T||$?!re||y>1?W.url=xe(O,h):W.url=re.createObjectURL(l):W.url=O,o.load(W)},B.onabort=function(){o.fail(new Error("Aborted to read the image with FileReader."))},B.onerror=function(){o.fail(new Error("Failed to read the image with FileReader."))},B.onloadend=function(){o.reader=null},T||$?B.readAsArrayBuffer(l):B.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,I=o.rotate,T=I===void 0?0:I,$=o.scaleX,B=$===void 0?1:$,U=o.scaleY,D=U===void 0?1:U,O=this.file,W=this.image,y=this.options,F=document.createElement("canvas"),g=F.getContext("2d"),k=Math.abs(T)%180===90,x=(y.resize==="contain"||y.resize==="cover")&&me(y.width)&&me(y.height),S=Math.max(y.maxWidth,0)||1/0,v=Math.max(y.maxHeight,0)||1/0,L=Math.max(y.minWidth,0)||0,u=Math.max(y.minHeight,0)||0,m=f/h,n=y.width,i=y.height;if(k){var t=[v,S];S=t[0],v=t[1];var d=[u,L];L=d[0],u=d[1];var p=[i,n];n=p[0],i=p[1]}x&&(m=n/i);var P=ue({aspectRatio:m,width:S,height:v},"contain");S=P.width,v=P.height;var j=ue({aspectRatio:m,width:L,height:u},"cover");if(L=j.width,u=j.height,x){var M=ue({aspectRatio:m,width:n,height:i},y.resize);n=M.width,i=M.height}else{var _=ue({aspectRatio:m,width:n,height:i}),N=_.width;n=N===void 0?f:N;var q=_.height;i=q===void 0?h:q}n=Math.floor(Be(Math.min(Math.max(n,L),S))),i=Math.floor(Be(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),k){var e=[i,n];n=e[0],i=e[1]}F.width=n,F.height=i,be(y.mimeType)||(y.mimeType=O.type);var r="transparent";O.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(T*Math.PI/180),g.scale(B,D),g.drawImage.apply(g,[W].concat(ee)),g.restore(),y.drew&&y.drew.call(this,g,F),!this.aborted)){var b=function(A){if(!l.aborted){var C=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 C(Ie(xe(Ho(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 C(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,I=this.file,T=this.image,$=this.options;if(re&&T.src.indexOf("blob:")===0&&re.revokeObjectURL(T.src),h)if($.strict&&!$.retainExif&&h.size>I.size&&$.mimeType===I.type&&!($.width>l||$.height>f||$.minWidth>l||$.minHeight>f||$.maxWidth<l||$.maxHeight<f))h=I;else{var B=new Date;h.lastModified=B.getTime(),h.lastModifiedDate=B,h.name=I.name,h.name&&h.type!==I.type&&(h.name=h.name.replace(Yo,Mo(h.type)))}else h=I;this.result=h,$.success&&$.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=Vo,a}},{key:"setDefaults",value:function(o){pe($e,o)}}]),a}();const Jo={default:{maxWidth:1920},logo:{maxWidth:1e3,quality:.9},gallery:{maxWidth:2560}},Pe=a=>a instanceof Array?a:[a];function qo(a,s){return new Promise((o,l)=>{if(!s)return o(a);new Go(a,{success:f=>o(f),error:f=>l(f),...s})})}function Ko(a={}){let{acl:s="public-read",url:o,...l}=a;return o||(o="/api/file/sign?acl="+s),xo(o,l).then(f=>f.json())}function Xo({file:a,url:s,onProgress:o}){return new Promise((l,f)=>{let h=new URLSearchParams(s),I=new XMLHttpRequest;I.upload.addEventListener("progress",o),I.addEventListener("error",f),I.addEventListener("load",function(){l(this)}),I.open("PUT",s),h.get("x-amz-acl")&&I.setRequestHeader("x-amz-acl",h.get("x-amz-acl")),I.send(a)})}function Qo(a){return new Promise(s=>{let o=new FileReader;o.onload=function(l){s(l.target.result)},o.readAsDataURL(a)})}function Zo(a){return a.type.startsWith("image/")?Qo(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 ei(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(Pe).then(l=>l.map(({data:f,name:h,type:I})=>new File([new Uint8Array(f.data)],h,{type:I})));default:return a}}async function ti(a,s,o){let{compression:l,transform:f=D=>D,rename:h,convert:I,svgConvertEndpoint:T="/api/file/transform/png",...$}=o;typeof l=="string"&&(l=Jo[l]),a.type==="image/svg+xml"&&l&&T&&(I=T);const B=await ei(a,I).then(Pe),U=await Promise.all(B.map(async D=>{let[O,W]=await Promise.all([Ko($||{}),l?qo(D,l):Promise.resolve(D)]),y;try{y=await Zo(W)}catch{}return await Xo({file:W,url:O.uploadUrl,onProgress(F){s(Math.floor(F.loaded/F.total*100))}}),f({name:h||W.name,size:W.size,url:O.url,type:W.type,dimensions:y})}));return U.length===1?U[0]:U}function ai(a,s,o={}){let{group:l=1}=o,f=a.match(s);if(f)return f[l]}function ni(a){return new Promise((s,o)=>{setTimeout(s,a)})}function si(a){return a==="false"?!1:a==="true"?!0:a}async function li(a,s={}){let{interval:o=200,limit:l=50}=s,f=0,h;for(;f<l&&(f++,!(h=a()));)await ni(o);if(f>=l)throw new Error("Could not resolve");return h}function ci(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 ui(a,s=1,o={}){const l={en:St,nb:cn,fr:qn,da:jr,sv:vo},f=document.documentElement.getAttribute("lang")||"nb";let h=l[f]?.[a]||a;if(h?.includes("|")&&(h=h.split("|")[s-1]),o instanceof Array){const I=/\{.*?\}/;h.match(I).forEach(($,B)=>{h=h.replace($,o[B])})}return h}function fi(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 ri(a){return Object.prototype.toString.call(a)==="[object Object]"}function Me(a,s,o={}){if(!s||!ri(s))return a;let{ignoreMissing:l=!1}=o,f={},h=(T,$)=>T.length===$.length&&ke(T.slice())===ke($.slice()),I=function(T,$,B){let U=Object.prototype.toString.call(T),D=Object.prototype.toString.call($);if(U!==D){f[B]=$;return}if(U==="[object Object]"){let O=Me(T,$,o);Object.keys(O).length&&(f[B]=O);return}if(U==="[object Array]"){h(T,$)||(f[B]=$);return}if(U==="[object Function]"){T.toString()!==$.toString()&&(f[B]=$);return}T!==$&&(f[B]=$)};for(let T in a)Object.hasOwn(a,T)&&I(a[T],s[T],T);if(!l)for(let T in s)Object.hasOwn(s,T)&&!(T in a)&&(f[T]=s[T]);return f}function di(...a){return!!Object.keys(Me(...a)).length}const hi=function(){return JSON.parse(JSON.stringify.apply(this,arguments))};function gi(a,s,o){return ti(a,s,o)}function pi(a,s=document.documentElement.getAttribute("lang")||"nb"){return!a&&a!==0?"-":a.toLocaleString(s,{style:"currency",currency:"NOK",minimumFractionDigits:0})}const oi=a=>{if(typeof a!="string")return a;try{return JSON.parse(a)}catch{return{}}},mi=(a={},s={})=>o=>oi(a)[o]||s[o]||o,Te=(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}},yi=(a={})=>{const{locale:s,currency:o}=a,l=/(.{1})\d{3}(\D)\d$/,f=Te("number",{locale:s})(1000.1);let[h,I,T]=l.exec(f);const $=Te("currency",{locale:s,currency:o})(1000.1),B=$.replace(/[\d\s\,\.]/g,""),U={mask:Number,thousandsSeparator:I};return $.match(/^\d/)?{suffix:B,mask:U}:{symbol:B,mask:U}};function bi(a,s=300){let o;return(...l)=>{clearTimeout(o),o=setTimeout(()=>{a.apply(this,l)},s)}}function wi(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{hi as C,bi as D,ai as E,ci as L,fi as P,wi as S,ui as T,ti as V,li as W,yi as a,mi as b,de as c,ii as d,pi as e,Te as f,ko as g,di as h,Me as i,si as t,gi as u};
|
|
17
|
+
*/function Ie(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?Ie(Object(o),!0).forEach(function(l){No(a,l,o[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):Ie(Object(o)).forEach(function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(o,l))})}return a}function Co(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function Ae(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,Pe(l.key),l)}}function Oo(a,s,o){return s&&Ae(a.prototype,s),o&&Ae(a,o),Object.defineProperty(a,"prototype",{writable:!1}),a}function No(a,s,o){return s=Pe(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 Ro(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 Pe(a){var s=Ro(a,"string");return typeof s=="symbol"?s:String(s)}var Le={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,E=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,T=(l||h)&&s.atob&&s.ArrayBuffer&&s.Uint8Array&&function($){var B,L,D,O,W,y,F,g,k;if(B=$.match(E),!B)throw new Error("invalid data URI");for(L=B[2]?B[1]:"text/plain"+(B[3]||";charset=US-ASCII"),D=!!B[4],O=$.slice(B[0].length),D?W=atob(O):W=decodeURIComponent(O),y=new ArrayBuffer(W.length),F=new Uint8Array(y),g=0;g<W.length;g+=1)F[g]=W.charCodeAt(g);return l?new Blob([f?F:y],{type:L}):(k=new h,k.append(y),k.getBlob(L))};s.HTMLCanvasElement&&!o.toBlob&&(o.mozGetAsFile?o.toBlob=function($,B,L){var D=this;setTimeout(function(){L&&o.toDataURL&&T?$(T(D.toDataURL(B,L))):$(D.mozGetAsFile("blob",B))})}:o.toDataURL&&T&&(o.msToBlob?o.toBlob=function($,B,L){var D=this;setTimeout(function(){(B&&B!=="image/png"||L)&&o.toDataURL&&T?$(T(D.toDataURL(B,L))):$(D.msToBlob(B))})}:o.toBlob=function($,B,L){var D=this;setTimeout(function(){$(T(D.toDataURL(B,L)))})})),a.exports?a.exports=T:s.dataURLtoBlob=T}(window)})(Le);var Ee=Le.exports,Ho=function(s){return typeof Blob>"u"?!1:s instanceof Blob||Object.prototype.toString.call(s)==="[object Blob]"},$e={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},zo=typeof window<"u"&&typeof window.document<"u",te=zo?window:{},me=function(s){return s>0&&s<1/0},Vo=Array.prototype.slice;function ve(a){return Array.from?Array.from(a):Vo.call(a)}var Yo=/^image\/.+$/;function be(a){return Yo.test(a)}function Go(a){var s=be(a)?a.substr(6):"";return s==="jpeg"&&(s="jpg"),".".concat(s)}var Ue=String.fromCharCode;function qo(a,s,o){var l="",f;for(o+=s,f=s;f<o;f+=1)l+=Ue(a.getUint8(f));return l}var Jo=te.btoa;function xe(a,s){for(var o=[],l=8192,f=new Uint8Array(a);f.length>0;)o.push(Ue.apply(null,ve(f.subarray(0,l)))),f=f.subarray(l);return"data:".concat(s,";base64,").concat(Jo(o.join("")))}function Ko(a){var s=new DataView(a),o;try{var l,f,h;if(s.getUint8(0)===255&&s.getUint8(1)===216)for(var E=s.byteLength,T=2;T+1<E;){if(s.getUint8(T)===255&&s.getUint8(T+1)===225){f=T;break}T+=1}if(f){var $=f+4,B=f+10;if(qo(s,$,4)==="Exif"){var L=s.getUint16(B);if(l=L===18761,(l||L===19789)&&s.getUint16(B+2,l)===42){var D=s.getUint32(B+4,l);D>=8&&(h=B+D)}}}if(h){var O=s.getUint16(h,l),W,y;for(y=0;y<O;y+=1)if(W=h+y*12+2,s.getUint16(W,l)===274){W+=8,o=s.getUint16(W,l),s.setUint16(W,1,l);break}}}catch{o=1}return o}function Xo(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 Qo=/\.\d*(?:0|9){12}\d*$/;function Be(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Qo.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),E=me(o);if(h&&E){var T=o*s;(f==="contain"||f==="none")&&T>l||f==="cover"&&T<l?o=l/s:l=o*s}else h?o=l/s:E&&(l=o*s);return{width:l,height:o}}function Zo(a){for(var s=ve(new Uint8Array(a)),o=s.length,l=[],f=0;f+3<o;){var h=s[f],E=s[f+1];if(h===255&&E===218)break;if(h===255&&E===216)f+=2;else{var T=s[f+2]*256+s[f+3],$=f+T+2,B=s.slice(f,$);l.push(B),f=$}}return l.reduce(function(L,D){return D[0]===255&&D[1]===225?L.concat(D):L},[])}function ei(a,s){var o=ve(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 ti=te.ArrayBuffer,ye=te.FileReader,re=te.URL||te.webkitURL,ni=/\.\w+$/,ri=te.Compressor,oi=function(){function a(s,o){Co(this,a),this.file=s,this.exif=[],this.image=new Image,this.options=ge(ge({},$e),o),this.aborted=!1,this.result=null,this.init()}return Oo(a,[{key:"init",value:function(){var o=this,l=this.file,f=this.options;if(!Ho(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}ti||(f.checkOrientation=!1,f.retainExif=!1);var E=h==="image/jpeg",T=E&&f.checkOrientation,$=E&&f.retainExif;if(re&&!T&&!$)this.load({url:re.createObjectURL(l)});else{var B=new ye;this.reader=B,B.onload=function(L){var D=L.target,O=D.result,W={},y=1;T&&(y=Ko(O),y>1&&pe(W,Xo(y))),$&&(o.exif=Zo(O)),T||$?!re||y>1?W.url=xe(O,h):W.url=re.createObjectURL(l):W.url=O,o.load(W)},B.onabort=function(){o.fail(new Error("Aborted to read the image with FileReader."))},B.onerror=function(){o.fail(new Error("Failed to read the image with FileReader."))},B.onloadend=function(){o.reader=null},T||$?B.readAsArrayBuffer(l):B.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,E=o.rotate,T=E===void 0?0:E,$=o.scaleX,B=$===void 0?1:$,L=o.scaleY,D=L===void 0?1:L,O=this.file,W=this.image,y=this.options,F=document.createElement("canvas"),g=F.getContext("2d"),k=Math.abs(T)%180===90,x=(y.resize==="contain"||y.resize==="cover")&&me(y.width)&&me(y.height),S=Math.max(y.maxWidth,0)||1/0,w=Math.max(y.maxHeight,0)||1/0,P=Math.max(y.minWidth,0)||0,u=Math.max(y.minHeight,0)||0,m=f/h,n=y.width,i=y.height;if(k){var t=[w,S];S=t[0],w=t[1];var d=[u,P];P=d[0],u=d[1];var p=[i,n];n=p[0],i=p[1]}x&&(m=n/i);var j=ue({aspectRatio:m,width:S,height:w},"contain");S=j.width,w=j.height;var U=ue({aspectRatio:m,width:P,height:u},"cover");if(P=U.width,u=U.height,x){var M=ue({aspectRatio:m,width:n,height:i},y.resize);n=M.width,i=M.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(Be(Math.min(Math.max(n,P),S))),i=Math.floor(Be(Math.min(Math.max(i,u),w)));var V=-n/2,R=-i/2,Z=n,fe=i,ee=[];if(x){var ce=0,ae=0,ne=f,se=h,A=ue({aspectRatio:m,width:f,height:h},{contain:"cover",cover:"contain"}[y.resize]);ne=A.width,se=A.height,ce=(f-ne)/2,ae=(h-se)/2,ee.push(ce,ae,ne,se)}if(ee.push(V,R,Z,fe),k){var e=[i,n];n=e[0],i=e[1]}F.width=n,F.height=i,be(y.mimeType)||(y.mimeType=O.type);var r="transparent";O.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(T*Math.PI/180),g.scale(B,D),g.drawImage.apply(g,[W].concat(ee)),g.restore(),y.drew&&y.drew.call(this,g,F),!this.aborted)){var b=function(I){if(!l.aborted){var C=function(G){return l.done({naturalWidth:f,naturalHeight:h,result:G})};if(I&&c&&y.retainExif&&l.exif&&l.exif.length>0){var H=function(G){return C(Ee(xe(ei(G,l.exif),y.mimeType)))};if(I.arrayBuffer)I.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(I)}}else C(I)}};F.toBlob?F.toBlob(b,y.mimeType,y.quality):b(Ee(F.toDataURL(y.mimeType,y.quality)))}}},{key:"done",value:function(o){var l=o.naturalWidth,f=o.naturalHeight,h=o.result,E=this.file,T=this.image,$=this.options;if(re&&T.src.indexOf("blob:")===0&&re.revokeObjectURL(T.src),h)if($.strict&&!$.retainExif&&h.size>E.size&&$.mimeType===E.type&&!($.width>l||$.height>f||$.minWidth>l||$.minHeight>f||$.maxWidth<l||$.maxHeight<f))h=E;else{var B=new Date;h.lastModified=B.getTime(),h.lastModifiedDate=B,h.name=E.name,h.name&&h.type!==E.type&&(h.name=h.name.replace(ni,Go(h.type)))}else h=E;this.result=h,$.success&&$.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=ri,a}},{key:"setDefaults",value:function(o){pe($e,o)}}]),a}();const ii={default:{maxWidth:1920},logo:{maxWidth:1e3,quality:.9},gallery:{maxWidth:2560}},je=a=>a instanceof Array?a:[a];function ai(a,s){return new Promise((o,l)=>{if(!s)return o(a);new oi(a,{success:f=>o(f),error:f=>l(f),...s})})}function si(a={}){let{acl:s="public-read",url:o,...l}=a;return o||(o="/api/file/sign?acl="+s),Wo(o,l).then(f=>f.json())}function li({file:a,url:s,onProgress:o}){return new Promise((l,f)=>{let h=new URLSearchParams(s),E=new XMLHttpRequest;E.upload.addEventListener("progress",o),E.addEventListener("error",f),E.addEventListener("load",function(){l(this)}),E.open("PUT",s),h.get("x-amz-acl")&&E.setRequestHeader("x-amz-acl",h.get("x-amz-acl")),E.send(a)})}function ci(a){return new Promise(s=>{let o=new FileReader;o.onload=function(l){s(l.target.result)},o.readAsDataURL(a)})}function ui(a){return a.type.startsWith("image/")?ci(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 fi(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(je).then(l=>l.map(({data:f,name:h,type:E})=>new File([new Uint8Array(f.data)],h,{type:E})));default:return a}}async function di(a,s,o){let{compression:l,transform:f=D=>D,rename:h,convert:E,svgConvertEndpoint:T="/api/file/transform/png",...$}=o;typeof l=="string"&&(l=ii[l]),a.type==="image/svg+xml"&&l&&T&&(E=T);const B=await fi(a,E).then(je),L=await Promise.all(B.map(async D=>{let[O,W]=await Promise.all([si($||{}),l?ai(D,l):Promise.resolve(D)]),y;try{y=await ui(W)}catch{}return await li({file:W,url:O.uploadUrl,onProgress(F){s(Math.floor(F.loaded/F.total*100))}}),f({name:h||W.name,size:W.size,url:O.url,type:W.type,dimensions:y})}));return L.length===1?L[0]:L}function yi(a,s,o={}){let{group:l=1}=o,f=a.match(s);if(f)return f[l]}function hi(a){return new Promise((s,o)=>{setTimeout(s,a)})}function bi(a){return a==="false"?!1:a==="true"?!0:a}async function vi(a,s={}){let{interval:o=200,limit:l=50}=s,f=0,h;for(;f<l&&(f++,!(h=a()));)await hi(o);if(f>=l)throw new Error("Could not resolve");return h}function wi(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 ki(a,s=1,o={}){const l={en:At,nb:hn,fr:tr,da:Rr,sv:_o},f=document.documentElement.getAttribute("lang")||"nb";let h=l[f]?.[a]||a;if(h?.includes("|")&&(h=h.split("|")[s-1]),o instanceof Array){const E=/\{.*?\}/;h.match(E)?.forEach(($,B)=>{h=h.replace($,o[B])})}return h}function Si(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 gi(a){return Object.prototype.toString.call(a)==="[object Object]"}function Me(a,s,o={}){if(!s||!gi(s))return a;let{ignoreMissing:l=!1}=o,f={},h=(T,$)=>T.length===$.length&&ke(T.slice())===ke($.slice()),E=function(T,$,B){let L=Object.prototype.toString.call(T),D=Object.prototype.toString.call($);if(L!==D){f[B]=$;return}if(L==="[object Object]"){let O=Me(T,$,o);Object.keys(O).length&&(f[B]=O);return}if(L==="[object Array]"){h(T,$)||(f[B]=$);return}if(L==="[object Function]"){T.toString()!==$.toString()&&(f[B]=$);return}T!==$&&(f[B]=$)};for(let T in a)Object.hasOwn(a,T)&&E(a[T],s[T],T);if(!l)for(let T in s)Object.hasOwn(s,T)&&!(T in a)&&(f[T]=s[T]);return f}function Ii(...a){return!!Object.keys(Me(...a)).length}const Ai=function(){return JSON.parse(JSON.stringify.apply(this,arguments))};function Ei(a,s,o){return di(a,s,o)}function $i(a,s=document.documentElement.getAttribute("lang")||"nb"){return!a&&a!==0?"-":a.toLocaleString(s,{style:"currency",currency:"NOK",minimumFractionDigits:0})}const pi=a=>{if(typeof a!="string")return a;try{return JSON.parse(a)}catch{return{}}},xi=(a={},s={})=>o=>pi(a)[o]||s[o]||o,Te=(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}},Bi=(a={})=>{const{locale:s,currency:o}=a,l=/(.{1})\d{3}(\D)\d$/,f=Te("number",{locale:s})(1000.1);let[h,E,T]=l.exec(f);const $=Te("currency",{locale:s,currency:o})(1000.1),B=$.replace(/[\d\s\,\.]/g,""),L={mask:Number,thousandsSeparator:E};return $.match(/^\d/)?{suffix:B,mask:L}:{symbol:B,mask:L}};function Ti(a,s=300){let o;return(...l)=>{clearTimeout(o),o=setTimeout(()=>{a.apply(this,l)},s)}}function Fi(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{Ai as C,Ti as D,yi as E,wi as L,Si as P,Fi as S,ki as T,di as V,vi as W,Bi as a,xi as b,de as c,mi as d,$i as e,Te as f,Po as g,Ii as h,Me as i,bi as t,Ei as u};
|