-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathmimetext.iife.js
2 lines (2 loc) · 47.5 KB
/
mimetext.iife.js
1
2
var MimeText=function(t){"use strict";const e="function"==typeof Buffer,r=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),n=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),i=(t=>{let e={};return t.forEach(((t,r)=>e[t]=r)),e})(n),o=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),a=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),t=>t.replace(/=/g,"").replace(/[+\/]/g,(t=>"+"==t?"-":"_"))),c=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),s=t=>{let e,r,i,o,u="";const a=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(i=t.charCodeAt(a++))>255||(o=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|i<<8|o,u+=n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}return a?u.slice(0,a-3)+"===".substring(a):u},f="function"==typeof btoa?t=>btoa(t):e?t=>Buffer.from(t,"binary").toString("base64"):s,l=e?t=>Buffer.from(t).toString("base64"):t=>{let e=[];for(let r=0,n=t.length;r<n;r+=4096)e.push(u.apply(null,t.subarray(r,r+4096)));return f(e.join(""))},d=t=>{if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?u(192|e>>>6)+u(128|63&e):u(224|e>>>12&15)+u(128|e>>>6&63)+u(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return u(240|e>>>18&7)+u(128|e>>>12&63)+u(128|e>>>6&63)+u(128|63&e)},h=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,p=t=>t.replace(h,d),v=e?t=>Buffer.from(t,"utf8").toString("base64"):r?t=>l(r.encode(t)):t=>f(p(t)),m=(t,e=!1)=>e?a(v(t)):v(t),y=t=>m(t,!0),g=t=>{if(t=t.replace(/\s+/g,""),!o.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));let e,r,n,a="";for(let o=0;o<t.length;)e=i[t.charAt(o++)]<<18|i[t.charAt(o++)]<<12|(r=i[t.charAt(o++)])<<6|(n=i[t.charAt(o++)]),a+=64===r?u(e>>16&255):64===n?u(e>>16&255,e>>8&255):u(e>>16&255,e>>8&255,255&e);return a},b=m,S=y;var w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function O(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var T,x,A,M,j,E,C,I,P,F,D,_,L,R,B,N,H={exports:{}},k={};function G(){if(x)return T;x=1;var t=function(t){return t&&t.Math===Math&&t};return T=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof w&&w)||t("object"==typeof T&&T)||function(){return this}()||Function("return this")()}function V(){return M?A:(M=1,A=function(t){try{return!!t()}catch(t){return!0}})}function W(){return E?j:(E=1,j=!V()((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})))}function z(){if(I)return C;I=1;var t=W(),e=Function.prototype,r=e.apply,n=e.call;return C="object"==typeof Reflect&&Reflect.apply||(t?n.bind(r):function(){return n.apply(r,arguments)}),C}function U(){if(F)return P;F=1;var t=W(),e=Function.prototype,r=e.call,n=t&&e.bind.bind(r,r);return P=t?n:function(t){return function(){return r.apply(t,arguments)}},P}function X(){if(_)return D;_=1;var t=U(),e=t({}.toString),r=t("".slice);return D=function(t){return r(e(t),8,-1)}}function q(){if(R)return L;R=1;var t=X(),e=U();return L=function(r){if("Function"===t(r))return e(r)}}function Y(){if(N)return B;N=1;var t="object"==typeof document&&document.all;return B=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var K,$,J,Z,Q={};function tt(){return $?K:($=1,K=!V()((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})))}function et(){if(Z)return J;Z=1;var t=W(),e=Function.prototype.call;return J=t?e.bind(e):function(){return e.apply(e,arguments)},J}var rt,nt,it,ot,ut,at,ct,st,ft,lt,dt,ht,pt,vt,mt,yt,gt,bt,St,wt,Ot,Tt,xt,At,Mt,jt,Et,Ct,It,Pt,Ft,Dt,_t,Lt,Rt,Bt,Nt,Ht={};function kt(){if(rt)return Ht;rt=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return Ht.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,Ht}function Gt(){return it?nt:(it=1,nt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function Vt(){if(ut)return ot;ut=1;var t=U(),e=V(),r=X(),n=Object,i=t("".split);return ot=e((function(){return!n("z").propertyIsEnumerable(0)}))?function(t){return"String"===r(t)?i(t,""):n(t)}:n}function Wt(){return ct?at:(ct=1,at=function(t){return null==t})}function zt(){if(ft)return st;ft=1;var t=Wt(),e=TypeError;return st=function(r){if(t(r))throw new e("Can't call method on "+r);return r}}function Ut(){if(dt)return lt;dt=1;var t=Vt(),e=zt();return lt=function(r){return t(e(r))}}function Xt(){if(pt)return ht;pt=1;var t=Y();return ht=function(e){return"object"==typeof e?null!==e:t(e)}}function qt(){return mt?vt:(mt=1,vt={})}function Yt(){if(gt)return yt;gt=1;var t=qt(),e=G(),r=Y(),n=function(t){return r(t)?t:void 0};return yt=function(r,i){return arguments.length<2?n(t[r])||n(e[r]):t[r]&&t[r][i]||e[r]&&e[r][i]},yt}function Kt(){return St?bt:(St=1,bt=U()({}.isPrototypeOf))}function $t(){if(Ot)return wt;Ot=1;var t=G().navigator,e=t&&t.userAgent;return wt=e?String(e):""}function Jt(){if(xt)return Tt;xt=1;var t,e,r=G(),n=$t(),i=r.process,o=r.Deno,u=i&&i.versions||o&&o.version,a=u&&u.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(e=+t[1]),Tt=e}function Zt(){if(Mt)return At;Mt=1;var t=Jt(),e=V(),r=G().String;return At=!!Object.getOwnPropertySymbols&&!e((function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})),At}function Qt(){return Et?jt:(Et=1,jt=Zt()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function te(){if(It)return Ct;It=1;var t=Yt(),e=Y(),r=Kt(),n=Object;return Ct=Qt()?function(t){return"symbol"==typeof t}:function(i){var o=t("Symbol");return e(o)&&r(o.prototype,n(i))}}function ee(){if(Ft)return Pt;Ft=1;var t=String;return Pt=function(e){try{return t(e)}catch(t){return"Object"}}}function re(){if(_t)return Dt;_t=1;var t=Y(),e=ee(),r=TypeError;return Dt=function(n){if(t(n))return n;throw new r(e(n)+" is not a function")}}function ne(){if(Rt)return Lt;Rt=1;var t=re(),e=Wt();return Lt=function(r,n){var i=r[n];return e(i)?void 0:t(i)}}function ie(){if(Nt)return Bt;Nt=1;var t=et(),e=Y(),r=Xt(),n=TypeError;return Bt=function(i,o){var u,a;if("string"===o&&e(u=i.toString)&&!r(a=t(u,i)))return a;if(e(u=i.valueOf)&&!r(a=t(u,i)))return a;if("string"!==o&&e(u=i.toString)&&!r(a=t(u,i)))return a;throw new n("Can't convert object to primitive value")}}var oe,ue,ae,ce,se,fe,le,de,he,pe,ve,me,ye,ge,be,Se,we,Oe,Te,xe,Ae,Me,je,Ee,Ce,Ie,Pe,Fe,De={exports:{}};function _e(){return ue?oe:(ue=1,oe=!0)}function Le(){if(ce)return ae;ce=1;var t=G(),e=Object.defineProperty;return ae=function(r,n){try{e(t,r,{value:n,configurable:!0,writable:!0})}catch(e){t[r]=n}return n}}function Re(){if(se)return De.exports;se=1;var t=_e(),e=G(),r=Le(),n="__core-js_shared__",i=De.exports=e[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.39.0",mode:t?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"}),De.exports}function Be(){if(le)return fe;le=1;var t=Re();return fe=function(e,r){return t[e]||(t[e]=r||{})}}function Ne(){if(he)return de;he=1;var t=zt(),e=Object;return de=function(r){return e(t(r))}}function He(){if(ve)return pe;ve=1;var t=U(),e=Ne(),r=t({}.hasOwnProperty);return pe=Object.hasOwn||function(t,n){return r(e(t),n)}}function ke(){if(ye)return me;ye=1;var t=U(),e=0,r=Math.random(),n=t(1..toString);return me=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++e+r,36)}}function Ge(){if(be)return ge;be=1;var t=G(),e=Be(),r=He(),n=ke(),i=Zt(),o=Qt(),u=t.Symbol,a=e("wks"),c=o?u.for||u:u&&u.withoutSetter||n;return ge=function(t){return r(a,t)||(a[t]=i&&r(u,t)?u[t]:c("Symbol."+t)),a[t]}}function Ve(){if(we)return Se;we=1;var t=et(),e=Xt(),r=te(),n=ne(),i=ie(),o=TypeError,u=Ge()("toPrimitive");return Se=function(a,c){if(!e(a)||r(a))return a;var s,f=n(a,u);if(f){if(void 0===c&&(c="default"),s=t(f,a,c),!e(s)||r(s))return s;throw new o("Can't convert object to primitive value")}return void 0===c&&(c="number"),i(a,c)}}function We(){if(Te)return Oe;Te=1;var t=Ve(),e=te();return Oe=function(r){var n=t(r,"string");return e(n)?n:n+""}}function ze(){if(Ae)return xe;Ae=1;var t=G(),e=Xt(),r=t.document,n=e(r)&&e(r.createElement);return xe=function(t){return n?r.createElement(t):{}}}function Ue(){if(je)return Me;je=1;var t=tt(),e=V(),r=ze();return Me=!t&&!e((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))}function Xe(){if(Ee)return Q;Ee=1;var t=tt(),e=et(),r=kt(),n=Gt(),i=Ut(),o=We(),u=He(),a=Ue(),c=Object.getOwnPropertyDescriptor;return Q.f=t?c:function(t,s){if(t=i(t),s=o(s),a)try{return c(t,s)}catch(t){}if(u(t,s))return n(!e(r.f,t,s),t[s])},Q}function qe(){if(Ie)return Ce;Ie=1;var t=V(),e=Y(),r=/#|\.prototype\./,n=function(r,n){var c=o[i(r)];return c===a||c!==u&&(e(n)?t(n):!!n)},i=n.normalize=function(t){return String(t).replace(r,".").toLowerCase()},o=n.data={},u=n.NATIVE="N",a=n.POLYFILL="P";return Ce=n}function Ye(){if(Fe)return Pe;Fe=1;var t=q(),e=re(),r=W(),n=t(t.bind);return Pe=function(t,i){return e(t),void 0===i?t:r?n(t,i):function(){return t.apply(i,arguments)}},Pe}var Ke,$e,Je,Ze,Qe,tr,er,rr,nr,ir,or,ur,ar,cr,sr,fr,lr,dr,hr,pr={};function vr(){return $e?Ke:($e=1,Ke=tt()&&V()((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})))}function mr(){if(Ze)return Je;Ze=1;var t=Xt(),e=String,r=TypeError;return Je=function(n){if(t(n))return n;throw new r(e(n)+" is not an object")}}function yr(){if(Qe)return pr;Qe=1;var t=tt(),e=Ue(),r=vr(),n=mr(),i=We(),o=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c="enumerable",s="configurable",f="writable";return pr.f=t?r?function(t,e,r){if(n(t),e=i(e),n(r),"function"==typeof t&&"prototype"===e&&"value"in r&&f in r&&!r[f]){var o=a(t,e);o&&o[f]&&(t[e]=r.value,r={configurable:s in r?r[s]:o[s],enumerable:c in r?r[c]:o[c],writable:!1})}return u(t,e,r)}:u:function(t,r,a){if(n(t),r=i(r),n(a),e)try{return u(t,r,a)}catch(t){}if("get"in a||"set"in a)throw new o("Accessors not supported");return"value"in a&&(t[r]=a.value),t},pr}function gr(){if(er)return tr;er=1;var t=tt(),e=yr(),r=Gt();return tr=t?function(t,n,i){return e.f(t,n,r(1,i))}:function(t,e,r){return t[e]=r,t}}function br(){if(nr)return rr;nr=1;var t=G(),e=z(),r=q(),n=Y(),i=Xe().f,o=qe(),u=qt(),a=Ye(),c=gr(),s=He(),f=function(t){var r=function(n,i,o){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,i)}return new t(n,i,o)}return e(t,this,arguments)};return r.prototype=t.prototype,r};return rr=function(e,l){var d,h,p,v,m,y,g,b,S,w=e.target,O=e.global,T=e.stat,x=e.proto,A=O?t:T?t[w]:t[w]&&t[w].prototype,M=O?u:u[w]||c(u,w,{})[w],j=M.prototype;for(v in l)h=!(d=o(O?v:w+(T?".":"#")+v,e.forced))&&A&&s(A,v),y=M[v],h&&(g=e.dontCallGetSet?(S=i(A,v))&&S.value:A[v]),m=h&&g?g:l[v],(d||x||typeof y!=typeof m)&&(b=e.bind&&h?a(m,t):e.wrap&&h?f(m):x&&n(m)?r(m):m,(e.sham||m&&m.sham||y&&y.sham)&&c(b,"sham",!0),c(M,v,b),x&&(s(u,p=w+"Prototype")||c(u,p,{}),c(u[p],v,m),e.real&&j&&(d||!j[v])&&c(j,v,m)))}}function Sr(){if(ir)return k;ir=1;var t=br(),e=tt(),r=yr().f;return t({target:"Object",stat:!0,forced:Object.defineProperty!==r,sham:!e},{defineProperty:r}),k}function wr(){if(or)return H.exports;or=1,Sr();var t=qt().Object,e=H.exports=function(e,r,n){return t.defineProperty(e,r,n)};return t.defineProperty.sham&&(e.sham=!0),H.exports}function Or(){return ar?ur:(ar=1,ur=wr())}function Tr(){return sr?cr:(sr=1,cr=Or())}function xr(){return lr?fr:(lr=1,fr=Tr())}function Ar(){return hr?dr:(hr=1,dr=xr())}var Mr,jr,Er,Cr,Ir,Pr,Fr,Dr,_r,Lr,Rr,Br,Nr,Hr,kr,Gr,Vr,Wr,zr,Ur,Xr,qr,Yr,Kr,$r,Jr,Zr,Qr,tn,en=O(Ar()),rn={};function nn(){if(jr)return Mr;jr=1;var t=X();return Mr=Array.isArray||function(e){return"Array"===t(e)}}function on(){if(Cr)return Er;Cr=1;var t=Math.ceil,e=Math.floor;return Er=Math.trunc||function(r){var n=+r;return(n>0?e:t)(n)}}function un(){if(Pr)return Ir;Pr=1;var t=on();return Ir=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function an(){if(Dr)return Fr;Dr=1;var t=un(),e=Math.min;return Fr=function(r){var n=t(r);return n>0?e(n,9007199254740991):0}}function cn(){if(Lr)return _r;Lr=1;var t=an();return _r=function(e){return t(e.length)}}function sn(){if(Br)return Rr;Br=1;var t=TypeError;return Rr=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}function fn(){if(Hr)return Nr;Hr=1;var t=tt(),e=yr(),r=Gt();return Nr=function(n,i,o){t?e.f(n,i,r(0,o)):n[i]=o}}function ln(){if(Gr)return kr;Gr=1;var t={};return t[Ge()("toStringTag")]="z",kr="[object z]"===String(t)}function dn(){if(Wr)return Vr;Wr=1;var t=ln(),e=Y(),r=X(),n=Ge()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return Vr=t?r:function(t){var u,a,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(u=i(t),n))?a:o?r(u):"Object"===(c=r(u))&&e(u.callee)?"Arguments":c}}function hn(){if(Ur)return zr;Ur=1;var t=U(),e=Y(),r=Re(),n=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return n(t)}),zr=r.inspectSource}function pn(){if(qr)return Xr;qr=1;var t=U(),e=V(),r=Y(),n=dn(),i=Yt(),o=hn(),u=function(){},a=i("Reflect","construct"),c=/^\s*(?:class|function)\b/,s=t(c.exec),f=!c.test(u),l=function(t){if(!r(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},d=function(t){if(!r(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!s(c,o(t))}catch(t){return!0}};return d.sham=!0,Xr=!a||e((function(){var t;return l(l.call)||!l(Object)||!l((function(){t=!0}))||t}))?d:l}function vn(){if(Kr)return Yr;Kr=1;var t=nn(),e=pn(),r=Xt(),n=Ge()("species"),i=Array;return Yr=function(o){var u;return t(o)&&(u=o.constructor,(e(u)&&(u===i||t(u.prototype))||r(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?i:u}}function mn(){if(Jr)return $r;Jr=1;var t=vn();return $r=function(e,r){return new(t(e))(0===r?0:r)}}function yn(){if(Qr)return Zr;Qr=1;var t=V(),e=Ge(),r=Jt(),n=e("species");return Zr=function(e){return r>=51||!t((function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}}var gn,bn,Sn={},wn={};function On(){if(bn)return gn;bn=1;var t=dn(),e=String;return gn=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}var Tn,xn,An,Mn,jn,En,Cn,In,Pn,Fn,Dn,_n,Ln,Rn,Bn,Nn,Hn,kn,Gn,Vn={};function Wn(){if(xn)return Tn;xn=1;var t=un(),e=Math.max,r=Math.min;return Tn=function(n,i){var o=t(n);return o<0?e(o+i,0):r(o,i)}}function zn(){if(Mn)return An;Mn=1;var t=Ut(),e=Wn(),r=cn(),n=function(n){return function(i,o,u){var a=t(i),c=r(a);if(0===c)return!n&&-1;var s,f=e(u,c);if(n&&o!=o){for(;c>f;)if((s=a[f++])!=s)return!0}else for(;c>f;f++)if((n||f in a)&&a[f]===o)return n||f||0;return!n&&-1}};return An={includes:n(!0),indexOf:n(!1)}}function Un(){return En?jn:(En=1,jn={})}function Xn(){if(In)return Cn;In=1;var t=U(),e=He(),r=Ut(),n=zn().indexOf,i=Un(),o=t([].push);return Cn=function(t,u){var a,c=r(t),s=0,f=[];for(a in c)!e(i,a)&&e(c,a)&&o(f,a);for(;u.length>s;)e(c,a=u[s++])&&(~n(f,a)||o(f,a));return f}}function qn(){return Fn?Pn:(Fn=1,Pn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Yn(){if(_n)return Dn;_n=1;var t=Xn(),e=qn();return Dn=Object.keys||function(r){return t(r,e)}}function Kn(){if(Ln)return Vn;Ln=1;var t=tt(),e=vr(),r=yr(),n=mr(),i=Ut(),o=Yn();return Vn.f=t&&!e?Object.defineProperties:function(t,e){n(t);for(var u,a=i(e),c=o(e),s=c.length,f=0;s>f;)r.f(t,u=c[f++],a[u]);return t},Vn}function $n(){return Bn?Rn:(Bn=1,Rn=Yt()("document","documentElement"))}function Jn(){if(Hn)return Nn;Hn=1;var t=Be(),e=ke(),r=t("keys");return Nn=function(t){return r[t]||(r[t]=e(t))}}function Zn(){if(Gn)return kn;Gn=1;var t,e=mr(),r=Kn(),n=qn(),i=Un(),o=$n(),u=ze(),a="prototype",c="script",s=Jn()("IE_PROTO"),f=function(){},l=function(t){return"<"+c+">"+t+"</"+c+">"},d=function(t){t.write(l("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,r,i;h="undefined"!=typeof document?document.domain&&t?d(t):(r=u("iframe"),i="java"+c+":",r.style.display="none",o.appendChild(r),r.src=String(i),(e=r.contentWindow.document).open(),e.write(l("document.F=Object")),e.close(),e.F):d(t);for(var s=n.length;s--;)delete h[a][n[s]];return h()};return i[s]=!0,kn=Object.create||function(t,n){var i;return null!==t?(f[a]=e(t),i=new f,f[a]=null,i[s]=t):i=h(),void 0===n?i:r.f(i,n)}}var Qn,ti={};function ei(){if(Qn)return ti;Qn=1;var t=Xn(),e=qn().concat("length","prototype");return ti.f=Object.getOwnPropertyNames||function(r){return t(r,e)},ti}var ri,ni,ii,oi={};function ui(){return ni?ri:(ni=1,ri=U()([].slice))}function ai(){if(ii)return oi;ii=1;var t=X(),e=Ut(),r=ei().f,n=ui(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return oi.f=function(o){return i&&"Window"===t(o)?function(t){try{return r(t)}catch(t){return n(i)}}(o):r(e(o))},oi}var ci,si,fi,li,di,hi={};function pi(){return ci||(ci=1,hi.f=Object.getOwnPropertySymbols),hi}function vi(){if(fi)return si;fi=1;var t=gr();return si=function(e,r,n,i){return i&&i.enumerable?e[r]=n:t(e,r,n),e}}function mi(){if(di)return li;di=1;var t=yr();return li=function(e,r,n){return t.f(e,r,n)}}var yi,gi,bi,Si,wi,Oi,Ti,xi,Ai,Mi,ji,Ei,Ci,Ii,Pi,Fi,Di={};function _i(){if(yi)return Di;yi=1;var t=Ge();return Di.f=t,Di}function Li(){if(bi)return gi;bi=1;var t=qt(),e=He(),r=_i(),n=yr().f;return gi=function(i){var o=t.Symbol||(t.Symbol={});e(o,i)||n(o,i,{value:r.f(i)})}}function Ri(){if(wi)return Si;wi=1;var t=et(),e=Yt(),r=Ge(),n=vi();return Si=function(){var i=e("Symbol"),o=i&&i.prototype,u=o&&o.valueOf,a=r("toPrimitive");o&&!o[a]&&n(o,a,(function(e){return t(u,this)}),{arity:1})}}function Bi(){if(Ti)return Oi;Ti=1;var t=ln(),e=dn();return Oi=t?{}.toString:function(){return"[object "+e(this)+"]"}}function Ni(){if(Ai)return xi;Ai=1;var t=ln(),e=yr().f,r=gr(),n=He(),i=Bi(),o=Ge()("toStringTag");return xi=function(u,a,c,s){var f=c?u:u&&u.prototype;f&&(n(f,o)||e(f,o,{configurable:!0,value:a}),s&&!t&&r(f,"toString",i))}}function Hi(){if(ji)return Mi;ji=1;var t=G(),e=Y(),r=t.WeakMap;return Mi=e(r)&&/native code/.test(String(r))}function ki(){if(Ci)return Ei;Ci=1;var t,e,r,n=Hi(),i=G(),o=Xt(),u=gr(),a=He(),c=Re(),s=Jn(),f=Un(),l="Object already initialized",d=i.TypeError,h=i.WeakMap;if(n||c.state){var p=c.state||(c.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,t=function(t,e){if(p.has(t))throw new d(l);return e.facade=t,p.set(t,e),e},e=function(t){return p.get(t)||{}},r=function(t){return p.has(t)}}else{var v=s("state");f[v]=!0,t=function(t,e){if(a(t,v))throw new d(l);return e.facade=t,u(t,v,e),e},e=function(t){return a(t,v)?t[v]:{}},r=function(t){return a(t,v)}}return Ei={set:t,get:e,has:r,enforce:function(n){return r(n)?e(n):t(n,{})},getterFor:function(t){return function(r){var n;if(!o(r)||(n=e(r)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}}function Gi(){if(Pi)return Ii;Pi=1;var t=Ye(),e=U(),r=Vt(),n=Ne(),i=cn(),o=mn(),u=e([].push),a=function(e){var a=1===e,c=2===e,s=3===e,f=4===e,l=6===e,d=7===e,h=5===e||l;return function(p,v,m,y){for(var g,b,S=n(p),w=r(S),O=i(w),T=t(v,m),x=0,A=y||o,M=a?A(p,O):c||d?A(p,0):void 0;O>x;x++)if((h||x in w)&&(b=T(g=w[x],x,S),e))if(a)M[x]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return x;case 2:u(M,g)}else switch(e){case 4:return!1;case 7:u(M,g)}return l?-1:s||f?f:M}};return Ii={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}var Vi,Wi,zi,Ui={};function Xi(){return Wi?Vi:(Wi=1,Vi=Zt()&&!!Symbol.for&&!!Symbol.keyFor)}var qi,Yi={};var Ki,$i,Ji,Zi={};function Qi(){if($i)return Ki;$i=1;var t=U(),e=nn(),r=Y(),n=X(),i=On(),o=t([].push);return Ki=function(t){if(r(t))return t;if(e(t)){for(var u=t.length,a=[],c=0;c<u;c++){var s=t[c];"string"==typeof s?o(a,s):"number"!=typeof s&&"Number"!==n(s)&&"String"!==n(s)||o(a,i(s))}var f=a.length,l=!0;return function(t,r){if(l)return l=!1,r;if(e(this))return r;for(var n=0;n<f;n++)if(a[n]===t)return r}}}}var to,eo,ro={};function no(){return eo||(eo=1,function(){if(Fi)return wn;Fi=1;var t=br(),e=G(),r=et(),n=U(),i=_e(),o=tt(),u=Zt(),a=V(),c=He(),s=Kt(),f=mr(),l=Ut(),d=We(),h=On(),p=Gt(),v=Zn(),m=Yn(),y=ei(),g=ai(),b=pi(),S=Xe(),w=yr(),O=Kn(),T=kt(),x=vi(),A=mi(),M=Be(),j=Jn(),E=Un(),C=ke(),I=Ge(),P=_i(),F=Li(),D=Ri(),_=Ni(),L=ki(),R=Gi().forEach,B=j("hidden"),N="Symbol",H="prototype",k=L.set,W=L.getterFor(N),z=Object[H],X=e.Symbol,q=X&&X[H],Y=e.RangeError,K=e.TypeError,$=e.QObject,J=S.f,Z=w.f,Q=g.f,rt=T.f,nt=n([].push),it=M("symbols"),ot=M("op-symbols"),ut=M("wks"),at=!$||!$[H]||!$[H].findChild,ct=function(t,e,r){var n=J(z,e);n&&delete z[e],Z(t,e,r),n&&t!==z&&Z(z,e,n)},st=o&&a((function(){return 7!==v(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?ct:Z,ft=function(t,e){var r=it[t]=v(q);return k(r,{type:N,tag:t,description:e}),o||(r.description=e),r},lt=function(t,e,r){t===z&<(ot,e,r),f(t);var n=d(e);return f(r),c(it,n)?(r.enumerable?(c(t,B)&&t[B][n]&&(t[B][n]=!1),r=v(r,{enumerable:p(0,!1)})):(c(t,B)||Z(t,B,p(1,v(null))),t[B][n]=!0),st(t,n,r)):Z(t,n,r)},dt=function(t,e){f(t);var n=l(e),i=m(n).concat(mt(n));return R(i,(function(e){o&&!r(ht,n,e)||lt(t,e,n[e])})),t},ht=function(t){var e=d(t),n=r(rt,this,e);return!(this===z&&c(it,e)&&!c(ot,e))&&(!(n||!c(this,e)||!c(it,e)||c(this,B)&&this[B][e])||n)},pt=function(t,e){var r=l(t),n=d(e);if(r!==z||!c(it,n)||c(ot,n)){var i=J(r,n);return!i||!c(it,n)||c(r,B)&&r[B][n]||(i.enumerable=!0),i}},vt=function(t){var e=Q(l(t)),r=[];return R(e,(function(t){c(it,t)||c(E,t)||nt(r,t)})),r},mt=function(t){var e=t===z,r=Q(e?ot:l(t)),n=[];return R(r,(function(t){!c(it,t)||e&&!c(z,t)||nt(n,it[t])})),n};u||(X=function(){if(s(q,this))throw new K("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?h(arguments[0]):void 0,n=C(t),i=function(t){var o=void 0===this?e:this;o===z&&r(i,ot,t),c(o,B)&&c(o[B],n)&&(o[B][n]=!1);var u=p(1,t);try{st(o,n,u)}catch(t){if(!(t instanceof Y))throw t;ct(o,n,u)}};return o&&at&&st(z,n,{configurable:!0,set:i}),ft(n,t)},x(q=X[H],"toString",(function(){return W(this).tag})),x(X,"withoutSetter",(function(t){return ft(C(t),t)})),T.f=ht,w.f=lt,O.f=dt,S.f=pt,y.f=g.f=vt,b.f=mt,P.f=function(t){return ft(I(t),t)},o&&(A(q,"description",{configurable:!0,get:function(){return W(this).description}}),i||x(z,"propertyIsEnumerable",ht,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:X}),R(m(ut),(function(t){F(t)})),t({target:N,stat:!0,forced:!u},{useSetter:function(){at=!0},useSimple:function(){at=!1}}),t({target:"Object",stat:!0,forced:!u,sham:!o},{create:function(t,e){return void 0===e?v(t):dt(v(t),e)},defineProperty:lt,defineProperties:dt,getOwnPropertyDescriptor:pt}),t({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:vt}),D(),_(X,N),E[B]=!0}(),function(){if(zi)return Ui;zi=1;var t=br(),e=Yt(),r=He(),n=On(),i=Be(),o=Xi(),u=i("string-to-symbol-registry"),a=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{for:function(t){var i=n(t);if(r(u,i))return u[i];var o=e("Symbol")(i);return u[i]=o,a[o]=i,o}})}(),function(){if(qi)return Yi;qi=1;var t=br(),e=He(),r=te(),n=ee(),i=Be(),o=Xi(),u=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{keyFor:function(t){if(!r(t))throw new TypeError(n(t)+" is not a symbol");if(e(u,t))return u[t]}})}(),function(){if(Ji)return Zi;Ji=1;var t=br(),e=Yt(),r=z(),n=et(),i=U(),o=V(),u=Y(),a=te(),c=ui(),s=Qi(),f=Zt(),l=String,d=e("JSON","stringify"),h=i(/./.exec),p=i("".charAt),v=i("".charCodeAt),m=i("".replace),y=i(1..toString),g=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,w=!f||o((function(){var t=e("Symbol")("stringify detection");return"[null]"!==d([t])||"{}"!==d({a:t})||"{}"!==d(Object(t))})),O=o((function(){return'"\\udf06\\ud834"'!==d("\udf06\ud834")||'"\\udead"'!==d("\udead")})),T=function(t,e){var i=c(arguments),o=s(e);if(u(o)||void 0!==t&&!a(t))return i[1]=function(t,e){if(u(o)&&(e=n(o,this,l(t),e)),!a(e))return e},r(d,null,i)},x=function(t,e,r){var n=p(r,e-1),i=p(r,e+1);return h(b,t)&&!h(S,i)||h(S,t)&&!h(b,n)?"\\u"+y(v(t,0),16):t};d&&t({target:"JSON",stat:!0,arity:3,forced:w||O},{stringify:function(t,e,n){var i=c(arguments),o=r(w?T:d,null,i);return O&&"string"==typeof o?m(o,g,x):o}})}(),function(){if(to)return ro;to=1;var t=br(),e=Zt(),r=V(),n=pi(),i=Ne();t({target:"Object",stat:!0,forced:!e||r((function(){n.f(1)}))},{getOwnPropertySymbols:function(t){var e=n.f;return e?e(i(t)):[]}})}()),Sn}var io;var oo;var uo;var ao,co={};function so(){return ao||(ao=1,Li()("iterator")),co}var fo;var lo;var ho;var po;var vo;var mo;var yo,go={};function bo(){if(yo)return go;yo=1;var t=Li(),e=Ri();return t("toPrimitive"),e(),go}var So,wo={};var Oo;var To,xo,Ao,Mo={};function jo(){return Ao?xo:(Ao=1,function(){if(tn)return rn;tn=1;var t=br(),e=V(),r=nn(),n=Xt(),i=Ne(),o=cn(),u=sn(),a=fn(),c=mn(),s=yn(),f=Ge(),l=Jt(),d=f("isConcatSpreadable"),h=l>=51||!e((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),p=function(t){if(!n(t))return!1;var e=t[d];return void 0!==e?!!e:r(t)};t({target:"Array",proto:!0,arity:1,forced:!h||!s("concat")},{concat:function(t){var e,r,n,s,f,l=i(this),d=c(l,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(p(f=-1===e?l:arguments[e]))for(s=o(f),u(h+s),r=0;r<s;r++,h++)r in f&&a(d,h,f[r]);else u(h+1),a(d,h++,f);return d.length=h,d}})}(),no(),io||(io=1,Li()("asyncIterator")),oo||(oo=1,Li()("hasInstance")),uo||(uo=1,Li()("isConcatSpreadable")),so(),fo||(fo=1,Li()("match")),lo||(lo=1,Li()("matchAll")),ho||(ho=1,Li()("replace")),po||(po=1,Li()("search")),vo||(vo=1,Li()("species")),mo||(mo=1,Li()("split")),bo(),function(){if(So)return wo;So=1;var t=Yt(),e=Li(),r=Ni();e("toStringTag"),r(t("Symbol"),"Symbol")}(),Oo||(Oo=1,Li()("unscopables")),function(){if(To)return Mo;To=1;var t=G();Ni()(t.JSON,"JSON",!0)}(),xo=qt().Symbol)}var Eo,Co,Io,Po,Fo,Do,_o,Lo,Ro,Bo,No,Ho,ko,Go,Vo,Wo,zo,Uo,Xo,qo,Yo,Ko,$o,Jo,Zo,Qo,tu,eu,ru,nu,iu,ou,uu,au={};function cu(){return Co?Eo:(Co=1,Eo=function(){})}function su(){return Po?Io:(Po=1,Io={})}function fu(){if(Do)return Fo;Do=1;var t=tt(),e=He(),r=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,i=e(r,"name"),o=i&&"something"===function(){}.name,u=i&&(!t||t&&n(r,"name").configurable);return Fo={EXISTS:i,PROPER:o,CONFIGURABLE:u}}function lu(){return Lo?_o:(Lo=1,_o=!V()((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})))}function du(){if(Bo)return Ro;Bo=1;var t=He(),e=Y(),r=Ne(),n=Jn(),i=lu(),o=n("IE_PROTO"),u=Object,a=u.prototype;return Ro=i?u.getPrototypeOf:function(n){var i=r(n);if(t(i,o))return i[o];var c=i.constructor;return e(c)&&i instanceof c?c.prototype:i instanceof u?a:null}}function hu(){if(Ho)return No;Ho=1;var t,e,r,n=V(),i=Y(),o=Xt(),u=Zn(),a=du(),c=vi(),s=Ge(),f=_e(),l=s("iterator"),d=!1;return[].keys&&("next"in(r=[].keys())?(e=a(a(r)))!==Object.prototype&&(t=e):d=!0),!o(t)||n((function(){var e={};return t[l].call(e)!==e}))?t={}:f&&(t=u(t)),i(t[l])||c(t,l,(function(){return this})),No={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function pu(){if(Go)return ko;Go=1;var t=hu().IteratorPrototype,e=Zn(),r=Gt(),n=Ni(),i=su(),o=function(){return this};return ko=function(u,a,c,s){var f=a+" Iterator";return u.prototype=e(t,{next:r(+!s,c)}),n(u,f,!1,!0),i[f]=o,u}}function vu(){if(Wo)return Vo;Wo=1;var t=U(),e=re();return Vo=function(r,n,i){try{return t(e(Object.getOwnPropertyDescriptor(r,n)[i]))}catch(t){}}}function mu(){if(Uo)return zo;Uo=1;var t=Xt();return zo=function(e){return t(e)||null===e}}function yu(){if(qo)return Xo;qo=1;var t=mu(),e=String,r=TypeError;return Xo=function(n){if(t(n))return n;throw new r("Can't set "+e(n)+" as a prototype")}}function gu(){if(Ko)return Yo;Ko=1;var t=vu(),e=Xt(),r=zt(),n=yu();return Yo=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,u={};try{(i=t(Object.prototype,"__proto__","set"))(u,[]),o=u instanceof Array}catch(t){}return function(t,u){return r(t),n(u),e(t)?(o?i(t,u):t.__proto__=u,t):t}}():void 0)}function bu(){if(Jo)return $o;Jo=1;var t=br(),e=et(),r=_e(),n=fu(),i=Y(),o=pu(),u=du(),a=gu(),c=Ni(),s=gr(),f=vi(),l=Ge(),d=su(),h=hu(),p=n.PROPER,v=n.CONFIGURABLE,m=h.IteratorPrototype,y=h.BUGGY_SAFARI_ITERATORS,g=l("iterator"),b="keys",S="values",w="entries",O=function(){return this};return $o=function(n,l,h,T,x,A,M){o(h,l,T);var j,E,C,I=function(t){if(t===x&&L)return L;if(!y&&t&&t in D)return D[t];switch(t){case b:case S:case w:return function(){return new h(this,t)}}return function(){return new h(this)}},P=l+" Iterator",F=!1,D=n.prototype,_=D[g]||D["@@iterator"]||x&&D[x],L=!y&&_||I(x),R="Array"===l&&D.entries||_;if(R&&(j=u(R.call(new n)))!==Object.prototype&&j.next&&(r||u(j)===m||(a?a(j,m):i(j[g])||f(j,g,O)),c(j,P,!0,!0),r&&(d[P]=O)),p&&x===S&&_&&_.name!==S&&(!r&&v?s(D,"name",S):(F=!0,L=function(){return e(_,this)})),x)if(E={values:I(S),keys:A?L:I(b),entries:I(w)},M)for(C in E)(y||F||!(C in D))&&f(D,C,E[C]);else t({target:l,proto:!0,forced:y||F},E);return r&&!M||D[g]===L||f(D,g,L,{name:x}),d[l]=L,E}}function Su(){return Qo?Zo:(Qo=1,Zo=function(t,e){return{value:t,done:e}})}function wu(){if(eu)return tu;eu=1;var t=Ut(),e=cu(),r=su(),n=ki(),i=yr().f,o=bu(),u=Su(),a=_e(),c=tt(),s="Array Iterator",f=n.set,l=n.getterFor(s);tu=o(Array,"Array",(function(e,r){f(this,{type:s,target:t(e),index:0,kind:r})}),(function(){var t=l(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)}),"values");var d=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!a&&c&&"values"!==d.name)try{i(d,"name",{value:"values"})}catch(t){}return tu}function Ou(){return nu?ru:(nu=1,ru={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})}function Tu(){if(iu)return au;iu=1,wu();var t=Ou(),e=G(),r=Ni(),n=su();for(var i in t)r(e[i],i),n[i]=n.Array;return au}function xu(){if(uu)return ou;uu=1;var t=jo();return Tu(),ou=t}var Au,Mu={};var ju;var Eu;var Cu,Iu,Pu;function Fu(){if(Pu)return Iu;Pu=1;var t=xu();return function(){if(Au)return Mu;Au=1;var t=Ge(),e=yr().f,r=t("metadata"),n=Function.prototype;void 0===n[r]&&e(n,r,{value:null})}(),ju||(ju=1,Li()("asyncDispose")),Eu||(Eu=1,Li()("dispose")),Cu||(Cu=1,Li()("metadata")),Iu=t}var Du,_u,Lu;function Ru(){if(_u)return Du;_u=1;var t=Yt(),e=U(),r=t("Symbol"),n=r.keyFor,i=e(r.prototype.valueOf);return Du=r.isRegisteredSymbol||function(t){try{return void 0!==n(i(t))}catch(t){return!1}}}var Bu,Nu,Hu;function ku(){if(Nu)return Bu;Nu=1;for(var t=Be(),e=Yt(),r=U(),n=te(),i=Ge(),o=e("Symbol"),u=o.isWellKnownSymbol,a=e("Object","getOwnPropertyNames"),c=r(o.prototype.valueOf),s=t("wks"),f=0,l=a(o),d=l.length;f<d;f++)try{var h=l[f];n(o[h])&&i(h)}catch(t){}return Bu=function(t){if(u&&u(t))return!0;try{for(var e=c(t),r=0,n=a(s),i=n.length;r<i;r++)if(s[n[r]]==e)return!0}catch(t){}return!1},Bu}var Gu;var Vu;var Wu;var zu;var Uu;var Xu;var qu;var Yu,Ku,$u,Ju,Zu;function Qu(){if($u)return Ku;$u=1;var t=Fu();return Lu||(Lu=1,br()({target:"Symbol",stat:!0},{isRegisteredSymbol:Ru()})),Hu||(Hu=1,br()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:ku()})),Gu||(Gu=1,Li()("customMatcher")),Vu||(Vu=1,Li()("observable")),Wu||(Wu=1,br()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Ru()})),zu||(zu=1,br()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:ku()})),Uu||(Uu=1,Li()("matcher")),Xu||(Xu=1,Li()("metadataKey")),qu||(qu=1,Li()("patternMatch")),Yu||(Yu=1,Li()("replaceAll")),Ku=t}function ta(){return Zu?Ju:(Zu=1,Ju=Qu())}var ea,ra,na,ia,oa,ua,aa,ca,sa,fa,la,da,ha,pa=O(ta()),va={};function ma(){if(ra)return ea;ra=1;var t=U(),e=un(),r=On(),n=zt(),i=t("".charAt),o=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,c){var s,f,l=r(n(a)),d=e(c),h=l.length;return d<0||d>=h?t?"":void 0:(s=o(l,d))<55296||s>56319||d+1===h||(f=o(l,d+1))<56320||f>57343?t?i(l,d):s:t?u(l,d,d+2):f-56320+(s-55296<<10)+65536}};return ea={codeAt:a(!1),charAt:a(!0)}}function ya(){return oa?ia:(oa=1,wu(),function(){if(na)return va;na=1;var t=ma().charAt,e=On(),r=ki(),n=bu(),i=Su(),o="String Iterator",u=r.set,a=r.getterFor(o);n(String,"String",(function(t){u(this,{type:o,string:e(t),index:0})}),(function(){var e,r=a(this),n=r.string,o=r.index;return o>=n.length?i(void 0,!0):(e=t(n,o),r.index+=e.length,i(e,!1))}))}(),so(),ia=_i().f("iterator"))}function ga(){if(aa)return ua;aa=1;var t=ya();return Tu(),ua=t}function ba(){return sa?ca:(sa=1,ca=ga())}function Sa(){return la?fa:(la=1,fa=ba())}function wa(){return ha?da:(ha=1,da=Sa())}var Oa,Ta,xa,Aa,Ma,ja,Ea,Ca,Ia,Pa,Fa=O(wa());function Da(t){return Da="function"==typeof pa&&"symbol"==typeof Fa?function(t){return typeof t}:function(t){return t&&"function"==typeof pa&&t.constructor===pa&&t!==pa.prototype?"symbol":typeof t},Da(t)}function _a(){return Ta?Oa:(Ta=1,bo(),Oa=_i().f("toPrimitive"))}function La(){return Aa?xa:(Aa=1,xa=_a())}function Ra(){return ja?Ma:(ja=1,Ma=La())}function Ba(){return Ca?Ea:(Ca=1,Ea=Ra())}function Na(){return Pa?Ia:(Pa=1,Ia=Ba())}var Ha=O(Na());function ka(t){var e=function(t,e){if("object"!=Da(t)||!t)return t;var r=t[Ha];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Da(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Da(e)?e:e+""}function Ga(t,e,r){return(e=ka(e))in t?en(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class Va extends Error{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";super(e),Ga(this,"name",""),Ga(this,"description",""),this.name=t,this.description=e}}var Wa,za,Ua,Xa,qa,Ya,Ka,$a,Ja,Za,Qa,tc,ec,rc,nc,ic,oc,uc,ac,cc,sc,fc,lc,dc={};function hc(){return za?Wa:(za=1,Wa="\t\n\v\f\r \u2028\u2029\ufeff")}function pc(){if(Xa)return Ua;Xa=1;var t=U(),e=zt(),r=On(),n=hc(),i=t("".replace),o=RegExp("^["+n+"]+"),u=RegExp("(^|[^"+n+"])["+n+"]+$"),a=function(t){return function(n){var a=r(e(n));return 1&t&&(a=i(a,o,"")),2&t&&(a=i(a,u,"$1")),a}};return Ua={start:a(1),end:a(2),trim:a(3)}}function vc(){if(Ya)return qa;Ya=1;var t=fu().PROPER,e=V(),r=hc();return qa=function(n){return e((function(){return!!r[n]()||"
"!=="
"[n]()||t&&r[n].name!==n}))}}function mc(){if(Ja)return $a;Ja=1;var t=G(),e=qt();return $a=function(r,n){var i=e[r+"Prototype"],o=i&&i[n];if(o)return o;var u=t[r],a=u&&u.prototype;return a&&a[n]}}function yc(){return Qa?Za:(Qa=1,function(){if(Ka)return dc;Ka=1;var t=br(),e=pc().trim;t({target:"String",proto:!0,forced:vc()("trim")},{trim:function(){return e(this)}})}(),Za=mc()("String","trim"))}function gc(){if(ec)return tc;ec=1;var t=Kt(),e=yc(),r=String.prototype;return tc=function(n){var i=n.trim;return"string"==typeof n||n===r||t(r,n)&&i===r.trim?e:i}}function bc(){return nc?rc:(nc=1,rc=gc())}function Sc(){return oc?ic:(oc=1,ic=bc())}function wc(){return ac?uc:(ac=1,uc=Sc())}function Oc(){return sc?cc:(sc=1,cc=wc())}var Tc=O(lc?fc:(lc=1,fc=Oc()));class xc{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{type:"To"};Ga(this,"reSpecCompliantAddr",/(([^<>\r\n]+)\s)?<[^\r\n]+>/),Ga(this,"name",""),Ga(this,"addr",""),Ga(this,"type","To"),this.type=e.type,this.parse(t)}getAddrDomain(){if(this.addr.includes("@")){const t=this.addr.split("@");if(t.length>1)return t[1]}return""}dump(){return this.name.length>0?'"'.concat(this.name,'" <').concat(this.addr,">"):"<".concat(this.addr,">")}parse(t){if(this.isMailboxAddrObject(t))return this.addr=t.addr,"string"==typeof t.name&&(this.name=t.name),"string"==typeof t.type&&(this.type=t.type),this;if(this.isMailboxAddrText(t)){const e=Tc(t).call(t);if(e.startsWith("<")&&e.endsWith(">"))return this.addr=e.slice(1,-1),this;const r=e.split(" <");return r[0]=/^("|')/.test(r[0])?r[0].slice(1):r[0],r[0]=/("|')$/.test(r[0])?r[0].slice(0,-1):r[0],r[1]=r[1].slice(0,-1),this.name=r[0],this.addr=r[1],this}if("string"==typeof t)return this.addr=t,this;throw new Va("MIMETEXT_INVALID_MAILBOX","Couldn't recognize the input.")}isMailboxAddrText(t){return"string"==typeof t&&this.reSpecCompliantAddr.test(t)}isMailboxAddrObject(t){return this.isObject(t)&&Object.hasOwn(t,"addr")}isObject(t){return!!t&&t.constructor===Object}}class Ac{constructor(t){Ga(this,"envctx",void 0),Ga(this,"fields",[{name:"Date",generator:()=>(new Date).toUTCString().replace(/GMT|UTC/gi,"+0000")},{name:"From",required:!0,validate:t=>this.validateMailboxSingle(t),dump:t=>this.dumpMailboxSingle(t)},{name:"Sender",validate:t=>this.validateMailboxSingle(t),dump:t=>this.dumpMailboxSingle(t)},{name:"Reply-To",validate:t=>this.validateMailboxSingle(t),dump:t=>this.dumpMailboxSingle(t)},{name:"To",validate:t=>this.validateMailboxMulti(t),dump:t=>this.dumpMailboxMulti(t)},{name:"Cc",validate:t=>this.validateMailboxMulti(t),dump:t=>this.dumpMailboxMulti(t)},{name:"Bcc",validate:t=>this.validateMailboxMulti(t),dump:t=>this.dumpMailboxMulti(t)},{name:"Message-ID",generator:()=>"<"+Math.random().toString(36).slice(2)+"@"+this.fields.filter((t=>"From"===t.name))[0].value.getAddrDomain()+">"},{name:"Subject",required:!0,dump:t=>"string"==typeof t?"=?utf-8?B?"+this.envctx.toBase64(t)+"?=":""},{name:"MIME-Version",generator:()=>"1.0"}]),this.envctx=t}dump(){let t="";for(const e of this.fields){if(e.disabled)continue;const r=void 0!==e.value&&null!==e.value;if(!r&&e.required)throw new Va("MIMETEXT_MISSING_HEADER",'The "'.concat(e.name,'" header is required.'));if(!r&&"function"!=typeof e.generator)continue;r||"function"!=typeof e.generator||(e.value=e.generator());const n=Object.hasOwn(e,"dump")&&"function"==typeof e.dump?e.dump(e.value):"string"==typeof e.value?e.value:"";t+="".concat(e.name,": ").concat(n).concat(this.envctx.eol)}return t.slice(0,-1*this.envctx.eol.length)}toObject(){return this.fields.reduce(((t,e)=>(t[e.name]=e.value,t)),{})}get(t){const e=this.fields.findIndex((e=>e.name.toLowerCase()===t.toLowerCase()));return-1!==e?this.fields[e].value:void 0}set(t,e){const r=e=>e.name.toLowerCase()===t.toLowerCase();if(!!this.fields.some(r)){const n=this.fields.findIndex(r),i=this.fields[n];if(i.validate&&!i.validate(e))throw new Va("MIMETEXT_INVALID_HEADER_VALUE",'The value for the header "'.concat(t,'" is invalid.'));return this.fields[n].value=e,this.fields[n]}return this.setCustom({name:t,value:e,custom:!0,dump:t=>"string"==typeof t?t:""})}setCustom(t){if(this.isHeaderField(t)){if("string"!=typeof t.value)throw new Va("MIMETEXT_INVALID_HEADER_FIELD","Custom header must have a value.");return this.fields.push(t),t}throw new Va("MIMETEXT_INVALID_HEADER_FIELD","Invalid input for custom header. It must be in type of HeaderField.")}validateMailboxSingle(t){return t instanceof xc}validateMailboxMulti(t){return t instanceof xc||this.isArrayOfMailboxes(t)}dumpMailboxMulti(t){const e=t=>0===t.name.length?t.dump():"=?utf-8?B?".concat(this.envctx.toBase64(t.name),"?= <").concat(t.addr,">");return this.isArrayOfMailboxes(t)?t.map(e).join(",".concat(this.envctx.eol," ")):t instanceof xc?e(t):""}dumpMailboxSingle(t){return t instanceof xc?(t=>0===t.name.length?t.dump():"=?utf-8?B?".concat(this.envctx.toBase64(t.name),"?= <").concat(t.addr,">"))(t):""}isHeaderField(t){const e=["name","value","dump","required","disabled","generator","custom"];if(this.isObject(t)){const r=t;if(Object.hasOwn(r,"name")&&"string"==typeof r.name&&r.name.length>0&&!Object.keys(r).some((t=>!e.includes(t))))return!0}return!1}isObject(t){return!!t&&t.constructor===Object}isArrayOfMailboxes(t){return this.isArray(t)&&t.every((t=>t instanceof xc))}isArray(t){return!!t&&t.constructor===Array}}class Mc extends Ac{constructor(t){super(t),Ga(this,"fields",[{name:"Content-ID"},{name:"Content-Type"},{name:"Content-Transfer-Encoding"},{name:"Content-Disposition"}])}}class jc{constructor(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ga(this,"envctx",void 0),Ga(this,"headers",void 0),Ga(this,"data",void 0),this.envctx=t,this.headers=new Mc(this.envctx),this.data=e,this.setHeaders(r)}dump(){const t=this.envctx.eol;return this.headers.dump()+t+t+this.data}isAttachment(){const t=this.headers.get("Content-Disposition");return"string"==typeof t&&t.includes("attachment")}isInlineAttachment(){const t=this.headers.get("Content-Disposition");return"string"==typeof t&&t.includes("inline")}setHeader(t,e){return this.headers.set(t,e),t}getHeader(t){return this.headers.get(t)}setHeaders(t){return Object.keys(t).map((e=>this.setHeader(e,t[e])))}getHeaders(){return this.headers.toObject()}}class Ec{constructor(t){Ga(this,"envctx",void 0),Ga(this,"headers",void 0),Ga(this,"boundaries",{mixed:"",alt:"",related:""}),Ga(this,"validTypes",["text/html","text/plain"]),Ga(this,"validContentTransferEncodings",["7bit","8bit","binary","quoted-printable","base64"]),Ga(this,"messages",[]),this.envctx=t,this.headers=new Ac(this.envctx),this.messages=[],this.generateBoundaries()}asRaw(){const t=this.envctx.eol,e=this.headers.dump(),r=this.getMessageByType("text/plain"),n=this.getMessageByType("text/html"),i=null!=n?n:null!=r?r:void 0;if(void 0===i)throw new Va("MIMETEXT_MISSING_BODY","No content added to the message.");const o=this.hasAttachments(),u=this.hasInlineAttachments(),a=u&&o?"mixed+related":o?"mixed":u?"related":r&&n?"alternative":"";if("mixed+related"===a){const i=this.getAttachments().map((e=>"--"+this.boundaries.mixed+t+e.dump()+t+t)).join("").slice(0,-1*t.length),o=this.getInlineAttachments().map((e=>"--"+this.boundaries.related+t+e.dump()+t+t)).join("").slice(0,-1*t.length);return e+t+"Content-Type: multipart/mixed; boundary="+this.boundaries.mixed+t+t+"--"+this.boundaries.mixed+t+"Content-Type: multipart/related; boundary="+this.boundaries.related+t+t+this.dumpTextContent(r,n,this.boundaries.related)+t+t+o+"--"+this.boundaries.related+"--"+t+i+"--"+this.boundaries.mixed+"--"}if("mixed"===a){const i=this.getAttachments().map((e=>"--"+this.boundaries.mixed+t+e.dump()+t+t)).join("").slice(0,-1*t.length);return e+t+"Content-Type: multipart/mixed; boundary="+this.boundaries.mixed+t+t+this.dumpTextContent(r,n,this.boundaries.mixed)+t+(r&&n?"":t)+i+"--"+this.boundaries.mixed+"--"}if("related"===a){const i=this.getInlineAttachments().map((e=>"--"+this.boundaries.related+t+e.dump()+t+t)).join("").slice(0,-1*t.length);return e+t+"Content-Type: multipart/related; boundary="+this.boundaries.related+t+t+this.dumpTextContent(r,n,this.boundaries.related)+t+t+i+"--"+this.boundaries.related+"--"}return"alternative"===a?e+t+"Content-Type: multipart/alternative; boundary="+this.boundaries.alt+t+t+this.dumpTextContent(r,n,this.boundaries.alt)+t+t+"--"+this.boundaries.alt+"--":e+t+i.dump()}asEncoded(){return this.envctx.toBase64WebSafe(this.asRaw())}dumpTextContent(t,e,r){const n=this.envctx.eol,i=null!=e?e:t;let o="";return o=t&&e&&!this.hasInlineAttachments()&&this.hasAttachments()?"--"+r+n+"Content-Type: multipart/alternative; boundary="+this.boundaries.alt+n+n+"--"+this.boundaries.alt+n+t.dump()+n+n+"--"+this.boundaries.alt+n+e.dump()+n+n+"--"+this.boundaries.alt+"--":t&&e&&this.hasInlineAttachments()?"--"+r+n+e.dump():t&&e?"--"+r+n+t.dump()+n+n+"--"+r+n+e.dump():"--"+r+n+i.dump(),o}hasInlineAttachments(){return this.messages.some((t=>t.isInlineAttachment()))}hasAttachments(){return this.messages.some((t=>t.isAttachment()))}getAttachments(){const t=t=>t.isAttachment();return this.messages.some(t)?this.messages.filter(t):[]}getInlineAttachments(){const t=t=>t.isInlineAttachment();return this.messages.some(t)?this.messages.filter(t):[]}getMessageByType(t){const e=e=>!e.isAttachment()&&!e.isInlineAttachment()&&(e.getHeader("Content-Type")||"").includes(t);return this.messages.some(e)?this.messages.filter(e)[0]:void 0}addAttachment(t){var e,r,n;if(this.isObject(t.headers)||(t.headers={}),"string"!=typeof t.filename)throw new Va("MIMETEXT_MISSING_FILENAME",'The property "filename" must exist while adding attachments.');let i=(null!==(e=t.headers["Content-Type"])&&void 0!==e?e:t.contentType)||"none";if(!1===this.envctx.validateContentType(i))throw new Va("MIMETEXT_INVALID_MESSAGE_TYPE",'You specified an invalid content type "'.concat(i,'".'));const o=null!==(r=null!==(n=t.headers["Content-Transfer-Encoding"])&&void 0!==n?n:t.encoding)&&void 0!==r?r:"base64";this.validContentTransferEncodings.includes(o)||(i="application/octet-stream");const u=t.headers["Content-ID"];"string"==typeof u&&u.length>2&&!u.startsWith("<")&&!u.endsWith(">")&&(t.headers["Content-ID"]="<"+t.headers["Content-ID"]+">");const a=t.inline?"inline":"attachment";return t.headers=Object.assign({},t.headers,{"Content-Type":"".concat(i,'; name="').concat(t.filename,'"'),"Content-Transfer-Encoding":o,"Content-Disposition":"".concat(a,'; filename="').concat(t.filename,'"')}),this._addMessage({data:t.data,headers:t.headers})}addMessage(t){var e,r,n,i;this.isObject(t.headers)||(t.headers={});let o=(null!==(e=t.headers["Content-Type"])&&void 0!==e?e:t.contentType)||"none";if(!this.validTypes.includes(o))throw new Va("MIMETEXT_INVALID_MESSAGE_TYPE","Valid content types are ".concat(this.validTypes.join(", "),' but you specified "').concat(o,'".'));const u=null!==(r=null!==(n=t.headers["Content-Transfer-Encoding"])&&void 0!==n?n:t.encoding)&&void 0!==r?r:"7bit";this.validContentTransferEncodings.includes(u)||(o="application/octet-stream");const a=null!==(i=t.charset)&&void 0!==i?i:"UTF-8";return t.headers=Object.assign({},t.headers,{"Content-Type":"".concat(o,"; charset=").concat(a),"Content-Transfer-Encoding":u}),this._addMessage({data:t.data,headers:t.headers})}_addMessage(t){const e=new jc(this.envctx,t.data,t.headers);return this.messages.push(e),e}setSender(t){const e=new xc(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{type:"From"});return this.setHeader("From",e),e}getSender(){return this.getHeader("From")}setRecipients(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{type:"To"};const r=(this.isArray(t)?t:[t]).map((t=>new xc(t,e)));return this.setHeader(e.type,r),r}getRecipients(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"To"};return this.getHeader(t.type)}setRecipient(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{type:"To"};return this.setRecipients(t,e)}setTo(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{type:"To"};return this.setRecipients(t,e)}setCc(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{type:"Cc"};return this.setRecipients(t,e)}setBcc(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{type:"Bcc"};return this.setRecipients(t,e)}setSubject(t){return this.setHeader("subject",t),t}getSubject(){return this.getHeader("subject")}setHeader(t,e){return this.headers.set(t,e),t}getHeader(t){return this.headers.get(t)}setHeaders(t){return Object.keys(t).map((e=>this.setHeader(e,t[e])))}getHeaders(){return this.headers.toObject()}toBase64(t){return this.envctx.toBase64(t)}toBase64WebSafe(t){return this.envctx.toBase64WebSafe(t)}generateBoundaries(){this.boundaries={mixed:Math.random().toString(36).slice(2),alt:Math.random().toString(36).slice(2),related:Math.random().toString(36).slice(2)}}isArray(t){return!!t&&t.constructor===Array}isObject(t){return!!t&&t.constructor===Object}}const Cc={toBase64:function(t){return b(t)},toBase64WebSafe:function(t){return S(t)},eol:"\r\n",validateContentType:t=>t.length>0&&t};return t.MIMEMessage=Ec,t.MIMEMessageContent=jc,t.MIMEMessageHeader=Ac,t.MIMETextError=Va,t.Mailbox=xc,t.createMimeMessage=function(){return new Ec(Cc)},t}({});
//# sourceMappingURL=mimetext.iife.js.map