@kvass/widgets 1.8.25 → 1.8.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- const Me="Cancel",Pe="Confirm",We="Email",Re=`
2
- Font associated with selected theme template`,Ne="Body font",$e="Heading font",He="Preview",Ye="Preview not available",ze="Back",Ve="Highlighted icons",qe="Icon | Icons",Ke="Search in English for icon you are looking for, for example 'Helicopter'.",Xe="Hits",Ge="No icons to match your search.",Je="Notification",Qe="Thank you for your interest. You will soon be contacted by a customer service representative.",Ze="Load all elements",et="Name",tt="Phone",rt="You have not entered a valid phone number",nt="Main title",ot="Secondary title",it="Select",at="Select icon",st="Show all",ut="Something went wrong",lt="Submit {x}",ct={cancel:Me,confirm:Pe,email:We,"fa-pro-brands":"Brands icons","fa-pro-duotone":"Duotone icons","fa-pro-light":"Light icons","fa-pro-regular":"Regular icons","fa-pro-solid":"Solid icons",fontAssociatedWithSelectedThemeTemplate:Re,fontForBody:Ne,fontForHeading:$e,fontPreview:He,fontPreviewDisabled:Ye,goBack:ze,highlightedIcons:Ve,icon:qe,iconSelectWidgetHelpText:Ke,iconsSelectWidgetIconsFound:Xe,iconsSelectWidgetNoIconsMatchYourSearch:Ge,leadMessage:Je,leadMessageSent:Qe,loadAllElements:Ze,name:et,phone:tt,phoneValidation:rt,primaryTitle:nt,secondaryTitle:ot,select:it,selectIcon:at,showAll:st,somethingWentWrong:ut,submit:lt},ft="Avbryt",ht="Bekreft",dt="E-post",gt="Font tilknyttet valgt tema mal",pt="Skrifttype for mengdetekst",mt="Skrifttype for tittel",yt="Forhåndsvisning",wt="Forhåndsvisning ikke tilgjengelig",bt="Gå tilbake",vt="Fremhevede ikoner",Et="Ikon | Ikoner",Bt="Søk på engelsk etter ikonet du leter etter. Eks. 'Helicopter'",It="treff",At="Ingen ikoner passer søket ditt.",_t="Beskjed",xt="Takk for din interesse. Du vil snart bli kontaktet av kundebehandler.",St="Last inn alle",Ut="Navn",kt="Telefon",Tt="Du har ikke tastet inn et gyldig telefonnummer",jt="Hovedtittel",Lt="Sekundærtittel",Ft="Velg",Ct="Velg ikon",Dt="Vis alle",Ot="Noe gikk galt",Mt="Send inn {x}",Pt={cancel:ft,confirm:ht,email:dt,"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",fontAssociatedWithSelectedThemeTemplate:gt,fontForBody:pt,fontForHeading:mt,fontPreview:yt,fontPreviewDisabled:wt,goBack:bt,highlightedIcons:vt,icon:Et,iconSelectWidgetHelpText:Bt,iconsSelectWidgetIconsFound:It,iconsSelectWidgetNoIconsMatchYourSearch:At,leadMessage:_t,leadMessageSent:xt,loadAllElements:St,name:Ut,phone:kt,phoneValidation:Tt,primaryTitle:jt,secondaryTitle:Lt,select:Ft,selectIcon:Ct,showAll:Dt,somethingWentWrong:Ot,submit:Mt};var Ir=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wt(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function he(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Te={exports:{}};(function(a,s){(function(o){a.exports=o()})(function(){return function o(u,f,d){function U(x,F){if(!f[x]){if(!u[x]){var M=typeof he=="function"&&he;if(!F&&M)return M(x,!0);if(k)return k(x,!0);throw new Error("Cannot find module '"+x+"'")}F=f[x]={exports:{}},u[x][0].call(F.exports,function(W){var R=u[x][1][W];return U(R||W)},F,F.exports,o,u,f,d)}return f[x].exports}for(var k=typeof he=="function"&&he,S=0;S<d.length;S++)U(d[S]);return U}({1:[function(o,u,f){(function(d,U,k,S,x,F,M,W,R){var y=o("crypto");function T(c,m){m=_(c,m);var r;return(r=m.algorithm!=="passthrough"?y.createHash(m.algorithm):new L).write===void 0&&(r.write=r.update,r.end=r.update),v(m,r).dispatch(c),r.update||r.end(""),r.digest?r.digest(m.encoding==="buffer"?void 0:m.encoding):(c=r.read(),m.encoding!=="buffer"?c.toString(m.encoding):c)}(f=u.exports=T).sha1=function(c){return T(c)},f.keys=function(c){return T(c,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},f.MD5=function(c){return T(c,{algorithm:"md5",encoding:"hex"})},f.keysMD5=function(c){return T(c,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var g=y.getHashes?y.getHashes().slice():["sha1","md5"],E=(g.push("passthrough"),["buffer","hex","binary","base64"]);function _(c,m){var r={};if(r.algorithm=(m=m||{}).algorithm||"sha1",r.encoding=m.encoding||"hex",r.excludeValues=!!m.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=m.ignoreUnknown===!0,r.respectType=m.respectType!==!1,r.respectFunctionNames=m.respectFunctionNames!==!1,r.respectFunctionProperties=m.respectFunctionProperties!==!1,r.unorderedArrays=m.unorderedArrays===!0,r.unorderedSets=m.unorderedSets!==!1,r.unorderedObjects=m.unorderedObjects!==!1,r.replacer=m.replacer||void 0,r.excludeKeys=m.excludeKeys||void 0,c===void 0)throw new Error("Object argument required.");for(var i=0;i<g.length;++i)g[i].toLowerCase()===r.algorithm.toLowerCase()&&(r.algorithm=g[i]);if(g.indexOf(r.algorithm)===-1)throw new Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+g.join(", "));if(E.indexOf(r.encoding)===-1&&r.algorithm!=="passthrough")throw new Error('Encoding "'+r.encoding+'" not supported. supported values: '+E.join(", "));return r}function B(c){if(typeof c=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(c))!=null}function v(c,m,r){r=r||[];function i(t){return m.update?m.update(t,"utf8"):m.write(t,"utf8")}return{dispatch:function(t){return this["_"+((t=c.replacer?c.replacer(t):t)===null?"null":typeof t)](t)},_object:function(t){var h,p=Object.prototype.toString.call(t),D=/\[object (.*)\]/i.exec(p);if(D=(D=D?D[1]:"unknown:["+p+"]").toLowerCase(),0<=(p=r.indexOf(t)))return this.dispatch("[CIRCULAR:"+p+"]");if(r.push(t),k!==void 0&&k.isBuffer&&k.isBuffer(t))return i("buffer:"),i(t);if(D==="object"||D==="function"||D==="asyncfunction")return p=Object.keys(t),c.unorderedObjects&&(p=p.sort()),c.respectType===!1||B(t)||p.splice(0,0,"prototype","__proto__","constructor"),c.excludeKeys&&(p=p.filter(function(C){return!c.excludeKeys(C)})),i("object:"+p.length+":"),h=this,p.forEach(function(C){h.dispatch(C),i(":"),c.excludeValues||h.dispatch(t[C]),i(",")});if(!this["_"+D]){if(c.ignoreUnknown)return i("["+D+"]");throw new Error('Unknown object type "'+D+'"')}this["_"+D](t)},_array:function(t,C){C=C!==void 0?C:c.unorderedArrays!==!1;var p=this;if(i("array:"+t.length+":"),!C||t.length<=1)return t.forEach(function(O){return p.dispatch(O)});var D=[],C=t.map(function(O){var j=new L,N=r.slice();return v(c,j,N).dispatch(O),D=D.concat(N.slice(r.length)),j.read().toString()});return r=r.concat(D),C.sort(),this._array(C,!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:"),B(t)?this.dispatch("[native]"):this.dispatch(t.toString()),c.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(t.name)),c.respectFunctionProperties&&this._object(t)},_number:function(t){return i("number:"+t.toString())},_xml:function(t){return i("xml:"+t.toString())},_null:function(){return i("Null")},_undefined:function(){return i("Undefined")},_regexp:function(t){return i("regex:"+t.toString())},_uint8array:function(t){return i("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint8clampedarray:function(t){return i("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(t))},_int8array:function(t){return i("int8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint16array:function(t){return i("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},_int16array:function(t){return i("int16array:"),this.dispatch(Array.prototype.slice.call(t))},_uint32array:function(t){return i("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},_int32array:function(t){return i("int32array:"),this.dispatch(Array.prototype.slice.call(t))},_float32array:function(t){return i("float32array:"),this.dispatch(Array.prototype.slice.call(t))},_float64array:function(t){return i("float64array:"),this.dispatch(Array.prototype.slice.call(t))},_arraybuffer:function(t){return i("arraybuffer:"),this.dispatch(new Uint8Array(t))},_url:function(t){return i("url:"+t.toString())},_map:function(t){return i("map:"),t=Array.from(t),this._array(t,c.unorderedSets!==!1)},_set:function(t){return i("set:"),t=Array.from(t),this._array(t,c.unorderedSets!==!1)},_file:function(t){return i("file:"),this.dispatch([t.name,t.size,t.type,t.lastModfied])},_blob:function(){if(c.ignoreUnknown)return i("[blob]");throw Error(`Hashing Blob objects is currently not supported
1
+ const Me="Cancel",Oe="Confirm",We="Email",Re="Drag a file here or <b>browse</b> to upload",Ne=`
2
+ Font associated with selected theme template`,$e="Body font",He="Heading font",Ye="Preview",ze="Preview not available",Ve="Back",qe="Highlighted icons",Ke="Icon | Icons",Xe="Search in English for icon you are looking for, for example 'Helicopter'.",Ge="Hits",Je="No icons to match your search.",Qe="Notification",Ze="Thank you for your interest. You will soon be contacted by a customer service representative.",et="I wish to be contacted with the consent of {0}",tt="Load all elements",rt="Name",nt="Phone",ot="You have not entered a valid phone number",it="Main title",at="Privacy policy",st="Secondary title",ut="Select",lt="Select icon",ct="Show all",ft="Something went wrong",dt="Submit {x}",ht={cancel:Me,confirm:Oe,delete:"Delete",email:We,"fa-pro-brands":"Brands icons","fa-pro-duotone":"Duotone icons","fa-pro-light":"Light icons","fa-pro-regular":"Regular icons","fa-pro-solid":"Solid icons",fileDropAreaMessage:Re,fontAssociatedWithSelectedThemeTemplate:Ne,fontForBody:$e,fontForHeading:He,fontPreview:Ye,fontPreviewDisabled:ze,goBack:Ve,highlightedIcons:qe,icon:Ke,iconSelectWidgetHelpText:Xe,iconsSelectWidgetIconsFound:Ge,iconsSelectWidgetNoIconsMatchYourSearch:Je,leadMessage:Qe,leadMessageSent:Ze,leadPrivacy:et,loadAllElements:tt,name:rt,phone:nt,phoneValidation:ot,primaryTitle:it,privacy:at,secondaryTitle:st,select:ut,selectIcon:lt,showAll:ct,somethingWentWrong:ft,submit:dt},gt="Avbryt",pt="Bekreft",mt="E-post",yt="Dra en fil hit eller <b>velg</b> for å laste opp",wt="Font tilknyttet valgt tema mal",bt="Skrifttype for mengdetekst",vt="Skrifttype for tittel",Et="Forhåndsvisning",At="Forhåndsvisning ikke tilgjengelig",It="Gå tilbake",Bt="Fremhevede ikoner",xt="Ikon | Ikoner",_t="Søk på engelsk etter ikonet du leter etter. Eks. 'Helicopter'",St="treff",kt="Ingen ikoner passer søket ditt.",Ut="Beskjed",Tt="Takk for din interesse. Du vil snart bli kontaktet av kundebehandler.",jt="Jeg ønsker å bli kontaktet i samtykke med {0}",Lt="Last inn alle",Ft="Maks størrelse",Dt="Navn",Ct="Telefon",Pt="Du har ikke tastet inn et gyldig telefonnummer",Mt="Hovedtittel",Ot="Personvernerklæringen",Wt="Sekundærtittel",Rt="Velg",Nt="Velg ikon",$t="Vis alle",Ht="Noe gikk galt",Yt="Send inn {x}",zt={cancel:gt,confirm:pt,delete:"Slett",email:mt,"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:yt,fontAssociatedWithSelectedThemeTemplate:wt,fontForBody:bt,fontForHeading:vt,fontPreview:Et,fontPreviewDisabled:At,goBack:It,highlightedIcons:Bt,icon:xt,iconSelectWidgetHelpText:_t,iconsSelectWidgetIconsFound:St,iconsSelectWidgetNoIconsMatchYourSearch:kt,leadMessage:Ut,leadMessageSent:Tt,leadPrivacy:jt,loadAllElements:Lt,maxSize:Ft,name:Dt,phone:Ct,phoneValidation:Pt,primaryTitle:Mt,privacy:Ot,secondaryTitle:Wt,select:Rt,selectIcon:Nt,showAll:$t,somethingWentWrong:Ht,submit:Yt};var Tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(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 Te={exports:{}};(function(a,s){(function(o){a.exports=o()})(function(){return function o(u,f,h){function k(x,F){if(!f[x]){if(!u[x]){var M=typeof de=="function"&&de;if(!F&&M)return M(x,!0);if(U)return U(x,!0);throw new Error("Cannot find module '"+x+"'")}F=f[x]={exports:{}},u[x][0].call(F.exports,function(W){var R=u[x][1][W];return k(R||W)},F,F.exports,o,u,f,h)}return f[x].exports}for(var U=typeof de=="function"&&de,_=0;_<h.length;_++)k(h[_]);return k}({1:[function(o,u,f){(function(h,k,U,_,x,F,M,W,R){var y=o("crypto");function T(c,m){m=S(c,m);var r;return(r=m.algorithm!=="passthrough"?y.createHash(m.algorithm):new L).write===void 0&&(r.write=r.update,r.end=r.update),v(m,r).dispatch(c),r.update||r.end(""),r.digest?r.digest(m.encoding==="buffer"?void 0:m.encoding):(c=r.read(),m.encoding!=="buffer"?c.toString(m.encoding):c)}(f=u.exports=T).sha1=function(c){return T(c)},f.keys=function(c){return T(c,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},f.MD5=function(c){return T(c,{algorithm:"md5",encoding:"hex"})},f.keysMD5=function(c){return T(c,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var g=y.getHashes?y.getHashes().slice():["sha1","md5"],E=(g.push("passthrough"),["buffer","hex","binary","base64"]);function S(c,m){var r={};if(r.algorithm=(m=m||{}).algorithm||"sha1",r.encoding=m.encoding||"hex",r.excludeValues=!!m.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=m.ignoreUnknown===!0,r.respectType=m.respectType!==!1,r.respectFunctionNames=m.respectFunctionNames!==!1,r.respectFunctionProperties=m.respectFunctionProperties!==!1,r.unorderedArrays=m.unorderedArrays===!0,r.unorderedSets=m.unorderedSets!==!1,r.unorderedObjects=m.unorderedObjects!==!1,r.replacer=m.replacer||void 0,r.excludeKeys=m.excludeKeys||void 0,c===void 0)throw new Error("Object argument required.");for(var i=0;i<g.length;++i)g[i].toLowerCase()===r.algorithm.toLowerCase()&&(r.algorithm=g[i]);if(g.indexOf(r.algorithm)===-1)throw new Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+g.join(", "));if(E.indexOf(r.encoding)===-1&&r.algorithm!=="passthrough")throw new Error('Encoding "'+r.encoding+'" not supported. supported values: '+E.join(", "));return r}function A(c){if(typeof c=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(c))!=null}function v(c,m,r){r=r||[];function i(t){return m.update?m.update(t,"utf8"):m.write(t,"utf8")}return{dispatch:function(t){return this["_"+((t=c.replacer?c.replacer(t):t)===null?"null":typeof t)](t)},_object:function(t){var d,p=Object.prototype.toString.call(t),C=/\[object (.*)\]/i.exec(p);if(C=(C=C?C[1]:"unknown:["+p+"]").toLowerCase(),0<=(p=r.indexOf(t)))return this.dispatch("[CIRCULAR:"+p+"]");if(r.push(t),U!==void 0&&U.isBuffer&&U.isBuffer(t))return i("buffer:"),i(t);if(C==="object"||C==="function"||C==="asyncfunction")return p=Object.keys(t),c.unorderedObjects&&(p=p.sort()),c.respectType===!1||A(t)||p.splice(0,0,"prototype","__proto__","constructor"),c.excludeKeys&&(p=p.filter(function(D){return!c.excludeKeys(D)})),i("object:"+p.length+":"),d=this,p.forEach(function(D){d.dispatch(D),i(":"),c.excludeValues||d.dispatch(t[D]),i(",")});if(!this["_"+C]){if(c.ignoreUnknown)return i("["+C+"]");throw new Error('Unknown object type "'+C+'"')}this["_"+C](t)},_array:function(t,D){D=D!==void 0?D:c.unorderedArrays!==!1;var p=this;if(i("array:"+t.length+":"),!D||t.length<=1)return t.forEach(function(P){return p.dispatch(P)});var C=[],D=t.map(function(P){var j=new L,N=r.slice();return v(c,j,N).dispatch(P),C=C.concat(N.slice(r.length)),j.read().toString()});return r=r.concat(C),D.sort(),this._array(D,!1)},_date:function(t){return i("date:"+t.toJSON())},_symbol:function(t){return i("symbol:"+t.toString())},_error:function(t){return i("error:"+t.toString())},_boolean:function(t){return i("bool:"+t.toString())},_string:function(t){i("string:"+t.length+":"),i(t.toString())},_function:function(t){i("fn:"),A(t)?this.dispatch("[native]"):this.dispatch(t.toString()),c.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(t.name)),c.respectFunctionProperties&&this._object(t)},_number:function(t){return i("number:"+t.toString())},_xml:function(t){return i("xml:"+t.toString())},_null:function(){return i("Null")},_undefined:function(){return i("Undefined")},_regexp:function(t){return i("regex:"+t.toString())},_uint8array:function(t){return i("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint8clampedarray:function(t){return i("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(t))},_int8array:function(t){return i("int8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint16array:function(t){return i("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},_int16array:function(t){return i("int16array:"),this.dispatch(Array.prototype.slice.call(t))},_uint32array:function(t){return i("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},_int32array:function(t){return i("int32array:"),this.dispatch(Array.prototype.slice.call(t))},_float32array:function(t){return i("float32array:"),this.dispatch(Array.prototype.slice.call(t))},_float64array:function(t){return i("float64array:"),this.dispatch(Array.prototype.slice.call(t))},_arraybuffer:function(t){return i("arraybuffer:"),this.dispatch(new Uint8Array(t))},_url:function(t){return i("url:"+t.toString())},_map:function(t){return i("map:"),t=Array.from(t),this._array(t,c.unorderedSets!==!1)},_set:function(t){return i("set:"),t=Array.from(t),this._array(t,c.unorderedSets!==!1)},_file:function(t){return i("file:"),this.dispatch([t.name,t.size,t.type,t.lastModfied])},_blob:function(){if(c.ignoreUnknown)return i("[blob]");throw Error(`Hashing Blob objects is currently not supported
3
3
  (see https://github.com/puleos/object-hash/issues/26)
4
4
  Use "options.replacer" or "options.ignoreUnknown"
5
- `)},_domwindow:function(){return i("domwindow")},_bigint:function(t){return i("bigint:"+t.toString())},_process:function(){return i("process")},_timer:function(){return i("timer")},_pipe:function(){return i("pipe")},_tcp:function(){return i("tcp")},_udp:function(){return i("udp")},_tty:function(){return i("tty")},_statwatcher:function(){return i("statwatcher")},_securecontext:function(){return i("securecontext")},_connection:function(){return i("connection")},_zlib:function(){return i("zlib")},_context:function(){return i("context")},_nodescript:function(){return i("nodescript")},_httpparser:function(){return i("httpparser")},_dataview:function(){return i("dataview")},_signal:function(){return i("signal")},_fsevent:function(){return i("fsevent")},_tlswrap:function(){return i("tlswrap")}}}function L(){return{buf:"",write:function(c){this.buf+=c},end:function(c){this.buf+=c},read:function(){return this.buf}}}f.writeToStream=function(c,m,r){return r===void 0&&(r=m,m={}),v(m=_(c,m),r).dispatch(c)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(o,u,f){(function(d,U,k,S,x,F,M,W,R){(function(y){var T=typeof Uint8Array<"u"?Uint8Array:Array,g=43,E=47,_=48,B=97,v=65,L=45,c=95;function m(r){return r=r.charCodeAt(0),r===g||r===L?62:r===E||r===c?63:r<_?-1:r<_+10?r-_+26+26:r<v+26?r-v:r<B+26?r-B+26:void 0}y.toByteArray=function(r){var i,t;if(0<r.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var h=r.length,h=r.charAt(h-2)==="="?2:r.charAt(h-1)==="="?1:0,p=new T(3*r.length/4-h),D=0<h?r.length-4:r.length,C=0;function O(j){p[C++]=j}for(i=0;i<D;i+=4,0)O((16711680&(t=m(r.charAt(i))<<18|m(r.charAt(i+1))<<12|m(r.charAt(i+2))<<6|m(r.charAt(i+3))))>>16),O((65280&t)>>8),O(255&t);return h==2?O(255&(t=m(r.charAt(i))<<2|m(r.charAt(i+1))>>4)):h==1&&(O((t=m(r.charAt(i))<<10|m(r.charAt(i+1))<<4|m(r.charAt(i+2))>>2)>>8&255),O(255&t)),p},y.fromByteArray=function(r){var i,t,h,p,D=r.length%3,C="";function O(j){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(j)}for(i=0,h=r.length-D;i<h;i+=3)t=(r[i]<<16)+(r[i+1]<<8)+r[i+2],C+=O((p=t)>>18&63)+O(p>>12&63)+O(p>>6&63)+O(63&p);switch(D){case 1:C=(C+=O((t=r[r.length-1])>>2))+O(t<<4&63)+"==";break;case 2:C=(C=(C+=O((t=(r[r.length-2]<<8)+r[r.length-1])>>10))+O(t>>4&63))+O(t<<2&63)+"="}return C}})(f===void 0?this.base64js={}:f)}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(o,u,f){(function(d,U,g,S,x,F,M,W,R){var y=o("base64-js"),T=o("ieee754");function g(e,n,l){if(!(this instanceof g))return new g(e,n,l);var w,b,I,P,H=typeof e;if(n==="base64"&&H=="string")for(e=(P=e).trim?P.trim():P.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if(H=="number")w=X(e);else if(H=="string")w=g.byteLength(e,n);else{if(H!="object")throw new Error("First argument needs to be a number, array or string.");w=X(e.length)}if(g._useTypedArrays?b=g._augment(new Uint8Array(w)):((b=this).length=w,b._isBuffer=!0),g._useTypedArrays&&typeof e.byteLength=="number")b._set(e);else if(z(P=e)||g.isBuffer(P)||P&&typeof P=="object"&&typeof P.length=="number")for(I=0;I<w;I++)g.isBuffer(e)?b[I]=e.readUInt8(I):b[I]=e[I];else if(H=="string")b.write(e,0,n);else if(H=="number"&&!g._useTypedArrays&&!l)for(I=0;I<w;I++)b[I]=0;return b}function E(e,n,l,w){return g._charsWritten=ee(function(b){for(var I=[],P=0;P<b.length;P++)I.push(255&b.charCodeAt(P));return I}(n),e,l,w)}function _(e,n,l,w){return g._charsWritten=ee(function(b){for(var I,P,H=[],Y=0;Y<b.length;Y++)P=b.charCodeAt(Y),I=P>>8,P=P%256,H.push(P),H.push(I);return H}(n),e,l,w)}function B(e,n,l){var w="";l=Math.min(e.length,l);for(var b=n;b<l;b++)w+=String.fromCharCode(e[b]);return w}function v(e,n,l,I){I||(A(typeof l=="boolean","missing or invalid endian"),A(n!=null,"missing offset"),A(n+1<e.length,"Trying to read beyond buffer length"));var b,I=e.length;if(!(I<=n))return l?(b=e[n],n+1<I&&(b|=e[n+1]<<8)):(b=e[n]<<8,n+1<I&&(b|=e[n+1])),b}function L(e,n,l,I){I||(A(typeof l=="boolean","missing or invalid endian"),A(n!=null,"missing offset"),A(n+3<e.length,"Trying to read beyond buffer length"));var b,I=e.length;if(!(I<=n))return l?(n+2<I&&(b=e[n+2]<<16),n+1<I&&(b|=e[n+1]<<8),b|=e[n],n+3<I&&(b+=e[n+3]<<24>>>0)):(n+1<I&&(b=e[n+1]<<16),n+2<I&&(b|=e[n+2]<<8),n+3<I&&(b|=e[n+3]),b+=e[n]<<24>>>0),b}function c(e,n,l,w){if(w||(A(typeof l=="boolean","missing or invalid endian"),A(n!=null,"missing offset"),A(n+1<e.length,"Trying to read beyond buffer length")),!(e.length<=n))return w=v(e,n,l,!0),32768&w?-1*(65535-w+1):w}function m(e,n,l,w){if(w||(A(typeof l=="boolean","missing or invalid endian"),A(n!=null,"missing offset"),A(n+3<e.length,"Trying to read beyond buffer length")),!(e.length<=n))return w=L(e,n,l,!0),2147483648&w?-1*(4294967295-w+1):w}function r(e,n,l,w){return w||(A(typeof l=="boolean","missing or invalid endian"),A(n+3<e.length,"Trying to read beyond buffer length")),T.read(e,n,l,23,4)}function i(e,n,l,w){return w||(A(typeof l=="boolean","missing or invalid endian"),A(n+7<e.length,"Trying to read beyond buffer length")),T.read(e,n,l,52,8)}function t(e,n,l,w,b){if(b||(A(n!=null,"missing value"),A(typeof w=="boolean","missing or invalid endian"),A(l!=null,"missing offset"),A(l+1<e.length,"trying to write beyond buffer length"),ae(n,65535)),b=e.length,!(b<=l))for(var I=0,P=Math.min(b-l,2);I<P;I++)e[l+I]=(n&255<<8*(w?I:1-I))>>>8*(w?I:1-I)}function h(e,n,l,w,b){if(b||(A(n!=null,"missing value"),A(typeof w=="boolean","missing or invalid endian"),A(l!=null,"missing offset"),A(l+3<e.length,"trying to write beyond buffer length"),ae(n,4294967295)),b=e.length,!(b<=l))for(var I=0,P=Math.min(b-l,4);I<P;I++)e[l+I]=n>>>8*(w?I:3-I)&255}function p(e,n,l,w,b){b||(A(n!=null,"missing value"),A(typeof w=="boolean","missing or invalid endian"),A(l!=null,"missing offset"),A(l+1<e.length,"Trying to write beyond buffer length"),re(n,32767,-32768)),e.length<=l||t(e,0<=n?n:65535+n+1,l,w,b)}function D(e,n,l,w,b){b||(A(n!=null,"missing value"),A(typeof w=="boolean","missing or invalid endian"),A(l!=null,"missing offset"),A(l+3<e.length,"Trying to write beyond buffer length"),re(n,2147483647,-2147483648)),e.length<=l||h(e,0<=n?n:4294967295+n+1,l,w,b)}function C(e,n,l,w,b){b||(A(n!=null,"missing value"),A(typeof w=="boolean","missing or invalid endian"),A(l!=null,"missing offset"),A(l+3<e.length,"Trying to write beyond buffer length"),se(n,34028234663852886e22,-34028234663852886e22)),e.length<=l||T.write(e,n,l,w,23,4)}function O(e,n,l,w,b){b||(A(n!=null,"missing value"),A(typeof w=="boolean","missing or invalid endian"),A(l!=null,"missing offset"),A(l+7<e.length,"Trying to write beyond buffer length"),se(n,17976931348623157e292,-17976931348623157e292)),e.length<=l||T.write(e,n,l,w,52,8)}f.Buffer=g,f.SlowBuffer=g,f.INSPECT_MAX_BYTES=50,g.poolSize=8192,g._useTypedArrays=function(){try{var e=new ArrayBuffer(0),n=new Uint8Array(e);return n.foo=function(){return 42},n.foo()===42&&typeof n.subarray=="function"}catch{return!1}}(),g.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.isBuffer=function(e){return!(e==null||!e._isBuffer)},g.byteLength=function(e,n){var l;switch(e+="",n||"utf8"){case"hex":l=e.length/2;break;case"utf8":case"utf-8":l=Z(e).length;break;case"ascii":case"binary":case"raw":l=e.length;break;case"base64":l=fe(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":l=2*e.length;break;default:throw new Error("Unknown encoding")}return l},g.concat=function(e,n){if(A(z(e),`Usage: Buffer.concat(list, [totalLength])
6
- list should be an Array.`),e.length===0)return new g(0);if(e.length===1)return e[0];if(typeof n!="number")for(b=n=0;b<e.length;b++)n+=e[b].length;for(var l=new g(n),w=0,b=0;b<e.length;b++){var I=e[b];I.copy(l,w),w+=I.length}return l},g.prototype.write=function(e,n,l,w){isFinite(n)?isFinite(l)||(w=l,l=void 0):(Y=w,w=n,n=l,l=Y),n=Number(n)||0;var b,I,P,H,Y=this.length-n;switch((!l||Y<(l=Number(l)))&&(l=Y),w=String(w||"utf8").toLowerCase()){case"hex":b=function(J,q,Q,G){Q=Number(Q)||0;var K=J.length-Q;(!G||K<(G=Number(G)))&&(G=K),A((K=q.length)%2==0,"Invalid hex string"),K/2<G&&(G=K/2);for(var ue=0;ue<G;ue++){var ve=parseInt(q.substr(2*ue,2),16);A(!isNaN(ve),"Invalid hex string"),J[Q+ue]=ve}return g._charsWritten=2*ue,ue}(this,e,n,l);break;case"utf8":case"utf-8":I=this,P=n,H=l,b=g._charsWritten=ee(Z(e),I,P,H);break;case"ascii":case"binary":b=E(this,e,n,l);break;case"base64":I=this,P=n,H=l,b=g._charsWritten=ee(fe(e),I,P,H);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":b=_(this,e,n,l);break;default:throw new Error("Unknown encoding")}return b},g.prototype.toString=function(e,n,l){var w,b,I,P,H=this;if(e=String(e||"utf8").toLowerCase(),n=Number(n)||0,(l=l!==void 0?Number(l):H.length)===n)return"";switch(e){case"hex":w=function(Y,J,q){var Q=Y.length;(!J||J<0)&&(J=0),(!q||q<0||Q<q)&&(q=Q);for(var G="",K=J;K<q;K++)G+=$(Y[K]);return G}(H,n,l);break;case"utf8":case"utf-8":w=function(Y,J,q){var Q="",G="";q=Math.min(Y.length,q);for(var K=J;K<q;K++)Y[K]<=127?(Q+=le(G)+String.fromCharCode(Y[K]),G=""):G+="%"+Y[K].toString(16);return Q+le(G)}(H,n,l);break;case"ascii":case"binary":w=B(H,n,l);break;case"base64":b=H,P=l,w=(I=n)===0&&P===b.length?y.fromByteArray(b):y.fromByteArray(b.slice(I,P));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":w=function(Y,J,q){for(var Q=Y.slice(J,q),G="",K=0;K<Q.length;K+=2)G+=String.fromCharCode(Q[K]+256*Q[K+1]);return G}(H,n,l);break;default:throw new Error("Unknown encoding")}return w},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},g.prototype.copy=function(e,n,l,w){if(n=n||0,(w=w||w===0?w:this.length)!==(l=l||0)&&e.length!==0&&this.length!==0){A(l<=w,"sourceEnd < sourceStart"),A(0<=n&&n<e.length,"targetStart out of bounds"),A(0<=l&&l<this.length,"sourceStart out of bounds"),A(0<=w&&w<=this.length,"sourceEnd out of bounds"),w>this.length&&(w=this.length);var b=(w=e.length-n<w-l?e.length-n+l:w)-l;if(b<100||!g._useTypedArrays)for(var I=0;I<b;I++)e[I+n]=this[I+l];else e._set(this.subarray(l,l+b),n)}},g.prototype.slice=function(e,n){var l=this.length;if(e=N(e,l,0),n=N(n,l,l),g._useTypedArrays)return g._augment(this.subarray(e,n));for(var w=n-e,b=new g(w,void 0,!0),I=0;I<w;I++)b[I]=this[I+e];return b},g.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},g.prototype.set=function(e,n){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,n)},g.prototype.readUInt8=function(e,n){if(n||(A(e!=null,"missing offset"),A(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},g.prototype.readUInt16LE=function(e,n){return v(this,e,!0,n)},g.prototype.readUInt16BE=function(e,n){return v(this,e,!1,n)},g.prototype.readUInt32LE=function(e,n){return L(this,e,!0,n)},g.prototype.readUInt32BE=function(e,n){return L(this,e,!1,n)},g.prototype.readInt8=function(e,n){if(n||(A(e!=null,"missing offset"),A(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},g.prototype.readInt16LE=function(e,n){return c(this,e,!0,n)},g.prototype.readInt16BE=function(e,n){return c(this,e,!1,n)},g.prototype.readInt32LE=function(e,n){return m(this,e,!0,n)},g.prototype.readInt32BE=function(e,n){return m(this,e,!1,n)},g.prototype.readFloatLE=function(e,n){return r(this,e,!0,n)},g.prototype.readFloatBE=function(e,n){return r(this,e,!1,n)},g.prototype.readDoubleLE=function(e,n){return i(this,e,!0,n)},g.prototype.readDoubleBE=function(e,n){return i(this,e,!1,n)},g.prototype.writeUInt8=function(e,n,l){l||(A(e!=null,"missing value"),A(n!=null,"missing offset"),A(n<this.length,"trying to write beyond buffer length"),ae(e,255)),n>=this.length||(this[n]=e)},g.prototype.writeUInt16LE=function(e,n,l){t(this,e,n,!0,l)},g.prototype.writeUInt16BE=function(e,n,l){t(this,e,n,!1,l)},g.prototype.writeUInt32LE=function(e,n,l){h(this,e,n,!0,l)},g.prototype.writeUInt32BE=function(e,n,l){h(this,e,n,!1,l)},g.prototype.writeInt8=function(e,n,l){l||(A(e!=null,"missing value"),A(n!=null,"missing offset"),A(n<this.length,"Trying to write beyond buffer length"),re(e,127,-128)),n>=this.length||(0<=e?this.writeUInt8(e,n,l):this.writeUInt8(255+e+1,n,l))},g.prototype.writeInt16LE=function(e,n,l){p(this,e,n,!0,l)},g.prototype.writeInt16BE=function(e,n,l){p(this,e,n,!1,l)},g.prototype.writeInt32LE=function(e,n,l){D(this,e,n,!0,l)},g.prototype.writeInt32BE=function(e,n,l){D(this,e,n,!1,l)},g.prototype.writeFloatLE=function(e,n,l){C(this,e,n,!0,l)},g.prototype.writeFloatBE=function(e,n,l){C(this,e,n,!1,l)},g.prototype.writeDoubleLE=function(e,n,l){O(this,e,n,!0,l)},g.prototype.writeDoubleBE=function(e,n,l){O(this,e,n,!1,l)},g.prototype.fill=function(e,n,l){if(n=n||0,l=l||this.length,A(typeof(e=typeof(e=e||0)=="string"?e.charCodeAt(0):e)=="number"&&!isNaN(e),"value is not a number"),A(n<=l,"end < start"),l!==n&&this.length!==0){A(0<=n&&n<this.length,"start out of bounds"),A(0<=l&&l<=this.length,"end out of bounds");for(var w=n;w<l;w++)this[w]=e}},g.prototype.inspect=function(){for(var e=[],n=this.length,l=0;l<n;l++)if(e[l]=$(this[l]),l===f.INSPECT_MAX_BYTES){e[l+1]="...";break}return"<Buffer "+e.join(" ")+">"},g.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(g._useTypedArrays)return new g(this).buffer;for(var e=new Uint8Array(this.length),n=0,l=e.length;n<l;n+=1)e[n]=this[n];return e.buffer};var j=g.prototype;function N(e,n,l){return typeof e!="number"?l:n<=(e=~~e)?n:0<=e||0<=(e+=n)?e:0}function X(e){return(e=~~Math.ceil(+e))<0?0:e}function z(e){return(Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"})(e)}function $(e){return e<16?"0"+e.toString(16):e.toString(16)}function Z(e){for(var n=[],l=0;l<e.length;l++){var w=e.charCodeAt(l);if(w<=127)n.push(e.charCodeAt(l));else for(var b=l,I=(55296<=w&&w<=57343&&l++,encodeURIComponent(e.slice(b,l+1)).substr(1).split("%")),P=0;P<I.length;P++)n.push(parseInt(I[P],16))}return n}function fe(e){return y.toByteArray(e)}function ee(e,n,l,w){for(var b=0;b<w&&!(b+l>=n.length||b>=e.length);b++)n[b+l]=e[b];return b}function le(e){try{return decodeURIComponent(e)}catch{return"�"}}function ae(e,n){A(typeof e=="number","cannot write a non-number as a number"),A(0<=e,"specified a negative value for writing an unsigned value"),A(e<=n,"value is larger than maximum value for type"),A(Math.floor(e)===e,"value has a fractional component")}function re(e,n,l){A(typeof e=="number","cannot write a non-number as a number"),A(e<=n,"value larger than maximum allowed value"),A(l<=e,"value smaller than minimum allowed value"),A(Math.floor(e)===e,"value has a fractional component")}function se(e,n,l){A(typeof e=="number","cannot write a non-number as a number"),A(e<=n,"value larger than maximum allowed value"),A(l<=e,"value smaller than minimum allowed value")}function A(e,n){if(!e)throw new Error(n||"Failed assertion")}g._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=j.get,e.set=j.set,e.write=j.write,e.toString=j.toString,e.toLocaleString=j.toString,e.toJSON=j.toJSON,e.copy=j.copy,e.slice=j.slice,e.readUInt8=j.readUInt8,e.readUInt16LE=j.readUInt16LE,e.readUInt16BE=j.readUInt16BE,e.readUInt32LE=j.readUInt32LE,e.readUInt32BE=j.readUInt32BE,e.readInt8=j.readInt8,e.readInt16LE=j.readInt16LE,e.readInt16BE=j.readInt16BE,e.readInt32LE=j.readInt32LE,e.readInt32BE=j.readInt32BE,e.readFloatLE=j.readFloatLE,e.readFloatBE=j.readFloatBE,e.readDoubleLE=j.readDoubleLE,e.readDoubleBE=j.readDoubleBE,e.writeUInt8=j.writeUInt8,e.writeUInt16LE=j.writeUInt16LE,e.writeUInt16BE=j.writeUInt16BE,e.writeUInt32LE=j.writeUInt32LE,e.writeUInt32BE=j.writeUInt32BE,e.writeInt8=j.writeInt8,e.writeInt16LE=j.writeInt16LE,e.writeInt16BE=j.writeInt16BE,e.writeInt32LE=j.writeInt32LE,e.writeInt32BE=j.writeInt32BE,e.writeFloatLE=j.writeFloatLE,e.writeFloatBE=j.writeFloatBE,e.writeDoubleLE=j.writeDoubleLE,e.writeDoubleBE=j.writeDoubleBE,e.fill=j.fill,e.inspect=j.inspect,e.toArrayBuffer=j.toArrayBuffer,e}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(o,u,f){(function(d,U,y,S,x,F,M,W,R){var y=o("buffer").Buffer,T=4,g=new y(T);g.fill(0),u.exports={hash:function(E,_,B,v){for(var L=_(function(t,h){t.length%T!=0&&(p=t.length+(T-t.length%T),t=y.concat([t,g],p));for(var p,D=[],C=h?t.readInt32BE:t.readInt32LE,O=0;O<t.length;O+=T)D.push(C.call(t,O));return D}(E=y.isBuffer(E)?E:new y(E),v),8*E.length),_=v,c=new y(B),m=_?c.writeInt32BE:c.writeInt32LE,r=0;r<L.length;r++)m.call(c,L[r],4*r,!0);return c}}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(o,u,f){(function(d,U,y,S,x,F,M,W,R){var y=o("buffer").Buffer,T=o("./sha"),g=o("./sha256"),E=o("./rng"),_={sha1:T,sha256:g,md5:o("./md5")},B=64,v=new y(B);function L(t,h){var p=_[t=t||"sha1"],D=[];return p||c("algorithm:",t,"is not yet supported"),{update:function(C){return y.isBuffer(C)||(C=new y(C)),D.push(C),C.length,this},digest:function(C){var O=y.concat(D),O=h?function(j,N,X){y.isBuffer(N)||(N=new y(N)),y.isBuffer(X)||(X=new y(X)),N.length>B?N=j(N):N.length<B&&(N=y.concat([N,v],B));for(var z=new y(B),$=new y(B),Z=0;Z<B;Z++)z[Z]=54^N[Z],$[Z]=92^N[Z];return X=j(y.concat([z,X])),j(y.concat([$,X]))}(p,h,O):p(O);return D=null,C?O.toString(C):O}}}function c(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
7
- `))}v.fill(0),f.createHash=function(t){return L(t)},f.createHmac=L,f.randomBytes=function(t,h){if(!h||!h.call)return new y(E(t));try{h.call(this,void 0,new y(E(t)))}catch(p){h(p)}};var m,r=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],i=function(t){f[t]=function(){c("sorry,",t,"is not implemented yet")}};for(m in r)i(r[m])}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(o,u,f){(function(d,U,k,S,x,F,M,W,R){var y=o("./helpers");function T(c,m){c[m>>5]|=128<<m%32,c[14+(m+64>>>9<<4)]=m;for(var r=1732584193,i=-271733879,t=-1732584194,h=271733878,p=0;p<c.length;p+=16){var D=r,C=i,O=t,j=h,r=E(r,i,t,h,c[p+0],7,-680876936),h=E(h,r,i,t,c[p+1],12,-389564586),t=E(t,h,r,i,c[p+2],17,606105819),i=E(i,t,h,r,c[p+3],22,-1044525330);r=E(r,i,t,h,c[p+4],7,-176418897),h=E(h,r,i,t,c[p+5],12,1200080426),t=E(t,h,r,i,c[p+6],17,-1473231341),i=E(i,t,h,r,c[p+7],22,-45705983),r=E(r,i,t,h,c[p+8],7,1770035416),h=E(h,r,i,t,c[p+9],12,-1958414417),t=E(t,h,r,i,c[p+10],17,-42063),i=E(i,t,h,r,c[p+11],22,-1990404162),r=E(r,i,t,h,c[p+12],7,1804603682),h=E(h,r,i,t,c[p+13],12,-40341101),t=E(t,h,r,i,c[p+14],17,-1502002290),r=_(r,i=E(i,t,h,r,c[p+15],22,1236535329),t,h,c[p+1],5,-165796510),h=_(h,r,i,t,c[p+6],9,-1069501632),t=_(t,h,r,i,c[p+11],14,643717713),i=_(i,t,h,r,c[p+0],20,-373897302),r=_(r,i,t,h,c[p+5],5,-701558691),h=_(h,r,i,t,c[p+10],9,38016083),t=_(t,h,r,i,c[p+15],14,-660478335),i=_(i,t,h,r,c[p+4],20,-405537848),r=_(r,i,t,h,c[p+9],5,568446438),h=_(h,r,i,t,c[p+14],9,-1019803690),t=_(t,h,r,i,c[p+3],14,-187363961),i=_(i,t,h,r,c[p+8],20,1163531501),r=_(r,i,t,h,c[p+13],5,-1444681467),h=_(h,r,i,t,c[p+2],9,-51403784),t=_(t,h,r,i,c[p+7],14,1735328473),r=B(r,i=_(i,t,h,r,c[p+12],20,-1926607734),t,h,c[p+5],4,-378558),h=B(h,r,i,t,c[p+8],11,-2022574463),t=B(t,h,r,i,c[p+11],16,1839030562),i=B(i,t,h,r,c[p+14],23,-35309556),r=B(r,i,t,h,c[p+1],4,-1530992060),h=B(h,r,i,t,c[p+4],11,1272893353),t=B(t,h,r,i,c[p+7],16,-155497632),i=B(i,t,h,r,c[p+10],23,-1094730640),r=B(r,i,t,h,c[p+13],4,681279174),h=B(h,r,i,t,c[p+0],11,-358537222),t=B(t,h,r,i,c[p+3],16,-722521979),i=B(i,t,h,r,c[p+6],23,76029189),r=B(r,i,t,h,c[p+9],4,-640364487),h=B(h,r,i,t,c[p+12],11,-421815835),t=B(t,h,r,i,c[p+15],16,530742520),r=v(r,i=B(i,t,h,r,c[p+2],23,-995338651),t,h,c[p+0],6,-198630844),h=v(h,r,i,t,c[p+7],10,1126891415),t=v(t,h,r,i,c[p+14],15,-1416354905),i=v(i,t,h,r,c[p+5],21,-57434055),r=v(r,i,t,h,c[p+12],6,1700485571),h=v(h,r,i,t,c[p+3],10,-1894986606),t=v(t,h,r,i,c[p+10],15,-1051523),i=v(i,t,h,r,c[p+1],21,-2054922799),r=v(r,i,t,h,c[p+8],6,1873313359),h=v(h,r,i,t,c[p+15],10,-30611744),t=v(t,h,r,i,c[p+6],15,-1560198380),i=v(i,t,h,r,c[p+13],21,1309151649),r=v(r,i,t,h,c[p+4],6,-145523070),h=v(h,r,i,t,c[p+11],10,-1120210379),t=v(t,h,r,i,c[p+2],15,718787259),i=v(i,t,h,r,c[p+9],21,-343485551),r=L(r,D),i=L(i,C),t=L(t,O),h=L(h,j)}return Array(r,i,t,h)}function g(c,m,r,i,t,h){return L((m=L(L(m,c),L(i,h)))<<t|m>>>32-t,r)}function E(c,m,r,i,t,h,p){return g(m&r|~m&i,c,m,t,h,p)}function _(c,m,r,i,t,h,p){return g(m&i|r&~i,c,m,t,h,p)}function B(c,m,r,i,t,h,p){return g(m^r^i,c,m,t,h,p)}function v(c,m,r,i,t,h,p){return g(r^(m|~i),c,m,t,h,p)}function L(c,m){var r=(65535&c)+(65535&m);return(c>>16)+(m>>16)+(r>>16)<<16|65535&r}u.exports=function(c){return y.hash(c,T,16)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(o,u,f){(function(d,U,k,S,x,F,M,W,R){u.exports=function(y){for(var T,g=new Array(y),E=0;E<y;E++)!(3&E)&&(T=4294967296*Math.random()),g[E]=T>>>((3&E)<<3)&255;return g}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(o,u,f){(function(d,U,k,S,x,F,M,W,R){var y=o("./helpers");function T(_,B){_[B>>5]|=128<<24-B%32,_[15+(B+64>>9<<4)]=B;for(var v,L,c,m=Array(80),r=1732584193,i=-271733879,t=-1732584194,h=271733878,p=-1009589776,D=0;D<_.length;D+=16){for(var C=r,O=i,j=t,N=h,X=p,z=0;z<80;z++){m[z]=z<16?_[D+z]:E(m[z-3]^m[z-8]^m[z-14]^m[z-16],1);var $=g(g(E(r,5),($=i,L=t,c=h,(v=z)<20?$&L|~$&c:!(v<40)&&v<60?$&L|$&c|L&c:$^L^c)),g(g(p,m[z]),(v=z)<20?1518500249:v<40?1859775393:v<60?-1894007588:-899497514)),p=h,h=t,t=E(i,30),i=r,r=$}r=g(r,C),i=g(i,O),t=g(t,j),h=g(h,N),p=g(p,X)}return Array(r,i,t,h,p)}function g(_,B){var v=(65535&_)+(65535&B);return(_>>16)+(B>>16)+(v>>16)<<16|65535&v}function E(_,B){return _<<B|_>>>32-B}u.exports=function(_){return y.hash(_,T,20,!0)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(o,u,f){(function(d,U,k,S,x,F,M,W,R){function y(B,v){var L=(65535&B)+(65535&v);return(B>>16)+(v>>16)+(L>>16)<<16|65535&L}function T(B,v){var L,c=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),m=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),r=new Array(64);B[v>>5]|=128<<24-v%32,B[15+(v+64>>9<<4)]=v;for(var i,t,h=0;h<B.length;h+=16){for(var p=m[0],D=m[1],C=m[2],O=m[3],j=m[4],N=m[5],X=m[6],z=m[7],$=0;$<64;$++)r[$]=$<16?B[$+h]:y(y(y((t=r[$-2],E(t,17)^E(t,19)^_(t,10)),r[$-7]),(t=r[$-15],E(t,7)^E(t,18)^_(t,3))),r[$-16]),L=y(y(y(y(z,E(t=j,6)^E(t,11)^E(t,25)),j&N^~j&X),c[$]),r[$]),i=y(E(i=p,2)^E(i,13)^E(i,22),p&D^p&C^D&C),z=X,X=N,N=j,j=y(O,L),O=C,C=D,D=p,p=y(L,i);m[0]=y(p,m[0]),m[1]=y(D,m[1]),m[2]=y(C,m[2]),m[3]=y(O,m[3]),m[4]=y(j,m[4]),m[5]=y(N,m[5]),m[6]=y(X,m[6]),m[7]=y(z,m[7])}return m}var g=o("./helpers"),E=function(B,v){return B>>>v|B<<32-v},_=function(B,v){return B>>>v};u.exports=function(B){return g.hash(B,T,32,!0)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(o,u,f){(function(d,U,k,S,x,F,M,W,R){f.read=function(y,T,g,E,h){var B,v,L=8*h-E-1,c=(1<<L)-1,m=c>>1,r=-7,i=g?h-1:0,t=g?-1:1,h=y[T+i];for(i+=t,B=h&(1<<-r)-1,h>>=-r,r+=L;0<r;B=256*B+y[T+i],i+=t,r-=8);for(v=B&(1<<-r)-1,B>>=-r,r+=E;0<r;v=256*v+y[T+i],i+=t,r-=8);if(B===0)B=1-m;else{if(B===c)return v?NaN:1/0*(h?-1:1);v+=Math.pow(2,E),B-=m}return(h?-1:1)*v*Math.pow(2,B-E)},f.write=function(y,T,g,E,_,p){var v,L,c=8*p-_-1,m=(1<<c)-1,r=m>>1,i=_===23?Math.pow(2,-24)-Math.pow(2,-77):0,t=E?0:p-1,h=E?1:-1,p=T<0||T===0&&1/T<0?1:0;for(T=Math.abs(T),isNaN(T)||T===1/0?(L=isNaN(T)?1:0,v=m):(v=Math.floor(Math.log(T)/Math.LN2),T*(E=Math.pow(2,-v))<1&&(v--,E*=2),2<=(T+=1<=v+r?i/E:i*Math.pow(2,1-r))*E&&(v++,E/=2),m<=v+r?(L=0,v=m):1<=v+r?(L=(T*E-1)*Math.pow(2,_),v+=r):(L=T*Math.pow(2,r-1)*Math.pow(2,_),v=0));8<=_;y[g+t]=255&L,t+=h,L/=256,_-=8);for(v=v<<_|L,c+=_;0<c;y[g+t]=255&v,t+=h,v/=256,c-=8);y[g+t-h]|=128*p}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(o,u,f){(function(d,U,k,S,x,F,M,W,R){var y,T,g;function E(){}(d=u.exports={}).nextTick=(T=typeof window<"u"&&window.setImmediate,g=typeof window<"u"&&window.postMessage&&window.addEventListener,T?function(_){return window.setImmediate(_)}:g?(y=[],window.addEventListener("message",function(_){var B=_.source;B!==window&&B!==null||_.data!=="process-tick"||(_.stopPropagation(),0<y.length&&y.shift()())},!0),function(_){y.push(_),window.postMessage("process-tick","*")}):function(_){setTimeout(_,0)}),d.title="browser",d.browser=!0,d.env={},d.argv=[],d.on=E,d.addListener=E,d.once=E,d.off=E,d.removeListener=E,d.removeAllListeners=E,d.emit=E,d.binding=function(_){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(_){throw new Error("process.chdir is not supported")}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})})(Te);var Rt=Te.exports;const Ee=Wt(Rt);function V(a){return a!=null&&typeof a=="object"&&a["@@functional/placeholder"]===!0}function ie(a){return function s(o){return arguments.length===0||V(o)?s:a.apply(this,arguments)}}function oe(a){return function s(o,u){switch(arguments.length){case 0:return s;case 1:return V(o)?s:ie(function(f){return a(o,f)});default:return V(o)&&V(u)?s:V(o)?ie(function(f){return a(f,u)}):V(u)?ie(function(f){return a(o,f)}):a(o,u)}}}function je(a){return function s(o,u,f){switch(arguments.length){case 0:return s;case 1:return V(o)?s:oe(function(d,U){return a(o,d,U)});case 2:return V(o)&&V(u)?s:V(o)?oe(function(d,U){return a(d,u,U)}):V(u)?oe(function(d,U){return a(o,d,U)}):ie(function(d){return a(o,u,d)});default:return V(o)&&V(u)&&V(f)?s:V(o)&&V(u)?oe(function(d,U){return a(d,U,f)}):V(o)&&V(f)?oe(function(d,U){return a(d,u,U)}):V(u)&&V(f)?oe(function(d,U){return a(o,d,U)}):V(o)?ie(function(d){return a(d,u,f)}):V(u)?ie(function(d){return a(o,d,f)}):V(f)?ie(function(d){return a(o,u,d)}):a(o,u,f)}}}function de(a,s){return Object.prototype.hasOwnProperty.call(s,a)}function Be(a){return Object.prototype.toString.call(a)==="[object Object]"}var Nt=je(function(s,o,u){var f={},d;for(d in o)de(d,o)&&(f[d]=de(d,u)?s(d,o[d],u[d]):o[d]);for(d in u)de(d,u)&&!de(d,f)&&(f[d]=u[d]);return f}),$t=je(function a(s,o,u){return Nt(function(f,d,U){return Be(d)&&Be(U)?a(s,d,U):s(f,d,U)},o,u)}),Ht=oe(function(s,o){return $t(function(u,f,d){return d},s,o)});let Yt={headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"include"};async function zt(a,s={}){const{baseURL:o="",...u}=s;return fetch(`${o}${a}`,Ht(Yt,u)).then(f=>{if(!f.ok)throw f;return f})}/*!
5
+ `)},_domwindow:function(){return i("domwindow")},_bigint:function(t){return i("bigint:"+t.toString())},_process:function(){return i("process")},_timer:function(){return i("timer")},_pipe:function(){return i("pipe")},_tcp:function(){return i("tcp")},_udp:function(){return i("udp")},_tty:function(){return i("tty")},_statwatcher:function(){return i("statwatcher")},_securecontext:function(){return i("securecontext")},_connection:function(){return i("connection")},_zlib:function(){return i("zlib")},_context:function(){return i("context")},_nodescript:function(){return i("nodescript")},_httpparser:function(){return i("httpparser")},_dataview:function(){return i("dataview")},_signal:function(){return i("signal")},_fsevent:function(){return i("fsevent")},_tlswrap:function(){return i("tlswrap")}}}function L(){return{buf:"",write:function(c){this.buf+=c},end:function(c){this.buf+=c},read:function(){return this.buf}}}f.writeToStream=function(c,m,r){return r===void 0&&(r=m,m={}),v(m=S(c,m),r).dispatch(c)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(o,u,f){(function(h,k,U,_,x,F,M,W,R){(function(y){var T=typeof Uint8Array<"u"?Uint8Array:Array,g=43,E=47,S=48,A=97,v=65,L=45,c=95;function m(r){return r=r.charCodeAt(0),r===g||r===L?62:r===E||r===c?63:r<S?-1:r<S+10?r-S+26+26:r<v+26?r-v:r<A+26?r-A+26:void 0}y.toByteArray=function(r){var i,t;if(0<r.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var d=r.length,d=r.charAt(d-2)==="="?2:r.charAt(d-1)==="="?1:0,p=new T(3*r.length/4-d),C=0<d?r.length-4:r.length,D=0;function P(j){p[D++]=j}for(i=0;i<C;i+=4,0)P((16711680&(t=m(r.charAt(i))<<18|m(r.charAt(i+1))<<12|m(r.charAt(i+2))<<6|m(r.charAt(i+3))))>>16),P((65280&t)>>8),P(255&t);return d==2?P(255&(t=m(r.charAt(i))<<2|m(r.charAt(i+1))>>4)):d==1&&(P((t=m(r.charAt(i))<<10|m(r.charAt(i+1))<<4|m(r.charAt(i+2))>>2)>>8&255),P(255&t)),p},y.fromByteArray=function(r){var i,t,d,p,C=r.length%3,D="";function P(j){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(j)}for(i=0,d=r.length-C;i<d;i+=3)t=(r[i]<<16)+(r[i+1]<<8)+r[i+2],D+=P((p=t)>>18&63)+P(p>>12&63)+P(p>>6&63)+P(63&p);switch(C){case 1:D=(D+=P((t=r[r.length-1])>>2))+P(t<<4&63)+"==";break;case 2:D=(D=(D+=P((t=(r[r.length-2]<<8)+r[r.length-1])>>10))+P(t>>4&63))+P(t<<2&63)+"="}return D}})(f===void 0?this.base64js={}:f)}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(o,u,f){(function(h,k,g,_,x,F,M,W,R){var y=o("base64-js"),T=o("ieee754");function g(e,n,l){if(!(this instanceof g))return new g(e,n,l);var w,b,I,O,H=typeof e;if(n==="base64"&&H=="string")for(e=(O=e).trim?O.trim():O.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if(H=="number")w=X(e);else if(H=="string")w=g.byteLength(e,n);else{if(H!="object")throw new Error("First argument needs to be a number, array or string.");w=X(e.length)}if(g._useTypedArrays?b=g._augment(new Uint8Array(w)):((b=this).length=w,b._isBuffer=!0),g._useTypedArrays&&typeof e.byteLength=="number")b._set(e);else if(z(O=e)||g.isBuffer(O)||O&&typeof O=="object"&&typeof O.length=="number")for(I=0;I<w;I++)g.isBuffer(e)?b[I]=e.readUInt8(I):b[I]=e[I];else if(H=="string")b.write(e,0,n);else if(H=="number"&&!g._useTypedArrays&&!l)for(I=0;I<w;I++)b[I]=0;return b}function E(e,n,l,w){return g._charsWritten=ee(function(b){for(var I=[],O=0;O<b.length;O++)I.push(255&b.charCodeAt(O));return I}(n),e,l,w)}function S(e,n,l,w){return g._charsWritten=ee(function(b){for(var I,O,H=[],Y=0;Y<b.length;Y++)O=b.charCodeAt(Y),I=O>>8,O=O%256,H.push(O),H.push(I);return H}(n),e,l,w)}function A(e,n,l){var w="";l=Math.min(e.length,l);for(var b=n;b<l;b++)w+=String.fromCharCode(e[b]);return w}function v(e,n,l,I){I||(B(typeof l=="boolean","missing or invalid endian"),B(n!=null,"missing offset"),B(n+1<e.length,"Trying to read beyond buffer length"));var b,I=e.length;if(!(I<=n))return l?(b=e[n],n+1<I&&(b|=e[n+1]<<8)):(b=e[n]<<8,n+1<I&&(b|=e[n+1])),b}function L(e,n,l,I){I||(B(typeof l=="boolean","missing or invalid endian"),B(n!=null,"missing offset"),B(n+3<e.length,"Trying to read beyond buffer length"));var b,I=e.length;if(!(I<=n))return l?(n+2<I&&(b=e[n+2]<<16),n+1<I&&(b|=e[n+1]<<8),b|=e[n],n+3<I&&(b+=e[n+3]<<24>>>0)):(n+1<I&&(b=e[n+1]<<16),n+2<I&&(b|=e[n+2]<<8),n+3<I&&(b|=e[n+3]),b+=e[n]<<24>>>0),b}function c(e,n,l,w){if(w||(B(typeof l=="boolean","missing or invalid endian"),B(n!=null,"missing offset"),B(n+1<e.length,"Trying to read beyond buffer length")),!(e.length<=n))return w=v(e,n,l,!0),32768&w?-1*(65535-w+1):w}function m(e,n,l,w){if(w||(B(typeof l=="boolean","missing or invalid endian"),B(n!=null,"missing offset"),B(n+3<e.length,"Trying to read beyond buffer length")),!(e.length<=n))return w=L(e,n,l,!0),2147483648&w?-1*(4294967295-w+1):w}function r(e,n,l,w){return w||(B(typeof l=="boolean","missing or invalid endian"),B(n+3<e.length,"Trying to read beyond buffer length")),T.read(e,n,l,23,4)}function i(e,n,l,w){return w||(B(typeof l=="boolean","missing or invalid endian"),B(n+7<e.length,"Trying to read beyond buffer length")),T.read(e,n,l,52,8)}function t(e,n,l,w,b){if(b||(B(n!=null,"missing value"),B(typeof w=="boolean","missing or invalid endian"),B(l!=null,"missing offset"),B(l+1<e.length,"trying to write beyond buffer length"),ae(n,65535)),b=e.length,!(b<=l))for(var I=0,O=Math.min(b-l,2);I<O;I++)e[l+I]=(n&255<<8*(w?I:1-I))>>>8*(w?I:1-I)}function d(e,n,l,w,b){if(b||(B(n!=null,"missing value"),B(typeof w=="boolean","missing or invalid endian"),B(l!=null,"missing offset"),B(l+3<e.length,"trying to write beyond buffer length"),ae(n,4294967295)),b=e.length,!(b<=l))for(var I=0,O=Math.min(b-l,4);I<O;I++)e[l+I]=n>>>8*(w?I:3-I)&255}function p(e,n,l,w,b){b||(B(n!=null,"missing value"),B(typeof w=="boolean","missing or invalid endian"),B(l!=null,"missing offset"),B(l+1<e.length,"Trying to write beyond buffer length"),re(n,32767,-32768)),e.length<=l||t(e,0<=n?n:65535+n+1,l,w,b)}function C(e,n,l,w,b){b||(B(n!=null,"missing value"),B(typeof w=="boolean","missing or invalid endian"),B(l!=null,"missing offset"),B(l+3<e.length,"Trying to write beyond buffer length"),re(n,2147483647,-2147483648)),e.length<=l||d(e,0<=n?n:4294967295+n+1,l,w,b)}function D(e,n,l,w,b){b||(B(n!=null,"missing value"),B(typeof w=="boolean","missing or invalid endian"),B(l!=null,"missing offset"),B(l+3<e.length,"Trying to write beyond buffer length"),se(n,34028234663852886e22,-34028234663852886e22)),e.length<=l||T.write(e,n,l,w,23,4)}function P(e,n,l,w,b){b||(B(n!=null,"missing value"),B(typeof w=="boolean","missing or invalid endian"),B(l!=null,"missing offset"),B(l+7<e.length,"Trying to write beyond buffer length"),se(n,17976931348623157e292,-17976931348623157e292)),e.length<=l||T.write(e,n,l,w,52,8)}f.Buffer=g,f.SlowBuffer=g,f.INSPECT_MAX_BYTES=50,g.poolSize=8192,g._useTypedArrays=function(){try{var e=new ArrayBuffer(0),n=new Uint8Array(e);return n.foo=function(){return 42},n.foo()===42&&typeof n.subarray=="function"}catch{return!1}}(),g.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.isBuffer=function(e){return!(e==null||!e._isBuffer)},g.byteLength=function(e,n){var l;switch(e+="",n||"utf8"){case"hex":l=e.length/2;break;case"utf8":case"utf-8":l=Z(e).length;break;case"ascii":case"binary":case"raw":l=e.length;break;case"base64":l=fe(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":l=2*e.length;break;default:throw new Error("Unknown encoding")}return l},g.concat=function(e,n){if(B(z(e),`Usage: Buffer.concat(list, [totalLength])
6
+ list should be an Array.`),e.length===0)return new g(0);if(e.length===1)return e[0];if(typeof n!="number")for(b=n=0;b<e.length;b++)n+=e[b].length;for(var l=new g(n),w=0,b=0;b<e.length;b++){var I=e[b];I.copy(l,w),w+=I.length}return l},g.prototype.write=function(e,n,l,w){isFinite(n)?isFinite(l)||(w=l,l=void 0):(Y=w,w=n,n=l,l=Y),n=Number(n)||0;var b,I,O,H,Y=this.length-n;switch((!l||Y<(l=Number(l)))&&(l=Y),w=String(w||"utf8").toLowerCase()){case"hex":b=function(J,q,Q,G){Q=Number(Q)||0;var K=J.length-Q;(!G||K<(G=Number(G)))&&(G=K),B((K=q.length)%2==0,"Invalid hex string"),K/2<G&&(G=K/2);for(var ue=0;ue<G;ue++){var ve=parseInt(q.substr(2*ue,2),16);B(!isNaN(ve),"Invalid hex string"),J[Q+ue]=ve}return g._charsWritten=2*ue,ue}(this,e,n,l);break;case"utf8":case"utf-8":I=this,O=n,H=l,b=g._charsWritten=ee(Z(e),I,O,H);break;case"ascii":case"binary":b=E(this,e,n,l);break;case"base64":I=this,O=n,H=l,b=g._charsWritten=ee(fe(e),I,O,H);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":b=S(this,e,n,l);break;default:throw new Error("Unknown encoding")}return b},g.prototype.toString=function(e,n,l){var w,b,I,O,H=this;if(e=String(e||"utf8").toLowerCase(),n=Number(n)||0,(l=l!==void 0?Number(l):H.length)===n)return"";switch(e){case"hex":w=function(Y,J,q){var Q=Y.length;(!J||J<0)&&(J=0),(!q||q<0||Q<q)&&(q=Q);for(var G="",K=J;K<q;K++)G+=$(Y[K]);return G}(H,n,l);break;case"utf8":case"utf-8":w=function(Y,J,q){var Q="",G="";q=Math.min(Y.length,q);for(var K=J;K<q;K++)Y[K]<=127?(Q+=le(G)+String.fromCharCode(Y[K]),G=""):G+="%"+Y[K].toString(16);return Q+le(G)}(H,n,l);break;case"ascii":case"binary":w=A(H,n,l);break;case"base64":b=H,O=l,w=(I=n)===0&&O===b.length?y.fromByteArray(b):y.fromByteArray(b.slice(I,O));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":w=function(Y,J,q){for(var Q=Y.slice(J,q),G="",K=0;K<Q.length;K+=2)G+=String.fromCharCode(Q[K]+256*Q[K+1]);return G}(H,n,l);break;default:throw new Error("Unknown encoding")}return w},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},g.prototype.copy=function(e,n,l,w){if(n=n||0,(w=w||w===0?w:this.length)!==(l=l||0)&&e.length!==0&&this.length!==0){B(l<=w,"sourceEnd < sourceStart"),B(0<=n&&n<e.length,"targetStart out of bounds"),B(0<=l&&l<this.length,"sourceStart out of bounds"),B(0<=w&&w<=this.length,"sourceEnd out of bounds"),w>this.length&&(w=this.length);var b=(w=e.length-n<w-l?e.length-n+l:w)-l;if(b<100||!g._useTypedArrays)for(var I=0;I<b;I++)e[I+n]=this[I+l];else e._set(this.subarray(l,l+b),n)}},g.prototype.slice=function(e,n){var l=this.length;if(e=N(e,l,0),n=N(n,l,l),g._useTypedArrays)return g._augment(this.subarray(e,n));for(var w=n-e,b=new g(w,void 0,!0),I=0;I<w;I++)b[I]=this[I+e];return b},g.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},g.prototype.set=function(e,n){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,n)},g.prototype.readUInt8=function(e,n){if(n||(B(e!=null,"missing offset"),B(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},g.prototype.readUInt16LE=function(e,n){return v(this,e,!0,n)},g.prototype.readUInt16BE=function(e,n){return v(this,e,!1,n)},g.prototype.readUInt32LE=function(e,n){return L(this,e,!0,n)},g.prototype.readUInt32BE=function(e,n){return L(this,e,!1,n)},g.prototype.readInt8=function(e,n){if(n||(B(e!=null,"missing offset"),B(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},g.prototype.readInt16LE=function(e,n){return c(this,e,!0,n)},g.prototype.readInt16BE=function(e,n){return c(this,e,!1,n)},g.prototype.readInt32LE=function(e,n){return m(this,e,!0,n)},g.prototype.readInt32BE=function(e,n){return m(this,e,!1,n)},g.prototype.readFloatLE=function(e,n){return r(this,e,!0,n)},g.prototype.readFloatBE=function(e,n){return r(this,e,!1,n)},g.prototype.readDoubleLE=function(e,n){return i(this,e,!0,n)},g.prototype.readDoubleBE=function(e,n){return i(this,e,!1,n)},g.prototype.writeUInt8=function(e,n,l){l||(B(e!=null,"missing value"),B(n!=null,"missing offset"),B(n<this.length,"trying to write beyond buffer length"),ae(e,255)),n>=this.length||(this[n]=e)},g.prototype.writeUInt16LE=function(e,n,l){t(this,e,n,!0,l)},g.prototype.writeUInt16BE=function(e,n,l){t(this,e,n,!1,l)},g.prototype.writeUInt32LE=function(e,n,l){d(this,e,n,!0,l)},g.prototype.writeUInt32BE=function(e,n,l){d(this,e,n,!1,l)},g.prototype.writeInt8=function(e,n,l){l||(B(e!=null,"missing value"),B(n!=null,"missing offset"),B(n<this.length,"Trying to write beyond buffer length"),re(e,127,-128)),n>=this.length||(0<=e?this.writeUInt8(e,n,l):this.writeUInt8(255+e+1,n,l))},g.prototype.writeInt16LE=function(e,n,l){p(this,e,n,!0,l)},g.prototype.writeInt16BE=function(e,n,l){p(this,e,n,!1,l)},g.prototype.writeInt32LE=function(e,n,l){C(this,e,n,!0,l)},g.prototype.writeInt32BE=function(e,n,l){C(this,e,n,!1,l)},g.prototype.writeFloatLE=function(e,n,l){D(this,e,n,!0,l)},g.prototype.writeFloatBE=function(e,n,l){D(this,e,n,!1,l)},g.prototype.writeDoubleLE=function(e,n,l){P(this,e,n,!0,l)},g.prototype.writeDoubleBE=function(e,n,l){P(this,e,n,!1,l)},g.prototype.fill=function(e,n,l){if(n=n||0,l=l||this.length,B(typeof(e=typeof(e=e||0)=="string"?e.charCodeAt(0):e)=="number"&&!isNaN(e),"value is not a number"),B(n<=l,"end < start"),l!==n&&this.length!==0){B(0<=n&&n<this.length,"start out of bounds"),B(0<=l&&l<=this.length,"end out of bounds");for(var w=n;w<l;w++)this[w]=e}},g.prototype.inspect=function(){for(var e=[],n=this.length,l=0;l<n;l++)if(e[l]=$(this[l]),l===f.INSPECT_MAX_BYTES){e[l+1]="...";break}return"<Buffer "+e.join(" ")+">"},g.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(g._useTypedArrays)return new g(this).buffer;for(var e=new Uint8Array(this.length),n=0,l=e.length;n<l;n+=1)e[n]=this[n];return e.buffer};var j=g.prototype;function N(e,n,l){return typeof e!="number"?l:n<=(e=~~e)?n:0<=e||0<=(e+=n)?e:0}function X(e){return(e=~~Math.ceil(+e))<0?0:e}function z(e){return(Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"})(e)}function $(e){return e<16?"0"+e.toString(16):e.toString(16)}function Z(e){for(var n=[],l=0;l<e.length;l++){var w=e.charCodeAt(l);if(w<=127)n.push(e.charCodeAt(l));else for(var b=l,I=(55296<=w&&w<=57343&&l++,encodeURIComponent(e.slice(b,l+1)).substr(1).split("%")),O=0;O<I.length;O++)n.push(parseInt(I[O],16))}return n}function fe(e){return y.toByteArray(e)}function ee(e,n,l,w){for(var b=0;b<w&&!(b+l>=n.length||b>=e.length);b++)n[b+l]=e[b];return b}function le(e){try{return decodeURIComponent(e)}catch{return"�"}}function ae(e,n){B(typeof e=="number","cannot write a non-number as a number"),B(0<=e,"specified a negative value for writing an unsigned value"),B(e<=n,"value is larger than maximum value for type"),B(Math.floor(e)===e,"value has a fractional component")}function re(e,n,l){B(typeof e=="number","cannot write a non-number as a number"),B(e<=n,"value larger than maximum allowed value"),B(l<=e,"value smaller than minimum allowed value"),B(Math.floor(e)===e,"value has a fractional component")}function se(e,n,l){B(typeof e=="number","cannot write a non-number as a number"),B(e<=n,"value larger than maximum allowed value"),B(l<=e,"value smaller than minimum allowed value")}function B(e,n){if(!e)throw new Error(n||"Failed assertion")}g._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=j.get,e.set=j.set,e.write=j.write,e.toString=j.toString,e.toLocaleString=j.toString,e.toJSON=j.toJSON,e.copy=j.copy,e.slice=j.slice,e.readUInt8=j.readUInt8,e.readUInt16LE=j.readUInt16LE,e.readUInt16BE=j.readUInt16BE,e.readUInt32LE=j.readUInt32LE,e.readUInt32BE=j.readUInt32BE,e.readInt8=j.readInt8,e.readInt16LE=j.readInt16LE,e.readInt16BE=j.readInt16BE,e.readInt32LE=j.readInt32LE,e.readInt32BE=j.readInt32BE,e.readFloatLE=j.readFloatLE,e.readFloatBE=j.readFloatBE,e.readDoubleLE=j.readDoubleLE,e.readDoubleBE=j.readDoubleBE,e.writeUInt8=j.writeUInt8,e.writeUInt16LE=j.writeUInt16LE,e.writeUInt16BE=j.writeUInt16BE,e.writeUInt32LE=j.writeUInt32LE,e.writeUInt32BE=j.writeUInt32BE,e.writeInt8=j.writeInt8,e.writeInt16LE=j.writeInt16LE,e.writeInt16BE=j.writeInt16BE,e.writeInt32LE=j.writeInt32LE,e.writeInt32BE=j.writeInt32BE,e.writeFloatLE=j.writeFloatLE,e.writeFloatBE=j.writeFloatBE,e.writeDoubleLE=j.writeDoubleLE,e.writeDoubleBE=j.writeDoubleBE,e.fill=j.fill,e.inspect=j.inspect,e.toArrayBuffer=j.toArrayBuffer,e}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(o,u,f){(function(h,k,y,_,x,F,M,W,R){var y=o("buffer").Buffer,T=4,g=new y(T);g.fill(0),u.exports={hash:function(E,S,A,v){for(var L=S(function(t,d){t.length%T!=0&&(p=t.length+(T-t.length%T),t=y.concat([t,g],p));for(var p,C=[],D=d?t.readInt32BE:t.readInt32LE,P=0;P<t.length;P+=T)C.push(D.call(t,P));return C}(E=y.isBuffer(E)?E:new y(E),v),8*E.length),S=v,c=new y(A),m=S?c.writeInt32BE:c.writeInt32LE,r=0;r<L.length;r++)m.call(c,L[r],4*r,!0);return c}}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(o,u,f){(function(h,k,y,_,x,F,M,W,R){var y=o("buffer").Buffer,T=o("./sha"),g=o("./sha256"),E=o("./rng"),S={sha1:T,sha256:g,md5:o("./md5")},A=64,v=new y(A);function L(t,d){var p=S[t=t||"sha1"],C=[];return p||c("algorithm:",t,"is not yet supported"),{update:function(D){return y.isBuffer(D)||(D=new y(D)),C.push(D),D.length,this},digest:function(D){var P=y.concat(C),P=d?function(j,N,X){y.isBuffer(N)||(N=new y(N)),y.isBuffer(X)||(X=new y(X)),N.length>A?N=j(N):N.length<A&&(N=y.concat([N,v],A));for(var z=new y(A),$=new y(A),Z=0;Z<A;Z++)z[Z]=54^N[Z],$[Z]=92^N[Z];return X=j(y.concat([z,X])),j(y.concat([$,X]))}(p,d,P):p(P);return C=null,D?P.toString(D):P}}}function c(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
7
+ `))}v.fill(0),f.createHash=function(t){return L(t)},f.createHmac=L,f.randomBytes=function(t,d){if(!d||!d.call)return new y(E(t));try{d.call(this,void 0,new y(E(t)))}catch(p){d(p)}};var m,r=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],i=function(t){f[t]=function(){c("sorry,",t,"is not implemented yet")}};for(m in r)i(r[m])}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(o,u,f){(function(h,k,U,_,x,F,M,W,R){var y=o("./helpers");function T(c,m){c[m>>5]|=128<<m%32,c[14+(m+64>>>9<<4)]=m;for(var r=1732584193,i=-271733879,t=-1732584194,d=271733878,p=0;p<c.length;p+=16){var C=r,D=i,P=t,j=d,r=E(r,i,t,d,c[p+0],7,-680876936),d=E(d,r,i,t,c[p+1],12,-389564586),t=E(t,d,r,i,c[p+2],17,606105819),i=E(i,t,d,r,c[p+3],22,-1044525330);r=E(r,i,t,d,c[p+4],7,-176418897),d=E(d,r,i,t,c[p+5],12,1200080426),t=E(t,d,r,i,c[p+6],17,-1473231341),i=E(i,t,d,r,c[p+7],22,-45705983),r=E(r,i,t,d,c[p+8],7,1770035416),d=E(d,r,i,t,c[p+9],12,-1958414417),t=E(t,d,r,i,c[p+10],17,-42063),i=E(i,t,d,r,c[p+11],22,-1990404162),r=E(r,i,t,d,c[p+12],7,1804603682),d=E(d,r,i,t,c[p+13],12,-40341101),t=E(t,d,r,i,c[p+14],17,-1502002290),r=S(r,i=E(i,t,d,r,c[p+15],22,1236535329),t,d,c[p+1],5,-165796510),d=S(d,r,i,t,c[p+6],9,-1069501632),t=S(t,d,r,i,c[p+11],14,643717713),i=S(i,t,d,r,c[p+0],20,-373897302),r=S(r,i,t,d,c[p+5],5,-701558691),d=S(d,r,i,t,c[p+10],9,38016083),t=S(t,d,r,i,c[p+15],14,-660478335),i=S(i,t,d,r,c[p+4],20,-405537848),r=S(r,i,t,d,c[p+9],5,568446438),d=S(d,r,i,t,c[p+14],9,-1019803690),t=S(t,d,r,i,c[p+3],14,-187363961),i=S(i,t,d,r,c[p+8],20,1163531501),r=S(r,i,t,d,c[p+13],5,-1444681467),d=S(d,r,i,t,c[p+2],9,-51403784),t=S(t,d,r,i,c[p+7],14,1735328473),r=A(r,i=S(i,t,d,r,c[p+12],20,-1926607734),t,d,c[p+5],4,-378558),d=A(d,r,i,t,c[p+8],11,-2022574463),t=A(t,d,r,i,c[p+11],16,1839030562),i=A(i,t,d,r,c[p+14],23,-35309556),r=A(r,i,t,d,c[p+1],4,-1530992060),d=A(d,r,i,t,c[p+4],11,1272893353),t=A(t,d,r,i,c[p+7],16,-155497632),i=A(i,t,d,r,c[p+10],23,-1094730640),r=A(r,i,t,d,c[p+13],4,681279174),d=A(d,r,i,t,c[p+0],11,-358537222),t=A(t,d,r,i,c[p+3],16,-722521979),i=A(i,t,d,r,c[p+6],23,76029189),r=A(r,i,t,d,c[p+9],4,-640364487),d=A(d,r,i,t,c[p+12],11,-421815835),t=A(t,d,r,i,c[p+15],16,530742520),r=v(r,i=A(i,t,d,r,c[p+2],23,-995338651),t,d,c[p+0],6,-198630844),d=v(d,r,i,t,c[p+7],10,1126891415),t=v(t,d,r,i,c[p+14],15,-1416354905),i=v(i,t,d,r,c[p+5],21,-57434055),r=v(r,i,t,d,c[p+12],6,1700485571),d=v(d,r,i,t,c[p+3],10,-1894986606),t=v(t,d,r,i,c[p+10],15,-1051523),i=v(i,t,d,r,c[p+1],21,-2054922799),r=v(r,i,t,d,c[p+8],6,1873313359),d=v(d,r,i,t,c[p+15],10,-30611744),t=v(t,d,r,i,c[p+6],15,-1560198380),i=v(i,t,d,r,c[p+13],21,1309151649),r=v(r,i,t,d,c[p+4],6,-145523070),d=v(d,r,i,t,c[p+11],10,-1120210379),t=v(t,d,r,i,c[p+2],15,718787259),i=v(i,t,d,r,c[p+9],21,-343485551),r=L(r,C),i=L(i,D),t=L(t,P),d=L(d,j)}return Array(r,i,t,d)}function g(c,m,r,i,t,d){return L((m=L(L(m,c),L(i,d)))<<t|m>>>32-t,r)}function E(c,m,r,i,t,d,p){return g(m&r|~m&i,c,m,t,d,p)}function S(c,m,r,i,t,d,p){return g(m&i|r&~i,c,m,t,d,p)}function A(c,m,r,i,t,d,p){return g(m^r^i,c,m,t,d,p)}function v(c,m,r,i,t,d,p){return g(r^(m|~i),c,m,t,d,p)}function L(c,m){var r=(65535&c)+(65535&m);return(c>>16)+(m>>16)+(r>>16)<<16|65535&r}u.exports=function(c){return y.hash(c,T,16)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(o,u,f){(function(h,k,U,_,x,F,M,W,R){u.exports=function(y){for(var T,g=new Array(y),E=0;E<y;E++)!(3&E)&&(T=4294967296*Math.random()),g[E]=T>>>((3&E)<<3)&255;return g}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(o,u,f){(function(h,k,U,_,x,F,M,W,R){var y=o("./helpers");function T(S,A){S[A>>5]|=128<<24-A%32,S[15+(A+64>>9<<4)]=A;for(var v,L,c,m=Array(80),r=1732584193,i=-271733879,t=-1732584194,d=271733878,p=-1009589776,C=0;C<S.length;C+=16){for(var D=r,P=i,j=t,N=d,X=p,z=0;z<80;z++){m[z]=z<16?S[C+z]:E(m[z-3]^m[z-8]^m[z-14]^m[z-16],1);var $=g(g(E(r,5),($=i,L=t,c=d,(v=z)<20?$&L|~$&c:!(v<40)&&v<60?$&L|$&c|L&c:$^L^c)),g(g(p,m[z]),(v=z)<20?1518500249:v<40?1859775393:v<60?-1894007588:-899497514)),p=d,d=t,t=E(i,30),i=r,r=$}r=g(r,D),i=g(i,P),t=g(t,j),d=g(d,N),p=g(p,X)}return Array(r,i,t,d,p)}function g(S,A){var v=(65535&S)+(65535&A);return(S>>16)+(A>>16)+(v>>16)<<16|65535&v}function E(S,A){return S<<A|S>>>32-A}u.exports=function(S){return y.hash(S,T,20,!0)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(o,u,f){(function(h,k,U,_,x,F,M,W,R){function y(A,v){var L=(65535&A)+(65535&v);return(A>>16)+(v>>16)+(L>>16)<<16|65535&L}function T(A,v){var L,c=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),m=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),r=new Array(64);A[v>>5]|=128<<24-v%32,A[15+(v+64>>9<<4)]=v;for(var i,t,d=0;d<A.length;d+=16){for(var p=m[0],C=m[1],D=m[2],P=m[3],j=m[4],N=m[5],X=m[6],z=m[7],$=0;$<64;$++)r[$]=$<16?A[$+d]:y(y(y((t=r[$-2],E(t,17)^E(t,19)^S(t,10)),r[$-7]),(t=r[$-15],E(t,7)^E(t,18)^S(t,3))),r[$-16]),L=y(y(y(y(z,E(t=j,6)^E(t,11)^E(t,25)),j&N^~j&X),c[$]),r[$]),i=y(E(i=p,2)^E(i,13)^E(i,22),p&C^p&D^C&D),z=X,X=N,N=j,j=y(P,L),P=D,D=C,C=p,p=y(L,i);m[0]=y(p,m[0]),m[1]=y(C,m[1]),m[2]=y(D,m[2]),m[3]=y(P,m[3]),m[4]=y(j,m[4]),m[5]=y(N,m[5]),m[6]=y(X,m[6]),m[7]=y(z,m[7])}return m}var g=o("./helpers"),E=function(A,v){return A>>>v|A<<32-v},S=function(A,v){return A>>>v};u.exports=function(A){return g.hash(A,T,32,!0)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(o,u,f){(function(h,k,U,_,x,F,M,W,R){f.read=function(y,T,g,E,d){var A,v,L=8*d-E-1,c=(1<<L)-1,m=c>>1,r=-7,i=g?d-1:0,t=g?-1:1,d=y[T+i];for(i+=t,A=d&(1<<-r)-1,d>>=-r,r+=L;0<r;A=256*A+y[T+i],i+=t,r-=8);for(v=A&(1<<-r)-1,A>>=-r,r+=E;0<r;v=256*v+y[T+i],i+=t,r-=8);if(A===0)A=1-m;else{if(A===c)return v?NaN:1/0*(d?-1:1);v+=Math.pow(2,E),A-=m}return(d?-1:1)*v*Math.pow(2,A-E)},f.write=function(y,T,g,E,S,p){var v,L,c=8*p-S-1,m=(1<<c)-1,r=m>>1,i=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,t=E?0:p-1,d=E?1:-1,p=T<0||T===0&&1/T<0?1:0;for(T=Math.abs(T),isNaN(T)||T===1/0?(L=isNaN(T)?1:0,v=m):(v=Math.floor(Math.log(T)/Math.LN2),T*(E=Math.pow(2,-v))<1&&(v--,E*=2),2<=(T+=1<=v+r?i/E:i*Math.pow(2,1-r))*E&&(v++,E/=2),m<=v+r?(L=0,v=m):1<=v+r?(L=(T*E-1)*Math.pow(2,S),v+=r):(L=T*Math.pow(2,r-1)*Math.pow(2,S),v=0));8<=S;y[g+t]=255&L,t+=d,L/=256,S-=8);for(v=v<<S|L,c+=S;0<c;y[g+t]=255&v,t+=d,v/=256,c-=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,u,f){(function(h,k,U,_,x,F,M,W,R){var y,T,g;function E(){}(h=u.exports={}).nextTick=(T=typeof window<"u"&&window.setImmediate,g=typeof window<"u"&&window.postMessage&&window.addEventListener,T?function(S){return window.setImmediate(S)}:g?(y=[],window.addEventListener("message",function(S){var A=S.source;A!==window&&A!==null||S.data!=="process-tick"||(S.stopPropagation(),0<y.length&&y.shift()())},!0),function(S){y.push(S),window.postMessage("process-tick","*")}):function(S){setTimeout(S,0)}),h.title="browser",h.browser=!0,h.env={},h.argv=[],h.on=E,h.addListener=E,h.once=E,h.off=E,h.removeListener=E,h.removeAllListeners=E,h.emit=E,h.binding=function(S){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(S){throw new Error("process.chdir is not supported")}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})})(Te);var qt=Te.exports;const Ee=Vt(qt);function V(a){return a!=null&&typeof a=="object"&&a["@@functional/placeholder"]===!0}function ie(a){return function s(o){return arguments.length===0||V(o)?s:a.apply(this,arguments)}}function oe(a){return function s(o,u){switch(arguments.length){case 0:return s;case 1:return V(o)?s:ie(function(f){return a(o,f)});default:return V(o)&&V(u)?s:V(o)?ie(function(f){return a(f,u)}):V(u)?ie(function(f){return a(o,f)}):a(o,u)}}}function je(a){return function s(o,u,f){switch(arguments.length){case 0:return s;case 1:return V(o)?s:oe(function(h,k){return a(o,h,k)});case 2:return V(o)&&V(u)?s:V(o)?oe(function(h,k){return a(h,u,k)}):V(u)?oe(function(h,k){return a(o,h,k)}):ie(function(h){return a(o,u,h)});default:return V(o)&&V(u)&&V(f)?s:V(o)&&V(u)?oe(function(h,k){return a(h,k,f)}):V(o)&&V(f)?oe(function(h,k){return a(h,u,k)}):V(u)&&V(f)?oe(function(h,k){return a(o,h,k)}):V(o)?ie(function(h){return a(h,u,f)}):V(u)?ie(function(h){return a(o,h,f)}):V(f)?ie(function(h){return a(o,u,h)}):a(o,u,f)}}}function he(a,s){return Object.prototype.hasOwnProperty.call(s,a)}function Ae(a){return Object.prototype.toString.call(a)==="[object Object]"}var Kt=je(function(s,o,u){var f={},h;for(h in o)he(h,o)&&(f[h]=he(h,u)?s(h,o[h],u[h]):o[h]);for(h in u)he(h,u)&&!he(h,f)&&(f[h]=u[h]);return f}),Xt=je(function a(s,o,u){return Kt(function(f,h,k){return Ae(h)&&Ae(k)?a(s,h,k):s(f,h,k)},o,u)}),Gt=oe(function(s,o){return Xt(function(u,f,h){return h},s,o)});let Jt={headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"include"};async function Qt(a,s={}){const{baseURL:o="",...u}=s;return fetch(`${o}${a}`,Gt(Jt,u)).then(f=>{if(!f.ok)throw f;return f})}/*!
8
8
  * Compressor.js v1.2.1
9
9
  * https://fengyuanchen.github.io/compressorjs
10
10
  *
@@ -12,4 +12,4 @@ list should be an Array.`),e.length===0)return new g(0);if(e.length===1)return e
12
12
  * Released under the MIT license
13
13
  *
14
14
  * Date: 2023-02-28T14:09:41.732Z
15
- */function Ie(a,s){var o=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);s&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(a,f).enumerable})),o.push.apply(o,u)}return o}function ge(a){for(var s=1;s<arguments.length;s++){var o=arguments[s]!=null?arguments[s]:{};s%2?Ie(Object(o),!0).forEach(function(u){Kt(a,u,o[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):Ie(Object(o)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(o,u))})}return a}function Vt(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function Ae(a,s){for(var o=0;o<s.length;o++){var u=s[o];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(a,Le(u.key),u)}}function qt(a,s,o){return s&&Ae(a.prototype,s),o&&Ae(a,o),Object.defineProperty(a,"prototype",{writable:!1}),a}function Kt(a,s,o){return s=Le(s),s in a?Object.defineProperty(a,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[s]=o,a}function pe(){return pe=Object.assign?Object.assign.bind():function(a){for(var s=1;s<arguments.length;s++){var o=arguments[s];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(a[u]=o[u])}return a},pe.apply(this,arguments)}function Xt(a,s){if(typeof a!="object"||a===null)return a;var o=a[Symbol.toPrimitive];if(o!==void 0){var u=o.call(a,s);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}function Le(a){var s=Xt(a,"string");return typeof s=="symbol"?s:String(s)}var Fe={exports:{}};(function(a){typeof window>"u"||function(s){var o=s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype,u=s.Blob&&function(){try{return!!new Blob}catch{return!1}}(),f=u&&s.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch{return!1}}(),d=s.BlobBuilder||s.WebKitBlobBuilder||s.MozBlobBuilder||s.MSBlobBuilder,U=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,k=(u||d)&&s.atob&&s.ArrayBuffer&&s.Uint8Array&&function(S){var x,F,M,W,R,y,T,g,E;if(x=S.match(U),!x)throw new Error("invalid data URI");for(F=x[2]?x[1]:"text/plain"+(x[3]||";charset=US-ASCII"),M=!!x[4],W=S.slice(x[0].length),M?R=atob(W):R=decodeURIComponent(W),y=new ArrayBuffer(R.length),T=new Uint8Array(y),g=0;g<R.length;g+=1)T[g]=R.charCodeAt(g);return u?new Blob([f?T:y],{type:F}):(E=new d,E.append(y),E.getBlob(F))};s.HTMLCanvasElement&&!o.toBlob&&(o.mozGetAsFile?o.toBlob=function(S,x,F){var M=this;setTimeout(function(){F&&o.toDataURL&&k?S(k(M.toDataURL(x,F))):S(M.mozGetAsFile("blob",x))})}:o.toDataURL&&k&&(o.msToBlob?o.toBlob=function(S,x,F){var M=this;setTimeout(function(){(x&&x!=="image/png"||F)&&o.toDataURL&&k?S(k(M.toDataURL(x,F))):S(M.msToBlob(x))})}:o.toBlob=function(S,x,F){var M=this;setTimeout(function(){S(k(M.toDataURL(x,F)))})})),a.exports?a.exports=k:s.dataURLtoBlob=k}(window)})(Fe);var _e=Fe.exports,Gt=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},Jt=typeof window<"u"&&typeof window.document<"u",te=Jt?window:{},me=function(s){return s>0&&s<1/0},Qt=Array.prototype.slice;function be(a){return Array.from?Array.from(a):Qt.call(a)}var Zt=/^image\/.+$/;function we(a){return Zt.test(a)}function er(a){var s=we(a)?a.substr(6):"";return s==="jpeg"&&(s="jpg"),".".concat(s)}var Ce=String.fromCharCode;function tr(a,s,o){var u="",f;for(o+=s,f=s;f<o;f+=1)u+=Ce(a.getUint8(f));return u}var rr=te.btoa;function Se(a,s){for(var o=[],u=8192,f=new Uint8Array(a);f.length>0;)o.push(Ce.apply(null,be(f.subarray(0,u)))),f=f.subarray(u);return"data:".concat(s,";base64,").concat(rr(o.join("")))}function nr(a){var s=new DataView(a),o;try{var u,f,d;if(s.getUint8(0)===255&&s.getUint8(1)===216)for(var U=s.byteLength,k=2;k+1<U;){if(s.getUint8(k)===255&&s.getUint8(k+1)===225){f=k;break}k+=1}if(f){var S=f+4,x=f+10;if(tr(s,S,4)==="Exif"){var F=s.getUint16(x);if(u=F===18761,(u||F===19789)&&s.getUint16(x+2,u)===42){var M=s.getUint32(x+4,u);M>=8&&(d=x+M)}}}if(d){var W=s.getUint16(d,u),R,y;for(y=0;y<W;y+=1)if(R=d+y*12+2,s.getUint16(R,u)===274){R+=8,o=s.getUint16(R,u),s.setUint16(R,1,u);break}}}catch{o=1}return o}function or(a){var s=0,o=1,u=1;switch(a){case 2:o=-1;break;case 3:s=-180;break;case 4:u=-1;break;case 5:s=90,u=-1;break;case 6:s=90;break;case 7:s=90,o=-1;break;case 8:s=-90;break}return{rotate:s,scaleX:o,scaleY:u}}var ir=/\.\d*(?:0|9){12}\d*$/;function Ue(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return ir.test(a)?Math.round(a*s)/s:a}function ce(a){var s=a.aspectRatio,o=a.height,u=a.width,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none",d=me(u),U=me(o);if(d&&U){var k=o*s;(f==="contain"||f==="none")&&k>u||f==="cover"&&k<u?o=u/s:u=o*s}else d?o=u/s:U&&(u=o*s);return{width:u,height:o}}function ar(a){for(var s=be(new Uint8Array(a)),o=s.length,u=[],f=0;f+3<o;){var d=s[f],U=s[f+1];if(d===255&&U===218)break;if(d===255&&U===216)f+=2;else{var k=s[f+2]*256+s[f+3],S=f+k+2,x=s.slice(f,S);u.push(x),f=S}}return u.reduce(function(F,M){return M[0]===255&&M[1]===225?F.concat(M):F},[])}function sr(a,s){var o=be(new Uint8Array(a));if(o[2]!==255||o[3]!==224)return a;var u=o[4]*256+o[5],f=[255,216].concat(s,o.slice(4+u));return new Uint8Array(f)}var ur=te.ArrayBuffer,ye=te.FileReader,ne=te.URL||te.webkitURL,lr=/\.\w+$/,cr=te.Compressor,fr=function(){function a(s,o){Vt(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 qt(a,[{key:"init",value:function(){var o=this,u=this.file,f=this.options;if(!Gt(u)){this.fail(new Error("The first argument must be a File or Blob object."));return}var d=u.type;if(!we(d)){this.fail(new Error("The first argument must be an image File or Blob object."));return}if(!ne||!ye){this.fail(new Error("The current browser does not support image compression."));return}ur||(f.checkOrientation=!1,f.retainExif=!1);var U=d==="image/jpeg",k=U&&f.checkOrientation,S=U&&f.retainExif;if(ne&&!k&&!S)this.load({url:ne.createObjectURL(u)});else{var x=new ye;this.reader=x,x.onload=function(F){var M=F.target,W=M.result,R={},y=1;k&&(y=nr(W),y>1&&pe(R,or(y))),S&&(o.exif=ar(W)),k||S?!ne||y>1?R.url=Se(W,d):R.url=ne.createObjectURL(u):R.url=W,o.load(R)},x.onabort=function(){o.fail(new Error("Aborted to read the image with FileReader."))},x.onerror=function(){o.fail(new Error("Failed to read the image with FileReader."))},x.onloadend=function(){o.reader=null},k||S?x.readAsArrayBuffer(u):x.readAsDataURL(u)}}},{key:"load",value:function(o){var u=this,f=this.file,d=this.image;d.onload=function(){u.draw(ge(ge({},o),{},{naturalWidth:d.naturalWidth,naturalHeight:d.naturalHeight}))},d.onabort=function(){u.fail(new Error("Aborted to load the image."))},d.onerror=function(){u.fail(new Error("Failed to load the image."))},te.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(te.navigator.userAgent)&&(d.crossOrigin="anonymous"),d.alt=f.name,d.src=o.url}},{key:"draw",value:function(o){var u=this,f=o.naturalWidth,d=o.naturalHeight,U=o.rotate,k=U===void 0?0:U,S=o.scaleX,x=S===void 0?1:S,F=o.scaleY,M=F===void 0?1:F,W=this.file,R=this.image,y=this.options,T=document.createElement("canvas"),g=T.getContext("2d"),E=Math.abs(k)%180===90,_=(y.resize==="contain"||y.resize==="cover")&&me(y.width)&&me(y.height),B=Math.max(y.maxWidth,0)||1/0,v=Math.max(y.maxHeight,0)||1/0,L=Math.max(y.minWidth,0)||0,c=Math.max(y.minHeight,0)||0,m=f/d,r=y.width,i=y.height;if(E){var t=[v,B];B=t[0],v=t[1];var h=[c,L];L=h[0],c=h[1];var p=[i,r];r=p[0],i=p[1]}_&&(m=r/i);var D=ce({aspectRatio:m,width:B,height:v},"contain");B=D.width,v=D.height;var C=ce({aspectRatio:m,width:L,height:c},"cover");if(L=C.width,c=C.height,_){var O=ce({aspectRatio:m,width:r,height:i},y.resize);r=O.width,i=O.height}else{var j=ce({aspectRatio:m,width:r,height:i}),N=j.width;r=N===void 0?f:N;var X=j.height;i=X===void 0?d:X}r=Math.floor(Ue(Math.min(Math.max(r,L),B))),i=Math.floor(Ue(Math.min(Math.max(i,c),v)));var z=-r/2,$=-i/2,Z=r,fe=i,ee=[];if(_){var le=0,ae=0,re=f,se=d,A=ce({aspectRatio:m,width:f,height:d},{contain:"cover",cover:"contain"}[y.resize]);re=A.width,se=A.height,le=(f-re)/2,ae=(d-se)/2,ee.push(le,ae,re,se)}if(ee.push(z,$,Z,fe),E){var e=[i,r];r=e[0],i=e[1]}T.width=r,T.height=i,we(y.mimeType)||(y.mimeType=W.type);var n="transparent";W.size>y.convertSize&&y.convertTypes.indexOf(y.mimeType)>=0&&(y.mimeType="image/jpeg");var l=y.mimeType==="image/jpeg";if(l&&(n="#fff"),g.fillStyle=n,g.fillRect(0,0,r,i),y.beforeDraw&&y.beforeDraw.call(this,g,T),!this.aborted&&(g.save(),g.translate(r/2,i/2),g.rotate(k*Math.PI/180),g.scale(x,M),g.drawImage.apply(g,[R].concat(ee)),g.restore(),y.drew&&y.drew.call(this,g,T),!this.aborted)){var w=function(I){if(!u.aborted){var P=function(q){return u.done({naturalWidth:f,naturalHeight:d,result:q})};if(I&&l&&y.retainExif&&u.exif&&u.exif.length>0){var H=function(q){return P(_e(Se(sr(q,u.exif),y.mimeType)))};if(I.arrayBuffer)I.arrayBuffer().then(H).catch(function(){u.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var Y=new ye;u.reader=Y,Y.onload=function(J){var q=J.target;H(q.result)},Y.onabort=function(){u.fail(new Error("Aborted to read the compressed image with FileReader."))},Y.onerror=function(){u.fail(new Error("Failed to read the compressed image with FileReader."))},Y.onloadend=function(){u.reader=null},Y.readAsArrayBuffer(I)}}else P(I)}};T.toBlob?T.toBlob(w,y.mimeType,y.quality):w(_e(T.toDataURL(y.mimeType,y.quality)))}}},{key:"done",value:function(o){var u=o.naturalWidth,f=o.naturalHeight,d=o.result,U=this.file,k=this.image,S=this.options;if(ne&&k.src.indexOf("blob:")===0&&ne.revokeObjectURL(k.src),d)if(S.strict&&!S.retainExif&&d.size>U.size&&S.mimeType===U.type&&!(S.width>u||S.height>f||S.minWidth>u||S.minHeight>f||S.maxWidth<u||S.maxHeight<f))d=U;else{var x=new Date;d.lastModified=x.getTime(),d.lastModifiedDate=x,d.name=U.name,d.name&&d.type!==U.type&&(d.name=d.name.replace(lr,er(d.type)))}else d=U;this.result=d,S.success&&S.success.call(this,d)}},{key:"fail",value:function(o){var u=this.options;if(u.error)u.error.call(this,o);else throw o}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=cr,a}},{key:"setDefaults",value:function(o){pe(xe,o)}}]),a}();const hr={default:{maxWidth:1920},logo:{maxWidth:500,quality:.9},gallery:{maxWidth:2560}},De=a=>a instanceof Array?a:[a];function dr(a,s){return new Promise((o,u)=>{if(!s)return o(a);new fr(a,{success:f=>o(f),error:f=>u(f),...s})})}function gr(a={}){let{acl:s="public-read",url:o,...u}=a;return o||(o="/api/file/sign?acl="+s),zt(o,u).then(f=>f.json())}function pr({file:a,url:s,onProgress:o}){return new Promise((u,f)=>{let d=new URLSearchParams(s),U=new XMLHttpRequest;U.upload.addEventListener("progress",o),U.addEventListener("error",f),U.addEventListener("load",function(){u(this)}),U.open("PUT",s),d.get("x-amz-acl")&&U.setRequestHeader("x-amz-acl",d.get("x-amz-acl")),U.send(a)})}function mr(a){return new Promise(s=>{let o=new FileReader;o.onload=function(u){s(u.target.result)},o.readAsDataURL(a)})}function yr(a){return a.type.startsWith("image/")?mr(a).then(s=>new Promise((o,u)=>{let f=new Image;f.onload=()=>o([f.naturalWidth,f.naturalHeight]),f.onerror=d=>u(d),f.src=s})):Promise.resolve()}async function wr(a,s){switch(typeof s){case"function":return s(a);case"string":const o=new FormData;return o.append("file",a),window.fetch(s,{method:"POST",credentials:"include",body:o}).then(u=>u.json()).then(De).then(u=>u.map(({data:f,name:d,type:U})=>new File([new Uint8Array(f.data)],d,{type:U})));default:return a}}async function br(a,s,o){let{compression:u,transform:f=F=>F,rename:d,convert:U,...k}=o;const S=await wr(a,U).then(De),x=await Promise.all(S.map(async F=>{typeof u=="string"&&(u=hr[u]);let[M,W]=await Promise.all([gr(k||{}),u?dr(F,u):Promise.resolve(F)]),R;try{R=await yr(W)}catch{}return await pr({file:W,url:M.uploadUrl,onProgress(y){s(Math.floor(y.loaded/y.total*100))}}),f({name:d||W.name,size:W.size,url:M.url,type:W.type,dimensions:R})}));return x.length===1?x[0]:x}function Ar(a,s,o={}){let{group:u=1}=o,f=a.match(s);if(f)return f[u]}function vr(a){return new Promise((s,o)=>{setTimeout(s,a)})}function _r(a){return a==="false"?!1:a==="true"?!0:a}async function xr(a,s={}){let{interval:o=200,limit:u=50}=s,f=0,d;for(;f<u&&(f++,!(d=a()));)await vr(o);if(f>=u)throw new Error("Could not resolve");return d}function Sr(a,s={type:"text/javascript"}){if(!document||document.querySelector(`script[src="${a}"]`))return;let{type:o}=s,u=document.createElement("script");u.type=o,u.src=a,document.body.appendChild(u)}function Ur(a,s=1){const o={en:ct,nb:Pt},u=document.documentElement.getAttribute("lang")||"nb";let f=o[u]?.[a]||a;return f.includes("|")&&(f=f.split("|")[s-1]),f}function kr(a){return{validator(s,o){return a instanceof Array?s instanceof Array?s.every(u=>a.includes(u)):a.includes(s):a(s,o)}}}function Er(a){return Object.prototype.toString.call(a)==="[object Object]"}function Oe(a,s,o={}){if(!s||!Er(s))return a;let{ignoreMissing:u=!1}=o,f={},d=(k,S)=>k.length===S.length&&Ee(k.slice())===Ee(S.slice()),U=function(k,S,x){let F=Object.prototype.toString.call(k),M=Object.prototype.toString.call(S);if(F!==M){f[x]=S;return}if(F==="[object Object]"){let W=Oe(k,S,o);Object.keys(W).length&&(f[x]=W);return}if(F==="[object Array]"){d(k,S)||(f[x]=S);return}if(F==="[object Function]"){k.toString()!==S.toString()&&(f[x]=S);return}k!==S&&(f[x]=S)};for(let k in a)Object.hasOwn(a,k)&&U(a[k],s[k],k);if(!u)for(let k in s)Object.hasOwn(s,k)&&!(k in a)&&(f[k]=s[k]);return f}function Tr(...a){return!!Object.keys(Oe(...a)).length}const jr=function(){return JSON.parse(JSON.stringify.apply(this,arguments))};function Lr(a,s,o){return br(a,s,o)}function Fr(a,s=document.documentElement.getAttribute("lang")||"nb"){return!a&&a!==0?"-":a.toLocaleString(s,{style:"currency",currency:"NOK",minimumFractionDigits:0})}const Br=a=>{if(typeof a!="string")return a;try{return JSON.parse(a)}catch{return{}}},Cr=(a={},s={})=>o=>Br(a)[o]||s[o]||o,ke=(a,s={})=>o=>{switch(a){case"currency":const{locale:u,...f}=s;return new Intl.NumberFormat(u,{style:"currency",maximumFractionDigits:0,...f}).format(o);case"number":return new Intl.NumberFormat(s.locale).format(o);case"year":case"years":return[o,new Intl.RelativeTimeFormat(s.locale).formatToParts(o,"year").at(-1).value].join(" ");case"percent":const{maximumFractionDigits:d=0}=s;return[Number(o).toFixed(d),"%"].join("");default:return o}},Dr=(a={})=>{const{locale:s,currency:o}=a,u=/(.{1})\d{3}(\D)\d$/,f=ke("number",{locale:s})(1000.1);let[d,U,k]=u.exec(f);const S=ke("currency",{locale:s,currency:o})(1000.1),x=S.replace(/[\d\s\,\.]/g,""),F={mask:Number,thousandsSeparator:U};return S.match(/^\d/)?{suffix:x,mask:F}:{symbol:x,mask:F}};function Or(a,s=300){let o;return(...u)=>{clearTimeout(o),o=setTimeout(()=>{a.apply(this,u)},s)}}function Mr(a){if(!a)return;a=a.replace(/^\s+|\s+$/g,""),a=a.toLowerCase();const s="àáäâèéëêìíïîòóöôùúüûñç·/_,:;",o="aaaaeeeeiiiioooouuuunc------";for(let u=0,f=s.length;u<f;u++)a=a.replace(new RegExp(s.charAt(u),"g"),o.charAt(u));return a=a.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"),a}export{jr as C,Or as D,Ar as E,Sr as L,kr as P,Mr as S,Ur as T,xr as W,Dr as a,Cr as b,he as c,Ir as d,Fr as e,ke as f,Wt as g,Tr as h,Oe as i,_r as t,Lr as u};
15
+ */function Ie(a,s){var o=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);s&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(a,f).enumerable})),o.push.apply(o,u)}return o}function ge(a){for(var s=1;s<arguments.length;s++){var o=arguments[s]!=null?arguments[s]:{};s%2?Ie(Object(o),!0).forEach(function(u){tr(a,u,o[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):Ie(Object(o)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(o,u))})}return a}function Zt(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function Be(a,s){for(var o=0;o<s.length;o++){var u=s[o];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(a,Le(u.key),u)}}function er(a,s,o){return s&&Be(a.prototype,s),o&&Be(a,o),Object.defineProperty(a,"prototype",{writable:!1}),a}function tr(a,s,o){return s=Le(s),s in a?Object.defineProperty(a,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[s]=o,a}function pe(){return pe=Object.assign?Object.assign.bind():function(a){for(var s=1;s<arguments.length;s++){var o=arguments[s];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(a[u]=o[u])}return a},pe.apply(this,arguments)}function rr(a,s){if(typeof a!="object"||a===null)return a;var o=a[Symbol.toPrimitive];if(o!==void 0){var u=o.call(a,s);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}function Le(a){var s=rr(a,"string");return typeof s=="symbol"?s:String(s)}var Fe={exports:{}};(function(a){typeof window>"u"||function(s){var o=s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype,u=s.Blob&&function(){try{return!!new Blob}catch{return!1}}(),f=u&&s.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch{return!1}}(),h=s.BlobBuilder||s.WebKitBlobBuilder||s.MozBlobBuilder||s.MSBlobBuilder,k=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,U=(u||h)&&s.atob&&s.ArrayBuffer&&s.Uint8Array&&function(_){var x,F,M,W,R,y,T,g,E;if(x=_.match(k),!x)throw new Error("invalid data URI");for(F=x[2]?x[1]:"text/plain"+(x[3]||";charset=US-ASCII"),M=!!x[4],W=_.slice(x[0].length),M?R=atob(W):R=decodeURIComponent(W),y=new ArrayBuffer(R.length),T=new Uint8Array(y),g=0;g<R.length;g+=1)T[g]=R.charCodeAt(g);return u?new Blob([f?T:y],{type:F}):(E=new h,E.append(y),E.getBlob(F))};s.HTMLCanvasElement&&!o.toBlob&&(o.mozGetAsFile?o.toBlob=function(_,x,F){var M=this;setTimeout(function(){F&&o.toDataURL&&U?_(U(M.toDataURL(x,F))):_(M.mozGetAsFile("blob",x))})}:o.toDataURL&&U&&(o.msToBlob?o.toBlob=function(_,x,F){var M=this;setTimeout(function(){(x&&x!=="image/png"||F)&&o.toDataURL&&U?_(U(M.toDataURL(x,F))):_(M.msToBlob(x))})}:o.toBlob=function(_,x,F){var M=this;setTimeout(function(){_(U(M.toDataURL(x,F)))})})),a.exports?a.exports=U:s.dataURLtoBlob=U}(window)})(Fe);var xe=Fe.exports,nr=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},or=typeof window<"u"&&typeof window.document<"u",te=or?window:{},me=function(s){return s>0&&s<1/0},ir=Array.prototype.slice;function be(a){return Array.from?Array.from(a):ir.call(a)}var ar=/^image\/.+$/;function we(a){return ar.test(a)}function sr(a){var s=we(a)?a.substr(6):"";return s==="jpeg"&&(s="jpg"),".".concat(s)}var De=String.fromCharCode;function ur(a,s,o){var u="",f;for(o+=s,f=s;f<o;f+=1)u+=De(a.getUint8(f));return u}var lr=te.btoa;function Se(a,s){for(var o=[],u=8192,f=new Uint8Array(a);f.length>0;)o.push(De.apply(null,be(f.subarray(0,u)))),f=f.subarray(u);return"data:".concat(s,";base64,").concat(lr(o.join("")))}function cr(a){var s=new DataView(a),o;try{var u,f,h;if(s.getUint8(0)===255&&s.getUint8(1)===216)for(var k=s.byteLength,U=2;U+1<k;){if(s.getUint8(U)===255&&s.getUint8(U+1)===225){f=U;break}U+=1}if(f){var _=f+4,x=f+10;if(ur(s,_,4)==="Exif"){var F=s.getUint16(x);if(u=F===18761,(u||F===19789)&&s.getUint16(x+2,u)===42){var M=s.getUint32(x+4,u);M>=8&&(h=x+M)}}}if(h){var W=s.getUint16(h,u),R,y;for(y=0;y<W;y+=1)if(R=h+y*12+2,s.getUint16(R,u)===274){R+=8,o=s.getUint16(R,u),s.setUint16(R,1,u);break}}}catch{o=1}return o}function fr(a){var s=0,o=1,u=1;switch(a){case 2:o=-1;break;case 3:s=-180;break;case 4:u=-1;break;case 5:s=90,u=-1;break;case 6:s=90;break;case 7:s=90,o=-1;break;case 8:s=-90;break}return{rotate:s,scaleX:o,scaleY:u}}var dr=/\.\d*(?:0|9){12}\d*$/;function ke(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return dr.test(a)?Math.round(a*s)/s:a}function ce(a){var s=a.aspectRatio,o=a.height,u=a.width,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none",h=me(u),k=me(o);if(h&&k){var U=o*s;(f==="contain"||f==="none")&&U>u||f==="cover"&&U<u?o=u/s:u=o*s}else h?o=u/s:k&&(u=o*s);return{width:u,height:o}}function hr(a){for(var s=be(new Uint8Array(a)),o=s.length,u=[],f=0;f+3<o;){var h=s[f],k=s[f+1];if(h===255&&k===218)break;if(h===255&&k===216)f+=2;else{var U=s[f+2]*256+s[f+3],_=f+U+2,x=s.slice(f,_);u.push(x),f=_}}return u.reduce(function(F,M){return M[0]===255&&M[1]===225?F.concat(M):F},[])}function gr(a,s){var o=be(new Uint8Array(a));if(o[2]!==255||o[3]!==224)return a;var u=o[4]*256+o[5],f=[255,216].concat(s,o.slice(4+u));return new Uint8Array(f)}var pr=te.ArrayBuffer,ye=te.FileReader,ne=te.URL||te.webkitURL,mr=/\.\w+$/,yr=te.Compressor,wr=function(){function a(s,o){Zt(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 er(a,[{key:"init",value:function(){var o=this,u=this.file,f=this.options;if(!nr(u)){this.fail(new Error("The first argument must be a File or Blob object."));return}var h=u.type;if(!we(h)){this.fail(new Error("The first argument must be an image File or Blob object."));return}if(!ne||!ye){this.fail(new Error("The current browser does not support image compression."));return}pr||(f.checkOrientation=!1,f.retainExif=!1);var k=h==="image/jpeg",U=k&&f.checkOrientation,_=k&&f.retainExif;if(ne&&!U&&!_)this.load({url:ne.createObjectURL(u)});else{var x=new ye;this.reader=x,x.onload=function(F){var M=F.target,W=M.result,R={},y=1;U&&(y=cr(W),y>1&&pe(R,fr(y))),_&&(o.exif=hr(W)),U||_?!ne||y>1?R.url=Se(W,h):R.url=ne.createObjectURL(u):R.url=W,o.load(R)},x.onabort=function(){o.fail(new Error("Aborted to read the image with FileReader."))},x.onerror=function(){o.fail(new Error("Failed to read the image with FileReader."))},x.onloadend=function(){o.reader=null},U||_?x.readAsArrayBuffer(u):x.readAsDataURL(u)}}},{key:"load",value:function(o){var u=this,f=this.file,h=this.image;h.onload=function(){u.draw(ge(ge({},o),{},{naturalWidth:h.naturalWidth,naturalHeight:h.naturalHeight}))},h.onabort=function(){u.fail(new Error("Aborted to load the image."))},h.onerror=function(){u.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 u=this,f=o.naturalWidth,h=o.naturalHeight,k=o.rotate,U=k===void 0?0:k,_=o.scaleX,x=_===void 0?1:_,F=o.scaleY,M=F===void 0?1:F,W=this.file,R=this.image,y=this.options,T=document.createElement("canvas"),g=T.getContext("2d"),E=Math.abs(U)%180===90,S=(y.resize==="contain"||y.resize==="cover")&&me(y.width)&&me(y.height),A=Math.max(y.maxWidth,0)||1/0,v=Math.max(y.maxHeight,0)||1/0,L=Math.max(y.minWidth,0)||0,c=Math.max(y.minHeight,0)||0,m=f/h,r=y.width,i=y.height;if(E){var t=[v,A];A=t[0],v=t[1];var d=[c,L];L=d[0],c=d[1];var p=[i,r];r=p[0],i=p[1]}S&&(m=r/i);var C=ce({aspectRatio:m,width:A,height:v},"contain");A=C.width,v=C.height;var D=ce({aspectRatio:m,width:L,height:c},"cover");if(L=D.width,c=D.height,S){var P=ce({aspectRatio:m,width:r,height:i},y.resize);r=P.width,i=P.height}else{var j=ce({aspectRatio:m,width:r,height:i}),N=j.width;r=N===void 0?f:N;var X=j.height;i=X===void 0?h:X}r=Math.floor(ke(Math.min(Math.max(r,L),A))),i=Math.floor(ke(Math.min(Math.max(i,c),v)));var z=-r/2,$=-i/2,Z=r,fe=i,ee=[];if(S){var le=0,ae=0,re=f,se=h,B=ce({aspectRatio:m,width:f,height:h},{contain:"cover",cover:"contain"}[y.resize]);re=B.width,se=B.height,le=(f-re)/2,ae=(h-se)/2,ee.push(le,ae,re,se)}if(ee.push(z,$,Z,fe),E){var e=[i,r];r=e[0],i=e[1]}T.width=r,T.height=i,we(y.mimeType)||(y.mimeType=W.type);var n="transparent";W.size>y.convertSize&&y.convertTypes.indexOf(y.mimeType)>=0&&(y.mimeType="image/jpeg");var l=y.mimeType==="image/jpeg";if(l&&(n="#fff"),g.fillStyle=n,g.fillRect(0,0,r,i),y.beforeDraw&&y.beforeDraw.call(this,g,T),!this.aborted&&(g.save(),g.translate(r/2,i/2),g.rotate(U*Math.PI/180),g.scale(x,M),g.drawImage.apply(g,[R].concat(ee)),g.restore(),y.drew&&y.drew.call(this,g,T),!this.aborted)){var w=function(I){if(!u.aborted){var O=function(q){return u.done({naturalWidth:f,naturalHeight:h,result:q})};if(I&&l&&y.retainExif&&u.exif&&u.exif.length>0){var H=function(q){return O(xe(Se(gr(q,u.exif),y.mimeType)))};if(I.arrayBuffer)I.arrayBuffer().then(H).catch(function(){u.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var Y=new ye;u.reader=Y,Y.onload=function(J){var q=J.target;H(q.result)},Y.onabort=function(){u.fail(new Error("Aborted to read the compressed image with FileReader."))},Y.onerror=function(){u.fail(new Error("Failed to read the compressed image with FileReader."))},Y.onloadend=function(){u.reader=null},Y.readAsArrayBuffer(I)}}else O(I)}};T.toBlob?T.toBlob(w,y.mimeType,y.quality):w(xe(T.toDataURL(y.mimeType,y.quality)))}}},{key:"done",value:function(o){var u=o.naturalWidth,f=o.naturalHeight,h=o.result,k=this.file,U=this.image,_=this.options;if(ne&&U.src.indexOf("blob:")===0&&ne.revokeObjectURL(U.src),h)if(_.strict&&!_.retainExif&&h.size>k.size&&_.mimeType===k.type&&!(_.width>u||_.height>f||_.minWidth>u||_.minHeight>f||_.maxWidth<u||_.maxHeight<f))h=k;else{var x=new Date;h.lastModified=x.getTime(),h.lastModifiedDate=x,h.name=k.name,h.name&&h.type!==k.type&&(h.name=h.name.replace(mr,sr(h.type)))}else h=k;this.result=h,_.success&&_.success.call(this,h)}},{key:"fail",value:function(o){var u=this.options;if(u.error)u.error.call(this,o);else throw o}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=yr,a}},{key:"setDefaults",value:function(o){pe(_e,o)}}]),a}();const br={default:{maxWidth:1920},logo:{maxWidth:500,quality:.9},gallery:{maxWidth:2560}},Ce=a=>a instanceof Array?a:[a];function vr(a,s){return new Promise((o,u)=>{if(!s)return o(a);new wr(a,{success:f=>o(f),error:f=>u(f),...s})})}function Er(a={}){let{acl:s="public-read",url:o,...u}=a;return o||(o="/api/file/sign?acl="+s),Qt(o,u).then(f=>f.json())}function Ar({file:a,url:s,onProgress:o}){return new Promise((u,f)=>{let h=new URLSearchParams(s),k=new XMLHttpRequest;k.upload.addEventListener("progress",o),k.addEventListener("error",f),k.addEventListener("load",function(){u(this)}),k.open("PUT",s),h.get("x-amz-acl")&&k.setRequestHeader("x-amz-acl",h.get("x-amz-acl")),k.send(a)})}function Ir(a){return new Promise(s=>{let o=new FileReader;o.onload=function(u){s(u.target.result)},o.readAsDataURL(a)})}function Br(a){return a.type.startsWith("image/")?Ir(a).then(s=>new Promise((o,u)=>{let f=new Image;f.onload=()=>o([f.naturalWidth,f.naturalHeight]),f.onerror=h=>u(h),f.src=s})):Promise.resolve()}async function xr(a,s){switch(typeof s){case"function":return s(a);case"string":const o=new FormData;return o.append("file",a),window.fetch(s,{method:"POST",credentials:"include",body:o}).then(u=>u.json()).then(Ce).then(u=>u.map(({data:f,name:h,type:k})=>new File([new Uint8Array(f.data)],h,{type:k})));default:return a}}async function _r(a,s,o){let{compression:u,transform:f=F=>F,rename:h,convert:k,...U}=o;const _=await xr(a,k).then(Ce),x=await Promise.all(_.map(async F=>{typeof u=="string"&&(u=br[u]);let[M,W]=await Promise.all([Er(U||{}),u?vr(F,u):Promise.resolve(F)]),R;try{R=await Br(W)}catch{}return await Ar({file:W,url:M.uploadUrl,onProgress(y){s(Math.floor(y.loaded/y.total*100))}}),f({name:h||W.name,size:W.size,url:M.url,type:W.type,dimensions:R})}));return x.length===1?x[0]:x}function jr(a,s,o={}){let{group:u=1}=o,f=a.match(s);if(f)return f[u]}function Sr(a){return new Promise((s,o)=>{setTimeout(s,a)})}function Lr(a){return a==="false"?!1:a==="true"?!0:a}async function Fr(a,s={}){let{interval:o=200,limit:u=50}=s,f=0,h;for(;f<u&&(f++,!(h=a()));)await Sr(o);if(f>=u)throw new Error("Could not resolve");return h}function Dr(a,s={type:"text/javascript"}){if(!document||document.querySelector(`script[src="${a}"]`))return;let{type:o}=s,u=document.createElement("script");u.type=o,u.src=a,document.body.appendChild(u)}function Cr(a,s=1,o={}){const u={en:ht,nb:zt},f=document.documentElement.getAttribute("lang")||"nb";let h=u[f]?.[a]||a;if(h?.includes("|")&&(h=h.split("|")[s-1]),o instanceof Array){const k=/\{.*?\}/;h.match(k).forEach((_,x)=>{h=h.replace(_,o[x])})}return h}function Pr(a){return{validator(s,o){return a instanceof Array?s instanceof Array?s.every(u=>a.includes(u)):a.includes(s):a(s,o)}}}function kr(a){return Object.prototype.toString.call(a)==="[object Object]"}function Pe(a,s,o={}){if(!s||!kr(s))return a;let{ignoreMissing:u=!1}=o,f={},h=(U,_)=>U.length===_.length&&Ee(U.slice())===Ee(_.slice()),k=function(U,_,x){let F=Object.prototype.toString.call(U),M=Object.prototype.toString.call(_);if(F!==M){f[x]=_;return}if(F==="[object Object]"){let W=Pe(U,_,o);Object.keys(W).length&&(f[x]=W);return}if(F==="[object Array]"){h(U,_)||(f[x]=_);return}if(F==="[object Function]"){U.toString()!==_.toString()&&(f[x]=_);return}U!==_&&(f[x]=_)};for(let U in a)Object.hasOwn(a,U)&&k(a[U],s[U],U);if(!u)for(let U in s)Object.hasOwn(s,U)&&!(U in a)&&(f[U]=s[U]);return f}function Mr(...a){return!!Object.keys(Pe(...a)).length}const Or=function(){return JSON.parse(JSON.stringify.apply(this,arguments))};function Wr(a,s,o){return _r(a,s,o)}function Rr(a,s=document.documentElement.getAttribute("lang")||"nb"){return!a&&a!==0?"-":a.toLocaleString(s,{style:"currency",currency:"NOK",minimumFractionDigits:0})}const Ur=a=>{if(typeof a!="string")return a;try{return JSON.parse(a)}catch{return{}}},Nr=(a={},s={})=>o=>Ur(a)[o]||s[o]||o,Ue=(a,s={})=>o=>{switch(a){case"currency":const{locale:u,...f}=s;return new Intl.NumberFormat(u,{style:"currency",maximumFractionDigits:0,...f}).format(o);case"number":return new Intl.NumberFormat(s.locale).format(o);case"year":case"years":return[o,new Intl.RelativeTimeFormat(s.locale).formatToParts(o,"year").at(-1).value].join(" ");case"percent":const{maximumFractionDigits:h=0}=s;return[Number(o).toFixed(h),"%"].join("");default:return o}},$r=(a={})=>{const{locale:s,currency:o}=a,u=/(.{1})\d{3}(\D)\d$/,f=Ue("number",{locale:s})(1000.1);let[h,k,U]=u.exec(f);const _=Ue("currency",{locale:s,currency:o})(1000.1),x=_.replace(/[\d\s\,\.]/g,""),F={mask:Number,thousandsSeparator:k};return _.match(/^\d/)?{suffix:x,mask:F}:{symbol:x,mask:F}};function Hr(a,s=300){let o;return(...u)=>{clearTimeout(o),o=setTimeout(()=>{a.apply(this,u)},s)}}function Yr(a){if(!a)return;a=a.replace(/^\s+|\s+$/g,""),a=a.toLowerCase();const s="àáäâèéëêìíïîòóöôùúüûñç·/_,:;",o="aaaaeeeeiiiioooouuuunc------";for(let u=0,f=s.length;u<f;u++)a=a.replace(new RegExp(s.charAt(u),"g"),o.charAt(u));return a=a.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"),a}export{Or as C,Hr as D,jr as E,Dr as L,Pr as P,Yr as S,Cr as T,Fr as W,$r as a,Nr as b,de as c,Tr as d,Rr as e,Ue as f,Vt as g,Mr as h,Pe as i,Lr as t,Wr as u};