@kvass/widgets 1.9.50 → 1.9.52
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/Selector.ce.js +1 -1
- package/dist/Vimeo.ce.js +1 -1
- package/dist/_plugin-vue_export-helper.js +8 -8
- package/dist/chart-builder.js +1 -1
- package/dist/contact.js +2 -2
- package/dist/directories.js +1 -1
- package/dist/finn.js +2 -2
- package/dist/flatfinder.js +44 -44
- package/dist/font-selector.js +1 -1
- package/dist/google-search-console.js +1 -1
- package/dist/gsc-verification-key-form.js +1 -1
- package/dist/icon-selector.js +1 -1
- package/dist/img-comparison-slider.js +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.es2.js +22 -22
- package/dist/index.js +7 -7
- package/dist/index2.js +1 -1
- package/dist/index3.js +2 -2
- package/dist/knips.js +2 -2
- package/dist/kvass-form.js +1 -1
- package/dist/kvass-storyfly.js +1 -1
- package/dist/loan-calculator.js +1 -1
- package/dist/map.js +1 -1
- package/dist/nabolagsprofil.js +1 -1
- package/dist/project-portal.js +1 -1
- package/dist/residential-expenses.js +1 -1
- package/dist/style.js +1 -1
- package/dist/table-builder.js +1 -1
- package/dist/visualization-order-form.js +5 -5
- package/dist/youtube.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const De="Cancel",We="Confirm",Ce="
|
|
2
|
-
Font associated with selected theme template`,
|
|
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`,Ye="Body font",Ve="Heading font",Ge="Preview",Je="Preview not available",qe="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="Link | Links",it="Load all elements",at="Max size",st="Name",lt="I wish to be contacted with the consent of {link}",ct="Phone",ut="You have not entered a valid phone number",ft="Main title",dt="Privacy policy",ht="Secondary title",gt="Select",pt="Select icon",mt="Select / search for font",yt="Show all",bt="Show all Google Fonts",wt="Something went wrong",vt="Submit {x}",kt="Upload font",St={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:Ye,fontForHeading:Ve,fontPreview:Ge,fontPreviewDisabled:Je,goBack:qe,highlightedIcons:Ke,icon:Xe,iconSelectWidgetHelpText:Qe,iconsSelectWidgetIconsFound:Ze,iconsSelectWidgetNoIconsMatchYourSearch:et,leadMessage:tt,leadMessageSent:nt,leadPrivacy:rt,link:ot,loadAllElements:it,maxSize:at,name:st,nuxtLeadPrivacy:lt,phone:ct,phoneValidation:ut,primaryTitle:ft,privacy:dt,secondaryTitle:ht,select:gt,selectIcon:pt,selectOrSearchForFont:mt,showAll:yt,showAllGoogleFonts:bt,somethingWentWrong:wt,submit:vt,uploadFont:kt},At="Avbryt",Et="Bekreft",It="Kopier",$t="E-post",xt="Dra en fil hit eller <b>velg</b> for å laste opp",Bt="filen / filene er for store",Tt="Filopplastning",Ft="Font tilknyttet valgt tema mal",_t="Skrifttype for mengdetekst",Lt="Skrifttype for tittel",Ut="Forhåndsvisning",jt="Forhåndsvisning ikke tilgjengelig",Pt="Gå tilbake",Mt="Fremhevede ikoner",Dt="Ikon | Ikoner",Wt="Søk på engelsk etter ikonet du leter etter. Eks. 'Helicopter'",Ct="treff",Ot="Ingen ikoner passer søket ditt.",Nt="Beskjed",Rt="Takk for din interesse. Du vil snart bli kontaktet.",Ht="Jeg ønsker å bli kontaktet i samtykke med {0}",zt="Lenke | Lenker",Yt="Last inn alle",Vt="Maks størrelse",Gt="Navn",Jt="Jeg ønsker å bli kontaktet i samtykke med {link}",qt="Telefon",Kt="Du har ikke tastet inn et gyldig telefonnummer",Xt="Hovedtittel",Qt="Personvernerklæringen",Zt="Sekundærtittel",en="Velg",tn="Velg ikon",nn="Velg / søk etter font",rn="Vis alle",on="Vis alle Google fonts",an="Noe gikk galt",sn="Send inn {x}",ln="Last opp skrifttype",cn={cancel:At,confirm:Et,copy:It,delete:"Slett",email:$t,"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:xt,fileSizeError:Bt,fileUpload:Tt,fontAssociatedWithSelectedThemeTemplate:Ft,fontForBody:_t,fontForHeading:Lt,fontPreview:Ut,fontPreviewDisabled:jt,goBack:Pt,highlightedIcons:Mt,icon:Dt,iconSelectWidgetHelpText:Wt,iconsSelectWidgetIconsFound:Ct,iconsSelectWidgetNoIconsMatchYourSearch:Ot,leadMessage:Nt,leadMessageSent:Rt,leadPrivacy:Ht,link:zt,loadAllElements:Yt,maxSize:Vt,name:Gt,nuxtLeadPrivacy:Jt,phone:qt,phoneValidation:Kt,primaryTitle:Xt,privacy:Qt,secondaryTitle:Zt,select:en,selectIcon:tn,selectOrSearchForFont:nn,showAll:rn,showAllGoogleFonts:on,somethingWentWrong:an,submit:sn,uploadFont:ln},un="Annuler",fn="Confirmer",dn="Copier",hn="E-mail",gn=`Faites glisser un fichier ici ou
|
|
3
3
|
<b>velg</b> pour télécharger
|
|
4
|
-
`,ln="le fichier / les fichiers sont trop volumineux",cn="Police associée au modèle de thème sélectionné",un="Police pour le texte de contenu",fn="Police pour le titre",dn="Aperçu",hn="Aperçu non disponible",gn="Retourner",pn="Icônes mises en avant",mn="Icône | Icônes",yn="Recherchez en anglais l'icône que vous recherchez. Ex. 'Helicopter'",bn="résultats",wn="Aucune icône ne correspond à votre recherche.",vn="Message",kn="Merci de votre intérêt. Vous serez bientôt contacté.",Sn="Je souhaite être contacté en accord avec {0}",An="Lien | Liens",En="Charger tout",In="Taille max.",xn="Nom",Bn="Je souhaite être contacté en accord avec {link}",$n="Téléphone",Tn="Le numéro de téléphone saisi n’est pas valide",Fn="Titre principal",_n="Déclaration de confidentialité",Ln="Titre secondaire",jn="Choisir",Pn="Sélectionnez l'icône",Un="Choisir / rechercher une police",Mn="Afficher tout",Dn="Afficher toutes les polices Google",Wn="Quelque chose a mal tourné",Cn="Soumettre {x}",On={cancel:rn,confirm:on,delete:"Supprimer",email:an,"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:sn,fileSizeError:ln,fontAssociatedWithSelectedThemeTemplate:cn,fontForBody:un,fontForHeading:fn,fontPreview:dn,fontPreviewDisabled:hn,goBack:gn,highlightedIcons:pn,icon:mn,iconSelectWidgetHelpText:yn,iconsSelectWidgetIconsFound:bn,iconsSelectWidgetNoIconsMatchYourSearch:wn,leadMessage:vn,leadMessageSent:kn,leadPrivacy:Sn,link:An,loadAllElements:En,maxSize:In,name:xn,nuxtLeadPrivacy:Bn,phone:$n,phoneValidation:Tn,primaryTitle:Fn,privacy:_n,secondaryTitle:Ln,select:jn,selectIcon:Pn,selectOrSearchForFont:Un,showAll:Mn,showAllGoogleFonts:Dn,somethingWentWrong:Wn,submit:Cn},Nn="Afbryd",Rn="Bekræft",Hn="E-mail",zn="Træk en fil over eller <b>vælg</b> for at låse op",Yn="filen / filene er for store",Vn="Font tilknyttet den valgte temaskabelon",Gn="Skrifttype til tekst",Jn="Skrifttype til titel",qn="Forhåndsvisning",Kn="Forhåndsvisning ikke tilgængelig",Xn="Gå tilbage",Qn="Fremhævede ikoner",Zn="Ikon | Ikoner",er="Søg på engelsk efter det ikon, du leder efter. F.eks. 'Helicopter'.",tr="Resultat",nr="Der er ingen ikoner, der matcher din søgning",rr="Besked",or="Tak for din interesse. Du vil snart blive kontaktet af vores account manager.",ir="Jeg ønsker at blive kontaktet i overensstemmelse med {0}",ar="Link | Links",sr="Tilfjøj alle",lr="Navn",cr="Jeg ønsker at blive kontaktet i overensstemmelse med {link}",ur="Telefon",fr="Du har ikke indtastet et gyldigt telefonnummer",dr="Hovedtitel",hr="Erklæring om privatlivsbeskyttelse",gr="Sekundærtitel",pr="Vælg",mr="Vælg ikon",yr="Vælg / søg efter skrifttype",br="Vis alle",wr="Vis alle Google-skrifttyper",vr="Noget gik galt",kr="Indsend {x}",Sr={cancel:Nn,confirm:Rn,delete:"Slet",email:Hn,"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:zn,fileSizeError:Yn,fontAssociatedWithSelectedThemeTemplate:Vn,fontForBody:Gn,fontForHeading:Jn,fontPreview:qn,fontPreviewDisabled:Kn,goBack:Xn,highlightedIcons:Qn,icon:Zn,iconSelectWidgetHelpText:er,iconsSelectWidgetIconsFound:tr,iconsSelectWidgetNoIconsMatchYourSearch:nr,leadMessage:rr,leadMessageSent:or,leadPrivacy:ir,link:ar,loadAllElements:sr,name:lr,nuxtLeadPrivacy:cr,phone:ur,phoneValidation:fr,primaryTitle:dr,privacy:hr,secondaryTitle:gr,select:pr,selectIcon:mr,selectOrSearchForFont:yr,showAll:br,showAllGoogleFonts:wr,somethingWentWrong:vr,submit:kr},Ar="Avbryt",Er="Bekräfta",Ir="E-post",xr="Dra en fil hit eller <b>välj</b> för att ladda upp",Br="filen / filerna är för stora",$r="Typsnitt kopplat till vald temamall",Tr="Teckensnitt för brödtext",Fr="Teckensnitt för titel",_r="Förhandsvisning",Lr="Förhandsvisning inte tillgänglig",jr="Gå tillbaka",Pr="Framhävda ikoner",Ur="Ikon | Ikoner",Mr='Sök på engelska efter ikonen du letar efter. T.ex. "Helicopter"',Dr="träff",Wr="Inga ikoner matchade din sökning.",Cr="Besked/Information",Or="Tack för ditt intresse. Du kommer snart att kontaktas av en kundtjänstmedarbetare.",Nr="Jag vill bli kontaktad i enlighet med {0}",Rr="Länk | Länkar",Hr="Ladda alla",zr="Namn",Yr="Jag vill bli kontaktad i enlighet med {link}",Vr="Telefon",Gr="Du har inte angett ett giltigt telefonnummer",Jr="Huvudtitel",qr="Dataskyddsförordningen",Kr="Sekundär titel",Xr="Välj",Qr="Välj ikon",Zr="älj / sök efter typsnitt",eo="Visa alla",to="Visa alla Google-typsnitt",no="Ett fel inträffade",ro="Skicka in {x}",oo={cancel:Ar,confirm:Er,delete:"Radera",email:Ir,"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:xr,fileSizeError:Br,fontAssociatedWithSelectedThemeTemplate:$r,fontForBody:Tr,fontForHeading:Fr,fontPreview:_r,fontPreviewDisabled:Lr,goBack:jr,highlightedIcons:Pr,icon:Ur,iconSelectWidgetHelpText:Mr,iconsSelectWidgetIconsFound:Dr,iconsSelectWidgetNoIconsMatchYourSearch:Wr,leadMessage:Cr,leadMessageSent:Or,leadPrivacy:Nr,link:Rr,loadAllElements:Hr,name:zr,nuxtLeadPrivacy:Yr,phone:Vr,phoneValidation:Gr,primaryTitle:Jr,privacy:qr,secondaryTitle:Kr,select:Xr,selectIcon:Qr,selectOrSearchForFont:Zr,showAll:eo,showAllGoogleFonts:to,somethingWentWrong:no,submit:ro};var zo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function io(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($,j){if(!f[$]){if(!l[$]){var D=typeof de=="function"&&de;if(!j&&D)return D($,!0);if(T)return T($,!0);throw new Error("Cannot find module '"+$+"'")}j=f[$]={exports:{}},l[$][0].call(j.exports,function(O){var W=l[$][1][O];return I(W||O)},j,j.exports,o,l,f,h)}return f[$].exports}for(var T=typeof de=="function"&&de,x=0;x<h.length;x++)I(h[x]);return I}({1:[function(o,l,f){(function(h,I,T,x,$,j,D,O,W){var y=o("crypto");function F(u,m){m=B(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 B(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),U=/\[object (.*)\]/i.exec(p);if(U=(U=U?U[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(U==="object"||U==="function"||U==="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(P){return!u.excludeKeys(P)})),i("object:"+p.length+":"),d=this,p.forEach(function(P){d.dispatch(P),i(":"),u.excludeValues||d.dispatch(t[P]),i(",")});if(!this["_"+U]){if(u.ignoreUnknown)return i("["+U+"]");throw new Error('Unknown object type "'+U+'"')}this["_"+U](t)},_array:function(t,P){P=P!==void 0?P:u.unorderedArrays!==!1;var p=this;if(i("array:"+t.length+":"),!P||t.length<=1)return t.forEach(function(M){return p.dispatch(M)});var U=[],P=t.map(function(M){var _=new L,N=n.slice();return v(u,_,N).dispatch(M),U=U.concat(N.slice(n.length)),_.read().toString()});return n=n.concat(U),P.sort(),this._array(P,!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
|
+
`,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
|
|
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 L(){return{buf:"",write:function(u){this.buf+=u},end:function(u){this.buf+=u},read:function(){return this.buf}}}f.writeToStream=function(u,m,n){return n===void 0&&(n=m,m={}),v(m=
|
|
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=B(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){U(this,e,r,!0,c)},g.prototype.writeInt32BE=function(e,r,c){U(this,e,r,!1,c)},g.prototype.writeFloatLE=function(e,r,c){P(this,e,r,!0,c)},g.prototype.writeFloatBE=function(e,r,c){P(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,x,$,j,D,O,W){var y=o("buffer").Buffer,F=4,g=new y(F);g.fill(0),l.exports={hash:function(k,B,S,v){for(var L=B(function(t,d){t.length%F!=0&&(p=t.length+(F-t.length%F),t=y.concat([t,g],p));for(var p,U=[],P=d?t.readInt32BE:t.readInt32LE,M=0;M<t.length;M+=F)U.push(P.call(t,M));return U}(k=y.isBuffer(k)?k:new y(k),v),8*k.length),B=v,u=new y(S),m=B?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,x,$,j,D,O,W){var y=o("buffer").Buffer,F=o("./sha"),g=o("./sha256"),k=o("./rng"),B={sha1:F,sha256:g,md5:o("./md5")},S=64,v=new y(S);function L(t,d){var p=B[t=t||"sha1"],U=[];return p||u("algorithm:",t,"is not yet supported"),{update:function(P){return y.isBuffer(P)||(P=new y(P)),U.push(P),P.length,this},digest:function(P){var M=y.concat(U),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 U=null,P?M.toString(P):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,x,$,j,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 U=n,P=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=B(n,i=k(i,t,d,n,u[p+15],22,1236535329),t,d,u[p+1],5,-165796510),d=B(d,n,i,t,u[p+6],9,-1069501632),t=B(t,d,n,i,u[p+11],14,643717713),i=B(i,t,d,n,u[p+0],20,-373897302),n=B(n,i,t,d,u[p+5],5,-701558691),d=B(d,n,i,t,u[p+10],9,38016083),t=B(t,d,n,i,u[p+15],14,-660478335),i=B(i,t,d,n,u[p+4],20,-405537848),n=B(n,i,t,d,u[p+9],5,568446438),d=B(d,n,i,t,u[p+14],9,-1019803690),t=B(t,d,n,i,u[p+3],14,-187363961),i=B(i,t,d,n,u[p+8],20,1163531501),n=B(n,i,t,d,u[p+13],5,-1444681467),d=B(d,n,i,t,u[p+2],9,-51403784),t=B(t,d,n,i,u[p+7],14,1735328473),n=S(n,i=B(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,U),i=L(i,P),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 B(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,x,$,j,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,x,$,j,D,O,W){var y=o("./helpers");function F(B,S){B[S>>5]|=128<<24-S%32,B[15+(S+64>>9<<4)]=S;for(var v,L,u,m=Array(80),n=1732584193,i=-271733879,t=-1732584194,d=271733878,p=-1009589776,U=0;U<B.length;U+=16){for(var P=n,M=i,_=t,N=d,q=p,Y=0;Y<80;Y++){m[Y]=Y<16?B[U+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,P),i=g(i,M),t=g(t,_),d=g(d,N),p=g(p,q)}return Array(n,i,t,d,p)}function g(B,S){var v=(65535&B)+(65535&S);return(B>>16)+(S>>16)+(v>>16)<<16|65535&v}function k(B,S){return B<<S|B>>>32-S}l.exports=function(B){return y.hash(B,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,x,$,j,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],U=m[1],P=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)^B(t,10)),n[R-7]),(t=n[R-15],k(t,7)^k(t,18)^B(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&U^p&P^U&P),Y=q,q=N,N=_,_=y(M,L),M=P,P=U,U=p,p=y(L,i);m[0]=y(p,m[0]),m[1]=y(U,m[1]),m[2]=y(P,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},B=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,x,$,j,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,B,p){var v,L,u=8*p-B-1,m=(1<<u)-1,n=m>>1,i=B===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,B),v+=n):(L=F*Math.pow(2,n-1)*Math.pow(2,B),v=0));8<=B;y[g+t]=255&L,t+=d,L/=256,B-=8);for(v=v<<B|L,u+=B;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,x,$,j,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(B){return window.setImmediate(B)}:g?(y=[],window.addEventListener("message",function(B){var S=B.source;S!==window&&S!==null||B.data!=="process-tick"||(B.stopPropagation(),0<y.length&&y.shift()())},!0),function(B){y.push(B),window.postMessage("process-tick","*")}):function(B){setTimeout(B,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(B){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(B){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 ao=Fe.exports;const ke=io(ao);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 so=_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}),lo=_e(function a(s,o,l){return so(function(f,h,I){return Se(h)&&Se(I)?a(s,h,I):s(f,h,I)},o,l)}),co=oe(function(s,o){return lo(function(l,f,h){return h},s,o)});let uo={headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"include"};async function fo(a,s={}){const{baseURL:o="",...l}=s;return fetch(`${o}${a}`,co(uo,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 L(){return{buf:"",write:function(u){this.buf+=u},end:function(u){this.buf+=u},read:function(){return this.buf}}}f.writeToStream=function(u,m,n){return n===void 0&&(n=m,m={}),v(m=x(u,m),n).dispatch(u)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(o,l,f){(function(h,I,T,$,B,U,D,O,W){(function(y){var F=typeof Uint8Array<"u"?Uint8Array:Array,g=43,k=47,x=48,S=97,v=65,L=45,u=95;function m(n){return n=n.charCodeAt(0),n===g||n===L?62:n===k||n===u?63:n<x?-1:n<x+10?n-x+26+26:n<v+26?n-v: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),P=0<d?n.length-4:n.length,j=0;function M(_){p[j++]=_}for(i=0;i<P;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,P=n.length%3,j="";function M(_){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(_)}for(i=0,d=n.length-P;i<d;i+=3)t=(n[i]<<16)+(n[i+1]<<8)+n[i+2],j+=M((p=t)>>18&63)+M(p>>12&63)+M(p>>6&63)+M(63&p);switch(P){case 1:j=(j+=M((t=n[n.length-1])>>2))+M(t<<4&63)+"==";break;case 2:j=(j=(j+=M((t=(n[n.length-2]<<8)+n[n.length-1])>>10))+M(t>>4&63))+M(t<<2&63)+"="}return j}})(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,I,g,$,B,U,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,w,A,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=q(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=q(e.length)}if(g._useTypedArrays?w=g._augment(new Uint8Array(b)):((w=this).length=b,w._isBuffer=!0),g._useTypedArrays&&typeof e.byteLength=="number")w._set(e);else if(Y(C=e)||g.isBuffer(C)||C&&typeof C=="object"&&typeof C.length=="number")for(A=0;A<b;A++)g.isBuffer(e)?w[A]=e.readUInt8(A):w[A]=e[A];else if(H=="string")w.write(e,0,r);else if(H=="number"&&!g._useTypedArrays&&!c)for(A=0;A<b;A++)w[A]=0;return w}function k(e,r,c,b){return g._charsWritten=ee(function(w){for(var A=[],C=0;C<w.length;C++)A.push(255&w.charCodeAt(C));return A}(r),e,c,b)}function x(e,r,c,b){return g._charsWritten=ee(function(w){for(var A,C,H=[],z=0;z<w.length;z++)C=w.charCodeAt(z),A=C>>8,C=C%256,H.push(C),H.push(A);return H}(r),e,c,b)}function S(e,r,c){var b="";c=Math.min(e.length,c);for(var w=r;w<c;w++)b+=String.fromCharCode(e[w]);return b}function v(e,r,c,A){A||(E(typeof c=="boolean","missing or invalid endian"),E(r!=null,"missing offset"),E(r+1<e.length,"Trying to read beyond buffer length"));var w,A=e.length;if(!(A<=r))return c?(w=e[r],r+1<A&&(w|=e[r+1]<<8)):(w=e[r]<<8,r+1<A&&(w|=e[r+1])),w}function L(e,r,c,A){A||(E(typeof c=="boolean","missing or invalid endian"),E(r!=null,"missing offset"),E(r+3<e.length,"Trying to read beyond buffer length"));var w,A=e.length;if(!(A<=r))return c?(r+2<A&&(w=e[r+2]<<16),r+1<A&&(w|=e[r+1]<<8),w|=e[r],r+3<A&&(w+=e[r+3]<<24>>>0)):(r+1<A&&(w=e[r+1]<<16),r+2<A&&(w|=e[r+2]<<8),r+3<A&&(w|=e[r+3]),w+=e[r]<<24>>>0),w}function u(e,r,c,b){if(b||(E(typeof c=="boolean","missing or invalid endian"),E(r!=null,"missing offset"),E(r+1<e.length,"Trying to read beyond buffer length")),!(e.length<=r))return b=v(e,r,c,!0),32768&b?-1*(65535-b+1):b}function m(e,r,c,b){if(b||(E(typeof c=="boolean","missing or invalid endian"),E(r!=null,"missing offset"),E(r+3<e.length,"Trying to read beyond buffer length")),!(e.length<=r))return b=L(e,r,c,!0),2147483648&b?-1*(4294967295-b+1):b}function n(e,r,c,b){return b||(E(typeof c=="boolean","missing or invalid endian"),E(r+3<e.length,"Trying to read beyond buffer length")),F.read(e,r,c,23,4)}function i(e,r,c,b){return b||(E(typeof c=="boolean","missing or invalid endian"),E(r+7<e.length,"Trying to read beyond buffer length")),F.read(e,r,c,52,8)}function t(e,r,c,b,w){if(w||(E(r!=null,"missing value"),E(typeof b=="boolean","missing or invalid endian"),E(c!=null,"missing offset"),E(c+1<e.length,"trying to write beyond buffer length"),ae(r,65535)),w=e.length,!(w<=c))for(var A=0,C=Math.min(w-c,2);A<C;A++)e[c+A]=(r&255<<8*(b?A:1-A))>>>8*(b?A:1-A)}function d(e,r,c,b,w){if(w||(E(r!=null,"missing value"),E(typeof b=="boolean","missing or invalid endian"),E(c!=null,"missing offset"),E(c+3<e.length,"trying to write beyond buffer length"),ae(r,4294967295)),w=e.length,!(w<=c))for(var A=0,C=Math.min(w-c,4);A<C;A++)e[c+A]=r>>>8*(b?A:3-A)&255}function p(e,r,c,b,w){w||(E(r!=null,"missing value"),E(typeof b=="boolean","missing or invalid endian"),E(c!=null,"missing offset"),E(c+1<e.length,"Trying to write beyond buffer length"),ne(r,32767,-32768)),e.length<=c||t(e,0<=r?r:65535+r+1,c,b,w)}function P(e,r,c,b,w){w||(E(r!=null,"missing value"),E(typeof b=="boolean","missing or invalid endian"),E(c!=null,"missing offset"),E(c+3<e.length,"Trying to write beyond buffer length"),ne(r,2147483647,-2147483648)),e.length<=c||d(e,0<=r?r:4294967295+r+1,c,b,w)}function j(e,r,c,b,w){w||(E(r!=null,"missing value"),E(typeof b=="boolean","missing or invalid endian"),E(c!=null,"missing offset"),E(c+3<e.length,"Trying to write beyond buffer length"),se(r,34028234663852886e22,-34028234663852886e22)),e.length<=c||F.write(e,r,c,b,23,4)}function M(e,r,c,b,w){w||(E(r!=null,"missing value"),E(typeof b=="boolean","missing or invalid endian"),E(c!=null,"missing offset"),E(c+7<e.length,"Trying to write beyond buffer length"),se(r,17976931348623157e292,-17976931348623157e292)),e.length<=c||F.write(e,r,c,b,52,8)}f.Buffer=g,f.SlowBuffer=g,f.INSPECT_MAX_BYTES=50,g.poolSize=8192,g._useTypedArrays=function(){try{var e=new ArrayBuffer(0),r=new Uint8Array(e);return r.foo=function(){return 42},r.foo()===42&&typeof r.subarray=="function"}catch{return!1}}(),g.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.isBuffer=function(e){return!(e==null||!e._isBuffer)},g.byteLength=function(e,r){var c;switch(e+="",r||"utf8"){case"hex":c=e.length/2;break;case"utf8":case"utf-8":c=Z(e).length;break;case"ascii":case"binary":case"raw":c=e.length;break;case"base64":c=fe(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":c=2*e.length;break;default:throw new Error("Unknown encoding")}return c},g.concat=function(e,r){if(E(Y(e),`Usage: Buffer.concat(list, [totalLength])
|
|
8
|
+
list should be an Array.`),e.length===0)return new g(0);if(e.length===1)return e[0];if(typeof r!="number")for(w=r=0;w<e.length;w++)r+=e[w].length;for(var c=new g(r),b=0,w=0;w<e.length;w++){var A=e[w];A.copy(c,b),b+=A.length}return c},g.prototype.write=function(e,r,c,b){isFinite(r)?isFinite(c)||(b=c,c=void 0):(z=b,b=r,r=c,c=z),r=Number(r)||0;var w,A,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})}/*!
|
|
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){po(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 ho(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 go(a,s,o){return s&&Ee(a.prototype,s),o&&Ee(a,o),Object.defineProperty(a,"prototype",{writable:!1}),a}function po(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 mo(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=mo(a,"string");return typeof s=="symbol"?s:String(s)}var je={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(x){var $,j,D,O,W,y,F,g,k;if($=x.match(I),!$)throw new Error("invalid data URI");for(j=$[2]?$[1]:"text/plain"+($[3]||";charset=US-ASCII"),D=!!$[4],O=x.slice($[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:j}):(k=new h,k.append(y),k.getBlob(j))};s.HTMLCanvasElement&&!o.toBlob&&(o.mozGetAsFile?o.toBlob=function(x,$,j){var D=this;setTimeout(function(){j&&o.toDataURL&&T?x(T(D.toDataURL($,j))):x(D.mozGetAsFile("blob",$))})}:o.toDataURL&&T&&(o.msToBlob?o.toBlob=function(x,$,j){var D=this;setTimeout(function(){($&&$!=="image/png"||j)&&o.toDataURL&&T?x(T(D.toDataURL($,j))):x(D.msToBlob($))})}:o.toBlob=function(x,$,j){var D=this;setTimeout(function(){x(T(D.toDataURL($,j)))})})),a.exports?a.exports=T:s.dataURLtoBlob=T}(window)})(je);var Ie=je.exports,yo=function(s){return typeof Blob>"u"?!1:s instanceof Blob||Object.prototype.toString.call(s)==="[object Blob]"},xe={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},bo=typeof window<"u"&&typeof window.document<"u",te=bo?window:{},me=function(s){return s>0&&s<1/0},wo=Array.prototype.slice;function we(a){return Array.from?Array.from(a):wo.call(a)}var vo=/^image\/.+$/;function be(a){return vo.test(a)}function ko(a){var s=be(a)?a.substr(6):"";return s==="jpeg"&&(s="jpg"),".".concat(s)}var Pe=String.fromCharCode;function So(a,s,o){var l="",f;for(o+=s,f=s;f<o;f+=1)l+=Pe(a.getUint8(f));return l}var Ao=te.btoa;function Be(a,s){for(var o=[],l=8192,f=new Uint8Array(a);f.length>0;)o.push(Pe.apply(null,we(f.subarray(0,l)))),f=f.subarray(l);return"data:".concat(s,";base64,").concat(Ao(o.join("")))}function Eo(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 x=f+4,$=f+10;if(So(s,x,4)==="Exif"){var j=s.getUint16($);if(l=j===18761,(l||j===19789)&&s.getUint16($+2,l)===42){var D=s.getUint32($+4,l);D>=8&&(h=$+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 Io(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 xo=/\.\d*(?:0|9){12}\d*$/;function $e(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return xo.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 Bo(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],x=f+T+2,$=s.slice(f,x);l.push($),f=x}}return l.reduce(function(j,D){return D[0]===255&&D[1]===225?j.concat(D):j},[])}function $o(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 To=te.ArrayBuffer,ye=te.FileReader,re=te.URL||te.webkitURL,Fo=/\.\w+$/,_o=te.Compressor,Lo=function(){function a(s,o){ho(this,a),this.file=s,this.exif=[],this.image=new Image,this.options=ge(ge({},xe),o),this.aborted=!1,this.result=null,this.init()}return go(a,[{key:"init",value:function(){var o=this,l=this.file,f=this.options;if(!yo(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}To||(f.checkOrientation=!1,f.retainExif=!1);var I=h==="image/jpeg",T=I&&f.checkOrientation,x=I&&f.retainExif;if(re&&!T&&!x)this.load({url:re.createObjectURL(l)});else{var $=new ye;this.reader=$,$.onload=function(j){var D=j.target,O=D.result,W={},y=1;T&&(y=Eo(O),y>1&&pe(W,Io(y))),x&&(o.exif=Bo(O)),T||x?!re||y>1?W.url=Be(O,h):W.url=re.createObjectURL(l):W.url=O,o.load(W)},$.onabort=function(){o.fail(new Error("Aborted to read the image with FileReader."))},$.onerror=function(){o.fail(new Error("Failed to read the image with FileReader."))},$.onloadend=function(){o.reader=null},T||x?$.readAsArrayBuffer(l):$.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,x=o.scaleX,$=x===void 0?1:x,j=o.scaleY,D=j===void 0?1:j,O=this.file,W=this.image,y=this.options,F=document.createElement("canvas"),g=F.getContext("2d"),k=Math.abs(T)%180===90,B=(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]}B&&(m=n/i);var U=ue({aspectRatio:m,width:S,height:v},"contain");S=U.width,v=U.height;var P=ue({aspectRatio:m,width:L,height:u},"cover");if(L=P.width,u=P.height,B){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($e(Math.min(Math.max(n,L),S))),i=Math.floor($e(Math.min(Math.max(i,u),v)));var Y=-n/2,R=-i/2,Z=n,fe=i,ee=[];if(B){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($,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(Be($o(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,x=this.options;if(re&&T.src.indexOf("blob:")===0&&re.revokeObjectURL(T.src),h)if(x.strict&&!x.retainExif&&h.size>I.size&&x.mimeType===I.type&&!(x.width>l||x.height>f||x.minWidth>l||x.minHeight>f||x.maxWidth<l||x.maxHeight<f))h=I;else{var $=new Date;h.lastModified=$.getTime(),h.lastModifiedDate=$,h.name=I.name,h.name&&h.type!==I.type&&(h.name=h.name.replace(Fo,ko(h.type)))}else h=I;this.result=h,x.success&&x.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=_o,a}},{key:"setDefaults",value:function(o){pe(xe,o)}}]),a}();const jo={default:{maxWidth:1920},logo:{maxWidth:1e3,quality:.9},gallery:{maxWidth:2560}},Ue=a=>a instanceof Array?a:[a];function Po(a,s){return new Promise((o,l)=>{if(!s)return o(a);new Lo(a,{success:f=>o(f),error:f=>l(f),...s})})}function Uo(a={}){let{acl:s="public-read",url:o,...l}=a;return o||(o="/api/file/sign?acl="+s),fo(o,l).then(f=>f.json())}function Mo({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 Do(a){return new Promise(s=>{let o=new FileReader;o.onload=function(l){s(l.target.result)},o.readAsDataURL(a)})}function Wo(a){return a.type.startsWith("image/")?Do(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 Co(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(Ue).then(l=>l.map(({data:f,name:h,type:I})=>new File([new Uint8Array(f.data)],h,{type:I})));default:return a}}async function Oo(a,s,o){let{compression:l,transform:f=D=>D,rename:h,convert:I,svgConvertEndpoint:T="/api/file/transform/png",...x}=o;typeof l=="string"&&(l=jo[l]),a.type==="image/svg+xml"&&l&&T&&(I=T);const $=await Co(a,I).then(Ue),j=await Promise.all($.map(async D=>{let[O,W]=await Promise.all([Uo(x||{}),l?Po(D,l):Promise.resolve(D)]),y;try{y=await Wo(W)}catch{}return await Mo({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 j.length===1?j[0]:j}function Yo(a,s,o={}){let{group:l=1}=o,f=a.match(s);if(f)return f[l]}function No(a){return new Promise((s,o)=>{setTimeout(s,a)})}function Vo(a){return a==="false"?!1:a==="true"?!0:a}async function Go(a,s={}){let{interval:o=200,limit:l=50}=s,f=0,h;for(;f<l&&(f++,!(h=a()));)await No(o);if(f>=l)throw new Error("Could not resolve");return h}function Jo(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 qo(a,s=1,o={}){const l={en:wt,nb:nn,fr:On,da:Sr,sv:oo},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((x,$)=>{h=h.replace(x,o[$])})}return h}function Ko(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 Ro(a){return Object.prototype.toString.call(a)==="[object Object]"}function Me(a,s,o={}){if(!s||!Ro(s))return a;let{ignoreMissing:l=!1}=o,f={},h=(T,x)=>T.length===x.length&&ke(T.slice())===ke(x.slice()),I=function(T,x,$){let j=Object.prototype.toString.call(T),D=Object.prototype.toString.call(x);if(j!==D){f[$]=x;return}if(j==="[object Object]"){let O=Me(T,x,o);Object.keys(O).length&&(f[$]=O);return}if(j==="[object Array]"){h(T,x)||(f[$]=x);return}if(j==="[object Function]"){T.toString()!==x.toString()&&(f[$]=x);return}T!==x&&(f[$]=x)};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 Xo(...a){return!!Object.keys(Me(...a)).length}const Qo=function(){return JSON.parse(JSON.stringify.apply(this,arguments))};function Zo(a,s,o){return Oo(a,s,o)}function ei(a,s=document.documentElement.getAttribute("lang")||"nb"){return!a&&a!==0?"-":a.toLocaleString(s,{style:"currency",currency:"NOK",minimumFractionDigits:0})}const Ho=a=>{if(typeof a!="string")return a;try{return JSON.parse(a)}catch{return{}}},ti=(a={},s={})=>o=>Ho(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}},ni=(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 x=Te("currency",{locale:s,currency:o})(1000.1),$=x.replace(/[\d\s\,\.]/g,""),j={mask:Number,thousandsSeparator:I};return x.match(/^\d/)?{suffix:$,mask:j}:{symbol:$,mask:j}};function ri(a,s=300){let o;return(...l)=>{clearTimeout(o),o=setTimeout(()=>{a.apply(this,l)},s)}}function oi(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{Qo as C,ri as D,Yo as E,Jo as L,Ko as P,oi as S,qo as T,Go as W,ni as a,ti as b,de as c,zo as d,ei as e,Te as f,io as g,Xo as h,Me as i,Vo as t,Zo as u};
|
|
17
|
+
*/function Ae(a,s){var o=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);s&&(l=l.filter(function(f){return Object.getOwnPropertyDescriptor(a,f).enumerable})),o.push.apply(o,l)}return o}function ge(a){for(var s=1;s<arguments.length;s++){var o=arguments[s]!=null?arguments[s]:{};s%2?Ae(Object(o),!0).forEach(function(l){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};
|
package/dist/index2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{f as d,E as g,R as h,v,P as y,i as x,S as T}from"./_plugin-vue_export-helper.js";function C(r,n){let e,t,o;const u=d(!0),a=()=>{u.value=!0,o()};g(r,a,{flush:"sync"});const c=typeof n=="function"?n:n.get,s=typeof n=="function"?void 0:n.set,i=h((l,f)=>(t=l,o=f,{get(){return u.value&&(e=c(),u.value=!1),t(),e},set(b){s?.(b)}}));return Object.isExtensible(i)&&(i.trigger=a),i}function m(r){return typeof r=="function"?r():v(r)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const p=()=>{};function P(r,n){function e(...t){return new Promise((o,u)=>{Promise.resolve(r(()=>n.apply(this,t),{fn:n,thisArg:this,args:t})).then(o).catch(u)})}return e}function W(r,n={}){let e,t,o=p;const u=c=>{clearTimeout(c),o(),o=p};return c=>{const s=m(r),i=m(n.maxWait);return e&&u(e),s<=0||i!==void 0&&i<=0?(t&&(u(t),t=null),Promise.resolve(c())):new Promise((l,f)=>{o=n.rejectOnCancel?f:l,i&&!t&&(t=setTimeout(()=>{e&&u(e),t=null,l(c())},i)),e=setTimeout(()=>{t&&u(t),t=null,l(c())},s)})}}function w(r,n=200,e={}){return P(W(n,e),r)}function j(r,n=200,e={}){const t=d(r.value),o=w(()=>{t.value=r.value},n,e);return g(r,()=>o()),t}function D(r){const n=T(),e=C(()=>null,()=>n.proxy.$el);return y(e.trigger),x(e.trigger),e}export{j as r,D as u};
|